]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ARM: OMAP2+: Fix l2_inv_api_params for rodata
authorTony Lindgren <tony@atomide.com>
Thu, 14 Jan 2016 20:20:47 +0000 (12:20 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Feb 2016 20:01:20 +0000 (12:01 -0800)
commit98b3f17a7235cb49755c6bd17fc428381261105c
tree68e9dcd13f934aefcbfcf9f32d30f856710cd795
parentec776d670e2d1f6034fac2f1a28ff972776bba52
ARM: OMAP2+: Fix l2_inv_api_params for rodata

commit 0a0b13275558c32bbf6241464a7244b1ffd5afb3 upstream.

We don't want to write to .text, so let's move l2_inv_api_params
to .data and access it via a pointer.

Cc: Kees Cook <keescook@chromium.org>
Cc: Laura Abbott <labbott@redhat.com>
Cc: Nishanth Menon <nm@ti.com>
Cc: Richard Woodruff <r-woodruff2@ti.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: Tero Kristo <t-kristo@ti.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
Fixes: 1e6b48116a95 ("ARM: mm: allow non-text sections to be
non-executable")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-omap2/sleep34xx.S