Commit 5518aed8 authored by Vasily Gorbik's avatar Vasily Gorbik Committed by Heiko Carstens

s390: wire up clone3 system call

Tested (64-bit and compat mode) using program from
http://lkml.kernel.org/r/20190604212930.jaaztvkent32b7d3@brauner.io
with the following:
       return syscall(__NR_clone, flags, 0, pidfd, 0, 0);
changed to:
       return syscall(__NR_clone, 0, flags, pidfd, 0, 0);
due to CLONE_BACKWARDS2.
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
Acked-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
parent a963609e
...@@ -34,5 +34,6 @@ ...@@ -34,5 +34,6 @@
#define __ARCH_WANT_SYS_FORK #define __ARCH_WANT_SYS_FORK
#define __ARCH_WANT_SYS_VFORK #define __ARCH_WANT_SYS_VFORK
#define __ARCH_WANT_SYS_CLONE #define __ARCH_WANT_SYS_CLONE
#define __ARCH_WANT_SYS_CLONE3
#endif /* _ASM_S390_UNISTD_H_ */ #endif /* _ASM_S390_UNISTD_H_ */
...@@ -437,4 +437,4 @@ ...@@ -437,4 +437,4 @@
432 common fsmount sys_fsmount sys_fsmount 432 common fsmount sys_fsmount sys_fsmount
433 common fspick sys_fspick sys_fspick 433 common fspick sys_fspick sys_fspick
434 common pidfd_open sys_pidfd_open sys_pidfd_open 434 common pidfd_open sys_pidfd_open sys_pidfd_open
# 435 reserved for clone3 435 common clone3 sys_clone3 sys_clone3
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment