aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/module.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/module.c')
-rw-r--r--kernel/module.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/module.c b/kernel/module.c
index ba421e6b4ada..562f665c721f 100644
--- a/kernel/module.c
+++ b/kernel/module.c
@@ -2480,6 +2480,18 @@ static void find_module_sections(struct module *mod, struct load_info *info)
2480 kmemleak_scan_area(mod->trace_events, sizeof(*mod->trace_events) * 2480 kmemleak_scan_area(mod->trace_events, sizeof(*mod->trace_events) *
2481 mod->num_trace_events, GFP_KERNEL); 2481 mod->num_trace_events, GFP_KERNEL);
2482#endif 2482#endif
2483#ifdef CONFIG_TRACING
2484 mod->trace_bprintk_fmt_start = section_objs(info, "__trace_printk_fmt",
2485 sizeof(*mod->trace_bprintk_fmt_start),
2486 &mod->num_trace_bprintk_fmt);
2487 /*
2488 * This section contains pointers to allocated objects in the trace
2489 * code and not scanning it leads to false positives.
2490 */
2491 kmemleak_scan_area(mod->trace_bprintk_fmt_start,
2492 sizeof(*mod->trace_bprintk_fmt_start) *
2493 mod->num_trace_bprintk_fmt, GFP_KERNEL);
2494#endif
2483#ifdef CONFIG_FTRACE_MCOUNT_RECORD 2495#ifdef CONFIG_FTRACE_MCOUNT_RECORD
2484 /* sechdrs[0].sh_size is always zero */ 2496 /* sechdrs[0].sh_size is always zero */
2485 mod->ftrace_callsites = section_objs(info, "__mcount_loc", 2497 mod->ftrace_callsites = section_objs(info, "__mcount_loc",