[PATCH v3 2/8] elf: Add a tunable to control use of tagged memory

Richard Earnshaw rearnsha@arm.com
Mon Nov 23 15:42:30 GMT 2020


Add a new glibc tunable: mtag.enable, bound to the environment variable
_MTAG_ENABLE.  This is a decimal constant in the range 0-255 but used
as a bit-field.

Bit 0 enables use of tagged memory in the malloc family of functions.
Bit 1 enables precise faulting of tag failure on platforms where this
can be controlled.
Other bits are currently unused, but if set will cause memory tag
checking for the current process to be enabled in the kernel.
---
 elf/dl-tunables.list |  9 +++++++++
 manual/tunables.texi | 31 +++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v3-0002-elf-Add-a-tunable-to-control-use-of-tagged-memory.patch
Type: text/x-patch
Size: 1940 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20201123/39036800/attachment.bin>


More information about the Libc-alpha mailing list