el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-tree.c:3284! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 0 PID: 4956 Comm: syz.1.142 Not tainted 6.1.119-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+0xb18/0xb50 fs/btrfs/extent-tree.c:3284 lr : btrfs_free_tree_block+0xb18/0xb50 fs/btrfs/extent-tree.c:3284 sp : ffff800021e77440 x29: ffff800021e77540 x28: ffff7000043cee90 x27: ffff000000000005 x26: ffff800021e774a0 x25: 00000000fffffff4 x24: ffff0000c400d860 x23: 0000000000000001 x22: dfff800000000000 x21: ffff0000c400d748 x20: ffff0000c65210a8 x19: ffff0000c400d740 x18: 1fffe0003679c376 x17: ffff800015a7d000 x16: ffff800008300db8 x15: ffff0001b3ce1bbc x14: 1ffff00002b500b2 x13: dfff800000000000 x12: 0000000000000003 x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff80000a15676c x8 : ffff0000d6a03780 x7 : ffff800008277348 x6 : 0000000000000000 x5 : 0000000000000080 x4 : 0000000000000001 x3 : 0000000000000000 x2 : 0000000000000006 x1 : 00000000fffffff4 x0 : 0000000000000000 Call trace: btrfs_free_tree_block+0xb18/0xb50 fs/btrfs/extent-tree.c:3284 __btrfs_cow_block+0xc88/0x1824 fs/btrfs/ctree.c:496 btrfs_cow_block+0x314/0xaa4 fs/btrfs/ctree.c:613 btrfs_search_slot+0xb7c/0x2948 btrfs_defrag_leaves+0x4e0/0xa14 fs/btrfs/tree-defrag.c:397 btrfs_defrag_root+0xc8/0x278 fs/btrfs/transaction.c:1494 btrfs_ioctl_defrag+0x1cc/0x474 fs/btrfs/ioctl.c:3487 btrfs_ioctl+0x918/0xb08 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:856 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 Code: 9577471d 978e702b d4210000 978e7029 (d4210000) ---[ end trace 0000000000000000 ]---