------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-tree.c:3293! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 7375 Comm: syz-executor.0 Not tainted 6.6.0-rc6-syzkaller-00285-g9c5d00cb7b6b #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 RIP: 0010:btrfs_free_tree_block+0x788/0xb50 fs/btrfs/extent-tree.c:3293 Code: e8 5d 86 fe fd 31 ff 89 c5 89 c6 e8 c2 ed 15 fe 40 84 ed 0f 85 e5 fb ff ff e8 84 f2 15 fe 0f 0b e9 d9 fb ff ff e8 78 f2 15 fe <0f> 0b e8 71 f2 15 fe 49 8d 7d 20 48 b8 00 00 00 00 00 fc ff df 48 RSP: 0018:ffffc900207a7588 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff888022de7860 RCX: ffffc90005c51000 RDX: 0000000000040000 RSI: ffffffff8370d5b8 RDI: 0000000000000005 RBP: 0000000000000005 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000037333754 R12: 1ffff920040f4eb6 R13: ffff888031d70f18 R14: 0000000000000001 R15: ffff888022de7868 FS: 00007fb89de536c0(0000) GS:ffff88806b600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555555f5a788 CR3: 000000010dfb4000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __btrfs_cow_block+0xfbc/0x18a0 fs/btrfs/ctree.c:601 btrfs_cow_block+0x2b6/0xb20 fs/btrfs/ctree.c:724 btrfs_search_slot+0x12a0/0x30e0 fs/btrfs/ctree.c:2220 btrfs_insert_empty_items+0xb7/0x1b0 fs/btrfs/ctree.c:4402 btrfs_create_new_inode+0x896/0x26e0 fs/btrfs/inode.c:6274 btrfs_symlink+0x3f9/0x9d0 fs/btrfs/inode.c:9411 vfs_symlink fs/namei.c:4481 [inline] vfs_symlink+0x3e5/0x620 fs/namei.c:4465 do_symlinkat+0x28e/0x310 fs/namei.c:4507 __do_sys_symlink fs/namei.c:4528 [inline] __se_sys_symlink fs/namei.c:4526 [inline] __x64_sys_symlink+0x79/0x90 fs/namei.c:4526 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fb89d07cae9 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:00007fb89de530c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 00007fb89d19bf80 RCX: 00007fb89d07cae9 RDX: 0000000000000000 RSI: 0000000020000200 RDI: 0000000020000180 RBP: 00007fb89de53120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007fb89d19bf80 R15: 00007fff497c5de8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btrfs_free_tree_block+0x788/0xb50 fs/btrfs/extent-tree.c:3293 Code: e8 5d 86 fe fd 31 ff 89 c5 89 c6 e8 c2 ed 15 fe 40 84 ed 0f 85 e5 fb ff ff e8 84 f2 15 fe 0f 0b e9 d9 fb ff ff e8 78 f2 15 fe <0f> 0b e8 71 f2 15 fe 49 8d 7d 20 48 b8 00 00 00 00 00 fc ff df 48 RSP: 0018:ffffc900207a7588 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff888022de7860 RCX: ffffc90005c51000 RDX: 0000000000040000 RSI: ffffffff8370d5b8 RDI: 0000000000000005 RBP: 0000000000000005 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000037333754 R12: 1ffff920040f4eb6 R13: ffff888031d70f18 R14: 0000000000000001 R15: ffff888022de7868 FS: 00007fb89de536c0(0000) GS:ffff88806b700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000561e86c88bf8 CR3: 000000010dfb4000 CR4: 0000000000350ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400