watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [syz-executor.6:5932] Modules linked in: irq event stamp: 4138651 hardirqs last enabled at (4138650): [] asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 hardirqs last disabled at (4138651): [] sysvec_apic_timer_interrupt+0xb/0xa0 arch/x86/kernel/apic/apic.c:1106 softirqs last enabled at (4135148): [] asm_call_irq_on_stack+0x12/0x20 softirqs last disabled at (4135155): [] asm_call_irq_on_stack+0x12/0x20 CPU: 0 PID: 5932 Comm: syz-executor.6 Not tainted 5.10.229 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:__preempt_count_sub arch/x86/include/asm/preempt.h:84 [inline] RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x25/0x40 kernel/locking/spinlock.c:191 Code: 38 00 0f 1f 00 55 48 89 fd 48 83 c7 18 53 48 89 f3 48 8b 74 24 10 e8 7a 66 3f fd 48 89 ef e8 d2 20 40 fd f6 c7 02 75 10 53 9d <65> ff 0d e4 89 1a 7c 5b 5d e9 5d 5a 38 00 e8 88 46 5f fd eb e9 66 RSP: 0018:ffff88806ce09aa8 EFLAGS: 00000246 RAX: 00000000003f2684 RBX: 0000000000000246 RCX: 1ffffffff0d10c72 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff83e7e568 RBP: ffffffff850a7600 R08: 0000000000000001 R09: ffffffff8686a72f R10: fffffbfff0d0d4e5 R11: 0000000000000001 R12: 0000000000000a20 R13: 0000000000000a20 R14: 00000000ffffffff R15: 0000000000000000 FS: 00007f10e52a3700(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000004a25a000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000dd060a Call Trace: kmemleak_alloc_recursive include/linux/kmemleak.h:43 [inline] slab_post_alloc_hook mm/slab.h:534 [inline] slab_alloc_node mm/slub.c:2896 [inline] kmem_cache_alloc_node+0x169/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:1586 [inline] __hrtimer_run_queues+0x632/0xb40 kernel/time/hrtimer.c:1650 hrtimer_run_softirq+0x148/0x310 kernel/time/hrtimer.c:1667 __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:1106 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 RIP: 0010:cpumask_test_cpu include/linux/cpumask.h:367 [inline] RIP: 0010:trace_lock_release include/trace/events/lock.h:58 [inline] RIP: 0010:lock_release+0x7d/0x680 kernel/locking/lockdep.c:5577 Code: f1 f1 04 f2 c7 40 08 04 f3 f3 f3 65 48 8b 04 25 28 00 00 00 48 89 84 24 88 00 00 00 31 c0 0f 1f 44 00 00 65 8b 1d 33 c9 da 7e <89> db be 08 00 00 00 48 89 d8 48 c1 f8 06 48 8d 3c c5 48 77 67 85 RSP: 0018:ffff88804981fab8 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00000000253254b1 RDX: 0000000000000000 RSI: ffffffff816c021e RDI: ffffffff84ff9960 RBP: 1ffff11009303f59 R08: 0000000000000000 R09: ffffffff8686a6e7 R10: 0000000000000246 R11: 0000000000000001 R12: ffffffff84ff9960 R13: 0000000000000246 R14: 0000000000000006 R15: 00000000fffffd78 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_trace+0x133/0x320 mm/slub.c:2921 kmalloc include/linux/slab.h:552 [inline] kzalloc include/linux/slab.h:664 [inline] selinux_sk_alloc_security+0x8b/0x1b0 security/selinux/hooks.c:5180 security_sk_alloc+0x56/0xb0 security/security.c:2266 sk_prot_alloc+0x137/0x2c0 net/core/sock.c:1710 sk_alloc+0x30/0x350 net/core/sock.c:1761 __netlink_create+0x63/0x340 net/netlink/af_netlink.c:639 netlink_create+0x3b2/0x5e0 net/netlink/af_netlink.c:702 __sock_create+0x358/0x7f0 net/socket.c:1435 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:0x7f10e7d2db19 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:00007f10e52a3188 EFLAGS: 00000246 ORIG_RAX: 0000000000000029 RAX: ffffffffffffffda RBX: 00007f10e7e40f60 RCX: 00007f10e7d2db19 RDX: 0000000000000006 RSI: 0000000000000003 RDI: 0000000000000010 RBP: 00007f10e7d87f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff616fa23f R14: 00007f10e52a3300 R15: 0000000000022000 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 0 Comm: swapper/1 Not tainted 5.10.229 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:__kasan_check_read+0x4/0x10 mm/kasan/common.c:71 Code: 66 0f 1f 44 00 00 e9 8b b1 b3 02 66 66 2e 0f 1f 84 00 00 00 00 00 48 c7 c0 fb ff ff ff e9 74 b1 b3 02 cc cc cc cc 48 8b 0c 24 <89> f6 31 d2 e9 83 22 00 00 0f 1f 00 48 8b 0c 24 89 f6 ba 01 00 00 RSP: 0018:ffff88806cf09a30 EFLAGS: 00000202 RAX: 0000000000000000 RBX: ffffffff87a06080 RCX: ffffffff8127b507 RDX: fffffbfff0f40c11 RSI: 0000000000000004 RDI: ffffffff87a06080 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff87a06083 R10: fffffbfff0f40c10 R11: 0000000000000001 R12: 0000000000000003 R13: fffffbfff0f40c10 R14: 0000000000000001 R15: 1ffff1100d9e1348 FS: 0000000000000000(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055601a38f678 CR3: 000000000d8b8000 CR4: 0000000000350ee0 Call Trace: 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:1586 [inline] __hrtimer_run_queues+0x632/0xb40 kernel/time/hrtimer.c:1650 hrtimer_run_softirq+0x148/0x310 kernel/time/hrtimer.c:1667 __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:1106 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 RIP: 0010:default_idle+0xe/0x20 arch/x86/kernel/process.c:707 Code: 4e ff ff ff 4c 89 e7 e8 70 eb 84 fd eb 8f 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 e9 07 00 00 00 0f 00 2d 74 75 5a 00 fb f4 ad 76 38 00 cc cc cc cc cc cc cc cc cc cc cc cc cc 41 55 41 54 RSP: 0018:ffff888008987e70 EFLAGS: 00000206 RAX: ffffffff83e7c900 RBX: 0000000000000001 RCX: ffffffff83e644dc RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff83e7cf08 RBP: ffffed100112f000 R08: 0000000000000001 R09: ffff88806cf3c12b R10: ffffed100d9e7825 R11: 0000000000000001 R12: 0000000000000001 R13: ffffffff85677748 R14: 0000000000000000 R15: dffffc0000000000 default_idle_call+0xbf/0x2c0 kernel/sched/idle.c:112 cpuidle_idle_call kernel/sched/idle.c:194 [inline] do_idle+0x3ad/0x520 kernel/sched/idle.c:300 cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:396 secondary_startup_64_no_verify+0xbe/0xcb ---------------- Code disassembly (best guess): 0: 38 00 cmp %al,(%rax) 2: 0f 1f 00 nopl (%rax) 5: 55 push %rbp 6: 48 89 fd mov %rdi,%rbp 9: 48 83 c7 18 add $0x18,%rdi d: 53 push %rbx e: 48 89 f3 mov %rsi,%rbx 11: 48 8b 74 24 10 mov 0x10(%rsp),%rsi 16: e8 7a 66 3f fd callq 0xfd3f6695 1b: 48 89 ef mov %rbp,%rdi 1e: e8 d2 20 40 fd callq 0xfd4020f5 23: f6 c7 02 test $0x2,%bh 26: 75 10 jne 0x38 28: 53 push %rbx 29: 9d popfq * 2a: 65 ff 0d e4 89 1a 7c decl %gs:0x7c1a89e4(%rip) # 0x7c1a8a15 <-- trapping instruction 31: 5b pop %rbx 32: 5d pop %rbp 33: e9 5d 5a 38 00 jmpq 0x385a95 38: e8 88 46 5f fd callq 0xfd5f46c5 3d: eb e9 jmp 0x28 3f: 66 data16