x86: Poison initmem at end of Xen bootstrap
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 5 Jan 2009 11:55:24 +0000 (11:55 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 5 Jan 2009 11:55:24 +0000 (11:55 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/setup.c

index c8639d35f3c5316292f3a7c916da7a4d609b92a2..051b542ce3113721dc0abbd0fa4ea10286026de7 100644 (file)
@@ -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