------------[ cut here ]------------
WARNING: CPU: 0 PID: 5718 at security/landlock/fs.c:687 get_mode_access security/landlock/fs.c:669 [inline]
WARNING: CPU: 0 PID: 5718 at security/landlock/fs.c:687 current_check_refer_path+0x394/0xaf0 security/landlock/fs.c:846
Modules linked in:
CPU: 0 PID: 5718 Comm: syz.5.373 Not tainted 6.1.118-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/30/2024
RIP: 0010:get_mode_access security/landlock/fs.c:687 [inline]
RIP: 0010:current_check_refer_path+0x394/0xaf0 security/landlock/fs.c:846
Code: 0f a3 de 40 0f 92 c6 31 ff e8 48 95 8c fd 41 0f a3 de 72 22 e8 5d 92 8c fd 49 be 00 00 00 00 00 fc ff df eb 05 e8 4c 92 8c fd <0f> 0b c7 44 24 10 00 00 00 00 eb 32 e8 3b 92 8c fd 48 8d 9c 1b a0
RSP: 0018:ffffc90005e97a80 EFLAGS: 00010287
RAX: ffffffff83fdf9a4 RBX: 000000000000ffff RCX: 0000000000080000
RDX: ffffc90003281000 RSI: 000000000000280b RDI: 000000000000280c
RBP: ffffc90005e97c00 R08: ffffffff83fdf965 R09: ffffc90005e97b60
R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff888059e089a8
R13: ffff888072087318 R14: dffffc0000000000 R15: 1ffff1100e410e63
FS:  00007f72298bb6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000055f0a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 security_path_rename+0x16f/0x210 security/security.c:1217
 do_renameat2+0x991/0x1440 fs/namei.c:5014
 __do_sys_renameat2 fs/namei.c:5060 [inline]
 __se_sys_renameat2 fs/namei.c:5057 [inline]
 __x64_sys_renameat2+0xce/0xe0 fs/namei.c:5057
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f7228b7e819
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:00007f72298bb038 EFLAGS: 00000246 ORIG_RAX: 000000000000013c
RAX: ffffffffffffffda RBX: 00007f7228d35fa0 RCX: 00007f7228b7e819
RDX: ffffffffffffff9c RSI: 0000000020000000 RDI: ffffffffffffff9c
RBP: 00007f7228bf175e R08: 0000000000000002 R09: 0000000000000000
R10: 00000000200005c0 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f7228d35fa0 R15: 00007ffe6538a558
 </TASK>