android_kernel_lge_bullhead/kernel/trace
Steven Rostedt (VMware) 8c088f6cad tracing: Fix possible double free on failure of allocating trace buffer
Jing Xia and Chunyan Zhang reported that on failing to allocate part of the
tracing buffer, memory is freed, but the pointers that point to them are not
initialized back to NULL, and later paths may try to free the freed memory
again. Jing and Chunyan fixed one of the locations that does this, but
missed a spot.

Link: http://lkml.kernel.org/r/20171226071253.8968-1-chunyan.zhang@spreadtrum.com

Change-Id: I4fe8bc34cf545fa9f43aba8bd1c28eb0f567fe29
Cc: stable@vger.kernel.org
Fixes: 737223fbca ("tracing: Consolidate buffer allocation code")
Reported-by: Jing Xia <jing.xia@spreadtrum.com>
Reported-by: Chunyan Zhang <chunyan.zhang@spreadtrum.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
2020-07-11 12:21:19 +02:00
..
Kconfig msm: ipc_logging: Support multiplatform 2013-12-07 13:33:38 -07:00
Makefile msm: ipc_logging: Support multiplatform 2013-12-07 13:33:38 -07:00
blktrace.c Merge upstream tag 'v3.10.49' into msm-3.10 2014-08-20 13:23:09 -07:00
ftrace.c tracing: Fix graph tracer with stack tracer on other archs 2014-07-28 08:00:03 -07:00
gpu-traces.c trace/events: add gpu trace events 2013-07-01 14:16:21 -07:00
ipc_logging.c Merge "ipc_logging: Validate the next page pointer" 2014-08-09 02:58:15 -07:00
ipc_logging_debug.c ipc_logging: Allow logging to resume after device suspend 2014-05-27 11:24:41 -06:00
ipc_logging_private.h msm: ipc_logging: enhance log-extraction support 2014-05-27 13:56:54 -06:00
msm_rtb.c msm: rtb: Fix buffer corruption issue 2015-02-18 13:02:11 -08:00
power-traces.c tracing: power: Add trace events for core control 2015-01-22 17:31:16 -08:00
ring_buffer.c This is the 3.10.106 stable release 2018-01-25 17:54:29 -07:00
ring_buffer_benchmark.c ring-buffer-benchmark: Fix the wrong sched_priority of producer 2015-06-22 16:55:53 -07:00
rpm-traces.c
trace.c tracing: Fix possible double free on failure of allocating trace buffer 2020-07-11 12:21:19 +02:00
trace.h This is the 3.10.85 stable release 2018-01-25 16:57:12 -07:00
trace_branch.c tracing: Have branch tracer use recursive field of task struct 2015-08-03 09:29:45 -07:00
trace_clock.c tracing: Fix wraparound problems in "uptime" trace clock 2014-07-31 12:53:49 -07:00
trace_cpu_freq_switch.c trace: cpu_freq_switch: Add profiler for CPU frequency switch times 2013-07-08 05:51:40 -07:00
trace_entries.h
trace_event_perf.c msm: null pointer dereferencing 2016-01-15 19:05:13 -05:00
trace_events.c tracing: Fix showing function event in available_events 2016-03-03 15:06:24 -08:00
trace_events_filter.c tracing/filter: Do not allow infix to exceed end of string 2015-08-03 09:29:45 -07:00
trace_events_filter_test.h
trace_export.c tracing: Fix array size mismatch in format string 2014-03-31 09:58:12 -07:00
trace_functions.c
trace_functions_graph.c trace: add non-hierarchical function_graph option 2013-07-01 14:16:22 -07:00
trace_irqsoff.c tracing: Have preempt(irqs)off trace preempt disabled functions 2016-06-07 10:42:47 +02:00
trace_kdb.c
trace_kprobe.c tracing/kprobes: Fail to unregister if probe event files are in use 2013-08-29 09:47:34 -07:00
trace_mmiotrace.c
trace_nop.c
trace_output.c tracing: Add __bitmask() macro to trace events to cpumasks and other bitmasks 2015-11-17 14:59:39 -08:00
trace_output.h tracing: Rename trace_event_mutex to trace_event_sem 2013-03-15 13:22:10 -04:00
trace_printk.c This is the 3.10.103 stable release 2018-01-25 17:26:32 -07:00
trace_probe.c
trace_probe.h
trace_sched_switch.c
trace_sched_wakeup.c sched: add affinity, task load information to sched tracepoints 2014-07-22 14:22:58 -07:00
trace_selftest.c tracing: Fix bad parameter passed in branch selftest 2013-05-29 16:00:03 -04:00
trace_selftest_dynamic.c
trace_stack.c Tracing updates for Linux 3.10 2013-04-29 13:55:38 -07:00
trace_stat.c tracing: Check return value of tracing_init_dentry() 2013-04-12 23:02:32 -04:00
trace_stat.h
trace_syscalls.c tracing/syscalls: Ignore numbers outside NR_syscalls' range 2014-11-14 08:47:53 -08:00
trace_uprobe.c tracing/uprobes: Fail to unregister if probe event files are in use 2013-08-29 09:47:34 -07:00