OrangePi_CM5/kernel/trace
Tom Zanussi 39986696fe tracing: Don't inc err_log entry count if entry allocation fails
commit 67ab5eb71b37b55f7c5522d080a1b42823351776 upstream.

tr->n_err_log_entries should only be increased if entry allocation
succeeds.

Doing it when it fails won't cause any problems other than wasting an
entry, but should be fixed anyway.

Link: https://lkml.kernel.org/r/cad1ab28f75968db0f466925e7cba5970cec6c29.1643319703.git.zanussi@kernel.org

Cc: stable@vger.kernel.org
Fixes: 2f754e771b ("tracing: Don't inc err_log entry count if entry allocation fails")
Signed-off-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-02-01 17:25:39 +01:00
..
Kconfig tracing/kprobes: Do the notrace functions check without kprobes on ftrace 2021-01-19 18:27:19 +01:00
Makefile
…
blktrace.c blktrace: Fix uaf in blk_trace access after removing by sysfs 2021-09-30 10:11:05 +02:00
bpf_trace.c bpf: Remove config check to enable bpf support for branch records 2022-01-27 10:53:54 +01:00
bpf_trace.h
…
fgraph.c fgraph: Initialize tracing_graph_pause at task creation 2021-02-10 09:29:16 +01:00
ftrace.c tracing: Have all levels of checks prevent recursion 2021-10-27 09:56:56 +02:00
ftrace_internal.h
…
kprobe_event_gen_test.c
…
power-traces.c
…
preemptirq_delay_test.c
…
ring_buffer.c ring-buffer: Protect ring_buffer_reset() from reentrancy 2021-11-18 14:03:49 +01:00
ring_buffer_benchmark.c
…
rpm-traces.c
…
synth_event_gen_test.c
…
trace.c tracing: Don't inc err_log entry count if entry allocation fails 2022-02-01 17:25:39 +01:00
trace.h tracing: Fix pid filtering when triggers are attached 2021-12-01 09:19:01 +01:00
trace_benchmark.c
…
trace_benchmark.h
…
trace_boot.c tracing/boot: Fix a hist trigger dependency for boot time tracing 2021-09-22 12:28:03 +02:00
trace_branch.c
…
trace_clock.c tracing: Do no increment trace_clock_global() by one 2021-06-23 14:42:50 +02:00
trace_dynevent.c
…
trace_dynevent.h
…
trace_entries.h
…
trace_event_perf.c
…
trace_events.c tracing: Check pid filtering when creating events 2021-12-01 09:19:09 +01:00
trace_events_filter.c
…
trace_events_filter_test.h
…
trace_events_hist.c tracing/histogram: Fix a potential memory leak for kstrdup() 2022-02-01 17:25:39 +01:00
trace_events_inject.c
…
trace_events_synth.c
…
trace_events_trigger.c
…
trace_export.c
…
trace_functions.c tracing: Have all levels of checks prevent recursion 2021-10-27 09:56:56 +02:00
trace_functions_graph.c
…
trace_hwlat.c
…
trace_irqsoff.c tracing: Use pause-on-trace with the latency tracers 2021-02-10 09:29:16 +01:00
trace_kdb.c
…
trace_kprobe.c tracing/kprobes: 'nmissed' not showed correctly for kretprobe 2022-01-27 10:54:25 +01:00
trace_kprobe_selftest.c
…
trace_kprobe_selftest.h
…
trace_mmiotrace.c
…
trace_nop.c
…
trace_output.c
…
trace_output.h
…
trace_preemptirq.c
…
trace_printk.c
…
trace_probe.c tracing/probes: Reject events which have the same name of existing one 2021-09-22 12:28:00 +02:00
trace_probe.h tracing/probes: Reject events which have the same name of existing one 2021-09-22 12:28:00 +02:00
trace_probe_tmpl.h
…
trace_sched_switch.c
…
trace_sched_wakeup.c
…
trace_selftest.c tracing: Disable ftrace selftests when any tracer is running 2020-12-30 11:54:28 +01:00
trace_selftest_dynamic.c
…
trace_seq.c
…
trace_stack.c
…
trace_stat.c
…
trace_stat.h
…
trace_synth.h tracing: Synthetic event field_pos is an index not a boolean 2021-07-28 14:35:45 +02:00
trace_syscalls.c
…
trace_uprobe.c tracing/uprobe: Fix uprobe_perf_open probes iteration 2021-12-01 09:19:01 +01:00
tracing_map.c tracing: Fix a kmemleak false positive in tracing_map 2021-12-17 10:14:40 +01:00
tracing_map.h
…