projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f4cf72
)
[PATCH] ppc64: poison initmem
author
Anton Blanchard
<anton@samba.org>
Tue, 6 Sep 2005 02:05:26 +0000
(12:05 +1000)
committer
Paul Mackerras
<paulus@samba.org>
Tue, 6 Sep 2005 06:07:53 +0000
(16:07 +1000)
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>
arch/ppc64/mm/init.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/ppc64/mm/init.c
b/arch/ppc64/mm/init.c
index b3b1e9c1770a412d84cee67a1dac090e6a642586..a14ab87df49114dbc9d02566b5014d4e91d0b939 100644
(file)
--- 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);