Steven Rostedt (VMware)
326c9e17c1
tracing: Fix memory leak of instance function hash filters
...
commit 2840f84f74035e5a535959d5f17269c69fa6edc5 upstream.
The following commands will cause a memory leak:
# cd /sys/kernel/tracing
# mkdir instances/foo
# echo schedule > instance/foo/set_ftrace_filter
# rmdir instances/foo
The reason is that the hashes that hold the filters to set_ftrace_filter and
set_ftrace_notrace are not freed if they contain any data on the instance
and the instance is removed.
Found by kmemleak detector.
Cc: stable@vger.kernel.org
Fixes: 591dffdade ("ftrace: Allow for function tracing instance to filter functions")
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-12-21 14:11:31 +01:00
..
blktrace.c
tracing/blktrace: Fix to allow setting same value
2018-09-09 20:01:22 +02:00
bpf_trace.c
bpf: fix check of allowed specifiers in bpf_trace_printk
2018-12-17 09:38:33 +01:00
ftrace.c
tracing: Fix memory leak of instance function hash filters
2018-12-21 14:11:31 +01:00
Kconfig
Makefile
power-traces.c
ring_buffer.c
ring-buffer: Allow for rescheduling when removing pages
2018-09-29 03:07:32 -07:00
ring_buffer_benchmark.c
rpm-traces.c
trace.c
tracing: Do not call start/stop() functions when tracing_on does not change
2018-09-09 20:01:22 +02:00
trace.h
ftrace: Fix function pid filter on instances
2017-04-21 09:31:22 +02:00
trace_benchmark.c
trace_benchmark.h
trace_branch.c
trace_clock.c
trace_entries.h
trace_event_perf.c
trace_events.c
tracing: Fix converting enum's from the map in trace_event_eval_update()
2018-01-23 19:57:07 +01:00
trace_events_filter.c
tracing: Fix regex_match_front() to not over compare the test string
2018-05-16 10:08:43 +02:00
trace_events_filter_test.h
trace_events_hist.c
tracing: Exclude 'generic fields' from histograms
2017-12-25 14:23:44 +01:00
trace_events_trigger.c
tracing: Fix memory leak in set_trigger_filter()
2018-12-21 14:11:31 +01:00
trace_export.c
trace_functions.c
trace_functions_graph.c
tracing: Fix missing return symbol in function_graph output
2018-07-11 16:26:43 +02:00
trace_hwlat.c
trace_irqsoff.c
trace_kdb.c
trace_kprobe.c
tracing: Quiet gcc warning about maybe unused link variable
2018-08-03 07:55:12 +02:00
trace_mmiotrace.c
trace_nop.c
trace_output.c
trace_output.h
trace_printk.c
trace_probe.c
tracing: probeevent: Fix to support minus offset from symbol
2018-03-28 18:39:23 +02:00
trace_probe.h
tracing: probeevent: Fix to support minus offset from symbol
2018-03-28 18:39:23 +02:00
trace_sched_switch.c
trace_sched_wakeup.c
trace_selftest.c
ftrace: Fix selftest goto location on error
2017-09-27 14:39:23 +02:00
trace_selftest_dynamic.c
trace_seq.c
trace_stack.c
trace_stat.c
trace_stat.h
trace_syscalls.c
trace_uprobe.c
uprobes: Use synchronize_rcu() not synchronize_sched()
2018-09-09 20:01:22 +02:00
tracing_map.c
tracing: Fix kmemleak in tracing_map_array_free()
2017-08-30 10:21:49 +02:00
tracing_map.h