Re: x86 TLB vs protection?
Posted on 2017-07-28, 18:49
1. is not correct. Even if the address is in the TLB, you still need the protection check. If supervisor mode accessed a page that only supervisor can read, then user-mode accesses the same page, it should fail even though it's in the TLB. The TLB simply avoids the translation overhead.