Skip to content
Commit 6f3e157e authored by Denis Valeev's avatar Denis Valeev Committed by Greg Kroah-Hartman
Browse files

KVM: x86: nSVM: skip eax alignment check for non-SVM instructions

commit 47c28d43 upstream.

The bug occurs on #GP triggered by VMware backdoor when eax value is
unaligned. eax alignment check should not be applied to non-SVM
instructions because it leads to incorrect omission of the instructions
emulation.
Apply the alignment check only to SVM instructions to fix.

Fixes: d1cba6c9

 ("KVM: x86: nSVM: test eax for 4K alignment for GP errata workaround")
Signed-off-by: default avatarDenis Valeev <lemniscattaden@gmail.com>
Message-Id: <Yexlhaoe1Fscm59u@q>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 57565656
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment