[ipxe-devel] [PATCH 1/1] [efi] avoid unaligned read in efi_devpath_end()

Michael Brown mcb30 at ipxe.org
Wed Mar 28 19:12:20 UTC 2018


On 28/03/18 20:10, Heinrich Schuchardt wrote:
>> There's no way that the code:
>>
>>> -             ( ( path->Length[1] << 8 ) | path->Length[0] ) );
>>
>> should ever be able to produce an unaligned access abort, since it just
>> dereferences individual bytes.  What do you see if you disassemble the
>> object code?
> 
> I put a DGBC before and after the access. And this is were the interrupt
> occurs.
> 
> I do not know how to disassemble the object code. Which files do you need?

You should be able to use:

   objdump -dS bin-arm32-efi/efi_utils.o

Michael




More information about the ipxe-devel mailing list