netdevsim netdevsim2 netdevsim3 (unregistering): unset [1, 0] type 2 family 0 port 6081 - 0 Oops: general protection fault, probably for non-canonical address 0xdffffc0000000016: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x00000000000000b0-0x00000000000000b7] CPU: 3 UID: 0 PID: 17907 Comm: syz-executor Not tainted 6.12.0-rc4-syzkaller-00047-gc2ee9f594da8 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:__fib6_drop_pcpu_from.part.0+0x199/0x510 net/ipv6/ip6_fib.c:987 Code: 48 c1 ea 03 42 80 3c 32 00 0f 85 5e 03 00 00 4c 8b 28 4d 85 ed 74 2e e8 b5 e6 cb f7 49 8d bd 90 00 00 00 48 89 f8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 24 03 00 00 49 8b 85 90 00 00 00 4c 39 e0 0f RSP: 0018:ffffc90002ec6df0 EFLAGS: 00010202 RAX: 0000000000000016 RBX: 0000000000000001 RCX: 1ffffffff1b03771 RDX: ffff888024e74880 RSI: ffffffff89c0d19b RDI: 00000000000000b0 RBP: ffff88802570e4b8 R08: 0000000000000005 R09: 0000000000000007 R10: 0000000000000001 R11: 0000000000000000 R12: ffff88802570e400 R13: 0000000000000020 R14: dffffc0000000000 R15: ffffed1004ae1ca2 FS: 0000000000000000(0000) GS:ffff88802b700000(0063) knlGS:00000000575b1440 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000020da2000 CR3: 000000006cf82000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000000e DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: __fib6_drop_pcpu_from net/ipv6/ip6_fib.c:1030 [inline] fib6_drop_pcpu_from net/ipv6/ip6_fib.c:1031 [inline] fib6_purge_rt+0x80c/0x9e0 net/ipv6/ip6_fib.c:1042 fib6_del_route net/ipv6/ip6_fib.c:2002 [inline] fib6_del+0xa70/0x1790 net/ipv6/ip6_fib.c:2047 fib6_clean_node+0x426/0x5b0 net/ipv6/ip6_fib.c:2209 fib6_walk_continue+0x44f/0x8d0 net/ipv6/ip6_fib.c:2131 fib6_walk+0x182/0x370 net/ipv6/ip6_fib.c:2179 fib6_clean_tree+0xd7/0x120 net/ipv6/ip6_fib.c:2259 __fib6_clean_all+0x100/0x2d0 net/ipv6/ip6_fib.c:2275 rt6_sync_down_dev net/ipv6/route.c:4908 [inline] rt6_disable_ip+0x2ef/0x940 net/ipv6/route.c:4913 addrconf_ifdown.isra.0+0x126/0x1a20 net/ipv6/addrconf.c:3858 addrconf_notify+0x220/0x19c0 net/ipv6/addrconf.c:3781 notifier_call_chain+0xb9/0x410 kernel/notifier.c:93 call_netdevice_notifiers_info+0xbe/0x140 net/core/dev.c:1996 call_netdevice_notifiers_extack net/core/dev.c:2034 [inline] call_netdevice_notifiers net/core/dev.c:2048 [inline] dev_close_many+0x333/0x6a0 net/core/dev.c:1589 unregister_netdevice_many_notify+0x489/0x1e50 net/core/dev.c:11377 unregister_netdevice_many net/core/dev.c:11465 [inline] unregister_netdevice_queue+0x307/0x3f0 net/core/dev.c:11339 unregister_netdevice include/linux/netdevice.h:3118 [inline] nsim_destroy+0x107/0x6b0 drivers/net/netdevsim/netdev.c:778 __nsim_dev_port_del+0x189/0x240 drivers/net/netdevsim/dev.c:1428 nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1440 [inline] nsim_dev_reload_destroy+0x108/0x4d0 drivers/net/netdevsim/dev.c:1661 nsim_drv_remove+0x52/0x1d0 drivers/net/netdevsim/dev.c:1676 device_remove+0xc8/0x170 drivers/base/dd.c:567 __device_release_driver drivers/base/dd.c:1273 [inline] device_release_driver_internal+0x44a/0x610 drivers/base/dd.c:1296 bus_remove_device+0x22f/0x420 drivers/base/bus.c:576 device_del+0x396/0x9f0 drivers/base/core.c:3864 device_unregister+0x1d/0xc0 drivers/base/core.c:3905 nsim_bus_dev_del drivers/net/netdevsim/bus.c:462 [inline] del_device_store+0x346/0x4b0 drivers/net/netdevsim/bus.c:226 bus_attr_store+0x71/0xb0 drivers/base/bus.c:172 sysfs_kf_write+0x117/0x170 fs/sysfs/file.c:136 kernfs_fop_write_iter+0x33d/0x500 fs/kernfs/file.c:334 new_sync_write fs/read_write.c:590 [inline] vfs_write+0x6b5/0x1140 fs/read_write.c:683 ksys_write+0x12f/0x260 fs/read_write.c:736 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x73/0x120 arch/x86/entry/common.c:386 do_fast_syscall_32+0x32/0x80 arch/x86/entry/common.c:411 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf7f9f579 Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000ffebfa90 EFLAGS: 00000293 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00000000ffebfad0 RDX: 0000000000000001 RSI: 00000000f742bff4 RDI: 0000000000000000 RBP: 0000000000000005 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__fib6_drop_pcpu_from.part.0+0x199/0x510 net/ipv6/ip6_fib.c:987 Code: 48 c1 ea 03 42 80 3c 32 00 0f 85 5e 03 00 00 4c 8b 28 4d 85 ed 74 2e e8 b5 e6 cb f7 49 8d bd 90 00 00 00 48 89 f8 48 c1 e8 03 <42> 80 3c 30 00 0f 85 24 03 00 00 49 8b 85 90 00 00 00 4c 39 e0 0f RSP: 0018:ffffc90002ec6df0 EFLAGS: 00010202 RAX: 0000000000000016 RBX: 0000000000000001 RCX: 1ffffffff1b03771 RDX: ffff888024e74880 RSI: ffffffff89c0d19b RDI: 00000000000000b0 RBP: ffff88802570e4b8 R08: 0000000000000005 R09: 0000000000000007 R10: 0000000000000001 R11: 0000000000000000 R12: ffff88802570e400 R13: 0000000000000020 R14: dffffc0000000000 R15: ffffed1004ae1ca2 FS: 0000000000000000(0000) GS:ffff88802b700000(0063) knlGS:00000000575b1440 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000020da2000 CR3: 000000006cf82000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000000e DR6: 00000000ffff0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 c1 ea 03 shr $0x3,%rdx 4: 42 80 3c 32 00 cmpb $0x0,(%rdx,%r14,1) 9: 0f 85 5e 03 00 00 jne 0x36d f: 4c 8b 28 mov (%rax),%r13 12: 4d 85 ed test %r13,%r13 15: 74 2e je 0x45 17: e8 b5 e6 cb f7 call 0xf7cbe6d1 1c: 49 8d bd 90 00 00 00 lea 0x90(%r13),%rdi 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 30 00 cmpb $0x0,(%rax,%r14,1) <-- trapping instruction 2f: 0f 85 24 03 00 00 jne 0x359 35: 49 8b 85 90 00 00 00 mov 0x90(%r13),%rax 3c: 4c 39 e0 cmp %r12,%rax 3f: 0f .byte 0xf