]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Decoding guest instructions which cross page boundary may fail
authorNadav Amit <namit@cs.technion.ac.il>
Thu, 2 Oct 2014 22:10:04 +0000 (01:10 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Oct 2014 11:21:18 +0000 (13:21 +0200)
commit0b51d4cbceffc21bb5a496661e5e12559cad4bbf
tree0a2194efd8b9a542f208337f16a67e8807deb417
parent8afb9a6757a64d45268f2104ebc8eea769d54c0d
KVM: x86: Decoding guest instructions which cross page boundary may fail

Once an instruction crosses a page boundary, the size read from the second page
disregards the common case that part of the operand resides on the first page.
As a result, fetch of long insturctions may fail, and thereby cause the
decoding to fail as well.

Cc: stable@vger.kernel.org
Fixes: 027eec54a2c8a2e43b14410deb135313d1174021
Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c