This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Bug binutils/14355] New: crash in OP_VEX
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: nick clifton <nickc at redhat dot com>
- Cc: binutils at sourceware dot org, wbrana at gmail dot com
- Date: Tue, 17 Jul 2012 09:38:33 -0700
- Subject: Re: [Bug binutils/14355] New: crash in OP_VEX
- References: <bug-14355-70@http.sourceware.org/bugzilla/> <50057B33.30207@redhat.com>
On Tue, Jul 17, 2012 at 7:48 AM, nick clifton <nickc@redhat.com> wrote:
> Hi H.J.
>
> Would you mind taking a look at this x86 bug report:
>
>> http://sourceware.org/bugzilla/show_bug.cgi?id=14355
>
>
> A simplistic fix appears to be this:
>
> Index: opcodes/i386-dis.c
> ===================================================================
> RCS file: /cvs/src/src/opcodes/i386-dis.c,v
> retrieving revision 1.269
> diff -u -3 -p -r1.269 i386-dis.c
> --- opcodes/i386-dis.c 16 Jul 2012 12:58:29 -0000 1.269
> +++ opcodes/i386-dis.c 17 Jul 2012 15:52:06 -0000
> @@ -14661,6 +14661,7 @@ OP_VEX (int bytemode, int sizeflag ATTRI
> case vex256_mode:
> names = names_ymm;
> break;
> + case vex128_mode:
> case vex_vsib_q_w_dq_mode:
> names = vex.w ? names_ymm : names_xmm;
> break;
>
> But I am not sure if that is the correct thing to do.
>
This is the wrong fix. The bug is in XOP implementation.
Someone from AMD should take a look.
--
H.J.