Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f84d9d8d authored by Nadav Amit's avatar Nadav Amit Committed by Greg Kroah-Hartman
Browse files

KVM: x86: Fix of previously incomplete fix for CVE-2014-8480



commit 63ea0a49ae0b145b91ff2b070c01b66fc75854b9 upstream.

STR and SLDT with rip-relative operand can cause a host kernel oops.
Mark them as DstMem as well.

Signed-off-by: default avatarNadav Amit <namit@cs.technion.ac.il>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cb2567bf
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -3777,8 +3777,8 @@ static const struct opcode group5[] = {
};
};


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