]> Pileus Git - ~andy/linux/commit
tracing: Protect tracer flags with trace_types_lock
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Thu, 14 Mar 2013 17:50:56 +0000 (13:50 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 14 Mar 2013 17:50:56 +0000 (13:50 -0400)
commit69d34da2984c95b33ea21518227e1f9470f11d95
treed7e414084fd0d64d6e7dd87f7d2e42961c323764
parent740466bc89ad8bd5afcc8de220f715f62b21e365
tracing: Protect tracer flags with trace_types_lock

Seems that the tracer flags have never been protected from
synchronous writes. Luckily, admins don't usually modify the
tracing flags via two different tasks. But if scripts were to
be used to modify them, then they could get corrupted.

Move the trace_types_lock that protects against tracers changing
to also protect the flags being set.

Cc: stable@vger.kernel.org
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c