wait4(2)/waitid(2): separate copying rusage to userland
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 15 May 2017 00:25:02 +0000 (20:25 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 21 May 2017 17:11:00 +0000 (13:11 -0400)
commitce72a16fa705f960ca2352e95a7c5f4801475e75
tree6dcdf27d851b4c9e50f689611a26f1dfc10ebef0
parent7e95a225901a5d2fd140f14b4302805cecc22da7
wait4(2)/waitid(2): separate copying rusage to userland

New helpers: kernel_waitid() and kernel_wait4().  sys_waitid(),
sys_wait4() and their compat variants switched to those.  Copying
struct rusage to userland is left to syscall itself.  For
compat_sys_wait4() that eliminates the use of set_fs() completely.
For compat_sys_waitid() it's still needed (for siginfo handling);
that will change shortly.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/resource.h
kernel/exit.c
kernel/sys.c