tracing/kprobe: Make trace_kprobe's module callback called after jump_label update
[ Upstream commitd685d55dfc] Make sure the trace_kprobe's module notifer callback function is called after jump_label's callback is called. Since the trace_kprobe's callback eventually checks jump_label address during registering new kprobe on the loading module, jump_label must be updated before this registration happens. Link: https://lore.kernel.org/all/173387585556.995044.3157941002975446119.stgit@devnote2/ Fixes:6142431810("tracing/kprobes: Support module init function probing") Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3d825a241e
commit
325c0e2766
@@ -705,7 +705,7 @@ static int trace_kprobe_module_callback(struct notifier_block *nb,
|
||||
|
||||
static struct notifier_block trace_kprobe_module_nb = {
|
||||
.notifier_call = trace_kprobe_module_callback,
|
||||
.priority = 1 /* Invoked after kprobe module callback */
|
||||
.priority = 2 /* Invoked after kprobe and jump_label module callback */
|
||||
};
|
||||
|
||||
struct count_symbols_struct {
|
||||
|
||||
Reference in New Issue
Block a user