diff options
| author | Marios Pomonis <[email protected]> | 2019-12-11 12:47:48 -0800 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2020-01-27 19:59:40 +0100 |
| commit | 13c5183a4e643cc2b03a22d0e582c8e17bb7457d (patch) | |
| tree | 355b59a72818667c5ece45b1b3a69c7f659084ed /scripts/gdb/linux/config.py | |
| parent | 25a5edea71b7c154b6a0b8cec14c711cafa31d26 (diff) | |
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 <[email protected]>
Signed-off-by: Marios Pomonis <[email protected]>
Reviewed-by: Andrew Honig <[email protected]>
Cc: [email protected]
Reviewed-by: Jim Mattson <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions