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
938bb9f5
Commit
938bb9f5
authored
Jan 14, 2009
by
Heiko Carstens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CVE-2009-0029] System call wrappers part 28
Signed-off-by:
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
parent
1e7bfb21
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
24 deletions
+21
-24
fs/ioprio.c
fs/ioprio.c
+2
-3
fs/notify/inotify/inotify_user.c
fs/notify/inotify/inotify_user.c
+2
-2
mm/mempolicy.c
mm/mempolicy.c
+11
-13
mm/migrate.c
mm/migrate.c
+4
-4
security/keys/keyctl.c
security/keys/keyctl.c
+2
-2
No files found.
fs/ioprio.c
View file @
938bb9f5
...
@@ -72,7 +72,7 @@ int set_task_ioprio(struct task_struct *task, int ioprio)
...
@@ -72,7 +72,7 @@ int set_task_ioprio(struct task_struct *task, int ioprio)
}
}
EXPORT_SYMBOL_GPL
(
set_task_ioprio
);
EXPORT_SYMBOL_GPL
(
set_task_ioprio
);
asmlinkage
long
sys_ioprio_set
(
int
which
,
int
who
,
int
ioprio
)
SYSCALL_DEFINE3
(
ioprio_set
,
int
,
which
,
int
,
who
,
int
,
ioprio
)
{
{
int
class
=
IOPRIO_PRIO_CLASS
(
ioprio
);
int
class
=
IOPRIO_PRIO_CLASS
(
ioprio
);
int
data
=
IOPRIO_PRIO_DATA
(
ioprio
);
int
data
=
IOPRIO_PRIO_DATA
(
ioprio
);
...
@@ -188,7 +188,7 @@ int ioprio_best(unsigned short aprio, unsigned short bprio)
...
@@ -188,7 +188,7 @@ int ioprio_best(unsigned short aprio, unsigned short bprio)
return
aprio
;
return
aprio
;
}
}
asmlinkage
long
sys_ioprio_get
(
int
which
,
int
who
)
SYSCALL_DEFINE2
(
ioprio_get
,
int
,
which
,
int
,
who
)
{
{
struct
task_struct
*
g
,
*
p
;
struct
task_struct
*
g
,
*
p
;
struct
user_struct
*
user
;
struct
user_struct
*
user
;
...
@@ -252,4 +252,3 @@ asmlinkage long sys_ioprio_get(int which, int who)
...
@@ -252,4 +252,3 @@ asmlinkage long sys_ioprio_get(int which, int who)
read_unlock
(
&
tasklist_lock
);
read_unlock
(
&
tasklist_lock
);
return
ret
;
return
ret
;
}
}
fs/notify/inotify/inotify_user.c
View file @
938bb9f5
...
@@ -576,7 +576,7 @@ static const struct inotify_operations inotify_user_ops = {
...
@@ -576,7 +576,7 @@ static const struct inotify_operations inotify_user_ops = {
.
destroy_watch
=
free_inotify_user_watch
,
.
destroy_watch
=
free_inotify_user_watch
,
};
};
asmlinkage
long
sys_inotify_init1
(
int
flags
)
SYSCALL_DEFINE1
(
inotify_init1
,
int
,
flags
)
{
{
struct
inotify_device
*
dev
;
struct
inotify_device
*
dev
;
struct
inotify_handle
*
ih
;
struct
inotify_handle
*
ih
;
...
@@ -655,7 +655,7 @@ asmlinkage long sys_inotify_init1(int flags)
...
@@ -655,7 +655,7 @@ asmlinkage long sys_inotify_init1(int flags)
return
ret
;
return
ret
;
}
}
asmlinkage
long
sys_inotify_init
(
void
)
SYSCALL_DEFINE0
(
inotify_init
)
{
{
return
sys_inotify_init1
(
0
);
return
sys_inotify_init1
(
0
);
}
}
...
...
mm/mempolicy.c
View file @
938bb9f5
...
@@ -1068,10 +1068,9 @@ static int copy_nodes_to_user(unsigned long __user *mask, unsigned long maxnode,
...
@@ -1068,10 +1068,9 @@ static int copy_nodes_to_user(unsigned long __user *mask, unsigned long maxnode,
return
copy_to_user
(
mask
,
nodes_addr
(
*
nodes
),
copy
)
?
-
EFAULT
:
0
;
return
copy_to_user
(
mask
,
nodes_addr
(
*
nodes
),
copy
)
?
-
EFAULT
:
0
;
}
}
asmlinkage
long
sys_mbind
(
unsigned
long
start
,
unsigned
long
len
,
SYSCALL_DEFINE6
(
mbind
,
unsigned
long
,
start
,
unsigned
long
,
len
,
unsigned
long
mode
,
unsigned
long
,
mode
,
unsigned
long
__user
*
,
nmask
,
unsigned
long
__user
*
nmask
,
unsigned
long
maxnode
,
unsigned
long
,
maxnode
,
unsigned
,
flags
)
unsigned
flags
)
{
{
nodemask_t
nodes
;
nodemask_t
nodes
;
int
err
;
int
err
;
...
@@ -1091,8 +1090,8 @@ asmlinkage long sys_mbind(unsigned long start, unsigned long len,
...
@@ -1091,8 +1090,8 @@ asmlinkage long sys_mbind(unsigned long start, unsigned long len,
}
}
/* Set the process memory policy */
/* Set the process memory policy */
asmlinkage
long
sys_set_mempolicy
(
int
mode
,
unsigned
long
__user
*
nmask
,
SYSCALL_DEFINE3
(
set_mempolicy
,
int
,
mode
,
unsigned
long
__user
*
,
nmask
,
unsigned
long
maxnode
)
unsigned
long
,
maxnode
)
{
{
int
err
;
int
err
;
nodemask_t
nodes
;
nodemask_t
nodes
;
...
@@ -1110,9 +1109,9 @@ asmlinkage long sys_set_mempolicy(int mode, unsigned long __user *nmask,
...
@@ -1110,9 +1109,9 @@ asmlinkage long sys_set_mempolicy(int mode, unsigned long __user *nmask,
return
do_set_mempolicy
(
mode
,
flags
,
&
nodes
);
return
do_set_mempolicy
(
mode
,
flags
,
&
nodes
);
}
}
asmlinkage
long
sys_migrate_pages
(
pid_t
pid
,
unsigned
long
maxnode
,
SYSCALL_DEFINE4
(
migrate_pages
,
pid_t
,
pid
,
unsigned
long
,
maxnode
,
const
unsigned
long
__user
*
old_nodes
,
const
unsigned
long
__user
*
,
old_nodes
,
const
unsigned
long
__user
*
new_nodes
)
const
unsigned
long
__user
*
,
new_nodes
)
{
{
const
struct
cred
*
cred
=
current_cred
(),
*
tcred
;
const
struct
cred
*
cred
=
current_cred
(),
*
tcred
;
struct
mm_struct
*
mm
;
struct
mm_struct
*
mm
;
...
@@ -1185,10 +1184,9 @@ asmlinkage long sys_migrate_pages(pid_t pid, unsigned long maxnode,
...
@@ -1185,10 +1184,9 @@ asmlinkage long sys_migrate_pages(pid_t pid, unsigned long maxnode,
/* Retrieve NUMA policy */
/* Retrieve NUMA policy */
asmlinkage
long
sys_get_mempolicy
(
int
__user
*
policy
,
SYSCALL_DEFINE5
(
get_mempolicy
,
int
__user
*
,
policy
,
unsigned
long
__user
*
nmask
,
unsigned
long
__user
*
,
nmask
,
unsigned
long
,
maxnode
,
unsigned
long
maxnode
,
unsigned
long
,
addr
,
unsigned
long
,
flags
)
unsigned
long
addr
,
unsigned
long
flags
)
{
{
int
err
;
int
err
;
int
uninitialized_var
(
pval
);
int
uninitialized_var
(
pval
);
...
...
mm/migrate.c
View file @
938bb9f5
...
@@ -1055,10 +1055,10 @@ static int do_pages_stat(struct mm_struct *mm, unsigned long nr_pages,
...
@@ -1055,10 +1055,10 @@ static int do_pages_stat(struct mm_struct *mm, unsigned long nr_pages,
* Move a list of pages in the address space of the currently executing
* Move a list of pages in the address space of the currently executing
* process.
* process.
*/
*/
asmlinkage
long
sys_move_pages
(
pid_t
pid
,
unsigned
long
nr_pages
,
SYSCALL_DEFINE6
(
move_pages
,
pid_t
,
pid
,
unsigned
long
,
nr_pages
,
const
void
__user
*
__user
*
pages
,
const
void
__user
*
__user
*
,
pages
,
const
int
__user
*
nodes
,
const
int
__user
*
,
nodes
,
int
__user
*
status
,
int
flags
)
int
__user
*
,
status
,
int
,
flags
)
{
{
const
struct
cred
*
cred
=
current_cred
(),
*
tcred
;
const
struct
cred
*
cred
=
current_cred
(),
*
tcred
;
struct
task_struct
*
task
;
struct
task_struct
*
task
;
...
...
security/keys/keyctl.c
View file @
938bb9f5
...
@@ -1216,8 +1216,8 @@ long keyctl_get_security(key_serial_t keyid,
...
@@ -1216,8 +1216,8 @@ long keyctl_get_security(key_serial_t keyid,
/*
/*
* the key control system call
* the key control system call
*/
*/
asmlinkage
long
sys_keyctl
(
int
option
,
unsigned
long
arg2
,
unsigned
long
arg3
,
SYSCALL_DEFINE5
(
keyctl
,
int
,
option
,
unsigned
long
,
arg2
,
unsigned
long
,
arg3
,
unsigned
long
arg4
,
unsigned
long
arg5
)
unsigned
long
,
arg4
,
unsigned
long
,
arg5
)
{
{
switch
(
option
)
{
switch
(
option
)
{
case
KEYCTL_GET_KEYRING_ID
:
case
KEYCTL_GET_KEYRING_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