------------[ cut here ]------------ WARNING: CPU: 1 PID: 5356 at security/landlock/fs.c:576 hook_path_rename+0x200/0x2fc security/landlock/fs.c:637 Modules linked in: CPU: 1 PID: 5356 Comm: syz.1.345 Not tainted 5.15.171-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 : 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 : ffff800023477980 x29: ffff800023477980 x28: ffff800023477c60 x27: dfff800000000000 x26: ffff800023477c00 x25: dfff800000000000 x24: 0000000000000020 x23: 0000000000000020 x22: 0000000000000020 x21: 000000000000ffff x20: ffff0000e9e6fe00 x19: ffff800023477c00 x18: 0000000000000001 x17: 0000000000000002 x16: ffff80000824ebd0 x15: 00000000ffffffff x14: 1ffff0000295a06a x13: dfff800000000000 x12: 0000000000040000 x11: 0000000000021489 x10: ffff80002100a000 x9 : 000000000002148a x8 : 0000000000000000 x7 : ffff8000089e4aa4 x6 : 0000000000000000 x5 : 0000000000000000 x4 : 0000000000000002 x3 : ffff0000dc173be8 x2 : ffff800023477be0 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: 7792 hardirqs last enabled at (7791): [] __up_console_sem+0xb4/0x100 kernel/printk/printk.c:257 hardirqs last disabled at (7792): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:396 softirqs last enabled at (7272): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:31 softirqs last disabled at (7270): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:18 ---[ end trace d91825d923573aed ]---