Skip to content

Commit d685d55

Browse files
committed
tracing/kprobe: Make trace_kprobe's module callback called after jump_label update
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: 6142431 ("tracing/kprobes: Support module init function probing") Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
1 parent 494b332 commit d685d55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/trace/trace_kprobe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ static int trace_kprobe_module_callback(struct notifier_block *nb,
725725

726726
static struct notifier_block trace_kprobe_module_nb = {
727727
.notifier_call = trace_kprobe_module_callback,
728-
.priority = 1 /* Invoked after kprobe module callback */
728+
.priority = 2 /* Invoked after kprobe and jump_label module callback */
729729
};
730730
static int trace_kprobe_register_module_notifier(void)
731731
{

0 commit comments

Comments
 (0)