aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/module.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2020-03-10 14:04:34 +0100
committerThomas Gleixner <tglx@linutronix.de>2020-05-19 15:56:20 +0200
commit66e9b0717102507e64f638790eaece88765cc9e5 (patch)
tree60aabd710f537f162bd2accebd2f544b3d883565 /include/linux/module.h
parentMerge tag 'noinstr-lds-2020-05-19' into core/kprobes (diff)
downloadlinux-dev-66e9b0717102507e64f638790eaece88765cc9e5.tar.xz
linux-dev-66e9b0717102507e64f638790eaece88765cc9e5.zip
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
Diffstat (limited to 'include/linux/module.h')
-rw-r--r--include/linux/module.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index 1192097c9a69..d849d06e4d44 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -458,6 +458,8 @@ struct module {
void __percpu *percpu;
unsigned int percpu_size;
#endif
+ void *noinstr_text_start;
+ unsigned int noinstr_text_size;
#ifdef CONFIG_TRACEPOINTS
unsigned int num_tracepoints;