perf tools: Use list_del_init() more thorougly
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 4 Jul 2019 15:13:46 +0000 (12:13 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 9 Jul 2019 13:13:27 +0000 (10:13 -0300)
commite56fbc9dc79ce0fdc49ffadd062214ddd02f65b6
treeb108e9b4fcb4cc1be29778253097089884b00f23
parentd8f9da240495b50766239410f9b0c715ca506a67
perf tools: Use list_del_init() more thorougly

To allow for destructors to check if they're operating on a object still
in a list, and to avoid going from use after free list entries into
still valid, or even also other already removed from list entries.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-deh17ub44atyox3j90e6rksu@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
22 files changed:
tools/perf/builtin-ftrace.c
tools/perf/builtin-lock.c
tools/perf/pmu-events/jevents.c
tools/perf/tests/switch-tracking.c
tools/perf/ui/gtk/annotate.c
tools/perf/util/annotate.c
tools/perf/util/auxtrace.c
tools/perf/util/bpf-loader.c
tools/perf/util/call-path.c
tools/perf/util/callchain.c
tools/perf/util/db-export.c
tools/perf/util/dso.c
tools/perf/util/evsel.c
tools/perf/util/hist.c
tools/perf/util/ordered-events.c
tools/perf/util/parse-events.c
tools/perf/util/pmu.c
tools/perf/util/probe-event.c
tools/perf/util/s390-cpumsf.c
tools/perf/util/srccode.c
tools/perf/util/symbol-elf.c
tools/perf/util/thread.c