kthread+0x34b/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:299 watchdog: BUG: soft lockup - CPU#0 stuck for 123s! [kworker/u4:3:1396] Modules linked in: CPU: 0 PID: 1396 Comm: kworker/u4:3 Not tainted 5.10.209-syzkaller-00039-g8d3bb9cb3b7d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:rep_nop arch/x86/include/asm/vdso/processor.h:13 [inline] RIP: 0010:cpu_relax arch/x86/include/asm/vdso/processor.h:18 [inline] RIP: 0010:csd_lock_wait kernel/smp.c:229 [inline] RIP: 0010:smp_call_function_single+0x276/0x510 kernel/smp.c:517 Code: 84 c0 0f 85 18 02 00 00 44 8b 6c 24 48 44 89 ee 83 e6 01 31 ff e8 ba f0 0a 00 41 83 e5 01 75 0a e8 ff ec 0a 00 e9 eb 00 00 00 90 42 0f b6 04 23 84 c0 75 15 f7 44 24 48 01 00 00 00 0f 84 cd RSP: 0000:ffffc900010f7720 EFLAGS: 00000293 RAX: ffffffff815fbc04 RBX: 1ffff9200021eeed RCX: ffff8881132793c0 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc900010f7810 R08: ffffffff815fbbd6 R09: ffffed103ee2aec9 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 0000000000000001 R14: ffffc900010f7768 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000556380728b78 CR3: 000000000660f000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: smp_call_function_many_cond+0x94e/0xa30 kernel/smp.c:653 smp_call_function_many kernel/smp.c:716 [inline] smp_call_function kernel/smp.c:738 [inline] on_each_cpu+0xa8/0x1a0 kernel/smp.c:837 text_poke_sync arch/x86/kernel/alternative.c:1313 [inline] text_poke_bp_batch+0x1d4/0x600 arch/x86/kernel/alternative.c:1504 text_poke_flush arch/x86/kernel/alternative.c:1672 [inline] text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:1679 arch_jump_label_transform_apply+0x15/0x30 arch/x86/kernel/jump_label.c:126 __jump_label_update+0x36a/0x380 kernel/jump_label.c:459 jump_label_update+0x379/0x400 kernel/jump_label.c:825 static_key_enable_cpuslocked+0x12f/0x250 kernel/jump_label.c:177 static_key_enable+0x1a/0x30 kernel/jump_label.c:190 toggle_allocation_gate+0xbf/0x450 mm/kfence/core.c:624 process_one_work+0x6dc/0xbd0 kernel/workqueue.c:2301 worker_thread+0xaea/0x1510 kernel/workqueue.c:2447 kthread+0x34b/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:299 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 20334 Comm: syz-executor.2 Not tainted 5.10.209-syzkaller-00039-g8d3bb9cb3b7d #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x51/0x80 kernel/locking/spinlock.c:191 Code: 74 0c 48 c7 c7 b0 76 6c 86 e8 bb 06 f7 fc 48 83 3d 23 59 bb 01 00 74 37 48 89 df e8 9d 84 9f fc 66 90 4c 89 75 e8 ff 75 e8 9d 01 00 00 00 e8 15 f5 97 fc 65 8b 05 da 4f 51 7b 85 c0 74 09 48 RSP: 0018:ffffc90000170be8 EFLAGS: 00000046 RAX: 0000000000000001 RBX: ffff88810b24a538 RCX: dffffc0000000000 RDX: 0000000000010002 RSI: 0000000000000046 RDI: ffff88810b24a538 RBP: ffffc90000170c00 R08: ffffffff83a20bed R09: 0000000000000003 R10: fffff5200002e16c R11: dffffc0000000001 R12: ffff88810b24a4b0 R13: 0000000000020012 R14: 0000000000000046 R15: dffffc0000000000 FS: 0000555555f15480(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007faab26bd000 CR3: 000000010c0cf000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: spin_unlock_irqrestore include/linux/spinlock.h:409 [inline] snd_timer_interrupt+0xec7/0x1050 sound/core/timer.c:923 snd_hrtimer_callback+0x1db/0x330 sound/core/hrtimer.c:50 __run_hrtimer kernel/time/hrtimer.c:1583 [inline] __hrtimer_run_queues+0x3d7/0xa50 kernel/time/hrtimer.c:1647 hrtimer_interrupt+0x39a/0x8b0 kernel/time/hrtimer.c:1709 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1083 [inline] __sysvec_apic_timer_interrupt+0xfd/0x3c0 arch/x86/kernel/apic/apic.c:1100 asm_call_irq_on_stack+0xf/0x20 __run_sysvec_on_irqstack arch/x86/include/asm/irq_stack.h:37 [inline] run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:89 [inline] sysvec_apic_timer_interrupt+0x85/0xe0 arch/x86/kernel/apic/apic.c:1094 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635 RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:169 [inline] RIP: 0010:_raw_spin_unlock_irq+0x49/0x70 kernel/locking/spinlock.c:199 Code: 08 00 74 0c 48 c7 c7 b0 76 6c 86 e8 41 06 f7 fc 48 83 3d a9 58 bb 01 00 74 2a 48 89 df e8 23 84 9f fc 66 90 fb bf 01 00 00 00 a2 f4 97 fc 65 8b 05 67 4f 51 7b 85 c0 74 03 5b 5d c3 e8 13 61 RSP: 0018:ffffc9000497fcc8 EFLAGS: 00000246 RAX: 0000000000000001 RBX: ffff88810b24a538 RCX: dffffc0000000000 RDX: 0000000000000001 RSI: 0000000000000004 RDI: 0000000000000001 RBP: ffffc9000497fcd0 R08: dffffc0000000000 R09: 0000000000000003 R10: fffff5200092ff8c R11: dffffc0000000001 R12: ffff88810b24a400 R13: 1ffff9200092ffb4 R14: dffffc0000000000 R15: ffff88810b24a538 spin_unlock_irq include/linux/spinlock.h:404 [inline] snd_timer_close_locked+0x88/0x920 sound/core/timer.c:398 snd_timer_close sound/core/timer.c:463 [inline] snd_timer_user_release+0x121/0x2c0 sound/core/timer.c:1520 __fput+0x309/0x760 fs/file_table.c:281 ____fput+0x15/0x20 fs/file_table.c:314 task_work_run+0x129/0x190 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop+0xbf/0xd0 kernel/entry/common.c:172 exit_to_user_mode_prepare kernel/entry/common.c:199 [inline] syscall_exit_to_user_mode+0xc5/0x1d0 kernel/entry/common.c:274 do_syscall_64+0x40/0x70 arch/x86/entry/common.c:56 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7faab2591d9a Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 03 7f 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 63 7f 02 00 8b 44 24 RSP: 002b:00007ffcb92eb350 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007faab2591d9a RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00007faab26c2980 R08: 00007faab2515000 R09: 0000000000000001 R10: 0000000000000001 R11: 0000000000000293 R12: 000000000011a017 R13: 0000000000119fe5 R14: 00007ffcb92eb510 R15: 00007faab2549cb0