Revert "kprobes: Warn if optprobe handler tries to change execution path"
authorNaveen N. Rao <[email protected]>
Tue, 17 Oct 2017 08:18:34 +0000 (13:48 +0530)
committerIngo Molnar <[email protected]>
Wed, 18 Oct 2017 13:21:35 +0000 (15:21 +0200)
commit4f3a871443669c6b4d458a60ac8d8ca5eedc3f97
tree44ee4a6308eca2341ed70dc9accc001bb75300f8
parent4b50239a769e78bbe362fc92c3f8bd5415a4a5f5
Revert "kprobes: Warn if optprobe handler tries to change execution path"

This reverts commit:

  e863d539614641 ("kprobes: Warn if optprobe handler tries to change execution path")

On PowerPC, we place a probe at kretprobe_trampoline to catch function
returns and with CONFIG_OPTPROBES=y, this probe gets optimized. This
works for us due to the way we handle the optprobe as described in
commit:

  762df10bad6954 ("powerpc/kprobes: Optimize kprobe in kretprobe_trampoline()")

With the above commit, we end up with a warning. As such, revert this change.

Reported-by: Michael Ellerman <[email protected]>
Signed-off-by: Naveen N. Rao <[email protected]>
Cc: Ananth N Mavinakayanahalli <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
kernel/kprobes.c