summaryrefslogtreecommitdiff
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>2014-01-13 12:56:21 -0500
committerSteven Rostedt <rostedt@goodmis.org>2014-01-13 12:56:21 -0500
commita4c35ed241129dd142be4cadb1e5a474a56d5464 (patch)
treec003e1fba1f088b31c99d5e388b7992297265aed /kernel/trace/trace.c
parent23a8e8441a0a74dd612edf81dc89d1600bc0a3d1 (diff)
downloadlwn-a4c35ed241129dd142be4cadb1e5a474a56d5464.tar.gz
lwn-a4c35ed241129dd142be4cadb1e5a474a56d5464.zip
ftrace: Fix synchronization location disabling and freeing ftrace_ops
The synchronization needed after ftrace_ops are unregistered must happen after the callback is disabled from becing called by functions. The current location happens after the function is being removed from the internal lists, but not after the function callbacks were disabled, leaving the functions susceptible of being called after their callbacks are freed. This affects perf and any externel users of function tracing (LTTng and SystemTap). Cc: stable@vger.kernel.org # 3.0+ Fixes: cdbe61bfe704 "ftrace: Allow dynamically allocated function tracers" Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.c')
0 files changed, 0 insertions, 0 deletions