------------[ cut here ]------------ WARNING: CPU: 1 PID: 7367 at security/landlock/fs.c:955 current_check_refer_path+0x410/0xa1c security/landlock/fs.c:1111 Modules linked in: CPU: 1 UID: 0 PID: 7367 Comm: syz.1.150 Not tainted 6.12.0-syzkaller-g7b1d1d4cfac0 #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+0x410/0xa1c security/landlock/fs.c:1111 lr : get_mode_access security/landlock/fs.c:937 [inline] lr : current_check_refer_path+0x40c/0xa1c security/landlock/fs.c:1111 sp : ffff8000a1aa7840 x29: ffff8000a1aa7980 x28: 1fffe0001b683e63 x27: 000000000000ffff x26: ffff0000c5cd5e00 x25: ffff700014354f14 x24: ffff8000a1aa7c20 x23: dfff800000000000 x22: 0000000000000000 x21: ffff0000db41f318 x20: 0000000000000000 x19: ffff0000c5cd5e00 x18: ffff8000a1aa7620 x17: 000000000002f77b x16: ffff80008b3edfc8 x15: 0000000000000004 x14: 1ffff00014354f24 x13: 0000000000000000 x12: 0000000000000000 x11: ffff700014354f28 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000cf839e40 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000020 x4 : 0000000000000000 x3 : 0000000000000020 x2 : 0000000000000000 x1 : 000000000000ffff x0 : 000000000000d000 Call trace: current_check_refer_path+0x410/0xa1c security/landlock/fs.c:1111 (P) get_mode_access security/landlock/fs.c:937 [inline] (L) current_check_refer_path+0x40c/0xa1c security/landlock/fs.c:1111 (L) hook_path_rename+0x4c/0x60 security/landlock/fs.c:1403 security_path_rename+0x1dc/0x464 security/security.c:2022 do_renameat2+0x724/0xe40 fs/namei.c:5157 __do_sys_renameat2 fs/namei.c:5204 [inline] __se_sys_renameat2 fs/namei.c:5201 [inline] __arm64_sys_renameat2+0xd8/0xf4 fs/namei.c:5201 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 6836 hardirqs last enabled at (6835): [] seqcount_lockdep_reader_access include/linux/seqlock.h:74 [inline] hardirqs last enabled at (6835): [] read_seqbegin+0x80/0x164 include/linux/seqlock.h:757 hardirqs last disabled at (6836): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:488 softirqs last enabled at (6760): [] local_bh_enable+0x10/0x34 include/linux/bottom_half.h:32 softirqs last disabled at (6758): [] local_bh_disable+0x10/0x34 include/linux/bottom_half.h:19 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 1 PID: 7367 at security/landlock/fs.c:955 current_check_refer_path+0x4a4/0xa1c security/landlock/fs.c:1116 Modules linked in: CPU: 1 UID: 0 PID: 7367 Comm: syz.1.150 Tainted: G W 6.12.0-syzkaller-g7b1d1d4cfac0 #0 Tainted: [W]=WARN 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+0x4a4/0xa1c security/landlock/fs.c:1116 lr : get_mode_access security/landlock/fs.c:937 [inline] lr : current_check_refer_path+0x4a0/0xa1c security/landlock/fs.c:1116 sp : ffff8000a1aa7840 x29: ffff8000a1aa7980 x28: 1fffe0001b683e63 x27: 000000000000ffff x26: ffff0000c5cd5e00 x25: ffff700014354f14 x24: ffff8000a1aa7c20 x23: dfff800000000000 x22: 0000000000000000 x21: ffff0000db41f318 x20: 0000000000000000 x19: 0000000000000000 x18: ffff8000a1aa7620 x17: 000000000002f77b x16: ffff80008b3edfc8 x15: 0000000000000004 x14: 1ffff00014354f24 x13: 0000000000000000 x12: 0000000000000000 x11: ffff700014354f28 x10: 0000000000ff0100 x9 : 0000000000000000 x8 : ffff0000cf839e40 x7 : 0000000000000000 x6 : 0000000000000000 x5 : 0000000000000020 x4 : 0000000000000000 x3 : 0000000000000020 x2 : 0000000000000000 x1 : 000000000000ffff x0 : 000000000000d000 Call trace: current_check_refer_path+0x4a4/0xa1c security/landlock/fs.c:1116 (P) get_mode_access security/landlock/fs.c:937 [inline] (L) current_check_refer_path+0x4a0/0xa1c security/landlock/fs.c:1116 (L) hook_path_rename+0x4c/0x60 security/landlock/fs.c:1403 security_path_rename+0x1dc/0x464 security/security.c:2022 do_renameat2+0x724/0xe40 fs/namei.c:5157 __do_sys_renameat2 fs/namei.c:5204 [inline] __se_sys_renameat2 fs/namei.c:5201 [inline] __arm64_sys_renameat2+0xd8/0xf4 fs/namei.c:5201 __invoke_syscall arch/arm64/kernel/syscall.c:35 [inline] invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:49 el0_svc_common+0x130/0x23c arch/arm64/kernel/syscall.c:132 do_el0_svc+0x48/0x58 arch/arm64/kernel/syscall.c:151 el0_svc+0x54/0x168 arch/arm64/kernel/entry-common.c:744 el0t_64_sync_handler+0x84/0x108 arch/arm64/kernel/entry-common.c:762 el0t_64_sync+0x198/0x19c arch/arm64/kernel/entry.S:600 irq event stamp: 7092 hardirqs last enabled at (7091): [] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:85 [inline] hardirqs last enabled at (7091): [] exit_to_kernel_mode+0xdc/0x10c arch/arm64/kernel/entry-common.c:95 hardirqs last disabled at (7092): [] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:488 softirqs last enabled at (7086): [] softirq_handle_end kernel/softirq.c:400 [inline] softirqs last enabled at (7086): [] handle_softirqs+0xa38/0xbf8 kernel/softirq.c:582 softirqs last disabled at (6839): [] __do_softirq+0x14/0x20 kernel/softirq.c:588 ---[ end trace 0000000000000000 ]---