[PATCH] lib: rsa: Fix unaligned 64-bit fdt accesses
Tom Rini
trini at konsulko.com
Wed May 6 22:00:57 CEST 2020
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!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200506/87f5ddb8/attachment.sig>
More information about the U-Boot
mailing list