]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4d425eb1bb3da29446627c1125b6572987c9a2d6
tree80aa65506194955f2383505a809dab91e83766c0
parenta01c1dda45d0275adf15f14e3f50426ad55ee85c
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