faults. Use curpcb, which always points to the current pcb. If curproc was NULL when the kernel faulted, the trap handling would fault recursively and the kernel stack would overflow.