History log of /openbsd-src/regress/sys/kern/fork-exit/fork-exit.c (Results 1 – 8 of 8)
Revision Date Author Comments
# 881e535e 07-Aug-2024 claudio <claudio@openbsd.org>

Rework fork-exit regress to work with any pagesize not only 4k.
Also mmap PROT_READ|PROT_WRITE instead of write only.
Add a bit more extra space for the stack allocations.
With all of this this test

Rework fork-exit regress to work with any pagesize not only 4k.
Also mmap PROT_READ|PROT_WRITE instead of write only.
Add a bit more extra space for the stack allocations.
With all of this this test no longer fails on sparc64
OK deraadt@ bluhm@

show more ...


# 5a9255e7 06-Jul-2021 bluhm <bluhm@openbsd.org>

alarm(3) cannot fail, remove error handling.
suggested by millert@


# 3747865f 22-May-2021 bluhm <bluhm@openbsd.org>

On powerpc64 calling a function needs 64 bytes of stack overhead
per recursion. On amd64 it is only 32. Allocate more stack per
thread and the stack tests pass everywhere


# 4164398c 21-May-2021 bluhm <bluhm@openbsd.org>

Fix the calculation of the maximum stack size in the command line
option -s.


# 5a9dda22 21-May-2021 bluhm <bluhm@openbsd.org>

Set the stack size attribute of the pthreads large enough to allocate
the specified amount of stack memory. On 32 bit architectures
regress fork-exit failed as the default stack size for pthreads is

Set the stack size attribute of the pthreads large enough to allocate
the specified amount of stack memory. On 32 bit architectures
regress fork-exit failed as the default stack size for pthreads is
smaller. With the limit set to the expected size we can test even
larger thread stacks.

show more ...


# 85f5c1e8 04-May-2021 bluhm <bluhm@openbsd.org>

Create memory pressure in test. Allocate heap and stack in child
processes and threads. Then exit has more work to do.


# 79f7fade 29-Apr-2021 bluhm <bluhm@openbsd.org>

Extend the fork and exit test with threads. Simultaneously kill
30 processes with 30 threads each.


# 0383853b 28-Apr-2021 bluhm <bluhm@openbsd.org>

To hunt kernel bugs during exit, terminate processes simultaneously.
Fork 300 children that sleep. Kill them together as process group.
Sleeping can optionally be done with individual memory layout

To hunt kernel bugs during exit, terminate processes simultaneously.
Fork 300 children that sleep. Kill them together as process group.
Sleeping can optionally be done with individual memory layout by
executing sleep(1).

show more ...