mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
kprobes: Prevent probes in .noinstr.text section
Instrumentation is forbidden in the .noinstr.text section. Make kprobes respect this. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com> Acked-by: Peter Zijlstra <peterz@infradead.org> Acked-by: Masami Hiramatsu <mhiramat@kernel.org> Link: https://lkml.kernel.org/r/20200505134100.179862032@linutronix.de
This commit is contained in:
parent
4e321b7746
commit
66e9b07171
3 changed files with 23 additions and 0 deletions
|
@ -3150,6 +3150,9 @@ static int find_module_sections(struct module *mod, struct load_info *info)
|
|||
}
|
||||
#endif
|
||||
|
||||
mod->noinstr_text_start = section_objs(info, ".noinstr.text", 1,
|
||||
&mod->noinstr_text_size);
|
||||
|
||||
#ifdef CONFIG_TRACEPOINTS
|
||||
mod->tracepoints_ptrs = section_objs(info, "__tracepoints_ptrs",
|
||||
sizeof(*mod->tracepoints_ptrs),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue