diff options
author | 2019-12-11 12:47:48 -0800 | |
---|---|---|
committer | 2020-01-27 19:59:40 +0100 | |
commit | 13c5183a4e643cc2b03a22d0e582c8e17bb7457d (patch) | |
tree | 355b59a72818667c5ece45b1b3a69c7f659084ed /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: x86: Protect MSR-based index computations in fixed_msr_to_seg_unit() from Spectre-v1/L1TF attacks (diff) | |
download | linux-dev-13c5183a4e643cc2b03a22d0e582c8e17bb7457d.tar.xz linux-dev-13c5183a4e643cc2b03a22d0e582c8e17bb7457d.zip |
KVM: x86: Protect MSR-based index computations in pmu.h from Spectre-v1/L1TF attacks
This fixes a Spectre-v1/L1TF vulnerability in the get_gp_pmc() and
get_fixed_pmc() functions.
They both contain index computations based on the (attacker-controlled)
MSR number.
Fixes: 25462f7f5295 ("KVM: x86/vPMU: Define kvm_pmu_ops to support vPMU function dispatch")
Signed-off-by: Nick Finco <nifi@google.com>
Signed-off-by: Marios Pomonis <pomonis@google.com>
Reviewed-by: Andrew Honig <ahonig@google.com>
Cc: stable@vger.kernel.org
Reviewed-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions