Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Linux-御风守护者
linux
提交
938bb9f5
L
linux
项目概览
Linux-御风守护者
/
linux
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
938bb9f5
编写于
1月 14, 2009
作者:
H
Heiko Carstens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CVE-2009-0029] System call wrappers part 28
Signed-off-by:
N
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
上级
1e7bfb21
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
21 addition
and
24 deletion
+21
-24
fs/ioprio.c
fs/ioprio.c
+2
-3
fs/notify/inotify/inotify_user.c
fs/notify/inotify/inotify_user.c
+2
-2
mm/mempolicy.c
mm/mempolicy.c
+11
-13
mm/migrate.c
mm/migrate.c
+4
-4
security/keys/keyctl.c
security/keys/keyctl.c
+2
-2
未找到文件。
fs/ioprio.c
浏览文件 @
938bb9f5
...
...
@@ -72,7 +72,7 @@ int set_task_ioprio(struct task_struct *task, int ioprio)
}
EXPORT_SYMBOL_GPL
(
set_task_ioprio
);
asmlinkage
long
sys_ioprio_set
(
int
which
,
int
who
,
int
ioprio
)
SYSCALL_DEFINE3
(
ioprio_set
,
int
,
which
,
int
,
who
,
int
,
ioprio
)
{
int
class
=
IOPRIO_PRIO_CLASS
(
ioprio
);
int
data
=
IOPRIO_PRIO_DATA
(
ioprio
);
...
...
@@ -188,7 +188,7 @@ int ioprio_best(unsigned short aprio, unsigned short bprio)
return
aprio
;
}
asmlinkage
long
sys_ioprio_get
(
int
which
,
int
who
)
SYSCALL_DEFINE2
(
ioprio_get
,
int
,
which
,
int
,
who
)
{
struct
task_struct
*
g
,
*
p
;
struct
user_struct
*
user
;
...
...
@@ -252,4 +252,3 @@ asmlinkage long sys_ioprio_get(int which, int who)
read_unlock
(
&
tasklist_lock
);
return
ret
;
}
fs/notify/inotify/inotify_user.c
浏览文件 @
938bb9f5
...
...
@@ -576,7 +576,7 @@ static const struct inotify_operations inotify_user_ops = {
.
destroy_watch
=
free_inotify_user_watch
,
};
asmlinkage
long
sys_inotify_init1
(
int
flags
)
SYSCALL_DEFINE1
(
inotify_init1
,
int
,
flags
)
{
struct
inotify_device
*
dev
;
struct
inotify_handle
*
ih
;
...
...
@@ -655,7 +655,7 @@ asmlinkage long sys_inotify_init1(int flags)
return
ret
;
}
asmlinkage
long
sys_inotify_init
(
void
)
SYSCALL_DEFINE0
(
inotify_init
)
{
return
sys_inotify_init1
(
0
);
}
...
...
mm/mempolicy.c
浏览文件 @
938bb9f5
...
...
@@ -1068,10 +1068,9 @@ static int copy_nodes_to_user(unsigned long __user *mask, unsigned long maxnode,
return
copy_to_user
(
mask
,
nodes_addr
(
*
nodes
),
copy
)
?
-
EFAULT
:
0
;
}
asmlinkage
long
sys_mbind
(
unsigned
long
start
,
unsigned
long
len
,
unsigned
long
mode
,
unsigned
long
__user
*
nmask
,
unsigned
long
maxnode
,
unsigned
flags
)
SYSCALL_DEFINE6
(
mbind
,
unsigned
long
,
start
,
unsigned
long
,
len
,
unsigned
long
,
mode
,
unsigned
long
__user
*
,
nmask
,
unsigned
long
,
maxnode
,
unsigned
,
flags
)
{
nodemask_t
nodes
;
int
err
;
...
...
@@ -1091,8 +1090,8 @@ asmlinkage long sys_mbind(unsigned long start, unsigned long len,
}
/* Set the process memory policy */
asmlinkage
long
sys_set_mempolicy
(
int
mode
,
unsigned
long
__user
*
nmask
,
unsigned
long
maxnode
)
SYSCALL_DEFINE3
(
set_mempolicy
,
int
,
mode
,
unsigned
long
__user
*
,
nmask
,
unsigned
long
,
maxnode
)
{
int
err
;
nodemask_t
nodes
;
...
...
@@ -1110,9 +1109,9 @@ asmlinkage long sys_set_mempolicy(int mode, unsigned long __user *nmask,
return
do_set_mempolicy
(
mode
,
flags
,
&
nodes
);
}
asmlinkage
long
sys_migrate_pages
(
pid_t
pid
,
unsigned
long
maxnode
,
const
unsigned
long
__user
*
old_nodes
,
const
unsigned
long
__user
*
new_nodes
)
SYSCALL_DEFINE4
(
migrate_pages
,
pid_t
,
pid
,
unsigned
long
,
maxnode
,
const
unsigned
long
__user
*
,
old_nodes
,
const
unsigned
long
__user
*
,
new_nodes
)
{
const
struct
cred
*
cred
=
current_cred
(),
*
tcred
;
struct
mm_struct
*
mm
;
...
...
@@ -1185,10 +1184,9 @@ asmlinkage long sys_migrate_pages(pid_t pid, unsigned long maxnode,
/* Retrieve NUMA policy */
asmlinkage
long
sys_get_mempolicy
(
int
__user
*
policy
,
unsigned
long
__user
*
nmask
,
unsigned
long
maxnode
,
unsigned
long
addr
,
unsigned
long
flags
)
SYSCALL_DEFINE5
(
get_mempolicy
,
int
__user
*
,
policy
,
unsigned
long
__user
*
,
nmask
,
unsigned
long
,
maxnode
,
unsigned
long
,
addr
,
unsigned
long
,
flags
)
{
int
err
;
int
uninitialized_var
(
pval
);
...
...
mm/migrate.c
浏览文件 @
938bb9f5
...
...
@@ -1055,10 +1055,10 @@ static int do_pages_stat(struct mm_struct *mm, unsigned long nr_pages,
* Move a list of pages in the address space of the currently executing
* process.
*/
asmlinkage
long
sys_move_pages
(
pid_t
pid
,
unsigned
long
nr_pages
,
const
void
__user
*
__user
*
pages
,
const
int
__user
*
nodes
,
int
__user
*
status
,
int
flags
)
SYSCALL_DEFINE6
(
move_pages
,
pid_t
,
pid
,
unsigned
long
,
nr_pages
,
const
void
__user
*
__user
*
,
pages
,
const
int
__user
*
,
nodes
,
int
__user
*
,
status
,
int
,
flags
)
{
const
struct
cred
*
cred
=
current_cred
(),
*
tcred
;
struct
task_struct
*
task
;
...
...
security/keys/keyctl.c
浏览文件 @
938bb9f5
...
...
@@ -1216,8 +1216,8 @@ long keyctl_get_security(key_serial_t keyid,
/*
* the key control system call
*/
asmlinkage
long
sys_keyctl
(
int
option
,
unsigned
long
arg2
,
unsigned
long
arg3
,
unsigned
long
arg4
,
unsigned
long
arg5
)
SYSCALL_DEFINE5
(
keyctl
,
int
,
option
,
unsigned
long
,
arg2
,
unsigned
long
,
arg3
,
unsigned
long
,
arg4
,
unsigned
long
,
arg5
)
{
switch
(
option
)
{
case
KEYCTL_GET_KEYRING_ID
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录