list_del corruption, ffff888025af3090->next is NULL
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:53!
Oops: invalid opcode: 0000 [#1] SMP KASAN PTI
CPU: 1 UID: 0 PID: 5933 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 e9 52 5c f8 06 cc 48 c7 c7 a0 e8 27 8c 48 89 de e8 12 51 6e fc 90 <0f> 0b 48 c7 c7 00 e9 27 8c 48 89 de e8 00 51 6e fc 90 0f 0b 4c 89
RSP: 0018:ffffc90000a08d58 EFLAGS: 00010046
RAX: 0000000000000033 RBX: ffff888025af3090 RCX: 3621ff6792660a00
RDX: 0000000000000100 RSI: 0000000080000102 RDI: 0000000000000000
RBP: 0000000000000203 R08: ffffc90000a08ae7 R09: 1ffff9200014115c
R10: dffffc0000000000 R11: fffff5200014115d R12: 1ffff11004b5e612
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000
FS: 0000555572f1d500(0000) GS:ffff888125557000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000558dd6319078 CR3: 00000000274c0000 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:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:179 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80 kernel/locking/spinlock.c:194
Code: f7 e8 3d b7 f0 f5 f7 c3 00 02 00 00 74 05 e8 20 0e 1c f6 9c 58 a9 00 02 00 00 75 27 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 54 69 e2 f5 65 8b 05 6d 11 6b 07 85 c0 74 18 5b 41 5e e9 91 48
RSP: 0018:ffffc90003f67288 EFLAGS: 00000206
RAX: 0000000000000002 RBX: 0000000000000246 RCX: 0000000080000001
RDX: 0000000000000007 RSI: ffffffff8defcb55 RDI: 0000000000000001
RBP: ffffc90003f67330 R08: ffffffff9011e8b7 R09: 1ffffffff2023d16
R10: dffffc0000000000 R11: fffffbfff2023d17 R12: ffff88801b02d900
R13: ffff88801b02f000 R14: ffff88801b02d900 R15: 0000000000000000
spin_unlock_irqrestore include/linux/spinlock.h:407 [inline]
__slab_free+0x211/0x2b0 mm/slub.c:-1
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x97/0x100 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:350
kasan_slab_alloc include/linux/kasan.h:253 [inline]
slab_post_alloc_hook mm/slub.c:4515 [inline]
slab_alloc_node mm/slub.c:4844 [inline]
kmem_cache_alloc_node_noprof+0x384/0x690 mm/slub.c:4896
__alloc_skb+0x1d0/0x7d0 net/core/skbuff.c:702
alloc_skb include/linux/skbuff.h:1383 [inline]
nlmsg_new include/net/netlink.h:1055 [inline]
rtmsg_ifinfo_build_skb+0x84/0x260 net/core/rtnetlink.c:4407
rtmsg_ifinfo_event net/core/rtnetlink.c:4449 [inline]
rtmsg_ifinfo+0x8c/0x1a0 net/core/rtnetlink.c:4458
netif_close_many+0x284/0x420 net/core/dev.c:1803
netif_close_many_and_unlock net/core/dev.c:12331 [inline]
unregister_netdevice_many_notify+0x81f/0x2380 net/core/dev.c:12395
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:0x7f6264d5cfce
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:00007fff94522e78 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000555572f1d500 RCX: 00007f6264d5cfce
RDX: 0000000000000001 RSI: 00007fff94522f00 RDI: 0000000000000005
RBP: 00007f6264e3345c R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fff94522f00 R14: 00007f6265b44620 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 e9 52 5c f8 06 cc 48 c7 c7 a0 e8 27 8c 48 89 de e8 12 51 6e fc 90 <0f> 0b 48 c7 c7 00 e9 27 8c 48 89 de e8 00 51 6e fc 90 0f 0b 4c 89
RSP: 0018:ffffc90000a08d58 EFLAGS: 00010046
RAX: 0000000000000033 RBX: ffff888025af3090 RCX: 3621ff6792660a00
RDX: 0000000000000100 RSI: 0000000080000102 RDI: 0000000000000000
RBP: 0000000000000203 R08: ffffc90000a08ae7 R09: 1ffff9200014115c
R10: dffffc0000000000 R11: fffff5200014115d R12: 1ffff11004b5e612
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000000
FS: 0000555572f1d500(0000) GS:ffff888125557000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000558dd6319078 CR3: 00000000274c0000 CR4: 00000000003526f0
----------------
Code disassembly (best guess):
0: f7 e8 imul %eax
2: 3d b7 f0 f5 f7 cmp $0xf7f5f0b7,%eax
7: c3 ret
8: 00 02 add %al,(%rdx)
a: 00 00 add %al,(%rax)
c: 74 05 je 0x13
e: e8 20 0e 1c f6 call 0xf61c0e33
13: 9c pushf
14: 58 pop %rax
15: a9 00 02 00 00 test $0x200,%eax
1a: 75 27 jne 0x43
1c: f7 c3 00 02 00 00 test $0x200,%ebx
22: 74 01 je 0x25
24: fb sti
25: bf 01 00 00 00 mov $0x1,%edi
* 2a: e8 54 69 e2 f5 call 0xf5e26983 <-- trapping instruction
2f: 65 8b 05 6d 11 6b 07 mov %gs:0x76b116d(%rip),%eax # 0x76b11a3
36: 85 c0 test %eax,%eax
38: 74 18 je 0x52
3a: 5b pop %rbx
3b: 41 5e pop %r14
3d: e9 .byte 0xe9
3e: 91 xchg %eax,%ecx
3f: 48 rex.W