[U-Boot] [PATCH v0 13/20] efi_loader: use proper device-paths for partitions

Mark Kettenis mark.kettenis at xs4all.nl
Sun Aug 6 14:28:43 UTC 2017


> Date: Sun, 6 Aug 2017 15:16:09 +0200 (CEST)
> From: Mark Kettenis <mark.kettenis at xs4all.nl>
> 
> Things are already broken before that commit though, so there is
> another problem.  I'll see if I can figure out what it is...

data abort
pc : [<7ef59160>]          lr : [<7ef59118>]
reloc pc : [<4a003160>]    lr : [<4a003118>]
sp : 7af2b820  ip : 7af69635     fp : 7ef5aee4
r10: 00000005  r9 : 7af35ee0     r8 : 7efb4490
r7 : 7af695e8  r6 : 7af69620     r5 : 0000005c  r4 : 7af2b828
r3 : 7efae477  r2 : 0000005c     r1 : 0000002f  r0 : 00000000
Flags: nzCv  IRQs off  FIQs off  Mode SVC_32

addr2line -e u-boot.bin 0x4a003160
/home/kettenis/tmp/rclark/u-boot/include/efi_loader.h:204

which is the ascii2unicode() function which is used in
efi_disk_add_dev() and indeed does 16-bit stores to potentiaslly
unaligned memory.  And yes, adding __packed to struct
efi_device_file_path will trigger the unaligned access in this case.


More information about the U-Boot mailing list