INFO: task kworker/u8:4:196 blocked for more than 143 seconds. Not tainted 6.9.0-rc7-syzkaller-g1c9135d29e9e #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u8:4 state:D stack:0 pid:196 tgid:196 ppid:2 flags:0x00000008 Workqueue: writeback wb_workfn (flush-bcachefs-5) Call trace: __switch_to+0x314/0x560 arch/arm64/kernel/process.c:553 context_switch kernel/sched/core.c:5409 [inline] __schedule+0x14b8/0x24e8 kernel/sched/core.c:6746 __schedule_loop kernel/sched/core.c:6823 [inline] schedule+0xbc/0x238 kernel/sched/core.c:6838 six_lock_slowpath+0x4d8/0x1648 fs/bcachefs/six.c:493 six_lock_ip_waiter+0x124/0x178 fs/bcachefs/six.c:550 __btree_node_lock_nopath fs/bcachefs/btree_locking.h:208 [inline] __bch2_btree_node_lock_write+0x110/0x308 fs/bcachefs/btree_locking.c:429 __btree_node_lock_write fs/bcachefs/btree_locking.h:298 [inline] bch2_btree_node_lock_write fs/bcachefs/btree_locking.h:306 [inline] bch2_trans_lock_write+0x5e0/0xa4c fs/bcachefs/btree_trans_commit.c:103 do_bch2_trans_commit fs/bcachefs/btree_trans_commit.c:850 [inline] __bch2_trans_commit+0x24b0/0x565c fs/bcachefs/btree_trans_commit.c:1093 bch2_trans_commit fs/bcachefs/btree_update.h:168 [inline] bch2_extent_update+0x3d0/0x9b4 fs/bcachefs/io_write.c:318 bch2_write_index_default fs/bcachefs/io_write.c:366 [inline] __bch2_write_index+0x6b4/0x1324 fs/bcachefs/io_write.c:520 bch2_write_data_inline fs/bcachefs/io_write.c:1538 [inline] bch2_write+0xd74/0x1520 fs/bcachefs/io_write.c:1606 closure_queue include/linux/closure.h:257 [inline] closure_call include/linux/closure.h:390 [inline] bch2_writepage_do_io fs/bcachefs/fs-io-buffered.c:468 [inline] bch2_writepages+0x224/0x304 fs/bcachefs/fs-io-buffered.c:660 do_writepages+0x2f8/0x7c4 mm/page-writeback.c:2612 __writeback_single_inode+0x160/0x1548 fs/fs-writeback.c:1650 writeback_sb_inodes+0x700/0x101c fs/fs-writeback.c:1941 __writeback_inodes_wb+0xec/0x234 fs/fs-writeback.c:2012 wb_writeback+0x418/0x1048 fs/fs-writeback.c:2119 wb_check_background_flush fs/fs-writeback.c:2189 [inline] wb_do_writeback fs/fs-writeback.c:2277 [inline] wb_workfn+0xc30/0x104c fs/fs-writeback.c:2304 process_one_work+0x7b8/0x15d4 kernel/workqueue.c:3267 process_scheduled_works kernel/workqueue.c:3348 [inline] worker_thread+0x938/0xef4 kernel/workqueue.c:3429 kthread+0x288/0x310 kernel/kthread.c:388 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffff80008f0778c0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:328 9 locks held by kworker/u8:4/196: #0: ffff0000c1ecc948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x668/0x15d4 kernel/workqueue.c:3241 #1: ffff800097a27c20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6b4/0x15d4 kernel/workqueue.c:3241 #2: ffff0000ef62c0e0 (&type->s_umount_key#62){++++}-{3:3}, at: super_trylock_shared+0x28/0xe4 fs/super.c:561 #3: ffff0000f3584250 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:115 #4: ffff0000c86cd870 (&dev->mutex){....}-{3:3}, at: six_trylock_type+0x1c/0x4c fs/bcachefs/six.h:206 #5: ffff0000db8a8870 (&dev->mutex){....}-{3:3}, at: six_trylock_type+0x1c/0x4c fs/bcachefs/six.h:206 #6: ffff0000db8a8870 (&dev->mutex){....}-{3:3}, at: btree_path_copy fs/bcachefs/btree_iter.c:1219 [inline] #6: ffff0000db8a8870 (&dev->mutex){....}-{3:3}, at: btree_path_clone fs/bcachefs/btree_iter.c:1227 [inline] #6: ffff0000db8a8870 (&dev->mutex){....}-{3:3}, at: __bch2_btree_path_make_mut+0x1a0/0x4a8 fs/bcachefs/btree_iter.c:1237 #7: ffff0000deb16478 (&dev->mutex){....}-{3:3}, at: six_trylock_type+0x1c/0x4c fs/bcachefs/six.h:206 #8: ffff0000db8a8870 (&dev->mutex){....}-{3:3}, at: btree_path_copy fs/bcachefs/btree_iter.c:1219 [inline] #8: ffff0000db8a8870 (&dev->mutex){....}-{3:3}, at: btree_path_clone fs/bcachefs/btree_iter.c:1227 [inline] #8: ffff0000db8a8870 (&dev->mutex){....}-{3:3}, at: __bch2_btree_path_make_mut+0x1a0/0x4a8 fs/bcachefs/btree_iter.c:1237 3 locks held by kworker/1:2/1721: #0: ffff0000c0028948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x668/0x15d4 kernel/workqueue.c:3241 #1: ffff80009c387c20 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x6b4/0x15d4 kernel/workqueue.c:3241 #2: ffff0000c2969240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x270/0x32bc drivers/net/netdevsim/fib.c:1489 3 locks held by kworker/u8:7/2066: #0: ffff0000d2353148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x668/0x15d4 kernel/workqueue.c:3241 #1: ffff80009c717c20 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6b4/0x15d4 kernel/workqueue.c:3241 #2: ffff800091bf3068 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 2 locks held by getty/6002: #0: ffff0000d70ea0a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff800097b8e2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x41c/0x1228 drivers/tty/n_tty.c:2201 3 locks held by kworker/0:4/6243: #0: ffff0000c0028948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x668/0x15d4 kernel/workqueue.c:3241 #1: ffff8000a0667c20 ((work_completion)(&data->fib_event_work)){+.+.}-{0:0}, at: process_one_work+0x6b4/0x15d4 kernel/workqueue.c:3241 #2: ffff0000d02d2240 (&data->fib_lock){+.+.}-{3:3}, at: nsim_fib_event_work+0x270/0x32bc drivers/net/netdevsim/fib.c:1489 3 locks held by kworker/0:6/6317: #0: ffff0000c0028948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x668/0x15d4 kernel/workqueue.c:3241 #1: ffff8000a8fe7c20 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x6b4/0x15d4 kernel/workqueue.c:3241 #2: ffff800091bf3068 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 4 locks held by syz-executor.0/6553: 5 locks held by kworker/u8:10/8482: #0: ffff0000c1871948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x668/0x15d4 kernel/workqueue.c:3241 #1: ffff800098c97c20 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x6b4/0x15d4 kernel/workqueue.c:3241 #2: ffff800091be6f50 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x13c/0x9b4 net/core/net_namespace.c:591 #3: ffff800091bf3068 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 #4: ffff0000c6a4f180 (&caifn->caifdevs.lock){+.+.}-{3:3}, at: caif_exit_net+0x8c/0x4e4 net/caif/caif_dev.c:529 1 lock held by syz-executor.2/9953: #0: ffff800091bf3068 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffff800091bf3068 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x6e0/0xdbc net/core/rtnetlink.c:6592 2 locks held by syz-executor.0/10122: 4 locks held by syz-executor.1/10127: 2 locks held by syz-executor.3/10134: =============================================