Commit 1ffbed72 authored by Al Viro's avatar Al Viro

score: switch to generic sys_execve()

Signed-off-by: default avatarAl Viro <>
parent 1856ab6d
......@@ -2,7 +2,6 @@
asmlinkage long score_clone(struct pt_regs *regs);
asmlinkage long score_execve(struct pt_regs *regs);
asmlinkage long score_sigaltstack(struct pt_regs *regs);
asmlinkage long score_rt_sigreturn(struct pt_regs *regs);
......@@ -4,5 +4,6 @@
#include <asm-generic/unistd.h>
......@@ -487,11 +487,6 @@ illegal_syscall:
sw r9, [r0, PT_R7]
j syscall_return
mv r4, r0
la r8, score_execve
br r8
mv r4, r0
la r8, score_clone
......@@ -83,27 +83,3 @@ score_vfork(struct pt_regs *regs)
return do_fork(CLONE_VFORK | CLONE_VM | SIGCHLD,
regs->regs[0], regs, 0, NULL, NULL);
* sys_execve() executes a new program.
* This is called indirectly via a small wrapper
asmlinkage long
score_execve(struct pt_regs *regs)
int error;
struct filename *filename;
filename = getname((char __user*)regs->regs[4]);
error = PTR_ERR(filename);
if (IS_ERR(filename))
return error;
error = do_execve(filename->name,
(const char __user *const __user *)regs->regs[5],
(const char __user *const __user *)regs->regs[6],
return error;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment