Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
002c8976
K
Kernel
项目概览
openeuler
/
Kernel
12 个月 前同步成功
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
002c8976
编写于
1月 14, 2009
作者:
H
Heiko Carstens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CVE-2009-0029] System call wrappers part 16
Signed-off-by:
N
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
上级
a26eab24
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
17 addition
and
17 deletion
+17
-17
fs/aio.c
fs/aio.c
+11
-11
fs/locks.c
fs/locks.c
+1
-1
fs/open.c
fs/open.c
+1
-1
fs/read_write.c
fs/read_write.c
+2
-2
fs/stat.c
fs/stat.c
+2
-2
未找到文件。
fs/aio.c
浏览文件 @
002c8976
...
...
@@ -1270,7 +1270,7 @@ static void io_destroy(struct kioctx *ioctx)
* pointer is passed for ctxp. Will fail with -ENOSYS if not
* implemented.
*/
asmlinkage
long
sys_io_setup
(
unsigned
nr_events
,
aio_context_t
__user
*
ctxp
)
SYSCALL_DEFINE2
(
io_setup
,
unsigned
,
nr_events
,
aio_context_t
__user
*
,
ctxp
)
{
struct
kioctx
*
ioctx
=
NULL
;
unsigned
long
ctx
;
...
...
@@ -1308,7 +1308,7 @@ asmlinkage long sys_io_setup(unsigned nr_events, aio_context_t __user *ctxp)
* implemented. May fail with -EFAULT if the context pointed to
* is invalid.
*/
asmlinkage
long
sys_io_destroy
(
aio_context_t
ctx
)
SYSCALL_DEFINE1
(
io_destroy
,
aio_context_t
,
ctx
)
{
struct
kioctx
*
ioctx
=
lookup_ioctx
(
ctx
);
if
(
likely
(
NULL
!=
ioctx
))
{
...
...
@@ -1662,8 +1662,8 @@ static int io_submit_one(struct kioctx *ctx, struct iocb __user *user_iocb,
* are available to queue any iocbs. Will return 0 if nr is 0. Will
* fail with -ENOSYS if not implemented.
*/
asmlinkage
long
sys_io_submit
(
aio_context_t
ctx_id
,
long
nr
,
struct
iocb
__user
*
__user
*
iocbpp
)
SYSCALL_DEFINE3
(
io_submit
,
aio_context_t
,
ctx_id
,
long
,
nr
,
struct
iocb
__user
*
__user
*
,
iocbpp
)
{
struct
kioctx
*
ctx
;
long
ret
=
0
;
...
...
@@ -1737,8 +1737,8 @@ static struct kiocb *lookup_kiocb(struct kioctx *ctx, struct iocb __user *iocb,
* invalid. May fail with -EAGAIN if the iocb specified was not
* cancelled. Will fail with -ENOSYS if not implemented.
*/
asmlinkage
long
sys_io_cancel
(
aio_context_t
ctx_id
,
struct
iocb
__user
*
iocb
,
struct
io_event
__user
*
result
)
SYSCALL_DEFINE3
(
io_cancel
,
aio_context_t
,
ctx_id
,
struct
iocb
__user
*
,
iocb
,
struct
io_event
__user
*
,
result
)
{
int
(
*
cancel
)(
struct
kiocb
*
iocb
,
struct
io_event
*
res
);
struct
kioctx
*
ctx
;
...
...
@@ -1799,11 +1799,11 @@ asmlinkage long sys_io_cancel(aio_context_t ctx_id, struct iocb __user *iocb,
* will be updated if not NULL and the operation blocks. Will fail
* with -ENOSYS if not implemented.
*/
asmlinkage
long
sys_io_getevents
(
aio_context_t
ctx_id
,
long
min_nr
,
long
nr
,
struct
io_event
__user
*
events
,
struct
timespec
__user
*
timeout
)
SYSCALL_DEFINE5
(
io_getevents
,
aio_context_t
,
ctx_id
,
long
,
min_nr
,
long
,
nr
,
struct
io_event
__user
*
,
events
,
struct
timespec
__user
*
,
timeout
)
{
struct
kioctx
*
ioctx
=
lookup_ioctx
(
ctx_id
);
long
ret
=
-
EINVAL
;
...
...
fs/locks.c
浏览文件 @
002c8976
...
...
@@ -1564,7 +1564,7 @@ EXPORT_SYMBOL(flock_lock_file_wait);
* %LOCK_MAND can be combined with %LOCK_READ or %LOCK_WRITE to allow other
* processes read and write access respectively.
*/
asmlinkage
long
sys_flock
(
unsigned
int
fd
,
unsigned
int
cmd
)
SYSCALL_DEFINE2
(
flock
,
unsigned
int
,
fd
,
unsigned
int
,
cmd
)
{
struct
file
*
filp
;
struct
file_lock
*
lock
;
...
...
fs/open.c
浏览文件 @
002c8976
...
...
@@ -1081,7 +1081,7 @@ asmlinkage long sys_openat(int dfd, const char __user *filename, int flags,
* For backward compatibility? Maybe this should be moved
* into arch/i386 instead?
*/
asmlinkage
long
sys_creat
(
const
char
__user
*
pathname
,
int
mode
)
SYSCALL_DEFINE2
(
creat
,
const
char
__user
*
,
pathname
,
int
,
mode
)
{
return
sys_open
(
pathname
,
O_CREAT
|
O_WRONLY
|
O_TRUNC
,
mode
);
}
...
...
fs/read_write.c
浏览文件 @
002c8976
...
...
@@ -828,7 +828,7 @@ static ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos,
return
retval
;
}
asmlinkage
long
sys_sendfile
(
int
out_fd
,
int
in_fd
,
off_t
__user
*
offset
,
size_t
count
)
SYSCALL_DEFINE4
(
sendfile
,
int
,
out_fd
,
int
,
in_fd
,
off_t
__user
*
,
offset
,
size_t
,
count
)
{
loff_t
pos
;
off_t
off
;
...
...
@@ -847,7 +847,7 @@ asmlinkage long sys_sendfile(int out_fd, int in_fd, off_t __user *offset, size_t
return
do_sendfile
(
out_fd
,
in_fd
,
NULL
,
count
,
0
);
}
asmlinkage
long
sys_sendfile64
(
int
out_fd
,
int
in_fd
,
loff_t
__user
*
offset
,
size_t
count
)
SYSCALL_DEFINE4
(
sendfile64
,
int
,
out_fd
,
int
,
in_fd
,
loff_t
__user
*
,
offset
,
size_t
,
count
)
{
loff_t
pos
;
ssize_t
ret
;
...
...
fs/stat.c
浏览文件 @
002c8976
...
...
@@ -320,8 +320,8 @@ asmlinkage long sys_readlinkat(int dfd, const char __user *pathname,
return
error
;
}
asmlinkage
long
sys_readlink
(
const
char
__user
*
path
,
char
__user
*
buf
,
int
bufsiz
)
SYSCALL_DEFINE3
(
readlink
,
const
char
__user
*
,
path
,
char
__user
*
,
buf
,
int
,
bufsiz
)
{
return
sys_readlinkat
(
AT_FDCWD
,
path
,
buf
,
bufsiz
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录