INFO: task syz.0.56:6769 blocked for more than 143 seconds. Not tainted 6.10.0-rc7-syzkaller-gc912bf709078 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.0.56 state:D stack:0 pid:6769 tgid:6768 ppid:6380 flags:0x00000009 Call trace: __switch_to+0x314/0x560 arch/arm64/kernel/process.c:553 context_switch kernel/sched/core.c:5408 [inline] __schedule+0x14ac/0x24d8 kernel/sched/core.c:6745 __schedule_loop kernel/sched/core.c:6822 [inline] schedule+0xbc/0x238 kernel/sched/core.c:6837 __closure_sync+0x198/0x29c lib/closure.c:146 closure_sync include/linux/closure.h:194 [inline] bch2_btree_update_start+0x1208/0x15a0 fs/bcachefs/btree_update_interior.c:1267 bch2_btree_split_leaf+0x11c/0x734 fs/bcachefs/btree_update_interior.c:1851 bch2_trans_commit_error+0x2a4/0x1068 fs/bcachefs/btree_trans_commit.c:918 __bch2_trans_commit+0x35e4/0x592c fs/bcachefs/btree_trans_commit.c:1138 bch2_trans_commit fs/bcachefs/btree_update.h:170 [inline] bch2_logged_op_start+0x19c/0x2c0 fs/bcachefs/logged_ops.c:83 bch2_truncate+0x168/0x274 fs/bcachefs/io_misc.c:291 bchfs_truncate+0x668/0xa74 fs/bcachefs/fs-io.c:476 bch2_setattr+0x198/0x230 fs/bcachefs/fs.c:926 notify_change+0x9d4/0xc84 fs/attr.c:497 do_truncate+0x1c0/0x28c fs/open.c:65 handle_truncate fs/namei.c:3355 [inline] do_open fs/namei.c:3705 [inline] path_openat+0x2428/0x2ae8 fs/namei.c:3860 do_filp_open+0x1bc/0x3cc fs/namei.c:3887 do_sys_openat2+0x124/0x1b8 fs/open.c:1413 do_sys_open fs/open.c:1428 [inline] __do_sys_openat fs/open.c:1444 [inline] __se_sys_openat fs/open.c:1439 [inline] __arm64_sys_openat+0x1f0/0x240 fs/open.c:1439 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:131 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:150 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: 4 locks held by kworker/u8:1/13: 1 lock held by khungtaskd/31: #0: ffff80008f4b7be0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:328 3 locks held by kworker/u8:5/473: #0: ffff0000d1e68948 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x624/0x15b8 kernel/workqueue.c:3222 #1: ffff800099257c20 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6a0/0x15b8 kernel/workqueue.c:3222 #2: ffff8000921432e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 3 locks held by kworker/0:2/1433: #0: ffff0000c0028948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x624/0x15b8 kernel/workqueue.c:3222 #1: ffff80009afe7c20 (deferred_process_work){+.+.}-{0:0}, at: process_one_work+0x6a0/0x15b8 kernel/workqueue.c:3222 #2: ffff8000921432e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 3 locks held by kworker/u8:8/1934: 1 lock held by dhcpcd/6046: #0: ffff8000921432e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 2 locks held by getty/6129: #0: ffff0000d26050a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff8000980ee2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x41c/0x1228 drivers/tty/n_tty.c:2211 3 locks held by kworker/0:4/6428: #0: ffff0000c0028948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x624/0x15b8 kernel/workqueue.c:3222 #1: ffff8000ac5f7c20 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x6a0/0x15b8 kernel/workqueue.c:3222 #2: ffff8000921432e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 5 locks held by syz.0.56/6769: #0: ffff0000d48d0420 (sb_writers#18){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:409 #1: ffff0000efb89788 (&sb->s_type->i_mutex_key#23){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:791 [inline] #1: ffff0000efb89788 (&sb->s_type->i_mutex_key#23){+.+.}-{3:3}, at: do_truncate+0x1ac/0x28c fs/open.c:63 #2: ffff0000fac80ab8 (&c->snapshot_create_lock){.+.+}-{3:3}, at: bch2_truncate+0x134/0x274 fs/bcachefs/io_misc.c:290 #3: ffff0000fac842d8 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:115 #4: ffff0000faca6750 (&c->gc_lock){.+.+}-{3:3}, at: bch2_btree_update_start+0x590/0x15a0 fs/bcachefs/btree_update_interior.c:1195 3 locks held by bch-copygc/loop/6794: 4 locks held by syz-executor/8012: #0: ffff0000d8354420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2854 [inline] #0: ffff0000d8354420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x2e8/0xc38 fs/read_write.c:586 #1: ffff0000eef25c88 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1c8/0x48c fs/kernfs/file.c:325 #2: ffff0000cb8f0d28 (kn->active#46){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x1e4/0x48c fs/kernfs/file.c:326 #3: ffff8000912d2268 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: new_device_store+0x170/0x704 drivers/net/netdevsim/bus.c:166 1 lock held by syz-executor/8016: #0: ffff8000921432e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffff8000921432e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x704/0xe64 net/core/rtnetlink.c:6632 4 locks held by syz-executor/8018: #0: ffff0000d8354420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2854 [inline] #0: ffff0000d8354420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x2e8/0xc38 fs/read_write.c:586 #1: ffff000100d48c88 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1c8/0x48c fs/kernfs/file.c:325 #2: ffff0000cb8f0d28 (kn->active#46){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x1e4/0x48c fs/kernfs/file.c:326 #3: ffff8000912d2268 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: new_device_store+0x170/0x704 drivers/net/netdevsim/bus.c:166 7 locks held by syz-executor/8109: #0: ffff0000d8354420 (sb_writers#7){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2854 [inline] #0: ffff0000d8354420 (sb_writers#7){.+.+}-{0:0}, at: vfs_write+0x2e8/0xc38 fs/read_write.c:586 #1: ffff0000d53cac88 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1c8/0x48c fs/kernfs/file.c:325 #2: ffff0000cb8f0e18 (kn->active#45){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x1e4/0x48c fs/kernfs/file.c:326 #3: ffff8000912d2268 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xec/0x39c drivers/net/netdevsim/bus.c:216 #4: ffff0000f95e60e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:1009 [inline] #4: ffff0000f95e60e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1093 [inline] #4: ffff0000f95e60e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xbc/0x698 drivers/base/dd.c:1290 #5: ffff0000f95e7250 (&devlink->lock_key#16){+.+.}-{3:3}, at: devl_lock+0x24/0x34 net/devlink/core.c:276 #6: ffff8000921432e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 1 lock held by syz.0.207/8203: #0: ffff8000921432e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffff8000921432e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x704/0xe64 net/core/rtnetlink.c:6632 1 lock held by syz.0.207/8206: #0: ffff8000921432e8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 =============================================