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
nexedi
linux
Commits
836f92ad
Commit
836f92ad
authored
Jan 14, 2009
by
Heiko Carstens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CVE-2009-0029] System call wrappers part 31
Signed-off-by:
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
parent
6559eed8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
22 deletions
+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
No files found.
fs/signalfd.c
View file @
836f92ad
...
@@ -205,8 +205,8 @@ static const struct file_operations signalfd_fops = {
...
@@ -205,8 +205,8 @@ static const struct file_operations signalfd_fops = {
.
read
=
signalfd_read
,
.
read
=
signalfd_read
,
};
};
asmlinkage
long
sys_signalfd4
(
int
ufd
,
sigset_t
__user
*
user_mask
,
SYSCALL_DEFINE4
(
signalfd4
,
int
,
ufd
,
sigset_t
__user
*
,
user_mask
,
size_t
sizemask
,
int
flags
)
size_t
,
sizemask
,
int
,
flags
)
{
{
sigset_t
sigmask
;
sigset_t
sigmask
;
struct
signalfd_ctx
*
ctx
;
struct
signalfd_ctx
*
ctx
;
...
@@ -259,8 +259,8 @@ asmlinkage long sys_signalfd4(int ufd, sigset_t __user *user_mask,
...
@@ -259,8 +259,8 @@ asmlinkage long sys_signalfd4(int ufd, sigset_t __user *user_mask,
return
ufd
;
return
ufd
;
}
}
asmlinkage
long
sys_signalfd
(
int
ufd
,
sigset_t
__user
*
user_mask
,
SYSCALL_DEFINE3
(
signalfd
,
int
,
ufd
,
sigset_t
__user
*
,
user_mask
,
size_t
sizemask
)
size_t
,
sizemask
)
{
{
return
sys_signalfd4
(
ufd
,
user_mask
,
sizemask
,
0
);
return
sys_signalfd4
(
ufd
,
user_mask
,
sizemask
,
0
);
}
}
fs/splice.c
View file @
836f92ad
...
@@ -1435,8 +1435,8 @@ static long vmsplice_to_pipe(struct file *file, const struct iovec __user *iov,
...
@@ -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().
* 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
,
SYSCALL_DEFINE4
(
vmsplice
,
int
,
fd
,
const
struct
iovec
__user
*
,
iov
,
unsigned
long
nr_segs
,
unsigned
int
flags
)
unsigned
long
,
nr_segs
,
unsigned
int
,
flags
)
{
{
struct
file
*
file
;
struct
file
*
file
;
long
error
;
long
error
;
...
@@ -1461,9 +1461,9 @@ asmlinkage long sys_vmsplice(int fd, const struct iovec __user *iov,
...
@@ -1461,9 +1461,9 @@ asmlinkage long sys_vmsplice(int fd, const struct iovec __user *iov,
return
error
;
return
error
;
}
}
asmlinkage
long
sys_splice
(
int
fd_in
,
loff_t
__user
*
off_in
,
SYSCALL_DEFINE6
(
splice
,
int
,
fd_in
,
loff_t
__user
*
,
off_in
,
int
fd_out
,
loff_t
__user
*
off_out
,
int
,
fd_out
,
loff_t
__user
*
,
off_out
,
size_t
len
,
unsigned
int
flags
)
size_t
,
len
,
unsigned
int
,
flags
)
{
{
long
error
;
long
error
;
struct
file
*
in
,
*
out
;
struct
file
*
in
,
*
out
;
...
@@ -1685,7 +1685,7 @@ static long do_tee(struct file *in, struct file *out, size_t len,
...
@@ -1685,7 +1685,7 @@ static long do_tee(struct file *in, struct file *out, size_t len,
return
ret
;
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
;
struct
file
*
in
;
int
error
,
fput_in
;
int
error
,
fput_in
;
...
...
fs/timerfd.c
View file @
836f92ad
...
@@ -177,7 +177,7 @@ static struct file *timerfd_fget(int fd)
...
@@ -177,7 +177,7 @@ static struct file *timerfd_fget(int fd)
return
file
;
return
file
;
}
}
asmlinkage
long
sys_timerfd_create
(
int
clockid
,
int
flags
)
SYSCALL_DEFINE2
(
timerfd_create
,
int
,
clockid
,
int
,
flags
)
{
{
int
ufd
;
int
ufd
;
struct
timerfd_ctx
*
ctx
;
struct
timerfd_ctx
*
ctx
;
...
@@ -208,9 +208,9 @@ asmlinkage long sys_timerfd_create(int clockid, int flags)
...
@@ -208,9 +208,9 @@ asmlinkage long sys_timerfd_create(int clockid, int flags)
return
ufd
;
return
ufd
;
}
}
asmlinkage
long
sys_timerfd_settime
(
int
ufd
,
int
flags
,
SYSCALL_DEFINE4
(
timerfd_settime
,
int
,
ufd
,
int
,
flags
,
const
struct
itimerspec
__user
*
utmr
,
const
struct
itimerspec
__user
*
,
utmr
,
struct
itimerspec
__user
*
otmr
)
struct
itimerspec
__user
*
,
otmr
)
{
{
struct
file
*
file
;
struct
file
*
file
;
struct
timerfd_ctx
*
ctx
;
struct
timerfd_ctx
*
ctx
;
...
...
kernel/futex.c
View file @
836f92ad
...
@@ -1733,9 +1733,8 @@ static int futex_unlock_pi(u32 __user *uaddr, int fshared)
...
@@ -1733,9 +1733,8 @@ static int futex_unlock_pi(u32 __user *uaddr, int fshared)
* @head: pointer to the list-head
* @head: pointer to the list-head
* @len: length of the list-head, as userspace expects
* @len: length of the list-head, as userspace expects
*/
*/
asmlinkage
long
SYSCALL_DEFINE2
(
set_robust_list
,
struct
robust_list_head
__user
*
,
head
,
sys_set_robust_list
(
struct
robust_list_head
__user
*
head
,
size_t
,
len
)
size_t
len
)
{
{
if
(
!
futex_cmpxchg_enabled
)
if
(
!
futex_cmpxchg_enabled
)
return
-
ENOSYS
;
return
-
ENOSYS
;
...
@@ -1756,9 +1755,9 @@ sys_set_robust_list(struct robust_list_head __user *head,
...
@@ -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
* @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
* @len_ptr: pointer to a length field, the kernel fills in the header size
*/
*/
asmlinkage
long
SYSCALL_DEFINE3
(
get_robust_list
,
int
,
pid
,
sys_get_robust_list
(
int
pid
,
struct
robust_list_head
__user
*
__user
*
head_ptr
,
struct
robust_list_head
__user
*
__user
*
,
head_ptr
,
size_t
__user
*
len_ptr
)
size_t
__user
*
,
len_ptr
)
{
{
struct
robust_list_head
__user
*
head
;
struct
robust_list_head
__user
*
head
;
unsigned
long
ret
;
unsigned
long
ret
;
...
...
kernel/sys.c
View file @
836f92ad
...
@@ -1817,8 +1817,8 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
...
@@ -1817,8 +1817,8 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
return
error
;
return
error
;
}
}
asmlinkage
long
sys_getcpu
(
unsigned
__user
*
cpup
,
unsigned
__user
*
nodep
,
SYSCALL_DEFINE3
(
getcpu
,
unsigned
__user
*
,
cpup
,
unsigned
__user
*
,
nodep
,
struct
getcpu_cache
__user
*
unused
)
struct
getcpu_cache
__user
*
,
unused
)
{
{
int
err
=
0
;
int
err
=
0
;
int
cpu
=
raw_smp_processor_id
();
int
cpu
=
raw_smp_processor_id
();
...
...
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