Skip to content

Commit 5518aed

Browse files
Vasily Gorbikheicarst
authored andcommitted
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: Vasily Gorbik <gor@linux.ibm.com> Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
1 parent a963609 commit 5518aed

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎arch/s390/include/asm/unistd.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@
3434
#define __ARCH_WANT_SYS_FORK
3535
#define __ARCH_WANT_SYS_VFORK
3636
#define __ARCH_WANT_SYS_CLONE
37+
#define __ARCH_WANT_SYS_CLONE3
3738

3839
#endif /* _ASM_S390_UNISTD_H_ */

‎arch/s390/kernel/syscalls/syscall.tbl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,4 +437,4 @@
437437
432 common fsmount sys_fsmount sys_fsmount
438438
433 common fspick sys_fspick sys_fspick
439439
434 common pidfd_open sys_pidfd_open sys_pidfd_open
440-
# 435 reserved for clone3
440+
435 common clone3 sys_clone3 sys_clone3

0 commit comments

Comments
 (0)