[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86: emulate lea with two register operands correctly
# HG changeset patch # User David Vrabel <david.vrabel@xxxxxxxxxx> # Date 1325778436 0 # Node ID 03781de56c31072266fb464e7dfeec133bcf0fb4 # Parent 94180a5a0c7c7d680ede2e54bd13f56ed43f452d x86: emulate lea with two register operands correctly An lea instruction with two register operands should raise an undefined instruction exception. Skype does such a instruction and will crash when starting if it does not get the exception. Signed-off-by: David Vrabel <david.vrabel@xxxxxxxxxx> Signed-off-by: Keir Fraser <keir@xxxxxxx> Committed-by: Keir Fraser <keir@xxxxxxx> --- diff -r 94180a5a0c7c -r 03781de56c31 xen/arch/x86/x86_emulate/x86_emulate.c --- a/xen/arch/x86/x86_emulate/x86_emulate.c Tue Dec 20 08:21:11 2011 +0100 +++ b/xen/arch/x86/x86_emulate/x86_emulate.c Thu Jan 05 15:47:16 2012 +0000 @@ -2240,6 +2240,7 @@ } case 0x8d: /* lea */ + generate_exception_if(ea.type != OP_MEM, EXC_UD, -1); dst.val = ea.mem.off; break; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |