------------[ cut here ]------------ WARNING: CPU: 2 PID: 60 at net/mac80211/offchannel.c:404 ieee80211_start_next_roc+0x24c/0x2c0 net/mac80211/offchannel.c:404 Modules linked in: CPU: 2 UID: 0 PID: 60 Comm: kworker/u32:3 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: events_unbound cfg80211_wiphy_work RIP: 0010:ieee80211_start_next_roc+0x24c/0x2c0 net/mac80211/offchannel.c:404 Code: 7b 40 e8 d7 76 db ff 48 83 c4 10 5b 5d e9 fc a5 b8 f6 e8 f7 a5 b8 f6 48 89 df e8 4f 5f ff ff e9 40 ff ff ff e8 e5 a5 b8 f6 90 <0f> 0b 90 e9 32 ff ff ff 48 c7 c7 34 c9 ab 90 e8 b0 0c 1e f7 e9 db RSP: 0018:ffffc900007bfa60 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff8880601a8e40 RCX: ffffffff8b0263b6 RDX: ffff888020532440 RSI: ffffffff8b0264eb RDI: 0000000000000001 RBP: 0000000000000001 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: ffff8880601aa8c0 R14: ffff8880601a8e40 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880976bd000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000080005f00 CR3: 000000006a1ae000 CR4: 0000000000352ef0 Call Trace: __ieee80211_scan_completed+0x4fb/0xe40 net/mac80211/scan.c:528 ieee80211_scan_work+0x3f1/0x2030 net/mac80211/scan.c:1184 cfg80211_wiphy_work+0x2c7/0x580 net/wireless/core.c:435 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3400 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x5d7/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245