diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2008-11-16 07:59:52 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-16 09:55:59 +0300 |
commit | 072b40a15616fe6bea68466e6bffcfcbf5c8f26f (patch) | |
tree | 0efdcf29a712e8f381a56e57f6a89cb7ca7be901 /kernel/module.c | |
parent | c91add5fa68ea9b1f2923b3788c5dae0e60e1f6b (diff) | |
download | linux-072b40a15616fe6bea68466e6bffcfcbf5c8f26f.tar.xz |
tracing/branch-tracer: fix a trace recursion on branch tracer
Impact: fix crash when enabling the branch-tracer
When the branch tracer inserts an event through
probe_likely_condition(), it calls local_irq_save() and then results
in a trace recursion.
local_irq_save() -> trace_hardirqs_off() -> trace_hardirqs_off_caller()
-> unlikely()
The trace_branch.c file is protected by DISABLE_BRANCH_PROFILING but
that doesn't prevent from external call to functions that use
unlikely().
My box crashed each time I tried to set this tracer (sudden and hard
reboot).
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/module.c')
0 files changed, 0 insertions, 0 deletions