Update the audit_syscall_entry() call to forward the 5th and 6th
syscall arguments (regs[0], regs[1]) now that the audit core logs
all six.

Signed-off-by: Ricardo Robaina <[email protected]>
---
 arch/sh/kernel/ptrace_32.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/sh/kernel/ptrace_32.c b/arch/sh/kernel/ptrace_32.c
index 06f765d71a29..3efefd67b457 100644
--- a/arch/sh/kernel/ptrace_32.c
+++ b/arch/sh/kernel/ptrace_32.c
@@ -467,7 +467,8 @@ asmlinkage long do_syscall_trace_enter(struct pt_regs *regs)
                trace_sys_enter(regs, regs->regs[0]);
 
        audit_syscall_entry(regs->regs[3], regs->regs[4], regs->regs[5],
-                           regs->regs[6], regs->regs[7]);
+                           regs->regs[6], regs->regs[7],
+                           regs->regs[0], regs->regs[1]);
 
        return 0;
 }
-- 
2.55.0


Reply via email to