Re: [PATCH] perf util: Fix use after free in metric__new

From: José Expósito
Date: Fri Jan 14 2022 - 10:00:31 EST


On Fri, Jan 14, 2022 at 02:48:35PM +0000, John Garry wrote:
> On 14/01/2022 14:47, Arnaldo Carvalho de Melo wrote:
> > > > Addresses-Coverity-ID: 1494000
> > > > Signed-off-by: José Expósito<jose.exposito89@xxxxxxxxx>
> > > Acked-by: Ian Rogers <irogers@google,com>
> > >
> > > This can only happen in the ENOMEM case, but it is a good fix.
> > >
> > > Fixes: b85a4d61d302 (perf metric: Allow modifiers on metrics)
> > Sorry, I missed this one_as well_, sigh...
> >
> > - Arnaldo
>
>
> Isn't there a v3 out there? Not sure if you noticed...
>
> Cheers

Yes, here is v3 including the Fixes, Acked-by and Reviewed-by tags:

https://lore.kernel.org/linux-perf-users/20220107182106.138418-1-jose.exposito89@xxxxxxxxx/