------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 30 seconds WARNING: fs/bcachefs/btree_iter.c:3276 at check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline], CPU#0: syz.6.1586/15218 WARNING: fs/bcachefs/btree_iter.c:3276 at bch2_trans_srcu_unlock+0x50d/0x620 fs/bcachefs/btree_iter.c:3290, CPU#0: syz.6.1586/15218 Modules linked in: CPU: 0 UID: 0 PID: 15218 Comm: syz.6.1586 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025 RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] RIP: 0010:bch2_trans_srcu_unlock+0x50d/0x620 fs/bcachefs/btree_iter.c:3290 Code: 7d 00 49 c1 ef 02 48 b9 c3 f5 28 5c 8f c2 f5 28 4c 89 f8 48 f7 e1 48 c1 ea 02 48 c7 c7 60 c2 f3 8b 48 89 d6 e8 c4 2b 57 fd 90 <0f> 0b 90 90 e9 a6 fe ff ff 44 89 e1 80 e1 07 38 c1 0f 8c 1c fb ff RSP: 0018:ffffc9000d6e7098 EFLAGS: 00010246 RAX: b4159c2a89204900 RBX: 1ffff11006d34009 RCX: 0000000000080000 RDX: ffffc9001d5c0000 RSI: 000000000000b9b5 RDI: 000000000000b9b6 RBP: 1ffff11006d34011 R08: ffff8880b8624253 R09: 1ffff110170c484a R10: dffffc0000000000 R11: ffffed10170c484b R12: ffff8880369a0046 R13: ffff8880369a0088 R14: 1ffff11006d34008 R15: 00000000000002f4 FS: 00007f4e4efbc6c0(0000) GS:ffff8881259e8000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c42ef3b CR3: 00000000782cc000 CR4: 00000000003526f0 Call Trace: bch2_trans_begin+0x1b46/0x2320 fs/bcachefs/btree_iter.c:3387 bch2_logged_op_start+0x9b/0x290 fs/bcachefs/logged_ops.c:93 bch2_truncate+0x128/0x200 fs/bcachefs/io_misc.c:324 bchfs_truncate+0x8b1/0xc20 fs/bcachefs/fs-io.c:511 notify_change+0xc1a/0xf40 fs/attr.c:546 do_truncate+0x1a4/0x220 fs/open.c:68 handle_truncate fs/namei.c:3516 [inline] do_open fs/namei.c:3899 [inline] path_openat+0x306c/0x3830 fs/namei.c:4054 do_filp_open+0x1fa/0x410 fs/namei.c:4081 do_sys_openat2+0x121/0x1c0 fs/open.c:1435 do_sys_open fs/open.c:1450 [inline] __do_sys_openat fs/open.c:1466 [inline] __se_sys_openat fs/open.c:1461 [inline] __x64_sys_openat+0x138/0x170 fs/open.c:1461 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4e4e18eba9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 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:00007f4e4efbc038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f4e4e3d6090 RCX: 00007f4e4e18eba9 RDX: 000000000000a602 RSI: 0000200000000040 RDI: ffffffffffffff9c RBP: 00007f4e4e211e19 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f4e4e3d6128 R14: 00007f4e4e3d6090 R15: 00007ffc20c9eb08