BUG: kernel NULL pointer dereference, address: 0000000000000012 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 10c6cd067 P4D 10c6cd067 PUD 10c435067 PMD 0 Oops: 0000 [#1] PREEMPT SMP CPU: 1 PID: 349 Comm: syz-executor.0 Not tainted 6.1.1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 RIP: 0010:d_is_miss include/linux/dcache.h:391 [inline] RIP: 0010:d_is_negative include/linux/dcache.h:437 [inline] RIP: 0010:do_renameat2+0x2f0/0x600 fs/namei.c:4879 Code: ee e8 d4 b9 ff ff 48 89 c3 48 8d bd 60 ff ff ff 4c 89 ee 44 89 e2 e8 9f e1 ff ff 49 89 c7 48 3d 00 f0 ff ff 0f 87 7b 01 00 00 <41> f6 47 02 70 48 8b b5 30 ff ff ff 0f 84 09 01 00 00 48 89 9d 00 RSP: 0018:ffffc9000073fde8 EFLAGS: 00010203 RAX: 0000000000000010 RBX: 0000000000000000 RCX: 0000000000000004 RDX: 0000000400000000 RSI: 0000000000000000 RDI: ffff88810aa73540 RBP: ffffc9000073ff00 R08: 00000000ffffff9c R09: 000000008080007f R10: ffff88810a76f1e0 R11: ffff888100041400 R12: 0000000000000000 R13: ffff888100525f00 R14: 0000000020000101 R15: 0000000000000010 FS: 00007f8390f0d6c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000012 CR3: 000000010c789000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __do_sys_rename fs/namei.c:4976 [inline] __se_sys_rename fs/namei.c:4974 [inline] __x64_sys_rename+0x3f/0x50 fs/namei.c:4974 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f839027cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8390f0d0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f839039bf80 RCX: 00007f839027cae9 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000020000100 RBP: 00007f83902c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f839039bf80 R15: 00007fffc0a4ebf8 Modules linked in: CR2: 0000000000000012 ---[ end trace 0000000000000000 ]--- RIP: 0010:d_is_miss include/linux/dcache.h:391 [inline] RIP: 0010:d_is_negative include/linux/dcache.h:437 [inline] RIP: 0010:do_renameat2+0x2f0/0x600 fs/namei.c:4879 Code: ee e8 d4 b9 ff ff 48 89 c3 48 8d bd 60 ff ff ff 4c 89 ee 44 89 e2 e8 9f e1 ff ff 49 89 c7 48 3d 00 f0 ff ff 0f 87 7b 01 00 00 <41> f6 47 02 70 48 8b b5 30 ff ff ff 0f 84 09 01 00 00 48 89 9d 00 RSP: 0018:ffffc9000073fde8 EFLAGS: 00010203 RAX: 0000000000000010 RBX: 0000000000000000 RCX: 0000000000000004 RDX: 0000000400000000 RSI: 0000000000000000 RDI: ffff88810aa73540 RBP: ffffc9000073ff00 R08: 00000000ffffff9c R09: 000000008080007f R10: ffff88810a76f1e0 R11: ffff888100041400 R12: 0000000000000000 R13: ffff888100525f00 R14: 0000000020000101 R15: 0000000000000010 FS: 00007f8390f0d6c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000012 CR3: 000000010c789000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: ee out %al,(%dx) 1: e8 d4 b9 ff ff call 0xffffb9da 6: 48 89 c3 mov %rax,%rbx 9: 48 8d bd 60 ff ff ff lea -0xa0(%rbp),%rdi 10: 4c 89 ee mov %r13,%rsi 13: 44 89 e2 mov %r12d,%edx 16: e8 9f e1 ff ff call 0xffffe1ba 1b: 49 89 c7 mov %rax,%r15 1e: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 24: 0f 87 7b 01 00 00 ja 0x1a5 * 2a: 41 f6 47 02 70 testb $0x70,0x2(%r15) <-- trapping instruction 2f: 48 8b b5 30 ff ff ff mov -0xd0(%rbp),%rsi 36: 0f 84 09 01 00 00 je 0x145 3c: 48 rex.W 3d: 89 .byte 0x89 3e: 9d popf