INFO: task kworker/u8:9:1958 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:9 state:D stack:0 pid:1958 tgid:1958 ppid:2 flags:0x00000008 Workqueue: writeback wb_workfn (flush-bcachefs-4) 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 syz-executor:6447 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:syz-executor state:D stack:0 pid:6447 tgid:6447 ppid:1 flags:0x00000009 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_inode_delete_keys+0x6d0/0xc78 fs/bcachefs/inode.c:986 bch2_inode_rm+0x18c/0x7fc fs/bcachefs/inode.c:1015 bch2_evict_inode+0x1b4/0x368 fs/bcachefs/fs.c:1836 evict+0x444/0x978 fs/inode.c:725 iput_final fs/inode.c:1877 [inline] iput+0x744/0x8ec fs/inode.c:1903 do_unlinkat+0x528/0x700 fs/namei.c:4540 __do_sys_unlinkat fs/namei.c:4576 [inline] __se_sys_unlinkat fs/namei.c:4569 [inline] __arm64_sys_unlinkat+0xc8/0xf8 fs/namei.c:4569 __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:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 INFO: task bch-reclaim/loo:6883 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:6883 tgid:6883 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:6884 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:6884 tgid:6884 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: ffff0000d1d5a148 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x628/0x1600 kernel/workqueue.c:3203 #1: ffff8000978f7c20 ((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 2 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 4 locks held by kworker/u8:3/45: #0: ffff0000c1891948 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x628/0x1600 kernel/workqueue.c:3203 #1: ffff800097ff7c20 (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:6/519: #0: ffff0000c0031148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work+0x628/0x1600 kernel/workqueue.c:3203 #1: ffff80009c847c20 ((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 kworker/u8:9/1958: #0: ffff0000c20ee948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x628/0x1600 kernel/workqueue.c:3203 #1: ffff8000a03e7c20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x6bc/0x1600 kernel/workqueue.c:3203 #2: ffff0000eba600e0 (&type->s_umount_key#85){.+.+}-{3:3}, at: super_trylock_shared+0x28/0xe4 fs/super.c:562 1 lock held by dhcpcd/6092: #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 2 locks held by getty/6177: #0: ffff0000cca2c0a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff80009b85b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x41c/0x1228 drivers/tty/n_tty.c:2211 3 locks held by syz-executor/6447: #0: ffff0000eba60420 (sb_writers#23){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:515 #1: ffff0000f5884398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:150 #2: ffff0000f58a66d0 (&c->gc_lock){.+.+}-{3:3}, at: bch2_btree_update_start+0x588/0x15ac fs/bcachefs/btree_update_interior.c:1197 3 locks held by kworker/1:3/6457: #0: ffff0000c0028948 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x628/0x1600 kernel/workqueue.c:3203 #1: ffff8000a38f7c20 (deferred_process_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 bch-reclaim/loo/6883: #0: ffff0000f58cb0a8 (&j->reclaim_lock){+.+.}-{3:3}, at: bch2_journal_reclaim_thread+0x144/0x4b8 fs/bcachefs/journal_reclaim.c:739 #1: ffff0000f5884398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:150 #2: ffff0000f5884740 (&wb->flushing.lock){+.+.}-{3:3}, at: btree_write_buffer_flush_seq+0xff0/0x1130 fs/bcachefs/btree_write_buffer.c:509 #3: ffff0000f58a66d0 (&c->gc_lock){.+.+}-{3:3}, at: bch2_btree_update_start+0x588/0x15ac fs/bcachefs/btree_update_interior.c:1197 3 locks held by syz-executor/7416: #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 #2: ffff80008f88c7b0 (cpu_hotplug_lock){++++}-{0:0}, at: flush_all_backlogs net/core/dev.c:6029 [inline] #2: ffff80008f88c7b0 (cpu_hotplug_lock){++++}-{0:0}, at: unregister_netdevice_many_notify+0x518/0x1c64 net/core/dev.c:11388 1 lock held by syz-executor/7421: #0: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 2 locks held by syz-executor/7426: #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/7431: #0: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock+0x20/0x2c net/core/rtnetlink.c:79 1 lock held by syz-executor/7456: #0: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: __rtnl_newlink net/core/rtnetlink.c:3749 [inline] #0: ffff800092723e68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_newlink+0x9dc/0x1bd0 net/core/rtnetlink.c:3772 1 lock held by syz-executor/7462: #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/7488: #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/7493: #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/7520: #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 =============================================