INFO: task kworker/u4:3:46 blocked for more than 143 seconds. Not tainted 6.1.20-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:3 state:D stack:21624 pid:46 ppid:2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-7:4) Call Trace: context_switch kernel/sched/core.c:5238 [inline] __schedule+0x1391/0x4390 kernel/sched/core.c:6551 schedule+0xbf/0x180 kernel/sched/core.c:6627 rwsem_down_write_slowpath+0xe93/0x14a0 kernel/locking/rwsem.c:1189 f2fs_down_write fs/f2fs/f2fs.h:2207 [inline] f2fs_balance_fs+0x4fb/0x6c0 fs/f2fs/segment.c:418 f2fs_write_inode+0x4c3/0x540 fs/f2fs/inode.c:757 write_inode fs/fs-writeback.c:1440 [inline] __writeback_single_inode+0x84d/0x15d0 fs/fs-writeback.c:1652 writeback_sb_inodes+0xbe3/0x1b10 fs/fs-writeback.c:1878 __writeback_inodes_wb+0x114/0x400 fs/fs-writeback.c:1949 wb_writeback+0x518/0x1070 fs/fs-writeback.c:2054 wb_check_old_data_flush fs/fs-writeback.c:2154 [inline] wb_do_writeback fs/fs-writeback.c:2207 [inline] wb_workfn+0xcc3/0x10f0 fs/fs-writeback.c:2235 process_one_work+0x909/0x1380 kernel/workqueue.c:2289 worker_thread+0xa5f/0x1210 kernel/workqueue.c:2436 kthread+0x268/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cf27470 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by rcu_tasks_trace/13: #0: ffffffff8cf27c70 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by khungtaskd/28: #0: ffffffff8cf272a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 4 locks held by kworker/u4:3/46: #0: ffff8880126c1138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x77b/0x1380 #1: ffffc90000b77d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7be/0x1380 kernel/workqueue.c:2264 #2: ffff8880805420e0 (&type->s_umount_key#62){++++}-{3:3}, at: trylock_super+0x1b/0xf0 fs/super.c:415 #3: ffff88807b109140 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2207 [inline] #3: ffff88807b109140 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x4fb/0x6c0 fs/f2fs/segment.c:418 2 locks held by getty/3311: #0: ffff88814b210098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900031262f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a7/0x1db0 drivers/tty/n_tty.c:2177 2 locks held by kworker/1:0/12785: #0: ffff888012466538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x77b/0x1380 #1: ffffc90014cefd20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7be/0x1380 kernel/workqueue.c:2264 2 locks held by syz-executor.4/17317: 2 locks held by kworker/u4:9/18895: #0: ffff888012469138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x77b/0x1380 #1: ffffc90015307d20 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work+0x7be/0x1380 kernel/workqueue.c:2264 2 locks held by kworker/u4:13/18898: #0: ffff888012469138 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x77b/0x1380 #1: ffffc90015337d20 ((work_completion)(&ctx->exit_work)){+.+.}-{0:0}, at: process_one_work+0x7be/0x1380 kernel/workqueue.c:2264 1 lock held by syz-executor.5/23229: #0: ffff88801ccd6a58 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_write_lock_killable include/linux/mmap_lock.h:87 [inline] #0: ffff88801ccd6a58 (&mm->mmap_lock#2){++++}-{3:3}, at: vm_mmap_pgoff+0x175/0x2d0 mm/util.c:518 1 lock held by syz-executor.5/23230: 1 lock held by syz-executor.4/23246: #0: ffffffff8cf2c878 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline] #0: ffffffff8cf2c878 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3b0/0x8a0 kernel/rcu/tree_exp.h:948 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.1.20-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x4e1/0x560 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1b0/0x3f0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xff3/0x1040 kernel/hung_task.c:377 kthread+0x268/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline] NMI backtrace for cpu 1 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline] NMI backtrace for cpu 1 skipped: idling at acpi_safe_halt drivers/acpi/processor_idle.c:112 [inline] NMI backtrace for cpu 1 skipped: idling at acpi_idle_do_entry+0x10f/0x340 drivers/acpi/processor_idle.c:572