------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 10 seconds WARNING: CPU: 0 PID: 23461 at fs/bcachefs/btree_iter.c:2998 check_srcu_held_too_long fs/bcachefs/btree_iter.c:2996 [inline] WARNING: CPU: 0 PID: 23461 at fs/bcachefs/btree_iter.c:2998 bch2_trans_put+0xd7a/0xfb0 fs/bcachefs/btree_iter.c:3239 Modules linked in: CPU: 0 PID: 23461 Comm: syz.2.3472 Not tainted 6.10.0-syzkaller-08280-g68b59730459e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024 RIP: 0010:check_srcu_held_too_long fs/bcachefs/btree_iter.c:2996 [inline] RIP: 0010:bch2_trans_put+0xd7a/0xfb0 fs/bcachefs/btree_iter.c:3239 Code: 2b 1e 48 c1 eb 02 48 b9 c3 f5 28 5c 8f c2 f5 28 48 89 d8 48 f7 e1 48 c1 ea 02 48 c7 c7 e0 ec 11 8c 48 89 d6 e8 c7 44 43 fd 90 <0f> 0b 90 90 e9 14 f8 ff ff e8 08 2b 81 fd 90 0f 0b 90 e9 57 f8 ff RSP: 0018:ffffc90003f47788 EFLAGS: 00010246 RAX: 3061100ff9abca00 RBX: 0000000000000104 RCX: 0000000000040000 RDX: ffffc90013806000 RSI: 000000000000b2a5 RDI: 000000000000b2a6 RBP: dffffc0000000000 R08: ffffffff81588142 R09: 1ffff110172a519a R10: dffffc0000000000 R11: ffffed10172a519b R12: 1ffff11009a73008 R13: 1ffff11009a7300e R14: ffff88804d398070 R15: ffff88804d398041 FS: 00007f28991546c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000021000000 CR3: 000000006f8d6000 CR4: 0000000000350ef0 Call Trace: range_has_data fs/bcachefs/fs-io.c:239 [inline] __bch2_truncate_folio+0xd2c/0x1d80 fs/bcachefs/fs-io.c:263 bch2_truncate_folio fs/bcachefs/fs-io.c:359 [inline] bchfs_truncate+0x644/0xc80 fs/bcachefs/fs-io.c:449 notify_change+0xb9f/0xe70 fs/attr.c:495 do_truncate fs/open.c:65 [inline] do_ftruncate+0x46b/0x590 fs/open.c:181 do_sys_ftruncate fs/open.c:199 [inline] __do_sys_ftruncate fs/open.c:207 [inline] __se_sys_ftruncate fs/open.c:205 [inline] __x64_sys_ftruncate+0x95/0xf0 fs/open.c:205 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f2898375b59 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:00007f2899154048 EFLAGS: 00000246 ORIG_RAX: 000000000000004d RAX: ffffffffffffffda RBX: 00007f2898506110 RCX: 00007f2898375b59 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000007 RBP: 00007f28983e4e5d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f2898506110 R15: 00007fff9c06bc58