R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000006e R14: 00007feca259c050 R15: 00007ffded658908 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-tree.c:3439! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 24995 Comm: syz-executor.3 Not tainted 6.7.0-rc2-syzkaller #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+0x7e4/0xbe0 fs/btrfs/extent-tree.c:3439 Code: fc fd 31 ff 89 c5 89 c6 e8 89 fa 13 fe 40 84 ed 0f 85 e6 fb ff ff e8 4b ff 13 fe 90 0f 0b 90 e9 d8 fb ff ff e8 3d ff 13 fe 90 <0f> 0b e8 35 ff 13 fe 49 8d 7c 24 30 48 b8 00 00 00 00 00 fc ff df RSP: 0018:ffffc9002984f168 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff88801e9f27e0 RCX: ffffc9000c44c000 RDX: 0000000000040000 RSI: ffffffff83728113 RDI: 0000000000000005 RBP: 0000000000000005 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000007 R12: ffff88803c7a0a68 R13: ffff88801e9f27e8 R14: 00000000fffffff4 R15: 0000000000000001 FS: 00007feca31496c0(0000) GS:ffff88806b700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007feca3148ff8 CR3: 000000010e17a000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_force_cow_block+0xfe3/0x19e0 fs/btrfs/ctree.c:618 btrfs_cow_block+0x2b6/0xb30 fs/btrfs/ctree.c:741 btrfs_search_slot+0x11bd/0x2fd0 fs/btrfs/ctree.c:2095 btrfs_insert_empty_items+0xb6/0x1b0 fs/btrfs/ctree.c:4285 btrfs_create_new_inode+0x896/0x26d0 fs/btrfs/inode.c:6283 btrfs_create_common+0x1d5/0x290 fs/btrfs/inode.c:6511 btrfs_create+0x114/0x160 fs/btrfs/inode.c:6551 lookup_open.isra.0+0x1095/0x13b0 fs/namei.c:3477 open_last_lookups fs/namei.c:3546 [inline] path_openat+0x922/0x2c50 fs/namei.c:3776 do_filp_open+0x1de/0x430 fs/namei.c:3809 do_sys_openat2+0x176/0x1e0 fs/open.c:1440 do_sys_open fs/open.c:1455 [inline] __do_sys_creat fs/open.c:1531 [inline] __se_sys_creat fs/open.c:1525 [inline] __x64_sys_creat+0xcd/0x120 fs/open.c:1525 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7feca247cae9 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:00007feca31490c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007feca259c050 RCX: 00007feca247cae9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000040 RBP: 00007feca3149120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000006e R14: 00007feca259c050 R15: 00007ffded658908 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btrfs_free_tree_block+0x7e4/0xbe0 fs/btrfs/extent-tree.c:3439 Code: fc fd 31 ff 89 c5 89 c6 e8 89 fa 13 fe 40 84 ed 0f 85 e6 fb ff ff e8 4b ff 13 fe 90 0f 0b 90 e9 d8 fb ff ff e8 3d ff 13 fe 90 <0f> 0b e8 35 ff 13 fe 49 8d 7c 24 30 48 b8 00 00 00 00 00 fc ff df RSP: 0018:ffffc9002984f168 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff88801e9f27e0 RCX: ffffc9000c44c000 RDX: 0000000000040000 RSI: ffffffff83728113 RDI: 0000000000000005 RBP: 0000000000000005 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000007 R12: ffff88803c7a0a68 R13: ffff88801e9f27e8 R14: 00000000fffffff4 R15: 0000000000000001 FS: 00007feca31496c0(0000) GS:ffff88806b700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f07cbf9d988 CR3: 000000010e17a000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400