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

Richard Earnshaw rearnsha@arm.com
Wed Jun 24 15:53:45 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: v2-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/20200624/88a34b34/attachment-0001.bin>


More information about the Libc-alpha mailing list