diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2014-07-09 08:39:51 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2014-07-09 08:39:51 -0400 |
commit | 04bea4b9a4e410a540843933243be26de1592135 (patch) | |
tree | 8731f2550254fa7e5be8eff9233a6d0a69edb44b /arch/x86/kernel/ftrace.c | |
parent | e198cf1ad2f9ccedd005789a740d0eb5b3942447 (diff) | |
parent | 8097be3bc58315b14498000585299e3c06fb13ce (diff) | |
download | linux-rt-04bea4b9a4e410a540843933243be26de1592135.tar.gz |
Merge tag 'v3.12.24' into v3.12-rt
This is the 3.12.24 stable release
Conflicts:
include/linux/irqdesc.h
Diffstat (limited to 'arch/x86/kernel/ftrace.c')
-rw-r--r-- | arch/x86/kernel/ftrace.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/arch/x86/kernel/ftrace.c b/arch/x86/kernel/ftrace.c index 1ffc32dbe450..f8ab203fb676 100644 --- a/arch/x86/kernel/ftrace.c +++ b/arch/x86/kernel/ftrace.c @@ -297,16 +297,7 @@ int ftrace_int3_handler(struct pt_regs *regs) static int ftrace_write(unsigned long ip, const char *val, int size) { - /* - * On x86_64, kernel text mappings are mapped read-only with - * CONFIG_DEBUG_RODATA. So we use the kernel identity mapping instead - * of the kernel text mapping to modify the kernel text. - * - * For 32bit kernels, these mappings are same and we can use - * kernel identity mapping to modify code. - */ - if (within(ip, (unsigned long)_text, (unsigned long)_etext)) - ip = (unsigned long)__va(__pa_symbol(ip)); + ip = text_ip_addr(ip); return probe_kernel_write((void *)ip, val, size); } |