diff options
| author | Sean Christopherson <[email protected]> | 2021-05-04 10:17:24 -0700 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2021-05-07 06:06:16 -0400 |
| commit | 5104d7ffcf24749939bea7fdb5378d186473f890 (patch) | |
| tree | 4edd4687d7b6aa480446cd8d5942037fb203b141 /lib/test_fortify/write_overflow-strscpy.c | |
| parent | 2183de4161b90bd3851ccd3910c87b2c9adfc6ed (diff) | |
KVM: VMX: Disable preemption when probing user return MSRs
Disable preemption when probing a user return MSR via RDSMR/WRMSR. If
the MSR holds a different value per logical CPU, the WRMSR could corrupt
the host's value if KVM is preempted between the RDMSR and WRMSR, and
then rescheduled on a different CPU.
Opportunistically land the helper in common x86, SVM will use the helper
in a future commit.
Fixes: 4be534102624 ("KVM: VMX: Initialize vmx->guest_msrs[] right after allocation")
Cc: [email protected]
Cc: Xiaoyao Li <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Jim Mattson <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strscpy.c')
0 files changed, 0 insertions, 0 deletions