break
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
@@ -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
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
Signed-off-by Andrew Cooper <[email protected]>
---
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
@@ -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
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
Signed-off-by Andrew Cooper <[email protected]>
Reviewed-by Jan Beulich <[email protected]>
I'm sorry for the oversight.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel