[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <171469177238.1010157.17892485185197174264.b4-ty@google.com>
Date: Fri, 3 May 2024 14:32:24 -0700
From: Sean Christopherson <seanjc@...gle.com>
To: Sean Christopherson <seanjc@...gle.com>, Paolo Bonzini <pbonzini@...hat.com>
Cc: kvm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] KVM: x86/mmu: Fix a largely theoretical race in kvm_mmu_track_write()
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
Powered by blists - more mailing lists