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:00007fff67b0b728 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f119ed93a39 RDX: 0000000020001280 RSI: 0000000050009401 RDI: 0000000000000004 RBP: 00007fff67b0b750 R08: 0000000000000002 R09: 00007fff67b0b760 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006 R13: 00007fff67b0b790 R14: 00007fff67b0b770 R15: 0000000000000001 ------------[ cut here ]------------ kernel BUG at fs/btrfs/transaction.c:1691! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 5022 Comm: syz-executor158 Not tainted 6.4.0-rc6-syzkaller-00049-g62d8779610bb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:create_pending_snapshot+0x1854/0x2d30 fs/btrfs/transaction.c:1691 Code: 89 e8 ba b3 06 00 00 4c 89 ff 44 8b ad d0 fd ff ff 48 c7 c6 80 00 95 8a 44 89 e9 e8 36 e6 ff ff e9 54 ee ff ff e8 9c 7d 1c fe <0f> 0b e8 95 7d 1c fe 48 8b bd 90 fe ff ff e8 b9 6d 0e 00 48 8b bd RSP: 0018:ffffc9000353f5f8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888028fcc400 RCX: 0000000000000000 RDX: ffff88801a370180 RSI: ffffffff8366ea14 RDI: 0000000000000005 RBP: ffffc9000353f868 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000001 R12: ffff88807cd80000 R13: 00000000fffffff4 R14: ffff88807970e000 R15: ffff888071b1ad20 FS: 0000555556afe300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020002000 CR3: 0000000018bc5000 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:1888 btrfs_commit_transaction+0xf0e/0x3fa0 fs/btrfs/transaction.c:2358 create_snapshot fs/btrfs/ioctl.c:846 [inline] btrfs_mksubvol+0xa6f/0x1310 fs/btrfs/ioctl.c:996 btrfs_mksnapshot+0xaf/0xf0 fs/btrfs/ioctl.c:1042 __btrfs_ioctl_snap_create+0x42b/0x4d0 fs/btrfs/ioctl.c:1295 btrfs_ioctl_snap_create+0x15f/0x200 fs/btrfs/ioctl.c:1322 btrfs_ioctl+0x50e/0x5b30 fs/btrfs/ioctl.c:4559 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:0x7f119ed93a39 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:00007fff67b0b728 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f119ed93a39 RDX: 0000000020001280 RSI: 0000000050009401 RDI: 0000000000000004 RBP: 00007fff67b0b750 R08: 0000000000000002 R09: 00007fff67b0b760 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000006 R13: 00007fff67b0b790 R14: 00007fff67b0b770 R15: 0000000000000001 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:create_pending_snapshot+0x1854/0x2d30 fs/btrfs/transaction.c:1691 Code: 89 e8 ba b3 06 00 00 4c 89 ff 44 8b ad d0 fd ff ff 48 c7 c6 80 00 95 8a 44 89 e9 e8 36 e6 ff ff e9 54 ee ff ff e8 9c 7d 1c fe <0f> 0b e8 95 7d 1c fe 48 8b bd 90 fe ff ff e8 b9 6d 0e 00 48 8b bd RSP: 0018:ffffc9000353f5f8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff888028fcc400 RCX: 0000000000000000 RDX: ffff88801a370180 RSI: ffffffff8366ea14 RDI: 0000000000000005 RBP: ffffc9000353f868 R08: 0000000000000005 R09: 0000000000000000 R10: 00000000fffffff4 R11: 0000000000000001 R12: ffff88807cd80000 R13: 00000000fffffff4 R14: ffff88807970e000 R15: ffff888071b1ad20 FS: 0000555556afe300(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020002000 CR3: 0000000018bc5000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 28 00 sub %al,(%rax) 2: 00 00 add %al,(%rax) 4: 75 05 jne 0xb 6: 48 83 c4 28 add $0x28,%rsp a: c3 retq b: e8 11 15 00 00 callq 0x1521 10: 90 nop 11: 48 89 f8 mov %rdi,%rax 14: 48 89 f7 mov %rsi,%rdi 17: 48 89 d6 mov %rdx,%rsi 1a: 48 89 ca mov %rcx,%rdx 1d: 4d 89 c2 mov %r8,%r10 20: 4d 89 c8 mov %r9,%r8 23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9 28: 0f 05 syscall * 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 30: 73 01 jae 0x33 32: c3 retq 33: 48 c7 c1 c0 ff ff ff mov $0xffffffffffffffc0,%rcx 3a: f7 d8 neg %eax 3c: 64 89 01 mov %eax,%fs:(%rcx) 3f: 48 rex.W