diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-08-06 12:19:45 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-09-11 12:06:22 -0700 |
| commit | 27f02d851410ece239f4024aae87143ed00f4354 (patch) | |
| tree | 01a1881f8570cf26d279d8e6d259f7b7f80b50cd /tools/perf/scripts/python/flamegraph.py | |
| parent | df269c8e097f306b09d9f371a60a936e2530c10d (diff) | |
KVM: x86/mmu: Bug the VM if KVM attempts to unsync an upper-level shadow page
Bug the VM and skip marking a shadow page unsync if KVM attempts to unsync
an upper-level shadow page, as marking an upper-level SP unsync is all but
guaranteed to be far worse than terminating the VM. E.g. sync_spte()
(rightly) assumes SPTEs in the SP are leaf SPTEs and so calls drop_spte()
instead of drop_parent_pte(), which can effectively crash the host via
when running with CONFIG_BUG_ON_DATA_CORRUPTION=y due to there not being an
rmap entry for the SPTE.
Simply not marking the SP unsync, i.e. letting the VM continue on, is
equally dangerous for the guest as it means KVM's shadow MMU is using stale
information, e.g. could unintentionally corrupt the guest.
Cc: Jinu Kim <kimjw04271234@gmail.com>
Link: https://patch.msgid.link/20260806191945.4192732-1-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
