summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2017-05-25 10:57:51 +0200
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2017-05-26 22:37:02 -0400
commit6ee98ffeea0bc9e072e419497d78697d8afcdd6d (patch)
treed1fdc5c65a3006941edc142b86935d6cffe55ce8 /tools
parenta53276e2826010338478ed94310874001a8097fa (diff)
x86/ftrace: Make sure that ftrace trampolines are not RWX
ftrace use module_alloc() to allocate trampoline pages. The mapping of module_alloc() is RWX, which makes sense as the memory is written to right after allocation. But nothing makes these pages RO after writing to them. Add proper set_memory_rw/ro() calls to protect the trampolines after modification. Link: http://lkml.kernel.org/r/alpine.DEB.2.20.1705251056410.1862@nanos Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions