linux-stable/kernel/trace
Yang Jihong 61d589b402 tracing: Fix infinite loop in tracing_read_pipe on overflowed print_trace_line
commit c1ac03af6e upstream.

print_trace_line may overflow seq_file buffer. If the event is not
consumed, the while loop keeps peeking this event, causing a infinite loop.

Link: https://lkml.kernel.org/r/20221129113009.182425-1-yangjihong1@huawei.com

Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: stable@vger.kernel.org
Fixes: 088b1e427d ("ftrace: pipe fixes")
Signed-off-by: Yang Jihong <yangjihong1@huawei.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-01-07 12:07:36 +01:00
..
Kconfig Stop the ad-hoc games with -Wno-maybe-initialized 2020-05-20 08:15:37 +02:00
Makefile Disable the __builtin_return_address() warning globally after all 2016-10-12 10:23:41 -07:00
blktrace.c blktrace: Fix output non-blktrace event when blk_classic option enabled 2023-01-07 12:07:20 +01:00
bpf_trace.c bpf: fix check of allowed specifiers in bpf_trace_printk 2018-12-17 09:38:33 +01:00
ftrace.c ftrace: Optimize the allocation for mcount entries 2022-11-25 17:35:40 +01:00
power-traces.c
ring_buffer.c ring_buffer: Do not deactivate non-existant pages 2022-11-25 17:35:40 +01:00
ring_buffer_benchmark.c
rpm-traces.c
trace.c tracing: Fix infinite loop in tracing_read_pipe on overflowed print_trace_line 2023-01-07 12:07:36 +01:00
trace.h tracing: Fix pid filtering when triggers are attached 2021-12-08 08:45:03 +01:00
trace_benchmark.c
trace_benchmark.h
trace_branch.c
trace_clock.c tracing: Do no increment trace_clock_global() by one 2021-06-30 08:49:17 -04:00
trace_entries.h tracing: Set kernel_stack's caller size properly 2020-10-01 20:40:05 +02:00
trace_event_perf.c
trace_events.c tracing: Check pid filtering when creating events 2021-12-08 08:45:03 +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: Do not reference char * as a string in histograms 2021-07-20 16:21:11 +02:00
trace_events_trigger.c tracing: Fix event trigger to accept redundant spaces 2020-06-30 15:38:45 -04:00
trace_export.c
trace_functions.c tracing: Have all levels of checks prevent recursion 2021-10-27 09:34:01 +02:00
trace_functions_graph.c tracing: Fix missing return symbol in function_graph output 2018-07-11 16:26:43 +02:00
trace_hwlat.c tracing/hwlat: Honor the tracing_cpumask 2020-08-26 10:29:03 +02:00
trace_irqsoff.c
trace_kdb.c tracing: Silence GCC 9 array bounds warning 2019-07-10 09:55:28 +02:00
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 tracing: Add NMI tracing in hwlat detector 2016-09-02 12:47:55 -04:00
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 kernel/trace: Fix do not unregister tracepoints when register sched_migrate_task fail 2020-01-14 20:04:26 +01:00
trace_selftest.c ftrace: Handle tracing when switching between context 2020-11-10 10:24:02 +01:00
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:04:26 +01:00
trace_stat.c tracing: Fix very unlikely race of registering two stat tracers 2020-02-28 15:42:21 +01:00
trace_stat.h
trace_syscalls.c tracing/syscalls: fix multiline in error message text 2016-09-29 10:25:23 +02:00
trace_uprobe.c tracing/uprobes: Fix output for multiple string arguments 2019-02-20 10:18:32 +01:00
tracing_map.c tracing: Fix a kmemleak false positive in tracing_map 2021-12-22 09:05:13 +01:00
tracing_map.h