Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
a63c97a0
Commit
a63c97a0
authored
Aug 02, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arm: get rid of execve wrapper, switch to generic execve() implementation
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
bfd170d5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
26 deletions
+2
-26
arch/arm/include/asm/unistd.h
arch/arm/include/asm/unistd.h
+1
-0
arch/arm/kernel/calls.S
arch/arm/kernel/calls.S
+1
-1
arch/arm/kernel/entry-common.S
arch/arm/kernel/entry-common.S
+0
-5
arch/arm/kernel/sys_arm.c
arch/arm/kernel/sys_arm.c
+0
-20
No files found.
arch/arm/include/asm/unistd.h
View file @
a63c97a0
...
...
@@ -469,6 +469,7 @@
#define __ARCH_WANT_OLD_READDIR
#define __ARCH_WANT_SYS_SOCKETCALL
#endif
#define __ARCH_WANT_SYS_EXECVE
#define __ARCH_WANT_KERNEL_EXECVE
/*
...
...
arch/arm/kernel/calls.S
View file @
a63c97a0
...
...
@@ -20,7 +20,7 @@
CALL
(
sys_creat
)
CALL
(
sys_link
)
/*
10
*/
CALL
(
sys_unlink
)
CALL
(
sys_execve
_wrapper
)
CALL
(
sys_execve
)
CALL
(
sys_chdir
)
CALL
(
OBSOLETE
(
sys_time
))
/*
used
by
libc4
*/
CALL
(
sys_mknod
)
...
...
arch/arm/kernel/entry-common.S
View file @
a63c97a0
...
...
@@ -532,11 +532,6 @@ sys_vfork_wrapper:
b
sys_vfork
ENDPROC
(
sys_vfork_wrapper
)
sys_execve_wrapper
:
add
r3
,
sp
,
#
S_OFF
b
sys_execve
ENDPROC
(
sys_execve_wrapper
)
sys_clone_wrapper
:
add
ip
,
sp
,
#
S_OFF
str
ip
,
[
sp
,
#
4
]
...
...
arch/arm/kernel/sys_arm.c
View file @
a63c97a0
...
...
@@ -59,26 +59,6 @@ asmlinkage int sys_vfork(struct pt_regs *regs)
return
do_fork
(
CLONE_VFORK
|
CLONE_VM
|
SIGCHLD
,
regs
->
ARM_sp
,
regs
,
0
,
NULL
,
NULL
);
}
/* sys_execve() executes a new program.
* This is called indirectly via a small wrapper
*/
asmlinkage
int
sys_execve
(
const
char
__user
*
filenamei
,
const
char
__user
*
const
__user
*
argv
,
const
char
__user
*
const
__user
*
envp
,
struct
pt_regs
*
regs
)
{
int
error
;
char
*
filename
;
filename
=
getname
(
filenamei
);
error
=
PTR_ERR
(
filename
);
if
(
IS_ERR
(
filename
))
goto
out
;
error
=
do_execve
(
filename
,
argv
,
envp
,
regs
);
putname
(
filename
);
out:
return
error
;
}
/*
* Since loff_t is a 64 bit type we avoid a lot of ABI hassle
* with a different argument ordering.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment