Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
5a8a82b1
Commit
5a8a82b1
authored
Jan 14, 2009
by
Heiko Carstens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CVE-2009-0029] System call wrappers part 23
Signed-off-by:
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
parent
3e0fa65f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
16 deletions
+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
No files found.
fs/eventpoll.c
View file @
5a8a82b1
...
@@ -1110,7 +1110,7 @@ static int ep_poll(struct eventpoll *ep, struct epoll_event __user *events,
...
@@ -1110,7 +1110,7 @@ static int ep_poll(struct eventpoll *ep, struct epoll_event __user *events,
/*
/*
* Open an eventpoll file descriptor.
* Open an eventpoll file descriptor.
*/
*/
asmlinkage
long
sys_epoll_create1
(
int
flags
)
SYSCALL_DEFINE1
(
epoll_create1
,
int
,
flags
)
{
{
int
error
,
fd
=
-
1
;
int
error
,
fd
=
-
1
;
struct
eventpoll
*
ep
;
struct
eventpoll
*
ep
;
...
@@ -1150,7 +1150,7 @@ asmlinkage long sys_epoll_create1(int flags)
...
@@ -1150,7 +1150,7 @@ asmlinkage long sys_epoll_create1(int flags)
return
fd
;
return
fd
;
}
}
asmlinkage
long
sys_epoll_create
(
int
size
)
SYSCALL_DEFINE1
(
epoll_create
,
int
,
size
)
{
{
if
(
size
<
0
)
if
(
size
<
0
)
return
-
EINVAL
;
return
-
EINVAL
;
...
@@ -1163,8 +1163,8 @@ asmlinkage long sys_epoll_create(int size)
...
@@ -1163,8 +1163,8 @@ asmlinkage long sys_epoll_create(int size)
* the eventpoll file that enables the insertion/removal/change of
* the eventpoll file that enables the insertion/removal/change of
* file descriptors inside the interest set.
* file descriptors inside the interest set.
*/
*/
asmlinkage
long
sys_epoll_ctl
(
int
epfd
,
int
op
,
int
fd
,
SYSCALL_DEFINE4
(
epoll_ctl
,
int
,
epfd
,
int
,
op
,
int
,
fd
,
struct
epoll_event
__user
*
event
)
struct
epoll_event
__user
*
,
event
)
{
{
int
error
;
int
error
;
struct
file
*
file
,
*
tfile
;
struct
file
*
file
,
*
tfile
;
...
@@ -1261,8 +1261,8 @@ asmlinkage long sys_epoll_ctl(int epfd, int op, int fd,
...
@@ -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
* Implement the event wait interface for the eventpoll file. It is the kernel
* part of the user space epoll_wait(2).
* part of the user space epoll_wait(2).
*/
*/
asmlinkage
long
sys_epoll_wait
(
int
epfd
,
struct
epoll_event
__user
*
events
,
SYSCALL_DEFINE4
(
epoll_wait
,
int
,
epfd
,
struct
epoll_event
__user
*
,
events
,
int
maxevents
,
int
timeout
)
int
,
maxevents
,
int
,
timeout
)
{
{
int
error
;
int
error
;
struct
file
*
file
;
struct
file
*
file
;
...
@@ -1319,9 +1319,9 @@ asmlinkage long sys_epoll_wait(int epfd, struct epoll_event __user *events,
...
@@ -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
* Implement the event wait interface for the eventpoll file. It is the kernel
* part of the user space epoll_pwait(2).
* part of the user space epoll_pwait(2).
*/
*/
asmlinkage
long
sys_epoll_pwait
(
int
epfd
,
struct
epoll_event
__user
*
events
,
SYSCALL_DEFINE6
(
epoll_pwait
,
int
,
epfd
,
struct
epoll_event
__user
*
,
events
,
int
maxevents
,
int
timeout
,
const
sigset_t
__user
*
sigmask
,
int
,
maxevents
,
int
,
timeout
,
const
sigset_t
__user
*
,
sigmask
,
size_t
sigsetsize
)
size_t
,
sigsetsize
)
{
{
int
error
;
int
error
;
sigset_t
ksigmask
,
sigsaved
;
sigset_t
ksigmask
,
sigsaved
;
...
...
fs/select.c
View file @
5a8a82b1
...
@@ -557,8 +557,8 @@ int core_sys_select(int n, fd_set __user *inp, fd_set __user *outp,
...
@@ -557,8 +557,8 @@ int core_sys_select(int n, fd_set __user *inp, fd_set __user *outp,
return
ret
;
return
ret
;
}
}
asmlinkage
long
sys_select
(
int
n
,
fd_set
__user
*
inp
,
fd_set
__user
*
outp
,
SYSCALL_DEFINE5
(
select
,
int
,
n
,
fd_set
__user
*
,
inp
,
fd_set
__user
*
,
outp
,
fd_set
__user
*
exp
,
struct
timeval
__user
*
tvp
)
fd_set
__user
*
,
exp
,
struct
timeval
__user
*
,
tvp
)
{
{
struct
timespec
end_time
,
*
to
=
NULL
;
struct
timespec
end_time
,
*
to
=
NULL
;
struct
timeval
tv
;
struct
timeval
tv
;
...
@@ -854,8 +854,8 @@ static long do_restart_poll(struct restart_block *restart_block)
...
@@ -854,8 +854,8 @@ static long do_restart_poll(struct restart_block *restart_block)
return
ret
;
return
ret
;
}
}
asmlinkage
long
sys_poll
(
struct
pollfd
__user
*
ufds
,
unsigned
int
nfds
,
SYSCALL_DEFINE3
(
poll
,
struct
pollfd
__user
*
,
ufds
,
unsigned
int
,
nfds
,
long
timeout_msecs
)
long
,
timeout_msecs
)
{
{
struct
timespec
end_time
,
*
to
=
NULL
;
struct
timespec
end_time
,
*
to
=
NULL
;
int
ret
;
int
ret
;
...
...
kernel/sys.c
View file @
5a8a82b1
...
@@ -1406,7 +1406,7 @@ asmlinkage long sys_newuname(struct new_utsname __user * name)
...
@@ -1406,7 +1406,7 @@ asmlinkage long sys_newuname(struct new_utsname __user * name)
return
errno
;
return
errno
;
}
}
asmlinkage
long
sys_sethostname
(
char
__user
*
name
,
int
len
)
SYSCALL_DEFINE2
(
sethostname
,
char
__user
*
,
name
,
int
,
len
)
{
{
int
errno
;
int
errno
;
char
tmp
[
__NEW_UTS_LEN
];
char
tmp
[
__NEW_UTS_LEN
];
...
@@ -1430,7 +1430,7 @@ asmlinkage long sys_sethostname(char __user *name, int len)
...
@@ -1430,7 +1430,7 @@ asmlinkage long sys_sethostname(char __user *name, int len)
#ifdef __ARCH_WANT_SYS_GETHOSTNAME
#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
;
int
i
,
errno
;
struct
new_utsname
*
u
;
struct
new_utsname
*
u
;
...
@@ -1455,7 +1455,7 @@ asmlinkage long sys_gethostname(char __user *name, int len)
...
@@ -1455,7 +1455,7 @@ asmlinkage long sys_gethostname(char __user *name, int len)
* Only setdomainname; getdomainname can be implemented by calling
* Only setdomainname; getdomainname can be implemented by calling
* uname()
* uname()
*/
*/
asmlinkage
long
sys_setdomainname
(
char
__user
*
name
,
int
len
)
SYSCALL_DEFINE2
(
setdomainname
,
char
__user
*
,
name
,
int
,
len
)
{
{
int
errno
;
int
errno
;
char
tmp
[
__NEW_UTS_LEN
];
char
tmp
[
__NEW_UTS_LEN
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment