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: 25257 Comm: syz-executor.2 Not tainted 6.4.0-next-20230707-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023 RIP: 0010:iput+0x30/0x80 fs/inode.c:1805 Code: 89 fd 53 e8 62 3a 97 ff 48 85 ed 74 49 e8 58 3a 97 ff 48 8d bd d8 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 34 48 8b 9d d8 00 00 00 31 ff 83 e3 40 48 89 de e8 RSP: 0018:ffffc9000700f8e0 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: fffffffffffffffc RCX: ffffc90005322000 RDX: 000000000000001a RSI: ffffffff81edae38 RDI: 00000000000000d6 RBP: fffffffffffffffe R08: 0000000000000007 R09: fffffffffffff000 R10: fffffffffffffffc R11: ffffffff8a40008b R12: fffffffffffffffc R13: ffff88807ba54840 R14: fffffffffffffffe R15: ffff88802b80c000 FS: 00007f7676652700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020226000 CR3: 0000000027a36000 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:3737 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+0x440/0x4e0 fs/btrfs/ioctl.c:1294 btrfs_ioctl_snap_create+0x16b/0x200 fs/btrfs/ioctl.c:1321 btrfs_ioctl+0x516/0x5b50 fs/btrfs/ioctl.c:4564 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+0x19d/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:0x7f767588c389 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:00007f7676652168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f76759ac050 RCX: 00007f767588c389 RDX: 00000000200000c0 RSI: 0000000050009401 RDI: 0000000000000009 RBP: 00007f76758d7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd969b8d3f R14: 00007f7676652300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:iput+0x30/0x80 fs/inode.c:1805 Code: 89 fd 53 e8 62 3a 97 ff 48 85 ed 74 49 e8 58 3a 97 ff 48 8d bd d8 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 75 34 48 8b 9d d8 00 00 00 31 ff 83 e3 40 48 89 de e8 RSP: 0018:ffffc9000700f8e0 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: fffffffffffffffc RCX: ffffc90005322000 RDX: 000000000000001a RSI: ffffffff81edae38 RDI: 00000000000000d6 RBP: fffffffffffffffe R08: 0000000000000007 R09: fffffffffffff000 R10: fffffffffffffffc R11: ffffffff8a40008b R12: fffffffffffffffc R13: ffff88807ba54840 R14: fffffffffffffffe R15: ffff88802b80c000 FS: 00007f7676652700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020226000 CR3: 0000000027a36000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 89 fd mov %edi,%ebp 2: 53 push %rbx 3: e8 62 3a 97 ff callq 0xff973a6a 8: 48 85 ed test %rbp,%rbp b: 74 49 je 0x56 d: e8 58 3a 97 ff callq 0xff973a6a 12: 48 8d bd d8 00 00 00 lea 0xd8(%rbp),%rdi 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction 2e: 75 34 jne 0x64 30: 48 8b 9d d8 00 00 00 mov 0xd8(%rbp),%rbx 37: 31 ff xor %edi,%edi 39: 83 e3 40 and $0x40,%ebx 3c: 48 89 de mov %rbx,%rsi 3f: e8 .byte 0xe8