Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
754fe8d2
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看板
提交
754fe8d2
编写于
1月 14, 2009
作者:
H
Heiko Carstens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CVE-2009-0029] System call wrappers part 07
Signed-off-by:
N
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
上级
5add95d4
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
14 addition
and
14 deletion
+14
-14
kernel/exit.c
kernel/exit.c
+4
-4
kernel/kexec.c
kernel/kexec.c
+2
-3
kernel/sched.c
kernel/sched.c
+2
-2
kernel/signal.c
kernel/signal.c
+1
-1
kernel/sys.c
kernel/sys.c
+4
-3
net/socket.c
net/socket.c
+1
-1
未找到文件。
kernel/exit.c
浏览文件 @
754fe8d2
...
@@ -1141,7 +1141,7 @@ NORET_TYPE void complete_and_exit(struct completion *comp, long code)
...
@@ -1141,7 +1141,7 @@ NORET_TYPE void complete_and_exit(struct completion *comp, long code)
EXPORT_SYMBOL
(
complete_and_exit
);
EXPORT_SYMBOL
(
complete_and_exit
);
asmlinkage
long
sys_exit
(
int
error_code
)
SYSCALL_DEFINE1
(
exit
,
int
,
error_code
)
{
{
do_exit
((
error_code
&
0xff
)
<<
8
);
do_exit
((
error_code
&
0xff
)
<<
8
);
}
}
...
@@ -1182,7 +1182,7 @@ do_group_exit(int exit_code)
...
@@ -1182,7 +1182,7 @@ do_group_exit(int exit_code)
* wait4()-ing process will get the correct exit code - even if this
* wait4()-ing process will get the correct exit code - even if this
* thread is not the thread group leader.
* thread is not the thread group leader.
*/
*/
asmlinkage
long
sys_exit_group
(
int
error_code
)
SYSCALL_DEFINE1
(
exit_group
,
int
,
error_code
)
{
{
do_group_exit
((
error_code
&
0xff
)
<<
8
);
do_group_exit
((
error_code
&
0xff
)
<<
8
);
/* NOTREACHED */
/* NOTREACHED */
...
@@ -1795,8 +1795,8 @@ asmlinkage long sys_waitid(int which, pid_t upid,
...
@@ -1795,8 +1795,8 @@ asmlinkage long sys_waitid(int which, pid_t upid,
return
ret
;
return
ret
;
}
}
asmlinkage
long
sys_wait4
(
pid_t
upid
,
int
__user
*
stat_addr
,
SYSCALL_DEFINE4
(
wait4
,
pid_t
,
upid
,
int
__user
*
,
stat_addr
,
int
options
,
struct
rusage
__user
*
ru
)
int
,
options
,
struct
rusage
__user
*
,
ru
)
{
{
struct
pid
*
pid
=
NULL
;
struct
pid
*
pid
=
NULL
;
enum
pid_type
type
;
enum
pid_type
type
;
...
...
kernel/kexec.c
浏览文件 @
754fe8d2
...
@@ -934,9 +934,8 @@ struct kimage *kexec_crash_image;
...
@@ -934,9 +934,8 @@ struct kimage *kexec_crash_image;
static
DEFINE_MUTEX
(
kexec_mutex
);
static
DEFINE_MUTEX
(
kexec_mutex
);
asmlinkage
long
sys_kexec_load
(
unsigned
long
entry
,
unsigned
long
nr_segments
,
SYSCALL_DEFINE4
(
kexec_load
,
unsigned
long
,
entry
,
unsigned
long
,
nr_segments
,
struct
kexec_segment
__user
*
segments
,
struct
kexec_segment
__user
*
,
segments
,
unsigned
long
,
flags
)
unsigned
long
flags
)
{
{
struct
kimage
**
dest_image
,
*
image
;
struct
kimage
**
dest_image
,
*
image
;
int
result
;
int
result
;
...
...
kernel/sched.c
浏览文件 @
754fe8d2
...
@@ -5869,8 +5869,8 @@ SYSCALL_DEFINE1(sched_get_priority_min, int, policy)
...
@@ -5869,8 +5869,8 @@ SYSCALL_DEFINE1(sched_get_priority_min, int, policy)
* this syscall writes the default timeslice value of a given process
* this syscall writes the default timeslice value of a given process
* into the user-space timespec buffer. A value of '0' means infinity.
* into the user-space timespec buffer. A value of '0' means infinity.
*/
*/
asmlinkage
SYSCALL_DEFINE4
(
sched_rr_get_interval
,
pid_t
,
pid
,
long
sys_sched_rr_get_interval
(
pid_t
pid
,
struct
timespec
__user
*
interval
)
struct
timespec
__user
*
,
interval
)
{
{
struct
task_struct
*
p
;
struct
task_struct
*
p
;
unsigned
int
time_slice
;
unsigned
int
time_slice
;
...
...
kernel/signal.c
浏览文件 @
754fe8d2
...
@@ -1961,7 +1961,7 @@ EXPORT_SYMBOL(unblock_all_signals);
...
@@ -1961,7 +1961,7 @@ EXPORT_SYMBOL(unblock_all_signals);
* System call entry points.
* System call entry points.
*/
*/
asmlinkage
long
sys_restart_syscall
(
void
)
SYSCALL_DEFINE0
(
restart_syscall
)
{
{
struct
restart_block
*
restart
=
&
current_thread_info
()
->
restart_block
;
struct
restart_block
*
restart
=
&
current_thread_info
()
->
restart_block
;
return
restart
->
fn
(
restart
);
return
restart
->
fn
(
restart
);
...
...
kernel/sys.c
浏览文件 @
754fe8d2
...
@@ -143,7 +143,7 @@ static int set_one_prio(struct task_struct *p, int niceval, int error)
...
@@ -143,7 +143,7 @@ static int set_one_prio(struct task_struct *p, int niceval, int error)
return
error
;
return
error
;
}
}
asmlinkage
long
sys_setpriority
(
int
which
,
int
who
,
int
niceval
)
SYSCALL_DEFINE3
(
setpriority
,
int
,
which
,
int
,
who
,
int
,
niceval
)
{
{
struct
task_struct
*
g
,
*
p
;
struct
task_struct
*
g
,
*
p
;
struct
user_struct
*
user
;
struct
user_struct
*
user
;
...
@@ -208,7 +208,7 @@ asmlinkage long sys_setpriority(int which, int who, int niceval)
...
@@ -208,7 +208,7 @@ asmlinkage long sys_setpriority(int which, int who, int niceval)
* has been offset by 20 (ie it returns 40..1 instead of -20..19)
* has been offset by 20 (ie it returns 40..1 instead of -20..19)
* to stay compatible.
* to stay compatible.
*/
*/
asmlinkage
long
sys_getpriority
(
int
which
,
int
who
)
SYSCALL_DEFINE2
(
getpriority
,
int
,
which
,
int
,
who
)
{
{
struct
task_struct
*
g
,
*
p
;
struct
task_struct
*
g
,
*
p
;
struct
user_struct
*
user
;
struct
user_struct
*
user
;
...
@@ -355,7 +355,8 @@ EXPORT_SYMBOL_GPL(kernel_power_off);
...
@@ -355,7 +355,8 @@ EXPORT_SYMBOL_GPL(kernel_power_off);
*
*
* reboot doesn't sync: do that yourself before calling this.
* reboot doesn't sync: do that yourself before calling this.
*/
*/
asmlinkage
long
sys_reboot
(
int
magic1
,
int
magic2
,
unsigned
int
cmd
,
void
__user
*
arg
)
SYSCALL_DEFINE4
(
reboot
,
int
,
magic1
,
int
,
magic2
,
unsigned
int
,
cmd
,
void
__user
*
,
arg
)
{
{
char
buffer
[
256
];
char
buffer
[
256
];
...
...
net/socket.c
浏览文件 @
754fe8d2
...
@@ -1789,7 +1789,7 @@ asmlinkage long sys_getsockopt(int fd, int level, int optname,
...
@@ -1789,7 +1789,7 @@ asmlinkage long sys_getsockopt(int fd, int level, int optname,
* Shutdown a socket.
* Shutdown a socket.
*/
*/
asmlinkage
long
sys_shutdown
(
int
fd
,
int
how
)
SYSCALL_DEFINE2
(
shutdown
,
int
,
fd
,
int
,
how
)
{
{
int
err
,
fput_needed
;
int
err
,
fput_needed
;
struct
socket
*
sock
;
struct
socket
*
sock
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录