projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
062ab57
)
MIPS: secure_computing, syscall audit: syscall number should in r2, not r0.
author
Al Viro
<viro@ftp.linux.org.uk>
Tue, 28 Sep 2010 17:50:27 +0000
(18:50 +0100)
committer
Ralf Baechle
<ralf@linux-mips.org>
Mon, 18 Oct 2010 15:59:02 +0000
(16:59 +0100)
As it is, audit_syscall_entry() and secure_computing() get the
bogus value (0, in fact)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Cc: linux-kernel@vger.kernel.org
Cc: linux-arch@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/1697/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/ptrace.c
patch
|
blob
|
history
diff --git
a/arch/mips/kernel/ptrace.c
b/arch/mips/kernel/ptrace.c
index
c51b95f
..
c877733
100644
(file)
--- a/
arch/mips/kernel/ptrace.c
+++ b/
arch/mips/kernel/ptrace.c
@@
-536,7
+536,7
@@
asmlinkage void do_syscall_trace(struct pt_regs *regs, int entryexit)
{
/* do the secure computing check first */
if (!entryexit)
- secure_computing(regs->regs[
0
]);
+ secure_computing(regs->regs[
2
]);
if (unlikely(current->audit_context) && entryexit)
audit_syscall_exit(AUDITSC_RESULT(regs->regs[2]),
@@
-565,7
+565,7
@@
asmlinkage void do_syscall_trace(struct pt_regs *regs, int entryexit)
out:
if (unlikely(current->audit_context) && !entryexit)
- audit_syscall_entry(audit_arch(), regs->regs[
0
],
+ audit_syscall_entry(audit_arch(), regs->regs[
2
],
regs->regs[4], regs->regs[5],
regs->regs[6], regs->regs[7]);
}