INFO: trying to register non-static key. The code is fine but needs lockdep annotation, or maybe you didn't initialize this object before use? turning off the locking correctness validator. CPU: 0 PID: 32344 Comm: syz-executor.0 Not tainted 6.0.0-rc4-syzkaller-17255-ga6b443748715 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 Call trace: dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:156 show_stack+0x2c/0x54 arch/arm64/kernel/stacktrace.c:163 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x104/0x16c lib/dump_stack.c:106 dump_stack+0x1c/0x58 lib/dump_stack.c:113 assign_lock_key+0x134/0x140 kernel/locking/lockdep.c:979 register_lock_class+0xc4/0x2f8 kernel/locking/lockdep.c:1292 __lock_acquire+0xa8/0x30a4 kernel/locking/lockdep.c:4932 lock_acquire+0x100/0x1f8 kernel/locking/lockdep.c:5666 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x54/0x6c kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:354 [inline] __fib6_clean_all+0xf0/0x2c4 net/ipv6/ip6_fib.c:2256 fib6_clean_all+0x3c/0x50 net/ipv6/ip6_fib.c:2268 rt6_sync_down_dev net/ipv6/route.c:4894 [inline] rt6_disable_ip+0x80/0xc8 net/ipv6/route.c:4899 addrconf_ifdown+0x90/0xc30 net/ipv6/addrconf.c:3746 addrconf_notify+0x234/0x7f0 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0x7c/0x108 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:1945 [inline] call_netdevice_notifiers_extack net/core/dev.c:1983 [inline] call_netdevice_notifiers net/core/dev.c:1997 [inline] netdev_wait_allrefs_any net/core/dev.c:10250 [inline] netdev_run_todo+0x340/0x6f0 net/core/dev.c:10364 rtnl_unlock+0x14/0x20 net/core/rtnetlink.c:147 tun_detach drivers/net/tun.c:704 [inline] tun_chr_close+0xe8/0xfc drivers/net/tun.c:3455 __fput+0x198/0x3dc fs/file_table.c:320 ____fput+0x20/0x30 fs/file_table.c:353 task_work_run+0xc4/0x14c kernel/task_work.c:177 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x26c/0xbe0 kernel/exit.c:795 do_group_exit+0x70/0xe8 kernel/exit.c:925 get_signal+0xb0c/0xb40 kernel/signal.c:2857 do_signal+0x128/0x438 arch/arm64/kernel/signal.c:1071 do_notify_resume+0xc0/0x1f0 arch/arm64/kernel/signal.c:1124 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x150 arch/arm64/kernel/entry-common.c:625 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:642 el0t_64_sync+0x18c/0x190 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 32344 at net/ipv6/ip6_fib.c:2068 fib6_walk_continue+0x278/0x2b0 net/ipv6/ip6_fib.c:2068 Modules linked in: CPU: 0 PID: 32344 Comm: syz-executor.0 Not tainted 6.0.0-rc4-syzkaller-17255-ga6b443748715 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : fib6_walk_continue+0x278/0x2b0 net/ipv6/ip6_fib.c:2068 lr : fib6_walk_continue+0x278/0x2b0 net/ipv6/ip6_fib.c:2068 sp : ffff800014343790 x29: ffff800014343790 x28: 0000000000000000 x27: ffff0000fd849000 x26: ffff0000fd692510 x25: ffff0000fd849018 x24: ffff0000fd692510 x23: ffff0000fd692520 x22: ffff0000fd691a80 x21: ffff80000b773de8 x20: 0000000000000000 x19: ffff8000143437f8 x18: 0000000000000016 x17: 6e69676e45206574 x16: 0000000000000202 x15: 0000000000000000 x14: 0000000000000000 x13: 205d343433323354 x12: 5b5d363630343336 x11: ff8080000b787ad4 x10: 0000000000000000 x9 : ffff80000b787ad4 x8 : ffff000102734f80 x7 : 545b5d3636303433 x6 : ffff80000b786330 x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000000 x2 : ffff000102734f80 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: fib6_walk_continue+0x278/0x2b0 net/ipv6/ip6_fib.c:2068 fib6_walk net/ipv6/ip6_fib.c:2161 [inline] fib6_clean_tree net/ipv6/ip6_fib.c:2241 [inline] __fib6_clean_all+0x16c/0x2c4 net/ipv6/ip6_fib.c:2257 fib6_clean_all+0x3c/0x50 net/ipv6/ip6_fib.c:2268 rt6_sync_down_dev net/ipv6/route.c:4894 [inline] rt6_disable_ip+0x80/0xc8 net/ipv6/route.c:4899 addrconf_ifdown+0x90/0xc30 net/ipv6/addrconf.c:3746 addrconf_notify+0x234/0x7f0 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0x7c/0x108 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:1945 [inline] call_netdevice_notifiers_extack net/core/dev.c:1983 [inline] call_netdevice_notifiers net/core/dev.c:1997 [inline] netdev_wait_allrefs_any net/core/dev.c:10250 [inline] netdev_run_todo+0x340/0x6f0 net/core/dev.c:10364 rtnl_unlock+0x14/0x20 net/core/rtnetlink.c:147 tun_detach drivers/net/tun.c:704 [inline] tun_chr_close+0xe8/0xfc drivers/net/tun.c:3455 __fput+0x198/0x3dc fs/file_table.c:320 ____fput+0x20/0x30 fs/file_table.c:353 task_work_run+0xc4/0x14c kernel/task_work.c:177 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x26c/0xbe0 kernel/exit.c:795 do_group_exit+0x70/0xe8 kernel/exit.c:925 get_signal+0xb0c/0xb40 kernel/signal.c:2857 do_signal+0x128/0x438 arch/arm64/kernel/signal.c:1071 do_notify_resume+0xc0/0x1f0 arch/arm64/kernel/signal.c:1124 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x150 arch/arm64/kernel/entry-common.c:625 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:642 el0t_64_sync+0x18c/0x190 irq event stamp: 8248 hardirqs last enabled at (8247): [] __local_bh_enable_ip+0x13c/0x1a4 kernel/softirq.c:401 hardirqs last disabled at (8245): [] __local_bh_enable_ip+0xc4/0x1a4 kernel/softirq.c:378 softirqs last enabled at (8246): [] spin_unlock_bh include/linux/spinlock.h:394 [inline] softirqs last enabled at (8246): [] clusterip_netdev_event+0x188/0x1ac net/ipv4/netfilter/ipt_CLUSTERIP.c:233 softirqs last disabled at (8248): [] spin_lock_bh include/linux/spinlock.h:354 [inline] softirqs last disabled at (8248): [] __fib6_clean_all+0xf0/0x2c4 net/ipv6/ip6_fib.c:2256 ---[ end trace 0000000000000000 ]--- unregister_netdevice: waiting for syz_tun to become free. Usage count = 2 Unable to handle kernel NULL pointer dereference at virtual address 0000000000000024 Mem abort info: ESR = 0x0000000096000004 EC = 0x25: DABT (current EL), IL = 32 bits SET = 0, FnV = 0 EA = 0, S1PTW = 0 FSC = 0x04: level 0 translation fault Data abort info: ISV = 0, ISS = 0x00000004 CM = 0, WnR = 0 user pgtable: 4k pages, 48-bit VAs, pgdp=0000000109b75000 [0000000000000024] pgd=0000000000000000, p4d=0000000000000000 Internal error: Oops: 96000004 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 32344 Comm: syz-executor.0 Tainted: G W 6.0.0-rc4-syzkaller-17255-ga6b443748715 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 pstate: 00400005 (nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : smc_pnet_remove_by_ndev+0x4c/0x194 net/smc/smc_pnet.c:230 lr : smc_pnet_remove_by_ndev+0x3c/0x194 net/smc/smc_pnet.c:228 sp : ffff8000143439d0 x29: ffff8000143439d0 x28: ffff0000fdc0c5a0 x27: ffff800014343aa8 x26: ffff80000d8c6350 x25: 0000000000000001 x24: ffff80000d8c0890 x23: ffff0000fd803e90 x22: 0000000000000000 x21: 0000000000000006 x20: ffff0000fdc0c000 x19: ffff0000fd803e00 x18: 0000000000000055 x17: 000000000000b67e x16: 0000000000000000 x15: 0000000000000000 x14: 0000000000000000 x13: 0000000000000006 x12: ffff80000d8c1008 x11: ff808000095a53fc x10: ffff80000d339358 x9 : a890be53d3b0d700 x8 : a890be53d3b0d700 x7 : 0001000100000007 x6 : ffff80000bde2c70 x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000000 x2 : ffff000102734f80 x1 : 0000000000000000 x0 : 0000000000000000 Call trace: smc_pnet_remove_by_ndev+0x4c/0x194 net/smc/smc_pnet.c:229 smc_pnet_netdev_event+0x194/0x258 net/smc/smc_pnet.c:834 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0x7c/0x108 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:1945 [inline] call_netdevice_notifiers_extack net/core/dev.c:1983 [inline] call_netdevice_notifiers net/core/dev.c:1997 [inline] netdev_wait_allrefs_any net/core/dev.c:10250 [inline] netdev_run_todo+0x340/0x6f0 net/core/dev.c:10364 rtnl_unlock+0x14/0x20 net/core/rtnetlink.c:147 tun_detach drivers/net/tun.c:704 [inline] tun_chr_close+0xe8/0xfc drivers/net/tun.c:3455 __fput+0x198/0x3dc fs/file_table.c:320 ____fput+0x20/0x30 fs/file_table.c:353 task_work_run+0xc4/0x14c kernel/task_work.c:177 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x26c/0xbe0 kernel/exit.c:795 do_group_exit+0x70/0xe8 kernel/exit.c:925 get_signal+0xb0c/0xb40 kernel/signal.c:2857 do_signal+0x128/0x438 arch/arm64/kernel/signal.c:1071 do_notify_resume+0xc0/0x1f0 arch/arm64/kernel/signal.c:1124 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x150 arch/arm64/kernel/entry-common.c:625 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:642 el0t_64_sync+0x18c/0x190 Code: aa1303f7 f8490ef6 eb1702df 540002e0 (b94026d5) ---[ end trace 0000000000000000 ]--- ---------------- Code disassembly (best guess): 0: aa1303f7 mov x23, x19 4: f8490ef6 ldr x22, [x23, #144]! 8: eb1702df cmp x22, x23 c: 540002e0 b.eq 0x68 // b.none * 10: b94026d5 ldr w21, [x22, #36] <-- trapping instruction