summaryrefslogtreecommitdiffstats
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-05-12 11:48:18 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2010-07-05 11:16:14 -0700
commite5085dda9c31aada430b3b57ce78ec102e934e9c (patch)
tree63f11aaebfde81e9901868185845e0149ba55fc2 /scripts/patch-kernel
parent22d962cf52f77eef04d635caba46ae54e30723c5 (diff)
downloadkernel-crypto-e5085dda9c31aada430b3b57ce78ec102e934e9c.tar.gz
kernel-crypto-e5085dda9c31aada430b3b57ce78ec102e934e9c.tar.xz
kernel-crypto-e5085dda9c31aada430b3b57ce78ec102e934e9c.zip
KVM: MMU: Segregate shadow pages with different cr0.wp
When cr0.wp=0, we may shadow a gpte having u/s=1 and r/w=0 with an spte having u/s=0 and r/w=1. This allows excessive access if the guest sets cr0.wp=1 and accesses through this spte. Fix by making cr0.wp part of the base role; we'll have different sptes for the two cases and the problem disappears. Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> (cherry picked from commit 3dbe141595faa48a067add3e47bba3205b79d33c)
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions