diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-09-29 17:40:58 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-10-12 14:22:03 +0100 |
commit | cdba5ffdae284afb4a8e3612f539c77044380964 (patch) | |
tree | 2a5c08f847b4ad0f3d6ae972809d7b11f1309b8c /elf | |
parent | f54124b8013f90a13ab903cc8f477ffaef41dc74 (diff) | |
download | glibc-cdba5ffdae284afb4a8e3612f539c77044380964.zip glibc-cdba5ffdae284afb4a8e3612f539c77044380964.tar.gz glibc-cdba5ffdae284afb4a8e3612f539c77044380964.tar.bz2 |
cheri: malloc: Capability narrowing using internal lookup table
Add more cap_ hooks to implement narrowing without depending on a
global capability covering the heap. Either recording every
narrowed capability in a lookup table or recording every mapping
used for the heap are supported. The morello implmentation uses
a lookup table for now.
The lookup table adds memory overhead, failure paths and locks.
Recording and removing entries from the lookup table must be done
carefully in realloc so on failure the old pointer is usable and
on success the old pointer is immediately reusable concurrently.
The locks require fork hooks so malloc works in multi-threaded
fork child.
Diffstat (limited to 'elf')
0 files changed, 0 insertions, 0 deletions