]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64/ptrace: Return early for ptrace_report_syscall_entry() error
authorJinjie Ruan <ruanjinjie@huawei.com>
Mon, 22 Dec 2025 11:47:24 +0000 (19:47 +0800)
committerWill Deacon <will@kernel.org>
Tue, 27 Jan 2026 10:38:36 +0000 (10:38 +0000)
commita3386301667ed03ba9baeb6a2629e726714cc9a7
tree901b68bf38e5dfc562e2b7b907ac6cbe82fc8ce4
parent741a9000173a036526eb2374e1ba34c466754f1c
arm64/ptrace: Return early for ptrace_report_syscall_entry() error

The generic entry abort the syscall_trace_enter() sequence if
ptrace_report_syscall_entry() errors out, but arm64 not.

When ptrace requests interception, it should prevent all subsequent
system-call processing, including audit and seccomp. In preparation for
moving arm64 over to the generic entry code, return early if
ptrace_report_syscall_entry() encounters an error.

Reviewed-by: Kevin Brodsky <kevin.brodsky@arm.com>
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/ptrace.c