From: Masami Hiramatsu Date: Fri, 21 Nov 2014 10:25:23 +0000 (-0500) Subject: kprobes: Add IPMODIFY flag to kprobe_ftrace_ops X-Git-Tag: v4.14-rc1~6281^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1d70be34df59f34b4562b8c047fc3a5069ce17b4;p=platform%2Fkernel%2Flinux-rpi.git kprobes: Add IPMODIFY flag to kprobe_ftrace_ops Add FTRACE_OPS_FL_IPMODIFY flag to kprobe_ftrace_ops since kprobes can changes regs->ip. Link: http://lkml.kernel.org/r/20141121102523.11844.21298.stgit@localhost.localdomain Signed-off-by: Masami Hiramatsu Signed-off-by: Steven Rostedt --- diff --git a/kernel/kprobes.c b/kernel/kprobes.c index 3995f54..831978c 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c @@ -915,7 +915,7 @@ static struct kprobe *alloc_aggr_kprobe(struct kprobe *p) #ifdef CONFIG_KPROBES_ON_FTRACE static struct ftrace_ops kprobe_ftrace_ops __read_mostly = { .func = kprobe_ftrace_handler, - .flags = FTRACE_OPS_FL_SAVE_REGS, + .flags = FTRACE_OPS_FL_SAVE_REGS | FTRACE_OPS_FL_IPMODIFY, }; static int kprobe_ftrace_enabled;