------------[ cut here ]------------ btree trans held srcu lock (delaying memory reclaim) for 31 seconds WARNING: CPU: 0 PID: 8028 at fs/bcachefs/btree_iter.c:3179 check_srcu_held_too_long fs/bcachefs/btree_iter.c:3177 [inline] WARNING: CPU: 0 PID: 8028 at fs/bcachefs/btree_iter.c:3179 bch2_trans_srcu_unlock+0x438/0x514 fs/bcachefs/btree_iter.c:3193 Modules linked in: CPU: 0 UID: 0 PID: 8028 Comm: syz.3.392 Not tainted 6.15.0-rc6-syzkaller-gc919f08732cc #0 PREEMPT Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : check_srcu_held_too_long fs/bcachefs/btree_iter.c:3177 [inline] pc : bch2_trans_srcu_unlock+0x438/0x514 fs/bcachefs/btree_iter.c:3193 lr : check_srcu_held_too_long fs/bcachefs/btree_iter.c:3177 [inline] lr : bch2_trans_srcu_unlock+0x438/0x514 fs/bcachefs/btree_iter.c:3193 sp : ffff80009dcb6e60 x29: ffff80009dcb6e90 x28: 1fffe0001deab008 x27: dfff800000000000 x26: 0000000000000000 x25: ffff0000fa600000 x24: ffff80008f2a0000 x23: 1ffff00011e54040 x22: 00000000ffffb9fe x21: fffffffffffff79e x20: ffff0000ef558000 x19: ffff0000ef558042 x18: 00000000ffffffff x17: ffff800092f37000 x16: ffff80008ad22d88 x15: ffff700011e740f4 x14: 1ffff00011e740f4 x13: 0000000000000004 x12: ffffffffffffffff x11: 0000000000080000 x10: 000000000006abf2 x9 : bf61a74fc8011d00 x8 : bf61a74fc8011d00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff80009dcb67b8 x4 : ffff80008f415d40 x3 : ffff8000805486f0 x2 : 0000000000000000 x1 : 0000000100000000 x0 : 0000000000000000 Call trace: check_srcu_held_too_long fs/bcachefs/btree_iter.c:3177 [inline] (P) bch2_trans_srcu_unlock+0x438/0x514 fs/bcachefs/btree_iter.c:3193 (P) bch2_trans_begin+0x828/0xa40 fs/bcachefs/btree_iter.c:3270 bch2_remap_range+0x4c4/0x1bdc fs/bcachefs/reflink.c:639 bch2_remap_file_range+0x64c/0xb70 fs/bcachefs/fs-io.c:942 vfs_clone_file_range+0x608/0xb50 fs/remap_range.c:403 ioctl_file_clone fs/ioctl.c:240 [inline] ioctl_file_clone_range fs/ioctl.c:258 [inline] do_vfs_ioctl+0xe6c/0x2218 fs/ioctl.c:853 __do_sys_ioctl fs/ioctl.c:904 [inline] __se_sys_ioctl fs/ioctl.c:892 [inline] __arm64_sys_ioctl+0xe4/0x1c4 fs/ioctl.c:892 __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+0x58/0x17c arch/arm64/kernel/entry-common.c:767 el0t_64_sync_handler+0x78/0x108 arch/arm64/kernel/entry-common.c:786 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 385398 hardirqs last enabled at (385397): [] __up_console_sem kernel/printk/printk.c:344 [inline] hardirqs last enabled at (385397): [] __console_unlock+0x70/0xc4 kernel/printk/printk.c:2885 hardirqs last disabled at (385398): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:511 softirqs last enabled at (384632): [] softirq_handle_end kernel/softirq.c:425 [inline] softirqs last enabled at (384632): [] handle_softirqs+0xaf8/0xc88 kernel/softirq.c:607 softirqs last disabled at (379849): [] __do_softirq+0x14/0x20 kernel/softirq.c:613 ---[ end trace 0000000000000000 ]--- bcachefs (loop3): shutting down bcachefs (loop3): going read-only bcachefs (loop3): finished waiting for writes to stop bcachefs (loop3): flushing journal and stopping allocators, journal seq 16 bcachefs (loop3): flushing journal and stopping allocators complete, journal seq 17 bcachefs (loop3): clean shutdown complete, journal seq 18 bcachefs (loop3): marking filesystem clean bcachefs (loop3): shutdown complete