News for hackers. Stuff that matters.
Re:The Arm64 memory tagging extension in Linux by londons_explore on Monday October 19, 2020 @06:23AM (#24824935)
Where are these keys stored? A 4 bit key for each 16 byte granule of memory in the system sounds substantial. Does the Linux kernel have to give the CPU a memory region to keep those mappings?
Re:The Arm64 memory tagging extension in Linux by dan-robertson on Monday October 19, 2020 @06:29AM (#24824965)
The keys are stored in the bottom nibble of the top byte of pointers (I.e. bits 56-59)
Re:The Arm64 memory tagging extension in Linux by londons_explore on Monday October 19, 2020 @06:31AM (#24824979)
Yes, but they also need to be stored somewhere else for the CPU to compare them against something... Where else are they stored...
Re:The Arm64 memory tagging extension in Linux by Liquid_Fire on Monday October 19, 2020 @06:43AM (#24825043)
It's implementation defined (by the hardware). They could be stored in a reserved part of the RAM, or you could build special RAM that can store the extra bits alongside the data, or any other compatible solution.