tree d4212c465fb10a71022c755700a77bcf8b47af37 parent 2f4cf721eb2ff23b60af2932fd9fa4026f2a1164 author Anton Blanchard <[EMAIL PROTECTED]> Tue, 06 Sep 2005 12:05:26 +1000 committer Paul Mackerras <[EMAIL PROTECTED]> Tue, 06 Sep 2005 16:07:53 +1000
[PATCH] ppc64: poison initmem Poison initmem after we free it so we catch use after free issues. Signed-off-by: Anton Blanchard <[EMAIL PROTECTED]> Signed-off-by: Paul Mackerras <[EMAIL PROTECTED]> arch/ppc64/mm/init.c | 1 + 1 files changed, 1 insertion(+) diff --git a/arch/ppc64/mm/init.c b/arch/ppc64/mm/init.c --- a/arch/ppc64/mm/init.c +++ b/arch/ppc64/mm/init.c @@ -392,6 +392,7 @@ void free_initmem(void) addr = (unsigned long)__init_begin; for (; addr < (unsigned long)__init_end; addr += PAGE_SIZE) { + memset((void *)addr, 0xcc, PAGE_SIZE); ClearPageReserved(virt_to_page(addr)); set_page_count(virt_to_page(addr), 1); free_page(addr); - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html