aboutsummaryrefslogtreecommitdiff
path: root/malloc/alloc_buffer_alloc_array.c
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-11-22 14:31:25 +0000
commitd7d9ee6edcb81380645de095a41f0f301c1bf5e1 (patch)
treed3b1edef10bbcfe5c78e4f3887b0bd94c58f3799 /malloc/alloc_buffer_alloc_array.c
parent32c64139eef90920af88e85c07c168fcada73935 (diff)
downloadglibc-d7d9ee6edcb81380645de095a41f0f301c1bf5e1.tar.xz
glibc-d7d9ee6edcb81380645de095a41f0f301c1bf5e1.zip
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 'malloc/alloc_buffer_alloc_array.c')
0 files changed, 0 insertions, 0 deletions