Yes, you are overly naive...
Yes, you are overly naive...
Posted Jul 22, 2009 11:13 UTC (Wed) by ajb (subscriber, #9694)In reply to: Yes, you are overly naive... by PaXTeam
Parent article: Fun with NULL pointers, part 2
According to wikipedia newer cpus have an 'address space' tag which can be used to avoid flushing the TLB on VM switches. Could also be used for kernel vs user mode? It would require cooperating with the VM monitor though. (I wish VMs could be nested - it would be nice to be able to run untrusted code on EC2 without using QEMU. ).
Although that doesn't obviously help for the cases where the kernel needs to access user mode memory; one would still have to change the permissions to access it and then change them back.