Article View: linux.kernel.netdev
Article #16611[syzbot] [net?] WARNING in devlink_free (2)
From: syzbot
Date: Sun, 15 Nov 2026 09:58
Date: Sun, 15 Nov 2026 09:58
127 lines
14080 bytes
14080 bytes
Hello, syzbot found the following issue on: HEAD commit: aa40afa831eb tcp: fix NULL pointer dereference when restar.. git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=1582ee3d580000 kernel config: https://syzkaller.appspot.com/x/.config?x=d44b06612b68f56 dashboard link: https://syzkaller.appspot.com/bug?extid=bbd81e1e2276c534dea1 compiler: Debian clang version 22.1.8 (1~deb13u4), Debian LLD 22.1.8 Unfortunately, I don't have any reproducer for this issue yet. Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/2e5d84927015/disk-aa40afa8.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/e267992573f1/vmlinux-aa40afa8.xz kernel image: https://storage.googleapis.com/syzbot-assets/828d3e3f2df4/bzImage-aa40afa8.xz AI-generated root cause summary: In netdevsim, switchdev eswitch mode can be enabled with zero VFs configured, allowing userspace to create devlink rate nodes via netlink. However, during device teardown or reload in nsim_dev_reload_destroy(), the cleanup call to nsim_esw_legacy_enable()βwhich invokes devl_rate_nodes_destroy()βis conditionally guarded by if (nsim_dev_get_vfs(nsim_dev)). When VFs were never configured (num_vfs == 0), nsim_esw_legacy_enable() is bypassed, leaving devlink_rate nodes in devlink->rate_list and triggering the WARN_ON(devlink_rates_check(devlink, NULL, NULL)) sanity check in devlink_free(). full analysis: https://syzkaller.appspot.com/x/ai_root_cause?x=bbd81e1e2276c534dea1 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+bbd81e1e2276c534dea1@syzkaller.appspotmail.com netdevsim netdevsim0 netdevsim0 (unregistering): unset [0, 0] type 1 family 0 port 8472 - 0 netdevsim netdevsim0 netdevsim0 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim0 netdevsim0 (unregistering): unset [1, 1] type 2 family 0 port 20004 - 0 ------------[ cut here ]------------ devlink_rates_check(devlink, NULL, NULL) WARNING: net/devlink/core.c:544 at devlink_free+0x359/0x450 net/devlink/core.c:544, CPU#1: syz-executor/17425 Modules linked in: CPU: 1 UID: 0 PID: 17425 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 RIP: 0010:devlink_free+0x359/0x450 net/devlink/core.c:544 Code: 00 e8 fb 62 e8 f6 5b 41 5c 41 5d 41 5e 41 5f 5d c3 cc cc cc cc cc e8 e6 62 e8 f6 90 0f 0b 90 e9 02 fd ff ff e8 d8 62 e8 f6 90 <0f> 0b 90 e9 29 fd ff ff e8 ca 62 e8 f6 90 0f 0b 90 e9 59 fd ff ff RSP: 0018:ffffc900038a78b8 EFLAGS: 00010293 RAX: ffffffff8ae0be08 RBX: ffff8880797aa000 RCX: ffff8880546a9f40 RDX: 0000000000000000 RSI: 00000000fffffff0 RDI: 0000000000000000 RBP: 00000000fffffff0 R08: ffffffff91be00bf R09: 1ffffffff237c017 R10: dffffc0000000000 R11: 0000000000000000 R12: dffffc0000000000 R13: 1ffff1100f2f5400 R14: ffff8880797aa1f8 R15: ffff8880797aa3e0 FS: 000055557a90f500(0000) GS:ffff888123508000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd61b5f0ce0 CR3: 000000002bf22000 CR4: 00000000003526f0 Call Trace: <TASK> nsim_drv_remove+0x146/0x170 drivers/net/netdevsim/dev.c:1736 device_remove drivers/base/dd.c:617 [inline] __device_release_driver drivers/base/dd.c:1357 [inline] device_release_driver_internal+0x42b/0x7d0 drivers/base/dd.c:1380 bus_remove_device+0x444/0x560 drivers/base/bus.c:678 device_del+0x524/0x8f0 drivers/base/core.c:3967 device_unregister+0x21/0xf0 drivers/base/core.c:4008 nsim_bus_dev_del drivers/net/netdevsim/bus.c:488 [inline] del_device_store+0x2b5/0x370 drivers/net/netdevsim/bus.c:243 kernfs_fop_write_iter+0x3a4/0x540 fs/kernfs/file.c:345 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x612/0xba0 fs/read_write.c:667 ksys_write+0x150/0x270 fs/read_write.c:719 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x16a/0x530 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ffbf2169d0e Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 <c3> 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08 RSP: 002b:00007ffef50b4238 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000055557a90f500 RCX: 00007ffbf2169d0e RDX: 0000000000000001 RSI: 00007ffef50b42c0 RDI: 0000000000000005 RBP: 00007ffbf223891c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffef50b42c0 R14: 00007ffef50b4b00 R15: 0000000000000003 </TASK> --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup
Technical Details
Message-ID:
<6af9824c.920b2b3a.148c65.0009.GAE@google.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363652-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363652-linux-kernel-netdev=dewy.ru
From: syzbot+bbd81e1e2276c534dea1@syzkaller.appspotmail.com (syzbot)
Newsgroups: linux.kernel.netdev
Subject: [syzbot] [net?] WARNING in devlink_free (2)
Date: Sun, 15 Nov 2026 01:58:36 -0800
Organization: Usenet Network
Message-ID: <6af9824c.920b2b3a.148c65.0009.GAE@google.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="1768219"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:i0de0ff84pfdBJXp0sXuW9vuC6I= sha256:h+es5k9CN3WwCAzAE/L1+IiWPqzJMRW8+EFkF0yuA58=
sha1:1nFXMwrtCYRHN1OQRqRBxZtKn9o= sha256:OZ2rY2Qap1tDYL3qxVCKfX+5I1rw3GatoNTT7pbtEN0=
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 7032611499A; Sun, 15 Nov 2026 12:59:25 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.146
X-Spam-Status: No, score=-0.146 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, FROM_LOCAL_HEX=0.331,
HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
RCVD_IN_DNSWL_MED=-2.3, SORTED_RECIPS=2.474, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 96K3Wk7GAj52;
Sun, 15 Nov 2026 12:59:19 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-363652-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=syzkaller.appspotmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id E85B8114983; Sun, 15 Nov 2026 12:59:14 +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 832DA2D310; Sun, 15 Nov 2026 09:58:41 +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=1794736718;
b=2+/iJbz+0hu7VAiUVV8mUexJZ6nqursHLHtfl4acOBkhcf3L1jldeRxZd8qnORw+o3C7
MpyzSBV+5kyzTDMuF8ME4Sa5RJmSZSVGDg3lcRVufvZtDTue4VWxzGu9UbKfCxHTIOWoo
Jc5u1zEVX1a4SeEKKI9feLvZNmT9hyW+3lz/0ft0sKPZoHJxQtHfSsjnipuuUcpXfmD9P
glrRCNem0nYBMW0pRRN2vscYH4bOIY7TO42Zirn5WMtxlHr+4P//BBoQ5NLZeKKA9L6ze
lBje6AoDB8gzaI2er26HBhangt/SKfdqFUeb9GKU61G2IJQLZ/oRPLJsOO1pg9vTM2A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794736718;
h=X-Original-To:Received:DMARC-Filter:Received:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Mailing-List:List-Id:
List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
Precedence:MIME-Version:X-Received:Date:X-Google-Appengine-App-Id:
X-Google-Appengine-App-Id-Alias:Message-ID:Subject:From:To:
Content-Type:Content-Transfer-Encoding;
bh=+twLC24k76JaJfVXGnex0iphgAHZtLWPYMiM4tTcxt0=;
b=K75IJoBAYNxegDIJTvP2u/F87FjdqedmVasxhd1oXJ7Qp+YYsYzmEFGEyY8CYuJ/PLFa
oTc8eR3BkjuKIzBnrJXFyL9bH6x63bl1VZvJw6RF7eE7iFE3HcPmU9vv3IG2+8nKM0zhB
S5YrH05Ohx629lTiC7awj6J3d5w9er2ONusxfbi6sJegc5Qd7WbTFoMR792yVzGMAy9ZA
NWPPt/BAVSkvvUcuP+d1/aTZ7uuMHxolD6Vmol98lT0bq9VWUTF3YXWV/xr5IiOERbDoq
NXgpDXdlVyJx3siRfNw1PS9HID7/u/ReqKmUeneHe8VoJ8nbQoocfzpULm4i3jv41Dg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dmarc=fail header.from=syzkaller.appspotmail.com;
spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com;
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 E4CFC606A335;
Sun, 15 Nov 2026 09:58:38 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.167.198
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794736718;
b=gh+nIW4Db9h/pXXA9MVBTF7jO/9TZRmuBs5bifkO/9I5/YPnACAvWp/Lx/6iWztQiaic
yiBqfMvh2R01sYsdW9KRaO4gKYic40qe5DMjDFSzb2nGYlALy8em67n2WImV5J103V2UU
gJS8yh/znswNMyvF32W4fPZS2Do4JbIeYVWhjHZLT9nnUr937r97th5LHjF4wUUeYCZ5q
hr35vZm2I2zioJg3yKFMpRbGMnjOIS+cc4FEBj0+qtTco4/c2iNLjnAtSXpSt4zRI9ZR3
0Y5Vl3RHEq3fIiOce4695XA1aLGZb20y1tm5b4nX5q3aLtIqEAFDc0eo0nLlWsRXcpw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794736718;
h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Forwarded-Encrypted:
X-Gm-Message-State:MIME-Version:X-Received:Date:
X-Google-Appengine-App-Id:X-Google-Appengine-App-Id-Alias:Message-ID:
Subject:From:To:Content-Type:Content-Transfer-Encoding;
bh=+twLC24k76JaJfVXGnex0iphgAHZtLWPYMiM4tTcxt0=;
b=gpwNxUw2oasTfhjglY8txvVPNJP9qmttKR9DhaT3RWev6BCysJstS4Waxz65afVB6IKR
fIrwLrWl43qmBEm5bzsi57YfFIVPK5wjRJf/JzJnv5UeMqCgVW4QUGYqpUKNc94Q1j0lb
MBF1cuyHuu8YUn3sH2BzGK2nXN5iB0FvGJxjkw4BUQWwH+Y+Sqn0WfusVealEavNu/pAj
+tOZ4LYODMvJQFkvb8mVAAkvqaI1z0+nHTtqn2OjmDZt+sG3OnrmzbFC75ttVVweprZ2e
aAhjy+pZWMObVTc8Pdo1NguwuZ+yOI1C9iIrYy0mS7wikcpvrptTu3SsNkoEIzepFhg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=fail header.from=syzkaller.appspotmail.com;
spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com;
arc=none smtp.remote-ip=209.85.167.198
X-Received: from mail-oi1-f198.google.com (mail-oi1-f198.google.com [209.85.167.198])
(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 E41C8606A323
for <netdev@vger.kernel.org>; Sun, 15 Nov 2026 09:58:37 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E41C8606A323
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com
X-Received: by mail-oi1-f198.google.com with SMTP id 5614622812f47-4cc89e86e4dso3225607b6e.2
for <netdev@vger.kernel.org>; Sun, 15 Nov 2026 01:58:37 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794736717; x=1795341517;
h=content-transfer-encoding:content-type:to:from:subject:message-id
:date:mime-version:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=+twLC24k76JaJfVXGnex0iphgAHZtLWPYMiM4tTcxt0=;
b=sq0wBQJ3sPBjnmqbtgPPagEtQwXaITagaA6pvlwhhXJ4jPEAVZmgBeS5f8m4SDxWPF
JwY9sM/gIvGY+XwMvLBitZWojis2wZnifw2793ZKLj+fcPdn/5VenToWCPlMnfjVuXJZ
APeCpTlOWZ2iG25oO83zE0dMz1XpBo8F4SRXioQgx0BQ+Z+N/UpGUdp14n7ixDYGmPm4
M/2N7uggdJwKKfaGH412e+Uv0sJjjIstpMmmloytcaLcRaQfjxzpdzjr4CrmTYx+Al99
w8tD9pzXsyXrppW8/aTDdiJaxuiKt5Yzo0P1x+rpXmRYhwvpSHVQmfYeXHG92pTF9onm
9CxA==
X-Forwarded-Encrypted: i=1; AL+hErGxJvKjj80EbNzTvQQoWbezKLIB3UFHcICSjrVhmfAXBwU4W5C5GgElVckBTrPkES5L1nqLJsM=@vger.kernel.org
X-Gm-Message-State: APuU4Z+JQvfgjoW/qO9/GRadHQSZttyPp0BP6uVYmFNl1lrNxdQxwjig
w+I2KL7sxL4eIkmzEcNiAaj2UvnGc84gptzIacW98TgVm86Zj9QomYllqP0NJwKIkU5rh9rQymZ
j67AgyjdWsGjQYWdGV2HiV1iVK6PtTqsVWk2Bm6siCBxGY6sSU4Ue4AJ/Zvs=
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-Received: by 2002:a05:6808:811b:b0:572:878:fccf with SMTP id
5614622812f47-5720878fd52mr2201182b6e.59.1794736716909; Sun, 15 Nov 2026
01:58:36 -0800 (PST)
X-Google-Appengine-App-Id: s~syzkaller
X-Google-Appengine-App-Id-Alias: syzkaller