mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 13:41:30 +00:00
kprobes: Support NOKPROBE_SYMBOL() in modules
Support NOKPROBE_SYMBOL() in modules. NOKPROBE_SYMBOL() records only symbol address in "_kprobe_blacklist" section in the module. Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com> Acked-by: Peter Zijlstra <peterz@infradead.org> Link: https://lkml.kernel.org/r/20200505134059.771170126@linutronix.de
This commit is contained in:
parent
1e6769b0ae
commit
16db6264c9
3 changed files with 22 additions and 0 deletions
|
@ -3197,6 +3197,9 @@ static int find_module_sections(struct module *mod, struct load_info *info)
|
|||
#ifdef CONFIG_KPROBES
|
||||
mod->kprobes_text_start = section_objs(info, ".kprobes.text", 1,
|
||||
&mod->kprobes_text_size);
|
||||
mod->kprobe_blacklist = section_objs(info, "_kprobe_blacklist",
|
||||
sizeof(unsigned long),
|
||||
&mod->num_kprobe_blacklist);
|
||||
#endif
|
||||
mod->extable = section_objs(info, "__ex_table",
|
||||
sizeof(*mod->extable), &mod->num_exentries);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue