watchdog: BUG: soft lockup - CPU#1 stuck for 21s! [syz-executor.4:4413] Modules linked in: irq event stamp: 6977337 hardirqs last enabled at (6977336): [] asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 hardirqs last disabled at (6977337): [] sysvec_apic_timer_interrupt+0xb/0xa0 arch/x86/kernel/apic/apic.c:1094 softirqs last enabled at (6893762): [] asm_call_irq_on_stack+0x12/0x20 softirqs last disabled at (6893765): [] asm_call_irq_on_stack+0x12/0x20 CPU: 1 PID: 4413 Comm: syz-executor.4 Not tainted 5.10.222 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:__iterate_interfaces+0x89/0x550 net/mac80211/util.c:775 Code: 4c 39 f3 0f 84 aa 01 00 00 48 bd 00 00 00 00 00 fc ff df e8 89 d2 7d fd 4c 8d a3 d8 11 00 00 4c 89 e0 48 c1 e8 03 0f b6 04 28 <84> c0 74 08 3c 03 0f 8e 4a 04 00 00 8b bb d8 11 00 00 48 c7 c6 20 RSP: 0018:ffff88806cf09a70 EFLAGS: 00000212 RAX: 0000000000000000 RBX: ffff888048c14bc0 RCX: ffff88806cf09b20 RDX: ffff88804931b480 RSI: ffffffff83c2cec7 RDI: ffff88800fc30d00 RBP: dffffc0000000000 R08: 0000000000000000 R09: ffffffff868686e7 R10: 0000000000000000 R11: 0000000000000001 R12: ffff888048c15d98 R13: ffffffff82c89fd0 R14: ffff88800fc32678 R15: 0000000000000002 FS: 0000000000000000(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f64d300e998 CR3: 000000004578e000 CR4: 0000000000350ee0 Call Trace: ieee80211_iterate_active_interfaces_atomic+0x71/0x1c0 net/mac80211/util.c:828 mac80211_hwsim_addr_match+0x128/0x180 drivers/net/wireless/mac80211_hwsim.c:1066 mac80211_hwsim_tx_frame_no_nl.isra.0+0xb43/0x13d0 drivers/net/wireless/mac80211_hwsim.c:1504 mac80211_hwsim_tx_frame+0x152/0x1e0 drivers/net/wireless/mac80211_hwsim.c:1716 mac80211_hwsim_beacon_tx+0x494/0x940 drivers/net/wireless/mac80211_hwsim.c:1770 __iterate_interfaces+0x1f0/0x550 net/mac80211/util.c:792 ieee80211_iterate_active_interfaces_atomic+0x71/0x1c0 net/mac80211/util.c:828 mac80211_hwsim_beacon+0xd1/0x1d0 drivers/net/wireless/mac80211_hwsim.c:1793 __run_hrtimer kernel/time/hrtimer.c:1584 [inline] __hrtimer_run_queues+0x632/0xb40 kernel/time/hrtimer.c:1648 hrtimer_run_softirq+0x148/0x310 kernel/time/hrtimer.c:1665 __do_softirq+0x1b8/0x7c9 kernel/softirq.c:298 asm_call_irq_on_stack+0x12/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x80/0xa0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu kernel/softirq.c:423 [inline] irq_exit_rcu+0x114/0x1b0 kernel/softirq.c:435 sysvec_apic_timer_interrupt+0x43/0xa0 arch/x86/kernel/apic/apic.c:1094 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 RIP: 0010:___might_sleep+0x6/0x2f0 kernel/sched/core.c:7260 Code: c4 60 5b 5d 41 5c 41 5d 41 5e e9 a5 16 02 03 31 c0 eb c8 e8 ac 69 4e 00 eb a8 e8 55 9d c7 02 0f 1f 44 00 00 41 54 41 89 f4 55 <48> 89 fd 53 89 d3 e8 2f a2 c7 02 85 c0 0f 85 8a 01 00 00 e8 22 a2 RSP: 0018:ffff888015307748 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 00007f201a4e9000 RCX: ffffffff815fe734 RDX: 0000000000000000 RSI: 000000000000054f RDI: ffffffff844d3ee0 RBP: 0000000000000004 R08: 0000000000000000 R09: ffff888019d19243 R10: 00007f201a4e9000 R11: 0000000000000001 R12: 000000000000054f R13: ffff888045c1f400 R14: dffffc0000000000 R15: 00007f201a569000 zap_pte_range mm/memory.c:1359 [inline] zap_pmd_range mm/memory.c:1404 [inline] zap_pud_range mm/memory.c:1433 [inline] zap_p4d_range mm/memory.c:1454 [inline] unmap_page_range+0x12c5/0x1fe0 mm/memory.c:1475 unmap_single_vma+0x198/0x300 mm/memory.c:1520 unmap_vmas+0x16d/0x300 mm/memory.c:1552 exit_mmap+0x27f/0x4f0 mm/mmap.c:3235 __mmput kernel/fork.c:1101 [inline] mmput+0xca/0x340 kernel/fork.c:1122 exit_mm kernel/exit.c:536 [inline] do_exit+0xa96/0x2600 kernel/exit.c:847 do_group_exit+0x125/0x310 kernel/exit.c:982 get_signal+0x4bc/0x22e0 kernel/signal.c:2751 arch_do_signal_or_restart+0x2b7/0x1990 arch/x86/kernel/signal.c:805 handle_signal_work kernel/entry/common.c:145 [inline] exit_to_user_mode_loop kernel/entry/common.c:169 [inline] exit_to_user_mode_prepare+0x10f/0x190 kernel/entry/common.c:199 syscall_exit_to_user_mode+0x38/0x1d0 kernel/entry/common.c:274 entry_SYSCALL_64_after_hwframe+0x67/0xd1 RIP: 0033:0x7f201c5f1b19 Code: Unable to access opcode bytes at RIP 0x7f201c5f1aef. RSP: 002b:00007f2019b67188 EFLAGS: 00000246 ORIG_RAX: 0000000000000124 RAX: 0000000000000003 RBX: 00007f201c704f60 RCX: 00007f201c5f1b19 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000005 RBP: 00007f201c64bf6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe1f93879f R14: 00007f2019b67300 R15: 0000000000022000 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 4424 Comm: syz-executor.2 Not tainted 5.10.222 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:mark_lock+0x64/0x2df0 kernel/locking/lockdep.c:4494 Code: bd 84 48 8d 04 13 48 c7 44 24 48 40 97 26 81 c7 00 f1 f1 f1 f1 c7 40 04 f1 f1 04 f2 c7 40 08 00 f2 f2 f2 c7 40 0c 00 f2 f2 f2 40 14 00 00 00 f3 c7 40 18 f3 f3 f3 f3 65 48 8b 04 25 28 00 00 RSP: 0018:ffff88806ce097a8 EFLAGS: 00000016 RAX: ffffed100d9c12fc RBX: 1ffff1100d9c12fc RCX: 1ffffffff0d11e62 RDX: dffffc0000000000 RSI: ffff8880498f0970 RDI: ffff8880498f0000 RBP: 0000000000000003 R08: 0000000000000000 R09: ffffffff86868747 R10: fffffbfff0d0d0e8 R11: 0000000000000001 R12: 0000000000000002 R13: dffffc0000000000 R14: ffff8880498f0948 R15: 0000000000000000 FS: 00007fd9a7b18700(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000558ca2683368 CR3: 000000000df00000 CR4: 0000000000350ef0 Call Trace: mark_held_locks+0x9e/0xe0 kernel/locking/lockdep.c:4134 __trace_hardirqs_on_caller kernel/locking/lockdep.c:4152 [inline] lockdep_hardirqs_on_prepare kernel/locking/lockdep.c:4220 [inline] lockdep_hardirqs_on_prepare+0x129/0x3e0 kernel/locking/lockdep.c:4172 trace_hardirqs_on+0x5b/0x180 kernel/trace/trace_preemptirq.c:49 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 RIP: 0010:cpu_relax arch/x86/include/asm/vdso/processor.h:19 [inline] RIP: 0010:virt_spin_lock arch/x86/include/asm/qspinlock.h:100 [inline] RIP: 0010:queued_spin_lock_slowpath+0x122/0x8c0 kernel/locking/qspinlock.c:326 Code: 00 00 00 65 48 2b 04 25 28 00 00 00 0f 85 09 07 00 00 48 81 c4 88 00 00 00 5b 5d 41 5c 41 5d 41 5e 41 5f e9 f0 a5 f8 02 f3 90 73 ff ff ff 44 8b 74 24 48 41 81 fe 00 01 00 00 0f 84 e1 00 00 RSP: 0018:ffff88806ce09a38 EFLAGS: 00000202 RAX: 0000000000000000 RBX: ffffffff87a04140 RCX: ffffffff81279957 RDX: fffffbfff0f40829 RSI: 0000000000000004 RDI: ffffffff87a04140 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff87a04143 R10: fffffbfff0f40828 R11: 0000000000000001 R12: 0000000000000003 R13: fffffbfff0f40828 R14: 0000000000000001 R15: 1ffff1100d9c1348 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline] do_raw_spin_lock+0x1dc/0x260 kernel/locking/spinlock_debug.c:113 spin_lock include/linux/spinlock.h:354 [inline] mac80211_hwsim_tx_frame_no_nl.isra.0+0x695/0x13d0 drivers/net/wireless/mac80211_hwsim.c:1450 mac80211_hwsim_tx_frame+0x152/0x1e0 drivers/net/wireless/mac80211_hwsim.c:1716 mac80211_hwsim_beacon_tx+0x494/0x940 drivers/net/wireless/mac80211_hwsim.c:1770 __iterate_interfaces+0x1f0/0x550 net/mac80211/util.c:792 ieee80211_iterate_active_interfaces_atomic+0x71/0x1c0 net/mac80211/util.c:828 mac80211_hwsim_beacon+0xd1/0x1d0 drivers/net/wireless/mac80211_hwsim.c:1793 __run_hrtimer kernel/time/hrtimer.c:1584 [inline] __hrtimer_run_queues+0x632/0xb40 kernel/time/hrtimer.c:1648 hrtimer_run_softirq+0x148/0x310 kernel/time/hrtimer.c:1665 __do_softirq+0x1b8/0x7c9 kernel/softirq.c:298 asm_call_irq_on_stack+0x12/0x20 __run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline] run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline] do_softirq_own_stack+0x80/0xa0 arch/x86/kernel/irq_64.c:77 invoke_softirq kernel/softirq.c:393 [inline] __irq_exit_rcu kernel/softirq.c:423 [inline] irq_exit_rcu+0x114/0x1b0 kernel/softirq.c:435 sysvec_apic_timer_interrupt+0x43/0xa0 arch/x86/kernel/apic/apic.c:1094 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 RIP: 0010:_find_next_bit.constprop.0+0x5/0x200 lib/find_bit.c:31 Code: e8 5b 5d 41 5c 41 5d 41 5e 41 5f e9 95 36 2e 02 48 89 ef e8 9d 89 7a ff eb bb 66 66 2e 0f 1f 84 00 00 00 00 00 41 57 49 89 cf <41> 56 49 89 f6 41 55 4d 89 c5 41 54 49 89 d4 55 53 48 83 ec 10 48 RSP: 0018:ffff888048d67060 EFLAGS: 00000246 RAX: 0000000000040000 RBX: ffff88800e1ae020 RCX: 0000000000000000 RDX: 0000000000000002 RSI: 0000000000000000 RDI: ffff88800e1ae240 RBP: ffff88800e1ae240 R08: ffffffffffffffff R09: ffffffff86868767 R10: fffffbfff0d0d0ec R11: 0000000000000001 R12: 0000000000000002 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000000 __sbitmap_get_word+0x3a/0x130 lib/sbitmap.c:114 sbitmap_find_bit_in_index lib/sbitmap.c:145 [inline] sbitmap_get+0x15c/0x440 lib/sbitmap.c:175 __sbitmap_queue_get+0xb1/0x260 lib/sbitmap.c:435 __blk_mq_get_tag+0xb6/0x610 block/blk-mq-tag.c:86 blk_mq_get_tag+0x2a3/0xb10 block/blk-mq-tag.c:110 __blk_mq_alloc_request+0x14f/0x4e0 block/blk-mq.c:384 blk_mq_submit_bio+0x411/0x1890 block/blk-mq.c:2196 __submit_bio_noacct_mq block/blk-core.c:1020 [inline] submit_bio_noacct+0xc64/0x1010 block/blk-core.c:1053 submit_bio+0xf3/0x4e0 block/blk-core.c:1123 ext4_io_submit+0x181/0x210 fs/ext4/page-io.c:384 ext4_writepages+0x1265/0x3350 fs/ext4/inode.c:2851 do_writepages+0xee/0x2a0 mm/page-writeback.c:2374 __filemap_fdatawrite_range+0x24b/0x2f0 mm/filemap.c:422 filemap_write_and_wait_range mm/filemap.c:655 [inline] filemap_write_and_wait_range+0x65/0x100 mm/filemap.c:649 ext4_dio_write_iter fs/ext4/file.c:603 [inline] ext4_file_write_iter+0xc87/0x18d0 fs/ext4/file.c:681 call_write_iter include/linux/fs.h:2002 [inline] new_sync_write+0x42c/0x660 fs/read_write.c:518 vfs_write+0x7c0/0xb10 fs/read_write.c:605 ksys_write+0x12d/0x260 fs/read_write.c:658 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xd1 RIP: 0033:0x7fd9aa5a2b19 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd9a7b18188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fd9aa6b5f60 RCX: 00007fd9aa5a2b19 RDX: 000000000000fdef RSI: 00000000200001c0 RDI: 0000000000000003 RBP: 00007fd9aa5fcf6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc4b7986df R14: 00007fd9a7b18300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: 4c 39 f3 cmp %r14,%rbx 3: 0f 84 aa 01 00 00 je 0x1b3 9: 48 bd 00 00 00 00 00 movabs $0xdffffc0000000000,%rbp 10: fc ff df 13: e8 89 d2 7d fd callq 0xfd7dd2a1 18: 4c 8d a3 d8 11 00 00 lea 0x11d8(%rbx),%r12 1f: 4c 89 e0 mov %r12,%rax 22: 48 c1 e8 03 shr $0x3,%rax 26: 0f b6 04 28 movzbl (%rax,%rbp,1),%eax * 2a: 84 c0 test %al,%al <-- trapping instruction 2c: 74 08 je 0x36 2e: 3c 03 cmp $0x3,%al 30: 0f 8e 4a 04 00 00 jle 0x480 36: 8b bb d8 11 00 00 mov 0x11d8(%rbx),%edi 3c: 48 rex.W 3d: c7 .byte 0xc7 3e: c6 (bad) 3f: 20 .byte 0x20