sunxi: enable MMU_PGPROT proper page table protection
authorAndre Przywara <andre.przywara@arm.com>
Mon, 7 Apr 2025 22:52:35 +0000 (23:52 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 28 Apr 2025 18:45:43 +0000 (12:45 -0600)
commit16cfccda4dbf0b53473b8212897f5c63bfbeb6e1
tree620fe3009d7257623f6b25d020de330a48b3d83c
parent432e518ba70ff87bee7acec2e5f614d6ad044bbd
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 <andre.przywara@arm.com>
Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com>
arch/arm/Kconfig