INFO: task kworker/u8:3:42 blocked for more than 143 seconds. Not tainted 6.17.0-rc1-syzkaller-g8f5ae30d69d7 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u8:3 state:D stack:0 pid:42 tgid:42 ppid:2 task_flags:0x4208060 flags:0x00000010 Workqueue: btree_node_rewrite async_btree_node_rewrite_work Call trace: __switch_to+0x418/0x87c arch/arm64/kernel/process.c:741 (T) context_switch kernel/sched/core.c:5357 [inline] __schedule+0x13b0/0x2864 kernel/sched/core.c:6961 __schedule_loop kernel/sched/core.c:7043 [inline] schedule+0xb4/0x230 kernel/sched/core.c:7058 __closure_sync+0x160/0x278 lib/closure.c:146 closure_sync include/linux/closure.h:195 [inline] __bch2_wait_on_allocator+0x19c/0x214 fs/bcachefs/alloc_foreground.c:1682 bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:315 [inline] bch2_btree_update_start+0x158c/0x1ab8 fs/bcachefs/btree_update_interior.c:1293 bch2_btree_node_rewrite+0x190/0xd34 fs/bcachefs/btree_update_interior.c:2246 bch2_btree_node_rewrite_key+0x22c/0x2d0 fs/bcachefs/btree_update_interior.c:2312 async_btree_node_rewrite_work+0xf4/0x42c fs/bcachefs/btree_update_interior.c:2369 process_one_work+0x7e8/0x155c kernel/workqueue.c:3236 process_scheduled_works kernel/workqueue.c:3319 [inline] worker_thread+0x958/0xed8 kernel/workqueue.c:3400 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 INFO: task syz.3.43:6896 blocked for more than 143 seconds. Not tainted 6.17.0-rc1-syzkaller-g8f5ae30d69d7 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.3.43 state:D stack:0 pid:6896 tgid:6895 ppid:6554 task_flags:0x400140 flags:0x00800019 Call trace: __switch_to+0x418/0x87c arch/arm64/kernel/process.c:741 (T) context_switch kernel/sched/core.c:5357 [inline] __schedule+0x13b0/0x2864 kernel/sched/core.c:6961 __schedule_loop kernel/sched/core.c:7043 [inline] schedule+0xb4/0x230 kernel/sched/core.c:7058 __closure_sync+0x160/0x278 lib/closure.c:146 closure_sync include/linux/closure.h:195 [inline] __bch2_wait_on_allocator+0x19c/0x214 fs/bcachefs/alloc_foreground.c:1682 bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:315 [inline] bch2_btree_update_start+0x158c/0x1ab8 fs/bcachefs/btree_update_interior.c:1293 bch2_btree_split_leaf+0x118/0x71c fs/bcachefs/btree_update_interior.c:1921 bch2_trans_commit_error+0x17c/0x11a0 fs/bcachefs/btree_trans_commit.c:914 __bch2_trans_commit+0x17a4/0x625c fs/bcachefs/btree_trans_commit.c:1104 bch2_trans_commit fs/bcachefs/btree_update.h:241 [inline] bch2_journal_replay+0x159c/0x1c44 fs/bcachefs/recovery.c:440 bch2_run_recovery_pass fs/bcachefs/recovery_passes.c:484 [inline] __bch2_run_recovery_passes+0x2b8/0xd54 fs/bcachefs/recovery_passes.c:539 bch2_run_recovery_passes+0x174/0x1f4 fs/bcachefs/recovery_passes.c:610 bch2_fs_recovery+0x1c34/0x2fb4 fs/bcachefs/recovery.c:1016 bch2_fs_start+0x940/0xbec fs/bcachefs/super.c:1213 bch2_fs_get_tree+0x880/0x107c fs/bcachefs/fs.c:2488 vfs_get_tree+0x90/0x28c fs/super.c:1815 do_new_mount+0x278/0x7f4 fs/namespace.c:3805 path_mount+0x5b4/0xde0 fs/namespace.c:4120 do_mount fs/namespace.c:4133 [inline] __do_sys_mount fs/namespace.c:4344 [inline] __se_sys_mount fs/namespace.c:4321 [inline] __arm64_sys_mount+0x3e8/0x468 fs/namespace.c:4321 __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+0x58/0x180 arch/arm64/kernel/entry-common.c:879 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:898 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 INFO: task bch-reclaim/loo:6939 blocked for more than 143 seconds. Not tainted 6.17.0-rc1-syzkaller-g8f5ae30d69d7 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:bch-reclaim/loo state:D stack:0 pid:6939 tgid:6939 ppid:2 task_flags:0x200840 flags:0x00000010 Call trace: __switch_to+0x418/0x87c arch/arm64/kernel/process.c:741 (T) context_switch kernel/sched/core.c:5357 [inline] __schedule+0x13b0/0x2864 kernel/sched/core.c:6961 __schedule_loop kernel/sched/core.c:7043 [inline] schedule+0xb4/0x230 kernel/sched/core.c:7058 __closure_sync+0x160/0x278 lib/closure.c:146 closure_sync include/linux/closure.h:195 [inline] __bch2_wait_on_allocator+0x19c/0x214 fs/bcachefs/alloc_foreground.c:1682 bch2_wait_on_allocator fs/bcachefs/alloc_foreground.h:315 [inline] bch2_btree_update_start+0x158c/0x1ab8 fs/bcachefs/btree_update_interior.c:1293 bch2_btree_split_leaf+0x118/0x71c fs/bcachefs/btree_update_interior.c:1921 bch2_trans_commit_error+0x17c/0x11a0 fs/bcachefs/btree_trans_commit.c:914 __bch2_trans_commit+0x17a4/0x625c fs/bcachefs/btree_trans_commit.c:1104 bch2_trans_commit fs/bcachefs/btree_update.h:241 [inline] bch2_btree_write_buffer_flush_locked+0x1e1c/0x2520 fs/bcachefs/btree_write_buffer.c:454 btree_write_buffer_flush_seq+0x1080/0x11c0 fs/bcachefs/btree_write_buffer.c:572 bch2_btree_write_buffer_journal_flush+0x70/0xc8 fs/bcachefs/btree_write_buffer.c:588 journal_flush_pins+0x6f4/0xc98 fs/bcachefs/journal_reclaim.c:604 __bch2_journal_reclaim+0x858/0xf84 fs/bcachefs/journal_reclaim.c:732 bch2_journal_reclaim_thread+0x13c/0x480 fs/bcachefs/journal_reclaim.c:774 kthread+0x5fc/0x75c kernel/kthread.c:463 ret_from_fork+0x10/0x20 arch/arm64/kernel/entry.S:844 Showing all locks held in the system: 1 lock held by khungtaskd/32: #0: ffff80008f9a9060 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire+0x4/0x48 include/linux/rcupdate.h:330 4 locks held by kworker/u8:3/42: #0: ffff0000d950a948 ((wq_completion)btree_node_rewrite){+.+.}-{0:0}, at: process_one_work+0x63c/0x155c kernel/workqueue.c:3210 #1: ffff800099287bc0 ((work_completion)(&a->work)){+.+.}-{0:0}, at: process_one_work+0x6d4/0x155c kernel/workqueue.c:3210 #2: ffff000103604398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #3: ffff000103626710 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x468/0x1ab8 fs/bcachefs/btree_update_interior.c:1211 2 locks held by kworker/u8:5/882: 2 locks held by getty/6310: #0: ffff0000d3aa50a0 (&tty->ldisc_sem){++++}-{0:0}, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340 #1: ffff80009bbae2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x34c/0xfa4 drivers/tty/n_tty.c:2222 2 locks held by syz.3.43/6896: #0: ffff000103604398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #1: ffff000103626710 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x468/0x1ab8 fs/bcachefs/btree_update_interior.c:1211 4 locks held by bch-reclaim/loo/6939: #0: ffff00010364af68 (&j->reclaim_lock){+.+.}-{4:4}, at: bch2_journal_reclaim_thread+0x12c/0x480 fs/bcachefs/journal_reclaim.c:773 #1: ffff000103604398 (&c->btree_trans_barrier){.+.+}-{0:0}, at: srcu_lock_acquire+0x18/0x54 include/linux/srcu.h:160 #2: ffff000103604740 (&wb->flushing.lock){+.+.}-{4:4}, at: btree_write_buffer_flush_seq+0x1078/0x11c0 fs/bcachefs/btree_write_buffer.c:571 #3: ffff000103626710 (&c->gc_lock){++++}-{4:4}, at: bch2_btree_update_start+0x468/0x1ab8 fs/bcachefs/btree_update_interior.c:1211 =============================================