RBP: 00007f50bdb40120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000006e R14: 00007f50bcb9c050 R15: 00007fff787b9f48 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-tree.c:3452! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 PID: 5883 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:ffffc900053befa0 EFLAGS: 00010293 RAX: ffffffff83a67b85 RBX: 00000000fffffff4 RCX: ffff88806352bc00 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: ffffc900053bf0d0 R08: ffffffff83a671a3 R09: 1ffffffff1c887ea R10: dffffc0000000000 R11: fffffbfff1c887eb R12: dffffc0000000000 R13: ffff88801e5ed860 R14: ffff88801b6b2064 R15: 0000000000000000 FS: 00007f50bdb406c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd8c03b088 CR3: 000000002ab40000 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 btrfs_insert_empty_items+0x9c/0x1a0 fs/btrfs/ctree.c:4295 btrfs_create_new_inode+0x1133/0x27c0 fs/btrfs/inode.c:6345 btrfs_create_common+0x1d4/0x2e0 fs/btrfs/inode.c:6572 lookup_open fs/namei.c:3505 [inline] open_last_lookups fs/namei.c:3574 [inline] path_openat+0x1425/0x3280 fs/namei.c:3804 do_filp_open+0x235/0x490 fs/namei.c:3834 do_sys_openat2+0x13e/0x1d0 fs/open.c:1405 do_sys_open fs/open.c:1420 [inline] __do_sys_openat fs/open.c:1436 [inline] __se_sys_openat fs/open.c:1431 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1431 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:0x7f50bca7adf9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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:00007f50bdb400c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f50bcb9c050 RCX: 00007f50bca7adf9 RDX: 000000000000275a RSI: 0000000020000280 RDI: ffffffffffffff9c RBP: 00007f50bdb40120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000006e R14: 00007f50bcb9c050 R15: 00007fff787b9f48 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:ffffc900053befa0 EFLAGS: 00010293 RAX: ffffffff83a67b85 RBX: 00000000fffffff4 RCX: ffff88806352bc00 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: ffffc900053bf0d0 R08: ffffffff83a671a3 R09: 1ffffffff1c887ea R10: dffffc0000000000 R11: fffffbfff1c887eb R12: dffffc0000000000 R13: ffff88801e5ed860 R14: ffff88801b6b2064 R15: 0000000000000000 FS: 00007f50bdb406c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd8c03b088 CR3: 000000002ab40000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400