------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 91 seconds WARNING: CPU: 0 PID: 8203 at fs/bcachefs/btree_iter.c:3030 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3028 [inline] WARNING: CPU: 0 PID: 8203 at fs/bcachefs/btree_iter.c:3030 bch2_trans_put+0xb70/0xd00 fs/bcachefs/btree_iter.c:3274 Modules linked in: CPU: 0 UID: 0 PID: 8203 Comm: syz.2.531 Not tainted 6.12.0-rc6-syzkaller-g8936d33c1f69 #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 : ffff8000a19e6a50 x29: ffff8000a19e6aa0 x28: 0000000000000088 x27: dfff800000000000 x26: ffff0000d81b81b8 x25: ffff0000f5600000 x24: 1fffe0001b037008 x23: 1ffff00011ef1e40 x22: ffff80008f78f000 x21: ffff0000d81b8042 x20: 00000000ffffa66f x19: ffffffffffffe053 x18: 0000000000000008 x17: 0000000000000000 x16: ffff80008b3eaa5c x15: ffff700011f1167c x14: 1ffff00011f1167c x13: 0000000000000004 x12: ffffffffffffffff x11: 0000000000040000 x10: 000000000003ffff x9 : 540a67654c6cee00 x8 : 540a67654c6cee00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a19e6178 x4 : ffff80008f8fdae0 x3 : ffff800080398674 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:185 bch2_run_recovery_passes+0x430/0x71c fs/bcachefs/recovery_passes.c:232 bch2_fs_recovery+0x32d8/0x55a0 fs/bcachefs/recovery.c:861 bch2_fs_start+0x30c/0x53c fs/bcachefs/super.c:1036 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: 73916 hardirqs last enabled at (73915): [] __up_console_sem kernel/printk/printk.c:344 [inline] hardirqs last enabled at (73915): [] __console_unlock+0x70/0xc4 kernel/printk/printk.c:2844 hardirqs last disabled at (73916): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:488 softirqs last enabled at (73856): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (73856): [] handle_softirqs+0xa38/0xbf8 kernel/softirq.c:582 softirqs last disabled at (73841): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]--- done bcachefs (loop2): alloc_read... done bcachefs (loop2): stripes_read... done bcachefs (loop2): snapshots_read...