[PATCH v3 09/14] parisc: pass pt_regs to audit_syscall_entry()

From: Ricardo Robaina

Date: Tue Sep 22 2026 - 15:27:44 EST


audit_syscall_entry() now takes a pointer to pt_regs and extracts
the syscall arguments itself via syscall_get_arguments(). Drop the
individual argument registers from the call and pass regs instead.

Per-argument compat masking is now handled in syscall_get_arguments()
(see the preceding patch), so it is dropped here; the syscall number
still needs masking for compat tasks and is left in place.

Signed-off-by: Ricardo Robaina <rrobaina@xxxxxxxxxx>
---
arch/parisc/kernel/ptrace.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/arch/parisc/kernel/ptrace.c b/arch/parisc/kernel/ptrace.c
index 1d9e210702e1..4e62d6bd6466 100644
--- a/arch/parisc/kernel/ptrace.c
+++ b/arch/parisc/kernel/ptrace.c
@@ -359,15 +359,10 @@ long do_syscall_trace_enter(struct pt_regs *regs)

#ifdef CONFIG_64BIT
if (!is_compat_task())
- audit_syscall_entry(regs->gr[20], regs->gr[26], regs->gr[25],
- regs->gr[24], regs->gr[23]);
+ audit_syscall_entry_regs(regs->gr[20], regs);
else
#endif
- audit_syscall_entry(regs->gr[20] & 0xffffffff,
- regs->gr[26] & 0xffffffff,
- regs->gr[25] & 0xffffffff,
- regs->gr[24] & 0xffffffff,
- regs->gr[23] & 0xffffffff);
+ audit_syscall_entry_regs(regs->gr[20] & 0xffffffff, regs);

/*
* Sign extend the syscall number to 64bit since it may have been
--
2.55.0