sunxi: enable MMU_PGPROT proper page table protection
Commit Message
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(+)
@@ -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