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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/