KVM: x86: pop sreg accesses only 2 bytes
authorNadav Amit <namit@cs.technion.ac.il>
Thu, 25 Dec 2014 00:52:17 +0000 (02:52 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 8 Jan 2015 21:48:04 +0000 (22:48 +0100)
commit3313bc4ee83c4e2870d8e83800c6064b0d215679
treeeda0f8afbeadc3fbb84290dc92949c9d678c137a
parentfa4a2c080e37d362ae603f4ea157fe779bd85cb5
KVM: x86: pop sreg accesses only 2 bytes

Although pop sreg updates RSP according to the operand size, only 2 bytes are
read.  The current behavior may result in incorrect #GP or #PF exceptions.

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