el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 7021 at fs/btrfs/file.c:2985 btrfs_replace_file_extents+0xe1c/0x1388 fs/btrfs/file.c:2985 Modules linked in: CPU: 1 PID: 7021 Comm: syz.2.503 Not tainted 5.15.167-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : btrfs_replace_file_extents+0xe1c/0x1388 fs/btrfs/file.c:2985 lr : btrfs_replace_file_extents+0xe1c/0x1388 fs/btrfs/file.c:2985 sp : ffff800020fd74c0 x29: ffff800020fd7620 x28: ffff0000e4e2ac00 x27: 0000000000000000 x26: dfff800000000000 x25: ffff0000dee86f20 x24: ffff0000e67af5c0 x23: 000000000000cfff x22: 00000000fffffff4 x21: 0000000000000000 x20: 1fffe0001bdd0def x19: ffff0000dee86f78 x18: 1fffe00036835d8e x17: 1fffe00036835d8e x16: ffff8000082ec9a8 x15: ffff800014b5ef40 x14: 1ffff0000295806a x13: dfff800000000000 x12: 0000000000000003 x11: 0000000000000000 x10: 0000000000000000 x9 : cc2d489051594200 x8 : cc2d489051594200 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000000 x3 : ffff80000804605c x2 : 0000000000000007 x1 : 0000000100000000 x0 : 0000000000000026 Call trace: btrfs_replace_file_extents+0xe1c/0x1388 fs/btrfs/file.c:2985 insert_prealloc_file_extent fs/btrfs/inode.c:10398 [inline] __btrfs_prealloc_file_range+0x5ac/0x1164 fs/btrfs/inode.c:10466 btrfs_prealloc_file_range+0x60/0x7c fs/btrfs/inode.c:10556 btrfs_fallocate+0x166c/0x1954 fs/btrfs/file.c:3630 vfs_fallocate+0x478/0x5b4 fs/open.c:308 ksys_fallocate fs/open.c:331 [inline] __do_sys_fallocate fs/open.c:339 [inline] __se_sys_fallocate fs/open.c:337 [inline] __arm64_sys_fallocate+0xc0/0x110 fs/open.c:337 __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:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 942 hardirqs last enabled at (941): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline] hardirqs last enabled at (941): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:4781 hardirqs last disabled at (942): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (246): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (244): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace 94cbd130e41c8046 ]--- BTRFS: error (device loop2) in btrfs_replace_file_extents:2985: errno=-12 Out of memory BTRFS info (device loop2): forced readonly