Re: [PATCH v3 01/21] perf capstone: Fix kernel map reference count leak

From: Namhyung Kim

Date: Fri Jul 10 2026 - 17:49:39 EST


On Wed, Jul 08, 2026 at 10:57:08PM -0700, Namhyung Kim wrote:
> On Wed, Jul 01, 2026 at 03:53:35AM +0000, Tengda Wu wrote:
> > In print_capstone_detail(), maps__find() is used to locate the kernel
> > map. This function increments the reference count of the found map
> > object. However, the current implementation fails to call map__put()
> > after the map is no longer needed, leading to a reference count leak.
> >
> > Fix this by adding a map__put(map) call to properly release the
> > reference after use.
> >
> > Fixes: 92dfc59463d5 ("perf annotate: Add symbol name when using capstone")
> > Signed-off-by: Tengda Wu <wutengda@xxxxxxxxxxxxxxx>
>
> I'll pick this up separately.

Applied to perf-tools-next, thanks!

Best regards,
Namhyung