Skip to content

Commit b973afe

Browse files
Al Viroarndb
authored andcommitted
alpha: add clone3() support
Since clone3() needs the full register state saved for copying into the child, it needs the same kind of wrapper as fork(), vfork() and clone(). Exact same wrapper works, actually... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Acked-by: Paul E. McKenney <paulmck@kernel.org> Acked-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent 397c66c commit b973afe

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

arch/alpha/kernel/entry.S

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,7 @@ alpha_\name:
811811
fork_like fork
812812
fork_like vfork
813813
fork_like clone
814+
fork_like clone3
814815

815816
.macro sigreturn_like name
816817
.align 4

arch/alpha/kernel/syscalls/syscall.tbl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@
474474
542 common fsmount sys_fsmount
475475
543 common fspick sys_fspick
476476
544 common pidfd_open sys_pidfd_open
477-
# 545 reserved for clone3
477+
545 common clone3 alpha_clone3
478478
546 common close_range sys_close_range
479479
547 common openat2 sys_openat2
480480
548 common pidfd_getfd sys_pidfd_getfd

0 commit comments

Comments
 (0)