freebsd-dev/sys/i386/linux
Konstantin Belousov 89b57fcf01 Fix for the panic("vm_thread_new: kstack allocation failed") and
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
2007-11-05 11:36:16 +00:00
..
imgact_linux.c Fix for the panic("vm_thread_new: kstack allocation failed") and 2007-11-05 11:36:16 +00:00
linux_dummy.c Implement the openat() linux syscall 2007-03-29 02:11:46 +00:00
linux_genassym.c
linux_ipc64.h
linux_locore.s
linux_machdep.c i386_set_ioperm, i386_get_ldt and i386_set_ldt are now MPSAFE 2007-07-20 08:35:18 +00:00
linux_proto.h regen. 2007-09-18 19:51:49 +00:00
linux_ptrace.c - Move all of the PS_ flags into either p_flag or td_flags. 2007-09-17 05:31:39 +00:00
linux_support.s Move futex support code from <arch>/support.s into linux compat directory. 2007-05-23 08:33:06 +00:00
linux_syscall.h regen. 2007-09-18 19:51:49 +00:00
linux_sysent.c regen. 2007-09-18 19:51:49 +00:00
linux_sysvec.c Fill in cr2 in the signal context from ksi->ksi_addr. 2007-09-20 13:46:26 +00:00
linux.h The kernel version of Linux statfs64 is actually supposed to take 2007-09-18 19:50:33 +00:00
Makefile
syscalls.conf - Remove unused sysvec variables from various syscalls.conf. 2006-08-15 17:25:55 +00:00
syscalls.master The kernel version of Linux statfs64 is actually supposed to take 2007-09-18 19:50:33 +00:00