From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 6 May 2020 16:00:57 -0400 Subject: [PATCH] lib: rsa: Fix unaligned 64-bit fdt accesses In-Reply-To: References: Message-ID: <20200506200057.GS12564@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, May 06, 2020 at 06:32:03PM +0200, Jan Kiszka wrote: > From: Jan Kiszka > > 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 This is the same as: http://patchwork.ozlabs.org/project/uboot/patch/20200503112634.590399-1-heiko at 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: