Files
linux/kernel
Oleg Nesterov 6dafb0f137 tracing: Change tracing_stats_fops to rely on tracing_get_cpu()
commit 4d3435b8a4 upstream.

tracing_open_generic_tc() is racy, the memory inode->i_private
points to can be already freed.

1. Change one of its users, tracing_stats_fops, to use
   tracing_*_generic_tr() instead.

2. Change trace_create_cpu_file("stats", data) to pass "data = tr".

3. Change tracing_stats_read() to use tracing_get_cpu().

Link: http://lkml.kernel.org/r/20130723152603.GA23727@redhat.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>
2013-08-29 09:47:32 -07:00
..
2013-04-22 07:09:06 -07:00
2013-04-15 13:25:16 +02:00
2013-08-20 08:43:02 -07:00
2012-12-20 17:40:19 -08:00
2013-05-05 00:16:35 -04:00
2013-04-30 17:04:03 -07:00