| Message ID | b4ab47d2551d090520b4fa81a884b5988b9655c7.1788351089.git.rrobaina@redhat.com |
|---|---|
| State | New |
| Headers | show |
| Series | audit: log all six syscall arguments in the SYSCALL record | expand |
On Wed, Sep 02, 2026 at 11:43:37AM -0300, Ricardo Robaina wrote: > 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. > > Signed-off-by: Ricardo Robaina <rrobaina@redhat.com> > --- > arch/arm64/kernel/ptrace.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/arch/arm64/kernel/ptrace.c b/arch/arm64/kernel/ptrace.c > index f743cbec1c3a..65532b2a8cd4 100644 > --- a/arch/arm64/kernel/ptrace.c > +++ b/arch/arm64/kernel/ptrace.c > @@ -2476,8 +2476,7 @@ int syscall_trace_enter(struct pt_regs *regs) > if (test_thread_flag(TIF_SYSCALL_TRACEPOINT)) > trace_sys_enter(regs, regs->syscallno); > > - audit_syscall_entry(regs->syscallno, regs->orig_x0, regs->regs[1], > - regs->regs[2], regs->regs[3]); > + audit_syscall_entry(regs->syscallno, regs); Acked-by: Will Deacon <will@kernel.org> Thanks for doing this. Will
diff --git a/arch/arm64/kernel/ptrace.c b/arch/arm64/kernel/ptrace.c index f743cbec1c3a..65532b2a8cd4 100644 --- a/arch/arm64/kernel/ptrace.c +++ b/arch/arm64/kernel/ptrace.c @@ -2476,8 +2476,7 @@ int syscall_trace_enter(struct pt_regs *regs) if (test_thread_flag(TIF_SYSCALL_TRACEPOINT)) trace_sys_enter(regs, regs->syscallno); - audit_syscall_entry(regs->syscallno, regs->orig_x0, regs->regs[1], - regs->regs[2], regs->regs[3]); + audit_syscall_entry(regs->syscallno, regs); return regs->syscallno; }
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. Signed-off-by: Ricardo Robaina <rrobaina@redhat.com> --- arch/arm64/kernel/ptrace.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)