diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2022-02-08 19:08:33 -0500 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-02-25 08:20:16 -0500 |
| commit | 9191b8f0745e63edf519e4a54a4aaae1d3d46fbd (patch) | |
| tree | 7aa9914ac9413de4325d71eee3a6bee663189e9d /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | KVM: x86: do not deliver asynchronous page faults if CR0.PG=0 (diff) | |
| download | linux-9191b8f0745e63edf519e4a54a4aaae1d3d46fbd.tar.gz linux-9191b8f0745e63edf519e4a54a4aaae1d3d46fbd.zip | |
KVM: x86/mmu: avoid NULL-pointer dereference on page freeing bugs
WARN and bail if KVM attempts to free a root that isn't backed by a shadow
page. KVM allocates a bare page for "special" roots, e.g. when using PAE
paging or shadowing 2/3/4-level page tables with 4/5-level, and so root_hpa
will be valid but won't be backed by a shadow page. It's all too easy to
blindly call mmu_free_root_page() on root_hpa, be nice and WARN instead of
crashing KVM and possibly the kernel.
Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
