From: Andre Przywara Date: Mon, 7 Apr 2025 22:52:35 +0000 (+0100) Subject: sunxi: enable MMU_PGPROT proper page table protection X-Git-Tag: v2025.07-rc1~10^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16cfccda4dbf0b53473b8212897f5c63bfbeb6e1;p=pandora-u-boot.git sunxi: enable MMU_PGPROT proper page table protection Select the new MMU_PGPROT Kconfig symbol for all Allwinner board builds, to use a write-protected .rodata, non-executable .data and .rodata sections, and non-writable .text sections. This might trigger runtime exceptions in misbehaving drivers, which should then be fixed. Signed-off-by: Andre Przywara Acked-by: Jernej Skrabec --- diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index df373d38a55..fedfdb21457 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1190,6 +1190,7 @@ config ARCH_SUNXI select DM_SPI_FLASH if SPI && MTD select DM_KEYBOARD select DM_SERIAL + select MMU_PGPROT if ARM64 select OF_BOARD_SETUP select OF_CONTROL select PINCTRL