diff options
author | Richard Earnshaw <rearnsha@arm.com> | 2020-12-21 15:03:03 +0000 |
---|---|---|
committer | Richard Earnshaw <rearnsha@arm.com> | 2020-12-21 15:25:25 +0000 |
commit | 26450d04d38c8ed7ce5f2c89114b18c5508f13f1 (patch) | |
tree | bc0d87f44a06d734a62be33261a0b51a55168648 /elf | |
parent | 3378408987189772eec7bc62fc9923a6f01dc63c (diff) | |
download | glibc-26450d04d38c8ed7ce5f2c89114b18c5508f13f1.tar.gz glibc-26450d04d38c8ed7ce5f2c89114b18c5508f13f1.tar.xz glibc-26450d04d38c8ed7ce5f2c89114b18c5508f13f1.zip |
elf: Add a tunable to control use of tagged memory
Add a new glibc tunable: mem.tagging. 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.
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-tunables.list | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/elf/dl-tunables.list b/elf/dl-tunables.list index e1d8225128..4c44ead715 100644 --- a/elf/dl-tunables.list +++ b/elf/dl-tunables.list @@ -141,4 +141,13 @@ glibc { default: 512 } } + + mem { + tagging { + type: INT_32 + minval: 0 + maxval: 255 + security_level: SXID_IGNORE + } + } } |