------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 12 seconds WARNING: CPU: 0 PID: 18865 at fs/bcachefs/btree_iter.c:3274 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] WARNING: CPU: 0 PID: 18865 at fs/bcachefs/btree_iter.c:3274 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3272 [inline] WARNING: CPU: 0 PID: 18865 at fs/bcachefs/btree_iter.c:3274 bch2_trans_srcu_unlock fs/bcachefs/btree_iter.c:3290 [inline] WARNING: CPU: 0 PID: 18865 at fs/bcachefs/btree_iter.c:3274 bch2_trans_srcu_unlock+0x4c6/0x5b0 fs/bcachefs/btree_iter.c:3279 Modules linked in: CPU: 0 UID: 0 PID: 18865 Comm: syz.5.2546 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025 RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:3272 [inline] RIP: 0010:bch2_trans_srcu_unlock fs/bcachefs/btree_iter.c:3290 [inline] RIP: 0010:bch2_trans_srcu_unlock+0x4c6/0x5b0 fs/bcachefs/btree_iter.c:3279 Code: e0 09 48 c7 c7 a0 e2 02 8c 48 b8 c3 f5 28 5c 8f c2 f5 28 48 29 da 48 c1 ea 02 48 f7 e2 48 c1 ea 02 48 89 d6 e8 db c4 39 fd 90 <0f> 0b 90 90 e9 2a fe ff ff e8 9c 23 7b fd 90 0f 0b 90 e9 71 fe ff RSP: 0018:ffffc9000b0c6fd0 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 000000010001432e RCX: ffffc90014af3000 RDX: 0000000000080000 RSI: ffffffff817a3365 RDI: 0000000000000001 RBP: ffff8880627dc046 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 000000002d2d2d2d R12: 1ffff92001618e02 R13: 1ffffffff1c42240 R14: ffff8880627dc000 R15: fffffffffffffed5 FS: 00007f05416476c0(0000) GS:ffff8881246bd000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9add7b0368 CR3: 000000005d6ed000 CR4: 0000000000350ef0 Call Trace: bch2_trans_begin+0x1373/0x19e0 fs/bcachefs/btree_iter.c:3387 bch2_gc_btree.constprop.0+0x1c5/0x1320 fs/bcachefs/btree_gc.c:729 bch2_gc_btrees+0x530/0xa20 fs/bcachefs/btree_gc.c:792 bch2_check_allocations+0xa69/0xf90 fs/bcachefs/btree_gc.c:1094 bch2_run_recovery_pass fs/bcachefs/recovery_passes.c:484 [inline] __bch2_run_recovery_passes+0x2d5/0x10d0 fs/bcachefs/recovery_passes.c:539 bch2_run_recovery_passes+0x2d1/0x480 fs/bcachefs/recovery_passes.c:610 bch2_fs_recovery+0x2f55/0x48a0 fs/bcachefs/recovery.c:1016 bch2_fs_start+0xf82/0x1450 fs/bcachefs/super.c:1213 bch2_fs_get_tree+0xd9b/0x1b70 fs/bcachefs/fs.c:2488 vfs_get_tree+0x8e/0x340 fs/super.c:1815 do_new_mount fs/namespace.c:3808 [inline] path_mount+0x1513/0x2000 fs/namespace.c:4123 do_mount fs/namespace.c:4136 [inline] __do_sys_mount fs/namespace.c:4347 [inline] __se_sys_mount fs/namespace.c:4324 [inline] __x64_sys_mount+0x28d/0x310 fs/namespace.c:4324 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f054079038a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0541646e68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f0541646ef0 RCX: 00007f054079038a RDX: 0000200000005d80 RSI: 0000200000005dc0 RDI: 00007f0541646eb0 RBP: 0000200000005d80 R08: 00007f0541646ef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000005dc0 R13: 00007f0541646eb0 R14: 0000000000005d5e R15: 0000200000005e00