[PATCH] Add Safe-Linking to fastbins and tcache

Wilco Dijkstra Wilco.Dijkstra@arm.com
Tue Mar 24 13:44:29 GMT 2020


Hi,

>Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:
>> So although this patch does help improve the situation, I think we should
>> move to a more robust and arch neutral way to obtain entropy for malloc
>> hardnening. 

Well I'm wondering whether it will ever be possible to harden properly - the key
problem is storing internal pointers in user data which may be corrupted. A more
safe approach would be to use separate arrays/bitmaps to store the free list.
This may even be faster due to better locality.

> Can we agree to approve this patch, and replace the "12" with something
> better later?  That way we'll at least make incremental progress.

Agreed. The latest version of the patch looks good to me.

Wilco


More information about the Libc-alpha mailing list