INFO: task kworker/u8:5:206 blocked for more than 143 seconds. Not tainted 6.12.0-rc7-syzkaller-g887407160d72 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u8:5 state:D stack:0 pid:206 tgid:206 ppid:2 flags:0x00000008 Workqueue: writeback wb_workfn (flush-bcachefs-2) Call trace: __switch_to+0x414/0x788 arch/arm64/kernel/process.c:701 (T) context_switch kernel/sched/core.c:5328 [inline] __schedule+0x16e0/0x27d0 kernel/sched/core.c:6690 __schedule_loop kernel/sched/core.c:6767 [inline] schedule+0xbc/0x238 kernel/sched/core.c:6782 schedule_timeout+0x1cc/0x33c kernel/time/timer.c:2615 __closure_sync_timeout+0x29c/0x3e4 lib/closure.c:217 closure_sync_timeout include/linux/closure.h:206 [inline] __bch2_wait_on_allocator+0x110/0x23c fs/bcachefs/alloc_foreground.c:1812 bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:239 [inline] __bch2_write+0x4264/0x486c fs/bcachefs/io_write.c:1501 bch2_write+0x908/0x15c8 fs/bcachefs/io_write.c:1631 closure_queue include/linux/closure.h:270 [inline] closure_call include/linux/closure.h:432 [inline] bch2_writepage_do_io fs/bcachefs/fs-io-buffered.c:449 [inline] __bch2_writepage+0xcb8/0x1e80 fs/bcachefs/fs-io-buffered.c:596 write_cache_pages+0xc8/0x20c mm/page-writeback.c:2640 bch2_writepages+0x13c/0x304 fs/bcachefs/fs-io-buffered.c:639 do_writepages+0x304/0x7cc mm/page-writeback.c:2683 __writeback_single_inode+0x150/0x156c fs/fs-writeback.c:1658 writeback_sb_inodes+0x648/0x1090 fs/fs-writeback.c:1954 __writeback_inodes_wb+0xec/0x234 fs/fs-writeback.c:2025 wb_writeback+0x400/0xf0c fs/fs-writeback.c:2136 wb_check_background_flush fs/fs-writeback.c:2206 [inline] wb_do_writeback fs/fs-writeback.c:2294 [inline] wb_workfn+0xc2c/0x104c fs/fs-writeback.c:2321 process_one_work+0x7bc/0x1600 kernel/workqueue.c:3229 process_scheduled_works kernel/workqueue.c:3310 [inline] worker_thread+0x97c/0xeec kernel/workqueue.c:3391 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:862 INFO: task bch-reclaim/loo:6612 blocked for more than 143 seconds. Not tainted 6.12.0-rc7-syzkaller-g887407160d72 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:bch-reclaim/loo state:D stack:0 pid:6612 tgid:6612 ppid:2 flags:0x00000008 Call trace: __switch_to+0x414/0x788 arch/arm64/kernel/process.c:701 (T) context_switch kernel/sched/core.c:5328 [inline] __schedule+0x16e0/0x27d0 kernel/sched/core.c:6690 __schedule_loop kernel/sched/core.c:6767 [inline] schedule+0xbc/0x238 kernel/sched/core.c:6782 schedule_timeout+0x1cc/0x33c kernel/time/timer.c:2615 __closure_sync_timeout+0x29c/0x3e4 lib/closure.c:217 closure_sync_timeout include/linux/closure.h:206 [inline] __bch2_wait_on_allocator+0x110/0x23c fs/bcachefs/alloc_foreground.c:1812 bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:239 [inline] bch2_btree_update_start+0x11a8/0x15ac fs/bcachefs/btree_update_interior.c:1269 bch2_btree_split_leaf+0x118/0x7b0 fs/bcachefs/btree_update_interior.c:1856 bch2_trans_commit_error+0x2a8/0x1150 fs/bcachefs/btree_trans_commit.c:942 __bch2_trans_commit+0x2a80/0x6604 fs/bcachefs/btree_trans_commit.c:1140 bch2_trans_commit fs/bcachefs/btree_update.h:184 [inline] bch2_btree_write_buffer_flush_locked+0x24cc/0x2c98 fs/bcachefs/btree_write_buffer.c:429 btree_write_buffer_flush_seq+0xff8/0x1130 fs/bcachefs/btree_write_buffer.c:510 bch2_btree_write_buffer_journal_flush+0x58/0x94 fs/bcachefs/btree_write_buffer.c:525 journal_flush_pins+0x524/0xa10 fs/bcachefs/journal_reclaim.c:565 __bch2_journal_reclaim+0x72c/0xfcc fs/bcachefs/journal_reclaim.c:698 bch2_journal_reclaim_thread+0x154/0x4b8 fs/bcachefs/journal_reclaim.c:740 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:862 INFO: task bch-copygc/loop:6613 blocked for more than 143 seconds. Not tainted 6.12.0-rc7-syzkaller-g887407160d72 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:bch-copygc/loop state:D stack:0 pid:6613 tgid:6613 ppid:2 flags:0x00000008 Call trace: __switch_to+0x414/0x788 arch/arm64/kernel/process.c:701 (T) context_switch kernel/sched/core.c:5328 [inline] __schedule+0x16e0/0x27d0 kernel/sched/core.c:6690 __schedule_loop kernel/sched/core.c:6767 [inline] schedule+0xbc/0x238 kernel/sched/core.c:6782 schedule_timeout+0x1cc/0x33c kernel/time/timer.c:2615 __closure_sync_timeout+0x29c/0x3e4 lib/closure.c:217 closure_sync_timeout include/linux/closure.h:206 [inline] __bch2_wait_on_allocator+0x110/0x23c fs/bcachefs/alloc_foreground.c:1812 bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:239 [inline] __bch2_write+0x4264/0x486c fs/bcachefs/io_write.c:1501 bch2_write+0x908/0x15c8 fs/bcachefs/io_write.c:1631 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:426 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+0x1870/0x2298 fs/bcachefs/move.c:702 bch2_copygc+0x2d3c/0x3500 fs/bcachefs/movinggc.c:240 bch2_copygc_thread+0x65c/0xbdc fs/bcachefs/movinggc.c:381 kthread+0x288/0x310 kernel/kthread.c:389 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:862 Showing all locks held in the system: 3 locks held by kworker/u8:1/13: #0: ffff0000c0031148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x628/0x1600 kernel/workqueue.c:3203 #1: ffff8000978f7c20 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x6bc/0x1600 kernel/workqueue.c:3203 #2: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 3 locks held by ksoftirqd/0/16: 1 lock held by khungtaskd/31: #0: ffff80008f9efee0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:336 3 locks held by kworker/u8:2/42: #0: ffff0000d27a4148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x628/0x1600 kernel/workqueue.c:3203 #1: ffff800097fc7c20 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x6bc/0x1600 kernel/workqueue.c:3203 #2: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 4 locks held by kworker/u8:3/44: #0: ffff0000c1891948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x628/0x1600 kernel/workqueue.c:3203 #1: ffff800097fe7c20 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x6bc/0x1600 kernel/workqueue.c:3203 #2: ffff800092717950 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x13c/0x9b4 net/core/net_namespace.c:580 #3: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 3 locks held by kworker/u8:5/206: #0: ffff0000c20f6948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x628/0x1600 kernel/workqueue.c:3203 #1: ffff80009bb67c20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6bc/0x1600 kernel/workqueue.c:3203 #2: ffff0000c5fc60e0 (&type->s_umount_key#64){++++}-{3:3}, at: super_trylock_shared+0x28/0xe4 fs/super.c:562 3 locks held by kworker/u8:7/689: #0: ffff0000c0031948 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: process_one_work+0x628/0x1600 kernel/workqueue.c:3203 #1: ffff80009cc47c20 ((crda_timeout).work){+.+.}-{0:0}, at: process_one_work+0x6bc/0x1600 kernel/workqueue.c:3203 #2: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 2 locks held by dhcpcd/6091: #0: ffff8000927096c8 (vlan_ioctl_mutex){+.+.}-{3:3}, at: sock_ioctl+0x574/0x838 net/socket.c:1308 #1: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 2 locks held by getty/6176: #0: ffff0000cd3c90a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff80009b84b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x41c/0x1228 drivers/tty/n_tty.c:2211 1 lock held by syz-executor/6421: #0: ffff0000c5fc60e0 (&type->s_umount_key#64){++++}-{3:3}, at: __super_lock fs/super.c:56 [inline] #0: ffff0000c5fc60e0 (&type->s_umount_key#64){++++}-{3:3}, at: __super_lock_excl fs/super.c:71 [inline] #0: ffff0000c5fc60e0 (&type->s_umount_key#64){++++}-{3:3}, at: deactivate_super+0xd8/0x100 fs/super.c:505 4 locks held by bch-reclaim/loo/6612: #0: ffff0000f44cb0a8 (&j->reclaim_lock){+.+.}-{3:3}, at: bch2_journal_reclaim_thread+0x144/0x4b8 fs/bcachefs/journal_reclaim.c:739 #1: ffff0000f4484398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:150 #2: ffff0000f4484740 (&wb->flushing.lock){+.+.}-{3:3}, at: btree_write_buffer_flush_seq+0xff0/0x1130 fs/bcachefs/btree_write_buffer.c:509 #3: ffff0000f44a66d0 (&c->gc_lock){.+.+}-{3:3}, at: bch2_btree_update_start+0x588/0x15ac fs/bcachefs/btree_update_interior.c:1197 2 locks held by syz-executor/7880: #0: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 #1: ffff80008f88c7b0 (cpu_hotplug_lock){++++}-{0:0}, at: flush_all_backlogs net/core/dev.c:6029 [inline] #1: ffff80008f88c7b0 (cpu_hotplug_lock){++++}-{0:0}, at: unregister_netdevice_many_notify+0x518/0x1c64 net/core/dev.c:11388 2 locks held by syz-executor/7950: #0: ffff800092717950 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x290/0x4ac net/core/net_namespace.c:490 #1: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 1 lock held by syz-executor/8020: #0: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 2 locks held by syz.0.258/8041: #0: ffff800092717950 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x290/0x4ac net/core/net_namespace.c:490 #1: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 1 lock held by syz.5.261/8067: #0: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 2 locks held by syz-executor/8087: #0: ffff800092717950 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x290/0x4ac net/core/net_namespace.c:490 #1: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 1 lock held by syz-executor/8093: #0: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x5e8/0xa9c net/core/rtnetlink.c:6672 1 lock held by syz-executor/8098: #0: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x5e8/0xa9c net/core/rtnetlink.c:6672 1 lock held by syz-executor/8113: #0: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x5e8/0xa9c net/core/rtnetlink.c:6672 1 lock held by syz-executor/8122: #0: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x5e8/0xa9c net/core/rtnetlink.c:6672 =============================================