Pointer tagging for x86 systems
Pointer tagging for x86 systems
Posted Mar 28, 2022 18:50 UTC (Mon) by farnz (subscriber, #17727)In reply to: Pointer tagging for x86 systems by butlerm
Parent article: Pointer tagging for x86 systems
While you're right that constructing kernel addresses is trivial, the mitigation today is also trivial - if an address is passed to the kernel with its top bit set, then the called code should simply fail noisily because Something is Bad.
In the UAI world, a pointer with the top bit set could be a kernel address, but it could also be the case that the user is using bit 63 as a tag bit, and the CPU will ignore it on access - the kernel can't tell.
Posted Mar 28, 2022 20:12 UTC (Mon)
by bartoc (guest, #124262)
[Link]
Pointer tagging for x86 systems