projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d9807b
)
x32: fix waitid()
author
Al Viro
<viro@zeniv.linux.org.uk>
Mon, 24 Dec 2012 04:14:49 +0000
(23:14 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 26 Dec 2012 06:15:03 +0000
(
01:15
-0500)
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>
kernel/compat.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/compat.c
b/kernel/compat.c
index 0770ac57c62b117f857ba8f0aaaeb5dc1d5ab80d..e5cc33c7122c2399f10085f5beff6afa61c0ae7f 100644
(file)
--- a/
kernel/compat.c
+++ b/
kernel/compat.c
@@
-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;
}