INFO: task syz.1.23:6678 blocked for more than 143 seconds. Not tainted 6.11.0-rc7-syzkaller-g5f5673607153 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.23 state:D stack:0 pid:6678 tgid:6603 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: 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:7/549: 3 locks held by kworker/u8:8/589: #0: ffff0000c20e6148 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x624/0x15b8 kernel/workqueue.c:3205 #1: ffff80009c927c20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6a0/0x15b8 kernel/workqueue.c:3205 #2: ffff0000db5a00e0 (&type->s_umount_key#68){++++}-{3:3}, at: super_trylock_shared+0x28/0xe4 fs/super.c:562 2 locks held by getty/6182: #0: ffff0000d29040a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff80009b50e2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x41c/0x1228 drivers/tty/n_tty.c:2211 1 lock held by syz.1.23/6677: #0: ffff0000db5a0420 (sb_writers#15){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2882 [inline] #0: ffff0000db5a0420 (sb_writers#15){.+.+}-{0:0}, at: vfs_write+0x368/0xc80 fs/read_write.c:586 2 locks held by syz.1.23/6678: #0: ffff0000db5a0420 (sb_writers#15){.+.+}-{0:0}, at: do_ftruncate+0x1e4/0x4cc fs/open.c:178 #1: ffff0000ee1708a8 (&sb->s_type->i_mutex_key#23){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:800 [inline] #1: ffff0000ee1708a8 (&sb->s_type->i_mutex_key#23){+.+.}-{3:3}, at: do_truncate fs/open.c:63 [inline] #1: ffff0000ee1708a8 (&sb->s_type->i_mutex_key#23){+.+.}-{3:3}, at: do_ftruncate+0x3d0/0x4cc fs/open.c:181 2 locks held by bch-copygc/loop/6646: 3 locks held by syz-executor/7990: #0: ffff0000db96cd80 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:481 [inline] #0: ffff0000db96cd80 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x1f0/0x4b8 net/bluetooth/hci_core.c:2698 #1: ffff0000db96c078 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_close_sync+0x430/0x1074 net/bluetooth/hci_sync.c:5183 #2: ffff800092598b48 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:1972 [inline] #2: ffff800092598b48 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_conn_hash_flush+0xac/0x220 net/bluetooth/hci_conn.c:2592 2 locks held by syz.2.353/8890: 1 lock held by syz.0.357/8908: #0: ffff0000df18be08 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:800 [inline] #0: ffff0000df18be08 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: __sock_release net/socket.c:658 [inline] #0: ffff0000df18be08 (&sb->s_type->i_mutex_key#10){+.+.}-{3:3}, at: sock_close+0x80/0x1e8 net/socket.c:1421 =============================================