lkml.org 
[lkml]   [2015]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3] KVM: MMU: fix SMAP virtualization
Date
There are some bugs in current code:
- the PFEC.RSVD is not always true and KVM reuses this bit to cache
CPL and flags.AC bit

- the shadow page will be resued for SMAP enabled and SMAP disabled,
however, user page will be turned to kernel page under some cases
so that SMAP check is missed on that entry

This patchset fixes these bugs and a test case will be posted out soon

Xiao Guangrong (3):
KVM: MMU: fix smap permission check
KVM: MMU: fix SMAP virtualization
KVM: MMU: document smap_andnot_wp

Documentation/virtual/kvm/mmu.txt | 18 ++++++++++++++----
arch/x86/include/asm/kvm_host.h | 1 +
arch/x86/kvm/mmu.c | 7 +++++--
arch/x86/kvm/mmu.h | 4 ++--
arch/x86/kvm/paging_tmpl.h | 7 +++++++
arch/x86/kvm/x86.c | 8 +++-----
6 files changed, 32 insertions(+), 13 deletions(-)

--
2.1.0



\
 
 \ /
  Last update: 2015-05-07 10:41    [W:0.089 / U:0.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site