Re: [PATCH v2] perf libbfd: Ensure libbfd is initialized prior to use
From: Arnaldo Carvalho de Melo
Date: Thu Nov 13 2025 - 15:31:54 EST
On Thu, Nov 13, 2025 at 09:03:42AM -0800, Ian Rogers wrote:
> On Tue, Nov 11, 2025 at 11:43 PM Ian Rogers <irogers@xxxxxxxxxx> wrote:
> >
> > Multiple threads may be creating and destroying BFD objects in
> > situations like `perf top`. Without appropriate initialization crashes
> > may occur during libbfd's cache management. BFD's locks require
> > recursive mutexes, add support for these.
> >
> > Reported-by: Guilherme Amadio <amadio@xxxxxxxxxx>
> > Closes: https://lore.kernel.org/lkml/aQt66zhfxSA80xwt@xxxxxxxxxx/
> > Fixes: 95931d9a594d ("perf libbfd: Move libbfd functionality to its own file")
> > Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
>
> I'm hoping adding the missing initialization is just obviously
> correct, Guilherme if you could provide a Tested-by it would be great.
Indeed, Guilherme?
I'm now trying to reproduce the problem to then try with the patch,
- Arnaldo