Re:Fast, simple, hard real time allocator for Rust
by pcwalton on Thursday May 02, 2024 @01:51PM
(#40239204)
Yes. I believe that the standard workaround for this problem is to place the allocator metadata for an entire block at some fixed address boundary, so you can just mask off the bottom K bits of an address to find the allocator metadata for the block, and from there find the metadata of the allocation you're concerned with.
Isn’t the original reason hardening against buffer overflows? Overwriting allocator metadata can be used to attack a system.