------------[ cut here ]------------ WARNING: CPU: 1 PID: 4623 at security/landlock/fs.c:576 get_mode_access security/landlock/fs.c:558 [inline] WARNING: CPU: 1 PID: 4623 at security/landlock/fs.c:576 hook_path_rename+0x242/0x340 security/landlock/fs.c:637 Modules linked in: CPU: 1 PID: 4623 Comm: syz.4.96 Not tainted 5.15.171-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 7f 95 b0 fd 0f a3 dd 72 12 e8 95 92 b0 fd eb 05 e8 8e 92 b0 fd <0f> 0b 31 c0 eb 24 e8 83 92 b0 fd 48 8d 9c 1b c0 db d3 8a 48 89 d8 RSP: 0018:ffffc90003fe7bc8 EFLAGS: 00010287 RAX: ffffffff83cfe122 RBX: 000000000000ffff RCX: 0000000000040000 RDX: ffffc90005491000 RSI: 000000000000e904 RDI: 000000000000e905 RBP: 0000000000000020 R08: ffffffff83cfe0f0 R09: ffffed100e86883f R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff8880175c5208 R14: 0000000000000020 R15: ffff8880591ee100 FS: 00007fa21d4ba6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f24919d0000 CR3: 000000006092b000 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:0x7fa21f042719 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:00007fa21d4ba038 EFLAGS: 00000246 ORIG_RAX: 000000000000013c RAX: ffffffffffffffda RBX: 00007fa21f1f9f80 RCX: 00007fa21f042719 RDX: ffffffffffffff9c RSI: 0000000020000780 RDI: ffffffffffffff9c RBP: 00007fa21f0b539e R08: 0000000000000002 R09: 0000000000000000 R10: 00000000200007c0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa21f1f9f80 R15: 00007ffd467618f8