News for hackers. Stuff that matters.
Re:macOS extensions are moving away from the kernel by als0 on Wednesday July 07, 2021 @06:06AM (#27759344)
Rings 1 and 2 don't even exist on AMD64/x86-64.
Re:macOS extensions are moving away from the kernel by zvrba on Wednesday July 07, 2021 @08:37AM (#27760393)
Yes they do, but segmentation is practically non-existent and page tables distinguish only between rings 0 and rings 1-3. So no, they aren't very useful, but they do exist and, AFAIK, they're still checked in "far" control transfers.
Re:macOS extensions are moving away from the kernel by tzs on Wednesday July 07, 2021 @10:09AM (#27761298)
It's too bad they have been made useless. I'm not fully sure about this, but I think that if you could have two rings for user code so that applications that want to run untrusted code in a sandbox could run the main application in ring 2 and the sandboxed code in ring 3, you could make the application safe from Spectre attacks from the sandboxed code without giving up performance.
Re:macOS extensions are moving away from the kernel by bonzini on Wednesday July 07, 2021 @01:42PM (#27763793)
The point of Spectre attacks is that they use side channel to infer the target's data from communication between the target and the attacking userspace process. This is possible even over the network, so ring 2 wouldn't help much.