Skip to contentSkip to conversation

Enable RNG support for KASLR on Toradex arm64 TI SoMs

PATCH In review Emanuele Ghidoli 2 participants 4 messages Jul 2, 2025 – Jul 11, 2025

lore
Share & tools
lore
#0 lore raw

cover Enable RNG support for KASLR on Toradex arm64 TI SoMs

From: Emanuele Ghidoli <[email protected]>

This patch series enables RNG support to automatically populate /chosen/kaslr-seed on the following Toradex arm64 TI System on Modules:
- Verdin AM62
- Verdin AM62P

This improves kernel security by supporting Kernel Address Space Layout Randomization (KASLR) using a runtime-provided seed.

Emanuele Ghidoli (2):
configs: verdin-am62: enable RNG support for KASLR
configs: verdin-am62p: enable RNG support for KASLR

 configs/verdin-am62_a53_defconfig  | 4 ++++
 configs/verdin-am62p_a53_defconfig | 4 ++++
 2 files changed, 8 insertions(+)
Signature · 1 line
2.43.0
#1 lore raw

PATCH 1/2 configs: verdin-am62: enable RNG support for KASLR

From: Emanuele Ghidoli <[email protected]>

Enable DM_RNG in U-Boot to populate /chosen/kaslr-seed automatically. Enable OP-TEE, which supports RNG, to provide entropy.

---
 configs/verdin-am62_a53_defconfig | 4 ++++
 1 file changed, 4 insertions(+)
configs/verdin-am62_a53_defconfig +4 -0
index 584c416bd83b..0b3bb6007ddf 100644
@@ -169,6 +169,7 @@ CONFIG_DM_REGULATOR_TPS65219=y
 CONFIG_K3_SYSTEM_CONTROLLER=y
 CONFIG_REMOTEPROC_TI_K3_ARM64=y
 CONFIG_RESET_TI_SCI=y
+CONFIG_DM_RNG=y
 CONFIG_DM_SERIAL=y
 CONFIG_SOC_DEVICE=y
 CONFIG_SOC_DEVICE_TI_K3=y
@@ -176,6 +177,8 @@ CONFIG_SOC_TI=y
 CONFIG_SYSRESET=y
 CONFIG_SPL_SYSRESET=y
 CONFIG_SYSRESET_TI_SCI=y
+CONFIG_TEE=y
+CONFIG_OPTEE=y
 CONFIG_DM_THERMAL=y
 CONFIG_USB=y
 CONFIG_DM_USB_GADGET=y
@@ -194,3 +197,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x4000
 CONFIG_SPL_DFU=y
 CONFIG_FS_FAT_MAX_CLUSTSIZE=16384
 CONFIG_HEXDUMP=y
+# CONFIG_OPTEE_LIB is not set
Signature · 1 line
2.43.0
#2 lore raw

PATCH 2/2 configs: verdin-am62p: enable RNG support for KASLR

In reply to Emanuele Ghidoli

From: Emanuele Ghidoli <[email protected]>

Enable DM_RNG in U-Boot to populate /chosen/kaslr-seed automatically. Enable OP-TEE, which supports RNG, to provide entropy.

---
 configs/verdin-am62p_a53_defconfig | 4 ++++
 1 file changed, 4 insertions(+)
configs/verdin-am62p_a53_defconfig +4 -0
index e782ad4faca7..f6cb21aad18a 100644
@@ -172,6 +172,7 @@ CONFIG_REMOTEPROC_TI_K3_ARM64=y
 CONFIG_REMOTEPROC_TI_K3_DSP=y
 CONFIG_REMOTEPROC_TI_K3_R5F=y
 CONFIG_RESET_TI_SCI=y
+CONFIG_DM_RNG=y
 CONFIG_DM_SERIAL=y
 CONFIG_SOC_DEVICE=y
 CONFIG_SOC_DEVICE_TI_K3=y
@@ -179,6 +180,8 @@ CONFIG_SOC_TI=y
 CONFIG_SYSRESET=y
 CONFIG_SPL_SYSRESET=y
 CONFIG_SYSRESET_TI_SCI=y
+CONFIG_TEE=y
+CONFIG_OPTEE=y
 CONFIG_DM_THERMAL=y
 CONFIG_USB=y
 CONFIG_DM_USB_GADGET=y
@@ -197,3 +200,4 @@ CONFIG_USB_GADGET_PRODUCT_NUM=0x4000
 CONFIG_SPL_DFU=y
 CONFIG_FS_FAT_MAX_CLUSTSIZE=16384
 CONFIG_HEXDUMP=y
+# CONFIG_OPTEE_LIB is not set
Signature · 1 line
2.43.0
#3 lore raw
In reply to Emanuele Ghidoli
Quoted 9 lines · Emanuele Ghidoli

From: Emanuele Ghidoli <[email protected]>

This patch series enables RNG support to automatically populate /chosen/kaslr-seed on the following Toradex arm64 TI System on Modules:
- Verdin AM62
- Verdin AM62P

This improves kernel security by supporting Kernel Address Space Layout Randomization (KASLR) using a runtime-provided seed.

[...]

Applied to u-boot/master, thanks!

[1/2] configs: verdin-am62: enable RNG support for KASLR

      commit: 2d72a0bc43befa1a5c5b8de075f41240f227cfb6
[2/2] configs: verdin-am62p: enable RNG support for KASLR
      commit: ba57c79c6f778e006aba9cfea0601ce20b2db94b
Signature · 1 line
Tom