Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Linux-御风守护者
linux
提交
5a8a82b1
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,发现更多精彩内容 >>
提交
5a8a82b1
编写于
1月 14, 2009
作者:
H
Heiko Carstens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CVE-2009-0029] System call wrappers part 23
Signed-off-by:
N
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
上级
3e0fa65f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
16 addition
and
16 deletion
+16
-16
fs/eventpoll.c
fs/eventpoll.c
+9
-9
fs/select.c
fs/select.c
+4
-4
kernel/sys.c
kernel/sys.c
+3
-3
未找到文件。
fs/eventpoll.c
浏览文件 @
5a8a82b1
...
...
@@ -1110,7 +1110,7 @@ static int ep_poll(struct eventpoll *ep, struct epoll_event __user *events,
/*
* Open an eventpoll file descriptor.
*/
asmlinkage
long
sys_epoll_create1
(
int
flags
)
SYSCALL_DEFINE1
(
epoll_create1
,
int
,
flags
)
{
int
error
,
fd
=
-
1
;
struct
eventpoll
*
ep
;
...
...
@@ -1150,7 +1150,7 @@ asmlinkage long sys_epoll_create1(int flags)
return
fd
;
}
asmlinkage
long
sys_epoll_create
(
int
size
)
SYSCALL_DEFINE1
(
epoll_create
,
int
,
size
)
{
if
(
size
<
0
)
return
-
EINVAL
;
...
...
@@ -1163,8 +1163,8 @@ asmlinkage long sys_epoll_create(int size)
* the eventpoll file that enables the insertion/removal/change of
* file descriptors inside the interest set.
*/
asmlinkage
long
sys_epoll_ctl
(
int
epfd
,
int
op
,
int
fd
,
struct
epoll_event
__user
*
event
)
SYSCALL_DEFINE4
(
epoll_ctl
,
int
,
epfd
,
int
,
op
,
int
,
fd
,
struct
epoll_event
__user
*
,
event
)
{
int
error
;
struct
file
*
file
,
*
tfile
;
...
...
@@ -1261,8 +1261,8 @@ asmlinkage long sys_epoll_ctl(int epfd, int op, int fd,
* Implement the event wait interface for the eventpoll file. It is the kernel
* part of the user space epoll_wait(2).
*/
asmlinkage
long
sys_epoll_wait
(
int
epfd
,
struct
epoll_event
__user
*
events
,
int
maxevents
,
int
timeout
)
SYSCALL_DEFINE4
(
epoll_wait
,
int
,
epfd
,
struct
epoll_event
__user
*
,
events
,
int
,
maxevents
,
int
,
timeout
)
{
int
error
;
struct
file
*
file
;
...
...
@@ -1319,9 +1319,9 @@ asmlinkage long sys_epoll_wait(int epfd, struct epoll_event __user *events,
* Implement the event wait interface for the eventpoll file. It is the kernel
* part of the user space epoll_pwait(2).
*/
asmlinkage
long
sys_epoll_pwait
(
int
epfd
,
struct
epoll_event
__user
*
events
,
int
maxevents
,
int
timeout
,
const
sigset_t
__user
*
sigmask
,
size_t
sigsetsize
)
SYSCALL_DEFINE6
(
epoll_pwait
,
int
,
epfd
,
struct
epoll_event
__user
*
,
events
,
int
,
maxevents
,
int
,
timeout
,
const
sigset_t
__user
*
,
sigmask
,
size_t
,
sigsetsize
)
{
int
error
;
sigset_t
ksigmask
,
sigsaved
;
...
...
fs/select.c
浏览文件 @
5a8a82b1
...
...
@@ -557,8 +557,8 @@ int core_sys_select(int n, fd_set __user *inp, fd_set __user *outp,
return
ret
;
}
asmlinkage
long
sys_select
(
int
n
,
fd_set
__user
*
inp
,
fd_set
__user
*
outp
,
fd_set
__user
*
exp
,
struct
timeval
__user
*
tvp
)
SYSCALL_DEFINE5
(
select
,
int
,
n
,
fd_set
__user
*
,
inp
,
fd_set
__user
*
,
outp
,
fd_set
__user
*
,
exp
,
struct
timeval
__user
*
,
tvp
)
{
struct
timespec
end_time
,
*
to
=
NULL
;
struct
timeval
tv
;
...
...
@@ -854,8 +854,8 @@ static long do_restart_poll(struct restart_block *restart_block)
return
ret
;
}
asmlinkage
long
sys_poll
(
struct
pollfd
__user
*
ufds
,
unsigned
int
nfds
,
long
timeout_msecs
)
SYSCALL_DEFINE3
(
poll
,
struct
pollfd
__user
*
,
ufds
,
unsigned
int
,
nfds
,
long
,
timeout_msecs
)
{
struct
timespec
end_time
,
*
to
=
NULL
;
int
ret
;
...
...
kernel/sys.c
浏览文件 @
5a8a82b1
...
...
@@ -1406,7 +1406,7 @@ asmlinkage long sys_newuname(struct new_utsname __user * name)
return
errno
;
}
asmlinkage
long
sys_sethostname
(
char
__user
*
name
,
int
len
)
SYSCALL_DEFINE2
(
sethostname
,
char
__user
*
,
name
,
int
,
len
)
{
int
errno
;
char
tmp
[
__NEW_UTS_LEN
];
...
...
@@ -1430,7 +1430,7 @@ asmlinkage long sys_sethostname(char __user *name, int len)
#ifdef __ARCH_WANT_SYS_GETHOSTNAME
asmlinkage
long
sys_gethostname
(
char
__user
*
name
,
int
len
)
SYSCALL_DEFINE2
(
gethostname
,
char
__user
*
,
name
,
int
,
len
)
{
int
i
,
errno
;
struct
new_utsname
*
u
;
...
...
@@ -1455,7 +1455,7 @@ asmlinkage long sys_gethostname(char __user *name, int len)
* Only setdomainname; getdomainname can be implemented by calling
* uname()
*/
asmlinkage
long
sys_setdomainname
(
char
__user
*
name
,
int
len
)
SYSCALL_DEFINE2
(
setdomainname
,
char
__user
*
,
name
,
int
,
len
)
{
int
errno
;
char
tmp
[
__NEW_UTS_LEN
];
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录