powerpc: Wire up clone3 syscall
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 22 Jul 2019 12:26:56 +0000 (22:26 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 28 Jul 2019 23:34:27 +0000 (09:34 +1000)
commitcee3536d24a1d5db66b9f68c3ece0af128187ab4
treecaeb86d802caa89975cbd86fb1f83ff5ff7fb191
parent609488bc979f99f805f34e9a32c1e3b71179d10b
powerpc: Wire up clone3 syscall

Wire up the new clone3 syscall added in commit 7f192e3cd316 ("fork:
add clone3").

This requires a ppc_clone3 wrapper, in order to save the non-volatile
GPRs before calling into the generic syscall code. Otherwise we hit
the BUG_ON in CHECK_FULL_REGS in copy_thread().

Lightly tested using Christian's test code on a Power8 LE VM.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: Christian Brauner <christian@brauner.io>
Link: https://lore.kernel.org/r/20190724140259.23554-1-mpe@ellerman.id.au
arch/powerpc/include/asm/unistd.h
arch/powerpc/kernel/entry_32.S
arch/powerpc/kernel/entry_64.S
arch/powerpc/kernel/syscalls/syscall.tbl