el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 10485 at fs/btrfs/file.c:2958 btrfs_replace_file_extents+0xe1c/0x1388 fs/btrfs/file.c:2958 Modules linked in: CPU: 0 PID: 10485 Comm: syz-executor.1 Not tainted 5.15.127-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : btrfs_replace_file_extents+0xe1c/0x1388 fs/btrfs/file.c:2958 lr : btrfs_replace_file_extents+0xe1c/0x1388 fs/btrfs/file.c:2958 sp : ffff8000218a72c0 x29: ffff8000218a7420 x28: ffff0000d703f200 x27: 0000000000000000 x26: dfff800000000000 x25: ffff0000dc5bd9a0 x24: ffff0000df75b110 x23: 0000000000000fff x22: 00000000fffffff4 x21: 0000000000006000 x20: 1fffe0001b8b7b3f x19: ffff0000dc5bd9f8 x18: 0000000000000001 x17: ff80800008334ef4 x16: ffff800011967c34 x15: ffff800008334ef4 x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000040000 x11: 000000000000e8e6 x10: ffff80001ffeb000 x9 : dbeb4ff5eb591f00 x8 : dbeb4ff5eb591f00 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000218a6a38 x4 : ffff8000149dfd20 x3 : ffff80000854c990 x2 : 0000000000000001 x1 : 0000000100000000 x0 : 0000000000000026 Call trace: btrfs_replace_file_extents+0xe1c/0x1388 fs/btrfs/file.c:2958 btrfs_clone+0xe28/0x2318 fs/btrfs/reflink.c:492 btrfs_clone_files+0x278/0x31c fs/btrfs/reflink.c:740 btrfs_remap_file_range+0x4c8/0xc08 fs/btrfs/reflink.c:888 vfs_copy_file_range+0xd9c/0x1130 fs/read_write.c:1510 __do_sys_copy_file_range fs/read_write.c:1588 [inline] __se_sys_copy_file_range fs/read_write.c:1551 [inline] __arm64_sys_copy_file_range+0x5f8/0x9d8 fs/read_write.c:1551 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 85178 hardirqs last enabled at (85177): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (85178): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:387 softirqs last enabled at (85166): [] softirq_handle_end kernel/softirq.c:401 [inline] softirqs last enabled at (85166): [] __do_softirq+0xb5c/0xe20 kernel/softirq.c:587 softirqs last disabled at (85139): [] do_softirq_own_stack include/asm-generic/softirq_stack.h:10 [inline] softirqs last disabled at (85139): [] invoke_softirq kernel/softirq.c:439 [inline] softirqs last disabled at (85139): [] __irq_exit_rcu+0x28c/0x534 kernel/softirq.c:637 ---[ end trace a73304c0d37e9434 ]--- BTRFS: error (device loop1) in btrfs_replace_file_extents:2958: errno=-12 Out of memory BTRFS info (device loop1): forced readonly