general protection fault, probably for non-canonical address 0xdffffc000000001a: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x00000000000000d0-0x00000000000000d7] CPU: 1 PID: 10409 Comm: syz-executor.1 Not tainted 6.4.0-rc2-next-20230515-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 RIP: 0010:iput+0x44/0x7a0 fs/inode.c:1763 Code: 48 85 ed 0f 84 84 04 00 00 e8 48 7b 96 ff 48 8d 85 d8 00 00 00 48 89 c2 48 89 04 24 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 73 06 00 00 48 8b 9d d8 00 00 00 31 ff 83 e3 40 RSP: 0018:ffffc900054d78c8 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: fffffffffffffffc RCX: ffffc9000d4d7000 RDX: 000000000000001a RSI: ffffffff81eda868 RDI: fffffffffffffffe RBP: fffffffffffffffe R08: 0000000000000007 R09: fffffffffffff000 R10: fffffffffffffffc R11: 0000000000000002 R12: fffffffffffffffc R13: ffff888020e01790 R14: fffffffffffffffe R15: ffff88807a294000 FS: 00007f2b4784d700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000203a0000 CR3: 000000002ab09000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_orphan_cleanup+0x4c0/0x7a0 fs/btrfs/inode.c:3835 create_snapshot fs/btrfs/ioctl.c:853 [inline] btrfs_mksubvol+0xaff/0x1310 fs/btrfs/ioctl.c:995 btrfs_mksnapshot+0xaf/0xf0 fs/btrfs/ioctl.c:1041 __btrfs_ioctl_snap_create+0x42b/0x4d0 fs/btrfs/ioctl.c:1294 btrfs_ioctl_snap_create+0x15f/0x200 fs/btrfs/ioctl.c:1321 btrfs_ioctl+0x50e/0x5b30 fs/btrfs/ioctl.c:4557 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:0x7f2b46a8c169 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:00007f2b4784d168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f2b46bac1f0 RCX: 00007f2b46a8c169 RDX: 0000000020002180 RSI: 0000000050009401 RDI: 0000000000000009 RBP: 00007f2b46ae7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd5c03217f R14: 00007f2b4784d300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:iput+0x44/0x7a0 fs/inode.c:1763 Code: 48 85 ed 0f 84 84 04 00 00 e8 48 7b 96 ff 48 8d 85 d8 00 00 00 48 89 c2 48 89 04 24 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <80> 3c 02 00 0f 85 73 06 00 00 48 8b 9d d8 00 00 00 31 ff 83 e3 40 RSP: 0018:ffffc900054d78c8 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: fffffffffffffffc RCX: ffffc9000d4d7000 RDX: 000000000000001a RSI: ffffffff81eda868 RDI: fffffffffffffffe RBP: fffffffffffffffe R08: 0000000000000007 R09: fffffffffffff000 R10: fffffffffffffffc R11: 0000000000000002 R12: fffffffffffffffc R13: ffff888020e01790 R14: fffffffffffffffe R15: ffff88807a294000 FS: 00007f2b4784d700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020383000 CR3: 000000002ab09000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 48 85 ed test %rbp,%rbp 3: 0f 84 84 04 00 00 je 0x48d 9: e8 48 7b 96 ff callq 0xff967b56 e: 48 8d 85 d8 00 00 00 lea 0xd8(%rbp),%rax 15: 48 89 c2 mov %rax,%rdx 18: 48 89 04 24 mov %rax,(%rsp) 1c: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 23: fc ff df 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 0f 85 73 06 00 00 jne 0x6a7 34: 48 8b 9d d8 00 00 00 mov 0xd8(%rbp),%rbx 3b: 31 ff xor %edi,%edi 3d: 83 e3 40 and $0x40,%ebx