overlayfs: failed to resolve './file2/file0': -2 general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 1 PID: 13465 Comm: syz-executor.0 Tainted: G W 5.10.210-syzkaller-00394-g70b6ab09a34b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:dir_rename fs/incfs/vfs.c:1375 [inline] RIP: 0010:dir_rename_wrap+0x1e5/0x570 fs/incfs/vfs.c:85 Code: bb f0 ff ff ff 4c 8b 75 b8 e9 4c 03 00 00 e8 c2 ca 5f ff 31 db 48 83 c3 08 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 ad 4a 9d ff 48 8b 1b 48 8b 45 c8 48 RSP: 0018:ffffc90001927b00 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000008 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90001927b70 R08: ffffffff820ade0a R09: fffff52000324f51 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1102729ec03 R13: ffff88811cb4a330 R14: ffff8881394f6018 R15: ffff8881394f6028 FS: 00007f85727796c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8572758d58 CR3: 000000012ec22000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vfs_rename+0x9fb/0xeb0 fs/namei.c:4474 do_renameat2+0xa56/0x1240 fs/namei.c:4619 __do_sys_renameat2 fs/namei.c:4657 [inline] __se_sys_renameat2 fs/namei.c:4654 [inline] __x64_sys_renameat2+0xdd/0xf0 fs/namei.c:4654 do_syscall_64+0x34/0x70 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f8573a88ee9 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:00007f85727790c8 EFLAGS: 00000246 ORIG_RAX: 000000000000013c RAX: ffffffffffffffda RBX: 00007f8573bb82c0 RCX: 00007f8573a88ee9 RDX: 0000000000000004 RSI: 0000000020000040 RDI: 0000000000000004 RBP: 00007f8573ad549e R08: 0000000000000002 R09: 0000000000000000 R10: 0000000020000080 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f8573bb82c0 R15: 00007ffc46a0ff68 Modules linked in: ---[ end trace fa8f9e829ba43810 ]--- RIP: 0010:dir_rename fs/incfs/vfs.c:1375 [inline] RIP: 0010:dir_rename_wrap+0x1e5/0x570 fs/incfs/vfs.c:85 Code: bb f0 ff ff ff 4c 8b 75 b8 e9 4c 03 00 00 e8 c2 ca 5f ff 31 db 48 83 c3 08 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 ad 4a 9d ff 48 8b 1b 48 8b 45 c8 48 RSP: 0018:ffffc90001927b00 EFLAGS: 00010202 RAX: 0000000000000001 RBX: 0000000000000008 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc90001927b70 R08: ffffffff820ade0a R09: fffff52000324f51 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1102729ec03 R13: ffff88811cb4a330 R14: ffff8881394f6018 R15: ffff8881394f6028 FS: 00007f85727796c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020002000 CR3: 000000012ec22000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: bb f0 ff ff ff mov $0xfffffff0,%ebx 5: 4c 8b 75 b8 mov -0x48(%rbp),%r14 9: e9 4c 03 00 00 jmp 0x35a e: e8 c2 ca 5f ff call 0xff5fcad5 13: 31 db xor %ebx,%ebx 15: 48 83 c3 08 add $0x8,%rbx 19: 48 89 d8 mov %rbx,%rax 1c: 48 c1 e8 03 shr $0x3,%rax 20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx 27: fc ff df * 2a: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction 2e: 74 08 je 0x38 30: 48 89 df mov %rbx,%rdi 33: e8 ad 4a 9d ff call 0xff9d4ae5 38: 48 8b 1b mov (%rbx),%rbx 3b: 48 8b 45 c8 mov -0x38(%rbp),%rax 3f: 48 rex.W