Re: [PATCH v3] KVM: x86/mmu: Fix a largely theoretical race in kvm_mmu_track_write()

From: Sean Christopherson
Date: Fri May 03 2024 - 17:35:15 EST


On Tue, 23 Apr 2024 12:31:14 -0700, Sean Christopherson wrote:
> Add full memory barriers in kvm_mmu_track_write() and account_shadowed()
> to plug a (very, very theoretical) race where kvm_mmu_track_write() could
> miss a 0->1 transition of indirect_shadow_pages and fail to zap relevant,
> *stale* SPTEs.
>
> Without the barriers, because modern x86 CPUs allow (per the SDM):
>
> [...]

Applied to kvm-x86 mmu.

[1/1] KVM: x86/mmu: Fix a largely theoretical race in kvm_mmu_track_write()
https://github.com/kvm-x86/linux/commit/226d9b8f1688

--
https://github.com/kvm-x86/linux/tree/next