android_kernel_samsung_msm8976/include/trace
Oleg Nesterov e6bc60b8fb tracing: Fix syscall_*regfunc() vs copy_process() race
commit 4af4206be2bd1933cae20c2b6fb2058dbc887f7c 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-07-06 18:54:16 -07:00
..
events trace: module: Maintain a valid user count 2014-06-07 13:25:35 -07:00
define_trace.h treewide: fix comment/printk/variable typos 2012-09-01 10:33:05 -07:00
ftrace.h tracing: Fix array size mismatch in format string 2014-03-31 09:58:12 -07:00
syscall.h tracing: Fix syscall_*regfunc() vs copy_process() race 2014-07-06 18:54:16 -07:00