sunxi: enable MMU_PGPROT proper page table protection

Message ID 20250426120913.23314-1-andre.przywara@arm.com (mailing list archive)
State New
Headers
Series sunxi: enable MMU_PGPROT proper page table protection |

Commit Message

Andre Przywara April 26, 2025, 12:09 p.m. UTC
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.
Please report on the list or on IRC if bisecting ends at this patch.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
---
Hi,

I am planning on merging this ASAP, to get some exposure and use the time
until the release for wider testing. If worst comes to the worst, we can
revert it still before July.

Cheers,
Andre

 arch/arm/Kconfig | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 99750072e55..f22d347d5ad 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1192,6 +1192,7 @@  config ARCH_SUNXI
 	select DM_KEYBOARD
 	select DM_SERIAL
 	select DM_PMIC
+	select MMU_PGPROT if ARM64
 	select OF_BOARD_SETUP
 	select OF_CONTROL
 	select PINCTRL