RSP: 002b:00007f37593ff0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f375999bf80 RCX: 00007f375987cae9 RDX: 0000000000000001 RSI: 00000000200026c0 RDI: 0000000000000004 RBP: 00007f37593ff120 R08: 0000000000000000 R09: 0000000000000010 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007f375999bf80 R15: 00007fff32f1cd98 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-tree.c:3452! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 0 PID: 5912 Comm: syz-executor.0 Not tainted 6.10.0-rc2-syzkaller-00315-gdc772f8237f9 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 RIP: 0010:btrfs_free_tree_block+0xd46/0xd50 fs/btrfs/extent-tree.c:3452 Code: ef fd 48 c7 c7 c0 2c 0b 8c 48 c7 c6 a0 2f 0b 8c 48 c7 c2 60 2b 0b 8c b9 77 0d 00 00 e8 93 5d d4 07 90 0f 0b e8 0b aa ef fd 90 <0f> 0b 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc90009756640 EFLAGS: 00010293 RAX: ffffffff83a67b85 RBX: 00000000fffffff4 RCX: ffff88802a8e3c00 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: ffffc90009756770 R08: ffffffff83a671a3 R09: 1ffffffff1c887ea R10: dffffc0000000000 R11: fffffbfff1c887eb R12: dffffc0000000000 R13: ffff8880705be000 R14: ffff88802cff7064 R15: 0000000000000000 FS: 00007f37593ff6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f375990666e CR3: 0000000023902000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_force_cow_block+0xf37/0x1b70 fs/btrfs/ctree.c:623 btrfs_cow_block+0x35e/0xa40 fs/btrfs/ctree.c:746 btrfs_search_slot+0xbdd/0x30d0 fs/btrfs/ctree.c:2101 lookup_inline_extent_backref+0x409/0x1660 fs/btrfs/extent-tree.c:823 lookup_extent_backref fs/btrfs/extent-tree.c:1055 [inline] __btrfs_free_extent+0x443/0x3a10 fs/btrfs/extent-tree.c:3115 run_delayed_tree_ref fs/btrfs/extent-tree.c:1736 [inline] run_one_delayed_ref fs/btrfs/extent-tree.c:1762 [inline] btrfs_run_delayed_refs_for_head fs/btrfs/extent-tree.c:2027 [inline] __btrfs_run_delayed_refs+0x117c/0x4670 fs/btrfs/extent-tree.c:2097 btrfs_run_delayed_refs+0xe3/0x2c0 fs/btrfs/extent-tree.c:2209 btrfs_commit_transaction+0x4be/0x3740 fs/btrfs/transaction.c:2179 btrfs_sync_file+0xb90/0x1040 fs/btrfs/file.c:2042 generic_write_sync include/linux/fs.h:2794 [inline] btrfs_do_write_iter+0xb84/0x10a0 fs/btrfs/file.c:1705 do_iter_readv_writev+0x5a4/0x800 vfs_writev+0x395/0xbe0 fs/read_write.c:971 do_pwritev fs/read_write.c:1072 [inline] __do_sys_pwritev2 fs/read_write.c:1131 [inline] __se_sys_pwritev2+0x1ca/0x2d0 fs/read_write.c:1122 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f375987cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f37593ff0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007f375999bf80 RCX: 00007f375987cae9 RDX: 0000000000000001 RSI: 00000000200026c0 RDI: 0000000000000004 RBP: 00007f37593ff120 R08: 0000000000000000 R09: 0000000000000010 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007f375999bf80 R15: 00007fff32f1cd98 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btrfs_free_tree_block+0xd46/0xd50 fs/btrfs/extent-tree.c:3452 Code: ef fd 48 c7 c7 c0 2c 0b 8c 48 c7 c6 a0 2f 0b 8c 48 c7 c2 60 2b 0b 8c b9 77 0d 00 00 e8 93 5d d4 07 90 0f 0b e8 0b aa ef fd 90 <0f> 0b 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 0018:ffffc90009756640 EFLAGS: 00010293 RAX: ffffffff83a67b85 RBX: 00000000fffffff4 RCX: ffff88802a8e3c00 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: ffffc90009756770 R08: ffffffff83a671a3 R09: 1ffffffff1c887ea R10: dffffc0000000000 R11: fffffbfff1c887eb R12: dffffc0000000000 R13: ffff8880705be000 R14: ffff88802cff7064 R15: 0000000000000000 FS: 00007f37593ff6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f375990666e CR3: 0000000023902000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400