RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fa4b0e51aa9 RDX: 000000000000275a RSI: 0000000020000040 RDI: 00000000ffffff9c RBP: 00007ffd89067350 R08: 0000000000000002 R09: 00007ffd89067360 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00007ffd89067390 R14: 00007ffd89067370 R15: 0000000000000004 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-tree.c:3260! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5088 Comm: syz-executor746 Not tainted 6.4.0-rc5-syzkaller-00245-g64569520920a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 RIP: 0010:btrfs_free_tree_block+0x266/0xb40 fs/btrfs/extent-tree.c:3260 Code: 00 48 8b 74 24 10 31 d2 4c 89 e7 e8 34 f2 17 00 31 ff 89 c6 89 44 24 10 e8 87 2b 21 fe 8b 44 24 10 85 c0 74 26 e8 5a 2f 21 fe <0f> 0b e8 53 2f 21 fe 48 89 ee 48 c7 c7 fa ff ff ff c6 44 24 58 01 RSP: 0018:ffffc90003657170 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88802b4815d0 RCX: 0000000000000000 RDX: ffff88802282e180 RSI: ffffffff83623856 RDI: 0000000000000005 RBP: 0000000000000005 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: ffffffff81d515d5 R12: ffff888070b26dc8 R13: 1ffff920006cae32 R14: 0000000000000001 R15: ffff88807448c000 FS: 0000555555d42300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000563cd3777fe0 CR3: 000000007cf5c000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __btrfs_cow_block+0xc53/0x1690 fs/btrfs/ctree.c:613 btrfs_cow_block+0x2fa/0x820 fs/btrfs/ctree.c:696 btrfs_search_slot+0x11c6/0x2da0 fs/btrfs/ctree.c:2144 btrfs_insert_empty_items+0xbd/0x1c0 fs/btrfs/ctree.c:4197 btrfs_create_new_inode+0x851/0x2800 fs/btrfs/inode.c:6270 btrfs_create_common+0x1d4/0x260 fs/btrfs/inode.c:6501 btrfs_create+0x116/0x160 fs/btrfs/inode.c:6541 lookup_open.isra.0+0x105a/0x1400 fs/namei.c:3492 open_last_lookups fs/namei.c:3560 [inline] path_openat+0x975/0x2750 fs/namei.c:3788 do_filp_open+0x1ba/0x410 fs/namei.c:3818 do_sys_openat2+0x16d/0x4c0 fs/open.c:1356 do_sys_open fs/open.c:1372 [inline] __do_sys_openat fs/open.c:1388 [inline] __se_sys_openat fs/open.c:1383 [inline] __x64_sys_openat+0x143/0x1f0 fs/open.c:1383 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa4b0e51aa9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 11 15 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd89067328 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fa4b0e51aa9 RDX: 000000000000275a RSI: 0000000020000040 RDI: 00000000ffffff9c RBP: 00007ffd89067350 R08: 0000000000000002 R09: 00007ffd89067360 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004 R13: 00007ffd89067390 R14: 00007ffd89067370 R15: 0000000000000004 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btrfs_free_tree_block+0x266/0xb40 fs/btrfs/extent-tree.c:3260 Code: 00 48 8b 74 24 10 31 d2 4c 89 e7 e8 34 f2 17 00 31 ff 89 c6 89 44 24 10 e8 87 2b 21 fe 8b 44 24 10 85 c0 74 26 e8 5a 2f 21 fe <0f> 0b e8 53 2f 21 fe 48 89 ee 48 c7 c7 fa ff ff ff c6 44 24 58 01 RSP: 0018:ffffc90003657170 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88802b4815d0 RCX: 0000000000000000 RDX: ffff88802282e180 RSI: ffffffff83623856 RDI: 0000000000000005 RBP: 0000000000000005 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: ffffffff81d515d5 R12: ffff888070b26dc8 R13: 1ffff920006cae32 R14: 0000000000000001 R15: ffff88807448c000 FS: 0000555555d42300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000556ec1283150 CR3: 000000007cf5c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400