watchdog: BUG: soft lockup - CPU#1 stuck for 22s! [syz-executor.1:7104] Modules linked in: irq event stamp: 8125417 hardirqs last enabled at (8125416): [] asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 hardirqs last disabled at (8125417): [] sysvec_apic_timer_interrupt+0xb/0xa0 arch/x86/kernel/apic/apic.c:1094 softirqs last enabled at (8117928): [] asm_call_irq_on_stack+0x12/0x20 softirqs last disabled at (8117931): [] asm_call_irq_on_stack+0x12/0x20 CPU: 1 PID: 7104 Comm: syz-executor.1 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_ip arch/x86/kernel/unwind_orc.c:30 [inline] RIP: 0010:__orc_find+0x6f/0xf0 arch/x86/kernel/unwind_orc.c:52 Code: 72 4d 4c 89 e0 48 29 e8 48 89 c2 48 c1 e8 3f 48 c1 fa 02 48 01 d0 48 d1 f8 48 8d 5c 85 00 48 89 d8 48 c1 e8 03 42 0f b6 14 38 <48> 89 d8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 50 48 63 03 48 01 RSP: 0018:ffff88806cf09620 EFLAGS: 00000212 RAX: 1ffffffff0b246e9 RBX: ffffffff85923748 RCX: ffffffff83c2ec70 RDX: 0000000000000000 RSI: ffffffff85d13c98 RDI: ffffffff85923730 RBP: ffffffff85923730 R08: ffffffff85d13c98 R09: ffffffff85d13cec R10: 0000000000032042 R11: 1ffff1100d9e12d5 R12: ffffffff85923764 R13: ffffffff85923730 R14: ffffffff85923730 R15: dffffc0000000000 FS: 00007fabe99e8700(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fff48093d98 CR3: 0000000049a84000 CR4: 0000000000350ee0 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] __kmalloc_node_track_caller+0x189/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:cmpxchg_double_slab mm/slub.c:402 [inline] RIP: 0010:__slab_free+0xb5/0x5d0 mm/slub.c:3023 Code: 85 ed 89 c6 41 0f 94 c1 66 45 85 ff 74 08 45 31 f6 45 84 c9 74 0c 45 31 f6 40 84 f6 0f 84 e7 00 00 00 48 8b 8c 24 88 00 00 00 <41> f6 40 0b 40 74 61 48 83 7c 24 50 00 0f 85 0a 03 00 00 48 89 da RSP: 0018:ffff88801800f450 EFLAGS: 00000246 RAX: 0000000000000001 RBX: 0000000080120011 RCX: 0000000080120010 RDX: ffff88800d7ac6c0 RSI: 0000000000000001 RDI: ffff88800804d640 RBP: ffff88801800f530 R08: ffff88800804d640 R09: ffffffff816c9600 R10: ffff88800d7ac6c0 R11: 0000000000000001 R12: ffffea000035eb00 R13: ffff88800d7adb00 R14: 0000000000000000 R15: 0000000080120010 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 kmem_cache_zalloc include/linux/slab.h:654 [inline] __kernfs_new_node+0xd4/0x860 fs/kernfs/dir.c:635 kernfs_new_node+0x18d/0x250 fs/kernfs/dir.c:711 __kernfs_create_file+0x51/0x350 fs/kernfs/file.c:985 sysfs_add_file_mode_ns+0x221/0x560 fs/sysfs/file.c:306 sysfs_create_file_ns+0x131/0x1d0 fs/sysfs/file.c:332 sysfs_create_file include/linux/sysfs.h:599 [inline] device_create_file+0xea/0x1d0 drivers/base/core.c:2384 device_add+0x547/0x1c50 drivers/base/core.c:2955 device_create_groups_vargs+0x207/0x280 drivers/base/core.c:3666 device_create+0xdc/0x120 drivers/base/core.c:3708 bdi_register_va.part.0+0x9c/0x650 mm/backing-dev.c:818 bdi_register_va mm/backing-dev.c:853 [inline] bdi_register+0x12e/0x140 mm/backing-dev.c:850 __device_add_disk+0xd80/0x1140 block/genhd.c:820 add_disk include/linux/genhd.h:295 [inline] loop_add+0x61d/0x8b0 drivers/block/loop.c:2172 loop_control_ioctl drivers/block/loop.c:2295 [inline] loop_control_ioctl+0x1c5/0x480 drivers/block/loop.c:2255 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl fs/ioctl.c:739 [inline] __x64_sys_ioctl+0x19a/0x210 fs/ioctl.c:739 do_syscall_64+0x33/0x40 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x67/0xd1 RIP: 0033:0x7fabec472b19 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:00007fabe99e8188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fabec585f60 RCX: 00007fabec472b19 RDX: 0000000000000000 RSI: 0000000000004c82 RDI: 0000000000000006 RBP: 00007fabec4ccf6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffeb0e9545f R14: 00007fabe99e8300 R15: 0000000000022000 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 7109 Comm: syz-executor.7 Not tainted 5.10.223 #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: 35 5e ca 02 0f 1f 44 00 00 0f ae f0 0f ae e8 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 63 3c 12 03 48 89 c6 31 d2 bf e0 06 00 00 RSP: 0018:ffff88806ce09840 EFLAGS: 00000013 RAX: 00000351f9920004 RBX: 0000000000000000 RCX: 00000000000006e0 RDX: 0000000000000351 RSI: ffff88806ce27980 RDI: 000000000000059b RBP: ffff88806ce27980 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: 000000000000059b R13: 0000000000000000 R14: 7fffffffffffffff R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f003be4d998 CR3: 0000000008e40000 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:1723 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:ffff88806ce09a38 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: 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: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:PageSwapCache include/linux/page-flags.h:402 [inline] RIP: 0010:free_swap_cache mm/swap_state.c:326 [inline] RIP: 0010:free_pages_and_swap_cache+0xfd/0x290 mm/swap_state.c:354 Code: 4c 89 f8 48 c1 e8 03 42 80 3c 28 00 0f 85 64 01 00 00 4d 8b 3f 31 ff 49 c1 ef 13 41 83 e7 01 44 89 fe e8 26 f4 d8 ff 45 84 ff <0f> 84 41 ff ff ff e8 08 fb d8 ff be 08 00 00 00 48 89 ef 48 89 2c RSP: 0018:ffff88804ad0f970 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff888009493048 RCX: ffffffff8167a63a RDX: 0000000000000000 RSI: ffff88800c983480 RDI: 0000000000000001 RBP: ffffea000063a280 R08: 0000000000000000 R09: ffffea000063a287 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000007 R13: dffffc0000000000 R14: 0000000000000142 R15: 0000000000000000 tlb_batch_pages_flush mm/mmu_gather.c:49 [inline] tlb_flush_mmu_free mm/mmu_gather.c:240 [inline] tlb_flush_mmu mm/mmu_gather.c:247 [inline] tlb_finish_mmu+0x165/0x8f0 mm/mmu_gather.c:326 exit_mmap+0x29f/0x4f0 mm/mmap.c:3237 __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/0x22e0 kernel/signal.c:2751 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:0x7f7ebec3bb19 Code: Unable to access opcode bytes at RIP 0x7f7ebec3baef. RSP: 002b:00007f7ebc190218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007f7ebed4f028 RCX: 00007f7ebec3bb19 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f7ebed4f028 RBP: 00007f7ebed4f020 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7ebed4f02c R13: 00007ffe8822fcaf R14: 00007f7ebc190300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: 72 4d jb 0x4f 2: 4c 89 e0 mov %r12,%rax 5: 48 29 e8 sub %rbp,%rax 8: 48 89 c2 mov %rax,%rdx b: 48 c1 e8 3f shr $0x3f,%rax f: 48 c1 fa 02 sar $0x2,%rdx 13: 48 01 d0 add %rdx,%rax 16: 48 d1 f8 sar %rax 19: 48 8d 5c 85 00 lea 0x0(%rbp,%rax,4),%rbx 1e: 48 89 d8 mov %rbx,%rax 21: 48 c1 e8 03 shr $0x3,%rax 25: 42 0f b6 14 38 movzbl (%rax,%r15,1),%edx * 2a: 48 89 d8 mov %rbx,%rax <-- trapping instruction 2d: 83 e0 07 and $0x7,%eax 30: 83 c0 03 add $0x3,%eax 33: 38 d0 cmp %dl,%al 35: 7c 04 jl 0x3b 37: 84 d2 test %dl,%dl 39: 75 50 jne 0x8b 3b: 48 63 03 movslq (%rbx),%rax 3e: 48 rex.W 3f: 01 .byte 0x1