[Devel] [PATCH hci-8.2 1/7] ms/KVM: x86/mmu: Conditionally resched when retrying gPTE walk on A/D update failure
no-reply at sashiko.virtuozzo.com
no-reply at sashiko.virtuozzo.com
Tue Dec 1 03:44:45 MSK 2026
> From: Sean Christopherson <seanjc at google.com>
>
> [ Upstream commit b2691b3a6cd230209736c89684dab90d939aa56b ]
>
> 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 at vger.kernel.org
> Reported-by: Stefan Teodorescu <fane at google.com>
> Signed-off-by: Sean Christopherson <seanjc at google.com>
> Message-ID: <20261022015903.282261-1-seanjc at google.com>
> Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
> Signed-off-by: Sasha Levin <sashal at kernel.org>
> (cherry picked from commit 399c8c1e2ea42018960a31ef3a2e93554e50f606)
>
> https://virtuozzo.atlassian.net/browse/VSTOR-157287
> Feature: fix ms/kvm
> Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
Sashiko has reviewed this patch and found no issues.
Carry the trailer below into the next revision and Sashiko will not review this patch again.
Reviewed-by: Sashiko <no-reply at sashiko.virtuozzo.com>
--
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261126-khorenko-vstor-157390-kvm-fixes-v1-0-ea4024e03c63@virtuozzo.com?part=1
More information about the Devel
mailing list