]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: emulator: more strict rsm checks.
authorMaxim Levitsky <mlevitsk@redhat.com>
Thu, 27 Aug 2020 17:11:44 +0000 (20:11 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 12 Sep 2020 16:22:55 +0000 (12:22 -0400)
commit1828332bacfc435ee56880390292e5f74240ce2b
tree67f132e53a670820276243ba7238aba555ae8484
parentb0d2efaad18dce94b94cb23908b2d884f1ddb4d4
KVM: emulator: more strict rsm checks.

Don't ignore return values in rsm_load_state_64/32 to avoid
loading invalid state from SMM state area if it was tampered with
by the guest.

This is primarly intended to avoid letting guest set bits in EFER
(like EFER.SVME when nesting is disabled) by manipulating SMM save area.

Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20200827171145.374620-8-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c