general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 0 PID: 446 Comm: syz-executor.0 Not tainted 5.10.85-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:__d_entry_type include/linux/dcache.h:400 [inline] RIP: 0010:d_is_miss include/linux/dcache.h:405 [inline] RIP: 0010:d_is_negative include/linux/dcache.h:451 [inline] RIP: 0010:do_unlinkat+0x251/0x5d0 fs/namei.c:3966 Code: 4c 89 e0 4c 89 e2 48 c1 e8 03 83 e2 07 42 0f b6 04 28 38 d0 7f 08 84 c0 0f 85 a9 02 00 00 4c 89 c0 45 0f b6 24 24 48 c1 e8 03 <42> 0f b6 04 28 84 c0 74 08 3c 03 0f 8e 71 02 00 00 41 8b 00 89 c2 RSP: 0018:ffffc900008f7e08 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffc900008f7ee8 RCX: 0000000000000000 RDX: 0000000000000005 RSI: 0000000000000008 RDI: ffff88810b34ab0c RBP: ffffc900008f7f10 R08: 0000000000000002 R09: ffff88811c77df3f R10: ffffed10238efbe7 R11: ffff88810cbfc000 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff88810cbf4400 R15: 0000000000000000 FS: 00007f5075a17700(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000a000 CR3: 0000000121268000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __do_sys_unlink fs/namei.c:4018 [inline] __se_sys_unlink fs/namei.c:4016 [inline] __x64_sys_unlink+0xa5/0xe0 fs/namei.c:4016 do_syscall_64+0x32/0x80 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f5075ea4389 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:00007f5075a17168 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007f5075fc3f80 RCX: 00007f5075ea4389 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000100 RBP: 00007f5075eef493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd704725df R14: 00007f5075a17300 R15: 0000000000022000 Modules linked in: ---[ end trace e3efe13a8e6525c2 ]--- RIP: 0010:__d_entry_type include/linux/dcache.h:400 [inline] RIP: 0010:d_is_miss include/linux/dcache.h:405 [inline] RIP: 0010:d_is_negative include/linux/dcache.h:451 [inline] RIP: 0010:do_unlinkat+0x251/0x5d0 fs/namei.c:3966 Code: 4c 89 e0 4c 89 e2 48 c1 e8 03 83 e2 07 42 0f b6 04 28 38 d0 7f 08 84 c0 0f 85 a9 02 00 00 4c 89 c0 45 0f b6 24 24 48 c1 e8 03 <42> 0f b6 04 28 84 c0 74 08 3c 03 0f 8e 71 02 00 00 41 8b 00 89 c2 RSP: 0018:ffffc900008f7e08 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffc900008f7ee8 RCX: 0000000000000000 RDX: 0000000000000005 RSI: 0000000000000008 RDI: ffff88810b34ab0c RBP: ffffc900008f7f10 R08: 0000000000000002 R09: ffff88811c77df3f R10: ffffed10238efbe7 R11: ffff88810cbfc000 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff88810cbf4400 R15: 0000000000000000 FS: 00007f5075a17700(0000) GS:ffff8881f7200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002000a000 CR3: 0000000121268000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 4c 89 e0 mov %r12,%rax 3: 4c 89 e2 mov %r12,%rdx 6: 48 c1 e8 03 shr $0x3,%rax a: 83 e2 07 and $0x7,%edx d: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax 12: 38 d0 cmp %dl,%al 14: 7f 08 jg 0x1e 16: 84 c0 test %al,%al 18: 0f 85 a9 02 00 00 jne 0x2c7 1e: 4c 89 c0 mov %r8,%rax 21: 45 0f b6 24 24 movzbl (%r12),%r12d 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 0f b6 04 28 movzbl (%rax,%r13,1),%eax <-- trapping instruction 2f: 84 c0 test %al,%al 31: 74 08 je 0x3b 33: 3c 03 cmp $0x3,%al 35: 0f 8e 71 02 00 00 jle 0x2ac 3b: 41 8b 00 mov (%r8),%eax 3e: 89 c2 mov %eax,%edx