[ARM] Improve non-executable support
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 7 Sep 2008 16:16:54 +0000 (17:16 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 1 Oct 2008 15:41:10 +0000 (16:41 +0100)
commit8ec53663d2698076468b3e1edc4e1b418bd54de3
treed98f0ac21ec96be15aab1b05d3d6e2f60a657815
parent5ec9407dd1196daaf12b427b351e2cd62d2a16a7
[ARM] Improve non-executable support

Add support for detecting non-executable stack binaries, and adjust
permissions to prevent execution from data and stack areas.  Also,
ensure that READ_IMPLIES_EXEC is enabled for older CPUs where that
is true, and for any executable-stack binary.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/elf.h
arch/arm/include/asm/page.h
arch/arm/include/asm/pgtable.h
arch/arm/kernel/Makefile
arch/arm/kernel/elf.c [new file with mode: 0644]
arch/arm/kernel/module.c