list_del corruption, ffff888062374490->next is NULL
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:53!
Oops: invalid opcode: 0000 [#1] SMP KASAN PTI
CPU: 0 UID: 0 PID: 5938 Comm: syz-executor Not tainted syzkaller #0 PREEMPT(full)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2026
RIP: 0010:__list_del_entry_valid_or_report+0xdf/0x190 lib/list_debug.c:52
Code: 49 39 1f 0f 85 9e 00 00 00 b0 01 5b 41 5c 41 5d 41 5e 41 5f c3 cc cc cc cc cc 48 c7 c7 a0 fc 29 8c 48 89 de e8 42 ee 63 fc 90 <0f> 0b 48 c7 c7 00 fd 29 8c 48 89 de e8 30 ee 63 fc 90 0f 0b 4c 89
RSP: 0018:ffffc90000007d58 EFLAGS: 00010046
RAX: 0000000000000033 RBX: ffff888062374490 RCX: a3071ccae6415100
RDX: 0000000000000100 RSI: 0000000000000101 RDI: 0000000000000000
RBP: 0000000000000203 R08: ffffc90000007ae7 R09: 1ffff92000000f5c
R10: dffffc0000000000 R11: fffff52000000f5d R12: 1ffff1100c46e892
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000
FS: 000055556ad2b500(0000) GS:ffff888125002000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f01f8232368 CR3: 0000000061fe0000 CR4: 00000000003526f0
Call Trace:
__list_del_entry_valid include/linux/list.h:132 [inline]
__list_del_entry include/linux/list.h:223 [inline]
list_del_init include/linux/list.h:295 [inline]
dst_destroy+0x202/0x5a0 net/core/dst.c:163
rcu_do_batch kernel/rcu/tree.c:2617 [inline]
rcu_core+0x7cd/0x1070 kernel/rcu/tree.c:2869
handle_softirqs+0x22a/0x870 kernel/softirq.c:626
__do_softirq kernel/softirq.c:660 [inline]
invoke_softirq kernel/softirq.c:496 [inline]
__irq_exit_rcu+0x5f/0x150 kernel/softirq.c:727
irq_exit_rcu+0x9/0x30 kernel/softirq.c:743
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1056 [inline]
sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1056
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:697
RIP: 0010:kernfs_name_compare fs/kernfs/dir.c:335 [inline]
RIP: 0010:kernfs_find_ns+0x126/0x490 fs/kernfs/dir.c:886
Code: 8b 7c 24 08 4c 89 ee e8 28 f6 ff ff 4d 85 ff 0f 84 7a 02 00 00 89 c5 4c 89 eb 4d 8d 67 20 4c 89 e0 48 c1 e8 03 42 0f b6 04 30 <84> c0 0f 85 ba 01 00 00 45 8b 24 24 89 ef 44 89 e6 e8 34 fd 55 ff
RSP: 0018:ffffc90003167398 EFLAGS: 00000a02
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff88802d241e80
RDX: 0000000000000000 RSI: 3324f03600000000 RDI: 0000000000000000
RBP: 000000003324f037 R08: ffffffff826fc2ec R09: ffffffff8e960620
R10: dffffc0000000000 R11: ffffed100375db25 R12: ffff8880344dd8d0
R13: 0000000000000000 R14: dffffc0000000000 R15: ffff8880344dd8b0
kernfs_remove_by_name_ns+0x4b/0x130 fs/kernfs/dir.c:1726
kernfs_remove_by_name include/linux/kernfs.h:631 [inline]
remove_files fs/sysfs/group.c:28 [inline]
sysfs_remove_group+0xfc/0x2e0 fs/sysfs/group.c:328
sysfs_remove_groups+0x54/0xb0 fs/sysfs/group.c:352
device_remove_groups drivers/base/core.c:2843 [inline]
device_remove_attrs+0x1cb/0x280 drivers/base/core.c:2973
device_del+0x51f/0x8f0 drivers/base/core.c:3877
unregister_netdevice_many_notify+0x1e0e/0x2380 net/core/dev.c:12466
unregister_netdevice_many net/core/dev.c:12494 [inline]
unregister_netdevice_queue+0x31f/0x360 net/core/dev.c:12308
unregister_netdevice include/linux/netdevice.h:3414 [inline]
nsim_destroy+0x21f/0x730 drivers/net/netdevsim/netdev.c:1182
__nsim_dev_port_del+0x14d/0x1b0 drivers/net/netdevsim/dev.c:1528
nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1540 [inline]
nsim_dev_reload_destroy+0x288/0x490 drivers/net/netdevsim/dev.c:1764
nsim_drv_remove+0x58/0x170 drivers/net/netdevsim/dev.c:1779
device_remove drivers/base/dd.c:571 [inline]
__device_release_driver drivers/base/dd.c:1284 [inline]
device_release_driver_internal+0x46f/0x860 drivers/base/dd.c:1307
bus_remove_device+0x34d/0x440 drivers/base/bus.c:616
device_del+0x527/0x8f0 drivers/base/core.c:3878
device_unregister+0x21/0xf0 drivers/base/core.c:3919
nsim_bus_dev_del drivers/net/netdevsim/bus.c:491 [inline]
del_device_store+0x2b0/0x370 drivers/net/netdevsim/bus.c:244
kernfs_fop_write_iter+0x3af/0x540 fs/kernfs/file.c:352
new_sync_write fs/read_write.c:595 [inline]
vfs_write+0x61d/0xb90 fs/read_write.c:688
ksys_write+0x150/0x270 fs/read_write.c:740
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x14d/0xf80 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2d7115cfce
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 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007ffe284c2d88 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000055556ad2b500 RCX: 00007f2d7115cfce
RDX: 0000000000000001 RSI: 00007ffe284c2e10 RDI: 0000000000000005
RBP: 00007f2d7123345c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffe284c2e10 R14: 00007f2d71f44620 R15: 0000000000000003
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__list_del_entry_valid_or_report+0xdf/0x190 lib/list_debug.c:52
Code: 49 39 1f 0f 85 9e 00 00 00 b0 01 5b 41 5c 41 5d 41 5e 41 5f c3 cc cc cc cc cc 48 c7 c7 a0 fc 29 8c 48 89 de e8 42 ee 63 fc 90 <0f> 0b 48 c7 c7 00 fd 29 8c 48 89 de e8 30 ee 63 fc 90 0f 0b 4c 89
RSP: 0018:ffffc90000007d58 EFLAGS: 00010046
RAX: 0000000000000033 RBX: ffff888062374490 RCX: a3071ccae6415100
RDX: 0000000000000100 RSI: 0000000000000101 RDI: 0000000000000000
RBP: 0000000000000203 R08: ffffc90000007ae7 R09: 1ffff92000000f5c
R10: dffffc0000000000 R11: fffff52000000f5d R12: 1ffff1100c46e892
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000
FS: 000055556ad2b500(0000) GS:ffff888125002000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f01f8232368 CR3: 0000000061fe0000 CR4: 00000000003526f0
----------------
Code disassembly (best guess):
0: 8b 7c 24 08 mov 0x8(%rsp),%edi
4: 4c 89 ee mov %r13,%rsi
7: e8 28 f6 ff ff call 0xfffff634
c: 4d 85 ff test %r15,%r15
f: 0f 84 7a 02 00 00 je 0x28f
15: 89 c5 mov %eax,%ebp
17: 4c 89 eb mov %r13,%rbx
1a: 4d 8d 67 20 lea 0x20(%r15),%r12
1e: 4c 89 e0 mov %r12,%rax
21: 48 c1 e8 03 shr $0x3,%rax
25: 42 0f b6 04 30 movzbl (%rax,%r14,1),%eax
* 2a: 84 c0 test %al,%al <-- trapping instruction
2c: 0f 85 ba 01 00 00 jne 0x1ec
32: 45 8b 24 24 mov (%r12),%r12d
36: 89 ef mov %ebp,%edi
38: 44 89 e6 mov %r12d,%esi
3b: e8 34 fd 55 ff call 0xff55fd74