R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007f919739bf80 R15: 00007ffc80685488 ------------[ cut here ]------------ kernel BUG at fs/btrfs/extent-tree.c:3293! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 3 PID: 14335 Comm: syz-executor.0 Not tainted 6.6.0-rc4-syzkaller-00281-g59f3fd30af35 #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 1d 93 fe fd 31 ff 89 c5 89 c6 e8 22 fb 15 fe 40 84 ed 0f 85 e5 fb ff ff e8 e4 ff 15 fe 0f 0b e9 d9 fb ff ff e8 d8 ff 15 fe <0f> 0b e8 d1 ff 15 fe 49 8d 7d 20 48 b8 00 00 00 00 00 fc ff df 48 RSP: 0018:ffffc900274df300 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff88801e16a218 RCX: ffffc90003901000 RDX: 0000000000040000 RSI: ffffffff8370c538 RDI: 0000000000000005 RBP: 0000000000000005 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 6637303030302052 R12: 1ffff92004e9be65 R13: ffff88802bf532a0 R14: 0000000000000001 R15: ffff88801e16a220 FS: 00007f9197ef76c0(0000) GS:ffff88806b900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055740b758930 CR3: 0000000104b23000 CR4: 0000000000350ee0 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 create_pending_snapshot+0xed0/0x2c90 fs/btrfs/transaction.c:1781 create_pending_snapshots+0x17e/0x2d0 fs/btrfs/transaction.c:1915 btrfs_commit_transaction+0x1277/0x3b30 fs/btrfs/transaction.c:2388 create_snapshot fs/btrfs/ioctl.c:845 [inline] btrfs_mksubvol+0xa87/0x12c0 fs/btrfs/ioctl.c:995 btrfs_mksnapshot+0xad/0xf0 fs/btrfs/ioctl.c:1041 __btrfs_ioctl_snap_create+0x43d/0x4f0 fs/btrfs/ioctl.c:1294 btrfs_ioctl_snap_create+0x168/0x200 fs/btrfs/ioctl.c:1321 btrfs_ioctl+0x53b/0x5d00 fs/btrfs/ioctl.c:4570 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:871 [inline] __se_sys_ioctl fs/ioctl.c:857 [inline] __x64_sys_ioctl+0x18f/0x210 fs/ioctl.c:857 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:0x7f919727cae9 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:00007f9197ef70c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f919739bf80 RCX: 00007f919727cae9 RDX: 0000000020001380 RSI: 0000000050009401 RDI: 0000000000000004 RBP: 00007f9197ef7120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 000000000000000b R14: 00007f919739bf80 R15: 00007ffc80685488 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:btrfs_free_tree_block+0x788/0xb50 fs/btrfs/extent-tree.c:3293 Code: e8 1d 93 fe fd 31 ff 89 c5 89 c6 e8 22 fb 15 fe 40 84 ed 0f 85 e5 fb ff ff e8 e4 ff 15 fe 0f 0b e9 d9 fb ff ff e8 d8 ff 15 fe <0f> 0b e8 d1 ff 15 fe 49 8d 7d 20 48 b8 00 00 00 00 00 fc ff df 48 RSP: 0018:ffffc900274df300 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff88801e16a218 RCX: ffffc90003901000 RDX: 0000000000040000 RSI: ffffffff8370c538 RDI: 0000000000000005 RBP: 0000000000000005 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 6637303030302052 R12: 1ffff92004e9be65 R13: ffff88802bf532a0 R14: 0000000000000001 R15: ffff88801e16a220 FS: 00007f9197ef76c0(0000) GS:ffff88806b800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9195dddd58 CR3: 0000000104b23000 CR4: 0000000000350ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400