diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2009-01-14 08:14:09 -0500 |
---|---|---|
committer | Heiko Carstens <heiko.carstens@de.ibm.com> | 2009-01-14 08:15:20 -0500 |
commit | 754fe8d297bfae7b77f7ce866e2fb0c5fb186506 (patch) | |
tree | b2650f728d50791fa86ecd8c49806f51db714bd4 /kernel/exit.c | |
parent | 5add95d4f7cf08f6f62510f19576992912387501 (diff) |
[CVE-2009-0029] System call wrappers part 07
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index fac9b040af2c..08895df0eab3 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -1141,7 +1141,7 @@ NORET_TYPE void complete_and_exit(struct completion *comp, long code) | |||
1141 | 1141 | ||
1142 | EXPORT_SYMBOL(complete_and_exit); | 1142 | EXPORT_SYMBOL(complete_and_exit); |
1143 | 1143 | ||
1144 | asmlinkage long sys_exit(int error_code) | 1144 | SYSCALL_DEFINE1(exit, int, error_code) |
1145 | { | 1145 | { |
1146 | do_exit((error_code&0xff)<<8); | 1146 | do_exit((error_code&0xff)<<8); |
1147 | } | 1147 | } |
@@ -1182,7 +1182,7 @@ do_group_exit(int exit_code) | |||
1182 | * wait4()-ing process will get the correct exit code - even if this | 1182 | * wait4()-ing process will get the correct exit code - even if this |
1183 | * thread is not the thread group leader. | 1183 | * thread is not the thread group leader. |
1184 | */ | 1184 | */ |
1185 | asmlinkage long sys_exit_group(int error_code) | 1185 | SYSCALL_DEFINE1(exit_group, int, error_code) |
1186 | { | 1186 | { |
1187 | do_group_exit((error_code & 0xff) << 8); | 1187 | do_group_exit((error_code & 0xff) << 8); |
1188 | /* NOTREACHED */ | 1188 | /* NOTREACHED */ |
@@ -1795,8 +1795,8 @@ asmlinkage long sys_waitid(int which, pid_t upid, | |||
1795 | return ret; | 1795 | return ret; |
1796 | } | 1796 | } |
1797 | 1797 | ||
1798 | asmlinkage long sys_wait4(pid_t upid, int __user *stat_addr, | 1798 | SYSCALL_DEFINE4(wait4, pid_t, upid, int __user *, stat_addr, |
1799 | int options, struct rusage __user *ru) | 1799 | int, options, struct rusage __user *, ru) |
1800 | { | 1800 | { |
1801 | struct pid *pid = NULL; | 1801 | struct pid *pid = NULL; |
1802 | enum pid_type type; | 1802 | enum pid_type type; |