------------[ cut here ]------------ WARNING: CPU: 1 PID: 7482 at security/landlock/fs.c:971 current_check_refer_path+0x4e0/0xaa8 security/landlock/fs.c:1132 Modules linked in: CPU: 1 PID: 7482 Comm: syz.3.314 Not tainted 6.10.0-rc6-syzkaller-g8a03d70c27fc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : current_check_refer_path+0x4e0/0xaa8 security/landlock/fs.c:1132 lr : get_mode_access security/landlock/fs.c:953 [inline] lr : current_check_refer_path+0x4dc/0xaa8 security/landlock/fs.c:1132 sp : ffff8000a0677840 x29: ffff8000a0677980 x28: ffff8000a06778e0 x27: 0000000000000001 x26: 1fffe0001c06d48d x25: ffff0000c8d93900 x24: ffff7000140cef14 x23: 000000000000f1ed x22: dfff800000000000 x21: ffff0000e036a468 x20: 0000000000000000 x19: 0000000000001fff x18: 0000000000000000 x17: 0000000000000000 x16: ffff80008afaca80 x15: 0000000000000004 x14: 1ffff000140cef24 x13: 0000000000000000 x12: 0000000000000000 x11: 0000000000040000 x10: 00000000000004e1 x9 : ffff8000a19ca000 x8 : 00000000000004e2 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000020 x2 : 0000000000000000 x1 : 000000000000f1ed x0 : 000000000000d000 Call trace: current_check_refer_path+0x4e0/0xaa8 security/landlock/fs.c:1132 hook_path_rename+0x4c/0x60 security/landlock/fs.c:1416 security_path_rename+0x154/0x1f0 security/security.c:1918 do_renameat2+0x724/0xe40 fs/namei.c:5031 __do_sys_renameat2 fs/namei.c:5078 [inline] __se_sys_renameat2 fs/namei.c:5075 [inline] __arm64_sys_renameat2+0xe0/0xfc fs/namei.c:5075 __invoke_syscall arch/arm64/kernel/syscall.c:34 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:48 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:131 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:150 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:712 el0t_64_sync_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730 el0t_64_sync+0x190/0x194 arch/arm64/kernel/entry.S:598 irq event stamp: 106736 hardirqs last enabled at (106735): [] seqcount_lockdep_reader_access include/linux/seqlock.h:74 [inline] hardirqs last enabled at (106735): [] read_seqbegin+0x80/0x144 include/linux/seqlock.h:772 hardirqs last disabled at (106736): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:470 softirqs last enabled at (106718): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (106716): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---