forked from luck/tmp_suning_uos_patched
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: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
8d9807b109
commit
a566c28882
|
@ -587,7 +587,11 @@ COMPAT_SYSCALL_DEFINE5(waitid,
|
|||
return ret;
|
||||
|
||||
if (uru) {
|
||||
ret = put_compat_rusage(&ru, 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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user