|
@@ -719,7 +719,11 @@ asmlinkage long do_syscall_trace_enter(struct pt_regs *regs)
|
|
|
long ret = 0;
|
|
|
|
|
|
/* Do the secure computing check first. */
|
|
|
- secure_computing_strict(regs->gprs[2]);
|
|
|
+ if (secure_computing(regs->gprs[2])) {
|
|
|
+ /* seccomp failures shouldn't expose any additional code. */
|
|
|
+ ret = -1;
|
|
|
+ goto out;
|
|
|
+ }
|
|
|
|
|
|
/*
|
|
|
* The sysc_tracesys code in entry.S stored the system
|
|
@@ -745,6 +749,7 @@ asmlinkage long do_syscall_trace_enter(struct pt_regs *regs)
|
|
|
regs->gprs[2], regs->orig_gpr2,
|
|
|
regs->gprs[3], regs->gprs[4],
|
|
|
regs->gprs[5]);
|
|
|
+out:
|
|
|
return ret ?: regs->gprs[2];
|
|
|
}
|
|
|
|