RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140 RBP: 00007f4288fe20a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000001c R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000000 R14: 00007f4289f29fa0 R15: 00007ffeed7e3648 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5028 at fs/overlayfs/copy_up.c:371 ovl_encode_real_fh+0x2d6/0x400 Modules linked in: CPU: 0 PID: 5028 Comm: syz.0.18 Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:ovl_encode_real_fh+0x2d6/0x400 fs/overlayfs/copy_up.c:371 Code: 00 4c 89 f8 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 8c 6b a0 fe 0f 0b eb 10 e8 83 6b a0 fe 0f 0b eb 07 e8 7a 6b a0 fe <0f> 0b 4c 89 ff e8 90 a4 e9 fe 49 c7 c7 fb ff ff ff eb 95 89 d1 80 RSP: 0018:ffffc90002faf560 EFLAGS: 00010293 RAX: ffffffff82e00826 RBX: 1ffff920005f5eb4 RCX: ffff88801e691dc0 RDX: 0000000000000000 RSI: 00000000000000ff RDI: 00000000000000ff RBP: ffffc90002faf610 R08: ffffffff82e006c8 R09: fffffbfff1c14b16 R10: 0000000000000000 R11: dffffc0000000001 R12: 00000000000000ff R13: 0000000000000080 R14: 1ffff920005f5eb0 R15: ffff8880252f2400 FS: 00007f4288fe26c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4289d479a0 CR3: 000000007805e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ovl_get_index_name fs/overlayfs/namei.c:654 [inline] ovl_lookup_index+0x6a/0x660 fs/overlayfs/namei.c:703 ovl_lookup+0x1636/0x1f10 fs/overlayfs/namei.c:1052 __lookup_slow+0x275/0x3d0 fs/namei.c:1663 lookup_slow+0x53/0x70 fs/namei.c:1680 walk_component+0x48c/0x610 fs/namei.c:1976 lookup_last fs/namei.c:2431 [inline] path_lookupat+0x16f/0x450 fs/namei.c:2455 filename_lookup+0x230/0x5c0 fs/namei.c:2484 user_path_at_empty+0x40/0x180 fs/namei.c:2883 user_path_at include/linux/namei.h:57 [inline] path_setxattr+0xae/0x2a0 fs/xattr.c:625 __do_sys_lsetxattr fs/xattr.c:653 [inline] __se_sys_lsetxattr fs/xattr.c:649 [inline] __x64_sys_lsetxattr+0xb4/0xd0 fs/xattr.c:649 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f4289d64849 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:00007f4288fe2058 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007f4289f29fa0 RCX: 00007f4289d64849 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140 RBP: 00007f4288fe20a0 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000001c R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000000 R14: 00007f4289f29fa0 R15: 00007ffeed7e3648