diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2019-07-25 15:24:37 +0900 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2019-08-31 12:19:10 -0400 |
commit | 0bc11ed5ab60c135aa764a62c02cd5ea68289de4 (patch) | |
tree | 503be167bf756a0f32c4fbe11da3c41895697049 /scripts/gcc-plugins | |
parent | c68c9ec1c52e5bcd221eb09bc5344ad4f407b204 (diff) |
kprobes: Allow kprobes coexist with livepatch
Allow kprobes which do not modify regs->ip, coexist with livepatch
by dropping FTRACE_OPS_FL_IPMODIFY from ftrace_ops.
User who wants to modify regs->ip (e.g. function fault injection)
must set a dummy post_handler to its kprobes when registering.
However, if such regs->ip modifying kprobes is set on a function,
that function can not be livepatched.
Link: http://lkml.kernel.org/r/156403587671.30117.5233558741694155985.stgit@devnote2
Acked-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'scripts/gcc-plugins')
0 files changed, 0 insertions, 0 deletions