KVM: x86: handle wrap around 32-bit address space
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Apr 2020 15:55:59 +0000 (11:55 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 May 2020 16:14:59 +0000 (12:14 -0400)
commitfede8076aab4c2280c673492f8f7a2e87712e8b4
tree80aa65506194955f2383505a809dab91e83766c0
parentc4e115f08c08cb9f3b70247b42323e40b9afd1fd
KVM: x86: handle wrap around 32-bit address space

KVM is not handling the case where EIP wraps around the 32-bit address
space (that is, outside long mode).  This is needed both in vmx.c
and in emulate.c.  SVM with NRIPS is okay, but it can still print
an error to dmesg due to integer overflow.

Reported-by: Nick Peterson <everdox@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/vmx/vmx.c