------------[ cut here ]------------ WARNING: CPU: 1 PID: 10238 at security/landlock/fs.c:955 get_mode_access security/landlock/fs.c:955 [inline] WARNING: CPU: 1 PID: 10238 at security/landlock/fs.c:955 current_check_refer_path+0x80f/0xee0 security/landlock/fs.c:1116 Modules linked in: CPU: 1 UID: 0 PID: 10238 Comm: syz.7.775 Not tainted 6.12.0-syzkaller-09435-g2c22dc1ee3a1 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:get_mode_access security/landlock/fs.c:955 [inline] RIP: 0010:current_check_refer_path+0x80f/0xee0 security/landlock/fs.c:1116 Code: 89 44 24 20 eb 2f e8 e0 ea 15 fd 66 b8 40 00 89 44 24 20 eb 20 e8 d1 ea 15 fd 66 b8 00 10 89 44 24 20 eb 11 e8 c2 ea 15 fd 90 <0f> 0b 90 c7 44 24 20 00 00 00 00 8b 44 24 28 84 c0 0f 84 d2 00 00 RSP: 0018:ffffc90003e7fbe0 EFLAGS: 00010287 RAX: ffffffff847ff25e RBX: 000000000000000f RCX: 0000000000080000 RDX: ffffc9000cf9c000 RSI: 000000000000061c RDI: 000000000000061d RBP: ffffc90003e7fd58 R08: 0000000000000005 R09: ffffffff847ff11e R10: 0000000000000008 R11: ffff88802e785a00 R12: ffffc90003e7fcc0 R13: ffff88803514b400 R14: 1ffff1100b2084eb R15: ffff888059042758 FS: 00007fa7d89b26c0(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c39ffe3 CR3: 00000000272bc000 CR4: 0000000000350ef0 Call Trace: security_path_link+0x123/0x350 security/security.c:1997 do_linkat+0x288/0x6f0 fs/namei.c:4860 __do_sys_link fs/namei.c:4897 [inline] __se_sys_link fs/namei.c:4895 [inline] __x64_sys_link+0x82/0x90 fs/namei.c:4895 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:0x7fa7d7b7e819 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:00007fa7d89b2038 EFLAGS: 00000246 ORIG_RAX: 0000000000000056 RAX: ffffffffffffffda RBX: 00007fa7d7d35fa0 RCX: 00007fa7d7b7e819 RDX: 0000000000000000 RSI: 0000000020000280 RDI: 0000000020000040 RBP: 00007fa7d7bf175e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa7d7d35fa0 R15: 00007ffcd1b0bb18