------------[ cut here ]------------ WARNING: CPU: 0 PID: 5332 at security/landlock/fs.c:971 get_mode_access security/landlock/fs.c:971 [inline] WARNING: CPU: 0 PID: 5332 at security/landlock/fs.c:971 current_check_refer_path+0x71b/0xdd0 security/landlock/fs.c:1132 Modules linked in: CPU: 0 UID: 0 PID: 5332 Comm: syz.0.0 Not tainted 6.12.0-rc7-syzkaller-00012-g3022e9d00ebe #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:get_mode_access security/landlock/fs.c:971 [inline] RIP: 0010:current_check_refer_path+0x71b/0xdd0 security/landlock/fs.c:1132 Code: b8 00 08 89 04 24 eb 2c e8 92 63 17 fd 66 b8 40 00 89 04 24 eb 1e e8 84 63 17 fd 66 b8 00 10 89 04 24 eb 10 e8 76 63 17 fd 90 <0f> 0b 90 c7 04 24 00 00 00 00 8b 44 24 04 84 c0 0f 84 d6 00 00 00 RSP: 0018:ffffc9000d447a60 EFLAGS: 00010287 RAX: ffffffff847d769a RBX: 000000000000000f RCX: 0000000000040000 RDX: ffffc9000de7a000 RSI: 00000000000004fe RDI: 00000000000004ff RBP: ffffc9000d447bb8 R08: 0000000000000005 R09: ffffffff847d7561 R10: 0000000000000008 R11: ffff888000a9a440 R12: ffff8880450ef8f8 R13: ffff8880450efbe8 R14: 1ffff11008a1df7d R15: 0000000000580000 FS: 00007fef43ad06c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcfb5a12440 CR3: 0000000040d26000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: security_path_rename+0x22a/0x4e0 security/security.c:2022 do_renameat2+0x94a/0x13f0 fs/namei.c:5157 __do_sys_renameat2 fs/namei.c:5204 [inline] __se_sys_renameat2 fs/namei.c:5201 [inline] __x64_sys_renameat2+0xce/0xe0 fs/namei.c:5201 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:0x7fef42d7e719 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:00007fef43ad0038 EFLAGS: 00000246 ORIG_RAX: 000000000000013c RAX: ffffffffffffffda RBX: 00007fef42f36130 RCX: 00007fef42d7e719 RDX: ffffffffffffff9c RSI: 0000000020000a00 RDI: ffffffffffffff9c RBP: 00007fef42df1616 R08: 0000000000000002 R09: 0000000000000000 R10: 0000000020000600 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fef42f36130 R15: 00007ffffecfae38