From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AAD79192B83; Wed, 18 Dec 2024 09:08:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734512883; cv=none; b=koOHmnQiu/9JrKDpXcVnXMVhGRXz9cwkuGHVLoZMcUNDzviHpv94oUMBBZk+ucRZ0Z6HxbPm15aPl69Y1fuk5jcvTWDI3qKi8NQZXMZn7A75wsm5luQW1HlGsfkJso+WnCDkaTz1nKV8kIbsU+T6yG7A2x1mq881BhRcTYESZyw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734512883; c=relaxed/simple; bh=16mMtJuOvxw8d3/oUHhHWZ1p+UqOMxaBYih6OxWvsg4=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=AnOoHo28yfhxUYGhE/RVc8YVSi8YjbYNzSLgoMWuDovf8j6VgHiVLCLn5xDLXb9eQecLODU4xnVBHO8eKcFhA2YKmvRDVu1NYo356ClBQO0Cz5Zxvn7vQY/buKgUyQEpptPmxiF40P8pwbX7EG83YAwd+DNUIKSCNsv/eOMe/Vc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=BF/Wq7Em; arc=none smtp.client-ip=217.70.183.193 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="BF/Wq7Em" Received: by mail.gandi.net (Postfix) with ESMTPSA id 125FD24000B; Wed, 18 Dec 2024 09:07:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1734512878; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oMuYYSNrGJHO3pOqsca4n7mxUQZgqKNB0TGOKm+gUDs=; b=BF/Wq7Em1diblMfNugnFc3Vm9120IrW2mvjOs7goniIA9ErD5oztxF4gwJ8Z9c/YKZCYxc mEWdKFqXn/CucYg6tE6F8+5WNLsPjsaIFJbaFuYNqfKWE2zdri32qy5faVdRZc0vprmjta bVrBR+kfX7VJJ850BppGCWA1ZFL0i5BI+ifyu6zjfmREA/2gXO9PvuBJHZ5LwqafHJYtAN C7bYJ52TMMzIMK3m8uc02GJ6IsC03ylg+xgY0PHEqpgCL+UzfbVb5Cu83pEvBgyYL7nP/w NCo7hhVZlOt/KgDy5RYgckng1WM7uIig2hX6JRIbSLTbytIFpGa/kpB757oPUg== Date: Wed, 18 Dec 2024 10:07:56 +0100 From: Kory Maincent To: Eric Dumazet Cc: "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+a344326c05c98ba19682@syzkaller.appspotmail.com, thomas.petazzoni@bootlin.com, Jakub Kicinski , Paolo Abeni , Simon Horman Subject: Re: [PATCH net-next] net: ethtool: Fix suspicious rcu_dereference usage Message-ID: <20241218100756.30de216b@kmaincent-XPS-13-7390> In-Reply-To: References: <20241217140323.782346-1-kory.maincent@bootlin.com> <20241217181712.049b5524@kmaincent-XPS-13-7390> Organization: bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: kory.maincent@bootlin.com On Tue, 17 Dec 2024 18:28:16 +0100 Eric Dumazet wrote: > On Tue, Dec 17, 2024 at 6:17=E2=80=AFPM Kory Maincent > wrote: > > > > On Tue, 17 Dec 2024 16:47:07 +0100 > > Eric Dumazet wrote: > > =20 > > > On Tue, Dec 17, 2024 at 3:03=E2=80=AFPM Kory Maincent > > > wrote: =20 > [...] =20 > > > > > > I have to ask : Can you tell how this patch has been tested ? =20 > > > > Oh, it was not at all sufficiently tested. Sorry! > > I thought I had spotted the issue but I hadn't. > > =20 > > > rcu is not held according to syzbot report. > > > > > > If rtnl and rcu are not held, lockdep will still complain. =20 > > > > You are totally right. > > I may be able to see it with the timestamping kselftest. I will try. =20 >=20 > syzbot has a repro that you can compile and run. Oh indeed, thanks for the pointer. > Make sure to build and use a kernel with >=20 > CONFIG_PROVE_LOCKING=3Dy Yes I did. Regards, --=20 K=C3=B6ry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com