From: Shawn Guo <shawnguo@kernel.org>
To: "Russell King (Oracle)" <linux@armlinux.org.uk>
Cc: Tim Harvey <tharvey@gateworks.com>,
Fabio Estevam <festevam@gmail.com>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Linux ARM Mailing List <linux-arm-kernel@lists.infradead.org>,
Lee Jones <lee.jones@linaro.org>,
Robin Murphy <robin.murphy@arm.com>,
NXP Linux Team <linux-imx@nxp.com>
Subject: Re: arm32 insecure W+X mapping
Date: Wed, 22 Sep 2021 11:37:12 +0800 [thread overview]
Message-ID: <20210922033711.GK10217@dragon> (raw)
In-Reply-To: <YUkXCORJOPBa079J@shell.armlinux.org.uk>
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@kernel.org>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
prev parent reply other threads:[~2021-09-22 3:39 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-19 17:19 arm32 insecure W+X mapping Tim Harvey
2021-08-19 21:28 ` Russell King (Oracle)
2021-08-19 23:59 ` Tim Harvey
2021-08-20 0:16 ` Russell King (Oracle)
2021-08-20 16:06 ` Tim Harvey
2021-08-20 17:48 ` Robin Murphy
2021-08-20 18:41 ` Tim Harvey
2021-09-07 17:48 ` Tim Harvey
2021-09-07 19:22 ` Russell King (Oracle)
2021-09-15 9:44 ` Fabio Estevam
2021-09-15 15:07 ` Tim Harvey
2021-09-20 16:22 ` Russell King (Oracle)
2021-09-20 20:56 ` Tim Harvey
2021-09-20 21:13 ` Russell King (Oracle)
2021-09-20 22:53 ` Tim Harvey
2021-09-20 23:12 ` Fabio Estevam
2021-09-20 23:19 ` Russell King (Oracle)
2021-09-21 0:21 ` Fabio Estevam
2021-09-21 15:13 ` Russell King (Oracle)
2021-09-22 3:37 ` Shawn Guo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210922033711.GK10217@dragon \
--to=shawnguo@kernel.org \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux@armlinux.org.uk \
--cc=robin.murphy@arm.com \
--cc=tharvey@gateworks.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox