BUG: sleeping function called from invalid context at net/mac80211/sta_info.c:1962 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 272, name: kworker/u4:5 INFO: lockdep is turned off. Preemption disabled at: [] __mutex_lock_common+0x15c/0x2f20 kernel/locking/mutex.c:955 CPU: 0 PID: 272 Comm: kworker/u4:5 Not tainted 5.10.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: phy9 ieee80211_iface_work Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x137/0x1be lib/dump_stack.c:118 ___might_sleep+0x3ef/0x530 kernel/sched/core.c:7298 sta_info_move_state+0x35/0x830 net/mac80211/sta_info.c:1962 sta_info_free+0xcb/0x330 net/mac80211/sta_info.c:274 sta_info_insert_rcu+0x1462/0x1fb0 net/mac80211/sta_info.c:738 ieee80211_ibss_finish_sta+0x21c/0x2e0 net/mac80211/ibss.c:592 ieee80211_ibss_work+0x218/0x1450 net/mac80211/ibss.c:1700 process_one_work+0x789/0xfc0 kernel/workqueue.c:2272 worker_thread+0xaa4/0x1460 kernel/workqueue.c:2418 kthread+0x36b/0x390 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296