89b57fcf01
silent NULL pointer dereference in the i386 and sparc64 pmap_pinit() when the kmem_alloc_nofault() failed to allocate address space. Both functions now return error instead of panicing or dereferencing NULL. As consequence, vmspace_exec() and vmspace_unshare() returns the errno int. struct vmspace arg was added to vm_forkproc() to avoid dealing with failed allocation when most of the fork1() job is already done. The kernel stack for the thread is now set up in the thread_alloc(), that itself may return NULL. Also, allocation of the first process thread is performed in the fork1() to properly deal with stack allocation failure. proc_linkup() is separated into proc_linkup() called from fork1(), and proc_linkup0(), that is used to set up the kernel process (was known as swapper). In collaboration with: Peter Holm Reviewed by: jhb |
||
---|---|---|
.. | ||
ep80219_machdep.c | ||
files.ep80219 | ||
files.i80219 | ||
files.i80321 | ||
files.iq31244 | ||
i80321_aau.c | ||
i80321_dma.c | ||
i80321_intr.h | ||
i80321_mcu.c | ||
i80321_pci.c | ||
i80321_space.c | ||
i80321_timer.c | ||
i80321_wdog.c | ||
i80321.c | ||
i80321reg.h | ||
i80321var.h | ||
iq31244_7seg.c | ||
iq31244_machdep.c | ||
iq80321.c | ||
iq80321reg.h | ||
iq80321var.h | ||
obio_space.c | ||
obio.c | ||
obiovar.h | ||
std.ep80219 | ||
std.i80219 | ||
std.i80321 | ||
std.iq31244 | ||
uart_bus_i80321.c | ||
uart_cpu_i80321.c |