[PATCH] sunxi: enable MMU_PGPROT proper page table protection

Jernej Škrabec jernej.skrabec at gmail.com
Sat Apr 26 19:44:55 CEST 2025


Dne sobota, 26. april 2025 ob 14:09:13 Srednjeevropski poletni čas je Andre Przywara napisal(a):
> 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 at arm.com>

Acked-by: Jernej Skrabec <jernej.skrabec at gmail.com>

Best regards,
Jernej

> ---
> 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(+)
> 
> 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
> 






More information about the U-Boot mailing list