diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-03-12 19:41:23 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-03-12 20:28:02 -0500 |
commit | ea14eb714041d40fcc5180b5a586034503650149 (patch) | |
tree | a7cb72753c85cf79ac6fa31863d65d2f081e0823 /kernel/rtmutex-debug.c | |
parent | 52fbe9cde7fdb5c6fac196d7ebd2d92d05ef3cd4 (diff) | |
download | op-kernel-dev-ea14eb714041d40fcc5180b5a586034503650149.zip op-kernel-dev-ea14eb714041d40fcc5180b5a586034503650149.tar.gz |
function-graph: Init curr_ret_stack with ret_stack
If the graph tracer is active, and a task is forked but the allocating of
the processes graph stack fails, it can cause crash later on.
This is due to the temporary stack being NULL, but the curr_ret_stack
variable is copied from the parent. If it is not -1, then in
ftrace_graph_probe_sched_switch() the following:
for (index = next->curr_ret_stack; index >= 0; index--)
next->ret_stack[index].calltime += timestamp;
Will cause a kernel OOPS.
Found with Li Zefan's ftrace_stress_test.
Cc: stable@kernel.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/rtmutex-debug.c')
0 files changed, 0 insertions, 0 deletions