mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 20:32:22 +00:00
411c588dfb
When CR0.WP=0, we sometimes map user pages as kernel pages (to allow the kernel to write to them). Unfortunately this also allows the kernel to fetch from these pages, even if CR4.SMEP is set. Adjust for this by also setting NX on the spte in these circumstances. Signed-off-by: Avi Kivity <avi@redhat.com> |
||
---|---|---|
.. | ||
asm |