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)
committerSean Christopherson <seanjc@google.com>
Wed, 24 Aug 2022 20:45:40 +0000 (13:45 -0700)
commit6aa5c47c351b22c21205c87977c84809cd015fcf
tree11c5e97e76ab48521f3331b65853710c49213562
parentb24ede22538b4d984cbe20532bbcb303692e7f52
KVM: x86/emulator: Fix handing of POP SS to correctly set interruptibility

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>
arch/x86/kvm/emulate.c