[PATCH v4 2/2] manual: add architecture specific note on clone and clone3 syscalls

Yury Khrustalev yury.khrustalev@arm.com
Tue Sep 23 13:18:04 GMT 2025


Hi Adhemerval,

On Tue, Sep 23, 2025 at 09:27:41AM -0300, Adhemerval Zanella Netto wrote:
> 
> > +On AArch64 systems with enabled SME extension, system calls with @var{sysno}
> > +equal to @code{SYS_clone} or @code{SYS_clone3} must be preceded with a call
> > +to the @code{__arm_za_disable()} function in order to disable ZA state of SME
> > +(see @url{https://github.com/ARM-software/abi-aa/blob/main/aapcs64/aapcs64.rst}
> > +for details) . When the @code{clone()} wrapper provided by @theglibc{} is used,
> > +this would happen automatically.
> 
> I am not sure if this adds much w.r.t to glibc usage: clone/clone3 is not really
> usable through syscall() interface so callers will need to bypass the libc to
> correctly use these kernel interfaces. 

This has already been discussed in this thread. This patch will be
removed from this series. All we need to do here is to merge another
patch:
https://inbox.sourceware.org/libc-alpha/20250916090016.561516-1-yury.khrustalev@arm.com/

I've been waiting for it to be approved.

Thanks,
Yury



More information about the Libc-alpha mailing list