linux-imx/include/trace
Oleg Nesterov cd58af0522 tracing: Fix syscall_*regfunc() vs copy_process() race
commit 4af4206be2 upstream.

syscall_regfunc() and syscall_unregfunc() should set/clear
TIF_SYSCALL_TRACEPOINT system-wide, but do_each_thread() can race
with copy_process() and miss the new child which was not added to
the process/thread lists yet.

Change copy_process() to update the child's TIF_SYSCALL_TRACEPOINT
under tasklist.

Link: http://lkml.kernel.org/p/20140413185854.GB20668@redhat.com

Fixes: a871bd33a6 "tracing: Add syscall tracepoints"
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2014-07-11 13:33:53 +01:00
..
events trace: module: Maintain a valid user count 2014-06-09 13:29:10 +01:00
define_trace.h Revert "tracing: Include module.h in define_trace.h" 2011-10-31 19:32:35 -04:00
ftrace.h tracing: Allow events to have NULL strings 2014-01-03 04:33:26 +00:00
syscall.h tracing: Fix syscall_*regfunc() vs copy_process() race 2014-07-11 13:33:53 +01:00