watchdog: BUG: soft lockup - CPU#1 stuck for 144s! [syz-executor.2:10122] Modules linked in: irq event stamp: 12192775 hardirqs last enabled at (12192774): [] asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 hardirqs last disabled at (12192775): [] sysvec_apic_timer_interrupt+0xb/0xc0 arch/x86/kernel/apic/apic.c:1097 softirqs last enabled at (12176200): [] invoke_softirq kernel/softirq.c:432 [inline] softirqs last enabled at (12176200): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:636 softirqs last disabled at (12176205): [] invoke_softirq kernel/softirq.c:432 [inline] softirqs last disabled at (12176205): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:636 CPU: 1 PID: 10122 Comm: syz-executor.2 Not tainted 5.15.0-next-20211106-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:lock_is_held_type+0xff/0x140 kernel/locking/lockdep.c:5685 Code: 00 00 b8 ff ff ff ff 65 0f c1 05 5c ef b2 76 83 f8 01 75 29 9c 58 f6 c4 02 75 3d 48 f7 04 24 00 02 00 00 74 01 fb 48 83 c4 08 <44> 89 e8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 45 31 ed eb b9 0f 0b 48 RSP: 0000:ffffc90000dc0a08 EFLAGS: 00000282 RAX: 0000000000000046 RBX: 0000000000000005 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000103 RDI: 0000000000000000 RBP: ffffffff8bb839a0 R08: 0000000000000000 R09: ffffffff8d912bd7 R10: fffffbfff1b2257a R11: 0000000000000000 R12: ffff88802cc30000 R13: 0000000000000000 R14: 00000000ffffffff R15: ffff88802cc30b08 FS: 00007f15e8257700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8a324331b8 CR3: 00000000b2ff8000 CR4: 00000000003526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 00000000b8fecd19 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: lock_is_held include/linux/lockdep.h:283 [inline] rcu_read_lock_sched_held+0x3a/0x70 kernel/rcu/update.c:125 trace_lock_release include/trace/events/lock.h:58 [inline] lock_release+0x522/0x720 kernel/locking/lockdep.c:5648 mac80211_hwsim_addr_match+0x128/0x180 drivers/net/wireless/mac80211_hwsim.c:1131 mac80211_hwsim_tx_frame_no_nl.isra.0+0xb3d/0x1330 drivers/net/wireless/mac80211_hwsim.c:1570 mac80211_hwsim_tx_frame+0x1ee/0x2a0 drivers/net/wireless/mac80211_hwsim.c:1784 mac80211_hwsim_beacon_tx+0x49b/0x930 drivers/net/wireless/mac80211_hwsim.c:1838 __iterate_interfaces+0x1e5/0x520 net/mac80211/util.c:793 ieee80211_iterate_active_interfaces_atomic+0x70/0x180 net/mac80211/util.c:829 mac80211_hwsim_beacon+0xcd/0x1c0 drivers/net/wireless/mac80211_hwsim.c:1861 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x609/0xe50 kernel/time/hrtimer.c:1749 hrtimer_run_softirq+0x17b/0x360 kernel/time/hrtimer.c:1766 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:636 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x38/0x70 kernel/locking/spinlock.c:194 Code: 74 24 10 e8 9a 72 0a f8 48 89 ef e8 e2 e8 0a f8 81 e3 00 02 00 00 75 25 9c 58 f6 c4 02 75 2d 48 85 db 74 01 fb bf 01 00 00 00 e3 b1 fd f7 65 8b 05 dc 06 b0 76 85 c0 74 0a 5b 5d c3 e8 e0 a7 RSP: 0000:ffffc9000481fb20 EFLAGS: 00000206 RAX: 0000000000000006 RBX: 0000000000000200 RCX: 1ffffffff1ff0056 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffffffff906c61f0 R08: 0000000000000001 R09: ffffffff8ff72a27 R10: 0000000000000001 R11: 000000000000001f R12: 0000000000000003 R13: 0000000000000003 R14: dead000000000100 R15: dffffc0000000000 __debug_check_no_obj_freed lib/debugobjects.c:1002 [inline] debug_check_no_obj_freed+0x20c/0x420 lib/debugobjects.c:1023 free_pages_prepare mm/page_alloc.c:1343 [inline] free_pcp_prepare+0x2ae/0x870 mm/page_alloc.c:1389 free_unref_page_prepare mm/page_alloc.c:3309 [inline] free_unref_page+0x19/0x690 mm/page_alloc.c:3388 qlink_free mm/kasan/quarantine.c:146 [inline] qlist_free_all+0x5a/0xc0 mm/kasan/quarantine.c:165 kasan_quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:272 __kasan_slab_alloc+0xa2/0xc0 mm/kasan/common.c:444 kasan_slab_alloc include/linux/kasan.h:259 [inline] slab_post_alloc_hook mm/slab.h:519 [inline] slab_alloc_node mm/slub.c:3234 [inline] slab_alloc mm/slub.c:3242 [inline] kmem_cache_alloc+0x142/0x3a0 mm/slub.c:3247 alloc_inode+0x161/0x230 fs/inode.c:239 new_inode_pseudo fs/inode.c:946 [inline] new_inode+0x27/0x2f0 fs/inode.c:975 debugfs_get_inode+0x1a/0x130 fs/debugfs/inode.c:72 __debugfs_create_file+0x11a/0x540 fs/debugfs/inode.c:407 kvm_create_vm_debugfs arch/x86/kvm/../../../virt/kvm/kvm_main.c:992 [inline] kvm_dev_ioctl_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:4649 [inline] kvm_dev_ioctl+0x149b/0x1ab0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4676 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f15eace1ae9 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:00007f15e8257188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f15eadf4f60 RCX: 00007f15eace1ae9 RDX: 0000000000000000 RSI: 000000000000ae01 RDI: 0000000000000004 RBP: 00007f15ead3bf25 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff27db2c6f R14: 00007f15e8257300 R15: 0000000000022000 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 4903 Comm: syz-executor.2 Not tainted 5.15.0-next-20211106-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:mark_lock+0x50/0x17b0 kernel/locking/lockdep.c:4566 Code: 24 48 c7 44 24 38 b3 8a b5 41 48 c1 eb 03 48 c7 44 24 40 c8 11 37 8b 48 8d 04 13 48 c7 44 24 48 a0 5e 5c 81 c7 00 f1 f1 f1 f1 40 04 00 f2 f2 f2 c7 40 08 00 f2 f2 f2 c7 40 10 00 00 00 f3 c7 RSP: 0018:ffffc90000007480 EFLAGS: 00000802 RAX: fffff52000000e97 RBX: 1ffff92000000e97 RCX: 1ffffffff1feec16 RDX: dffffc0000000000 RSI: ffff88801ab1e278 RDI: ffff88801ab1d7c0 RBP: ffff88801ab1e29a R08: 0000000000000000 R09: ffffffff8ff72a0f R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000008 R13: ffff88801ab1d7c0 R14: 0000000000066000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7f4e7e6018 CR3: 000000004818f000 CR4: 00000000003526f0 Call Trace: mark_usage kernel/locking/lockdep.c:4526 [inline] __lock_acquire+0x8a7/0x54a0 kernel/locking/lockdep.c:4981 lock_acquire kernel/locking/lockdep.c:5637 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5602 seqcount_lockdep_reader_access include/linux/seqlock.h:103 [inline] timekeeping_get_delta kernel/time/timekeeping.c:252 [inline] timekeeping_get_ns kernel/time/timekeeping.c:386 [inline] ktime_get+0x147/0x470 kernel/time/timekeeping.c:829 clockevents_program_event+0x141/0x370 kernel/time/clockevents.c:326 tick_program_event+0xac/0x140 kernel/time/tick-oneshot.c:44 hrtimer_interrupt+0x36e/0x790 kernel/time/hrtimer.c:1824 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline] __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1103 sysvec_apic_timer_interrupt+0x40/0xc0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:434 [inline] RIP: 0010:__pv_queued_spin_lock_slowpath+0x3ba/0xb40 kernel/locking/qspinlock.c:508 Code: eb c6 45 01 01 41 bc 00 80 00 00 48 c1 e9 03 83 e3 07 41 be 01 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8d 2c 01 eb 0c f3 90 <41> 83 ec 01 0f 84 72 04 00 00 41 0f b6 45 00 38 d8 7f 08 84 c0 0f RSP: 0018:ffffc90000007a38 EFLAGS: 00000206 RAX: 0000000000000003 RBX: 0000000000000000 RCX: 1ffffffff1936508 RDX: 0000000000000001 RSI: 0000000000000101 RDI: 0000000000000000 RBP: ffffffff8c9b2840 R08: 0000000000000001 R09: ffffffff8ff72a67 R10: 0000000000000001 R11: 0000000000000080 R12: 00000000000055e2 R13: fffffbfff1936508 R14: 0000000000000001 R15: ffff8880b9c3a880 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline] queued_spin_lock include/asm-generic/qspinlock.h:85 [inline] do_raw_spin_lock+0x200/0x2b0 kernel/locking/spinlock_debug.c:115 spin_lock include/linux/spinlock.h:354 [inline] mac80211_hwsim_tx_frame_no_nl.isra.0+0x68f/0x1330 drivers/net/wireless/mac80211_hwsim.c:1516 mac80211_hwsim_tx_frame+0x1ee/0x2a0 drivers/net/wireless/mac80211_hwsim.c:1784 mac80211_hwsim_beacon_tx+0x49b/0x930 drivers/net/wireless/mac80211_hwsim.c:1838 __iterate_interfaces+0x1e5/0x520 net/mac80211/util.c:793 ieee80211_iterate_active_interfaces_atomic+0x70/0x180 net/mac80211/util.c:829 mac80211_hwsim_beacon+0xcd/0x1c0 drivers/net/wireless/mac80211_hwsim.c:1861 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x609/0xe50 kernel/time/hrtimer.c:1749 hrtimer_run_softirq+0x17b/0x360 kernel/time/hrtimer.c:1766 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:636 irq_exit_rcu+0x5/0x20 kernel/softirq.c:648 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:__sanitizer_cov_trace_const_cmp1+0x78/0x80 kernel/kcov.c:275 Code: 72 27 41 0f b6 fb 41 0f b6 c9 48 83 c2 01 48 c7 44 30 e0 01 00 00 00 48 89 7c 30 e8 48 89 4c 30 f0 4c 89 54 d8 20 48 89 10 5b 0f 1f 80 00 00 00 00 53 41 89 fb 41 89 f1 bf 03 00 00 00 65 48 RSP: 0018:ffffc900046ff6f8 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff88801ab1d7c0 RDX: 0000000000000000 RSI: ffff88801ab1d7c0 RDI: 0000000000000003 RBP: ffffea0001f55d40 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff81b6b5cd R11: 0000000000000000 R12: ffffea0001f55d40 R13: ffffea0001f55d48 R14: dffffc0000000000 R15: ffffc900046ffaa8 folio_test_swapcache include/linux/page-flags.h:487 [inline] PageSwapCache include/linux/page-flags.h:493 [inline] free_swap_cache+0x9d/0x200 mm/swap_state.c:291 free_pages_and_swap_cache+0x58/0x90 mm/swap_state.c:319 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:242 [inline] tlb_flush_mmu+0xe9/0x6b0 mm/mmu_gather.c:249 zap_pte_range mm/memory.c:1422 [inline] zap_pmd_range mm/memory.c:1471 [inline] zap_pud_range mm/memory.c:1500 [inline] zap_p4d_range mm/memory.c:1521 [inline] unmap_page_range+0x1cac/0x29f0 mm/memory.c:1542 unmap_single_vma+0x198/0x310 mm/memory.c:1587 unmap_vmas+0x16b/0x2f0 mm/memory.c:1619 exit_mmap+0x1d0/0x630 mm/mmap.c:3171 __mmput+0x122/0x4b0 kernel/fork.c:1164 mmput+0x56/0x60 kernel/fork.c:1185 exit_mm kernel/exit.c:507 [inline] do_exit+0xb27/0x2b40 kernel/exit.c:819 do_group_exit+0x125/0x310 kernel/exit.c:929 get_signal+0x47d/0x2220 kernel/signal.c:2830 arch_do_signal_or_restart+0x2a9/0x1c40 arch/x86/kernel/signal.c:868 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x17d/0x290 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f15eace1ae9 Code: Unable to access opcode bytes at RIP 0x7f15eace1abf. RSP: 002b:00007f15e8257218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007f15eadf4f68 RCX: 00007f15eace1ae9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f15eadf4f68 RBP: 00007f15eadf4f60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f15eadf4f6c R13: 00007fff27db2c6f R14: 00007f15e8257300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: b8 ff ff ff ff mov $0xffffffff,%eax 7: 65 0f c1 05 5c ef b2 xadd %eax,%gs:0x76b2ef5c(%rip) # 0x76b2ef6b e: 76 f: 83 f8 01 cmp $0x1,%eax 12: 75 29 jne 0x3d 14: 9c pushfq 15: 58 pop %rax 16: f6 c4 02 test $0x2,%ah 19: 75 3d jne 0x58 1b: 48 f7 04 24 00 02 00 testq $0x200,(%rsp) 22: 00 23: 74 01 je 0x26 25: fb sti 26: 48 83 c4 08 add $0x8,%rsp * 2a: 44 89 e8 mov %r13d,%eax <-- trapping instruction 2d: 5b pop %rbx 2e: 5d pop %rbp 2f: 41 5c pop %r12 31: 41 5d pop %r13 33: 41 5e pop %r14 35: 41 5f pop %r15 37: c3 retq 38: 45 31 ed xor %r13d,%r13d 3b: eb b9 jmp 0xfffffff6 3d: 0f 0b ud2 3f: 48 rex.W