------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 29 seconds WARNING: CPU: 1 PID: 7636 at fs/bcachefs/btree_iter.c:3276 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] WARNING: CPU: 1 PID: 7636 at fs/bcachefs/btree_iter.c:3276 bch2_trans_srcu_unlock+0x438/0x514 fs/bcachefs/btree_iter.c:3290 Modules linked in: CPU: 1 UID: 0 PID: 7636 Comm: syz.3.177 Not tainted syzkaller #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/30/2025 pstate: 63400005 (nZCv daif +PAN -UAO +TCO +DIT -SSBS BTYPE=--) pc : check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] pc : bch2_trans_srcu_unlock+0x438/0x514 fs/bcachefs/btree_iter.c:3290 lr : check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] lr : bch2_trans_srcu_unlock+0x438/0x514 fs/bcachefs/btree_iter.c:3290 sp : ffff80009e5a6fc0 x29: ffff80009e5a6ff0 x28: 1fffe0001e46a808 x27: dfff800000000000 x26: 0000000000000000 x25: ffff0000ffe00000 x24: ffff80008f770000 x23: 1ffff00011eee040 x22: 00000000ffffa051 x21: fffffffffffff86a x20: ffff0000f2354000 x19: ffff0000f2354046 x18: 1fffe00033793888 x17: ffff80008f7ee000 x16: ffff80008b021030 x15: 0000000000000001 x14: 1fffe0001a683de0 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 0000000000000003 x9 : 110fe475b4dc7e00 x8 : 110fe475b4dc7e00 x7 : ffff800080493090 x6 : 0000000000000000 x5 : 0000000000000001 x4 : 0000000000000001 x3 : ffff800080485624 x2 : 0000000000000001 x1 : ffff80008b678a40 x0 : 0000000000000001 Call trace: check_srcu_held_too_long fs/bcachefs/btree_iter.c:3274 [inline] (P) bch2_trans_srcu_unlock+0x438/0x514 fs/bcachefs/btree_iter.c:3290 (P) bch2_trans_begin+0x930/0xd30 fs/bcachefs/btree_iter.c:3387 bch2_logged_op_start+0x9c/0x254 fs/bcachefs/logged_ops.c:93 bch2_truncate+0x114/0x1e4 fs/bcachefs/io_misc.c:324 bchfs_truncate+0x630/0xa40 fs/bcachefs/fs-io.c:511 bch2_setattr+0x198/0x20c fs/bcachefs/fs.c:1241 notify_change+0x9a4/0xc50 fs/attr.c:552 do_truncate+0x198/0x210 fs/open.c:68 handle_truncate fs/namei.c:3508 [inline] do_open fs/namei.c:3891 [inline] path_openat+0x25a0/0x2c40 fs/namei.c:4046 do_filp_open+0x18c/0x36c fs/namei.c:4073 do_sys_openat2+0x11c/0x1b4 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] __arm64_sys_openat+0x120/0x158 fs/open.c:1461 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x254 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+0x5c/0x254 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x12c arch/arm64/kernel/entry-common.c:763 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:596 irq event stamp: 56144 hardirqs last enabled at (56143): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1531 [inline] hardirqs last enabled at (56143): [] finish_lock_switch+0xb0/0x1c0 kernel/sched/core.c:5105 hardirqs last disabled at (56144): [] el1_brk64+0x20/0x54 arch/arm64/kernel/entry-common.c:434 softirqs last enabled at (54864): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (54862): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---