diff options
author | Anton Blanchard <anton@samba.org> | 2005-09-06 12:05:26 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-09-06 16:07:53 +1000 |
commit | 4721e2214b5fd6eca48caea76afb1bad3148930f (patch) | |
tree | d4212c465fb10a71022c755700a77bcf8b47af37 /arch/ppc64/mm | |
parent | 2f4cf721eb2ff23b60af2932fd9fa4026f2a1164 (diff) | |
download | kernel_samsung_aries-4721e2214b5fd6eca48caea76afb1bad3148930f.zip kernel_samsung_aries-4721e2214b5fd6eca48caea76afb1bad3148930f.tar.gz kernel_samsung_aries-4721e2214b5fd6eca48caea76afb1bad3148930f.tar.bz2 |
[PATCH] ppc64: poison initmem
Poison initmem after we free it so we catch use after free issues.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/mm')
-rw-r--r-- | arch/ppc64/mm/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/ppc64/mm/init.c b/arch/ppc64/mm/init.c index b3b1e9c..a14ab87 100644 --- 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); |