]> git.ipfire.org Git - thirdparty/glibc.git/commit
cheri: malloc: Ensure the mappings have RW permission
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 21 Oct 2022 11:35:33 +0000 (12:35 +0100)
committerSzabolcs Nagy <szabolcs.nagy@arm.com>
Thu, 27 Oct 2022 13:46:53 +0000 (14:46 +0100)
commitaf11ceae3867a3786308738a6870a8f1016a865e
tree7a5c3933dafe81533d3a6d560ca4e7839b62119a
parentdc8f9560104f0803e53fa23bfd011aa9878d5a97
cheri: malloc: Ensure the mappings have RW permission

The arena allocator incrementally applies RW mprotect to a PROT_NONE
mapping.  Use PROT_MAX to ensure the pointers derived from the original
mapping have RW capability permission.
malloc/malloc.c