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: 6944 Comm: syz-executor.3 Not tainted 6.4.0-syzkaller-11311-g24be4d0b46bb #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:iput+0x40/0x8f0 fs/inode.c:1805 Code: b6 71 90 ff 48 85 ed 0f 84 56 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 9d d8 00 00 00 48 89 d9 48 c1 e9 03 48 89 4c 24 08 <80> 3c 01 00 74 08 48 89 df e8 52 21 e9 ff 48 89 1c 24 48 8b 1b 48 RSP: 0018:ffffc90004407a10 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: 00000000000000d6 RCX: 000000000000001a RDX: 0000000000000000 RSI: 0000000000000004 RDI: fffffffffffffffe RBP: fffffffffffffffe R08: ffff888065e5d763 R09: 1ffff1100cbcbaec R10: dffffc0000000000 R11: ffffed100cbcbaed R12: ffff88805dabe000 R13: fffffffffffffffc R14: 00000000fffffffe R15: dffffc0000000000 FS: 00007fbe25ea6700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb68a034000 CR3: 00000000660c8000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: btrfs_orphan_cleanup+0xa55/0xcf0 fs/btrfs/inode.c:3737 create_snapshot+0x520/0x7e0 fs/btrfs/ioctl.c:853 btrfs_mksubvol+0x5d0/0x750 fs/btrfs/ioctl.c:995 btrfs_mksnapshot+0xb5/0xf0 fs/btrfs/ioctl.c:1041 __btrfs_ioctl_snap_create+0x344/0x460 fs/btrfs/ioctl.c:1294 btrfs_ioctl_snap_create+0x13c/0x190 fs/btrfs/ioctl.c:1321 btrfs_ioctl+0xbbf/0xd40 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xf8/0x170 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fbe2508c389 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:00007fbe25ea6168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fbe251ac050 RCX: 00007fbe2508c389 RDX: 0000000020001380 RSI: 0000000050009401 RDI: 000000000000000a RBP: 00007fbe250d7493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff0e62449f R14: 00007fbe25ea6300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:iput+0x40/0x8f0 fs/inode.c:1805 Code: b6 71 90 ff 48 85 ed 0f 84 56 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d 9d d8 00 00 00 48 89 d9 48 c1 e9 03 48 89 4c 24 08 <80> 3c 01 00 74 08 48 89 df e8 52 21 e9 ff 48 89 1c 24 48 8b 1b 48 RSP: 0018:ffffc90004407a10 EFLAGS: 00010203 RAX: dffffc0000000000 RBX: 00000000000000d6 RCX: 000000000000001a RDX: 0000000000000000 RSI: 0000000000000004 RDI: fffffffffffffffe RBP: fffffffffffffffe R08: ffff888065e5d763 R09: 1ffff1100cbcbaec R10: dffffc0000000000 R11: ffffed100cbcbaed R12: ffff88805dabe000 R13: fffffffffffffffc R14: 00000000fffffffe R15: dffffc0000000000 FS: 00007fbe25ea6700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020557000 CR3: 00000000660c8000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: b6 71 mov $0x71,%dh 2: 90 nop 3: ff 48 85 decl -0x7b(%rax) 6: ed in (%dx),%eax 7: 0f 84 56 03 00 00 je 0x363 d: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 14: fc ff df 17: 48 8d 9d d8 00 00 00 lea 0xd8(%rbp),%rbx 1e: 48 89 d9 mov %rbx,%rcx 21: 48 c1 e9 03 shr $0x3,%rcx 25: 48 89 4c 24 08 mov %rcx,0x8(%rsp) * 2a: 80 3c 01 00 cmpb $0x0,(%rcx,%rax,1) <-- trapping instruction 2e: 74 08 je 0x38 30: 48 89 df mov %rbx,%rdi 33: e8 52 21 e9 ff callq 0xffe9218a 38: 48 89 1c 24 mov %rbx,(%rsp) 3c: 48 8b 1b mov (%rbx),%rbx 3f: 48 rex.W