BUG: kernel NULL pointer dereference, address: 0000000000000040 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 113c74067 P4D 113c74067 PUD 113c78067 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 09/06/2023 RIP: 0010:vfs_rename+0x48/0x5e0 fs/namei.c:4692 Code: 00 00 48 89 45 d0 4c 8b 47 08 4c 8b 7f 10 48 8b 4f 20 48 8b 77 28 4c 8b 4f 30 41 bd 00 00 60 00 45 23 2f 8b 57 38 49 8b 5f 30 <48> 8b 7e 30 48 8b 41 28 8b 80 08 04 00 00 48 c7 45 c8 00 00 00 00 RSP: 0018:ffffc90000727d30 EFLAGS: 00010206 RAX: a1de9ad0eaba3600 RBX: ffff88810bab0000 RCX: ffff88810bab3480 RDX: 0000000000000000 RSI: 0000000000000010 RDI: ffffc90000727e90 RBP: ffffc90000727dd8 R08: ffff88810bab3480 R09: ffffc90000727e40 R10: ffff8881123f4f00 R11: ffff888100041400 R12: ffffc90000727e90 R13: 0000000000400000 R14: 0000000020000101 R15: ffff888113419540 FS: 00007f5b92bba6c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000040 CR3: 0000000112230000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: do_renameat2+0x404/0x600 fs/namei.c:4930 __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:0x7f5b91e7cae9 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:00007f5b92bba0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f5b91f9bf80 RCX: 00007f5b91e7cae9 RDX: 0000000000000000 RSI: 0000000020000140 RDI: 0000000020000100 RBP: 00007f5b91ec847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f5b91f9bf80 R15: 00007ffff5eea808 Modules linked in: CR2: 0000000000000040 ---[ end trace 0000000000000000 ]--- RIP: 0010:vfs_rename+0x48/0x5e0 fs/namei.c:4692 Code: 00 00 48 89 45 d0 4c 8b 47 08 4c 8b 7f 10 48 8b 4f 20 48 8b 77 28 4c 8b 4f 30 41 bd 00 00 60 00 45 23 2f 8b 57 38 49 8b 5f 30 <48> 8b 7e 30 48 8b 41 28 8b 80 08 04 00 00 48 c7 45 c8 00 00 00 00 RSP: 0018:ffffc90000727d30 EFLAGS: 00010206 RAX: a1de9ad0eaba3600 RBX: ffff88810bab0000 RCX: ffff88810bab3480 RDX: 0000000000000000 RSI: 0000000000000010 RDI: ffffc90000727e90 RBP: ffffc90000727dd8 R08: ffff88810bab3480 R09: ffffc90000727e40 R10: ffff8881123f4f00 R11: ffff888100041400 R12: ffffc90000727e90 R13: 0000000000400000 R14: 0000000020000101 R15: ffff888113419540 FS: 00007f5b92bba6c0(0000) GS:ffff888237d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000040 CR3: 0000000112230000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 48 89 45 d0 mov %rax,-0x30(%rbp) 6: 4c 8b 47 08 mov 0x8(%rdi),%r8 a: 4c 8b 7f 10 mov 0x10(%rdi),%r15 e: 48 8b 4f 20 mov 0x20(%rdi),%rcx 12: 48 8b 77 28 mov 0x28(%rdi),%rsi 16: 4c 8b 4f 30 mov 0x30(%rdi),%r9 1a: 41 bd 00 00 60 00 mov $0x600000,%r13d 20: 45 23 2f and (%r15),%r13d 23: 8b 57 38 mov 0x38(%rdi),%edx 26: 49 8b 5f 30 mov 0x30(%r15),%rbx * 2a: 48 8b 7e 30 mov 0x30(%rsi),%rdi <-- trapping instruction 2e: 48 8b 41 28 mov 0x28(%rcx),%rax 32: 8b 80 08 04 00 00 mov 0x408(%rax),%eax 38: 48 c7 45 c8 00 00 00 movq $0x0,-0x38(%rbp) 3f: 00