Adrian Hunter
41aeefb7e5
perf intel-pt: Fix segfault in intel_pt_print_info() with uClibc
...
commit 5a3d47071f0ced0431ef82a5fb6bd077ed9493db upstream.
uClibc segfaulted because NULL was passed as the format to fprintf().
That happened because one of the format strings was missing and
intel_pt_print_info() didn't check that before calling fprintf().
Add the missing format string, and check format is not NULL before calling
fprintf().
Fixes: 11fa7cb86b ("perf tools: Pass Intel PT information for decoding MTC and CYC")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20221012082259.22394-2-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-10-26 13:15:48 +02:00
..
arch
perf record: Fix module size on s390
2019-08-25 10:51:21 +02:00
bench
perf bench numa: Address compiler error on s390
2022-05-25 08:39:50 +02:00
Documentation
perf record/stat: Explicitly call out event modifiers in the documentation
2020-09-12 11:47:32 +02:00
jvmti
perf jit: Fix build issue on Ubuntu
2016-10-17 11:25:34 -03:00
pmu-events
perf jevents: Fix getting maximum number of fds
2021-06-03 08:23:31 +02:00
python
tweewide: Fix most Shebang lines
2021-06-03 08:23:27 +02:00
scripts
tweewide: Fix most Shebang lines
2021-06-03 08:23:27 +02:00
tests
perf test bpf: Free obj_buf
2021-07-28 09:14:27 +02:00
trace
perf trace: Check if MAP_32BIT is defined (again)
2017-01-26 08:24:36 +01:00
ui
perf hists browser: Restore ESC as "Zoom out" of DSO/thread/etc
2020-03-11 07:53:08 +01:00
util
perf intel-pt: Fix segfault in intel_pt_print_info() with uClibc
2022-10-26 13:15:48 +02:00
.gitignore
Build
builtin-annotate.c
builtin-bench.c
builtin-buildid-cache.c
builtin-buildid-list.c
builtin-config.c
builtin-data.c
builtin-diff.c
perf diff: Fix -o/--order option behavior (again)
2017-02-14 15:25:42 -08:00
builtin-evlist.c
builtin-help.c
perf help: Remove needless use of strncpy()
2019-07-10 09:55:36 +02:00
builtin-inject.c
builtin-kmem.c
perf kmem: Fix memory leak in compact_gfp_flags()
2019-11-10 11:23:16 +01:00
builtin-kvm.c
builtin-list.c
perf list: Support long jevents descriptions
2016-10-03 21:35:47 -03:00
builtin-lock.c
perf lock: Don't free "lock_seq_stat" if read_count isn't zero
2020-11-24 13:03:02 +01:00
builtin-mem.c
perf mem: Fix --all-user/--all-kernel options
2017-01-26 08:24:35 +01:00
builtin-probe.c
perf probe: Do not show the skipped events
2020-06-20 10:24:22 +02:00
builtin-record.c
builtin-report.c
perf report: Fix NULL pointer dereference in hists__fprintf_nr_sample_events()
2020-06-30 15:38:30 -04:00
builtin-sched.c
builtin-script.c
perf tools: Fix snprint warnings for gcc 8
2020-07-31 16:44:07 +02:00
builtin-stat.c
perf stat: Reset previous counts on repeat with interval
2019-10-17 13:42:17 -07:00
builtin-timechart.c
builtin-top.c
perf top: Fix stdio interface input handling with glibc 2.28+
2020-10-14 09:48:15 +02:00
builtin-trace.c
perf trace: Add mmap alias for s390
2018-04-13 19:48:17 +02:00
builtin-version.c
builtin.h
check-headers.sh
tools include: Adopt linux/bits.h
2019-05-31 06:48:13 -07:00
command-list.txt
CREDITS
design.txt
Makefile
tools: Let O= makes handle a relative path with -C option
2020-04-02 17:20:36 +02:00
Makefile.config
perf tools: Fix build with ARCH=x86_64
2018-01-23 19:57:07 +01:00
Makefile.perf
perf tools: Move headers check into bash script
2018-06-05 10:28:56 +02:00
MANIFEST
tools include: Introduce linux/bug.h, from the kernel sources
2018-06-05 10:28:56 +02:00
perf-archive.sh
perf-completion.sh
perf-read-vdso.c
perf-sys.h
perf-with-kcore.sh
perf.c
perf.h
perf tools: Increase MAX_NR_CPUS and MAX_CACHES
2019-08-04 09:33:22 +02:00