------------[ cut here ]------------ WARNING: CPU: 1 PID: 4526 at security/landlock/fs.c:576 get_mode_access security/landlock/fs.c:558 [inline] WARNING: CPU: 1 PID: 4526 at security/landlock/fs.c:576 hook_path_rename+0x242/0x340 security/landlock/fs.c:637 Modules linked in: CPU: 1 PID: 4526 Comm: syz.1.56 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: 0018:ffffc90003e2fbc8 EFLAGS: 00010283 RAX: ffffffff83da2242 RBX: 000000000000ffff RCX: 0000000000080000 RDX: ffffc900055f9000 RSI: 000000000000a1d2 RDI: 000000000000a1d3 RBP: 0000000000000020 R08: ffffffff83da2210 R09: ffffed100becb03d R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff888075a401e0 R14: 0000000000000020 R15: ffff88805e0e2900 FS: 00007f567d19a6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc84376ed8 CR3: 0000000066707000 CR4: 00000000003506e0 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:0x7f567f324809 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:00007f567d19a058 EFLAGS: 00000246 ORIG_RAX: 000000000000013c RAX: ffffffffffffffda RBX: 00007f567f4e9fa0 RCX: 00007f567f324809 RDX: ffffffffffffff9c RSI: 0000000020000780 RDI: ffffffffffffff9c RBP: 00007f567f39793e R08: 0000000000000002 R09: 0000000000000000 R10: 00000000200007c0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f567f4e9fa0 R15: 00007ffc47b3bde8