Skip to contentSkip to conversation

sunxi: enable MMU_PGPROT proper page table protection

PATCH In review Andre Przywara 3 participants 3 messages Apr 26, 2025 – Apr 29, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.
Please report on the list or on IRC if bisecting ends at this patch.

---
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(+)
arch/arm/Kconfig +1 -0
index 99750072e55..f22d347d5ad 100644
@@ -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
Signature · 1 line
2.46.3
maintainer Acked-by on v1 1/1
#1 lore raw

Dne sobota, 26. april 2025 ob 14:09:13 Srednjeevropski poletni čas je Andre Przywara napisal(a):

Quoted 9 lines

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.

Best regards,
Jernej

Quoted 26 lines

---
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(+)
arch/arm/Kconfig +1 -0
index 99750072e55..f22d347d5ad 100644
@@ -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
Reviewed-by on v1 1/1
#2 lore raw
In reply to Andre Przywara

Thanks Andre

Quoted 36 lines · Andre Przywara

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.

---
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(+)
arch/arm/Kconfig +1 -1
index 99750072e55..f22d347d5ad 100644
@@ -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
--
Quoted 2 lines

2.46.3