------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-tree.c:3295! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 4565 Comm: syz-executor.0 Not tainted 5.15.167-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/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 : ffff800020926a60 x29: ffff800020926b80 x28: ffff0000c067d2c0 x27: ffff800020926af0 x26: 00000000fffffff4 x25: 0000000000000001 x24: ffff0000db2f7860 x23: 0000000000000005 x22: ffff0000c067d2c0 x21: ffff0000db2f7740 x20: 0000000000000001 x19: dfff800000000000 x18: ffff800020926460 x17: 0000000000000000 x16: ffff800011ac23e0 x15: ffff800008982d04 x14: ffff8000089820a8 x13: ffff80000a241b98 x12: 0000000000000003 x11: 0000000000000000 x10: 0000000000000000 x9 : ffff0000d0fb51c0 x8 : ffff800009fef200 x7 : 0000000000000000 x6 : ffff80000805d400 x5 : ffff0000e59c4f30 x4 : 0000000000000000 x3 : ffff800011ff7700 x2 : 0000000000000006 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 97935b2f (d4210000) ---[ end trace 98528b014f9470dd ]---