RDX: 0000000020002d40 RSI: 0000000050009417 RDI: 0000000000000004 RBP: 00007ffc05493b30 R08: 0000000000000002 R09: 00007ffc05493b40 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005 R13: 00007ffc05493b70 R14: 00007ffc05493b50 R15: 0000000000000003 ------------[ cut here ]------------ kernel BUG at fs/btrfs/transaction.c:1697! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5138 Comm: syz-executor214 Not tainted 6.1.0-syzkaller-14587-g51094a24b85e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:create_pending_snapshot+0x25ab/0x25c0 fs/btrfs/transaction.c:1697 Code: ec ff ff e8 67 a1 ff fd 48 c7 c7 40 95 39 8b 44 89 f6 31 c0 e8 16 91 c6 fd 0f 0b e9 a5 f9 ff ff e8 3a 95 24 07 e8 45 a1 ff fd <0f> 0b e8 3e a1 ff fd 0f 0b e8 37 a1 ff fd 0f 0b 0f 1f 44 00 00 55 RSP: 0018:ffffc90003f3f600 EFLAGS: 00010293 RAX: ffffffff838c3a2b RBX: 0000000016136be6 RCX: ffff8880759dba80 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: ffffc90003f3f8f0 R08: ffffffff838c1bd1 R09: fffffbfff1a83313 R10: fffffbfff1a83313 R11: 1ffffffff1a83312 R12: 00000000fffffff4 R13: dffffc0000000000 R14: ffff8880757c4360 R15: ffff8880757c47f0 FS: 0000555555daf300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055a785e21668 CR3: 0000000021061000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: create_pending_snapshots+0x1a8/0x1e0 fs/btrfs/transaction.c:1894 btrfs_commit_transaction+0x12c1/0x3340 fs/btrfs/transaction.c:2351 create_snapshot+0x4aa/0x7e0 fs/btrfs/ioctl.c:844 btrfs_mksubvol+0x71e/0x880 fs/btrfs/ioctl.c:994 btrfs_mksnapshot+0xb5/0xf0 fs/btrfs/ioctl.c:1040 __btrfs_ioctl_snap_create+0x339/0x450 fs/btrfs/ioctl.c:1293 btrfs_ioctl_snap_create_v2+0x1b5/0x400 fs/btrfs/ioctl.c:1380 btrfs_ioctl+0xa9f/0xc10 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:856 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:0x7f4766f78a09 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:00007ffc05493b08 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f4766f78a09 RDX: 0000000020002d40 RSI: 0000000050009417 RDI: 0000000000000004 RBP: 00007ffc05493b30 R08: 0000000000000002 R09: 00007ffc05493b40 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005 R13: 00007ffc05493b70 R14: 00007ffc05493b50 R15: 0000000000000003 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:create_pending_snapshot+0x25ab/0x25c0 fs/btrfs/transaction.c:1697 Code: ec ff ff e8 67 a1 ff fd 48 c7 c7 40 95 39 8b 44 89 f6 31 c0 e8 16 91 c6 fd 0f 0b e9 a5 f9 ff ff e8 3a 95 24 07 e8 45 a1 ff fd <0f> 0b e8 3e a1 ff fd 0f 0b e8 37 a1 ff fd 0f 0b 0f 1f 44 00 00 55 RSP: 0018:ffffc90003f3f600 EFLAGS: 00010293 RAX: ffffffff838c3a2b RBX: 0000000016136be6 RCX: ffff8880759dba80 RDX: 0000000000000000 RSI: 00000000fffffff4 RDI: 0000000000000000 RBP: ffffc90003f3f8f0 R08: ffffffff838c1bd1 R09: fffffbfff1a83313 R10: fffffbfff1a83313 R11: 1ffffffff1a83312 R12: 00000000fffffff4 R13: dffffc0000000000 R14: ffff8880757c4360 R15: ffff8880757c47f0 FS: 0000555555daf300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000557826cdf230 CR3: 0000000021061000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400