android_kernel_samsung_msm8976/kernel/trace
Steven Rostedt (VMware) d13540eaa5 tracing: Fix possible double free on failure of allocating trace buffer
commit 4397f04575c44e1440ec2e49b6302785c95fd2f8 upstream.

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

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2019-07-27 21:46:22 +02:00
..
blktrace.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
ftrace.c tracing: Fix graph tracer with stack tracer on other archs 2014-07-28 08:00:03 -07:00
gpu-traces.c
ipc_logging.c Merge "ipc_logging: Validate the next page pointer" 2014-08-09 02:58:15 -07:00
ipc_logging_debug.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
ipc_logging_private.h msm: ipc_logging: enhance log-extraction support 2014-05-27 13:56:54 -06:00
Kconfig
Makefile
msm_rtb.c Import latest Samsung release 2017-04-18 03:43:52 +02:00
power-traces.c tracing: power: Add trace events for core control 2015-01-22 17:31:16 -08:00
ring_buffer.c ring-buffer: Mask out the info bits when returning buffer page length 2019-07-27 21:46:21 +02: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 2019-07-27 21:46:22 +02:00
trace.h Merge tag 'LA.BR.1.3.6-03510-8976.0' into HEAD 2017-04-18 12:11:50 +02: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_entries.h
trace_event_perf.c trace: prevent NULL pointer dereference 2016-02-04 20:58:31 -08: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
trace_functions.c
trace_functions_graph.c
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
trace_mmiotrace.c
trace_nop.c
trace_output.c Merge tag 'LA.BR.1.3.6-03510-8976.0' into HEAD 2017-04-18 12:11:50 +02:00
trace_output.h
trace_printk.c tracing: Handle NULL formats in hold_module_trace_bprintk_format() 2019-07-27 21:41:55 +02:00
trace_probe.c
trace_probe.h
trace_sched_switch.c
trace_sched_wakeup.c sched/deadline: Add SCHED_DEADLINE inheritance logic 2015-05-19 19:16:01 -07:00
trace_selftest.c sched/deadline: Add latency tracing for SCHED_DEADLINE tasks 2015-05-19 19:16:00 -07:00
trace_selftest_dynamic.c
trace_stack.c
trace_stat.c
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