🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #9257

Re: [syzbot] [net?] BUG: unable to handle kernel paging request in nsim_drv_port_add (2)

#9257
From: Jiayuan Chen
Date: Sun, 01 Nov 2026 09:51
33 lines
9582 bytes
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/
Technical Details
Message-ID: <7ce7a3c9-0e2f-4f01-a29c-f589f03f581c@linux.dev>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354213-linux-kernel-netdev=dewy.ru
References: <6ae6e3d1.7fe51036.1ecf7.0016.GAE@google.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-354213-linux-kernel-netdev=dewy.ru
From: jiayuan.chen@linux.dev (Jiayuan Chen)
Newsgroups: linux.kernel.netdev
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
Organization: Usenet Network
Message-ID: <7ce7a3c9-0e2f-4f01-a29c-f589f03f581c@linux.dev>
References: <6ae6e3d1.7fe51036.1ecf7.0016.GAE@google.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="2662547"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:AtjQAYqikGexA+AXGTXlmy3lxhU= sha256:7+OO8flzgFWd5HGc4jJO7b4Ad5IF63e6vOimVUVNX9M=
	sha1:H5rxA2SwJYPPjKBiTHFHErt+c+M= sha256:s8jgpFMJOtZ/gksy+eWPZxkeIr6Fj9G/8QwkvJnRdro=
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 33020114003; Sun,  1 Nov 2026 12:51:49 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.15
X-Spam-Status: No, score=-2.15 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.25, HK_RANDOM_FROM=0.999,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=linux.dev
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 E43QmrMZH4OZ;
	Sun,  1 Nov 2026 12:51:43 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-354213-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linux.dev
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id DE890DF9CB; Sun,  1 Nov 2026 12:51:33 +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 0A75460198A; Sun,  1 Nov 2026 09:51:32 +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=1793526690;
	b=KgNXnntEhSXJdLB+n8maVCBo3dw451quyYJVRxpcyoJjOTrW1H3moWz/wLdAYxZWMNFU
	 ubJehY+ROciU14wFIQ3QJmxgazqFJ1o0BvlE1xBwLFCkl6YnK3LASweRzhHxdo7Q9JjJt
	 Uaw4XUkj1oStuicmxI7iEiQV+xFA9MvdsGECtZPvHlKLQouCm5Jv7qT2v/MZmoHqEVNP2
	 2UhuSJh59lgNEvTOjNGAkZELaAOndNaHy816saIWqDTL/pyObzkmSjxkh2hFnkYgI9BKY
	 w42wTza65wYFdilrtDTJxZkixd8ySCCYbvoq0KqY6Rdi75APruaIvIUih4J4SKbxPTg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793526690;
	h=X-Original-To:Received:DMARC-Filter:X-Envelope-To:DKIM-Signature:
	 X-Envelope-To:Received:X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:User-Agent:
	 Subject:To:References:From:In-Reply-To:Content-Type:
	 Content-Transfer-Encoding;
	bh=42mltXfOHa8qQEgF7vx2IvMlukJoJC4Ac1VKSCu6M58=;
	b=sZbKmShcxmI+A6/9d7QZr/xZKcgh8pHq4R1xyFSxMKwogmBuFk6k3HQCW34n7JdF0WRh
	 hzFOCtkLzUDHyF32TXDRKkmPmrBPhx9PyQc/edKMpraD14QSkRYmFhoRF/XMSbyKv1hK4
	 B3JX0UuUAiP1BVyWqJJE3KvUofy0gtHMaOz0eyS1odkHtF4xhztuyt6gb3CPq+YtdR29e
	 4U7fOTw1UWj9Z87XKN+zzKzzmqA6wFxnAP9D1bVZbBMgSu0aj+lt+Lx4f2D4NetMCwk60
	 HRDoXdD1k5l44k6r4QQ59y3hq0J6SQRxku9VN+jZSv5B/G/DlECmLTbJNzxzKVCNWTw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=Q34tkcKl;
	dmarc=pass header.from=linux.dev;
	spf=pass smtp.mailfrom=linux.dev;
	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 DDB01606A32F;
	Sun,  1 Nov 2026 09:51:29 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=Q34tkcKl
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=95.215.58.51
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793526688;
	b=gC7VPEzLlJuE4LKmyMkQJRghU3NgWzCxmn5YZdJMM3hIoMpcdJDV4XQu5WMR1wnMl2CR
	 GxOODMyeSIhCrvQy8GQEt60/Pkoc70vuv9rJ2eJEHsM6LRWZ+UDFu2Vdq15YsZS2Lp3qn
	 LqZWriCvI3ztpT5HSxufcXjITPkZj/QoV7uMpB2+d2+UeQ9yRrFVnwN5XzVmV+7NFFt0C
	 uXwxbQUjzuV1iV9lnUqoGcjWG0k6jupP4a4PRLlz/zJYmezM6HcWMcA/hg+f76RlDoZPF
	 Bc2wOd1TCqR9ObNdccabCYxVtUysW3MXpiwbhNtCtJyZVz0/HvA5E1iaRnEs2UDO2Kw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793526688;
	h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received:
	 X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent:
	 Subject:To:References:From:In-Reply-To:Content-Type:
	 Content-Transfer-Encoding;
	bh=42mltXfOHa8qQEgF7vx2IvMlukJoJC4Ac1VKSCu6M58=;
	b=wpU7iYQA7fLYWlVJ3dPk1OyVyh1/+3Et0+5asvigVN/PUt+em6waaHjiPDPh2aRh+cHL
	 SfqEmC/9hzRI8FhwpXBXB5h4iMWyjBNKUmePUpEiiUbye+h+zWzg4zk8Fa6opNaeLZP6x
	 fV3sLMGbsvvPJgGSPyBNDa8ZWOCz9s2oj1ixDYI0+cz+B/zvqMebZS109vdCufz/Gl1e7
	 T779r2y07td1CDT9dYqUJ9pYluKGFJh9vPMVt2ehhXMoWSE6FWGlqH1HPkDQwX+feS7fd
	 yq7N46Bdg464xFONIOxi2nS7Q3mVObViJFUG5lSY1jIrbtOwIvZn87fMnXCW9oiRK+Q==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=linux.dev;
	spf=pass smtp.mailfrom=linux.dev;
	dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=Q34tkcKl;
	arc=none smtp.remote-ip=95.215.58.51
