------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 23 seconds WARNING: CPU: 1 PID: 7971 at fs/bcachefs/btree_iter.c:3030 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] WARNING: CPU: 1 PID: 7971 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: 7971 Comm: syz.3.359 Not tainted 6.13.0-rc2-syzkaller-g2e7aff49b5da #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 : ffff8000a0206a50 x29: ffff8000a0206aa0 x28: 0000000000000088 x27: dfff800000000000 x26: ffff0000f99381b8 x25: ffff0000fa080000 x24: 1fffe0001f327008 x23: 1ffff00011f1fe40 x22: ffff80008f8ff000 x21: ffff0000f9938042 x20: 00000000ffffb742 x19: fffffffffffffae3 x18: 0000000000000008 x17: 0000000000000000 x16: ffff80008b5e791c x15: ffff700011f3fa3c x14: 1ffff00011f3fa3c x13: 0000000000000004 x12: ffffffffffffffff x11: 0000000000000002 x10: 0000000000ff0100 x9 : bf52b867ad2c6900 x8 : bf52b867ad2c6900 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a0206178 x4 : ffff80008fa6f860 x3 : ffff80008049e63c x2 : 0000000000000000 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_accounting_read+0x42dc/0x44a4 fs/bcachefs/disk_accounting.c:827 bch2_run_recovery_pass+0xe4/0x1d4 fs/bcachefs/recovery_passes.c:191 bch2_run_recovery_passes+0x30c/0x73c fs/bcachefs/recovery_passes.c:244 bch2_fs_recovery+0x32d8/0x55dc fs/bcachefs/recovery.c:861 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: 79940 hardirqs last enabled at (79939): [] __up_console_sem kernel/printk/printk.c:344 [inline] hardirqs last enabled at (79939): [] __console_unlock+0x70/0xc4 kernel/printk/printk.c:2869 hardirqs last disabled at (79940): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:488 softirqs last enabled at (79928): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (79928): [] handle_softirqs+0xb44/0xd34 kernel/softirq.c:582 softirqs last disabled at (72623): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]--- done bcachefs (loop3): alloc_read... done bcachefs (loop3): stripes_read... done bcachefs (loop3): snapshots_read... done bcachefs (loop3): check_allocations...