]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Sysexit emulation does not mask RIP/RSP
authorNadav Amit <namit@cs.technion.ac.il>
Thu, 18 Sep 2014 19:39:45 +0000 (22:39 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 3 Nov 2014 11:07:21 +0000 (12:07 +0100)
commit4d4f20fa95247cf843bab9eacda25b96b8361326
tree9e344bd659494bcfca3bfc5439fe21fec1dfa68a
parent26f4ba5809aa03cd053931c6c0a38284fd9ee919
KVM: x86: Sysexit emulation does not mask RIP/RSP

If the operand size is not 64-bit, then the sysexit instruction should assign
ECX to RSP and EDX to RIP.  The current code assigns the full 64-bits.

Fix it by masking.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/emulate.c