3 ms·
On the "weird pointer solutions" tangent, there's the ARM authenticated pointers: https://lwn.net/Articles/718888/ https://lwn.net/Articles/718888/ Given that
by pjc50 7y ago
On the "weird pointer solutions" tangent, there's the ARM authenticated pointers: https://lwn.net/Articles/718888/ https://lwn.net/Articles/718888/
Given that years ago we added a mandatory piece of hardware to most systems to implement virtual memory, I'm now starting to wonder what security and/or performance benefits could be achieved by delegating memory allocation to (or through) hardware.
- arethuza 7y agoThat's a fascinating approach - how widely used is it? Would love to know whether it causes any problems for 'existing' code.
- saagarjha 7y agoEvery new (post-2018) iPhone ships with this. iOS developers can build code for the architecture but I believe Apple currently strips it out before distribution, so its use is limited to the OS for now. I would assume at some point they’ll flip the switch to allow it; until then developers can use the toolchain to test if their code still works (generally it does, but messing with function pointers in ways unspecified by the standard can occasionally cause problems). ‘pjmlp is fairly interested in this topic so they might be able to share some more examples of it being used if they drop by the thread.
- pjmlp 7y agoBesides iOS, Solaris SPARC, and Android 11 onwards.
- pjmlp 7y agoThat is quite easy to validate. Since years, Oracle has shipped SPARC Solaris with ADI turned on. Since iPhone X iOS makes use of memory tagging for pointers. Starting with Android 11, hardware memory tagging is a required feature on ARM platforms on the CPUs that support it, while on other CPUs the kernel will randomly attach GWP-ASan to user processes and is enabled by default on all system processes during the ongoing preview releases.