------------[ cut here ]------------ WARNING: CPU: 0 PID: 4813 at security/landlock/fs.c:687 current_check_refer_path+0x31c/0x914 security/landlock/fs.c:846 Modules linked in: CPU: 0 PID: 4813 Comm: syz.1.122 Not tainted 6.1.118-syzkaller #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+0x31c/0x914 security/landlock/fs.c:846 lr : get_mode_access security/landlock/fs.c:669 [inline] lr : current_check_refer_path+0x318/0x914 security/landlock/fs.c:846 sp : ffff800021377820 x29: ffff800021377960 x28: 000000000000ffff x27: 1fffe0001bb7e7ac x26: 0000000000000000 x25: 0000000000000001 x24: 0000000000000100 x23: ffff0000ddbf3d60 x22: ffff70000426ef10 x21: ffff0000d487c0a8 x20: dfff800000000000 x19: 0000000000000008 x18: ffff800021377580 x17: ffff800018aab000 x16: ffff8000121e3a40 x15: ffff80001858bf80 x14: 1ffff00002b3a0b0 x13: dfff800000000000 x12: 0000000000080000 x11: 000000000000359f x10: ffff800021ea9000 x9 : ffff80000a7860dc x8 : 00000000000035a0 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000010 x2 : 000000000000000c x1 : 000000000000ffff x0 : 000000000000d000 Call trace: current_check_refer_path+0x31c/0x914 security/landlock/fs.c:846 hook_path_rename+0x4c/0x60 security/landlock/fs.c:1113 security_path_rename+0x154/0x1f0 security/security.c:1217 do_renameat2+0x754/0xe64 fs/namei.c:5014 __do_sys_renameat2 fs/namei.c:5060 [inline] __se_sys_renameat2 fs/namei.c:5057 [inline] __arm64_sys_renameat2+0xe0/0xfc fs/namei.c:5057 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585 irq event stamp: 7998 hardirqs last enabled at (7997): [] seqcount_lockdep_reader_access include/linux/seqlock.h:104 [inline] hardirqs last enabled at (7997): [] read_seqbegin+0xe8/0x178 include/linux/seqlock.h:836 hardirqs last disabled at (7998): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (7952): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (7950): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]---