[PATCH v2 0/1] aarch64: clear ZA state of SME before clone and clone3
Yury Khrustalev
yury.khrustalev@arm.com
Mon Jun 9 12:14:06 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: 0a027674a1
Changes in v2:
- Rebased on recent master.
- v1: https://patchwork.sourceware.org/project/glibc/list/?series=47709
---
Yury Khrustalev (1):
aarch64: clear ZA state of SME before clone and clone3 syscalls
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