Article View: linux.kernel.netdev
Article #13602Re: [PATCH net] netdevsim: check the driver is bound in new_port/del_port
From: patchwork-bot+netdevbpf
Date: Tue, 10 Nov 2026 02:55
Date: Tue, 10 Nov 2026 02:55
31 lines
8999 bytes
8999 bytes
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Sun, 1 Nov 2026 20:58:24 +0700 you wrote:
> new_port and del_port are attributes of the bus device, so they stay
> reachable after the driver is unbound. nsim_drv_remove() clears
> drvdata, yet both handlers pass it straight to priv_to_devlink() and
> devl_lock(), which faults on a small negative pointer:
>
> BUG: unable to handle page fault for address: fffffffffffffeb0
> RIP: 0010:__lock_acquire+0x41/0x2de0 kernel/locking/lockdep.c:5140
> Call Trace:
> lock_acquire+0x115/0x350
> mutex_lock_nested+0x55/0x1d0
> nsim_drv_port_add+0x5a/0x140 drivers/net/netdevsim/dev.c:1760
> new_port_store+0x1a5/0x280 drivers/net/netdevsim/bus.c:96
> kernfs_fop_write_iter+0x3a5/0x540
>
> [...]
Here is the summary with links:
- [net] netdevsim: check the driver is bound in new_port/del_port
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:
<179427932067.3612825.8436433275701655863.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359805-linux-kernel-netdev=dewy.ruReferences:
<20261101135824.24484-1-ngocthang2710.1999@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-359805-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] netdevsim: check the driver is bound in new_port/del_port Date: Tue, 10 Nov 2026 02:55:20 +0000 Organization: Usenet Network Message-ID: <179427932067.3612825.8436433275701655863.git-patchwork-notify@kernel.org> References: <20261101135824.24484-1-ngocthang2710.1999@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="508064"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:QUICoM+SGIuB3vKkRNre52pRfVY= sha256:PMVZiyVE0JtEH5W2MkatuC78ccS4HXVPEWC7zHcqHpA= sha1:8Igl7/cOAcrzB36XDtLvVzLOWl4= sha256:6VrXnj9ZE0y1siX7oR/HKJxMuPhR0vTj3G6Z4DbW2v8= 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 B10FB113A09; Tue, 10 Nov 2026 06:08:09 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, 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 f7-FooccU9t1; Tue, 10 Nov 2026 06:08:06 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-359805-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 sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 14B8B11392A; Tue, 10 Nov 2026 06:07:58 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id B83AFE5DF2; Tue, 10 Nov 2026 02:59:21 +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=1794279343; b=iFJ7egZDSeZbMYakEnZjgTAR0h22VBgGiPj11RdSzBOpyrCDlzkMBLYs7jt2ZtgzPC0U JJIrveNSg0rFJgGv126PlMfO41CuonNGYfn91Wk61JczEC/72GFfyCSFnVDd1sbAFb2OX oDoCQDQa3aQtrlkdohgMPgCE9JCNK8XvQ41xGom3552hc2+6TUB9+3iMvrhgQaH84sXok xURXPFJAbp28Mltbp9LtEhrLVbnO6MRkysw/4luoSRNOwAOYiHMoImFWtZ1nfGOSwNetC MnpzGtbHUwRqXDeFaLXcEIj4FiRRf8SlI5D+x7q1uDTvnpxcdId4oQ9CNCvX5BaMaBA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794279343; 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=ZPBtGIOGFLrEbxTWvg5dr/Uvnp+M0Ms0sRfcLMTJMA4=; b=pAFR0jeoZKxqgmOslHRCUhEeP7AhJ7kdEVdroSglApKk8PovBJ/YVsYj0KzRWQDcI0Wp gg5KCdDqUrjmWBCHDD7GMe6ggDH6Dc/Oy/t3NhV/v2L4ENNl2UQj1t50a28chuIWI4RA1 uzTOodrEz5MTS+w8WtKydpno0pGTnr1B+WiRG8kBCPj0pwsrjudidyN6rRMq2OwpaLyJL m1zYXYhovDHFeiiP7bRNlIeMv0TGuTzcOeSNP5k8ZNwUTPYFHwRYmTW1fadw7hWru8ddF 1qah+2KxehBDE1sUm0/BSf9XM+ULBMzS+dVq16FsRrK+8bNINrvJgtouGgOw4PLDZcg== 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=gAdyYYWR; 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 760E560A2610; Tue, 10 Nov 2026 02:55:43 +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=gAdyYYWR 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=1794279322; b=vT39oNrMYo/zpcRrOztL6T3hCvZ0ReCjY2dMv7YkVLUj0eVGxWPVbU31J9b3+HsTocVA AZ3+4Cc7JPGjPzANOwjpUFpS+ENIu64dsi2UHeh4+SZfPry9C01ahgVXgVePqt+5zWy0F oxjkDKKZ5HbSXuJrXzAdwY2/9dvnoAQO787QuFCkABXBPbp1Dy6g4IWyGfcgIjyndb0HB CNJSQwxqGbqd6fY18IJHe4svACRTuxzLGEV94/RH81VuZUqobPuSUoalca9SREy7+ni9J 48rjn4TYZUtAsrUAT4qFlIlZVTQD4CWWNIqiuSCe9MHuX2HpRbuW5Wl2t46ZdaFpu2g== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794279322; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=ZPBtGIOGFLrEbxTWvg5dr/Uvnp+M0Ms0sRfcLMTJMA4=; b=3tDTBParEQB7sObpJZOXYcRwhV5ogp84Uo447SQaXGQKINcINOSgWib0+6VtLZu4QQ8F dxJHum+jCdocGoFv5j5z1mdmXynXl3pFOD5rNGvZXuI+zzcaNdTffz5/QOtFUDoy24CDF UgVghuwqHGzite19oQmnFri/14OiH4NahrowcFy3xwj/cgdGcag9CXVJEyjIKpUhrzsHi VgfjxjZDhyzYuajlT7uAIxXKWZQBDgdc/iUO7Y9NVF1KRzNp7dP0MC5IVDLZZZF3wJloa rTnqVqjXL1yi7pyJABfwq0MCWehDCWkzzA9NS70f7HFjb1KEUCAYWCNs+xo61HiLx/A== 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=gAdyYYWR; 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 5302C60A3807; Tue, 10 Nov 2026 02:55:22 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id EFF3D1F0089F; Tue, 10 Nov 2026 02:55:21 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794279322; bh=ZPBtGIOGFLrEbxTWvg5dr/Uvnp+M0Ms0sRfcLMTJMA4=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=gAdyYYWRpCq5zmeCxURVwSsstv+DgEkVOtd9ajI5cyFOwJkm0eSErbQT+3TFrupu+ IBGYCW0fbQmfv9vFkQde/Br/xfKBo8TFtmxToqGLV4zNwOLid7tafrfqIZkRqjExyF /9vAXzdosoEbp7cfnO3cKxkL7Afxkx7GJK5/OQQnGQ1ZvnOTJUgWNM2l9/APFAmGDA Q1naPLX4llu+7mcZt76/4300ZfRkZ0sH8K8lMAgInjGTLsvWJrSGaFELFTOpsppiYV 3ggd5oVSVlOclS1232HwKBDx45WDDZeNqyB+kILnhghOIRVIfw7p+TkuY5F+6FdkXh zxo+i6teP9i+g== 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 E6323391AFCB; Tue, 10 Nov 2026 02:55:21 +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: <20261101135824.24484-1-ngocthang2710.1999@gmail.com> X-Cc: kuba@kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+b3fca27eb4005f0111f4@syzkaller.appspotmail.com