arm64: Add CONFIG_DEBUG_SET_MODULE_RONX support
authorLaura Abbott <lauraa@codeaurora.org>
Tue, 19 Aug 2014 19:41:43 +0000 (20:41 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 22 Jan 2015 21:44:18 +0000 (21:44 +0000)
commitda81aae1834686f559d6e06060d8f3c3f7cdf508
treec93997bbabfde1b10322be1bc22431e62b6bcdfb
parent73cf4139a89eb67351d5e63209d8f554ada0ae6e
arm64: Add CONFIG_DEBUG_SET_MODULE_RONX support

In a similar fashion to other architecture, add the infrastructure
and Kconfig to enable DEBUG_SET_MODULE_RONX support. When
enabled, module ranges will be marked read-only/no-execute as
appropriate.

Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
[will: fixed off-by-one in module end check]
Signed-off-by: Will Deacon <will.deacon@arm.com>
(cherry picked from commit 11d91a770f1fff44dafdf88d6089a3451f99c9b6)
Signed-off-by: Mark Brown <broonie@kernel.org>
Conflicts:
arch/arm64/Kconfig.debug
arch/arm64/Kconfig.debug
arch/arm64/include/asm/cacheflush.h
arch/arm64/mm/Makefile
arch/arm64/mm/pageattr.c [new file with mode: 0644]