------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 26 seconds WARNING: CPU: 1 PID: 7007 at fs/bcachefs/btree_iter.c:3030 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] WARNING: CPU: 1 PID: 7007 at fs/bcachefs/btree_iter.c:3030 bch2_trans_put+0xb70/0xd00 fs/bcachefs/btree_iter.c:3274 Modules linked in: CPU: 1 UID: 0 PID: 7007 Comm: syz.2.91 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] pc : bch2_trans_put+0xb70/0xd00 fs/bcachefs/btree_iter.c:3274 lr : check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] lr : bch2_trans_put+0xb70/0xd00 fs/bcachefs/btree_iter.c:3274 sp : ffff8000a1bf6ed0 x29: ffff8000a1bf6f20 x28: 0000000000000088 x27: dfff800000000000 x26: ffff0000ed99c1b8 x25: ffff0000f9480000 x24: 1fffe0001db33808 x23: 1ffff00011f09e40 x22: ffff80008f84f000 x21: ffff0000ed99c042 x20: 00000000ffffa4d7 x19: fffffffffffff98c x18: 0000000000000008 x17: 0000000000000000 x16: ffff8000831615b0 x15: 0000000000000001 x14: 1fffe000366c80e2 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 000000000007ffff x9 : 48f815906c40cd00 x8 : 48f815906c40cd00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a1bf65f8 x4 : ffff80008f9bd220 x3 : ffff800080626d8c x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] (P) bch2_trans_put+0xb70/0xd00 fs/bcachefs/btree_iter.c:3274 (P) check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] (L) bch2_trans_put+0xb70/0xd00 fs/bcachefs/btree_iter.c:3274 (L) bch2_btree_root_read+0x338/0x40c fs/bcachefs/btree_io.c:1771 read_btree_roots+0x24c/0x794 fs/bcachefs/recovery.c:523 bch2_fs_recovery+0x328c/0x55dc fs/bcachefs/recovery.c:853 bch2_fs_start+0x30c/0x53c fs/bcachefs/super.c:1037 bch2_fs_get_tree+0x938/0x1030 fs/bcachefs/fs.c:2170 vfs_get_tree+0x90/0x28c fs/super.c:1814 do_new_mount+0x278/0x900 fs/namespace.c:3507 path_mount+0x590/0xe04 fs/namespace.c:3834 do_mount fs/namespace.c:3847 [inline] __do_sys_mount fs/namespace.c:4057 [inline] __se_sys_mount fs/namespace.c:4034 [inline] __arm64_sys_mount+0x4d4/0x5ac fs/namespace.c:4034 __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 irq event stamp: 70300 hardirqs last enabled at (70299): [] __up_console_sem kernel/printk/printk.c:344 [inline] hardirqs last enabled at (70299): [] __console_unlock+0x70/0xc4 kernel/printk/printk.c:2844 hardirqs last disabled at (70300): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:488 softirqs last enabled at (70146): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (70146): [] handle_softirqs+0xa38/0xbf8 kernel/softirq.c:582 softirqs last disabled at (69973): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]--- error reading btree root backpointers l=0: btree_node_read_error, fixing bcachefs (loop2): scan_for_btree_nodes... bcachefs (loop2): error starting kthread: -4 bcachefs (loop2): bch2_fs_recovery(): error EINTR bcachefs (loop2): bch2_fs_start(): error starting filesystem EINTR bcachefs (loop2): shutting down bcachefs (loop2): shutdown complete bcachefs: bch2_fs_get_tree() error: EINTR