IN INFO: task syz.2.10:6717 blocked for more than 143 seconds. Not tainted syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.2.10 state:D stack:0 pid:6717 tgid:6678 ppid:6537 task_flags:0x400140 flags:0x00000001 Call trace: __switch_to+0x418/0x87c arch/arm64/kernel/process.c:741 (T) context_switch kernel/sched/core.c:5357 [inline] __schedule+0x13b0/0x2864 kernel/sched/core.c:6961 __schedule_loop kernel/sched/core.c:7043 [inline] schedule+0xb4/0x230 kernel/sched/core.c:7058 schedule_preempt_disabled+0x18/0x2c kernel/sched/core.c:7115 rwsem_down_write_slowpath+0x6b4/0x10f4 kernel/locking/rwsem.c:1185 __down_write_common kernel/locking/rwsem.c:1317 [inline] __down_write kernel/locking/rwsem.c:1326 [inline] down_write+0xb4/0xc0 kernel/locking/rwsem.c:1591 inode_lock include/linux/fs.h:869 [inline] bch2_fallocate_dispatch+0xf4/0x434 fs/bcachefs/fs-io.c:827 vfs_fallocate+0x52c/0x668 fs/open.c:342 ioctl_preallocate fs/ioctl.c:290 [inline] file_ioctl+0x584/0x75c fs/ioctl.c:-1 do_vfs_ioctl+0xa10/0x1834 fs/ioctl.c:577 __do_sys_ioctl fs/ioctl.c:596 [inline] __se_sys_ioctl fs/ioctl.c:584 [inline] __arm64_sys_ioctl+0xe4/0x1c4 fs/ioctl.c:584 __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+0x5c/0x254 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:763 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 Showing all locks held in the system: 1 lock held by khungtaskd/32: #0: ffff80008f9c92e0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire+0x4/0x48 include/linux/rcupdate.h:330 2 locks held by pr/ttyAMA-1/43: 2 locks held by getty/6311: #0: ffff0000d363c0a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff80009bbce2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x34c/0xfa4 drivers/tty/n_tty.c:2222 5 locks held by syz.2.10/6713: #0: ffff0000c4240428 (sb_writers#15){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:557 #1: ffff0000f46608e0 (&sb->s_type->i_mutex_key#22){++++}-{4:4}, at: inode_lock_killable include/linux/fs.h:874 [inline] #1: ffff0000f46608e0 (&sb->s_type->i_mutex_key#22){++++}-{4:4}, at: do_truncate+0x164/0x210 fs/open.c:63 #2: ffff0000f6a00a50 (&c->snapshot_create_lock){.+.+}-{4:4}, at: bch2_truncate+0xe0/0x1e4 fs/bcachefs/io_misc.c:322 #3: ffff0000f6a04398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #4: ffff0000f6a26710 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x468/0x1ab8 fs/bcachefs/btree_update_interior.c:1211 2 locks held by syz.2.10/6717: #0: ffff0000c4240428 (sb_writers#15){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3107 [inline] #0: ffff0000c4240428 (sb_writers#15){.+.+}-{0:0}, at: vfs_fallocate+0x4d0/0x668 fs/open.c:341 #1: ffff0000f46608e0 (&sb->s_type->i_mutex_key#22){++++}-{4:4}, at: inode_lock include/linux/fs.h:869 [inline] #1: ffff0000f46608e0 (&sb->s_type->i_mutex_key#22){++++}-{4:4}, at: bch2_fallocate_dispatch+0xf4/0x434 fs/bcachefs/fs-io.c:827 =============================================