linux/kernel/trace
Andrew Vagin 99593eb7ca tracing: Fix fields of struct trace_iterator that are zeroed by mistake
commit ed5467da0e upstream.

tracing_read_pipe zeros all fields bellow "seq". The declaration contains
a comment about that, but it doesn't help.

The first field is "snapshot", it's true when current open file is
snapshot. Looks obvious, that it should not be zeroed.

The second field is "started". It was converted from cpumask_t to
cpumask_var_t (v2.6.28-4983-g4462344), in other words it was
converted from cpumask to pointer on cpumask.

Currently the reference on "started" memory is lost after the first read
from tracing_read_pipe and a proper object will never be freed.

The "started" is never dereferenced for trace_pipe, because trace_pipe
can't have the TRACE_FILE_ANNOTATE options.

Link: http://lkml.kernel.org/r/1375463803-3085183-1-git-send-email-avagin@openvz.org

Signed-off-by: Andrew Vagin <avagin@openvz.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-08-14 22:57:08 -07:00
..
blktrace.c simple_open: automatically convert to simple_open() 2012-04-05 15:25:50 -07:00
ftrace.c ftrace: Move ftrace_filter_lseek out of CONFIG_DYNAMIC_FTRACE section 2013-06-13 09:45:03 -07:00
Kconfig ftrace: Update the kconfig for DYNAMIC_FTRACE 2013-03-14 11:29:51 -07:00
Makefile
power-traces.c
ring_buffer_benchmark.c
ring_buffer.c ring-buffer: Fix race between integrity check and readers 2013-01-17 08:50:51 -08:00
rpm-traces.c
trace_branch.c
trace_clock.c
trace_entries.h Merge branch 'tip/perf/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace into perf/urgent 2012-03-24 08:19:09 +01:00
trace_event_perf.c ftrace, perf: Add filter support for function trace event 2012-02-21 11:08:30 -05:00
trace_events_filter_test.h
trace_events_filter.c tracing: Fix leaks of filter preds 2013-05-19 10:54:40 -07:00
trace_events.c tracing: Do not enable function event with enable 2012-05-10 15:55:43 -04:00
trace_export.c tracing: Do not enable function event with enable 2012-05-10 15:55:43 -04:00
trace_functions_graph.c
trace_functions.c
trace_irqsoff.c tracing: Prevent buffer overwrite disabled for latency tracers 2013-04-05 10:04:37 -07:00
trace_kdb.c
trace_kprobe.c ftrace, perf: Add add/del tracepoint perf registration actions 2012-02-21 11:08:25 -05:00
trace_mmiotrace.c
trace_nop.c
trace_output.c tracing: Fix stacktrace of latency tracers (irqsoff and friends) 2012-04-19 17:00:13 -04:00
trace_output.h
trace_printk.c
trace_sched_switch.c
trace_sched_wakeup.c tracing: Prevent buffer overwrite disabled for latency tracers 2013-04-05 10:04:37 -07:00
trace_selftest_dynamic.c
trace_selftest.c tracing: Fix ftrace_dump() 2013-05-11 13:48:14 -07:00
trace_stack.c tracing: Fix possible NULL pointer dereferences 2013-06-13 09:45:03 -07:00
trace_stat.c tracing: Check return value of tracing_init_dentry() 2013-05-07 19:51:54 -07:00
trace_stat.h
trace_syscalls.c tracing: Fix irqs-off tag display in syscall tracing 2013-08-04 16:25:45 +08:00
trace_workqueue.c
trace.c tracing: Fix fields of struct trace_iterator that are zeroed by mistake 2013-08-14 22:57:08 -07:00
trace.h tracing: Prevent buffer overwrite disabled for latency tracers 2013-04-05 10:04:37 -07:00