diff options
author | 2023-09-06 02:20:06 +0800 | |
---|---|---|
committer | 2023-10-18 14:34:28 -0700 | |
commit | 1de9992f9de0a92b6e11133aba0e2be833c11084 (patch) | |
tree | 535552bfb3636e440a654188008c6f66e9c03ca6 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: VMX: drop IPAT in memtype when CD=1 for KVM_X86_QUIRK_CD_NW_CLEARED (diff) | |
download | wireguard-linux-1de9992f9de0a92b6e11133aba0e2be833c11084.tar.xz wireguard-linux-1de9992f9de0a92b6e11133aba0e2be833c11084.zip |
KVM: x86/mmu: Remove unnecessary ‘NULL’ values from sptep
Don't initialize "spte" and "sptep" in fast_page_fault() as they are both
guaranteed (for all intents and purposes) to be written at the start of
every loop iteration. Add a sanity check that "sptep" is non-NULL after
walking the shadow page tables, as encountering a NULL root would result
in "spte" not being written, i.e. would lead to uninitialized data or the
previous value being consumed.
Signed-off-by: Li zeming <zeming@nfschina.com>
Link: https://lore.kernel.org/r/20230905182006.2964-1-zeming@nfschina.com
[sean: rewrite changelog with --verbose]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions