From: Steven Rostedt (Red Hat) Date: Mon, 13 Jan 2014 17:56:21 +0000 (-0500) Subject: ftrace: Fix synchronization location disabling and freeing ftrace_ops X-Git-Tag: v3.14-rc1~133^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4c35ed241129dd142be4cadb1e5a474a56d5464;p=pandora-kernel.git 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 --- Reading git-diff-tree failed