summaryrefslogtreecommitdiff
path: root/firmware/edgeport
diff options
context:
space:
mode:
authorXiao Guangrong <guangrong.xiao@linux.intel.com>2015-05-11 22:55:21 +0800
committerSasha Levin <sasha.levin@oracle.com>2015-06-09 13:43:48 -0400
commit95678fb1f88e2a397378827536173534cf16a942 (patch)
treeeb0a71489b65340c2398b1bd5fa2a2fc8ad3875b /firmware/edgeport
parent00f334969132a292e5cc7a383492fdfa9cc834c1 (diff)
KVM: MMU: fix SMAP virtualization
[ Upstream commit 0be0226f07d14b153a5eedf2bb86e1eb7dcefab5 ] KVM may turn a user page to a kernel page when kernel writes a readonly user page if CR0.WP = 1. This shadow page entry will be reused after SMAP is enabled so that kernel is allowed to access this user page Fix it by setting SMAP && !CR0.WP into shadow page's role and reset mmu once CR4.SMAP is updated Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com> Cc: stable@vger.kernel.org Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'firmware/edgeport')
0 files changed, 0 insertions, 0 deletions