diff options
| author | Matt Fleming <[email protected]> | 2009-09-28 15:43:01 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2009-10-01 06:19:24 +0000 |
| commit | 33974093c024f08caadd2fc71a83bd811ed1831d (patch) | |
| tree | 412ce703796e403697ea00a0d29296b21068f4b0 /lib/fault-inject.c | |
| parent | Merge branch 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/ke... (diff) | |
| download | kernel-33974093c024f08caadd2fc71a83bd811ed1831d.tar.gz kernel-33974093c024f08caadd2fc71a83bd811ed1831d.zip | |
tracing: Fix infinite recursion in ftrace_update_pid_func()
When CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST is enabled
__ftrace_trace_function contains the current trace function, not
ftrace_trace_function.
In ftrace_update_pid_func() we currently incorrectly assign the
value of ftrace_trace_function to __ftrace_trace_funcion before
returning.
Without this patch it is possible to execute an infinite recursion
whereby ftrace_test_stop_func() calls __ftrace_trace_function,
which was assigned ftrace_test_stop_func() in
ftrace_update_pid_func().
Signed-off-by: Matt Fleming <[email protected]>
Acked-by: Steven Rostedt <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/fault-inject.c')
0 files changed, 0 insertions, 0 deletions
