summaryrefslogtreecommitdiff
path: root/regress/sys/kern
AgeCommit message (Collapse)Author
2021-10-22knf nitsAnton Lindqvist
2021-10-22add pipe select hangup test case; ok mpi@Anton Lindqvist
2021-10-05build prog onceAnton Lindqvist
2021-09-30Quote SUDO value during propagation, allowing `doas -n' to be correctlyAnton Lindqvist
honored which I use while running regress. The same principle is already applied to the PYTHON variable here.
2021-09-28Turns out that older SPARC CPUs (like the UltraSPARC II) do report an exactMark Kettenis
fault address, while others (like the UltraSPARC T2) report an inexact address. Deal with this by using the EXPADDR_MASK on both the expected and the reported fault address. ok bluhm@
2021-09-28add missing sudoAnton Lindqvist
2021-09-27Return 0 from main() otherwise the exit code is garbage on sparc64.Alexander Bluhm
Collect status of the child process to detect test failures. OK tb@
2021-09-20Use proper sigsuspend() instead of old pause() and use sigprocmask() toClaudio Jeker
block delivery of signals outside of sigsuspend(). With this the test is more reliable. pause() is implemented as two syscalls and so it is possible to catch a signal on the first syscall and than be stuck on the second waiting for something that already happened. OK millert@ deraadt@ bluhm@
2021-08-30Test for the pathetic case that the 2nd unveil inClaudio Jeker
unveil(NULL, NULL); if (fork() == 0) unveil("/", "rwx") fails with EPERM.
2021-08-30Check that fchdir() works. The problem in unveil was fixed some time ago.Claudio Jeker
2021-08-30Make lines not wrap on 80 char terminals. Code gets more readable.Claudio Jeker
2021-07-06This regress checks that 400 singals are evenly distributed over 4Alexander Bluhm
threads. It works well on idle 4 CPU machines, but with load or fewer cores the distribution of the threads' signal handlers is worse. Reduce the limit of signals that each thread must receive from 75 to 50. This should prevent random test fails. from Christian Ludwig
2021-07-06alarm(3) cannot fail, remove error handling.Alexander Bluhm
suggested by millert@
2021-06-20use __riscv instead of __riscv64Theo de Raadt
2021-06-12Exercise resetting of expired and unexpired timers.Visa Hankala
2021-06-11Adjust futex regress test since futex(2) now returns -1 on error and setsMark Kettenis
errno like any normal syscall. ok mpi@, bluhm@
2021-06-01Introduce the new test which enforces unp_gc() run and closemvs
unreferenced descriptors. ok bluhm@
2021-05-27Introduce the new test which enforces unp_internalize() to follow errormvs
path and FRELE(9) descriptors. ok @bluhm
2021-05-22On powerpc64 calling a function needs 64 bytes of stack overheadAlexander Bluhm
per recursion. On amd64 it is only 32. Allocate more stack per thread and the stack tests pass everywhere
2021-05-21Fix the calculation of the maximum stack size in the command lineAlexander Bluhm
option -s.
2021-05-21Set the stack size attribute of the pthreads large enough to allocateAlexander Bluhm
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.
2021-05-17Skip sosplice loop test if Perl packages are not installed.Alexander Bluhm
2021-05-16add riscv asm for these two security-feature checking regress testsTheo de Raadt
with drahn
2021-05-08Fix a race in the kqueue-read test. If the writer thread managed to fillanton
up the pipe buffer, it will hang in write(2) waiting for the pipe to become writeable again. While doing so, it cannot observe that the kqueue thread as already finished implying that ctx_thread_alive() would return false, meaning no further writes are wanted. Therefore open the pipe in non blocking mode and just ignore EAGAIN errors while writing.
2021-05-07Dynamic socket buffers make tests unreliable, set fixed buffer size.Alexander Bluhm
2021-05-04Create memory pressure in test. Allocate heap and stack in childAlexander Bluhm
processes and threads. Then exit has more work to do.
2021-04-29Extend the fork and exit test with threads. Simultaneously killAlexander Bluhm
30 processes with 30 threads each.
2021-04-28To hunt kernel bugs during exit, terminate processes simultaneously.Alexander Bluhm
Fork 300 children that sleep. Kill them together as process group. Sleeping can optionally be done with individual memory layout by executing sleep(1).
2021-04-14Unify pivot.h; brings powerpc/powerpc64 support to the usr.bin/lastcommMark Kettenis
regress test. ok bluhm@
2021-02-09These regress tests expect coredumps to be written so run them withClaudio Jeker
ulimit -c unlimited. Also simplify the logic a bit as requested by bluhm@. OK bluhm@ deraadt@
2021-02-09These regress test expect coredumps as an effect of the test so runClaudio Jeker
the tests with ulimit -c unlimited to make sure coredumps are written. OK bluhm@ deraadt@
2021-01-21Pledge violation for SO_RTABLE prints "wroute" now. Adapt test.Alexander Bluhm
2021-01-09Test that local UDP broadcast packets to 255.255.255.255 are handledAlexander Bluhm
correctly by socket splicing. They generate an ELOOP error.
2021-01-03Increase file descriptor limit to allow long chains of splicedAlexander Bluhm
sockets in one test process.
2021-01-02Create chains and loops of spliced tcp and udp sockets. Send dataAlexander Bluhm
through them and check that MAXLOOP is triggered in kernel.
2020-12-30py3-scapy is now scapykn
OK bluhm sthen
2020-12-27Ensure that a sufficient part of the remote log file has beenAlexander Bluhm
transferred before the local side greps for the spliced keyword. Fixes a race seen on the arm64 regress machine.
2020-12-26Missed a python2.7, scapy 2, copyright bump in previous scapy 3 commits.Alexander Bluhm
2020-12-25Switch to scapy with python 3.Alexander Bluhm
2020-12-17Fix regress target name, they must be unique.Alexander Bluhm
2020-12-17Remove echo headlines.Alexander Bluhm
2020-12-16Remove echo headlines. Makefile cleanup.Alexander Bluhm
2020-12-16Remove echo headlines. Use consistent target names.Alexander Bluhm
2020-12-16Make test actually fail if something is broken.Alexander Bluhm
Remove echo headlines. Use consistent target names.
2020-11-10Link all regress/sys/kern/ subdirs to build and sort alphabetically.Alexander Bluhm
2020-10-21Fix building the library when invoked with make regress.Alexander Bluhm
OK patrick@
2020-10-20Add arm64 support.Mark Kettenis
ok deraadt@
2020-10-16Implement propper handling for make clean and obj.Alexander Bluhm
2020-09-16Remove tests that are now under signal/Martin Pieuchot
2020-09-16Move sigsuspend test.Martin Pieuchot