News for hackers. Stuff that matters.
Re:Address Sanitizer Internals by xtqctz on Saturday June 15, 2024 @11:30AM (#40690373)
This is great! I found these videos helpful, too: https://youtu.be/Tl1uZ7FBwFQ

Does anyone know of a good explanation of HWAddress Sanitizer internals?

Re:Address Sanitizer Internals by barco on Saturday June 15, 2024 @05:52PM (#40692957)
There are multiple versions of HWAsan.

One for ARMv8 with Top-Byte-Ignore: you can use the top byte of memory addresses to store a tag.

When you allocate memory you return the "tagged" pointer and internally store "this region has this tag".

When you dereference a pointer, you check that the tag matches what you expect in your internal data structure.

With memory tagging extensions you can do something similar but the checks are performed by the processor.