X-Received: from mta1.migadu.com (out-51.mta1.migadu.com [95.215.58.51])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 58F11606A324
	for <netdev@vger.kernel.org>; Sun,  1 Nov 2026 09:51:21 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 58F11606A324
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev
X-Envelope-To: netdev@vger.kernel.org
X-DKIM-Signature: a=rsa-sha256; bh=+LcOo+yzU61N5f/ovbIqmgFP1ag60jqXkCX/q1zSclw=;
 c=simple/simple; d=linux.dev;
 h=from:to:subject:date:message-id:mime-version:content-type; s=key1;
 t=1793526680; v=1; x=1794131480;
 b=Q34tkcKlbgVeEA19/oLfRhDgHn0n51q7h03Zi8nXZlWgq7chnBC8JxMgHoF3yzURkNd8r7Kq
 ZMOiKmnnKFcY00XKrM8yYOFkwYcoJ2KQtjfGIbBcb9qCWv579aNLAirrAVEuJpTzt+HOqAlzKab
 3Gu78SHHJJKCK5M/wwMhy+GY=
X-Envelope-To: netdev@vger.kernel.org
X-Received: by smtp.migadu.com with ESMTPS id a8b3a4003f078db1;
	Sun, 01 Nov 2026 09:51:20 +0000
X-Mizu-Trace-ID: a8b3a4003f078db1
X-Migadu-Flow: FLOW_OUT
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-User-Agent: Mozilla Thunderbird
X-In-Reply-To: <6ae6e3d1.7fe51036.1ecf7.0016.GAE@google.com>