RBP: 00007fad32df9120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007fad3339bf80 R15: 00007fffad6122b8 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-tree.c:3452! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI CPU: 1 PID: 5490 Comm: syz-executor.0 Not tainted 6.10.0-rc3-syzkaller-g83a7eefedc9b #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 e3 5b d4 07 90 0f 0b e8 db a8 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:ffffc90004baefa0 EFLAGS: 00010293 RAX: ffffffff83a67d35 RBX: 00000000fffffff4 RCX: ffff888028eb5a00 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: ffffc90004baf0d0 R08: ffffffff83a67353 R09: 1ffffffff1c887ea R10: dffffc0000000000 R11: fffffbfff1c887eb R12: dffffc0000000000 R13: ffff88807520e960 R14: ffff88801f5aa064 R15: 0000000000000000 FS: 00007fad32df96c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8d51258dc3 CR3: 0000000029b7a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_force_cow_block+0xd63/0x1b70 fs/btrfs/ctree.c:651 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:0x7fad3327c859 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:00007fad32df90c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fad3339bf80 RCX: 00007fad3327c859 RDX: 000000000000275a RSI: 0000000020000040 RDI: ffffffffffffff9c RBP: 00007fad32df9120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007fad3339bf80 R15: 00007fffad6122b8 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 e3 5b d4 07 90 0f 0b e8 db a8 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:ffffc90004baefa0 EFLAGS: 00010293 RAX: ffffffff83a67d35 RBX: 00000000fffffff4 RCX: ffff888028eb5a00 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: ffffc90004baf0d0 R08: ffffffff83a67353 R09: 1ffffffff1c887ea R10: dffffc0000000000 R11: fffffbfff1c887eb R12: dffffc0000000000 R13: ffff88807520e960 R14: ffff88801f5aa064 R15: 0000000000000000 FS: 00007fad32df96c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8d51258dc3 CR3: 0000000029b7a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400