RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140
RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000003731
R10: 000000000000001c R11: 0000000000000246 R12: 00007fff8a94880c
R13: 0000000000000003 R14: 431bde82d7b634db R15: 00007fff8a948840
</TASK>
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4168 at fs/overlayfs/copy_up.c:371 ovl_encode_real_fh+0x2d6/0x400
Modules linked in:
CPU: 1 PID: 4168 Comm: syz-executor382 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:ffffc9000265f560 EFLAGS: 00010293
RAX: ffffffff82e00826 RBX: 1ffff920004cbeb4 RCX: ffff88802900bb80
RDX: 0000000000000000 RSI: 00000000000000ff RDI: 00000000000000ff
RBP: ffffc9000265f610 R08: ffffffff82e006c8 R09: fffffbfff1c14b16
R10: 0000000000000000 R11: dffffc0000000001 R12: 00000000000000ff
R13: 0000000000000080 R14: 1ffff920004cbeb0 R15: ffff88801b3b9c00
FS: 000055558749b480(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557507298058 CR3: 000000006ebf6000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
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:0x7f923ec31dd9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 01 1b 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff8a9487b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd
RAX: ffffffffffffffda RBX: 00007fff8a9487c0 RCX: 00007f923ec31dd9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140
RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000003731
R10: 000000000000001c R11: 0000000000000246 R12: 00007fff8a94880c
R13: 0000000000000003 R14: 431bde82d7b634db R15: 00007fff8a948840
</TASK>