|
@@ -2380,6 +2380,12 @@ static noinline struct module *load_module(void __user *umod,
|
|
|
"_ftrace_events",
|
|
|
sizeof(*mod->trace_events),
|
|
|
&mod->num_trace_events);
|
|
|
+ /*
|
|
|
+ * This section contains pointers to allocated objects in the trace
|
|
|
+ * code and not scanning it leads to false positives.
|
|
|
+ */
|
|
|
+ kmemleak_scan_area(mod->trace_events, sizeof(*mod->trace_events) *
|
|
|
+ mod->num_trace_events, GFP_KERNEL);
|
|
|
#endif
|
|
|
#ifdef CONFIG_FTRACE_MCOUNT_RECORD
|
|
|
/* sechdrs[0].sh_size is always zero */
|