Revision 2d6b74baa7147251c30a46c4996e8cc224aa2dc5 authored by Riccardo Mancini on 15 July 2021, 16:07:06 UTC, committed by Arnaldo Carvalho de Melo on 15 July 2021, 20:25:27 UTC
ASan reports a memory leak of nsinfo during the execution of # perf test "31: Lookup mmap thread" The leak is caused by a refcounted variable being replaced without dropping the refcount. This patch makes sure that the refcnt of nsinfo is decreased whenever a refcounted variable is replaced with a new value. Signed-off-by: Riccardo Mancini <rickyman7@gmail.com> Fixes: bf2e710b3cb8445c ("perf maps: Lookup maps in both intitial mountns and inner mountns.") Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Krister Johansen <kjlx@templeofstupid.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lore.kernel.org/lkml/55223bc8821b34ccb01f92ef1401c02b6a32e61f.1626343282.git.rickyman7@gmail.com [ Split from a larger patch ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 0967ebf
File | Mode | Size |
---|---|---|
agp | ||
hw_random | ||
ipmi | ||
mwave | ||
pcmcia | ||
tpm | ||
xilinx_hwicap | ||
xillybus | ||
Kconfig | -rw-r--r-- | 15.5 KB |
Makefile | -rw-r--r-- | 1.4 KB |
adi.c | -rw-r--r-- | 4.5 KB |
apm-emulation.c | -rw-r--r-- | 17.3 KB |
applicom.c | -rw-r--r-- | 24.1 KB |
applicom.h | -rw-r--r-- | 2.5 KB |
bsr.c | -rw-r--r-- | 8.2 KB |
ds1620.c | -rw-r--r-- | 8.4 KB |
dsp56k.c | -rw-r--r-- | 12.2 KB |
dtlk.c | -rw-r--r-- | 16.3 KB |
hangcheck-timer.c | -rw-r--r-- | 5.1 KB |
hpet.c | -rw-r--r-- | 24.0 KB |
lp.c | -rw-r--r-- | 27.4 KB |
mem.c | -rw-r--r-- | 16.3 KB |
misc.c | -rw-r--r-- | 6.8 KB |
mspec.c | -rw-r--r-- | 7.1 KB |
nsc_gpio.c | -rw-r--r-- | 3.5 KB |
nvram.c | -rw-r--r-- | 13.5 KB |
nwbutton.c | -rw-r--r-- | 7.9 KB |
nwbutton.h | -rw-r--r-- | 1.1 KB |
nwflash.c | -rw-r--r-- | 12.8 KB |
pc8736x_gpio.c | -rw-r--r-- | 8.8 KB |
powernv-op-panel.c | -rw-r--r-- | 5.1 KB |
ppdev.c | -rw-r--r-- | 20.2 KB |
ps3flash.c | -rw-r--r-- | 10.0 KB |
random.c | -rw-r--r-- | 67.1 KB |
scx200_gpio.c | -rw-r--r-- | 3.1 KB |
sonypi.c | -rw-r--r-- | 40.4 KB |
tb0219.c | -rw-r--r-- | 7.1 KB |
tlclk.c | -rw-r--r-- | 23.3 KB |
toshiba.c | -rw-r--r-- | 12.4 KB |
ttyprintk.c | -rw-r--r-- | 4.8 KB |
uv_mmtimer.c | -rw-r--r-- | 5.5 KB |
virtio_console.c | -rw-r--r-- | 54.4 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...