🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #13594

Re: [PATCH] netdevsim: fix NULL deref in port attrs after unbind

#13594
From: patchwork-bot+netdevbpf
Date: Tue, 10 Nov 2026 02:55
30 lines
8851 bytes
Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Sat,  7 Nov 2026 17:20:09 +0800 you wrote:
> The new_port and del_port device attributes call nsim_drv_port_add() and
> nsim_drv_port_del(), which fetch the driver private data with
> dev_get_drvdata().  If the device has been unbound from the driver, that
> private data is NULL and priv_to_devlink() turns it into a bogus pointer,
> so a write to either attribute faults in devl_lock():
> 
>   BUG: unable to handle page fault for address: fffffffffffffeb0
>   RIP: 0010:__lock_acquire
>   Call Trace:
>    ...
>    nsim_drv_port_add
>    new_port_store
> 
> [...]

Here is the summary with links:
  - netdevsim: fix NULL deref in port attrs after unbind
    https://git.kernel.org/netdev/net-next/c/98aaf4da98d2

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179427932199.3612825.4107115664399893985.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359806-linux-kernel-netdev=dewy.ru
References: <tencent_C7E2CBFD5E5A8E8541FEA08915F742EC6405@qq.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359806-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH] netdevsim: fix NULL deref in port attrs after unbind
Date: Tue, 10 Nov 2026 02:55:21 +0000
Organization: Usenet Network
Message-ID: <179427932199.3612825.4107115664399893985.git-patchwork-notify@kernel.org>
References: <tencent_C7E2CBFD5E5A8E8541FEA08915F742EC6405@qq.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="507059"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:YRzcXRBx+J5C3+fiq8PEUTIfIRg= sha256:0cJ/kAwFIYpBoopo9d+sI/wcwcntZpBNq8snZmlNaiE=
	sha1:YxidWNwQV+AlZJBHOdKJQPSrSIE= sha256:3cnEgfNMwaioIS498JvSckSGOlMx/PVusWloWn7VlKw=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 156501139FF; Tue, 10 Nov 2026 06:03:14 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id iU2hwt4DYGqA;
	Tue, 10 Nov 2026 06:03:10 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-359806-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id A297F1139FE; Tue, 10 Nov 2026 06:03:01 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id DE78E6266F6; Tue, 10 Nov 2026 02:58:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794279330;
	b=4k2XvykT0e2HlPIwoxonZwQKQoQgvy/Db2K9DV7ZbqfC8dboSJqwKk1oc1iiHSwVAXiz
	 dYzPk7JSI9k8Ox8GUdH242R+c9Lx+TqqqmLHZxvXYAZbYyvZmheA5jxbV1jG2agyF01md
	 Ea5Lo2qJ8fQUCeK5n4Eo0p19DoIkjgHGbjhl2oDxT8EqplwHUh2iT1CnCs9RqYwCmWsvC
	 GfA0fkVbbB8H/GCDqaugH+0DIL1DhQcdHq9H3ql3Rena0McDp/W2NtXvTxUa7qn2MbBTF
	 T7i43FLQYHQhmHhoFPhdwXasdv9UBLnnpaYbpF017/m0HeuMueygiIkzfldlvSl9T3w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794279330;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=846j6wL4j7UvBVjd/28Rgk3idfp9HTNpB1bpeGDTWng=;
	b=x9yUimGvt5vn2NZqKNfCiqJp5/YB7us9cJSRlv4gmG0xYxSYhM9VAxggR2pC7VOnrIsy
	 EvdoEcgUm/4JRW05vrprHCM1nJLX48UQw7u/s+un2rm1eVW9ZnyBwbEC1+x1mtb8aBUg4
	 jR3tsCPz+iX04jHrwJgieuqokyTjdKxSuk+NrKugPOl0uAgbR1O4SYLmDkm1pu0EaB0Bc
	 4vax/45oZZNLU1iPOI2sjXzRSL8MnABW1BawYXo5s7B06w9zlKdWyrcDkp8T2so/enxn6
	 GCllb0sV+LM7B6kn9r9XV8Xz+pWuk51PDUMRMFNBMlvu4mF92dxFBlc3ei3sPPGq2cg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ehcs4YFY;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id E053B606DA8C;
	Tue, 10 Nov 2026 02:55:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ehcs4YFY
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794279324;
	b=HI/A60cQ3S7ZjwlKa4nQSfVnWHJ4lLq4DcLyJl/vV6MpMCzk0Qf+2pW3BOaxte+qrTKG
	 8crMFRMERhM6PRhkz5h9M+QnpY/1jIHJbt2/F0qALzVP5zwwhd36nMwbbOd6LUjCZhWL6
	 YikKzDz87RNIwz5ehAwnF3dUahTILY+5mAqns26aKfMaytcqfzvDpR2wGsPagC2jKoi6e
	 GvXKUJv36PcBmlwHovqO4y1hdTQJZBDUCEt5+CKVV0uz04gJ6QFXK60tO0Fal/N0DAPTq
	 CcbsW9DQpA/xKcftyPji/M1Bk3KfTfKxU2Bv85L9QaOK1Axd5CMLr80LaLKUl82gY7A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794279324;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=846j6wL4j7UvBVjd/28Rgk3idfp9HTNpB1bpeGDTWng=;
	b=A3OdPLnpln20B4ao3vcw2TYd6tAZBFw0ix6ctfgk6s/hdg/Y+OAFVSE0Q10m2KRAN2DL
	 9ErOX7rUHDQ9u+CBkWDn6c5x4J6rvWO7Ppxlk4EetNKjDt4WrVkNbxoeGSDbMl020pM21
	 HlJkJcQ6NnZHr+NEBLy5InQKtjPhOr9RL6eTlZp143TD4PD/j1vYCAuleO6jV3kxihYSt
	 ztMF4mdboUwL7SajvH5+gBNi+FNksy1M4/Y3aPpsuJ/6yiyBYiolVYFZMm64NdbyxeldJ
	 jqa40LSJDHfr5USZczBaNu16CPAzM2R9Xk86kaLb0fSXb2zb+PH0NEeKPsIsqArs2+w==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=ehcs4YFY;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id C3B20606C6D1;
	Tue, 10 Nov 2026 02:55:23 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65CB01F0089F;
	Tue, 10 Nov 2026 02:55:23 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794279323;
	bh=846j6wL4j7UvBVjd/28Rgk3idfp9HTNpB1bpeGDTWng=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=ehcs4YFYbwPN7lGLVw4nRjvIKzJuMs+nJVBbZ1HEETYCKz/yDxekLyx6XlE9VlOLf
	 wvrIcIDJar03NkNF/fodXcYM7k2s7pwf6FIOSJpMCuobp2X6bXinJN5bRRobAs9Grd
	 ZbLPf/IhI5mDCwJVorNzJsDH/y+jxlJdzijcltclEGiTcBNOYgNVaMeXQqqZvBD9eH
	 YsC46xgN1/RBkWC4hVTZxZZiKbLYah9KyAR14TCKORXAOi60s0CI2EmVuSLAV6GnRN
	 ynPzdbWHddR+LuwVEp/zz/xdBN8/x1SJcwEz62ubIbGf3GTwPlAdTeOUJ/Zyts/mTo
	 oZx7Fr/I9dyKw==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 5E221391AFCB;
	Tue, 10 Nov 2026 02:55:23 +0000 (UTC)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <tencent_C7E2CBFD5E5A8E8541FEA08915F742EC6405@qq.com>
X-Cc: kuba@kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net,
 edumazet@kernel.org, pabeni@redhat.com, jiri@resnulli.us,
 netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
 syzbot+b3fca27eb4005f0111f4@syzkaller.appspotmail.com