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: 1 PID: 822 Comm: kworker/u4:10 Not tainted 5.19.0-rc7-next-20220718 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Workqueue: netns cleanup_net Call Trace: dump_stack_lvl+0x8b/0xb3 register_lock_class+0x1597/0x1890 __lock_acquire+0x102/0x5e70 lock_acquire+0x1a2/0x530 _raw_spin_lock_bh+0x2f/0x40 ieee80211_do_stop+0xbe/0x1dd0 ieee80211_stop+0xc5/0x600 __dev_close_many+0x1b8/0x2f0 dev_close_many+0x1b0/0x450 dev_close+0x13a/0x1c0 cfg80211_shutdown_all_interfaces+0x96/0x1f0 ieee80211_remove_interfaces+0xe3/0x690 ieee80211_unregister_hw+0x47/0x1f0 hwsim_exit_net+0x49a/0xb90 ops_exit_list+0xb3/0x180 cleanup_net+0x484/0x9e0 process_one_work+0xa0f/0x1690 worker_thread+0x637/0x1260 kthread+0x2ed/0x3a0 ret_from_fork+0x22/0x30