------------[ cut here ]------------ WARNING: CPU: 1 PID: 4561 at security/landlock/fs.c:687 current_check_refer_path+0x274/0x914 security/landlock/fs.c:841 Modules linked in: CPU: 1 PID: 4561 Comm: syz.3.67 Not tainted 6.1.119-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+0x274/0x914 security/landlock/fs.c:841 lr : get_mode_access security/landlock/fs.c:669 [inline] lr : current_check_refer_path+0x270/0x914 security/landlock/fs.c:841 sp : ffff800021c07820 x29: ffff800021c07960 x28: 000000000000ffff x27: 1fffe0001de055d6 x26: 0000000000000001 x25: 0000000000000001 x24: 0000000000000000 x23: ffff0000ef02aeb0 x22: ffff700004380f10 x21: ffff0000d1db94a8 x20: dfff800000000000 x19: ffff0000d1db9400 x18: ffff800021c07020 x17: 0000000000000000 x16: ffff800012272dc0 x15: 0000000000000002 x14: 1ffff00002b500b2 x13: dfff800000000000 x12: 0000000000080000 x11: 00000000000166a7 x10: ffff80002681b000 x9 : ffff80000a811c7c x8 : 00000000000166a8 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000010 x2 : 000000000000000c x1 : 000000000000ffff x0 : 000000000000d000 Call trace: current_check_refer_path+0x274/0x914 security/landlock/fs.c:841 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: 7650 hardirqs last enabled at (7649): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:261 hardirqs last disabled at (7650): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405 softirqs last enabled at (7468): [] softirq_handle_end kernel/softirq.c:414 [inline] softirqs last enabled at (7468): [] handle_softirqs+0xb84/0xd58 kernel/softirq.c:599 softirqs last disabled at (7381): [] __do_softirq+0x14/0x20 kernel/softirq.c:605 ---[ end trace 0000000000000000 ]---