diff options
-rw-r--r-- | kernel/module.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/module.c b/kernel/module.c index 1eb952097077..dd29ba43c34f 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
@@ -2380,6 +2380,12 @@ static noinline struct module *load_module(void __user *umod, | |||
2380 | "_ftrace_events", | 2380 | "_ftrace_events", |
2381 | sizeof(*mod->trace_events), | 2381 | sizeof(*mod->trace_events), |
2382 | &mod->num_trace_events); | 2382 | &mod->num_trace_events); |
2383 | /* | ||
2384 | * This section contains pointers to allocated objects in the trace | ||
2385 | * code and not scanning it leads to false positives. | ||
2386 | */ | ||
2387 | kmemleak_scan_area(mod->trace_events, sizeof(*mod->trace_events) * | ||
2388 | mod->num_trace_events, GFP_KERNEL); | ||
2383 | #endif | 2389 | #endif |
2384 | #ifdef CONFIG_FTRACE_MCOUNT_RECORD | 2390 | #ifdef CONFIG_FTRACE_MCOUNT_RECORD |
2385 | /* sechdrs[0].sh_size is always zero */ | 2391 | /* sechdrs[0].sh_size is always zero */ |