INFO: task kworker/u8:5:310 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:kworker/u8:5 state:D stack:0 pid:310 tgid:310 ppid:2 flags:0x00000008 Workqueue: btree_node_rewrite async_btree_node_rewrite_work 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 __closure_sync+0x198/0x29c lib/closure.c:146 closure_sync include/linux/closure.h:195 [inline] __bch2_wait_on_allocator+0x1c4/0x23c fs/bcachefs/alloc_foreground.c:1815 bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:238 [inline] bch2_btree_update_start+0x11a8/0x15ac fs/bcachefs/btree_update_interior.c:1269 bch2_btree_node_rewrite+0x17c/0xd74 fs/bcachefs/btree_update_interior.c:2137 async_btree_node_rewrite_trans fs/bcachefs/btree_update_interior.c:2225 [inline] async_btree_node_rewrite_work+0x29c/0x11b0 fs/bcachefs/btree_update_interior.c:2239 process_one_work+0x79c/0x15b8 kernel/workqueue.c:3231 process_scheduled_works kernel/workqueue.c:3312 [inline] worker_thread+0x978/0xec4 kernel/workqueue.c:3389 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 INFO: task bch-copygc/loop:7301 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:bch-copygc/loop state:D stack:0 pid:7301 tgid:7301 ppid:2 flags:0x00000008 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 __closure_sync+0x198/0x29c lib/closure.c:146 closure_sync include/linux/closure.h:195 [inline] __bch2_wait_on_allocator+0x1c4/0x23c fs/bcachefs/alloc_foreground.c:1815 bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:238 [inline] __bch2_write+0x435c/0x498c fs/bcachefs/io_write.c:1506 bch2_write+0x8bc/0x153c fs/bcachefs/io_write.c:1633 closure_queue include/linux/closure.h:270 [inline] closure_call include/linux/closure.h:432 [inline] bch2_data_update_read_done+0x14c/0x1e0 fs/bcachefs/data_update.c:423 move_write fs/bcachefs/move.c:133 [inline] bch2_moving_ctxt_do_pending_writes+0x330/0x80c fs/bcachefs/move.c:164 bch2_move_ratelimit+0x5e0/0xbd8 fs/bcachefs/move.c:492 bch2_evacuate_bucket+0x17c4/0x2154 fs/bcachefs/move.c:702 bch2_copygc+0x28e4/0x3074 fs/bcachefs/movinggc.c:234 bch2_copygc_thread+0x65c/0xbdc fs/bcachefs/movinggc.c:375 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:860 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:2/43: 3 locks held by kworker/u8:3/44: #0: ffff0000d2228148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x624/0x15b8 kernel/workqueue.c:3205 #1: ffff800097cc7c20 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6a0/0x15b8 kernel/workqueue.c:3205 #2: ffff800092437ee8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 4 locks held by kworker/u8:5/310: #0: ffff0000ed816948 ((wq_completion)btree_node_rewrite){+.+.}-{0:0}, at: process_one_work+0x624/0x15b8 kernel/workqueue.c:3205 #1: ffff80009b837c20 ((work_completion)(&a->work)){+.+.}-{0:0}, at: process_one_work+0x6a0/0x15b8 kernel/workqueue.c:3205 #2: ffff0000def842c0 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:150 #3: ffff0000defa6690 (&c->gc_lock){++++}-{3:3}, at: bch2_btree_update_start+0x588/0x15ac fs/bcachefs/btree_update_interior.c:1197 4 locks held by kworker/u8:6/622: #0: ffff0000c1869948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x624/0x15b8 kernel/workqueue.c:3205 #1: ffff80009cab7c20 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x6a0/0x15b8 kernel/workqueue.c:3205 #2: ffff80009242b950 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x13c/0x9b4 net/core/net_namespace.c:594 #3: ffff800092437ee8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 1 lock held by dhcpcd/6080: #0: ffff800092437ee8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffff800092437ee8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x5e8/0xa9c net/core/rtnetlink.c:6644 2 locks held by getty/6173: #0: ffff0000d74520a0 (&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 3 locks held by kworker/u8:10/6913: #0: ffff0000c0031148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x624/0x15b8 kernel/workqueue.c:3205 #1: ffff8000a0577c20 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x6a0/0x15b8 kernel/workqueue.c:3205 #2: ffff800092437ee8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 2 locks held by syz-executor/6975: #0: ffff0000dab620e0 (&type->s_umount_key#81){++++}-{3:3}, at: __super_lock fs/super.c:56 [inline] #0: ffff0000dab620e0 (&type->s_umount_key#81){++++}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff0000dab620e0 (&type->s_umount_key#81){++++}-{3:3}, at: deactivate_super+0xd8/0x100 fs/super.c:505 #1: ffff0000def80278 (&c->state_lock){+.+.}-{3:3}, at: __bch2_fs_stop+0xf8/0x510 fs/bcachefs/super.c:617 3 locks held by bch-reclaim/loo/7299: 3 locks held by syz.3.136/7721: #0: ffff0000d8f2cac8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x218/0x2a4 fs/file.c:1187 #1: ffff0000d8612420 (sb_writers#25){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2882 [inline] #1: ffff0000d8612420 (sb_writers#25){.+.+}-{0:0}, at: vfs_write+0x368/0xc80 fs/read_write.c:586 #2: ffff0000ee0788a8 (&sb->s_type->i_mutex_key#31){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:800 [inline] #2: ffff0000ee0788a8 (&sb->s_type->i_mutex_key#31){+.+.}-{3:3}, at: bch2_direct_write+0x21c/0x2990 fs/bcachefs/fs-io-direct.c:598 2 locks held by syz.3.136/7771: #0: ffff0000d8612420 (sb_writers#25){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:515 #1: ffff0000ee0788a8 (&sb->s_type->i_mutex_key#31){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:800 [inline] #1: ffff0000ee0788a8 (&sb->s_type->i_mutex_key#31){+.+.}-{3:3}, at: vfs_setxattr+0x17c/0x344 fs/xattr.c:320 1 lock held by syz.0.138/7729: #0: ffff0000dab620e0 (&type->s_umount_key#81){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff0000dab620e0 (&type->s_umount_key#81){++++}-{3:3}, at: super_lock+0x244/0x33c fs/super.c:120 2 locks held by bch-copygc/loop/7746: 1 lock held by syz.0.186/8124: #0: ffff0000dab620e0 (&type->s_umount_key#81){++++}-{3:3}, at: __super_lock fs/super.c:56 [inline] #0: ffff0000dab620e0 (&type->s_umount_key#81){++++}-{3:3}, at: super_lock+0x208/0x33c fs/super.c:120 3 locks held by syz.3.209/8227: #0: ffff0000d86120e0 (&type->s_umount_key#81){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff0000d86120e0 (&type->s_umount_key#81){++++}-{3:3}, at: super_lock+0x244/0x33c fs/super.c:120 #1: ffff0000f35842c0 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:150 #2: ffff0000f35a6690 (&c->gc_lock){++++}-{3:3}, at: bch2_btree_update_start+0x588/0x15ac fs/bcachefs/btree_update_interior.c:1197 1 lock held by syz.3.229/8596: #0: ffff0000d86120e0 (&type->s_umount_key#81){++++}-{3:3}, at: __super_lock fs/super.c:56 [inline] #0: ffff0000d86120e0 (&type->s_umount_key#81){++++}-{3:3}, at: super_lock+0x208/0x33c fs/super.c:120 1 lock held by syz-executor/8630: #0: ffff800092437ee8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffff800092437ee8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x5e8/0xa9c net/core/rtnetlink.c:6644 2 locks held by syz-executor/8783: #0: ffff80009242b950 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x3b4/0x654 net/core/net_namespace.c:504 #1: ffff800092437ee8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 1 lock held by syz.1.276/8814: #0: ffff800092437ee8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 3 locks held by syz.0.281/8844: #0: ffff800092498dd0 (cb_lock){++++}-{3:3}, at: genl_rcv+0x28/0x50 net/netlink/genetlink.c:1218 #1: ffff800092498c88 (genl_mutex){+.+.}-{3:3}, at: genl_lock net/netlink/genetlink.c:35 [inline] #1: ffff800092498c88 (genl_mutex){+.+.}-{3:3}, at: genl_op_lock net/netlink/genetlink.c:60 [inline] #1: ffff800092498c88 (genl_mutex){+.+.}-{3:3}, at: genl_rcv_msg+0x10c/0xbb0 net/netlink/genetlink.c:1209 #2: ffff800092437ee8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 1 lock held by syz.2.280/8847: #0: ffff800092437ee8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffff800092437ee8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x5e8/0xa9c net/core/rtnetlink.c:6644 1 lock held by syz.2.280/8849: #0: ffff800092437ee8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffff800092437ee8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x5e8/0xa9c net/core/rtnetlink.c:6644 1 lock held by syz-executor/8851: #0: ffff800092437ee8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffff800092437ee8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x5e8/0xa9c net/core/rtnetlink.c:6644 =============================================