BTRFS info (device loop0): enabling ssd optimizations ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-tree.c:3273! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 3666 Comm: syz-executor308 Not tainted 6.0.0-rc7-syzkaller-00029-g3800a713b607 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 RIP: 0010:btrfs_free_tree_block+0x9f9/0xa00 fs/btrfs/extent-tree.c:3273 Code: fe e9 b1 fb ff ff 89 d9 80 e1 07 38 c1 0f 8c dd fb ff ff 48 89 df e8 46 8b 5e fe e9 d0 fb ff ff e8 dc b0 a6 06 e8 27 97 0b fe <0f> 0b 0f 1f 44 00 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 30 49 RSP: 0018:ffffc90003afefc0 EFLAGS: 00010293 RAX: ffffffff837bf259 RBX: 00000000fffffff4 RCX: ffff888076de9d80 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: ffffc90003aff110 R08: ffffffff837bec15 R09: 0000000000000c40 R10: fffffbfff19820d7 R11: 1ffffffff19820d6 R12: dffffc0000000000 R13: ffffc90003aff048 R14: ffffc90003aff040 R15: ffff88801ee49b20 FS: 0000555557199300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055af13c4c668 CR3: 0000000020650000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __btrfs_cow_block+0xe61/0x1730 fs/btrfs/ctree.c:467 btrfs_cow_block+0x3d8/0x570 fs/btrfs/ctree.c:572 btrfs_search_slot+0xb3b/0x2df0 btrfs_insert_empty_items+0x96/0x180 fs/btrfs/ctree.c:4069 btrfs_create_new_inode+0xed6/0x2130 fs/btrfs/inode.c:6428 btrfs_create_common+0x2e7/0x420 fs/btrfs/inode.c:6657 lookup_open fs/namei.c:3413 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0x12d0/0x2df0 fs/namei.c:3688 do_filp_open+0x264/0x4f0 fs/namei.c:3718 do_sys_openat2+0x124/0x4e0 fs/open.c:1313 do_sys_open fs/open.c:1329 [inline] __do_sys_openat fs/open.c:1345 [inline] __se_sys_openat fs/open.c:1340 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1340 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f9fca22bf49 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd754f69a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f9fca22bf49 RDX: 000000000000275a RSI: 0000000020000280 RDI: 00000000ffffff9c RBP: 00007ffd754f69d0 R08: 0000000000000002 R09: 00007ffd754f69e0 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000003 R13: 00007f9fca2746b8 R14: 00007ffd754f69f0 R15: 0000000000000002 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btrfs_free_tree_block+0x9f9/0xa00 fs/btrfs/extent-tree.c:3273 Code: fe e9 b1 fb ff ff 89 d9 80 e1 07 38 c1 0f 8c dd fb ff ff 48 89 df e8 46 8b 5e fe e9 d0 fb ff ff e8 dc b0 a6 06 e8 27 97 0b fe <0f> 0b 0f 1f 44 00 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 30 49 RSP: 0018:ffffc90003afefc0 EFLAGS: 00010293 RAX: ffffffff837bf259 RBX: 00000000fffffff4 RCX: ffff888076de9d80 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: ffffc90003aff110 R08: ffffffff837bec15 R09: 0000000000000c40 R10: fffffbfff19820d7 R11: 1ffffffff19820d6 R12: dffffc0000000000 R13: ffffc90003aff048 R14: ffffc90003aff040 R15: ffff88801ee49b20 FS: 0000555557199300(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005622b31be0a8 CR3: 0000000020650000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400