]> git.ipfire.org Git - thirdparty/linux.git/commit
perf unwind-libdw: Fix invalid reference counts
authorIan Rogers <irogers@google.com>
Sun, 11 Jan 2026 04:13:32 +0000 (20:13 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 12 Jan 2026 19:11:07 +0000 (16:11 -0300)
commitf815fc0c66e777c727689666cfb46b8d461c2f99
tree453d91e989ebfcdb1c2602b3eccff01de91dc383
parentef92c4351ec75bcfb8a1cc3a88109b5339f296ef
perf unwind-libdw: Fix invalid reference counts

The addition of addr_location__exit() causes use-after put on the maps
and map references in the unwind info. Add the gets and then add the
map_symbol__exit() calls.

Fixes: 0dd5041c9a0eaf8c ("perf addr_location: Add init/exit/copy functions")
Reviewed-by: James Clark <james.clark@linaro.org>
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Howard Chu <howardchu95@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephen Brennan <stephen.s.brennan@oracle.com>
Cc: Tony Jones <tonyj@suse.de>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/unwind-libdw.c