summaryrefslogtreecommitdiff
path: root/scripts/basic/split-include.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2026-10-21 18:59:03 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2026-11-02 12:48:39 -0500
commitb2691b3a6cd230209736c89684dab90d939aa56b (patch)
tree1e67cda3340d54b59c18404e7b7574eec54f60cd /scripts/basic/split-include.c
parent053621535f014085c935879582dd3b65964a0dce (diff)
downloadlinux-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