el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:133 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:152 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-tree.c:3482! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 6870 Comm: syz-executor.2 Not tainted 6.9.0-rc6-syzkaller-g78186bd77b47 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : btrfs_free_tree_block+0xc20/0xc2c fs/btrfs/extent-tree.c:3482 lr : btrfs_free_tree_block+0xc20/0xc2c fs/btrfs/extent-tree.c:3482 sp : ffff8000a00f7280 x29: ffff8000a00f7380 x28: ffff70001401ee58 x27: dfff800000000000 x26: ffff0000d8204000 x25: ffff0000cc371064 x24: 00000000fffffff4 x23: 0000000000000001 x22: 0000000000000001 x21: ffff80008e839000 x20: ffff0000df88d378 x19: ffff0000d58f3e00 x18: 0000000000000008 x17: 0000000000000000 x16: ffff80008ae8863c x15: 0000000000000001 x14: 1ffff00011e2e30a x13: 0000000000000000 x12: 0000000000000000 x11: ffff700011e2e30b x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000d7e8dac0 x7 : 0000000000000001 x6 : 0000000000000001 x5 : ffff8000a00f6638 x4 : 00000000ffffffff x3 : 0000000000000c40 x2 : ffff0000d789f140 x1 : 00000000fffffff4 x0 : 0000000000000000 Call trace: btrfs_free_tree_block+0xc20/0xc2c fs/btrfs/extent-tree.c:3482 btrfs_force_cow_block+0xea8/0x1a58 fs/btrfs/ctree.c:626 btrfs_cow_block+0x318/0xa3c fs/btrfs/ctree.c:749 btrfs_search_slot+0xba0/0x2a00 btrfs_insert_empty_items+0xa4/0x17c fs/btrfs/ctree.c:4298 btrfs_insert_empty_item fs/btrfs/ctree.h:650 [inline] insert_balance_item+0x228/0x1648 fs/btrfs/volumes.c:3610 btrfs_balance+0x7f8/0xe50 fs/btrfs/volumes.c:4508 btrfs_ioctl_balance+0x3e4/0x778 fs/btrfs/ioctl.c:3675 btrfs_ioctl+0x70c/0xaec fs/btrfs/ioctl.c:4715 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:904 [inline] __se_sys_ioctl fs/ioctl.c:890 [inline] __arm64_sys_ioctl+0x14c/0x1c8 fs/ioctl.c:890 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:133 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:152 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 Code: d4210000 978ebc93 d4210000 978ebc91 (d4210000) ---[ end trace 0000000000000000 ]---