syzbot


BUG: corrupted list in __nsim_dev_port_del

Status: upstream: reported on 2025/05/08 10:13
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+ccf06e09fd9a78979179@syzkaller.appspotmail.com
First crash: 45d, last: 30d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [net?] BUG: corrupted list in __nsim_dev_port_del 0 (1) 2025/05/08 10:13

Sample crash report:
netdevsim netdevsim7 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
netdevsim netdevsim7 netdevsim2 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0
 slab kmalloc-512 start ffff88807ddd1c00 pointer offset 0 size 512
list_del corruption. next->prev should be ffff888052c92000, but was ffffffff99d1d880. (next=ffff88807ddd1c00)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:67!
Oops: invalid opcode: 0000 [#1] SMP KASAN PTI
CPU: 1 UID: 0 PID: 10685 Comm: kworker/u8:9 Not tainted 6.15.0-rc7-syzkaller-00112-geccf6f2f6ab9 #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
Workqueue: netns cleanup_net
RIP: 0010:__list_del_entry_valid_or_report+0x18a/0x190 lib/list_debug.c:65
Code: 8c 34 43 fd 43 80 3c 2c 00 74 08 4c 89 ff e8 2d 06 63 fd 49 8b 56 08 48 c7 c7 60 fb c1 8b 48 89 de 4c 89 f1 e8 97 aa 68 fc 90 <0f> 0b cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000cae7760 EFLAGS: 00010246
RAX: 000000000000006d RBX: ffff888052c92000 RCX: fca4a711a0d87c00
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffc9000cae7447 R09: 1ffff9200195ce88
R10: dffffc0000000000 R11: fffff5200195ce89 R12: 1ffff1100fbba381
R13: dffffc0000000000 R14: ffff88807ddd1c00 R15: ffff88807ddd1c08
FS:  0000000000000000(0000) GS:ffff8881261c2000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f25f9223368 CR3: 000000005fffe000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 __list_del_entry_valid include/linux/list.h:124 [inline]
 __list_del_entry include/linux/list.h:215 [inline]
 list_del include/linux/list.h:229 [inline]
 __nsim_dev_port_del+0x24/0x1b0 drivers/net/netdevsim/dev.c:1425
 nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1440 [inline]
 nsim_dev_reload_destroy+0x288/0x490 drivers/net/netdevsim/dev.c:1661
 nsim_dev_reload_down+0x8a/0xc0 drivers/net/netdevsim/dev.c:968
 devlink_reload+0x1b3/0x8d0 net/devlink/dev.c:461
 devlink_pernet_pre_exit+0x1d9/0x3d0 net/devlink/core.c:509
 ops_pre_exit_list net/core/net_namespace.c:162 [inline]
 cleanup_net+0x594/0xbd0 net/core/net_namespace.c:634
 process_one_work kernel/workqueue.c:3238 [inline]
 process_scheduled_works+0xadb/0x17a0 kernel/workqueue.c:3319
 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3400
 kthread+0x70e/0x8a0 kernel/kthread.c:464
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:153
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_del_entry_valid_or_report+0x18a/0x190 lib/list_debug.c:65
Code: 8c 34 43 fd 43 80 3c 2c 00 74 08 4c 89 ff e8 2d 06 63 fd 49 8b 56 08 48 c7 c7 60 fb c1 8b 48 89 de 4c 89 f1 e8 97 aa 68 fc 90 <0f> 0b cc cc cc cc 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 0018:ffffc9000cae7760 EFLAGS: 00010246
RAX: 000000000000006d RBX: ffff888052c92000 RCX: fca4a711a0d87c00
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffc9000cae7447 R09: 1ffff9200195ce88
R10: dffffc0000000000 R11: fffff5200195ce89 R12: 1ffff1100fbba381
R13: dffffc0000000000 R14: ffff88807ddd1c00 R15: ffff88807ddd1c08
FS:  0000000000000000(0000) GS:ffff8881261c2000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f41d42e7d60 CR3: 000000000dd38000 CR4: 00000000003526f0

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/23 18:20 upstream eccf6f2f6ab9 f8cc0c83 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce BUG: corrupted list in __nsim_dev_port_del
2025/05/08 03:02 upstream 707df3375124 dbf35fa1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream BUG: corrupted list in __nsim_dev_port_del
* Struck through repros no longer work on HEAD.