diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2021-09-21 13:59:59 +0200 |
---|---|---|
committer | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2021-10-19 11:30:58 +0200 |
commit | 4aede550f104158963260cdb736d0889a7671d6f (patch) | |
tree | 4feb29db78993c265fbafd8efcb3f6855b190b70 /arch/arm/mach-imx/Kconfig | |
parent | ARM: add __arm_iomem_set_ro() to write-protect ioremapped area (diff) | |
download | linux-4aede550f104158963260cdb736d0889a7671d6f.tar.xz linux-4aede550f104158963260cdb736d0889a7671d6f.zip |
ARM: imx6: mark OCRAM mapping read-only
iMX6 needs to write some code to OCRAM which resumes the DDR controller
after suspend. However, merely using __arm_ioremap_exec() causes the
kernel to complain of a W+X mapping. Solve this by using the newly
introduced __arm_iomem_set_ro() function to prevent inadvertent or
malicious writes to code we may later execute.
Tested-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/mach-imx/Kconfig')
0 files changed, 0 insertions, 0 deletions