[PATCH] perf test: Fix a leaked map reference in the arch dwarf unwind tests
Arnaldo Carvalho de Melo
acme at kernel.org
Tue Sep 22 05:39:18 PDT 2026
On Tue, Sep 15, 2026 at 12:35:23PM -0700, Ian Rogers wrote:
> On Mon, Sep 14, 2026 at 5:19 AM Chen Pei <cp0613 at linux.alibaba.com> wrote:
> >
> > maps__find() has returned a reference to the map it finds since
> > commit 42fd623b58db ("perf maps: Get map before returning in
> > maps__find"), which updated arch/x86/tests/dwarf-unwind.c but missed
> > the arm, arm64 and powerpc copies. Release the map after reading its
> > end, as x86 does. All other callers of maps__find() already release
> > what they get.
> >
> > Fixes: 42fd623b58db ("perf maps: Get map before returning in maps__find")
> > Signed-off-by: Chen Pei <cp0613 at linux.alibaba.com>
>
> Reviewed-by: Ian Rogers <irogers at google.com>
Thanks, applied to perf-tools-next, for v7.4.
- Arnaldo
More information about the linux-arm-kernel
mailing list