android_kernel_motorola_sm6225/kernel/trace
Gaurav Kohli a3ec7ba0db trace: Fix race in trace_open and buffer resize call
Below race can come, if trace_open and resize of
cpu buffer is running parallely on different cpus

CPUX                                CPUY
				    ring_buffer_resize
				    atomic_read(&buffer->resize_disabled)
tracing_open
tracing_reset_online_cpus
ring_buffer_reset_cpu

rb_reset_cpu
				    rb_update_pages
				    remove/insert pages

resetting pointer

This race can cause data abort or some times infine loop in rb_remove_pages
and rb_insert_pages while checking pages for sanity.

Take ring buffer lock in rb reset to avoid resetting of cpu buffer.

Change-Id: I1d3344cca99e936d4e04a0e430e0ef9a975404c8
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2020-12-01 21:12:56 +05:30
..
blktrace.c blktrace: ensure our debugfs dir exists 2020-09-03 11:24:18 +02:00
bpf_trace.c
ftrace.c This is the 4.19.150 stable release 2020-10-07 08:45:35 +02:00
ipc_logging.c
ipc_logging_debug.c
ipc_logging_private.h
Kconfig Stop the ad-hoc games with -Wno-maybe-initialized 2020-05-20 08:18:45 +02:00
Makefile
msm_rtb.c Minidump: Add update region support for minidump regions 2020-07-02 09:58:12 +05:30
power-traces.c ANDROID: GKI: qcom: Fix compile issue when setting msm_lmh_dcvs as a module 2020-04-17 03:24:20 +00:00
preemptirq_delay_test.c
ring_buffer.c trace: Fix race in trace_open and buffer resize call 2020-12-01 21:12:56 +05:30
ring_buffer_benchmark.c
rpm-traces.c
trace.c Merge android-4.19-stable.149 (9ce79d9) into msm-4.19 2020-10-21 09:25:49 +05:30
trace.h Merge android-4.19.110 (1984fff) into msm-4.19 2020-05-23 05:08:22 -07:00
trace_benchmark.c
trace_benchmark.h
trace_branch.c
trace_clock.c
trace_entries.h tracing: Set kernel_stack's caller size properly 2020-10-01 13:14:31 +02:00
trace_event_perf.c BACKPORT: perf_event: Add support for LSM and SELinux checks 2020-01-10 15:18:52 +00:00
trace_events.c Merge android-4.19-stable.149 (9ce79d9) into msm-4.19 2020-10-21 09:25:49 +05:30
trace_events_filter.c tracing: Have error path in predicate_parse() free its allocated memory 2020-08-05 10:05:59 +02:00
trace_events_filter_test.h
trace_events_hist.c Merge android-4.19-stable.149 (9ce79d9) into msm-4.19 2020-10-21 09:25:49 +05:30
trace_events_trigger.c tracing: Fix event trigger to accept redundant spaces 2020-06-30 23:17:17 -04:00
trace_export.c
trace_functions.c
trace_functions_graph.c
trace_hwlat.c tracing/hwlat: Honor the tracing_cpumask 2020-08-21 11:05:33 +02:00
trace_irqsoff.c trace: increase caller depth for preempt/irqs disable events 2020-06-19 15:34:46 +05:30
trace_kdb.c
trace_kprobe.c tracing/kprobes: Fix a double initialization typo 2020-05-14 07:57:16 +02:00
trace_kprobe_selftest.c
trace_kprobe_selftest.h
trace_mmiotrace.c
trace_nop.c
trace_output.c
trace_output.h
trace_preemptirq.c lockdep: fix order in trace_hardirqs_off_caller() 2020-10-01 13:14:50 +02:00
trace_printk.c
trace_probe.c
trace_probe.h
trace_sched_switch.c tracing: Fix sched switch start/stop refcount racy updates 2020-02-11 04:33:55 -08:00
trace_sched_wakeup.c kernel/trace: Fix do not unregister tracepoints when register sched_migrate_task fail 2020-01-14 20:06:59 +01:00
trace_selftest.c
trace_selftest_dynamic.c
trace_seq.c
trace_stack.c tracing: Have stack tracer compile when MCOUNT_INSN_SIZE is not defined 2020-01-14 20:06:59 +01:00
trace_stat.c tracing: Fix very unlikely race of registering two stat tracers 2020-02-24 08:34:39 +01:00
trace_stat.h
trace_syscalls.c
trace_uprobe.c
tracing_map.c tracing: Have the histogram compare functions convert to u64 first 2020-01-09 10:19:02 +01:00
tracing_map.h