From: Jiayuan Chen <jiayuan.chen@linux.dev>
To: syzbot <syzbot+b3fca27eb4005f0111f4@syzkaller.appspotmail.com>,
linux-kernel@vger.kernel.org, netdev@vger.kernel.org,
syzkaller-bugs@googlegroups.com, stitch@zju.edu.cn
Subject: Re: [syzbot] [net?] BUG: unable to handle kernel paging request in nsim_drv_port_add (2)
Date: Sun, 1 Nov 2026 17:51:13 +0800 [thread overview]
Message-ID: <7ce7a3c9-0e2f-4f01-a29c-f589f03f581c@linux.dev> (raw)
In-Reply-To: <6ae6e3d1.7fe51036.1ecf7.0016.GAE@google.com>
On 11/1/26 3:01 PM, syzbot wrote:
> Hello,
>
> syzbot found the following issue on:
>
> HEAD commit: 36aad21d50d1 Merge tag 'ksmbd-for-7.4-rc1-part2' of git://..
> git tree: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> console output: https://syzkaller.appspot.com/x/log.txt?x=1332b159580000
> kernel config: https://syzkaller.appspot.com/x/.config?x=dc4462df6d1062fe
> dashboard link: https://syzkaller.appspot.com/bug?extid=b3fca27eb4005f0111f4
> compiler: Debian clang version 22.1.8 (1~deb13u4), Debian LLD 22.1.8
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1194b795580000
>
> AI-generated root cause summary:
> In netdevsim, sysfs device attributes such as 'new_port' and 'del_port' are
> exposed at the device level on nsim_bus_dev without holding device_lock or
> checking if the driver is bound. An access via sysfs after the driver has been
> unbound, after a failed probe, or concurrently with device removal finds drvdata
> set to NULL; passing this NULL pointer to priv_to_devlink() computes a negative
> offset from NULL, triggering a kernel page fault crash when attempting to
> acquire devlink->lock.
>
> full analysis: https://syzkaller.appspot.com/x/ai_root_cause?x=b3fca27eb4005f0111f4
This looks like the same issue Jiacheng's pending patch addresses,
new_port/del_port don't take device_lock nor check drvdata, so a write
after unbind hits a NULL nsim_dev:
https://lore.kernel.org/netdev/20261012135941.78329-1-stitch@zju.edu.cn/
prev parent reply other threads:[~2026-11-01 9:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-01 7:01 syzbot
2026-11-01 9:51 ` Jiayuan Chen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7ce7a3c9-0e2f-4f01-a29c-f589f03f581c@linux.dev \
--to=jiayuan.chen@linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=stitch@zju.edu.cn \
--cc=syzbot+b3fca27eb4005f0111f4@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®