Skip to content

Commit

Permalink
KVM: x86: Fix of previously incomplete fix for CVE-2014-8480
Browse files Browse the repository at this point in the history
STR and SLDT with rip-relative operand can cause a host kernel oops.
Mark them as DstMem as well.

Cc: [email protected]
Signed-off-by: Nadav Amit <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
anadav authored and bonzini committed Jan 23, 2015
1 parent cdef511 commit 63ea0a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kvm/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -3791,8 +3791,8 @@ static const struct opcode group5[] = {
};

static const struct opcode group6[] = {
DI(Prot, sldt),
DI(Prot, str),
DI(Prot | DstMem, sldt),
DI(Prot | DstMem, str),
II(Prot | Priv | SrcMem16, em_lldt, lldt),
II(Prot | Priv | SrcMem16, em_ltr, ltr),
N, N, N, N,
Expand Down

0 comments on commit 63ea0a4

Please sign in to comment.