Oops: general protection fault, probably for non-canonical address 0xdffffc000000000d: 0000 [#1] PREEMPT SMP KASAN PTI KASAN: null-ptr-deref in range [0x0000000000000068-0x000000000000006f] CPU: 1 UID: 0 PID: 5577 Comm: syz.0.56 Not tainted 6.12.0-rc2-next-20241010-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:file_inode include/linux/fs.h:1124 [inline] RIP: 0010:ovl_is_real_file fs/overlayfs/file.c:100 [inline] RIP: 0010:ovl_real_file_path+0xa5/0x2e0 fs/overlayfs/file.c:118 Code: 03 4d 89 f7 42 80 3c 30 00 74 08 4c 89 ef e8 62 1f e0 fe 4c 89 64 24 10 49 8b 45 00 49 89 c4 4c 8d 70 68 4c 89 f0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 f7 e8 3c 1f e0 fe 49 8b 1e 48 83 c5 68 RSP: 0018:ffffc9000496fc68 EFLAGS: 00010202 RAX: 000000000000000d RBX: 1ffff9200092dfa1 RCX: ffff888025df0000 RDX: 0000000000000000 RSI: ffffc9000496fd00 RDI: ffff888027370000 RBP: ffff88807e1a6d38 R08: ffffffff831d7a69 R09: 0000000000000000 R10: ffffc9000496fc20 R11: fffff5200092df86 R12: 0000000000000000 R13: ffff88806af0e000 R14: 0000000000000068 R15: dffffc0000000000 FS: 00005555629ee500(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001740 CR3: 0000000030398000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ovl_real_file+0x186/0x210 fs/overlayfs/file.c:176 ovl_flush+0x22/0x140 fs/overlayfs/file.c:620 filp_flush+0xb7/0x160 fs/open.c:1525 filp_close+0x1e/0x40 fs/open.c:1538 __range_close fs/file.c:793 [inline] __do_sys_close_range fs/file.c:852 [inline] __se_sys_close_range+0x38b/0x6d0 fs/file.c:816 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fda6897dff9 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:00007fff8ecdcdc8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: ffffffffffffffda RBX: 00000000000163ad RCX: 00007fda6897dff9 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007fda68b37a80 R08: 0000000000000001 R09: 00007fff8ecdd0bf R10: 00007fda68800000 R11: 0000000000000246 R12: 000000000001640b R13: 00007fff8ecdced0 R14: 0000000000000032 R15: ffffffffffffffff Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:file_inode include/linux/fs.h:1124 [inline] RIP: 0010:ovl_is_real_file fs/overlayfs/file.c:100 [inline] RIP: 0010:ovl_real_file_path+0xa5/0x2e0 fs/overlayfs/file.c:118 Code: 03 4d 89 f7 42 80 3c 30 00 74 08 4c 89 ef e8 62 1f e0 fe 4c 89 64 24 10 49 8b 45 00 49 89 c4 4c 8d 70 68 4c 89 f0 48 c1 e8 03 <42> 80 3c 38 00 74 08 4c 89 f7 e8 3c 1f e0 fe 49 8b 1e 48 83 c5 68 RSP: 0018:ffffc9000496fc68 EFLAGS: 00010202 RAX: 000000000000000d RBX: 1ffff9200092dfa1 RCX: ffff888025df0000 RDX: 0000000000000000 RSI: ffffc9000496fd00 RDI: ffff888027370000 RBP: ffff88807e1a6d38 R08: ffffffff831d7a69 R09: 0000000000000000 R10: ffffc9000496fc20 R11: fffff5200092df86 R12: 0000000000000000 R13: ffff88806af0e000 R14: 0000000000000068 R15: dffffc0000000000 FS: 00005555629ee500(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055a6e9d8ea18 CR3: 0000000030398000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 03 4d 89 add -0x77(%rbp),%ecx 3: f7 42 80 3c 30 00 74 testl $0x7400303c,-0x80(%rdx) a: 08 4c 89 ef or %cl,-0x11(%rcx,%rcx,4) e: e8 62 1f e0 fe call 0xfee01f75 13: 4c 89 64 24 10 mov %r12,0x10(%rsp) 18: 49 8b 45 00 mov 0x0(%r13),%rax 1c: 49 89 c4 mov %rax,%r12 1f: 4c 8d 70 68 lea 0x68(%rax),%r14 23: 4c 89 f0 mov %r14,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 4c 89 f7 mov %r14,%rdi 34: e8 3c 1f e0 fe call 0xfee01f75 39: 49 8b 1e mov (%r14),%rbx 3c: 48 83 c5 68 add $0x68,%rbp