RDX: 0000000020001a80 RSI: 0000000050009417 RDI: 0000000000000004 RBP: 00007f6af0a741d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffe2ff404cf R14: 00007f6af0a74300 R15: 0000000000022000 ------------[ cut here ]------------ kernel BUG at fs/btrfs/transaction.c:1506! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 13950 Comm: syz-executor.0 Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:create_pending_snapshot+0x1a11/0x2850 fs/btrfs/transaction.c:1506 Code: 00 00 fc ff df 48 c1 ea 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e f5 04 00 00 44 89 a3 a0 00 00 00 e9 55 ec ff ff e8 3f c2 7b fe <0f> 0b e8 38 c2 7b fe 4c 89 f7 e8 c0 0c 17 00 31 ff 41 89 c4 89 c6 RSP: 0018:ffff888015d4f408 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff8880a7d15e00 RCX: ffffc90005d1c000 RDX: 0000000000040000 RSI: ffffffff82e6c331 RDI: 0000000000000005 RBP: ffff888015d4f648 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 00000000fffffff4 R13: 0000000000080000 R14: ffff8880174667e0 R15: ffff88803ad6a8b0 FS: 00007f6af0a74700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020002000 CR3: 00000000424bc000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: create_pending_snapshots+0x174/0x2c0 fs/btrfs/transaction.c:1711 btrfs_commit_transaction+0x813/0x2480 fs/btrfs/transaction.c:2127 create_snapshot fs/btrfs/ioctl.c:861 [inline] btrfs_mksubvol+0xe53/0x1160 fs/btrfs/ioctl.c:1004 btrfs_ioctl_snap_create_transid+0x3bc/0x430 fs/btrfs/ioctl.c:1793 btrfs_ioctl_snap_create_v2+0x2db/0x5d0 fs/btrfs/ioctl.c:1885 btrfs_ioctl+0x2712/0x76d0 fs/btrfs/ioctl.c:5930 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688 ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f6af25020d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6af0a74168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f6af2621f80 RCX: 00007f6af25020d9 RDX: 0000000020001a80 RSI: 0000000050009417 RDI: 0000000000000004 RBP: 00007f6af0a741d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 00007ffe2ff404cf R14: 00007f6af0a74300 R15: 0000000000022000 Modules linked in: ---[ end trace baa6557a9b2206cc ]--- RIP: 0010:create_pending_snapshot+0x1a11/0x2850 fs/btrfs/transaction.c:1506 Code: 00 00 fc ff df 48 c1 ea 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e f5 04 00 00 44 89 a3 a0 00 00 00 e9 55 ec ff ff e8 3f c2 7b fe <0f> 0b e8 38 c2 7b fe 4c 89 f7 e8 c0 0c 17 00 31 ff 41 89 c4 89 c6 RSP: 0018:ffff888015d4f408 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff8880a7d15e00 RCX: ffffc90005d1c000 RDX: 0000000000040000 RSI: ffffffff82e6c331 RDI: 0000000000000005 RBP: ffff888015d4f648 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: 00000000fffffff4 R13: 0000000000080000 R14: ffff8880174667e0 R15: ffff88803ad6a8b0 FS: 00007f6af0a74700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020002000 CR3: 00000000424bc000 CR4: 00000000003406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400