audit: type=1400 audit(1737624295.351:10): avc: denied { write } for pid=4077 comm="syz-executor.1" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=perf_event permissive=1 watchdog: BUG: soft lockup - CPU#1 stuck for 23s! [syz-executor.3:4047] Modules linked in: irq event stamp: 4707175 hardirqs last enabled at (4707174): [] asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 hardirqs last disabled at (4707175): [] sysvec_apic_timer_interrupt+0xb/0xa0 arch/x86/kernel/apic/apic.c:1106 softirqs last enabled at (4703306): [] asm_call_irq_on_stack+0x12/0x20 softirqs last disabled at (4703309): [] asm_call_irq_on_stack+0x12/0x20 CPU: 1 PID: 4047 Comm: syz-executor.3 Not tainted 5.10.233 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:169 [inline] RIP: 0010:unwind_next_frame+0x227/0x1a90 arch/x86/kernel/unwind_orc.c:448 Code: c1 e8 03 45 0f b6 04 10 48 89 fa 83 e2 07 83 c2 03 44 38 c2 7c 09 45 84 c0 0f 85 67 12 00 00 44 8d 46 01 8b 0c 8d 68 c5 d6 85 <48> ba 00 00 00 00 00 fc ff df 4a 8d 3c 85 68 c5 d6 85 49 89 f9 49 RSP: 0018:ffff88806cf09670 EFLAGS: 00000246 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 000000000009a57e RDX: 0000000000000003 RSI: 000000000002aae0 RDI: ffffffff85e170e8 RBP: ffff88806cf0977d R08: 000000000002aae1 R09: 0000000000000001 R10: 0000000000032042 R11: 1ffff1100d9e12d6 R12: ffff88806cf09790 R13: ffff88806cf09748 R14: 1ffff1100d9e12d6 R15: ffffffff83aae092 FS: 00007f36fe7d9700(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d529000 CR3: 00000000159fc000 CR4: 0000000000350ee0 Call Trace: 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] kmem_cache_alloc_node+0x14b/0x330 mm/slub.c:2932 __alloc_skb+0x6d/0x5b0 net/core/skbuff.c:200 skb_copy+0x183/0x350 net/core/skbuff.c:1530 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:sta_set_tidstats net/mac80211/sta_info.c:2233 [inline] RIP: 0010:sta_set_sinfo+0x2adb/0x35c0 net/mac80211/sta_info.c:2443 Code: cd 08 48 89 f8 44 89 2b 48 c1 e8 03 42 80 3c 20 00 0f 85 9c 08 00 00 48 8b 44 24 10 48 8d 7b 18 48 8b a8 78 ff ff ff 48 89 f8 <48> c1 e8 03 42 80 3c 20 00 0f 85 70 08 00 00 48 89 6b 18 e9 2e f8 RSP: 0018:ffff88801ef26a30 EFLAGS: 00000246 RAX: ffff888048ddf018 RBX: ffff888048ddf000 RCX: ffffc90004a24000 RDX: 0000000000040000 RSI: ffffffff83b6ace8 RDI: ffff888048ddf018 RBP: 0000000000000000 R08: 0000000000000000 R09: ffff888049b30d5f R10: 0000000000000000 R11: 0000000000000001 R12: dffffc0000000000 R13: 000000000000000e R14: 0000000000000000 R15: ffff888048ce6000 __sta_info_destroy_part2+0x2ce/0x4f0 net/mac80211/sta_info.c:1118 __sta_info_flush+0x3a0/0x520 net/mac80211/sta_info.c:1240 sta_info_flush net/mac80211/sta_info.h:838 [inline] ieee80211_ibss_disconnect+0x115/0x750 net/mac80211/ibss.c:706 ieee80211_ibss_leave+0x12/0x160 net/mac80211/ibss.c:1875 rdev_leave_ibss net/wireless/rdev-ops.h:545 [inline] __cfg80211_leave_ibss+0x183/0x4f0 net/wireless/ibss.c:212 __cfg80211_leave+0x14b/0x370 net/wireless/core.c:1177 cfg80211_leave net/wireless/core.c:1228 [inline] cfg80211_netdev_notifier_call+0x385/0x10c0 net/wireless/core.c:1341 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xb3/0x110 kernel/notifier.c:410 call_netdevice_notifiers_info+0xb5/0x130 net/core/dev.c:2047 call_netdevice_notifiers_extack net/core/dev.c:2059 [inline] call_netdevice_notifiers net/core/dev.c:2073 [inline] __dev_close_many+0xf3/0x2f0 net/core/dev.c:1593 __dev_close net/core/dev.c:1631 [inline] __dev_change_flags+0x299/0x6e0 net/core/dev.c:8524 dev_change_flags+0x8a/0x160 net/core/dev.c:8597 do_setlink+0x90c/0x3ac0 net/core/rtnetlink.c:2729 __rtnl_newlink+0xc39/0x1700 net/core/rtnetlink.c:3407 rtnl_newlink+0x64/0xa0 net/core/rtnetlink.c:3527 rtnetlink_rcv_msg+0x41e/0xbb0 net/core/rtnetlink.c:5607 netlink_rcv_skb+0x14b/0x430 net/netlink/af_netlink.c:2485 netlink_unicast_kernel net/netlink/af_netlink.c:1307 [inline] netlink_unicast+0x549/0x7f0 net/netlink/af_netlink.c:1333 netlink_sendmsg+0x90f/0xdf0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:651 [inline] __sock_sendmsg+0x154/0x190 net/socket.c:663 ____sys_sendmsg+0x70d/0x870 net/socket.c:2378 ___sys_sendmsg+0xf3/0x170 net/socket.c:2432 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2461 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xd1 RIP: 0033:0x7f3701263b19 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:00007f36fe7d9188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f3701376f60 RCX: 00007f3701263b19 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000000000004 RBP: 00007f37012bdf6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc748bca0f R14: 00007f36fe7d9300 R15: 0000000000022000 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 4043 Comm: syz-executor.6 Not tainted 5.10.233 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:arch_static_branch arch/x86/include/asm/jump_label.h:25 [inline] RIP: 0010:static_key_false include/linux/jump_label.h:200 [inline] RIP: 0010:native_write_msr arch/x86/include/asm/msr.h:162 [inline] RIP: 0010:wrmsrl arch/x86/include/asm/msr.h:281 [inline] RIP: 0010:lapic_next_deadline+0x21/0x50 arch/x86/kernel/apic/apic.c:479 Code: a5 ee ca 02 0f 1f 44 00 00 66 0f 1f 44 00 00 0f 31 48 c1 e2 20 b9 e0 06 00 00 48 09 c2 48 8d 04 fa 48 89 c2 48 c1 ea 20 0f 30 <0f> 1f 44 00 00 31 c0 e9 d3 3c 12 03 48 89 c6 31 d2 bf e0 06 00 00 RSP: 0018:ffff88806ce09840 EFLAGS: 00000016 RAX: 0000007e4d0c0d90 RBX: 0000000000000000 RCX: 00000000000006e0 RDX: 000000000000007e RSI: ffff88806ce27980 RDI: 0000000000000607 RBP: ffff88806ce27980 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000607 R13: 0000000000000000 R14: 7fffffffffffffff R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020003000 CR3: 0000000047896000 CR4: 0000000000350ef0 Call Trace: clockevents_program_event+0x244/0x360 kernel/time/clockevents.c:334 tick_program_event+0xa0/0x140 kernel/time/tick-oneshot.c:44 hrtimer_interrupt+0x3e1/0x9b0 kernel/time/hrtimer.c:1725 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0xfb/0x310 arch/x86/kernel/apic/apic.c:1112 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:1106 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 e0 8f 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: ffffffff87a06080 RCX: ffffffff8127af67 RDX: fffffbfff0f40c11 RSI: 0000000000000004 RDI: ffffffff87a06080 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff87a06083 R10: fffffbfff0f40c10 R11: 0000000000000001 R12: 0000000000000003 R13: fffffbfff0f40c10 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: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:__nr_to_section include/linux/mmzone.h:1262 [inline] RIP: 0010:__pfn_to_section include/linux/mmzone.h:1342 [inline] RIP: 0010:get_pageblock_bitmap mm/page_alloc.c:484 [inline] RIP: 0010:__get_pfnblock_flags_mask mm/page_alloc.c:517 [inline] RIP: 0010:get_pfnblock_migratetype mm/page_alloc.c:534 [inline] RIP: 0010:free_unref_page_prepare mm/page_alloc.c:3164 [inline] RIP: 0010:free_unref_page_prepare mm/page_alloc.c:3157 [inline] RIP: 0010:free_unref_page_list+0x1c1/0x680 mm/page_alloc.c:3231 Code: 0f 85 4c 04 00 00 48 8b 35 ec 27 5a 05 48 85 f6 74 27 48 8d 0c ce 48 89 ce 48 c1 ee 03 80 3c 2e 00 0f 85 0a 04 00 00 48 8b 31 <48> 85 f6 74 0a 0f b6 c0 48 c1 e0 04 48 01 c6 48 8d 7e 08 48 89 f8 RSP: 0018:ffff88801ef1f5e0 EFLAGS: 00000246 RAX: 0000000000000008 RBX: ffffea00011f38c0 RCX: ffff88807ffd8000 RDX: 1ffffffff0d81458 RSI: ffff88807ffd7000 RDI: ffffed1008f9c800 RBP: dffffc0000000000 R08: 0000000000000000 R09: ffffed1008f9c600 R10: fffff9400023e71e R11: 0000000000000001 R12: 0000000000047ce3 R13: ffff88801ef1f698 R14: fffffbfff0991ac8 R15: ffffea00005df4c0 release_pages+0x806/0xc20 mm/swap.c:952 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu+0xe9/0x6e0 mm/mmu_gather.c:247 zap_pte_range mm/memory.c:1355 [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+0x17d9/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:3253 __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:2762 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:0x7fc695584b19 Code: Unable to access opcode bytes at RIP 0x7fc695584aef. RSP: 002b:00007fc692afa188 EFLAGS: 00000246 ORIG_RAX: 0000000000000127 RAX: 000000000009b000 RBX: 00007fc695697f60 RCX: 00007fc695584b19 RDX: 0000000000000001 RSI: 0000000020001400 RDI: 0000000000000004 RBP: 00007fc6955def6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffcb3196eef R14: 00007fc692afa300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: c1 e8 03 shr $0x3,%eax 3: 45 0f b6 04 10 movzbl (%r8,%rdx,1),%r8d 8: 48 89 fa mov %rdi,%rdx b: 83 e2 07 and $0x7,%edx e: 83 c2 03 add $0x3,%edx 11: 44 38 c2 cmp %r8b,%dl 14: 7c 09 jl 0x1f 16: 45 84 c0 test %r8b,%r8b 19: 0f 85 67 12 00 00 jne 0x1286 1f: 44 8d 46 01 lea 0x1(%rsi),%r8d 23: 8b 0c 8d 68 c5 d6 85 mov -0x7a293a98(,%rcx,4),%ecx * 2a: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx <-- trapping instruction 31: fc ff df 34: 4a 8d 3c 85 68 c5 d6 lea -0x7a293a98(,%r8,4),%rdi 3b: 85 3c: 49 89 f9 mov %rdi,%r9 3f: 49 rex.WB