Skip to content

Various asan and test fixes

Ian Rogers linux-perf-users lkml 2 versions – Applied

Status from this message: Thanks, applied to perf-tools-next,

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 8 repliesApplied
  2. v16 patches 6 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/7perf symbol: Fix use-after-free in filename__read_build_idtools/perf/util/symbol-minimal.c+70 -980 replies
2/7perf test demangle-java: Don't segv if demangling failstools/perf/tests/demangle-java-test.c+5 -00 replies
3/7perf symbol: Move demangling code out of symbol-elf.ctools/perf/util/demangle-cxx.h tools/perf/util/symbol-elf.c tools/perf/util/symbol-minimal.c +1 more+89 -930 replies
4/7perf intel-tpebs: Avoid race when evlist is being deletedtools/perf/util/intel-tpebs.c+10 -25 replies
5/7perf test intel-pt: Skip jitdump test if no libelftools/perf/tests/shell/test_intel_pt.sh+5 -00 replies
6/7perf test trace_summary: Skip --bpf-summary tests if no libbpftools/perf/tests/shell/trace_summary.sh+6 -02 replies
7/7perf thread: Avoid recursively taking thread__comm_locktools/perf/util/thread.c+13 -40 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchHoward ChuNamhyung Kim
SeriesA-b
1/7
2/7
3/7
4/7
5/7
6/7A-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/7] Various asan and test fixes

When testing removing perf_env with asan I noticed a number of test failures either because of asan issues or because of building with NO_LIBELF=1 and NO_LIBBPF=1 to avoid false memory leaks. Address these issues so that real test failures stand out.

v2: Fix wrong elf size use in filename__read_build_id fix. Add
thread__comm_lock fix.

Ian Rogers (7):
perf symbol: Fix use-after-free in filename__read_build_id perf test demangle-java: Don't segv if demangling fails perf symbol: Move demangling code out of symbol-elf.c perf intel-tpebs: Avoid race when evlist is being deleted perf test intel-pt: Skip jitdump test if no libelf perf test trace_summary: Skip --bpf-summary tests if no libbpf perf thread: Avoid recursively taking thread__comm_lock

 tools/perf/tests/demangle-java-test.c   |   5 +
 tools/perf/tests/shell/test_intel_pt.sh |   5 +
 tools/perf/tests/shell/trace_summary.sh |   6 +
 tools/perf/util/demangle-cxx.h          |   2 +
 tools/perf/util/intel-tpebs.c           |  12 +-
 tools/perf/util/symbol-elf.c            |  86 ------------
 tools/perf/util/symbol-minimal.c        | 175 ++++++++++--------------
 tools/perf/util/symbol.c                |  87 ++++++++++++
 tools/perf/util/thread.c                |  17 ++-
 9 files changed, 198 insertions(+), 197 deletions(-)
Signature · 1 line
2.49.0.1238.gf8c92423fb-goog