Skip to content

perf stat: fix memory corruption and core dump

Stephane Eranian lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2perf stat: fix NULL pointer reference bug with event unittools/perf/util/parse-events.c tools/perf/util/pmu.c tools/perf/util/pmu.h+22 -60 replies
2/2perf stat: fix memory corruption of xyarray when cpumask is usedtools/perf/util/evlist.c tools/perf/util/evsel.c+5 -41 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] perf stat: fix memory corruption and core dump

This short patch series fixes two problems:
- segfault for perf stat -e cpu/event=0x3c ls
- memory corruption via xyarray of evsel->fd.

The patch is relative to tip.get

Stephane Eranian (2):
perf stat: fix NULL pointer reference bug with event unit perf stat: fix memory corruption of xyarray when cpumask is used

 tools/perf/util/evlist.c       |    7 +++++--
 tools/perf/util/evsel.c        |    2 --
 tools/perf/util/parse-events.c |    2 +-
 tools/perf/util/pmu.c          |   24 ++++++++++++++++++++----
 tools/perf/util/pmu.h          |    2 +-
 5 files changed, 27 insertions(+), 10 deletions(-)
Signature · 1 line
1.7.9.5