aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorMaxim Levitsky <[email protected]>2022-10-25 12:47:32 +0000
committerPaolo Bonzini <[email protected]>2022-10-28 10:10:30 +0000
commit696db303e54f7352623d9f640e6c51d8fa9d5588 (patch)
treeb9b0ef36715305cf7aaec067d78ece54eca06a05 /lib/test-string_helpers.c
parentKVM: x86: emulator: update the emulation mode after CR0 write (diff)
downloadkernel-696db303e54f7352623d9f640e6c51d8fa9d5588.tar.gz
kernel-696db303e54f7352623d9f640e6c51d8fa9d5588.zip
KVM: x86: smm: number of GPRs in the SMRAM image depends on the image format
On 64 bit host, if the guest doesn't have X86_FEATURE_LM, KVM will access 16 gprs to 32-bit smram image, causing out-ouf-bound ram access. On 32 bit host, the rsm_load_state_64/enter_smm_save_state_64 is compiled out, thus access overflow can't happen. Fixes: b443183a25ab61 ("KVM: x86: Reduce the number of emulator GPRs to '8' for 32-bit KVM") Signed-off-by: Maxim Levitsky <[email protected]> Reviewed-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Cc: [email protected] Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions