RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fd646565a29 RDX: 0000000020002d40 RSI: 0000000050009417 RDI: 0000000000000004 RBP: 00007fffdc0e6820 R08: 0000000000000002 R09: 00007fffdc0e6830 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005 R13: 00007fffdc0e6860 R14: 00007fffdc0e6840 R15: 0000000000000003 ------------[ cut here ]------------ kernel BUG at fs/btrfs/transaction.c:1697! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5149 Comm: syz-executor187 Not tainted 6.2.0-next-20230225-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 RIP: 0010:create_pending_snapshot+0x1894/0x2da0 fs/btrfs/transaction.c:1697 Code: 89 e8 ba b9 06 00 00 4c 89 ff 44 8b ad d0 fd ff ff 48 c7 c6 80 29 95 8a 44 89 e9 e8 f6 e5 ff ff e9 16 ef ff ff e8 cc f1 14 fe <0f> 0b e8 c5 f1 14 fe 48 8b bd 90 fe ff ff e8 69 e5 0e 00 48 8b bd RSP: 0018:ffffc90003d0f5c8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88801e0ad600 RCX: 0000000000000000 RDX: ffff88807580d7c0 RSI: ffffffff836fb3e4 RDI: 0000000000000005 RBP: ffffc90003d0f838 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000000 R12: ffff88801e064000 R13: 00000000fffffff4 R14: ffff88802041e000 R15: ffff888074c8a3f0 FS: 000055555587c300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd1a5beb64 CR3: 000000002ab83000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: create_pending_snapshots+0x174/0x2c0 fs/btrfs/transaction.c:1894 btrfs_commit_transaction+0xaae/0x4410 fs/btrfs/transaction.c:2351 create_snapshot fs/btrfs/ioctl.c:844 [inline] btrfs_mksubvol+0xa6f/0x1310 fs/btrfs/ioctl.c:994 btrfs_mksnapshot+0xaf/0xf0 fs/btrfs/ioctl.c:1040 __btrfs_ioctl_snap_create+0x42b/0x4d0 fs/btrfs/ioctl.c:1293 btrfs_ioctl_snap_create_v2+0x25a/0x520 fs/btrfs/ioctl.c:1380 btrfs_ioctl+0x3f77/0x59d0 fs/btrfs/ioctl.c:4551 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x197/0x210 fs/ioctl.c:856 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:0x7fd646565a29 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:00007fffdc0e67f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fd646565a29 RDX: 0000000020002d40 RSI: 0000000050009417 RDI: 0000000000000004 RBP: 00007fffdc0e6820 R08: 0000000000000002 R09: 00007fffdc0e6830 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000005 R13: 00007fffdc0e6860 R14: 00007fffdc0e6840 R15: 0000000000000003 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:create_pending_snapshot+0x1894/0x2da0 fs/btrfs/transaction.c:1697 Code: 89 e8 ba b9 06 00 00 4c 89 ff 44 8b ad d0 fd ff ff 48 c7 c6 80 29 95 8a 44 89 e9 e8 f6 e5 ff ff e9 16 ef ff ff e8 cc f1 14 fe <0f> 0b e8 c5 f1 14 fe 48 8b bd 90 fe ff ff e8 69 e5 0e 00 48 8b bd RSP: 0018:ffffc90003d0f5c8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff88801e0ad600 RCX: 0000000000000000 RDX: ffff88807580d7c0 RSI: ffffffff836fb3e4 RDI: 0000000000000005 RBP: ffffc90003d0f838 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000000 R12: ffff88801e064000 R13: 00000000fffffff4 R14: ffff88802041e000 R15: ffff888074c8a3f0 FS: 000055555587c300(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055af87434a00 CR3: 000000002ab83000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400