[PATCH v2 5/6] aarch64: Add sysv specific enabling code for memory tagging

Richard Earnshaw rearnsha@arm.com
Wed Jun 24 15:53:48 GMT 2020


Add various defines and stubs for enabling MTE on AArch64 sysv-like
systems such as Linux.  The HWCAP feature bit is copied over in the
same way as other feature bits.  Similarly we add a new wrapper header
for mman.h to define the PROT_MTE flag that can be used with mmap and
related functions.

We add a new field to struct cpu_features that can be used, for
example, to check whether or not certain ifunc'd routines should be
bound to MTE-safe versions.

Finally, if we detect that MTE should be enabled (ie via the glibc
tunable); we enable MTE during startup as required.
---
 sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h  |  1 +
 sysdeps/unix/sysv/linux/aarch64/bits/mman.h   | 32 +++++++++++++++++++
 .../unix/sysv/linux/aarch64/cpu-features.c    | 28 ++++++++++++++++
 .../unix/sysv/linux/aarch64/cpu-features.h    |  1 +
 4 files changed, 62 insertions(+)
 create mode 100644 sysdeps/unix/sysv/linux/aarch64/bits/mman.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v2-0005-aarch64-Add-sysv-specific-enabling-code-for-memor.patch
Type: text/x-patch
Size: 3986 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20200624/8ccd7b50/attachment.bin>


More information about the Libc-alpha mailing list