INFO: task kworker/0:1:13 blocked for more than 143 seconds. Not tainted 5.15.173-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/0:1 state:D stack:23648 pid: 13 ppid: 2 flags:0x00004000 Workqueue: xfs-sync/loop4 xfs_flush_inodes_worker Call Trace: context_switch kernel/sched/core.c:5027 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6373 schedule+0x11b/0x1f0 kernel/sched/core.c:6456 wb_wait_for_completion+0x164/0x290 fs/fs-writeback.c:191 sync_inodes_sb+0x293/0xab0 fs/fs-writeback.c:2770 xfs_flush_inodes_worker+0x5d/0x80 fs/xfs/xfs_super.c:589 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 INFO: task syz.4.5:4359 blocked for more than 144 seconds. Not tainted 5.15.173-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.4.5 state:D stack:25656 pid: 4359 ppid: 4167 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5027 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6373 schedule+0x11b/0x1f0 kernel/sched/core.c:6456 schedule_timeout+0xac/0x300 kernel/time/timer.c:1890 do_wait_for_common+0x2d9/0x480 kernel/sched/completion.c:85 __wait_for_common kernel/sched/completion.c:106 [inline] wait_for_common kernel/sched/completion.c:117 [inline] wait_for_completion+0x48/0x60 kernel/sched/completion.c:138 __flush_work+0x124/0x1a0 kernel/workqueue.c:3094 xfs_file_buffered_write+0x40e/0xb20 fs/xfs/xfs_file.c:777 call_write_iter include/linux/fs.h:2174 [inline] new_sync_write fs/read_write.c:507 [inline] vfs_write+0xacd/0xe50 fs/read_write.c:594 ksys_write+0x1a2/0x2c0 fs/read_write.c:647 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f257ed4f719 RSP: 002b:00007f257d1a6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f257ef07058 RCX: 00007f257ed4f719 RDX: 000000000208e24b RSI: 0000000020000240 RDI: 0000000000000005 RBP: 00007f257edc275e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f257ef07058 R15: 00007ffe1efd4f18 Showing all locks held in the system: 4 locks held by kworker/0:1/13: #0: ffff888065521d38 ((wq_completion)xfs-sync/loop4){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90000d27d20 ((work_completion)(&mp->m_flush_inodes_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffff888077d180e0 (&type->s_umount_key#56){++++}-{3:3}, at: xfs_flush_inodes_worker+0x41/0x80 fs/xfs/xfs_super.c:588 #3: ffff888020d907d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline] (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xab0 fs/fs-writeback.c:2768 1 lock held by khungtaskd/27: #0: ffffffff8c91fc60 ( rcu_read_lock ){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 3 locks held by kworker/u4:1/144: 3 locks held by kworker/1:2/1106: #0: ffff888017070938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90004977d20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffffffff8c924228 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:290 [inline] #2: ffffffff8c924228 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x280/0x740 kernel/rcu/tree_exp.h:845 4 locks held by kworker/u4:4/1276: #0: ffff8881447ac938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90004d1fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffff888077d18650 (sb_internal#4){.+.+}-{0:0}, at: xfs_bmapi_convert_delalloc+0x20f/0x1180 fs/xfs/libxfs/xfs_bmap.c:4573 #3: ffff888062a300e8 (&xfs_nondir_ilock_class){++++}-{3:3}, at: xfs_bmapi_convert_delalloc+0x23c/0x1180 fs/xfs/libxfs/xfs_bmap.c:4578 2 locks held by getty/3923: #0: ffff88814c792098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252 #1: ffffc90001f1e2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158 3 locks held by syz.4.5/4359: #0: ffff888077d2c870 (&f->f_pos_lock){+.+.}-{3:3} , at: __fdget_pos+0x2cb/0x380 fs/file.c:1057 #1: ffff888077d18460 (sb_writers#16){.+.+}-{0:0}, at: vfs_write+0x29a/0xe50 fs/read_write.c:590 #2: ffff888062ae6480 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: xfs_ilock+0xec/0x390 fs/xfs/xfs_inode.c:184 2 locks held by kworker/1:9/4307: #0: ffff888017072138 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90003067d20 ((work_completion)(&rew.rew_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 2 locks held by syz.3.339/5716: #0: ffff8880602600e0 (&type->s_umount_key#55/1){+.+.}-{3:3}, at: alloc_super+0x210/0x940 fs/super.c:229 #1: ffffffff8c924228 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:322 [inline] #1: ffffffff8c924228 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x350/0x740 kernel/rcu/tree_exp.h:845 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xe72/0xeb0 kernel/hung_task.c:295 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4156 Comm: syz-executor Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024 RIP: 0010:cpumask_next_wrap+0x0/0x150 lib/cpumask.c:78 Code: 8d 80 e1 07 80 c1 03 38 c1 0f 8c 62 fe ff ff 48 c7 c7 f8 6b e9 8d e8 ef 56 9e fd e9 51 fe ff ff 66 2e 0f 1f 84 00 00 00 00 00 <55> 41 57 41 56 41 55 41 54 53 48 83 ec 10 41 89 cc 41 89 d7 49 89 RSP: 0018:ffffc90002cb7a18 EFLAGS: 00000086 RAX: ffff8880b913b050 RBX: ffff8880b9100000 RCX: 0000000000000001 RDX: 0000000000000001 RSI: ffff8880b9121428 RDI: 0000000000000001 RBP: ffffc90002cb7c00 R08: ffffffff842bf5e4 R09: fffffbfff1bd2d3e R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: 1ffff11002fcb009 R14: 0000000000000001 R15: ffff888017e58048 FS: 0000555582d67500(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002003c000 CR3: 000000001fb50000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: pick_next_task kernel/sched/core.c:5857 [inline] __schedule+0x30b2/0x45b0 kernel/sched/core.c:6337 schedule+0x11b/0x1f0 kernel/sched/core.c:6456 freezable_schedule include/linux/freezer.h:172 [inline] do_nanosleep+0x1bc/0x7b0 kernel/time/hrtimer.c:2047 hrtimer_nanosleep+0x24d/0x490 kernel/time/hrtimer.c:2100 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1313 [inline] __se_sys_clock_nanosleep+0x323/0x3b0 kernel/time/posix-timers.c:1290 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f700ab567c3 Code: 1f 84 00 00 00 00 00 83 ff 03 74 7b 83 ff 02 b8 fa ff ff ff 49 89 ca 0f 44 f8 80 3d 7e cd 15 00 00 74 14 b8 e6 00 00 00 0f 05 d8 c3 66 2e 0f 1f 84 00 00 00 00 00 48 83 ec 28 48 89 54 24 10 RSP: 002b:00007ffd37efc9b8 EFLAGS: 00000202 ORIG_RAX: 00000000000000e6 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f700ab567c3 RDX: 00007ffd37efc9d0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 00007ffd37f550b0 R09: 0000000000000010 R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffd37efce20 R13: 0000000000000004 R14: 00007ffd37efca0c R15: 00007ffd37efcaa0