Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
733deca1
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
733deca1
编写于
10月 20, 2012
作者:
A
Al Viro
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Drop struct pt_regs * argument in compat_sys_execve()
Signed-off-by:
N
Al Viro
<
viro@zeniv.linux.org.uk
>
上级
6a872777
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
6 addition
and
13 deletion
+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
未找到文件。
arch/tile/include/asm/compat.h
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录