arm32 insecure W+X mapping

Shawn Guo shawnguo at kernel.org
Tue Sep 21 20:37:12 PDT 2021


On Tue, Sep 21, 2021 at 12:19:36AM +0100, Russell King (Oracle) wrote:
> diff --git a/arch/arm/mach-imx/pm-imx6.c b/arch/arm/mach-imx/pm-imx6.c
> index 9244437cb1b9..5c16257872a5 100644
> --- a/arch/arm/mach-imx/pm-imx6.c
> +++ b/arch/arm/mach-imx/pm-imx6.c
> @@ -571,6 +571,8 @@ static int __init imx6q_suspend_init(const struct imx6_pm_socdata *socdata)
>  		&imx6_suspend,
>  		MX6Q_SUSPEND_OCRAM_SIZE - sizeof(*pm_info));
>  
> +	__arm_iomem_set_ro(suspend_ocram_base, MX6Q_SUSPEND_OCRAM_SIZE);
> +
>  	goto put_device;
>  
>  pl310_cache_map_failed:

Acked-by: Shawn Guo <shawnguo at kernel.org>



More information about the linux-arm-kernel mailing list