Commit a566c288 authored by Al Viro's avatar Al Viro

x32: fix waitid()

It needs 64bit rusage and 32bit siginfo.  glibc never calls it with
non-NULL rusage pointer, or we would've seen breakage already...
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 8d9807b1
......@@ -587,6 +587,10 @@ COMPAT_SYSCALL_DEFINE5(waitid,
return ret;
if (uru) {
/* sys_waitid() overwrites everything in ru */
if (COMPAT_USE_64BIT_TIME)
ret = copy_to_user(uru, &ru, sizeof(ru));
else
ret = put_compat_rusage(&ru, uru);
if (ret)
return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment