* [PATCH] [Mini-OS] Catch NULL dereferences
@ 2007-11-27 11:23 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2007-11-27 11:23 UTC (permalink / raw)
To: xen-devel
Unmap page 0 (only used early at boot) so as to catch NULL dereferences.
Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
diff -r 26e766e0c628 extras/mini-os/arch/x86/mm.c
--- a/extras/mini-os/arch/x86/mm.c Mon Nov 26 22:28:48 2007 +0000
+++ b/extras/mini-os/arch/x86/mm.c Tue Nov 27 11:20:32 2007 +0000
@@ -270,6 +270,9 @@ void build_pagetable(unsigned long *star
start_address += PAGE_SIZE;
}
+ if (HYPERVISOR_update_va_mapping(0, (pte_t) {}, UVMF_INVLPG))
+ printk("Unable to unmap page 0\n");
+
*start_pfn = pt_pfn;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-27 11:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-27 11:23 [PATCH] [Mini-OS] Catch NULL dereferences Samuel Thibault
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.