From 9a8771a64bf9797acf482d4d7d4954be83a75095 Mon Sep 17 00:00:00 2001 From: tegge Date: Mon, 2 Jun 2003 20:43:28 +0000 Subject: [PATCH] Initialize td->td_pcb->pcb_ext in cpu_thread_setup() since a garbage value (e.g. 0xd0d0d0d0) can cause a kernel panic. --- sys/i386/i386/vm_machdep.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/i386/i386/vm_machdep.c b/sys/i386/i386/vm_machdep.c index 2195bdc692d2..b3c36562e4cf 100644 --- a/sys/i386/i386/vm_machdep.c +++ b/sys/i386/i386/vm_machdep.c @@ -309,6 +309,7 @@ cpu_thread_setup(struct thread *td) td->td_pcb = (struct pcb *)(td->td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1; td->td_frame = (struct trapframe *)((caddr_t)td->td_pcb - 16) - 1; + td->td_pcb->pcb_ext = NULL; } /*