]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86/emulator: Fix handing of POP SS to correctly set interruptibility
authorMichal Luczaj <mhal@rbox.co>
Sun, 21 Aug 2022 22:06:47 +0000 (00:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:15:38 +0000 (13:15 +0200)
commitc3eac1e56ebbeed69e3070add240320d54157520
treea815a15e258019865e8d2e3c22c2259fc1bbb754
parentd7dd5658ce192d7e56e77448f8568428734cc30c
KVM: x86/emulator: Fix handing of POP SS to correctly set interruptibility

commit 6aa5c47c351b22c21205c87977c84809cd015fcf upstream.

The emulator checks the wrong variable while setting the CPU
interruptibility state, the target segment is embedded in the instruction
opcode, not the ModR/M register.  Fix the condition.

Signed-off-by: Michal Luczaj <mhal@rbox.co>
Fixes: a5457e7bcf9a ("KVM: emulate: POP SS triggers a MOV SS shadow too")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/all/20220821215900.1419215-1-mhal@rbox.co
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/emulate.c