[PATCH 0/1] aarch64: clear ZA state of SME before clone and clone3

Yury Khrustalev yury.khrustalev@arm.com
Thu May 22 11:48:27 GMT 2025


Call __libc_arm_za_disable before syscall to clear ZA state of SME for the
clone and clone3 syscalls.

I had to implement test for clone3() in a but hacky way, hopefully it's OK.

Checked on AArch64 and no regressions found. OK for trunk?

base commit: 4052d99ead

Yury Khrustalev (1):
  aarch64: clear ZA state of SME before clone syscall

 sysdeps/aarch64/Makefile                 |   7 ++
 sysdeps/aarch64/tst-sme-clone.c          |  93 +++++++++++++++
 sysdeps/aarch64/tst-sme-clone3.c         | 143 +++++++++++++++++++++++
 sysdeps/aarch64/tst-sme-helper.h         |  32 +++++
 sysdeps/aarch64/tst-sme-za-state.c       |  38 +-----
 sysdeps/unix/sysv/linux/aarch64/clone.S  |  11 ++
 sysdeps/unix/sysv/linux/aarch64/clone3.S |  11 ++
 7 files changed, 301 insertions(+), 34 deletions(-)
 create mode 100644 sysdeps/aarch64/tst-sme-clone.c
 create mode 100644 sysdeps/aarch64/tst-sme-clone3.c

-- 
2.39.5



More information about the Libc-alpha mailing list