[PATCH] lib: rsa: Fix unaligned 64-bit fdt accesses

Jan Kiszka jan.kiszka at siemens.com
Thu May 7 08:43:54 CEST 2020


On 06.05.20 22:00, Tom Rini wrote:
> On Wed, May 06, 2020 at 06:32:03PM +0200, Jan Kiszka wrote:
> 
>> From: Jan Kiszka <jan.kiszka at siemens.com>
>>
>> The fdt only provides 32-bit alignment of data. If the public_exponent
>> happens to be not 64-bit aligned, we can trigger an exception on certain
>> architectures. Seen on TI AM64x.
>>
>> Note that the normal way of accessing such a number would be
>> fdtdec_get_number. However, this is not available for tools, and this
>> is one use case for lib/rsa.
>>
>> Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
> 
> This is the same as:
> http://patchwork.ozlabs.org/project/uboot/patch/20200503112634.590399-1-heiko@sntech.de/
> I think which I'm testing right now.  Can you please confirm and
> tested-by?  Thanks!
> 

Oh, I should monitor the list better (I'm lacking an nntp archive for 
it, like lore.kernel.org).

Heiko's looks nicer, will test.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux


More information about the U-Boot mailing list