Skip to contentSkip to conversation

do you have plan to add kaslrseed support to extlinux.conf

DISCUSSION 张 宁 2 participants 2 messages Jan 26, 2022 – Jan 29, 2022

lore
Share & tools
lore

张 宁

author
#0 lore raw

Hi, Chris Morgan

thank you to add kaslrseed to U-boot, do you have plan to add it to extlinux.conf?

BR.
Ning

#1 lore raw
Quoted 3 lines · 张 宁

Hi, Chris Morgan

thank you to add kaslrseed to U-boot, do you have plan to add it to extlinux.conf?

If extlinux.conf can run commands for U-Boot it should be as simple as doing the following:

Load your devicetree from external memory.
("load mmc 0 ${fdt_addr_r} devicetree.dtb")

Use the fdt command to set the devicetree in memory. ("fdt addr ${fdt_addr_r}")

Resize the FDT in memory:
("fdt resize")

Run kaslrseed to add a kaslr-seed value to the chosen node. ("kaslrseed")

Note that currently you need a hardware random number generator to use this command (UCLASS_RNG). I'm not aware of the cryptographic implications of using the non-hardware random function of U-Boot to generate this value, but if someone who knows more than me when it comes to security can vouch I could in theory add support for software RNG into this tool as well.

Thank you.

Quoted 3 lines

BR.
Ning