History log of /openbsd-src/sys/kern/kern_fork.c (Results 76 – 100 of 268)
Revision Date Author Comments
# 69e7eddb 24-Jan-2017 mpi <mpi@openbsd.org>

Rename pfind(9) into tfind(9) to reflect that it deals with threads.

While here document prfind(9.

with and ok guenther@


# 3b7181b7 07-Nov-2016 guenther <guenther@openbsd.org>

Split PID from TID, giving processes a PID unrelated to the TID of their
initial thread

ok jsing@ kettenis@


# 424d010a 22-Oct-2016 guenther <guenther@openbsd.org>

Adjust allocpid() to take into account lastpid

ok jsing@ kettensi@


# 654cb11c 15-Oct-2016 guenther <guenther@openbsd.org>

Process groups can't be removed if a zombie process is in them, so
ispidtaken() can rely on pgfind() for all pgrp checks and can simply
use zombiefind() for the zombie check

ok jca@


# 9babc541 03-Sep-2016 jca <jca@openbsd.org>

Inherit PS_WXNEEDED in forked processes.

Issue noticed when debugging lang/sbcl.

ok deraadt@ guenther@ tedu@


# 1b437042 31-Aug-2016 tom <tom@openbsd.org>

proc_trampoline_mp hasn't needed curproc since 2011

ok guenther@ mpi@


# 398e60f9 25-Apr-2016 tedu <tedu@openbsd.org>

remove systrace remnants


# 2ed745d2 25-Apr-2016 tedu <tedu@openbsd.org>

boom goes the dynamite


# 4008ee94 11-Mar-2016 tedu <tedu@openbsd.org>

increase size of oldpids to 128 to prevent mod bias when idx wraps.
from Michal Mazurek


# df174574 09-Oct-2015 deraadt <deraadt@openbsd.org>

Rename tame() to pledge(). This fairly interface has evolved to be more
strict than anticipated. It allows a programmer to pledge/promise/covenant
that their program will operate within an easily d

Rename tame() to pledge(). This fairly interface has evolved to be more
strict than anticipated. It allows a programmer to pledge/promise/covenant
that their program will operate within an easily defined subset of the
Unix environment, or it pays the price.

show more ...


# 562bbd83 11-Sep-2015 guenther <guenther@openbsd.org>

Only include <sys/tame.h> in the .c files that need it

ok deraadt@ miod@


# 430c0dba 22-Aug-2015 deraadt <deraadt@openbsd.org>

Move to tame(int flags, char *paths[]) API/ABI.

The pathlist is a whitelist of dirs and files; anything else returns ENOENT.
Recommendation is to use a narrowly defined list. Also add TAME_FATTR, w

Move to tame(int flags, char *paths[]) API/ABI.

The pathlist is a whitelist of dirs and files; anything else returns ENOENT.
Recommendation is to use a narrowly defined list. Also add TAME_FATTR, which
permits explicit change operations against "struct stat" fields. Some
other TAME_ flags are refined slightly.

Not cranking libc now, since nothing commited in base uses this and the
timing is uncomfortable for others. Discussed with many; thanks for a
few bug fixes from semarie, doug, guenther.
ok guenther

show more ...


# 586b470f 19-Jul-2015 deraadt <deraadt@openbsd.org>

tame(2) is a subsystem which restricts programs into a "reduced feature
operating model". This is the kernel component; various changes should
proceed in-tree for a while before userland programs st

tame(2) is a subsystem which restricts programs into a "reduced feature
operating model". This is the kernel component; various changes should
proceed in-tree for a while before userland programs start using it.
ok miod, discussions and help from many

show more ...


# cf1e490f 14-Mar-2015 jsg <jsg@openbsd.org>

add sys/atomic.h back for membar_* needed for at least armv7


# 21dab745 14-Mar-2015 jsg <jsg@openbsd.org>

Remove some includes include-what-you-use claims don't
have any direct symbols used. Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@


# bf00d64f 10-Feb-2015 guenther <guenther@openbsd.org>

Factor out the common bits of process_new() and main()'s code for
setting up process0, 'cause I'm sick of forgetting to update main()
when touching process_new()

ok blambert@ miod@


# 3811cf15 18-Nov-2014 tedu <tedu@openbsd.org>

move arc4random prototype to systm.h. more appropriate for most code
to include that than rdnvar.h. ok deraadt dlg


# 782ebdf8 03-Nov-2014 tedu <tedu@openbsd.org>

include sys/unistd.h where needed instead of indirect reliance. ok jsg


# 5ff140d2 03-Nov-2014 deraadt <deraadt@openbsd.org>

pass size argument to free()
ok doug tedu


# cf6677a6 08-Sep-2014 guenther <guenther@openbsd.org>

Delete procfs; it's always had races and is now unused: no one noticed for
months that I broke it before the 5.5 release.

confirmed as not being required by ports by sthen@, ajacoutot@, dcoppa@


# ca86693b 13-Jul-2014 uebayasi <uebayasi@openbsd.org>

KERNEL_ASSERT_LOCKED(9): Assertion for kernel lock (Rev. 3)

This adds a new assertion macro, KERNEL_ASSERT_LOCKED(), to assert that
kernel_lock is held. In the long process of removing kernel_lock,

KERNEL_ASSERT_LOCKED(9): Assertion for kernel lock (Rev. 3)

This adds a new assertion macro, KERNEL_ASSERT_LOCKED(), to assert that
kernel_lock is held. In the long process of removing kernel_lock, there will
be a lot (hundreds or thousands) of use of this; virtually almost all functions
in !MP-safe subsystems should have this assertion. Thus this assertion should
have a short, good name.

Not only that "KERNEL_ASSERT_LOCKED" is consistent with other KERNEL_* and
SCHED_ASSERT_LOCKED() macros.

Input from dlg@ guenther@ kettenis@.

OK dlg@ guenther@

show more ...


# 9e8577e7 12-Jul-2014 tedu <tedu@openbsd.org>

add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.


# 476c8c32 11-Jul-2014 guenther <guenther@openbsd.org>

Use membar_producer() to force visibility instead of misusing
atomic_setbits_int()

ok kettenis@


# e6c6495d 08-Jul-2014 deraadt <deraadt@openbsd.org>

decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.h
don't need to be married.
ok guenther miod beck jsing kettenis


# dbe36602 07-Jul-2014 matthew <matthew@openbsd.org>

fork1: FORK_THREAD requires FORK_SHAREFILES

Now that file descriptor tables have moved from a per-thread resource
to per-process, it's impossible to fork a thread without sharing the
file descriptor

fork1: FORK_THREAD requires FORK_SHAREFILES

Now that file descriptor tables have moved from a per-thread resource
to per-process, it's impossible to fork a thread without sharing the
file descriptor table.

ok guenther

show more ...


1234567891011