[PATCH v15 05/11] arm64/ptrace: Use syscall_get_arguments() helper for audit
Ada Couprie Diaz
ada.coupriediaz at arm.com
Wed Jun 24 06:44:39 PDT 2026
On 11/05/2026 10:20, Jinjie Ruan wrote:
> Extract syscall_enter_audit() helper and use syscall_get_arguments()
> to get syscall arguments, matching the generic entry implementation.
>
> The new code:
> - Checks audit_context() first to avoid unnecessary memcpy when audit
> is not active.
> - Uses syscall_get_arguments() helper instead of directly accessing
> regs fields.
> - Is now exactly equivalent to generic entry's syscall_enter_audit().
>
> No functional changes.
>
> Cc: Mark Rutland <mark.rutland at arm.com>
> Cc: Will Deacon <will at kernel.org>
> Cc: Catalin Marinas <catalin.marinas at arm.com>
> Reviewed-by: Linus Walleij <linusw at kernel.org>
> Reviewed-by: Yeoreum Yun <yeoreum.yun at arm.com>
> Reviewed-by: Kevin Brodsky <kevin.brodsky at arm.com>
> Signed-off-by: Jinjie Ruan <ruanjinjie at huawei.com>
> ---
Reviewed-by: Ada Couprie Diaz <ada.coupriediaz at arm.com>
More information about the linux-arm-kernel
mailing list