Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Hardened_malloc (github.com/grapheneos)
8 points by Seirdy on Dec 16, 2021 | hide | past | favorite | 3 comments


> The glibc support will be limited to replacing the malloc implementation because musl is a much more robust and cleaner base to build on and can cover the same use cases.

Glad that Android shares my opinions. This is based on the OpenBSD malloc without the OpenBSD-typical slowdowns to catch bugs, but with more hardening. No idea about the relation to Rich' latest rewritten musl malloc, which is less about hardening, more about performance.


Musl's mallocng is heavily inspired by hardened_malloc: https://www.openwall.com/lists/musl/2020/05/13/1

mallocng was as much about hardening as it was about performance.


I like the part where the blog mentioned certain malloc() library will break under ASLR (i.e., jemalloc, PartitionAlloc).

Arena methodology of malloc() design should have been implemented with ALSR enabled.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: