Re: [PATCH v15 05/11] arm64/ptrace: Use syscall_get_arguments() helper for audit
From: Ada Couprie Diaz
Date: Wed Jun 24 2026 - 09:48:05 EST
On 11/05/2026 10:20, Jinjie Ruan wrote:
Extract syscall_enter_audit() helper and use syscall_get_arguments()Reviewed-by: Ada Couprie Diaz <ada.coupriediaz@xxxxxxx>
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@xxxxxxx>
Cc: Will Deacon <will@xxxxxxxxxx>
Cc: Catalin Marinas <catalin.marinas@xxxxxxx>
Reviewed-by: Linus Walleij <linusw@xxxxxxxxxx>
Reviewed-by: Yeoreum Yun <yeoreum.yun@xxxxxxx>
Reviewed-by: Kevin Brodsky <kevin.brodsky@xxxxxxx>
Signed-off-by: Jinjie Ruan <ruanjinjie@xxxxxxxxxx>
---