]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 9 Nov 2020 13:47:49 +0000 (14:47 +0100)
commitc7c332f941e0292bd9864d58f9f025bd04f3b921
tree21723c5148be84ecbab601618ff4c088a4546fe4
parent0bd1294d6a6eed91bc9dc1b92fc58fd39ac81b8f
KVM: x86: handle wrap around 32-bit address space

BugLink: https://bugs.launchpad.net/bugs/1900624
[ Upstream commit fede8076aab4c2280c673492f8f7a2e87712e8b4 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
arch/x86/kvm/emulate.c
arch/x86/kvm/svm.c
arch/x86/kvm/vmx/vmx.c