diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-10-21 18:59:03 -0700 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2026-11-02 12:48:39 -0500 |
| commit | b2691b3a6cd230209736c89684dab90d939aa56b (patch) | |
| tree | 1e67cda3340d54b59c18404e7b7574eec54f60cd /scripts/basic/split-include.c | |
| parent | 053621535f014085c935879582dd3b65964a0dce (diff) | |
| download | linux-b2691b3a6cd230209736c89684dab90d939aa56b.tar.gz linux-b2691b3a6cd230209736c89684dab90d939aa56b.zip | |
KVM: x86/mmu: Conditionally resched when retrying gPTE walk on A/D update failure
Conditionally reschedule when retrying a guest PTE walk because the CMPXCHG
to update A/D bits failed, e.g. because a different task/vCPU modified the
relevant gPTEs. On kernels without involuntary preemption of some kind, a
misbehaving guest can "capture" a pCPU effectively indefinitely and trigger
soft lockups by continuously modifying its gPTEs such that the result of
the walk is remains valid.
Fixes: b3e4e63fd9ee ("KVM: MMU: Use cmpxchg for pte updates on walk_addr()")
Cc: stable@vger.kernel.org
Reported-by: Stefan Teodorescu <fane@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-ID: <20261022015903.282261-1-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions
