On Tue, Jul 27, 2021 at 09:14:44AM +0530, Naresh Kamboju wrote: > On Mon, 26 Jul 2021 at 21:28, Greg Kroah-Hartman > <gregkh@xxxxxxxxxxxxxxxxxxx> wrote: > > > > From: Riccardo Mancini <rickyman7@xxxxxxxxx> > > > > [ Upstream commit 233f2dc1c284337286f9a64c0152236779a42f6c ] > > > > ASan reports a memory leak related to session->evlist while running: > > > > # perf test "41: Session topology". > > > > When perf_data is in write mode, session->evlist is owned by the caller, > > which should also take care of deleting it. > > > > This patch adds the missing evlist__delete(). > > > > Signed-off-by: Riccardo Mancini <rickyman7@xxxxxxxxx> > > Fixes: c84974ed9fb67293 ("perf test: Add entry to test cpu topology") > > Cc: Ian Rogers <irogers@xxxxxxxxxx> > > Cc: Jiri Olsa <jolsa@xxxxxxxxxx> > > Cc: Kan Liang <kan.liang@xxxxxxxxx> > > Cc: Mark Rutland <mark.rutland@xxxxxxx> > > Cc: Namhyung Kim <namhyung@xxxxxxxxxx> > > Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx> > > Link: http://lore.kernel.org/lkml/822f741f06eb25250fb60686cf30a35f447e9e91.1626343282.git.rickyman7@xxxxxxxxx > > Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx> > > Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx> > > > perf build failed on 4.19, 4.14, 4.9 and 4.4 due to these warnings / errors > for all the architectures. Now dropped from all of these trees. Let me go push out -rc2 for all of them as well... thanks, greg k-h