1
0
Fork 0
mirror of https://github.com/u-boot/u-boot.git synced 2025-04-26 23:41:50 +00:00
u-boot/include/asm-generic
Ilias Apalodimas fd58c275f6 efi_loader: Move public cert for capsules to .rodata
commit ddf67daac3 ("efi_capsule: Move signature from DTB to .rodata")
was reverted in
commit 47a25e81d3 ("Revert "efi_capsule: Move signature from DTB to .rodata"")
because that's what U-Boot was usually doing -- using the DT to store
configuration and data. Some of the discussions can be found here [0].

(Ab)using the device tree to store random data isn't ideal though.
On top of that with new features introduced over the years, keeping
the certificates in the DT has proven to be problematic.
One of the reasons is that platforms might send U-Boot a DTB
from the previous stage loader using a transfer list which won't contain
the signatures since other loaders are not  aware of internal
U-Boot ABIs. On top of that QEMU creates the DTB on the fly, so adding
the capsule certificate there does not work and requires users to dump
it and re-create it injecting the public keys.

Now that we have proper memory permissions for arm64, move the certificate
to .rodata and read it from there.

[0] https://lore.kernel.org/u-boot/CAPnjgZ2uM=n8Qo-a=DUkx5VW5Bzp5Xy8=Wgmrw8ESqUBK00YJQ@mail.gmail.com/

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Tested-by: Jonathan Humphreys <j-humphreys@ti.com>  # on TI sk-am62p-lp
Tested-by: Neil Armstrong <neil.armstrong@linaro.org> # on AML-A311D-CC
Tested-by: Raymond Mao <raymond.mao@linaro.org>
2025-04-11 13:25:31 +02:00
..
bitops arm: Use builtins for ffs/fls 2023-08-17 16:39:20 -04:00
atomic-long.h atomic-long: Fix warnings on arm64 2018-01-28 09:39:05 -05:00
atomic.h Add include/asm-generic/atomic.h 2018-09-25 21:49:18 -04:00
bitsperlong.h linux/bitops.h: GENMASK copy from linux 2015-10-21 09:14:07 -04:00
global_data.h membuf: Rename struct 2025-04-03 16:54:49 -06:00
gpio.h gpio: Use separate bitfield array to indicate GPIO is claimed 2023-08-14 17:55:53 -04:00
int-ll64.h include: asm-generic: Remove duplicate newlines 2024-07-29 15:01:04 -06:00
io.h asm-generic: Import functions from Linux 2023-11-28 16:19:06 -05:00
ioctl.h x86: Fix support for booting bzImage 2010-05-06 00:17:01 +02:00
pe.h efi_loader: set IMAGE_DLLCHARACTERISTICS_NX_COMPAT 2024-02-28 14:37:46 +01:00
sections.h efi_loader: Move public cert for capsules to .rodata 2025-04-11 13:25:31 +02:00
signal.h
u-boot.h global: Remove bi_sramstart/bi_sramsize 2024-11-16 19:49:13 -06:00
unaligned.h asm-generic: simplify unaligned.h 2023-05-31 14:05:34 -04:00