------------[ cut here ]------------ WARNING: CPU: 0 PID: 7356 at security/landlock/fs.c:576 get_mode_access security/landlock/fs.c:558 [inline] WARNING: CPU: 0 PID: 7356 at security/landlock/fs.c:576 hook_path_rename+0x242/0x340 security/landlock/fs.c:637 Modules linked in: CPU: 0 PID: 7356 Comm: syz.4.883 Not tainted 5.15.169-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 af ac b0 fd 0f a3 dd 72 12 e8 c5 a9 b0 fd eb 05 e8 be a9 b0 fd <0f> 0b 31 c0 eb 24 e8 b3 a9 b0 fd 48 8d 9c 1b 40 db d3 8a 48 89 d8 RSP: 0018:ffffc90003127bc8 EFLAGS: 00010283 RAX: ffffffff83cfca22 RBX: 000000000000ffff RCX: 0000000000040000 RDX: ffffc900057e3000 RSI: 000000000000cbc1 RDI: 000000000000cbc2 RBP: 0000000000000020 R08: ffffffff83cfc9f0 R09: ffffed100eb7e43e R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff888062c2b380 R14: 0000000000000020 R15: ffff88802ad45300 FS: 00007ff6904496c0(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056477dc15160 CR3: 000000001b383000 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:0x7ff691fd1719 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:00007ff690449038 EFLAGS: 00000246 ORIG_RAX: 000000000000013c RAX: ffffffffffffffda RBX: 00007ff692188f80 RCX: 00007ff691fd1719 RDX: ffffffffffffff9c RSI: 0000000020000780 RDI: ffffffffffffff9c RBP: 00007ff69204432e R08: 0000000000000002 R09: 0000000000000000 R10: 00000000200007c0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ff692188f80 R15: 00007ffcc0a74658