general protection fault, probably for non-canonical address 0xdffffc000000001a: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x00000000000000d0-0x00000000000000d7] CPU: 0 PID: 2856 Comm: syz-executor.4 Not tainted 6.4.0-rc4-syzkaller-00013-ge338142b39cf #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 RIP: 0010:iput+0x30/0x80 fs/inode.c:1763 Code: 89 fd 53 e8 b2 a8 96 ff 48 85 ed 74 49 e8 a8 a8 96 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:ffffc9000382f900 EFLAGS: 00010213 RAX: dffffc0000000000 RBX: fffffffffffffffc RCX: ffffc90004101000 RDX: 000000000000001a RSI: ffffffff81ed9f78 RDI: 00000000000000d6 RBP: fffffffffffffffe R08: 0000000000000007 R09: fffffffffffff000 R10: fffffffffffffffc R11: 0000000000094001 R12: fffffffffffffffc R13: ffff8880327030b0 R14: fffffffffffffffe R15: ffff88802b0a8000 FS: 00007f15235f0700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000202f2000 CR3: 000000001e465000 CR4: 0000000000350ef0 Call Trace: btrfs_orphan_cleanup+0x4c0/0x7a0 fs/btrfs/inode.c:3632 create_snapshot fs/btrfs/ioctl.c:854 [inline] btrfs_mksubvol+0xaff/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:0x7f152288c169 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:00007f15235f0168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f15229ac050 RCX: 00007f152288c169 RDX: 00000000200000c0 RSI: 0000000050009401 RDI: 0000000000000007 RBP: 00007f15228e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd9c8dcf1f R14: 00007f15235f0300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:iput+0x30/0x80 fs/inode.c:1763 Code: 89 fd 53 e8 b2 a8 96 ff 48 85 ed 74 49 e8 a8 a8 96 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:ffffc9000382f900 EFLAGS: 00010213 RAX: dffffc0000000000 RBX: fffffffffffffffc RCX: ffffc90004101000 RDX: 000000000000001a RSI: ffffffff81ed9f78 RDI: 00000000000000d6 RBP: fffffffffffffffe R08: 0000000000000007 R09: fffffffffffff000 R10: fffffffffffffffc R11: 0000000000094001 R12: fffffffffffffffc R13: ffff8880327030b0 R14: fffffffffffffffe R15: ffff88802b0a8000 FS: 00007f15235f0700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000202f2000 CR3: 000000001e465000 CR4: 0000000000350ef0 ---------------- Code disassembly (best guess): 0: 89 fd mov %edi,%ebp 2: 53 push %rbx 3: e8 b2 a8 96 ff callq 0xff96a8ba 8: 48 85 ed test %rbp,%rbp b: 74 49 je 0x56 d: e8 a8 a8 96 ff callq 0xff96a8ba 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