]> git.baikalelectronics.ru Git - kernel.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:22:20 +0000 (13:22 +0200)
commit2db57e2623f613e8ff3697be1397c0b0da191509
treea9bd6bafc4d3e9b7eb3573e14821c74982f73694
parent3740732970193cd581734ba6a5ff79f1dcfae01b
KVM: x86/emulator: Fix handing of POP SS to correctly set interruptibility

commit a91efa9b96c11bab85b726f37115bf971b5a3225 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: 46f2db219cd3 ("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