From: "Jan Beulich" Subject: [PATCH] x86emul: shifts/rotates don't allow LOCK prefix Date: Tue, 04 Jul 2017 04:32:26 -0600 Message-ID: <595B8ADA0200007800168592@prv-mh.provo.novell.com> References: <595B8ADA0200007800168592@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartAE96A1AA.1__=" Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSL8F-0004Ce-Fe for xen-devel@lists.xenproject.org; Tue, 04 Jul 2017 10:32:35 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: xen-devel Cc: Andrew Cooper List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartAE96A1AA.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline ... just like e.g. SHLD/SHRD don't (see commit dee231b5a8 [x86emul: improve LOCK handling]). Signed-off-by: Jan Beulich --- a/xen/arch/x86/x86_emulate/x86_emulate.c +++ b/xen/arch/x86/x86_emulate/x86_emulate.c @@ -3853,6 +3853,7 @@ x86_emulate( break; =20 case 0xc0 ... 0xc1: grp2: /* Grp2 */ + generate_exception_if(lock_prefix, EXC_UD); switch ( modrm_reg & 7 ) { case 0: /* rol */ --=__PartAE96A1AA.1__= Content-Type: text/plain; name="x86emul-shift-no-lock.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86emul-shift-no-lock.patch" x86emul: shifts/rotates don't allow LOCK prefix=0A=0A... just like e.g. = SHLD/SHRD don't (see commit dee231b5a8 [x86emul:=0Aimprove LOCK handling]).= =0A=0ASigned-off-by: Jan Beulich =0A=0A--- a/xen/arch/x8= 6/x86_emulate/x86_emulate.c=0A+++ b/xen/arch/x86/x86_emulate/x86_emulate.c= =0A@@ -3853,6 +3853,7 @@ x86_emulate(=0A break;=0A =0A case = 0xc0 ... 0xc1: grp2: /* Grp2 */=0A+ generate_exception_if(lock_prefi= x, EXC_UD);=0A switch ( modrm_reg & 7 )=0A {=0A = case 0: /* rol */=0A --=__PartAE96A1AA.1__= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --=__PartAE96A1AA.1__=--