------------[ cut here ]------------ WARNING: CPU: 1 PID: 5125 at security/landlock/fs.c:576 hook_path_rename+0x200/0x2fc security/landlock/fs.c:637 Modules linked in: CPU: 1 PID: 5125 Comm: syz.1.251 Not tainted 5.15.171-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : hook_path_rename+0x200/0x2fc security/landlock/fs.c:637 lr : get_mode_access security/landlock/fs.c:558 [inline] lr : hook_path_rename+0x1fc/0x2fc security/landlock/fs.c:637 sp : ffff800020727980 x29: ffff800020727980 x28: ffff800020727c60 x27: dfff800000000000 x26: ffff800020727c00 x25: dfff800000000000 x24: 0000000000000020 x23: 0000000000000020 x22: 0000000000000020 x21: 000000000000ffff x20: ffff0000cfa89800 x19: ffff800020727c00 x18: ffff800020726e20 x17: 1fffe0003683598e x16: ffff80000824ebd0 x15: 000000000002fef9 x14: 1ffff0000295a06a x13: dfff800000000000 x12: 0000000000040000 x11: 000000000003ffff x10: ffff800020ffc000 x9 : 0000000000040000 x8 : 0000000000000000 x7 : ffff8000089e4aa4 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000002 x3 : ffff0000e64afd60 x2 : ffff800020727be0 x1 : 000000000000ffff x0 : 000000000000d000 Call trace: hook_path_rename+0x200/0x2fc security/landlock/fs.c:637 security_path_rename+0x168/0x274 security/security.c:1199 do_renameat2+0x75c/0x10c0 fs/namei.c:4972 __do_sys_renameat2 fs/namei.c:5018 [inline] __se_sys_renameat2 fs/namei.c:5015 [inline] __arm64_sys_renameat2+0xe0/0xfc fs/namei.c:5015 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:608 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:626 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584 irq event stamp: 8686 hardirqs last enabled at (8685): [] raw_spin_rq_unlock_irq kernel/sched/sched.h:1338 [inline] hardirqs last enabled at (8685): [] finish_lock_switch+0xbc/0x1e8 kernel/sched/core.c:4781 hardirqs last disabled at (8686): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (8480): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (8478): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace 40c43b9bdc4c905a ]---