BUG: kernel NULL pointer dereference, address: 0000000000000069 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 8000000117866067 P4D 8000000117866067 PUD 10ac98067 PMD 0 Oops: Oops: 0000 [#1] PREEMPT SMP PTI CPU: 1 UID: 0 PID: 4050 Comm: syz.0.15 Not tainted 6.12.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:file_inode include/linux/fs.h:1123 [inline] RIP: 0010:ovl_real_fdget_path fs/overlayfs/file.c:108 [inline] RIP: 0010:ovl_real_fdget+0x8e/0x110 fs/overlayfs/file.c:144 Code: 87 ff ff 41 89 c7 85 c0 75 53 48 89 e6 48 89 df e8 b7 a9 ff ff 49 8b 44 24 60 48 8b 38 49 89 3e 48 8b 44 24 08 48 85 c0 74 2d <48> 8b 4f 68 48 3b 48 68 75 4c 41 8b 74 24 70 8b 47 70 31 f0 45 31 RSP: 0018:ffffc9000692fe08 EFLAGS: 00010282 RAX: ffff88810e7b9270 RBX: ffff88810e7b9138 RCX: ffff88810e7b9270 RDX: 0000000000000000 RSI: ffffc9000692fe08 RDI: 0000000000000001 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: ffffffff817eea30 R12: ffff88810a32ac00 R13: 000000000000001e R14: ffffc9000692fe48 R15: 0000000000000000 FS: 0000555583d4d500(0000) GS:ffff88813bb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000069 CR3: 000000010a2f6000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ovl_flush+0x34/0xc0 fs/overlayfs/file.c:604 filp_flush fs/open.c:1525 [inline] filp_close+0x2a/0x80 fs/open.c:1538 __range_close fs/file.c:703 [inline] __close_range+0xfe/0x240 fs/file.c:760 __do_sys_close_range fs/open.c:1591 [inline] __se_sys_close_range fs/open.c:1588 [inline] __x64_sys_close_range+0x14/0x20 fs/open.c:1588 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x8d/0x190 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f42e9b7dff9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff64324da8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: ffffffffffffffda RBX: 000000000000f7bb RCX: 00007f42e9b7dff9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007f42e9d37a80 R08: 0000000000000001 R09: 00007fff6432509f R10: 00007f42e9a00000 R11: 0000000000000246 R12: 000000000000f7ef R13: 00007fff64324eb0 R14: 0000000000000032 R15: ffffffffffffffff Modules linked in: CR2: 0000000000000069 ---[ end trace 0000000000000000 ]--- RIP: 0010:file_inode include/linux/fs.h:1123 [inline] RIP: 0010:ovl_real_fdget_path fs/overlayfs/file.c:108 [inline] RIP: 0010:ovl_real_fdget+0x8e/0x110 fs/overlayfs/file.c:144 Code: 87 ff ff 41 89 c7 85 c0 75 53 48 89 e6 48 89 df e8 b7 a9 ff ff 49 8b 44 24 60 48 8b 38 49 89 3e 48 8b 44 24 08 48 85 c0 74 2d <48> 8b 4f 68 48 3b 48 68 75 4c 41 8b 74 24 70 8b 47 70 31 f0 45 31 RSP: 0018:ffffc9000692fe08 EFLAGS: 00010282 RAX: ffff88810e7b9270 RBX: ffff88810e7b9138 RCX: ffff88810e7b9270 RDX: 0000000000000000 RSI: ffffc9000692fe08 RDI: 0000000000000001 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: ffffffff817eea30 R12: ffff88810a32ac00 R13: 000000000000001e R14: ffffc9000692fe48 R15: 0000000000000000 FS: 0000555583d4d500(0000) GS:ffff88813bb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000069 CR3: 000000010a2f6000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 3 bytes skipped: 0: 41 89 c7 mov %eax,%r15d 3: 85 c0 test %eax,%eax 5: 75 53 jne 0x5a 7: 48 89 e6 mov %rsp,%rsi a: 48 89 df mov %rbx,%rdi d: e8 b7 a9 ff ff call 0xffffa9c9 12: 49 8b 44 24 60 mov 0x60(%r12),%rax 17: 48 8b 38 mov (%rax),%rdi 1a: 49 89 3e mov %rdi,(%r14) 1d: 48 8b 44 24 08 mov 0x8(%rsp),%rax 22: 48 85 c0 test %rax,%rax 25: 74 2d je 0x54 * 27: 48 8b 4f 68 mov 0x68(%rdi),%rcx <-- trapping instruction 2b: 48 3b 48 68 cmp 0x68(%rax),%rcx 2f: 75 4c jne 0x7d 31: 41 8b 74 24 70 mov 0x70(%r12),%esi 36: 8b 47 70 mov 0x70(%rdi),%eax 39: 31 f0 xor %esi,%eax 3b: 45 rex.RB 3c: 31 .byte 0x31