------------[ cut here ]------------ WARNING: CPU: 1 PID: 9005 at security/landlock/fs.c:954 get_mode_access security/landlock/fs.c:954 [inline] WARNING: CPU: 1 PID: 9005 at security/landlock/fs.c:954 current_check_refer_path+0xc35/0xee0 security/landlock/fs.c:1110 Modules linked in: CPU: 1 UID: 0 PID: 9005 Comm: syz.1.846 Not tainted 6.12.0-rc6-next-20241108-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:954 [inline] RIP: 0010:current_check_refer_path+0xc35/0xee0 security/landlock/fs.c:1110 Code: e8 a0 90 21 fd 66 b8 40 00 89 44 24 18 e9 58 fa ff ff e8 8e 90 21 fd 66 b8 00 10 89 44 24 18 e9 46 fa ff ff e8 7c 90 21 fd 90 <0f> 0b 90 c7 44 24 18 00 00 00 00 e9 30 fa ff ff e8 66 90 21 fd eb RSP: 0018:ffffc9001a4afa40 EFLAGS: 00010283 RAX: ffffffff847deb94 RBX: 000000000000000f RCX: 0000000000040000 RDX: ffffc9000468a000 RSI: 00000000000009f7 RDI: 00000000000009f8 RBP: ffffc9001a4afbb8 R08: 0000000000000005 R09: ffffffff847de582 R10: 0000000000000008 R11: ffff888034d71e00 R12: ffff888079e1b028 R13: ffff88807faa3800 R14: 1ffff1100f39f34e R15: ffff888079cf9a70 FS: 00007f4bacd3c6c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fe2b807f000 CR3: 0000000063286000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: security_path_rename+0x22a/0x4e0 security/security.c:2021 do_renameat2+0x94a/0x13f0 fs/namei.c:5211 __do_sys_renameat2 fs/namei.c:5258 [inline] __se_sys_renameat2 fs/namei.c:5255 [inline] __x64_sys_renameat2+0xce/0xe0 fs/namei.c:5255 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f4babf7e719 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:00007f4bacd3c038 EFLAGS: 00000246 ORIG_RAX: 000000000000013c RAX: ffffffffffffffda RBX: 00007f4bac135f80 RCX: 00007f4babf7e719 RDX: ffffffffffffff9c RSI: 0000000020000780 RDI: ffffffffffffff9c RBP: 00007f4babff139e R08: 0000000000000002 R09: 0000000000000000 R10: 00000000200007c0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f4bac135f80 R15: 00007fff8e00d9b8