diff options
author | Ingo Molnar <mingo@elte.hu> | 2010-12-23 03:48:41 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-12-23 03:48:41 -0500 |
commit | 26e20a108caca6231c6a5ec659f815a866904751 (patch) | |
tree | 36932c208a9e8994bfd7ed4eaf48b9c33f71fbe3 /kernel/module.c | |
parent | 691513f70d3957939a318da970987b876c720861 (diff) | |
parent | 90a8a73c06cc32b609a880d48449d7083327e11a (diff) |
Merge commit 'v2.6.37-rc7' into x86/security
Diffstat (limited to 'kernel/module.c')
-rw-r--r-- | kernel/module.c | 12 |
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", |