INFO: task kworker/1:1H:364 blocked for more than 143 seconds. Not tainted 6.4.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/1:1H state:D stack:14088 pid:364 ppid:2 flags:0x00004000 Workqueue: xfs-log/loop0 xlog_ioend_work Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0x694/0x9a0 kernel/sched/core.c:6669 schedule+0x68/0xc0 kernel/sched/core.c:6745 schedule_timeout+0x88/0x190 kernel/time/timer.c:2143 ___down_common kernel/locking/semaphore.c:225 [inline] __down_common+0xee/0x230 kernel/locking/semaphore.c:246 down+0x3c/0x40 kernel/locking/semaphore.c:63 xfs_buf_lock+0x4f/0x120 fs/xfs/xfs_buf.c:1119 xfs_buf_item_unpin+0x96/0x1e0 fs/xfs/xfs_buf_item.c:547 xfs_trans_committed_bulk+0x13d/0x2d0 fs/xfs/xfs_trans.c:806 xlog_cil_committed+0xa2/0x320 fs/xfs/xfs_log_cil.c:795 xlog_cil_process_committed+0x59/0x80 fs/xfs/xfs_log_cil.c:823 xlog_state_shutdown_callbacks+0x4b/0x110 fs/xfs/xfs_log.c:538 xlog_force_shutdown+0x138/0x170 fs/xfs/xfs_log.c:3837 xlog_ioend_work+0x43/0x70 fs/xfs/xfs_log.c:1429 process_one_work+0x245/0x490 kernel/workqueue.c:2405 worker_thread+0x218/0x370 kernel/workqueue.c:2552 kthread+0xe9/0x100 kernel/kthread.c:379 ret_from_fork+0x29/0x50 arch/x86/entry/entry_64.S:308 INFO: task syz.0.15:3286 blocked for more than 143 seconds. Not tainted 6.4.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.0.15 state:D stack:12984 pid:3286 ppid:3059 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0x694/0x9a0 kernel/sched/core.c:6669 schedule+0x68/0xc0 kernel/sched/core.c:6745 xlog_wait fs/xfs/xfs_log_priv.h:617 [inline] xlog_wait_on_iclog+0x14e/0x1c0 fs/xfs/xfs_log.c:926 xlog_force_lsn+0x24d/0x260 fs/xfs/xfs_log.c:3372 xfs_log_force_seq+0xab/0x180 fs/xfs/xfs_log.c:3409 __xfs_trans_commit+0x2bf/0x360 fs/xfs/xfs_trans.c:1014 xfs_sync_sb_buf+0x6a/0xb0 fs/xfs/libxfs/xfs_sb.c:1112 xfs_ioc_setlabel fs/xfs/xfs_ioctl.c:1801 [inline] xfs_file_ioctl+0x45d/0xc70 fs/xfs/xfs_ioctl.c:1899 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0x6b/0xb0 fs/ioctl.c:856 do_syscall_64+0x46/0xc0 entry_SYSCALL_64_after_hwframe+0x73/0xdd RIP: 0033:0x7f8f99cc8e79 RSP: 002b:00007f8f9974e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f8f99e64f80 RCX: 00007f8f99cc8e79 RDX: 0000000020000340 RSI: 0000000041009432 RDI: 0000000000000006 RBP: 00007f8f99d36916 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f8f99e64f80 R15: 00007ffdc24da0e8 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8338a3e8 (rcu_tasks.tasks_gp_mutex){....}-{3:3}, at: rcu_tasks_one_gp kernel/rcu/tasks.h:518 [inline] #0: ffffffff8338a3e8 (rcu_tasks.tasks_gp_mutex){....}-{3:3}, at: rcu_tasks_kthread+0x9c/0x460 kernel/rcu/tasks.h:563 1 lock held by rcu_tasks_trace/14: #0: ffffffff8338a6c8 (rcu_tasks_trace.tasks_gp_mutex){....}-{3:3}, at: rcu_tasks_one_gp kernel/rcu/tasks.h:518 [inline] #0: ffffffff8338a6c8 (rcu_tasks_trace.tasks_gp_mutex){....}-{3:3}, at: rcu_tasks_kthread+0x9c/0x460 kernel/rcu/tasks.h:563 1 lock held by khungtaskd/28: #0: ffffffff8338a2c0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 include/trace/events/initcall.h:48 2 locks held by kworker/1:1H/364: #0: ffff8881066bcf38 ((wq_completion)xfs-log/loop0){....}-{0:0}, at: process_one_work+0x1ce/0x490 kernel/workqueue.c:2378 #1: ffffc9000101be68 ((work_completion)(&iclog->ic_end_io_work)){....}-{0:0}, at: process_one_work+0x1f8/0x490 kernel/workqueue.c:2380 2 locks held by getty/2150: #0: ffff88810c662098 (&tty->ldisc_sem){....}-{0:0}, at: tty_ldisc_ref_wait+0x20/0x40 drivers/tty/tty_ldisc.c:243 #1: ffffc90006f6b2f0 (&ldata->atomic_read_lock){....}-{3:3}, at: n_tty_read+0x20e/0x8e0 drivers/tty/n_tty.c:2176 1 lock held by syz.0.15/3286: #0: ffff888112ee9438 (sb_writers#12){....}-{0:0}, at: xfs_ioc_setlabel fs/xfs/xfs_ioctl.c:1783 [inline] #0: ffff888112ee9438 (sb_writers#12){....}-{0:0}, at: xfs_file_ioctl+0x400/0xc70 fs/xfs/xfs_ioctl.c:1899 2 locks held by syz.0.1116/6166: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.4.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x83/0xd0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x146/0x160 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x8b/0x140 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0x4f4/0x520 kernel/hung_task.c:379 kthread+0xe9/0x100 kernel/kthread.c:379 ret_from_fork+0x29/0x50 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 336 Comm: kworker/u4:3 Not tainted 6.4.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:arch_static_branch arch/x86/include/asm/jump_label.h:27 [inline] RIP: 0010:static_key_false include/linux/jump_label.h:207 [inline] RIP: 0010:native_write_msr arch/x86/include/asm/msr.h:147 [inline] RIP: 0010:wrmsrl arch/x86/include/asm/msr.h:262 [inline] RIP: 0010:native_x2apic_icr_write arch/x86/include/asm/apic.h:238 [inline] RIP: 0010:__x2apic_send_IPI_dest arch/x86/kernel/apic/x2apic_phys.c:123 [inline] RIP: 0010:x2apic_send_IPI+0x2e/0x60 arch/x86/kernel/apic/x2apic_phys.c:48 Code: 48 63 c7 48 8b 04 c5 e0 d8 fe 82 0f b7 90 c0 59 01 00 0f ae f0 0f ae e8 83 fe 02 b8 00 04 00 00 0f 45 c6 b9 30 08 00 00 0f 30 <66> 90 c3 cc cc cc cc f3 0f 1e fa 89 c0 48 c1 e2 20 48 09 c2 bf 30 RSP: 0018:ffffc900011abc60 EFLAGS: 00000206 RAX: 00000000000000fb RBX: 0000000000000001 RCX: 0000000000000830 RDX: 0000000000000001 RSI: 00000000000000fb RDI: 0000000000000001 RBP: 0000000000000001 R08: 0000000000000000 R09: 0005800000000000 R10: 0000000000000000 R11: ffffffff81115720 R12: 0000000000000001 R13: 0000000000000002 R14: 0000000000000000 R15: ffff888237c2fd00 FS: 0000000000000000(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000003258000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: arch_send_call_function_single_ipi arch/x86/include/asm/smp.h:109 [inline] send_call_function_single_ipi kernel/smp.c:112 [inline] smp_call_function_many_cond+0x51d/0x9d0 kernel/smp.c:810 on_each_cpu_cond_mask+0x3a/0x70 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+0x217/0x300 arch/x86/kernel/alternative.c:2032 text_poke_flush arch/x86/kernel/alternative.c:2161 [inline] text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:2168 arch_jump_label_transform_apply+0x17/0x30 arch/x86/kernel/jump_label.c:146 static_key_disable_cpuslocked kernel/jump_label.c:235 [inline] static_key_disable+0x3f/0x60 kernel/jump_label.c:243 toggle_allocation_gate+0xe2/0x130 mm/kfence/core.c:836 process_one_work+0x245/0x490 kernel/workqueue.c:2405 worker_thread+0x218/0x370 kernel/workqueue.c:2552 kthread+0xe9/0x100 kernel/kthread.c:379 ret_from_fork+0x29/0x50 arch/x86/entry/entry_64.S:308