Messages in this thread | | | From | Namhyung Kim <> | Subject | Re: [PATCH 1/3] perf core: Fix a mmap and munmap mismatched bug | Date | Tue, 03 Sep 2013 18:01:29 +0900 |
| |
Hi Chenggang,
On Sun, 1 Sep 2013 23:29:43 +0800, Chenggang Qin wrote: > From: root <root@core097011.sqa.cm4> > > In function filename__read_debuglink(), while the ELF file is opend and mmapped > in elf_begin(), but if this file is considered to not be usable during the > following code, we will goto the close(fd) directly. The elf_end() is skipped. > So, the mmaped ELF file cannot be munmapped. The memory areas are mmapped is > exist during the life of perf. This is a memory leak. > This patch fixed this bug. > Thanks.
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Thanks, Namhyung
| |