]> git.karo-electronics.de Git - karo-tx-linux.git/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Mar 2013 19:17:46 +0000 (12:17 -0700)
commit61ff05825e3bac02538a50f1b15c41b005e33d29
treeb8f87dfdedca8b7e4cd4c7aefffd9046e654eac5
parentf3654cba3e270f698589fafa047091df3cad3c1c
tracing: Protect tracer flags with trace_types_lock

commit 69d34da2984c95b33ea21518227e1f9470f11d95 upstream.

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.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/trace.c