INFO: task syz.2.56:6807 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.2.56 state:D stack:0 pid:6807 tgid:6778 ppid:6415 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 schedule_preempt_disabled+0x18/0x2c kernel/sched/core.c:6678 rwsem_down_write_slowpath+0xd10/0x14c8 kernel/locking/rwsem.c:1178 __down_write_common kernel/locking/rwsem.c:1306 [inline] __down_write kernel/locking/rwsem.c:1315 [inline] down_write+0xb4/0xc0 kernel/locking/rwsem.c:1580 inode_lock include/linux/fs.h:800 [inline] do_truncate+0x1ac/0x28c fs/open.c:63 handle_truncate fs/namei.c:3381 [inline] do_open fs/namei.c:3731 [inline] path_openat+0x2388/0x29f8 fs/namei.c:3886 do_filp_open+0x1bc/0x3cc fs/namei.c:3913 do_sys_openat2+0x124/0x1b8 fs/open.c:1416 do_sys_open fs/open.c:1431 [inline] __do_sys_openat fs/open.c:1447 [inline] __se_sys_openat fs/open.c:1442 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1442 __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: 2 locks held by kworker/0:1/10: #0: ffff0000d73db548 ((wq_completion)xfs-sync/loop3){+.+.}-{0:0}, at: process_one_work+0x624/0x15b8 kernel/workqueue.c:3205 #1: ffff8000975a7c20 ((work_completion)(&(&log->l_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6a0/0x15b8 kernel/workqueue.c:3205 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 getty/6174: #0: ffff0000d70590a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff80009b52e2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x41c/0x1228 drivers/tty/n_tty.c:2211 2 locks held by kworker/u8:8/6545: 5 locks held by syz.2.56/6780: #0: ffff0000d6620420 (sb_writers#17){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:515 #1: ffff0000eb910148 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:800 [inline] #1: ffff0000eb910148 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: do_truncate+0x1ac/0x28c fs/open.c:63 #2: ffff0000f9080a18 (&c->snapshot_create_lock){.+.+}-{3:3}, at: bch2_truncate+0x134/0x274 fs/bcachefs/io_misc.c:290 #3: ffff0000f90842c0 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:150 #4: ffff0000f90a6690 (&c->gc_lock){++++}-{3:3}, at: bch2_btree_update_start+0x588/0x15ac fs/bcachefs/btree_update_interior.c:1197 2 locks held by syz.2.56/6807: #0: ffff0000d6620420 (sb_writers#17){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:515 #1: ffff0000eb910148 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:800 [inline] #1: ffff0000eb910148 (&sb->s_type->i_mutex_key#25){+.+.}-{3:3}, at: do_truncate+0x1ac/0x28c fs/open.c:63 3 locks held by bch-reclaim/loo/6799: 3 locks held by syz.3.100/6999: #0: ffff0000c5ed4420 (sb_writers#24){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:515 #1: ffff0000eb976030 (&sb->s_type->i_mutex_key#26){++++}-{3:3}, at: inode_lock include/linux/fs.h:800 [inline] #1: ffff0000eb976030 (&sb->s_type->i_mutex_key#26){++++}-{3:3}, at: vfs_setxattr+0x17c/0x344 fs/xattr.c:320 #2: ffff0000c5ed4610 (sb_internal#3){.+.+}-{0:0}, at: xfs_trans_alloc_inode+0x170/0x4f4 fs/xfs/xfs_trans.c:1077 4 locks held by syz.3.100/7048: #0: ffff0000ce559c48 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x218/0x2a4 fs/file.c:1187 #1: ffff0000eb9729f0 (&inode->i_sb->s_type->i_mutex_dir_key){++++}-{3:3}, at: iterate_dir+0x1c4/0x648 fs/readdir.c:101 #2: ffff0000c5ed4420 (sb_writers#24){.+.+}-{0:0}, at: file_accessed include/linux/fs.h:2486 [inline] #2: ffff0000c5ed4420 (sb_writers#24){.+.+}-{0:0}, at: iterate_dir+0x470/0x648 fs/readdir.c:111 #3: ffff0000c5ed4610 (sb_internal#3){.+.+}-{0:0}, at: xfs_vn_update_time+0x1d0/0x608 fs/xfs/xfs_iops.c:1093 7 locks held by syz-executor/8522: #0: ffff0000d7e10420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2882 [inline] #0: ffff0000d7e10420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x368/0xc80 fs/read_write.c:586 #1: ffff0000eeb0d888 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1c8/0x48c fs/kernfs/file.c:325 #2: ffff0000cc479878 (kn->active#45){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x1e4/0x48c fs/kernfs/file.c:326 #3: ffff800091592148 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xec/0x39c drivers/net/netdevsim/bus.c:216 #4: ffff0000fa2050e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1009 [inline] #4: ffff0000fa2050e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1094 [inline] #4: ffff0000fa2050e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xbc/0x698 drivers/base/dd.c:1292 #5: ffff0000d2747250 (&devlink->lock_key#9){+.+.}-{3:3}, at: devl_lock+0x24/0x34 net/devlink/core.c:276 #6: ffff80008f7531c0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x58/0x534 kernel/rcu/tree.c:4486 2 locks held by syz.4.374/8584: 2 locks held by syz.1.375/8623: #0: ffff0000eca4d0a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff0000eca4d130 (&tty->atomic_write_lock){+.+.}-{3:3}, at: tty_write_lock drivers/tty/tty_io.c:954 [inline] #1: ffff0000eca4d130 (&tty->atomic_write_lock){+.+.}-{3:3}, at: iterate_tty_write drivers/tty/tty_io.c:973 [inline] #1: ffff0000eca4d130 (&tty->atomic_write_lock){+.+.}-{3:3}, at: file_tty_write+0x188/0x7b8 drivers/tty/tty_io.c:1096 =============================================