public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] KVM: MMU: fix SMAP virtualization
@ 2015-05-07  8:20 Xiao Guangrong
  2015-05-07  8:20 ` [PATCH 1/3] KVM: MMU: fix smap permission check Xiao Guangrong
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Xiao Guangrong @ 2015-05-07  8:20 UTC (permalink / raw)
  To: pbonzini; +Cc: gleb, mtosatti, kvm, linux-kernel, Xiao Guangrong

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-05-11 13:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-07  8:20 [PATCH 0/3] KVM: MMU: fix SMAP virtualization Xiao Guangrong
2015-05-07  8:20 ` [PATCH 1/3] KVM: MMU: fix smap permission check Xiao Guangrong
2015-05-07  9:32   ` Paolo Bonzini
2015-05-07  9:50     ` Xiao Guangrong
2015-05-07  8:20 ` [PATCH 2/3] KVM: MMU: fix SMAP virtualization Xiao Guangrong
2015-05-11 13:17   ` [PATCH v2 " Xiao Guangrong
2015-05-11 13:41     ` Paolo Bonzini
2015-05-07  8:20 ` [PATCH 3/3] KVM: MMU: document smap_andnot_wp Xiao Guangrong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox