ARM: 8022/1: ftrace: work with CONFIG_DEBUG_SET_MODULE_RONX
authorRabin Vincent <rabin@rab.in>
Thu, 3 Apr 2014 17:46:45 +0000 (18:46 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 23 Apr 2014 00:24:31 +0000 (01:24 +0100)
commita672917ab8964228f83ac1f0728468b309d6ea19
tree460597a22423320189d38bebb8b8b408ad46f990
parent603fb42a66499ab353466c7afa3d38beea20a8a9
ARM: 8022/1: ftrace: work with CONFIG_DEBUG_SET_MODULE_RONX

Make ftrace work with CONFIG_DEBUG_SET_MODULE_RONX by making module text
writable around the place where ftrace does its work, like it is done on
x86 in the patch which introduced CONFIG_DEBUG_SET_MODULE_RONX,
84e1c6bb38eb ("x86: Add RO/NX protection for loadable kernel modules").

Tested-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/ftrace.c