[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86: Poison initmem at end of Xen bootstrap



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1231156524 0
# Node ID d77f66f89c0413eb468d9716913cc18515989531
# Parent  2c5a2e99a1d69d635843955310488fbd5e1bcdd2
x86: Poison initmem at end of Xen bootstrap

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/setup.c |    1 +
 1 files changed, 1 insertion(+)

diff -r 2c5a2e99a1d6 -r d77f66f89c04 xen/arch/x86/setup.c
--- a/xen/arch/x86/setup.c      Mon Jan 05 11:52:34 2009 +0000
+++ b/xen/arch/x86/setup.c      Mon Jan 05 11:55:24 2009 +0000
@@ -386,6 +386,7 @@ void init_done(void)
     extern char __init_begin[], __init_end[];
 
     /* Free (or page-protect) the init areas. */
+    memset(__init_begin, 0xcc, __init_end - __init_begin); /* int3 poison */
 #ifndef MEMORY_GUARD
     init_xenheap_pages(__pa(__init_begin), __pa(__init_end));
 #endif

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.