2019-07-19 04:21:24

by Paul Walmsley

[permalink] [raw]
Subject: [PATCH] riscv: enable sys_clone3 syscall for rv64


Enable the sys_clone3 syscall for RV64. We simply include the generic
version.

Tested by running the program from

https://lore.kernel.org/lkml/[email protected]/

and verifying that it completes successfully.

Signed-off-by: Paul Walmsley <[email protected]>
Cc: Christian Brauner <[email protected]>
---
arch/riscv/include/uapi/asm/unistd.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/riscv/include/uapi/asm/unistd.h b/arch/riscv/include/uapi/asm/unistd.h
index 0e2eeeb1fd27..13ce76cc5aff 100644
--- a/arch/riscv/include/uapi/asm/unistd.h
+++ b/arch/riscv/include/uapi/asm/unistd.h
@@ -18,6 +18,7 @@
#ifdef __LP64__
#define __ARCH_WANT_NEW_STAT
#define __ARCH_WANT_SET_GET_RLIMIT
+#define __ARCH_WANT_SYS_CLONE3
#endif /* __LP64__ */

#include <asm-generic/unistd.h>
--
2.22.0


2019-07-19 09:01:16

by Christian Brauner

[permalink] [raw]
Subject: Re: [PATCH] riscv: enable sys_clone3 syscall for rv64

On Thu, Jul 18, 2019 at 09:20:01PM -0700, Paul Walmsley wrote:
>
> Enable the sys_clone3 syscall for RV64. We simply include the generic
> version.
>
> Tested by running the program from
>
> https://lore.kernel.org/lkml/[email protected]/
>
> and verifying that it completes successfully.
>
> Signed-off-by: Paul Walmsley <[email protected]>
> Cc: Christian Brauner <[email protected]>

Thank you!

Acked-by: Christian Brauner <[email protected]>

> ---
> arch/riscv/include/uapi/asm/unistd.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/riscv/include/uapi/asm/unistd.h b/arch/riscv/include/uapi/asm/unistd.h
> index 0e2eeeb1fd27..13ce76cc5aff 100644
> --- a/arch/riscv/include/uapi/asm/unistd.h
> +++ b/arch/riscv/include/uapi/asm/unistd.h
> @@ -18,6 +18,7 @@
> #ifdef __LP64__
> #define __ARCH_WANT_NEW_STAT
> #define __ARCH_WANT_SET_GET_RLIMIT
> +#define __ARCH_WANT_SYS_CLONE3
> #endif /* __LP64__ */
>
> #include <asm-generic/unistd.h>
> --
> 2.22.0
>