The patch titled fix page leak during core dump has been added to the -mm tree. Its filename is fix-page-leak-during-core-dump.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: fix page leak during core dump From: Brian Pomerantz <bapper@xxxxxxxxxxxxxxx> When the dump cannot occur most likely because of a full file system and the page to be written is the zero page, the call to page_cache_release() is missed. Signed-off-by: Brian Pomerantz <bapper@xxxxxxxxxx> Cc: Hugh Dickins <hugh@xxxxxxxxxxx> Cc: Nick Piggin <nickpiggin@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/binfmt_elf.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-) diff -puN fs/binfmt_elf.c~fix-page-leak-during-core-dump fs/binfmt_elf.c --- a/fs/binfmt_elf.c~fix-page-leak-during-core-dump +++ a/fs/binfmt_elf.c @@ -1704,7 +1704,10 @@ static int elf_core_dump(long signr, str DUMP_SEEK(PAGE_SIZE); } else { if (page == ZERO_PAGE(addr)) { - DUMP_SEEK(PAGE_SIZE); + if (!dump_seek(file, PAGE_SIZE)) { + page_cache_release(page); + goto end_coredump; + } } else { void *kaddr; flush_cache_page(vma, addr, _ Patches currently in -mm which might be from bapper@xxxxxxxxxxxxxxx are fix-page-leak-during-core-dump.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html