alpha: fix osf_wait4() breakage
authorAl Viro <viro@ZenIV.linux.org.uk>
Sun, 22 Jul 2018 14:07:11 +0000 (15:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Jul 2018 09:25:11 +0000 (11:25 +0200)
commitb12c7d0847e224301fb2323b5a85d866ead87199
treecfdc38571cf5ddf6d1fa33faf000a7e118161716
parent78cdeb665fb1f4cdc8fdbb95c584f916ba11f0f1
alpha: fix osf_wait4() breakage

commit f88a333b44318643282b8acc92af90deda441f5e upstream.

kernel_wait4() expects a userland address for status - it's only
rusage that goes as a kernel one (and needs a copyout afterwards)

[ Also, fix the prototype of kernel_wait4() to have that __user
  annotation   - Linus ]

Fixes: 92ebce5ac55d ("osf_wait4: switch to kernel_wait4()")
Cc: stable@kernel.org # v4.13+
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/alpha/kernel/osf_sys.c
include/linux/sched/task.h