mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-08-17 10:50:42 -04:00
use region quarantine even if MAP_FIXED call fails
This is a more sensible way of handling an out-of-memory failure in this edge case. It doesn't matter much in practice.
This commit is contained in:
parent
2335f56713
commit
5c974bdf82
2 changed files with 4 additions and 4 deletions
|
@ -1008,7 +1008,7 @@ System calls used by all build configurations:
|
|||
* `mremap(old, old_size, new_size, MREMAP_MAYMOVE|MREMAP_FIXED, new)`
|
||||
* `munmap`
|
||||
* `write(STDERR_FILENO, buf, len)` (before aborting due to memory corruption)
|
||||
* `madvise(ptr, size, MADV_DONTNEED)` for `malloc_trim` with slab quarantines
|
||||
* `madvise(ptr, size, MADV_DONTNEED)`
|
||||
|
||||
The main distinction from a typical malloc implementation is the use of
|
||||
getrandom. A common compatibility issue is that existing system call whitelists
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue