News for hackers. Stuff that matters.
Re:Low-Level Software Security for Compiler Developers by wyldfire on Monday February 20, 2023 @11:02PM (#34876380)
ARM's MTE is often nicknamed "HWASAN" - it implements a lock-and-key metaphor. The memory allocations emitted by the compiler will get a "coloring" for the base pointed which can be matched with the specific region accessed by indexed loads and stores.

BTW this isn't just an experiment or research - some android developers have this enabled today and Android 14 beta has a user-configurable option to enable it.

Re:Low-Level Software Security for Compiler Developers by convolvatron on Monday February 20, 2023 @11:08PM (#34876429)
so, like a segment?
Re:Low-Level Software Security for Compiler Developers by wyldfire on Monday February 20, 2023 @11:20PM (#34876541)
Yes, it's somewhat similar but much higher resolution. 16-byte "granules" instead of multi-KB/MB/GB pages. Also - instead of having the OS determine how to handle paging, the CPU can tell whether it should fail the load/store based on the color of the access and the color of the granule.