aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorSzabolcs Nagy <szabolcs.nagy@arm.com>2022-09-21 15:32:34 +0100
committerSzabolcs Nagy <szabolcs.nagy@arm.com>2022-10-12 14:22:03 +0100
commitf54124b8013f90a13ab903cc8f477ffaef41dc74 (patch)
treeddba06d1b7e3094a4dd8d793456d94aaa6e1c555 /elf
parent3d959e4b0e6e746203bfa22992d7749ff31f58be (diff)
downloadglibc-f54124b8013f90a13ab903cc8f477ffaef41dc74.zip
glibc-f54124b8013f90a13ab903cc8f477ffaef41dc74.tar.gz
glibc-f54124b8013f90a13ab903cc8f477ffaef41dc74.tar.bz2
cheri: malloc: Initial capability narrowing support
Public interfaces return pointers with narrow bounds, this internally requires bumping the size and alignment requirement of allocations so the bounds are representible. When pointers with narrow bounds need to be turned back to have wide bounds (free, realloc), the pointer is rederived from DDC. (So this patch relies on DDC to cover all heap memory with RW permission.) Allocations above the mmap threshold waste memory for alignment and realloc often falls back to the inefficient alloc, copy, free sequence instead of mremap or other inplace solution.
Diffstat (limited to 'elf')
0 files changed, 0 insertions, 0 deletions