------------[ cut here ]------------ WARNING: CPU: 1 PID: 8385 at security/landlock/fs.c:955 current_check_refer_path+0x4a4/0xa1c security/landlock/fs.c:1116 Modules linked in: CPU: 1 UID: 0 PID: 8385 Comm: syz.4.278 Not tainted 6.13.0-rc3-syzkaller-g573067a5a685 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : current_check_refer_path+0x4a4/0xa1c security/landlock/fs.c:1116 lr : get_mode_access security/landlock/fs.c:937 [inline] lr : current_check_refer_path+0x4a0/0xa1c security/landlock/fs.c:1116 sp : ffff80009dc27840 x29: ffff80009dc27980 x28: 1fffe00021de8949 x27: 000000000000ffff x26: ffff0000e3129e00 x25: ffff700013b84f14 x24: ffff80009dc27c20 x23: dfff800000000000 x22: 0000000000000000 x21: ffff00010ef44a48 x20: ffff0000e3129eb4 x19: 0000000000000000 x18: 0000000000000008 x17: 0000000000000000 x16: ffff80008b5fea08 x15: 0000000000000004 x14: 1ffff00013b84f24 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000080000 x10: 0000000000001b9c x9 : ffff8000a6934000 x8 : 0000000000001b9d x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000020 x2 : 0000000000000000 x1 : 000000000000ffff x0 : 000000000000d000 Call trace: current_check_refer_path+0x4a4/0xa1c security/landlock/fs.c:1116 (P) hook_path_rename+0x4c/0x60 security/landlock/fs.c:1403 security_path_rename+0x1dc/0x464 security/security.c:2021 do_renameat2+0x724/0xe40 fs/namei.c:5211 __do_sys_renameat2 fs/namei.c:5258 [inline] __se_sys_renameat2 fs/namei.c:5255 [inline] __arm64_sys_renameat2+0xd8/0xf4 fs/namei.c:5255 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 21858 hardirqs last enabled at (21857): [] mod_objcg_state+0x304/0x4ac mm/memcontrol.c:2765 hardirqs last disabled at (21858): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:488 softirqs last enabled at (21788): [] softirq_handle_end kernel/softirq.c:407 [inline] softirqs last enabled at (21788): [] handle_softirqs+0xb44/0xd34 kernel/softirq.c:589 softirqs last disabled at (20667): [] __do_softirq+0x14/0x20 kernel/softirq.c:595 ---[ end trace 0000000000000000 ]---