BTRFS info (device loop0): using crc32c (crc32c-generic) checksum algorithm BTRFS info (device loop0): using free space tree BTRFS info (device loop0): enabling ssd optimizations ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-tree.c:3273! Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP Modules linked in: CPU: 1 PID: 3114 Comm: syz-executor276 Not tainted 6.0.0-rc6-syzkaller-17742-gc194837ebb57 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : btrfs_free_tree_block+0x400/0x43c fs/btrfs/extent-tree.c:3273 lr : btrfs_free_tree_block+0x400/0x43c fs/btrfs/extent-tree.c:3273 sp : ffff800012743670 x29: ffff8000127436c0 x28: 0000000000503000 x27: 0000000000000002 x26: ffff80000cf00000 x25: ffff0000cc66c000 x24: fffffc0000000000 x23: 00000000fffffff4 x22: 0000000000000001 x21: ffff0000ca5b7000 x20: 0000000000000000 x19: ffff0000c9478d80 x18: fffffffffffffff5 x17: 0000000000000000 x16: ffff80000db49158 x15: ffff0000c8a2cf80 x14: 0000000000000010 x13: 0000000000000000 x12: ffff0000c8a2cf80 x11: ff808000090f8124 x10: 0000000000000000 x9 : ffff8000090f8124 x8 : ffff0000c8a2cf80 x7 : ffff8000084b1e88 x6 : 0000000000000000 x5 : 0000000000000c40 x4 : 0000000000000068 x3 : 0000000000000068 x2 : ffff0000c3461800 x1 : 00000000fffffff4 x0 : 0000000000000000 Call trace: btrfs_free_tree_block+0x400/0x43c fs/btrfs/extent-tree.c:3273 __btrfs_cow_block+0x688/0xa88 fs/btrfs/ctree.c:467 btrfs_cow_block+0x1d0/0x258 fs/btrfs/ctree.c:572 btrfs_search_slot+0x458/0xfd8 btrfs_insert_empty_items+0x4c/0xd0 fs/btrfs/ctree.c:4069 btrfs_create_new_inode+0x610/0xd18 fs/btrfs/inode.c:6428 btrfs_create_common+0x114/0x1b4 fs/btrfs/inode.c:6657 btrfs_create+0x8c/0xb0 fs/btrfs/inode.c:6697 lookup_open fs/namei.c:3413 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0x804/0x11c4 fs/namei.c:3688 do_filp_open+0xdc/0x1b8 fs/namei.c:3718 do_sys_openat2+0xb8/0x22c fs/open.c:1311 do_sys_open fs/open.c:1327 [inline] __do_sys_openat fs/open.c:1343 [inline] __se_sys_openat fs/open.c:1338 [inline] __arm64_sys_openat+0xb0/0xe0 fs/open.c:1338 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall arch/arm64/kernel/syscall.c:52 [inline] el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x48/0x164 arch/arm64/kernel/syscall.c:206 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:636 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:654 el0t_64_sync+0x18c/0x190 Code: 94bb0eb0 97c6a0e9 d4210000 97c6a0e7 (d4210000) ---[ end trace 0000000000000000 ]---