diff options
author | Alexander Z Lam <azl@google.com> | 2013-07-01 19:37:54 -0700 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-07-01 23:30:08 -0400 |
commit | a82274151af2b075163e3c42c828529dee311487 (patch) | |
tree | 0923f9f765266925e9c800a461917ea312d3cc16 /kernel/trace/trace.h | |
parent | 2d71619c59fac95a5415a326162fa046161b938c (diff) | |
download | talos-op-linux-a82274151af2b075163e3c42c828529dee311487.tar.gz talos-op-linux-a82274151af2b075163e3c42c828529dee311487.zip |
tracing: Protect ftrace_trace_arrays list in trace_events.c
There are multiple places where the ftrace_trace_arrays list is accessed in
trace_events.c without the trace_types_lock held.
Link: http://lkml.kernel.org/r/1372732674-22726-1-git-send-email-azl@google.com
Cc: Vaibhav Nagarnaik <vnagarnaik@google.com>
Cc: David Sharp <dhsharp@google.com>
Cc: Alexander Z Lam <lambchop468@gmail.com>
Cc: stable@vger.kernel.org # 3.10
Signed-off-by: Alexander Z Lam <azl@google.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index a88939e666b7..2c3cba59552d 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -224,6 +224,8 @@ enum { extern struct list_head ftrace_trace_arrays; +extern struct mutex trace_types_lock; + /* * The global tracer (top) should be the first trace array added, * but we check the flag anyway. |