watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor.3:5345] Modules linked in: irq event stamp: 3978511 hardirqs last enabled at (3978510): [] asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 hardirqs last disabled at (3978511): [] sysvec_apic_timer_interrupt+0xb/0xa0 arch/x86/kernel/apic/apic.c:1094 softirqs last enabled at (3955264): [] asm_call_irq_on_stack+0x12/0x20 softirqs last disabled at (3955267): [] asm_call_irq_on_stack+0x12/0x20 CPU: 0 PID: 5345 Comm: syz-executor.3 Not tainted 5.10.224 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:stack_trace_consume_entry+0xd3/0x160 kernel/stacktrace.c:92 Code: 02 00 0f 85 9a 00 00 00 8d 45 01 89 43 10 48 8b 03 48 8d 2c e8 48 b8 00 00 00 00 00 fc ff df 48 89 ea 48 c1 ea 03 80 3c 02 00 <75> 64 48 89 75 00 8b 43 08 39 43 10 0f 92 c0 48 83 c4 08 5b 5d e9 RSP: 0018:ffff88806ce09728 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: ffff88806ce09800 RCX: 1ffff1100d9c1201 RDX: 1ffff1100d9c1319 RSI: ffffffff81312a52 RDI: ffff88806ce0980c RBP: ffff88806ce098c8 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000032042 R11: 1ffff1100d9c12d6 R12: ffff88806ce09800 R13: 0000000000000000 R14: ffff888048d81a40 R15: 00000000000000e8 FS: 00007fcd04688700(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcd07183e25 CR3: 000000004962e000 CR4: 0000000000350ef0 Call Trace: arch_stack_walk+0x73/0xf0 arch/x86/kernel/stacktrace.c:27 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:121 kasan_save_stack+0x1b/0x40 mm/kasan/common.c:48 kasan_set_track mm/kasan/common.c:56 [inline] __kasan_kmalloc.constprop.0+0xc9/0xd0 mm/kasan/common.c:461 slab_post_alloc_hook mm/slab.h:532 [inline] slab_alloc_node mm/slub.c:2896 [inline] kmem_cache_alloc_node+0x14b/0x330 mm/slub.c:2932 __alloc_skb+0x6d/0x5b0 net/core/skbuff.c:199 skb_copy+0x183/0x350 net/core/skbuff.c:1529 mac80211_hwsim_tx_frame_no_nl.isra.0+0xb1d/0x13d0 drivers/net/wireless/mac80211_hwsim.c:1499 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:memory_is_nonzero mm/kasan/generic.c:107 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:134 [inline] RIP: 0010:memory_is_poisoned mm/kasan/generic.c:165 [inline] RIP: 0010:check_memory_region_inline mm/kasan/generic.c:183 [inline] RIP: 0010:check_memory_region+0x68/0x1f0 mm/kasan/generic.c:192 Code: 00 00 00 00 00 fc ff df 4d 89 ca 48 c1 ed 03 49 c1 ea 03 48 01 c5 49 01 c2 48 89 e8 49 8d 5a 01 48 89 da 48 29 ea 48 83 fa 10 <0f> 8e 14 01 00 00 41 89 eb 41 83 e3 07 0f 85 a9 00 00 00 48 85 d2 RSP: 0018:ffff88804b28fb48 EFLAGS: 00000283 RAX: fffffbfff0acebf1 RBX: fffffbfff0acebf2 RCX: ffffffff81273c74 RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffff85675f88 RBP: fffffbfff0acebf1 R08: 0000000000000000 R09: ffffffff85675f8f R10: fffffbfff0acebf1 R11: 0000000000000001 R12: 0000000000000002 R13: 0000000000000000 R14: ffffffff84ff8c20 R15: 0000000000000000 instrument_atomic_read include/linux/instrumented.h:71 [inline] test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline] cpumask_test_cpu include/linux/cpumask.h:367 [inline] trace_lock_acquire include/trace/events/lock.h:13 [inline] lock_acquire+0x374/0x470 kernel/locking/lockdep.c:5537 rcu_lock_acquire include/linux/rcupdate.h:303 [inline] rcu_read_lock include/linux/rcupdate.h:717 [inline] percpu_ref_put_many.constprop.0+0x2b/0x110 include/linux/percpu-refcount.h:317 percpu_ref_put include/linux/percpu-refcount.h:338 [inline] obj_cgroup_put include/linux/memcontrol.h:518 [inline] memcg_slab_free_hook mm/slab.h:385 [inline] memcg_slab_free_hook mm/slab.h:351 [inline] do_slab_free mm/slub.c:3105 [inline] ___cache_free+0x1de/0x360 mm/slub.c:3156 qlink_free mm/kasan/quarantine.c:151 [inline] qlist_free_all+0x59/0xe0 mm/kasan/quarantine.c:170 quarantine_reduce+0x184/0x210 mm/kasan/quarantine.c:267 __kasan_kmalloc.constprop.0+0xa2/0xd0 mm/kasan/common.c:442 slab_post_alloc_hook mm/slab.h:532 [inline] slab_alloc_node mm/slub.c:2896 [inline] slab_alloc mm/slub.c:2904 [inline] kmem_cache_alloc+0x13b/0x310 mm/slub.c:2909 sock_alloc_inode+0x18/0x1c0 net/socket.c:253 alloc_inode+0x63/0x240 fs/inode.c:233 new_inode_pseudo+0x14/0xe0 fs/inode.c:929 sock_alloc+0x3c/0x270 net/socket.c:573 __sock_create+0xbd/0x7f0 net/socket.c:1399 sock_create net/socket.c:1486 [inline] __sys_socket+0xef/0x200 net/socket.c:1528 __do_sys_socket net/socket.c:1537 [inline] __se_sys_socket net/socket.c:1535 [inline] __x64_sys_socket+0x6f/0xb0 net/socket.c:1535 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xd1 RIP: 0033:0x7fcd07112b19 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:00007fcd04688128 EFLAGS: 00000246 ORIG_RAX: 0000000000000029 RAX: ffffffffffffffda RBX: 00007fcd07225f60 RCX: 00007fcd07112b19 RDX: 0000000000000010 RSI: 0000000000000003 RDI: 0000000000000010 RBP: 0000000000000006 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff3fbdb90f R14: 00007fcd04688300 R15: 0000000000022000 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 5346 Comm: syz-executor.7 Not tainted 5.10.224 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:trace_lock_release include/trace/events/lock.h:58 [inline] RIP: 0010:lock_release+0x427/0x680 kernel/locking/lockdep.c:5577 Code: 65 8b 1d ec de da 7e 89 db be 08 00 00 00 48 89 d8 48 c1 f8 06 48 8d 3c c5 88 5f 67 85 e8 11 3a 45 00 48 0f a3 1d e1 28 40 04 <0f> 83 79 fc ff ff 65 ff 05 8c 38 db 7e 48 8b 1d 65 11 3e 04 48 85 RSP: 0018:ffff88806cf097a0 EFLAGS: 00000047 RAX: 0000000000000001 RBX: 0000000000000001 RCX: ffffffff8127369f RDX: fffffbfff0acebf2 RSI: 0000000000000008 RDI: ffffffff85675f88 RBP: 1ffff1100d9e12f6 R08: 0000000000000000 R09: ffffffff85675f8f R10: fffffbfff0acebf1 R11: 0000000000000001 R12: ffff88806cf2ea58 R13: ffff88806cf2ea40 R14: 7fffffffffffffff R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d877d9b3d8 CR3: 0000000046a7e000 CR4: 0000000000350ee0 Call Trace: __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:158 [inline] _raw_spin_unlock_irqrestore+0x16/0x40 kernel/locking/spinlock.c:191 hrtimer_interrupt+0x3d7/0x9b0 kernel/time/hrtimer.c:1720 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1083 [inline] __sysvec_apic_timer_interrupt+0xfb/0x310 arch/x86/kernel/apic/apic.c:1100 run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:91 [inline] sysvec_apic_timer_interrupt+0x3e/0xa0 arch/x86/kernel/apic/apic.c:1094 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 RIP: 0010:kasan_mem_to_shadow include/linux/kasan.h:34 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:135 [inline] RIP: 0010:memory_is_poisoned mm/kasan/generic.c:165 [inline] RIP: 0010:check_memory_region_inline mm/kasan/generic.c:183 [inline] RIP: 0010:check_memory_region+0x46/0x1f0 mm/kasan/generic.c:192 Code: 00 e9 c0 00 00 00 48 b8 00 00 00 00 00 00 00 ff 48 39 f8 0f 87 c0 00 00 00 49 83 e9 01 48 89 fd 48 b8 00 00 00 00 00 fc ff df <4d> 89 ca 48 c1 ed 03 49 c1 ea 03 48 01 c5 49 01 c2 48 89 e8 49 8d RSP: 0018:ffff88806cf09a18 EFLAGS: 00000282 RAX: dffffc0000000000 RBX: ffffffff87a04180 RCX: ffffffff81279b37 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffffff87a04180 RBP: ffffffff87a04180 R08: 0000000000000000 R09: ffffffff87a04183 R10: fffffbfff0f40830 R11: 0000000000000001 R12: 0000000000000003 R13: fffffbfff0f40830 R14: 0000000000000001 R15: 1ffff1100d9e1348 instrument_atomic_read include/linux/instrumented.h:71 [inline] atomic_read include/asm-generic/atomic-instrumented.h:27 [inline] virt_spin_lock arch/x86/include/asm/qspinlock.h:99 [inline] queued_spin_lock_slowpath+0xa7/0x8c0 kernel/locking/qspinlock.c:326 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:mm_counter_file include/linux/mm.h:1932 [inline] RIP: 0010:mm_counter include/linux/mm.h:1941 [inline] RIP: 0010:zap_pte_range mm/memory.c:1286 [inline] RIP: 0010:zap_pmd_range mm/memory.c:1404 [inline] RIP: 0010:zap_pud_range mm/memory.c:1433 [inline] RIP: 0010:zap_p4d_range mm/memory.c:1454 [inline] RIP: 0010:unmap_page_range+0x10b2/0x1fe0 mm/memory.c:1475 Code: 08 00 00 e8 50 bc e0 ff be 08 00 00 00 48 89 df e8 93 87 0c 00 48 89 d8 48 c1 e8 03 42 80 3c 30 00 0f 85 05 0d 00 00 48 8b 1b <31> ff 48 c1 eb 13 83 e3 01 89 de c1 e3 1f e8 2b b5 e0 ff c1 fb 1f RSP: 0018:ffff8880491e7760 EFLAGS: 00000246 RAX: 1ffffd4000233438 RBX: 0100000000000000 RCX: ffffffff815fe91d RDX: fffff94000233439 RSI: 0000000000000008 RDI: ffffea000119a1c0 RBP: ffffea000119a1c0 R08: 0000000000000000 R09: ffffea000119a1c7 R10: fffff94000233438 R11: 0000000000000001 R12: ffffea000119a1c8 R13: ffff888049c145e0 R14: dffffc0000000000 R15: 00007ff19febd000 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/0x2350 kernel/signal.c:2759 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:0x7ff1a20bda04 Code: Unable to access opcode bytes at RIP 0x7ff1a20bd9da. RSP: 002b:00007ff19f67fed0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: 0000000000000008 RBX: 00007ff1a2154970 RCX: 00007ff1a20bda04 RDX: 0000000000000002 RSI: 00007ff19f680000 RDI: 00000000ffffff9c RBP: 00007ff19f680000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000002 R13: 0000000000000006 R14: 0000000020000158 R15: 0000000000000001 ---------------- Code disassembly (best guess): 0: 02 00 add (%rax),%al 2: 0f 85 9a 00 00 00 jne 0xa2 8: 8d 45 01 lea 0x1(%rbp),%eax b: 89 43 10 mov %eax,0x10(%rbx) e: 48 8b 03 mov (%rbx),%rax 11: 48 8d 2c e8 lea (%rax,%rbp,8),%rbp 15: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1c: fc ff df 1f: 48 89 ea mov %rbp,%rdx 22: 48 c1 ea 03 shr $0x3,%rdx 26: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) * 2a: 75 64 jne 0x90 <-- trapping instruction 2c: 48 89 75 00 mov %rsi,0x0(%rbp) 30: 8b 43 08 mov 0x8(%rbx),%eax 33: 39 43 10 cmp %eax,0x10(%rbx) 36: 0f 92 c0 setb %al 39: 48 83 c4 08 add $0x8,%rsp 3d: 5b pop %rbx 3e: 5d pop %rbp 3f: e9 .byte 0xe9