------------[ cut here ]------------ WARNING: CPU: 1 PID: 4302 at security/landlock/fs.c:576 get_mode_access security/landlock/fs.c:558 [inline] WARNING: CPU: 1 PID: 4302 at security/landlock/fs.c:576 hook_path_rename+0x242/0x340 security/landlock/fs.c:637 Modules linked in: CPU: 1 PID: 4302 Comm: syz.0.17 Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:get_mode_access security/landlock/fs.c:576 [inline] RIP: 0010:hook_path_rename+0x242/0x340 security/landlock/fs.c:637 Code: 48 c1 eb 0c bd 57 15 00 00 31 f6 0f a3 dd 40 0f 92 c6 31 ff e8 4f 54 a6 fd 0f a3 dd 72 12 e8 65 51 a6 fd eb 05 e8 5e 51 a6 fd <0f> 0b 31 c0 eb 24 e8 53 51 a6 fd 48 8d 9c 1b c0 c3 f4 8a 48 89 d8 RSP: 0000:ffffc900032c7bc8 EFLAGS: 00010283 RAX: ffffffff83da2242 RBX: 000000000000ffff RCX: 0000000000080000 RDX: ffffc90003dd3000 RSI: 0000000000009388 RDI: 0000000000009389 RBP: 0000000000000020 R08: ffffffff83da2210 R09: ffffed100c07583f R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff888074a83380 R14: 0000000000000020 R15: ffff8880250b5500 FS: 00007f074190f6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c29daed CR3: 0000000075f62000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: security_path_rename+0x197/0x2a0 security/security.c:1199 do_renameat2+0x9b6/0x1700 fs/namei.c:4972 __do_sys_renameat2 fs/namei.c:5018 [inline] __se_sys_renameat2 fs/namei.c:5015 [inline] __x64_sys_renameat2+0xce/0xe0 fs/namei.c:5015 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:0x7f0743a99809 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:00007f074190f058 EFLAGS: 00000246 ORIG_RAX: 000000000000013c RAX: ffffffffffffffda RBX: 00007f0743c5efa0 RCX: 00007f0743a99809 RDX: ffffffffffffff9c RSI: 0000000020000780 RDI: ffffffffffffff9c RBP: 00007f0743b0c93e R08: 0000000000000002 R09: 0000000000000000 R10: 00000000200007c0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f0743c5efa0 R15: 00007ffd840b3eb8