------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-tree.c:3295! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 4630 Comm: syz-executor.3 Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : btrfs_free_tree_block+0xc08/0xdcc fs/btrfs/extent-tree.c:3295 lr : btrfs_free_tree_block+0xc08/0xdcc fs/btrfs/extent-tree.c:3295 sp : ffff800020a76a60 x29: ffff800020a76b80 x28: ffff0000de587210 x27: ffff800020a76af0 x26: 00000000fffffff4 x25: 0000000000000001 x24: ffff0000daee5480 x23: 0000000000000005 x22: ffff0000de587210 x21: ffff0000daee5360 x20: 0000000000000001 x19: dfff800000000000 x18: 0000000000000001 x17: 0000000000000000 x16: ffff800011b4c108 x15: 00000000ffffffff x14: ffff0000d4119b40 x13: 0000000000000001 x12: 0000000000000001 x11: 0000000000000000 x10: 0000000000000000 x9 : ffff0000d4119b40 x8 : ffff80000a075500 x7 : 0000000000000000 x6 : 0000000000000001 x5 : ffff800020a75db8 x4 : 00000000000000a8 x3 : 0000000000000068 x2 : 0000000000000000 x1 : 00000000fffffff4 x0 : 0000000000000000 Call trace: btrfs_free_tree_block+0xc08/0xdcc fs/btrfs/extent-tree.c:3295 __btrfs_cow_block+0xc6c/0x1708 fs/btrfs/ctree.c:478 btrfs_cow_block+0x308/0x960 fs/btrfs/ctree.c:595 btrfs_search_slot+0xb50/0x24d8 btrfs_insert_empty_items+0x1e4/0x2ac fs/btrfs/ctree.c:4007 btrfs_insert_empty_item fs/btrfs/ctree.h:2950 [inline] btrfs_insert_replace_extent+0x2fc/0xc04 fs/btrfs/file.c:2699 btrfs_replace_file_extents+0xb3c/0x1388 fs/btrfs/file.c:2981 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+0xad4/0x1138 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: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 Code: c80a7e69 35ffffaa 17ffff2b 97913b80 (d4210000) ---[ end trace 6a6ff0ce408db2c4 ]---