INFO: task kworker/u4:15:4512 blocked for more than 143 seconds. Not tainted 5.15.179-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:15 state:D stack: 0 pid: 4512 ppid: 2 flags:0x00000008 Workqueue: writeback wb_workfn (flush-7:4) Call trace: __switch_to+0x308/0x588 arch/arm64/kernel/process.c:518 context_switch kernel/sched/core.c:5029 [inline] __schedule+0xf10/0x1e48 kernel/sched/core.c:6375 schedule+0x11c/0x1c8 kernel/sched/core.c:6458 rwsem_down_write_slowpath+0xd94/0x17e0 kernel/locking/rwsem.c:1165 __down_write_common kernel/locking/rwsem.c:1292 [inline] __down_write kernel/locking/rwsem.c:1301 [inline] down_write+0xe8/0x12c kernel/locking/rwsem.c:1552 f2fs_balance_fs+0x3e8/0x6a0 fs/f2fs/segment.c:528 f2fs_write_inode+0x430/0x598 fs/f2fs/inode.c:738 write_inode fs/fs-writeback.c:1495 [inline] __writeback_single_inode+0x584/0x13a4 fs/fs-writeback.c:1705 writeback_sb_inodes+0x94c/0x1654 fs/fs-writeback.c:1930 __writeback_inodes_wb+0x110/0x39c fs/fs-writeback.c:2001 wb_writeback+0x410/0xfc8 fs/fs-writeback.c:2106 wb_check_background_flush fs/fs-writeback.c:2172 [inline] wb_do_writeback fs/fs-writeback.c:2260 [inline] wb_workfn+0xc44/0x1070 fs/fs-writeback.c:2288 process_one_work+0x790/0x11b8 kernel/workqueue.c:2310 worker_thread+0x910/0x1034 kernel/workqueue.c:2457 kthread+0x37c/0x45c kernel/kthread.c:334 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:870 Showing all locks held in the system: 4 locks held by kworker/u4:0/9: 1 lock held by khungtaskd/27: #0: ffff800014d41b60 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:311 1 lock held by udevd/3643: #0: ffff0001b4186918 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:475 [inline] #0: ffff0001b4186918 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1326 [inline] #0: ffff0001b4186918 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1621 [inline] #0: ffff0001b4186918 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x328/0x1e48 kernel/sched/core.c:6289 2 locks held by getty/3794: #0: ffff0000d3c0e098 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x40/0x50 drivers/tty/tty_ldsem.c:340 #1: ffff80001d78e2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x414/0x1204 drivers/tty/n_tty.c:2158 3 locks held by kworker/1:3/4071: 2 locks held by kworker/u4:10/4208: 4 locks held by kworker/u4:15/4512: #0: ffff0000c21d8138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x66c/0x11b8 kernel/workqueue.c:2283 #1: ffff8000207a7c00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6ac/0x11b8 kernel/workqueue.c:2285 #2: ffff0000d22ee0e0 (&type->s_umount_key#52){++++}-{3:3}, at: trylock_super+0x28/0xf8 fs/super.c:418 #3: ffff0000d6c651b0 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x3e8/0x6a0 fs/f2fs/segment.c:528 2 locks held by kworker/u4:26/4543: #0: ffff0001b41a7918 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:475 [inline] #0: ffff0001b41a7918 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1326 [inline] #0: ffff0001b41a7918 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1621 [inline] #0: ffff0001b41a7918 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x328/0x1e48 kernel/sched/core.c:6289 #1: ffff0001b4173c48 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x438/0x66c kernel/sched/psi.c:891 5 locks held by syz.4.139/4787: 2 locks held by syz.0.296/5362: #0: ffff0000d22ee0e0 (&type->s_umount_key#52){++++}-{3:3}, at: iterate_supers+0xb0/0x1dc fs/super.c:716 #1: ffff0000cc0927d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline] #1: ffff0000cc0927d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x208/0x944 fs/fs-writeback.c:2768 2 locks held by syz.0.296/5365: #0: ffff0000d22ee0e0 (&type->s_umount_key#52){++++}-{3:3}, at: iterate_supers+0xb0/0x1dc fs/super.c:716 #1: ffff0000cc0927d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline] #1: ffff0000cc0927d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x208/0x944 fs/fs-writeback.c:2768 2 locks held by syz.2.576/6829: #0: ffff0000d22ee0e0 (&type->s_umount_key#52){++++}-{3:3}, at: iterate_supers+0xb0/0x1dc fs/super.c:716 #1: ffff0000cc0927d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline] #1: ffff0000cc0927d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x208/0x944 fs/fs-writeback.c:2768 1 lock held by dhcpcd-run-hook/6993: =============================================