watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [syz-executor.2:4549] Modules linked in: irq event stamp: 5431409 hardirqs last enabled at (5431408): [] asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 hardirqs last disabled at (5431409): [] sysvec_apic_timer_interrupt+0xb/0xa0 arch/x86/kernel/apic/apic.c:1094 softirqs last enabled at (5426180): [] asm_call_irq_on_stack+0x12/0x20 softirqs last disabled at (5426185): [] asm_call_irq_on_stack+0x12/0x20 CPU: 0 PID: 4549 Comm: syz-executor.2 Not tainted 5.10.223 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:__orc_find+0xaf/0xf0 arch/x86/kernel/unwind_orc.c:60 Code: d8 48 39 c1 73 b0 4c 8d 63 fc 49 39 ec 73 b3 4d 29 ee 49 c1 fe 02 4b 8d 04 76 48 8d 04 46 48 83 c4 10 5b 5d 41 5c 41 5d 41 5e <41> 5f e9 9a d4 0f 03 48 83 c4 10 31 c0 5b 5d 41 5c 41 5d 41 5e 41 RSP: 0018:ffff88806ce095c0 EFLAGS: 00000282 RAX: ffffffff85a9e92e RBX: 0000000000000001 RCX: ffffffff81d2199a RDX: 0000000000000000 RSI: ffffffff85a9e92e RDI: ffffffff8577ff94 RBP: ffff88806ce096dd R08: ffffffff85a9e92e R09: ffffffff85a9e964 R10: 0000000000032042 R11: 1ffff1100d9c12c2 R12: ffff88806ce096f0 R13: ffff88806ce096a8 R14: 1ffff1100d9c12c2 R15: dffffc0000000000 FS: 00007f284d330700(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000000 CR3: 00000000530e8000 CR4: 0000000000350ef0 Call Trace: orc_find arch/x86/kernel/unwind_orc.c:178 [inline] unwind_next_frame+0x2b3/0x1a90 arch/x86/kernel/unwind_orc.c:448 arch_stack_walk+0x83/0xf0 arch/x86/kernel/stacktrace.c:25 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] slab_alloc mm/slub.c:2904 [inline] kmem_cache_alloc+0x13b/0x310 mm/slub.c:2909 mem_pool_alloc mm/kmemleak.c:423 [inline] create_object.isra.0+0x3a/0xa20 mm/kmemleak.c:578 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] __kmalloc_node_track_caller+0x1a6/0x3b0 mm/slub.c:4496 __kmalloc_reserve net/core/skbuff.c:143 [inline] __alloc_skb+0xb1/0x5b0 net/core/skbuff.c:211 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:__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 2a c2 3f fd 48 89 ef e8 f2 7b 40 fd f6 c7 02 75 10 53 9d <65> ff 0d b4 00 1b 7c 5b 5d e9 2d d1 38 00 e8 68 a1 5f fd eb e9 66 RSP: 0018:ffff88804e55f7e0 EFLAGS: 00000246 RAX: 000000000052cc07 RBX: 0000000000000246 RCX: 1ffffffff0ace489 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff83e76e98 RBP: ffffffff850a66e0 R08: 0000000000000001 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000001 R12: ffff88801b3e8510 R13: ffff888048c0a8b8 R14: ffff888008041a00 R15: ffff88801b894340 find_and_remove_object+0xe4/0x120 mm/kmemleak.c:553 delete_object_full mm/kmemleak.c:684 [inline] kmemleak_free+0x1f/0x40 mm/kmemleak.c:966 kmemleak_free_recursive include/linux/kmemleak.h:49 [inline] slab_free_hook mm/slub.c:1517 [inline] slab_free_freelist_hook+0x13e/0x180 mm/slub.c:1576 slab_free mm/slub.c:3149 [inline] kfree+0xd7/0x340 mm/slub.c:4125 avc_audit_post_callback+0x371/0x8e0 security/selinux/avc.c:737 common_lsm_audit+0x231/0x1df0 security/lsm_audit.c:474 slow_avc_audit+0x16b/0x200 security/selinux/avc.c:790 avc_audit security/selinux/include/avc.h:140 [inline] avc_has_perm+0x17d/0x1b0 security/selinux/avc.c:1193 security_perf_event_read+0x46/0xa0 security/security.c:2626 perf_read+0xb7/0x9a0 kernel/events/core.c:5457 vfs_read+0x228/0x620 fs/read_write.c:494 ksys_read+0x12d/0x260 fs/read_write.c:634 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xd1 RIP: 0033:0x7f284fdfcb19 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:00007f284d330188 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f284ff100e0 RCX: 00007f284fdfcb19 RDX: 000000000000008e RSI: 0000000020000240 RDI: 0000000000000003 RBP: 00007f284fe56f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffde7995d1f R14: 00007f284d330300 R15: 0000000000022000 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4536 Comm: syz-executor.5 Not tainted 5.10.223 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:strlen+0x54/0xa0 lib/string.c:568 Code: 75 50 80 7d 00 00 74 3d 48 bb 00 00 00 00 00 fc ff df 48 89 e8 48 83 c0 01 48 89 c2 48 89 c1 48 c1 ea 03 83 e1 07 0f b6 14 1a <38> ca 7f 04 84 d2 75 27 80 38 00 75 de 48 83 c4 08 48 29 e8 5b 5d RSP: 0018:ffff88806cf093a0 EFLAGS: 00000002 RAX: ffffffff844869ea RBX: dffffc0000000000 RCX: 0000000000000002 RDX: 0000000000000000 RSI: ffffffff8500fb08 RDI: ffffffff844869e0 RBP: ffffffff844869e0 R08: 0000000000000000 R09: ffffffff8567580f R10: fffffbfff0aceb01 R11: 0000000000000001 R12: ffffffff8500fb08 R13: 0000000000002710 R14: ffffffff84eff0c0 R15: ffff88806cf09470 FS: 00007fc308a7e700(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d323000 CR3: 00000000483ce000 CR4: 0000000000350ee0 Call Trace: strlen include/linux/string.h:314 [inline] trace_event_get_offsets_lock include/trace/events/lock.h:39 [inline] perf_trace_lock+0xac/0x490 include/trace/events/lock.h:39 trace_lock_release include/trace/events/lock.h:58 [inline] lock_release+0x470/0x680 kernel/locking/lockdep.c:5577 seqcount_lockdep_reader_access include/linux/seqlock.h:104 [inline] ktime_get+0x90/0x1f0 kernel/time/timekeeping.c:833 hrtimer_forward_now include/linux/hrtimer.h:503 [inline] perf_swevent_hrtimer+0x244/0x3f0 kernel/events/core.c:10490 __run_hrtimer kernel/time/hrtimer.c:1584 [inline] __hrtimer_run_queues+0x1ca/0xb40 kernel/time/hrtimer.c:1648 hrtimer_interrupt+0x2fd/0x9b0 kernel/time/hrtimer.c:1710 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: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:ffff88806cf09a38 EFLAGS: 00000202 RAX: 0000000000000000 RBX: ffffffff87a04180 RCX: ffffffff81279957 RDX: fffffbfff0f40831 RSI: 0000000000000004 RDI: ffffffff87a04180 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff87a04183 R10: fffffbfff0f40830 R11: 0000000000000001 R12: 0000000000000003 R13: fffffbfff0f40830 R14: 0000000000000001 R15: 1ffff1100d9e1348 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:lock_acquire+0x1b9/0x470 kernel/locking/lockdep.c:5534 Code: 46 db 7e e8 39 91 ff ff b8 ff ff ff ff 48 83 c4 20 65 0f c1 05 d8 46 db 7e 83 f8 01 4c 8b 54 24 08 0f 85 48 02 00 00 41 52 9d <48> b8 00 00 00 00 00 fc ff df 48 01 c3 48 c7 03 00 00 00 00 48 c7 RSP: 0018:ffff88801748fb10 EFLAGS: 00000246 RAX: 0000000000000001 RBX: 1ffff11002e91f64 RCX: 000000003420b227 RDX: 1ffff11008f1a7b8 RSI: 31c3bf68bddd8f16 RDI: 0000000000000001 RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff868686e7 R10: 0000000000000246 R11: 0000000000000001 R12: 0000000000000002 R13: 0000000000000000 R14: ffffffff84ff8c20 R15: 0000000000000000 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 getname_flags.part.0+0x50/0x4f0 fs/namei.c:138 getname_flags include/linux/audit.h:320 [inline] getname+0x8e/0xd0 fs/namei.c:209 do_sys_openat2+0xf9/0x4d0 fs/open.c:1221 do_sys_open fs/open.c:1243 [inline] __do_sys_openat fs/open.c:1259 [inline] __se_sys_openat fs/open.c:1254 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1254 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xd1 RIP: 0033:0x7fc30b508b19 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:00007fc308a7e188 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fc30b61bf60 RCX: 00007fc30b508b19 RDX: 0000000000200002 RSI: 00000000200002c0 RDI: ffffffffffffff9c RBP: 00007fc30b562f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc968d509f R14: 00007fc308a7e300 R15: 0000000000022000 audit: type=1400 audit(1723644030.870:81): avc: denied { read } for pid=4545 comm="syz-executor.2" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=perf_event permissive=1 ---------------- Code disassembly (best guess): 0: d8 48 39 fmuls 0x39(%rax) 3: c1 73 b0 4c shll $0x4c,-0x50(%rbx) 7: 8d 63 fc lea -0x4(%rbx),%esp a: 49 39 ec cmp %rbp,%r12 d: 73 b3 jae 0xffffffc2 f: 4d 29 ee sub %r13,%r14 12: 49 c1 fe 02 sar $0x2,%r14 16: 4b 8d 04 76 lea (%r14,%r14,2),%rax 1a: 48 8d 04 46 lea (%rsi,%rax,2),%rax 1e: 48 83 c4 10 add $0x10,%rsp 22: 5b pop %rbx 23: 5d pop %rbp 24: 41 5c pop %r12 26: 41 5d pop %r13 28: 41 5e pop %r14 * 2a: 41 5f pop %r15 <-- trapping instruction 2c: e9 9a d4 0f 03 jmpq 0x30fd4cb 31: 48 83 c4 10 add $0x10,%rsp 35: 31 c0 xor %eax,%eax 37: 5b pop %rbx 38: 5d pop %rbp 39: 41 5c pop %r12 3b: 41 5d pop %r13 3d: 41 5e pop %r14 3f: 41 rex.B