Re: [PATCH v2 2/2] sparc: Add architecture support for clone3

From: Arnd Bergmann

Date: Mon Jan 19 2026 - 09:54:14 EST


On Mon, Jan 19, 2026, at 15:47, Ludwig Rydberg wrote:
> Add support for the clone3 system call to the SPARC architectures.
>
> The implementation follows the pattern of the original clone syscall.
> However, instead of explicitly calling kernel_clone, the clone3
> handler calls the generic sys_clone3 handler in kernel/fork.
> In case no stack is provided, the parents stack is reused.
>
> The return value convention for clone3 follows the regular kernel return
> value convention (in contrast to the original clone/fork on SPARC).
>
> Closes: https://github.com/sparclinux/issues/issues/10
> Signed-off-by: Ludwig Rydberg <ludwig.rydberg@xxxxxxxxxxx>

Thanks a lot for addressing this!

Acked-by: Arnd Bergmann <arnd@xxxxxxxx>