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
733deca1
Commit
733deca1
authored
Oct 20, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop struct pt_regs * argument in compat_sys_execve()
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
6a872777
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
13 deletions
+6
-13
arch/tile/include/asm/compat.h
arch/tile/include/asm/compat.h
+0
-6
arch/tile/include/asm/processor.h
arch/tile/include/asm/processor.h
+3
-0
arch/tile/kernel/compat.c
arch/tile/kernel/compat.c
+0
-1
arch/tile/kernel/intvec_64.S
arch/tile/kernel/intvec_64.S
+0
-1
arch/tile/kernel/process.c
arch/tile/kernel/process.c
+3
-3
include/linux/compat.h
include/linux/compat.h
+0
-2
No files found.
arch/tile/include/asm/compat.h
View file @
733deca1
...
...
@@ -275,9 +275,6 @@ extern int compat_setup_rt_frame(int sig, struct k_sigaction *ka,
struct
compat_sigaction
;
struct
compat_siginfo
;
struct
compat_sigaltstack
;
long
compat_sys_execve
(
const
char
__user
*
path
,
compat_uptr_t
__user
*
argv
,
compat_uptr_t
__user
*
envp
,
struct
pt_regs
*
);
long
compat_sys_rt_sigaction
(
int
sig
,
struct
compat_sigaction
__user
*
act
,
struct
compat_sigaction
__user
*
oact
,
size_t
sigsetsize
);
...
...
@@ -304,9 +301,6 @@ long compat_sys_sched_rr_get_interval(compat_pid_t pid,
struct
compat_timespec
__user
*
interval
);
/* These are the intvec_64.S trampolines. */
long
_compat_sys_execve
(
const
char
__user
*
path
,
const
compat_uptr_t
__user
*
argv
,
const
compat_uptr_t
__user
*
envp
);
long
_compat_sys_sigaltstack
(
const
struct
compat_sigaltstack
__user
*
uss_ptr
,
struct
compat_sigaltstack
__user
*
uoss_ptr
);
long
_compat_sys_rt_sigreturn
(
void
);
...
...
arch/tile/include/asm/processor.h
View file @
733deca1
...
...
@@ -239,6 +239,9 @@ unsigned long get_wchan(struct task_struct *p);
#define KSTK_TOP(task) (task_ksp0(task) - STACK_TOP_DELTA)
#define task_pt_regs(task) \
((struct pt_regs *)(task_ksp0(task) - KSTK_PTREGS_GAP) - 1)
#define current_pt_regs() \
((struct pt_regs *)((stack_pointer | (THREAD_SIZE - 1)) - \
(KSTK_PTREGS_GAP - 1)) - 1)
#define task_sp(task) (task_pt_regs(task)->sp)
#define task_pc(task) (task_pt_regs(task)->pc)
/* Aliases for pc and sp (used in fs/proc/array.c) */
...
...
arch/tile/kernel/compat.c
View file @
733deca1
...
...
@@ -103,7 +103,6 @@ long compat_sys_sched_rr_get_interval(compat_pid_t pid,
#define compat_sys_readahead sys32_readahead
/* Call the trampolines to manage pt_regs where necessary. */
#define compat_sys_execve _compat_sys_execve
#define compat_sys_sigaltstack _compat_sys_sigaltstack
#define compat_sys_rt_sigreturn _compat_sys_rt_sigreturn
#define sys_clone _sys_clone
...
...
arch/tile/kernel/intvec_64.S
View file @
733deca1
...
...
@@ -1194,7 +1194,6 @@ PTREGS_SYSCALL(sys_execve, r3)
PTREGS_SYSCALL
(
sys_sigaltstack
,
r2
)
PTREGS_SYSCALL_SIGRETURN
(
sys_rt_sigreturn
,
r0
)
#ifdef CONFIG_COMPAT
PTREGS_SYSCALL
(
compat_sys_execve
,
r3
)
PTREGS_SYSCALL
(
compat_sys_sigaltstack
,
r2
)
PTREGS_SYSCALL_SIGRETURN
(
compat_sys_rt_sigreturn
,
r0
)
#endif
...
...
arch/tile/kernel/process.c
View file @
733deca1
...
...
@@ -614,8 +614,7 @@ SYSCALL_DEFINE4(execve, const char __user *, path,
#ifdef CONFIG_COMPAT
long
compat_sys_execve
(
const
char
__user
*
path
,
compat_uptr_t
__user
*
argv
,
compat_uptr_t
__user
*
envp
,
struct
pt_regs
*
regs
)
compat_uptr_t
__user
*
envp
)
{
long
error
;
struct
filename
*
filename
;
...
...
@@ -624,7 +623,8 @@ long compat_sys_execve(const char __user *path,
error
=
PTR_ERR
(
filename
);
if
(
IS_ERR
(
filename
))
goto
out
;
error
=
compat_do_execve
(
filename
->
name
,
argv
,
envp
,
regs
);
error
=
compat_do_execve
(
filename
->
name
,
argv
,
envp
,
current_pt_regs
());
putname
(
filename
);
if
(
error
==
0
)
single_step_execve
();
...
...
include/linux/compat.h
View file @
733deca1
...
...
@@ -286,10 +286,8 @@ asmlinkage ssize_t compat_sys_pwritev(unsigned long fd,
int
compat_do_execve
(
const
char
*
filename
,
const
compat_uptr_t
__user
*
argv
,
const
compat_uptr_t
__user
*
envp
,
struct
pt_regs
*
regs
);
#ifdef __ARCH_WANT_SYS_EXECVE
asmlinkage
long
compat_sys_execve
(
const
char
__user
*
filename
,
const
compat_uptr_t
__user
*
argv
,
const
compat_uptr_t
__user
*
envp
);
#endif
asmlinkage
long
compat_sys_select
(
int
n
,
compat_ulong_t
__user
*
inp
,
compat_ulong_t
__user
*
outp
,
compat_ulong_t
__user
*
exp
,
...
...
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