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: 56 Comm: kworker/u4:4 Not tainted 5.19.0-rc8-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 Workqueue: netns cleanup_net Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 assign_lock_key+0x22a/0x240 kernel/locking/lockdep.c:979 register_lock_class+0x287/0x9d0 kernel/locking/lockdep.c:1292 __lock_acquire+0xe9/0x1f80 kernel/locking/lockdep.c:4932 lock_acquire+0x1a7/0x400 kernel/locking/lockdep.c:5665 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:354 [inline] ieee80211_do_stop+0x115/0x1cf0 net/mac80211/iface.c:380 ieee80211_stop+0x45f/0x4d0 net/mac80211/iface.c:680 __dev_close_many+0x2ef/0x3e0 net/core/dev.c:1516 dev_close_many+0x275/0x5d0 net/core/dev.c:1541 dev_close+0x1b1/0x2b0 net/core/dev.c:1567 cfg80211_shutdown_all_interfaces+0xc0/0x1e0 net/wireless/core.c:273 ieee80211_remove_interfaces+0x19a/0x840 net/mac80211/iface.c:2212 ieee80211_unregister_hw+0x57/0x220 net/mac80211/main.c:1400 mac80211_hwsim_del_radio+0x2ba/0x4a0 drivers/net/wireless/mac80211_hwsim.c:3964 hwsim_exit_net+0x5d3/0x680 drivers/net/wireless/mac80211_hwsim.c:4731 ops_exit_list net/core/net_namespace.c:162 [inline] cleanup_net+0x758/0xc50 net/core/net_namespace.c:594 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30