kthread+0x2ba/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 watchdog: BUG: soft lockup - CPU#1 stuck for 226s! [kworker/u4:3:731] Modules linked in: CPU: 1 PID: 731 Comm: kworker/u4:3 Not tainted 6.3.0-syzkaller-13164-g78b421b6a7c6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:294 [inline] RIP: 0010:smp_call_function_many_cond+0xaa2/0xf90 kernel/smp.c:828 Code: ff df 0f b6 04 03 84 c0 75 7e 45 8b 65 00 44 89 e6 83 e6 01 31 ff e8 dd a6 09 00 41 83 e4 01 75 07 e8 02 a3 09 00 eb 41 f3 90 <48> b8 00 00 00 00 00 fc ff df 0f b6 04 03 84 c0 75 11 41 f7 45 00 RSP: 0018:ffffc900034e7840 EFLAGS: 00000293 RAX: ffffffff816b8223 RBX: 1ffff1103ee47cfd RCX: ffff8881177c8000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc900034e7998 R08: ffffffff816b81f3 R09: ffffed103ee673f3 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffff8881f723e7e8 R14: ffff8881f7339f80 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8881f7300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f51fe216718 CR3: 00000000062a4000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x44/0x80 kernel/smp.c:996 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1770 [inline] text_poke_bp_batch+0x1ed/0x740 arch/x86/kernel/alternative.c:1970 text_poke_flush arch/x86/kernel/alternative.c:2161 [inline] text_poke_finish+0x1e/0x30 arch/x86/kernel/alternative.c:2168 arch_jump_label_transform_apply+0x19/0x30 arch/x86/kernel/jump_label.c:146 __jump_label_update+0x36a/0x380 kernel/jump_label.c:483 jump_label_update+0x3af/0x450 kernel/jump_label.c:829 static_key_enable_cpuslocked+0x133/0x250 kernel/jump_label.c:205 static_key_enable+0x1e/0x30 kernel/jump_label.c:218 toggle_allocation_gate+0xb5/0x240 mm/kfence/core.c:831 process_one_work+0x6ab/0xc00 kernel/workqueue.c:2405 worker_thread+0xac7/0x12b0 kernel/workqueue.c:2552 kthread+0x2ba/0x350 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 6035 Comm: syz-executor.0 Not tainted 6.3.0-syzkaller-13164-g78b421b6a7c6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 RIP: 0010:arch_atomic_try_cmpxchg arch/x86/include/asm/atomic.h:202 [inline] RIP: 0010:atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:543 [inline] RIP: 0010:queued_spin_lock include/asm-generic/qspinlock.h:111 [inline] RIP: 0010:do_raw_spin_lock include/linux/spinlock.h:186 [inline] RIP: 0010:__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline] RIP: 0010:_raw_spin_lock_irqsave+0x102/0x220 kernel/locking/spinlock.c:162 Code: 00 00 00 c7 44 24 40 00 00 00 00 4c 89 ef be 04 00 00 00 e8 60 a1 cd fc 4c 89 e7 be 04 00 00 00 e8 53 a1 cd fc 42 0f b6 04 3b <84> c0 0f 85 be 00 00 00 8b 44 24 40 b9 01 00 00 00 f0 41 0f b1 4d RSP: 0018:ffffc9000261fba0 EFLAGS: 00000097 RAX: 0000000000000004 RBX: 1ffff920004c3f7c RCX: ffffffff84f1584d RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffc9000261fbe0 RBP: ffffc9000261fc78 R08: dffffc0000000000 R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: ffffc9000261fbe0 R13: ffffffff86d4a040 R14: 1ffff920004c3f78 R15: dffffc0000000000 FS: 00005555568a1400(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f51fe216718 CR3: 000000011473b000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vga_put drivers/pci/vgaarb.c:536 [inline] vga_arb_release+0x207/0x950 drivers/pci/vgaarb.c:1456 __fput+0x3fe/0x910 fs/file_table.c:321 ____fput+0x19/0x20 fs/file_table.c:349 task_work_run+0x24a/0x2f0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0x8b/0xa0 kernel/entry/common.c:171 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x2a/0x140 kernel/entry/common.c:297 do_syscall_64+0x4d/0x90 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f51fd43dfab Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44 RSP: 002b:00007ffd20e459a0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f51fd43dfab RDX: 00007f51fd000338 RSI: ffffffffffffffff RDI: 0000000000000003 RBP: 00007f51fd5ad980 R08: 0000000000000000 R09: 00007f51fd000000 R10: 00007f51fd000340 R11: 0000000000000293 R12: 000000000000d04e R13: 00007ffd20e45aa0 R14: 00007f51fd5ac050 R15: 0000000000000032