Enable RNG support for KASLR on Toradex arm64 TI SoMs
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
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
@@ -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
PATCH 2/2 configs: verdin-am62p: enable RNG support for KASLR
In reply to Emanuele GhidoliFrom: 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
@@ -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
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 AM62PThis 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: ba57c79c6f778e006aba9cfea0601ce20b2db94bSignature · 1 line
Tom