The Arm64 memory tagging extension in Linux
The Arm64 memory tagging extension in Linux
Posted Oct 16, 2020 2:33 UTC (Fri) by songmaster (subscriber, #1748)In reply to: The Arm64 memory tagging extension in Linux by mm7323
Parent article: The Arm64 memory tagging extension in Linux
Also the STE instruction only sets the tag for one 16-byte granule. If an address is a pointer to a structure that may be tens to thousands of bytes in size, presumably the code would have to loop through the whole structure setting the same tag for every granule that belongs to it. Not a problem for code that only uses malloc() which should take care of that, but some programs use their own allocators. I guess they shouldn’t break as long as they’re using malloc() to begin with, but unless they are made aware of this the advantage would be reduced.