INFO: task syz.2.128:7221 blocked for more than 144 seconds. Not tainted 6.11.0-rc7-syzkaller-g5f5673607153 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.2.128 state:D stack:0 pid:7221 tgid:7207 ppid:6412 flags:0x00000001 Call trace: __switch_to+0x420/0x6dc arch/arm64/kernel/process.c:603 context_switch kernel/sched/core.c:5188 [inline] __schedule+0x13d4/0x2418 kernel/sched/core.c:6529 __schedule_loop kernel/sched/core.c:6606 [inline] schedule+0xbc/0x238 kernel/sched/core.c:6621 io_schedule+0x8c/0x124 kernel/sched/core.c:7401 folio_wait_bit_common+0x65c/0xb90 mm/filemap.c:1307 folio_wait_bit+0x30/0x40 mm/filemap.c:1446 folio_wait_writeback+0x9c/0x100 mm/page-writeback.c:3189 truncate_inode_pages_range+0xae4/0xf64 mm/truncate.c:398 truncate_inode_pages mm/truncate.c:423 [inline] truncate_pagecache mm/truncate.c:727 [inline] truncate_setsize+0xd4/0x100 mm/truncate.c:752 bchfs_truncate+0x570/0xab0 fs/bcachefs/fs-io.c:460 bch2_setattr+0x198/0x230 fs/bcachefs/fs.c:942 notify_change+0x9f0/0xca0 fs/attr.c:503 do_truncate fs/open.c:65 [inline] do_ftruncate+0x3e4/0x4cc fs/open.c:181 do_sys_ftruncate fs/open.c:199 [inline] __do_sys_ftruncate fs/open.c:207 [inline] __se_sys_ftruncate fs/open.c:205 [inline] __arm64_sys_ftruncate+0x94/0xec fs/open.c:205 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 Showing all locks held in the system: 3 locks held by kworker/u8:1/13: #0: ffff0000c20e6148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x624/0x15b8 kernel/workqueue.c:3205 #1: ffff8000975d7c20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6a0/0x15b8 kernel/workqueue.c:3205 #2: ffff0000d8ae60e0 (&type->s_umount_key#86){.+.+}-{3:3}, at: super_trylock_shared+0x28/0xe4 fs/super.c:562 1 lock held by khungtaskd/31: #0: ffff80008f74dfa0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:325 2 locks held by kworker/u8:3/44: 2 locks held by getty/6172: #0: ffff0000d203e0a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff80009b54b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x41c/0x1228 drivers/tty/n_tty.c:2211 1 lock held by syz.2.128/7220: #0: ffff0000d8ae6420 (sb_writers#27){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2882 [inline] #0: ffff0000d8ae6420 (sb_writers#27){.+.+}-{0:0}, at: vfs_write+0x368/0xc80 fs/read_write.c:586 2 locks held by syz.2.128/7221: #0: ffff0000d8ae6420 (sb_writers#27){.+.+}-{0:0}, at: do_ftruncate+0x1e4/0x4cc fs/open.c:178 #1: ffff0000ef228148 (&sb->s_type->i_mutex_key#33){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:800 [inline] #1: ffff0000ef228148 (&sb->s_type->i_mutex_key#33){+.+.}-{3:3}, at: do_truncate fs/open.c:63 [inline] #1: ffff0000ef228148 (&sb->s_type->i_mutex_key#33){+.+.}-{3:3}, at: do_ftruncate+0x3d0/0x4cc fs/open.c:181 1 lock held by bch-copygc/loop/7217: 3 locks held by syz.2.216/8061: #0: ffff0000d8ae60e0 (&type->s_umount_key#86){.+.+}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff0000d8ae60e0 (&type->s_umount_key#86){.+.+}-{3:3}, at: super_lock+0x244/0x33c fs/super.c:120 #1: ffff0000ef7842c0 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:150 #2: ffff0000ef7a6690 (&c->gc_lock){++++}-{3:3}, at: bch2_btree_update_start+0x588/0x15ac fs/bcachefs/btree_update_interior.c:1197 3 locks held by kworker/u8:14/9023: #0: ffff0001b36ae698 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested kernel/sched/core.c:560 [inline] #0: ffff0001b36ae698 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock kernel/sched/sched.h:1415 [inline] #0: ffff0001b36ae698 (&rq->__lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1714 [inline] #0: ffff0001b36ae698 (&rq->__lock){-.-.}-{2:2}, at: __schedule+0x2d8/0x2418 kernel/sched/core.c:6436 #1: ffff80009c787c20 ((work_completion)(&(&kfence_timer)->work)){+.+.}-{0:0}, at: process_one_work+0x6a0/0x15b8 kernel/workqueue.c:3205 #2: ffff0001b369ad18 (&base->lock){-.-.}-{2:2}, at: __mod_timer+0x7b0/0xcf4 kernel/time/timer.c:1164 1 lock held by syz.3.450/9232: 1 lock held by syz.0.467/9287: 2 locks held by syz.4.474/9332: =============================================