osf_wait4: switch to kernel_wait4()

... and sanitize copying rusage to userland

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2017-05-14 23:54:33 -04:00
parent 4c48abe91b
commit 92ebce5ac5
3 changed files with 19 additions and 42 deletions

View File

@@ -1639,8 +1639,8 @@ Efault:
return -EFAULT;
}
static long kernel_wait4(pid_t upid, int __user *stat_addr,
int options, struct rusage *ru)
long kernel_wait4(pid_t upid, int __user *stat_addr, int options,
struct rusage *ru)
{
struct wait_opts wo;
struct pid *pid = NULL;