Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
836f92ad
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
836f92ad
编写于
1月 14, 2009
作者:
H
Heiko Carstens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CVE-2009-0029] System call wrappers part 31
Signed-off-by:
N
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
上级
6559eed8
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
21 addition
and
22 deletion
+21
-22
fs/signalfd.c
fs/signalfd.c
+4
-4
fs/splice.c
fs/splice.c
+6
-6
fs/timerfd.c
fs/timerfd.c
+4
-4
kernel/futex.c
kernel/futex.c
+5
-6
kernel/sys.c
kernel/sys.c
+2
-2
未找到文件。
fs/signalfd.c
浏览文件 @
836f92ad
...
...
@@ -205,8 +205,8 @@ static const struct file_operations signalfd_fops = {
.
read
=
signalfd_read
,
};
asmlinkage
long
sys_signalfd4
(
int
ufd
,
sigset_t
__user
*
user_mask
,
size_t
sizemask
,
int
flags
)
SYSCALL_DEFINE4
(
signalfd4
,
int
,
ufd
,
sigset_t
__user
*
,
user_mask
,
size_t
,
sizemask
,
int
,
flags
)
{
sigset_t
sigmask
;
struct
signalfd_ctx
*
ctx
;
...
...
@@ -259,8 +259,8 @@ asmlinkage long sys_signalfd4(int ufd, sigset_t __user *user_mask,
return
ufd
;
}
asmlinkage
long
sys_signalfd
(
int
ufd
,
sigset_t
__user
*
user_mask
,
size_t
sizemask
)
SYSCALL_DEFINE3
(
signalfd
,
int
,
ufd
,
sigset_t
__user
*
,
user_mask
,
size_t
,
sizemask
)
{
return
sys_signalfd4
(
ufd
,
user_mask
,
sizemask
,
0
);
}
fs/splice.c
浏览文件 @
836f92ad
...
...
@@ -1435,8 +1435,8 @@ static long vmsplice_to_pipe(struct file *file, const struct iovec __user *iov,
* Currently we punt and implement it as a normal copy, see pipe_to_user().
*
*/
asmlinkage
long
sys_vmsplice
(
int
fd
,
const
struct
iovec
__user
*
iov
,
unsigned
long
nr_segs
,
unsigned
int
flags
)
SYSCALL_DEFINE4
(
vmsplice
,
int
,
fd
,
const
struct
iovec
__user
*
,
iov
,
unsigned
long
,
nr_segs
,
unsigned
int
,
flags
)
{
struct
file
*
file
;
long
error
;
...
...
@@ -1461,9 +1461,9 @@ asmlinkage long sys_vmsplice(int fd, const struct iovec __user *iov,
return
error
;
}
asmlinkage
long
sys_splice
(
int
fd_in
,
loff_t
__user
*
off_in
,
int
fd_out
,
loff_t
__user
*
off_out
,
size_t
len
,
unsigned
int
flags
)
SYSCALL_DEFINE6
(
splice
,
int
,
fd_in
,
loff_t
__user
*
,
off_in
,
int
,
fd_out
,
loff_t
__user
*
,
off_out
,
size_t
,
len
,
unsigned
int
,
flags
)
{
long
error
;
struct
file
*
in
,
*
out
;
...
...
@@ -1685,7 +1685,7 @@ static long do_tee(struct file *in, struct file *out, size_t len,
return
ret
;
}
asmlinkage
long
sys_tee
(
int
fdin
,
int
fdout
,
size_t
len
,
unsigned
int
flags
)
SYSCALL_DEFINE4
(
tee
,
int
,
fdin
,
int
,
fdout
,
size_t
,
len
,
unsigned
int
,
flags
)
{
struct
file
*
in
;
int
error
,
fput_in
;
...
...
fs/timerfd.c
浏览文件 @
836f92ad
...
...
@@ -177,7 +177,7 @@ static struct file *timerfd_fget(int fd)
return
file
;
}
asmlinkage
long
sys_timerfd_create
(
int
clockid
,
int
flags
)
SYSCALL_DEFINE2
(
timerfd_create
,
int
,
clockid
,
int
,
flags
)
{
int
ufd
;
struct
timerfd_ctx
*
ctx
;
...
...
@@ -208,9 +208,9 @@ asmlinkage long sys_timerfd_create(int clockid, int flags)
return
ufd
;
}
asmlinkage
long
sys_timerfd_settime
(
int
ufd
,
int
flags
,
const
struct
itimerspec
__user
*
utmr
,
struct
itimerspec
__user
*
otmr
)
SYSCALL_DEFINE4
(
timerfd_settime
,
int
,
ufd
,
int
,
flags
,
const
struct
itimerspec
__user
*
,
utmr
,
struct
itimerspec
__user
*
,
otmr
)
{
struct
file
*
file
;
struct
timerfd_ctx
*
ctx
;
...
...
kernel/futex.c
浏览文件 @
836f92ad
...
...
@@ -1733,9 +1733,8 @@ static int futex_unlock_pi(u32 __user *uaddr, int fshared)
* @head: pointer to the list-head
* @len: length of the list-head, as userspace expects
*/
asmlinkage
long
sys_set_robust_list
(
struct
robust_list_head
__user
*
head
,
size_t
len
)
SYSCALL_DEFINE2
(
set_robust_list
,
struct
robust_list_head
__user
*
,
head
,
size_t
,
len
)
{
if
(
!
futex_cmpxchg_enabled
)
return
-
ENOSYS
;
...
...
@@ -1756,9 +1755,9 @@ sys_set_robust_list(struct robust_list_head __user *head,
* @head_ptr: pointer to a list-head pointer, the kernel fills it in
* @len_ptr: pointer to a length field, the kernel fills in the header size
*/
asmlinkage
long
sys_get_robust_list
(
int
pid
,
struct
robust_list_head
__user
*
__user
*
head_ptr
,
size_t
__user
*
len_ptr
)
SYSCALL_DEFINE3
(
get_robust_list
,
int
,
pid
,
struct
robust_list_head
__user
*
__user
*
,
head_ptr
,
size_t
__user
*
,
len_ptr
)
{
struct
robust_list_head
__user
*
head
;
unsigned
long
ret
;
...
...
kernel/sys.c
浏览文件 @
836f92ad
...
...
@@ -1817,8 +1817,8 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
return
error
;
}
asmlinkage
long
sys_getcpu
(
unsigned
__user
*
cpup
,
unsigned
__user
*
nodep
,
struct
getcpu_cache
__user
*
unused
)
SYSCALL_DEFINE3
(
getcpu
,
unsigned
__user
*
,
cpup
,
unsigned
__user
*
,
nodep
,
struct
getcpu_cache
__user
*
,
unused
)
{
int
err
=
0
;
int
cpu
=
raw_smp_processor_id
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录