diff options
author | 2021-11-04 00:25:02 +0000 | |
---|---|---|
committer | 2021-11-18 02:15:19 -0500 | |
commit | bda44d844758c70c8dc1478e6fc9c25efa90c5a7 (patch) | |
tree | 07ad02921f801906d9ff13c5d9e53a91d88231ff /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: x86/mmu: Fix TLB flush range when handling disconnected pt (diff) | |
download | linux-dev-bda44d844758c70c8dc1478e6fc9c25efa90c5a7.tar.xz linux-dev-bda44d844758c70c8dc1478e6fc9c25efa90c5a7.zip |
KVM: Ensure local memslot copies operate on up-to-date arch-specific data
When modifying memslots, snapshot the "old" memslot and copy it to the
"new" memslot's arch data after (re)acquiring slots_arch_lock. x86 can
change a memslot's arch data while memslot updates are in-progress so
long as it holds slots_arch_lock, thus snapshotting a memslot without
holding the lock can result in the consumption of stale data.
Fixes: b10a038e84d1 ("KVM: mmu: Add slots_arch_lock for memslot arch fields")
Cc: stable@vger.kernel.org
Cc: Ben Gardon <bgardon@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211104002531.1176691-2-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions