summaryrefslogtreecommitdiff
path: root/sys/kern/kern_fork.c
AgeCommit message (Expand)Author
2018-06-17Move kqueue related fields from struct filedesc to struct kqueue. Solves a panicanton
2017-12-30Delete unnecessary <sys/file.h> includesPhilip Guenther
2017-12-12pledge()'s 2nd argument becomes char *execpromises, which becomes theTheo de Raadt
2017-09-27guenther sleep-commited the version without #ifdefsTheo de Raadt
2017-09-27amd64 needs FS.base values (the TCB pointer) to be validated, as noncanonicalPhilip Guenther
2017-08-29Remove old deactivated pledge path code. A replacement mechanism isTheo de Raadt
2017-04-20Add a port of witness(4) lock validation tool from FreeBSD.Visa Hankala
2017-04-13Provide mips64 with kernel-facing TCB_{GET,SET} macros that store itPhilip Guenther
2017-02-12Split up fork1():Philip Guenther
2017-02-08Delete the obsolete fork/exec/exit emulation hooks.Philip Guenther
2017-01-24Rename pfind(9) into tfind(9) to reflect that it deals with threads.Martin Pieuchot
2016-11-07Split PID from TID, giving processes a PID unrelated to the TID of theirPhilip Guenther
2016-10-22Adjust allocpid() to take into account lastpidPhilip Guenther
2016-10-15Process groups can't be removed if a zombie process is in them, soPhilip Guenther
2016-09-03Inherit PS_WXNEEDED in forked processes.Jeremie Courreges-Anglas
2016-08-31proc_trampoline_mp hasn't needed curproc since 2011Tom Cosgrove
2016-04-25remove systrace remnantsTed Unangst
2016-04-25boom goes the dynamiteTed Unangst
2016-03-11increase size of oldpids to 128 to prevent mod bias when idx wraps.Ted Unangst
2015-10-09Rename tame() to pledge(). This fairly interface has evolved to be moreTheo de Raadt
2015-09-11Only include <sys/tame.h> in the .c files that need itPhilip Guenther
2015-08-22Move to tame(int flags, char *paths[]) API/ABI.Theo de Raadt
2015-07-19tame(2) is a subsystem which restricts programs into a "reduced featureTheo de Raadt
2015-03-14add sys/atomic.h back for membar_* needed for at least armv7Jonathan Gray
2015-03-14Remove some includes include-what-you-use claims don'tJonathan Gray
2015-02-10Factor out the common bits of process_new() and main()'s code forPhilip Guenther
2014-11-18move arc4random prototype to systm.h. more appropriate for most codeTed Unangst
2014-11-03include sys/unistd.h where needed instead of indirect reliance. ok jsgTed Unangst
2014-11-03pass size argument to free()Theo de Raadt
2014-09-08Delete procfs; it's always had races and is now unused: no one noticed forPhilip Guenther
2014-07-13KERNEL_ASSERT_LOCKED(9): Assertion for kernel lock (Rev. 3)Masao Uebayashi
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
2014-07-11Use membar_producer() to force visibility instead of misusingPhilip Guenther
2014-07-08decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.hTheo de Raadt
2014-07-07fork1: FORK_THREAD requires FORK_SHAREFILESMatthew Dempsky
2014-07-04Track whether a process is a zombie or not yet fully built via flagsPhilip Guenther
2014-05-15Move from struct proc to process the reference-count-holding pointersPhilip Guenther
2014-05-06Include <sys/vmmeter.h> directly instead of relying on it beingMartin Pieuchot
2014-05-04Add PS_SYSTEM, the process-level mirror of the thread-level P_SYSTEM,Philip Guenther
2014-05-03Move the u-area allocation and pmap-magic logic to its own functionPhilip Guenther
2014-04-18Have each thread keeps its own (counted!) reference to the process's ucredsPhilip Guenther
2014-03-30Eliminates struct pcred by moving the real and saved ugids intoPhilip Guenther
2014-03-28Reduce uvm include madness. Use <uvm/uvm_extern.h> instead ofMartin Pieuchot
2014-03-26Move p_emul and p_sigcode from proc to process.Philip Guenther
2014-03-22Move p_sigacts from struct proc to struct process.Philip Guenther
2014-02-12Eliminate the exit sig handling, which was only invokable via thePhilip Guenther
2014-02-10arc4random_uniform() returns a value strictly less than its argument; fixPhilip Guenther
2014-01-20Threads can't be zombies, only processes, so change zombproc to zombprocess,Philip Guenther
2014-01-20Move p_textvp from struct proc to struct process so that the exit codePhilip Guenther
2013-10-08Fix delivery of SIGPROF and SIGVTALRM to threaded processes by havingPhilip Guenther