Skip to contentSkip to conversation

break

PATCH In review Andrew Cooper 2 participants 3 messages Mar 7, 2017 – Mar 8, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 break

---
 xen/arch/x86/x86_emulate/x86_emulate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/x86_emulate/x86_emulate.c +1 -1
index 1b507f7..e09975c 100644
@@ -7920,7 +7920,7 @@ int x86_emulate_wrapper(
      * called hvm_inject_hw_exception() rather than using
      * x86_emul_hw_exception().)
      */
-    ASSERT(ctxt->event_pending == (rc == X86EMUL_EXCEPTION));
+    /* ASSERT(ctxt->event_pending == (rc == X86EMUL_EXCEPTION)); */
 
     return rc;
 }
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#1 lore raw

PATCH 2/2 x86/emul: Avoid #UD when emulating v{, u}comis{s, d}

v{,u}comis{s,d} have two operands, so require vex.reg set to ~0.

Spotted by AFL

---
CC: Jan Beulich <[email protected]>

---
 xen/arch/x86/x86_emulate/x86_emulate.c | 1 +
 1 file changed, 1 insertion(+)
xen/arch/x86/x86_emulate/x86_emulate.c +1 -0
index e09975c..08bd818 100644
@@ -5673,6 +5673,7 @@ x86_emulate(
         }
         else
         {
+            generate_exception_if(vex.reg != 0xf, EXC_UD);
             host_and_vcpu_must_have(avx);
             get_fpu(X86EMUL_FPU_ymm, &fic);
         }
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] x86/emul: Avoid #UD when emulating v{, u}comis{s, d}

Quoted 5 lines
Quoted 1 line
Quoted 1 line · On 08.03.17 at 00:32, <[email protected]> wrote:

v{,u}comis{s,d} have two operands, so require vex.reg set to ~0.

Spotted by AFL

I'm sorry for the oversight.

Jan

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel