linux_dsm_epyc7002/arch/x86/kvm/mmu
Paolo Bonzini 56871d444b KVM: x86: fix overlap between SPTE_MMIO_MASK and generation
The SPTE_MMIO_MASK overlaps with the bits used to track MMIO
generation number.  A high enough generation number would overwrite the
SPTE_SPECIAL_MASK region and cause the MMIO SPTE to be misinterpreted.

Likewise, setting bits 52 and 53 would also cause an incorrect generation
number to be read from the PTE, though this was partially mitigated by the
(useless if it weren't for the bug) removal of SPTE_SPECIAL_MASK from
the spte in get_mmio_spte_generation.  Drop that removal, and replace
it with a compile-time assertion.

Fixes: 6eeb4ef049 ("KVM: x86: assign two bits to track SPTE kinds")
Reported-by: Ben Gardon <bgardon@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-01-23 09:50:34 +01:00
..
mmu.c KVM: x86: fix overlap between SPTE_MMIO_MASK and generation 2020-01-23 09:50:34 +01:00
page_track.c KVM: x86: create mmu/ subdirectory 2019-11-21 12:03:50 +01:00
paging_tmpl.h KVM: x86/mmu: Micro-optimize nEPT's bad memptype/XWR checks 2020-01-21 14:45:31 +01:00