summaryrefslogtreecommitdiff
path: root/regress/sys
AgeCommit message (Collapse)Author
2023-02-07switch to new simplified disklabel template format.Kenneth R Westerback
ok kn@
2023-01-22Cope with xonly on amd64 by moving the testfly routine to the rodataAnton Lindqvist
section.
2023-01-18Add xonly tests, initially written by deraadt@. Tweaked by me to fit andAnton Lindqvist
the regress framework and allowing the expected outcome to be enumerated per architecture. Currently limited to amd64 and arm64.
2023-01-11make REGRESS_CLEANUP consistent with REGRESS_CLEANUP foundAlexandr Nedvedicky
in pf_state/Makefile. discussed with anton@ OK anton@
2023-01-10purge unhooked wx_syscall filesAnton Lindqvist
2023-01-10Retire wx_syscall regress tests, they have been failing since theAnton Lindqvist
introduction of mimmutable(2) and also needs to cope with xonly on some architectures by now. There's already the syscallwx target in regress/usr.bin/lastcomm which does the same thing but also ensures that the expected code path is reached by looking at accounting records.
2023-01-09Whoa, that clean target is insane. If someone does a make build,Theo de Raadt
pf gets disabled. Comment it out, that will need to be rethought.
2023-01-09yet another set of regression tests for pf(4). Unlike testsAlexandr Nedvedicky
found in pf_forward the tests in pf_policy use local bound traffic to provide simple testing of various pf features. The initial commit brings few tests using icmp echo to test anchor rules. anton@ helped a lot to improve pf_policy/Makefile OK anton@
2023-01-08Due to xonly on arm64 it is no longer possible to read the testfly routine.Anton Lindqvist
Put it in the rodata section allowing it to be copied. Note that testfly is never executed directly but only after placing it in a separate chunk of memory allowing its permissions to be mutated.
2022-12-06Correct previous, must exit 0 to signal failure.Anton Lindqvist
2022-12-05Treat all possible mprotect() failures as fatal.Anton Lindqvist
2022-12-04Print skipped while running on anything other than i386.Anton Lindqvist
2022-11-27reformat REGRESS_TARGETSAnton Lindqvist
2022-11-27Applying mimmutable(2) to bss, data and text made the sys/kern/noexec tests failAnton Lindqvist
since they try to mutate the permissions of the aforementioned sections which is no longer possible. Instead, "mimic" the sections by allocating and operating on memory with the same initial permissions. With help from deraadt@
2022-11-23Remove unused struct ifnet's *if_afdata[] and struct domain's ↵Klemens Nanni
dom_if{at,de}tach() Both made obsolete through struct ifnet's previous *if_nd addition. IPv6 Neighbour Discovery handles per-interface data directly, nothing else uses this generic domain API anymore. Outside of _KERNEL, but nothing in base uses them, either. OK bluhm mvs claudio
2022-10-28Fix indent botch; noticed by kettenis@Miod Vallat
2022-10-25Make the floating-point computations a sligthly teeny bit more complex (butMiod Vallat
real), to prevent llvm panzers from optimizing too aggressively and generating code which does not touch the slightest floating point register on some platforms. ok otto@
2022-10-22Add regress for powerpc* AltiVec with subnormal floatsGeorge Koehler
Older CPUs do an AltiVec assist trap, EXC_VECAST_G4 or EXC_VECAST_G5 in /sys/arch/powerpc/powerpc/trap.c; newer CPUs (like POWER9) don't trap. The trap's emulation of subnormal floats should give almost the same results as the POWER9. This test is only for powerpc or powerpc64 with AltiVec. anton@ explained how to skip the test if we're on the wrong arch or don't have AltiVec. ok anton@
2022-10-11Run noexec tests in a new thread, leveraging the fact thatAnton Lindqvist
pthread_create() allocates a new stack which has mutable permissions. Allows the temporary expected failures to be dropped. ok deraadt@
2022-10-10two tests are now expected to fail since the introduction of mimmutableAnton Lindqvist
2022-09-17bind/connect is now expected to succeedSebastian Benoit
2022-09-05Add minimal tooling for separating tests into dedicated programs.Anton Lindqvist
Used to flag the newly added test_bind_unix_socket() as expected to fail.
2022-09-04Make unveil tests less chatty when things work as expected.Anton Lindqvist
2022-09-03Provide PCKBC_AUX to fix compilationTheo Buehler
from mlarkin
2022-09-01add checks that unveil() is doing the right thing irt. bind() and connect()Sebastian Benoit
2022-08-13blist: fix a possible blist corruption with blist_alloc() due to unsignedSebastien Marie
swblk_t on OpenBSD. reorder if condition in blst_meta_alloc(), in order to check if the node is 'Terminator' node first (and leave the loop). DragonFlyBSD is unaffected by it as swblk_t is signed (and the first condition isn't taken). add a regress test for it. while here, more the KASSERT() to KDASSERT(). it is useful but only with DEBUG. ok miod@ todd@
2022-08-06blist: use swblk_t type (defined in sys/blist.h)Sebastien Marie
reduce the diff with DragonFlyBSD by using swblk_t and u_swblk_t types. while here, move bitmap type (u_swblk_t) to u_int64_t on all archs. it makes the regress the same on 64 and 32bits archs (and it success on both). ok mpi@
2022-07-29Replace the swap extent(9) usage by a blist data structure.Sebastien Marie
It makes uvm_swap_free() faster: extents have a cost of O(n*n) which doesn't really scale with gigabytes of swap. Based on initial work from mpi@ The blist implementation comes from DragonFlyBSD. The diff adds also a ddb(4) 'show swap' command to show the blist and help debugging, and fix some off-by-one in size printed during hibernate. ok mpi@
2022-07-26Don't use echo "<blah>" | fdisk -e to create boot partition.Kenneth R Westerback
Use -b like the install scripts do. Spotted by anton@.
2022-06-29cope with rtentry refcnt changesAnton Lindqvist
2022-06-28Use refcnt API for struct rtentry instead of hand-crafted atomicAlexander Bluhm
operations. OK mvs@
2022-06-01Add a regress test for the end of lock range ambiguity bug.Visa Hankala
2022-05-31The pflow regression test could fail due to a race where the close(2)mbuhl
call of the receiver was called before the FIN on the sender was processed. OK bluhm@ OK anton@
2022-05-16The pf IPv4 option and IPv6 extension header filter has stricterAlexander Bluhm
checks for IGMP and ICMP6 MLD packets. Use ttl, hlim, link-local, and multicast features in test where necessary.
2022-04-29Send IP options with maximum length to check for overflow.Alexander Bluhm
2022-04-29Cleanup makefile so that tests are similar. Link pair to build.Alexander Bluhm
2022-04-29Link pf_opts to the tree.Alexander Bluhm
2022-04-29Check that IGMP and ICMP6 MLD packets with router alert option pass.Alexander Bluhm
Other combinations with IP options are still blocked.
2022-04-28Use $(( )) arithmetic expansion instead of `expr something`Jeremie Courreges-Anglas
No need to use an external tool when the shell can handle this basic task.
2022-04-28Environment variables must be passed through env(1) while using sudo.Anton Lindqvist
ok bluhm@
2022-04-27Send packets with IPv4 option or IPv6 extension header over loopbackAlexander Bluhm
interface and check which of the packets are dropped by pf. The bad packets appear in pflog0 tcpdump. This regress is testing rules with and without allow-opts.
2022-04-28Get rid of set but not used compiler warning.Anton Lindqvist
2022-04-27Send packets with IPv4 option or IPv6 extension header over loopbackAlexander Bluhm
interface and check which of the packets are dropped by pf. The bad packets appear in pflog0 tcpdump. This regress is testing rules with and without allow-opts.
2022-04-27Add test case capable of triggering the recently fixed use after free,Anton Lindqvist
based on the syzkaller reproducer.
2022-04-21In vmm regress skip all corner cases that do not support vmm. LinkAlexander Bluhm
dump_tables and vmm to the build. Adopt all makefiles to skip tests on non amd64 machines. OK dv@
2022-04-20Add vmm(4) regress, disabled for now. ok rob@Dave Voutila
2022-04-19Add dummy implementation for rt_timer_init(). Kernel sources areAlexander Bluhm
build for regress and need that function now.
2022-04-10Print the strerror of the expected error. errno is not valid here sinceClaudio Jeker
bind(2) succeeded.
2022-03-30Flag the kq-tun regress test as skipped as opposed of only mentioning itAnton Lindqvist
in a comment. Allows my own regress runner (and bluhm's) to highlight kqueue as having skipped tests. While here, get rid of redundant usage of phony.
2022-03-29Of the enabled tests only kq-pty-1 needs root, so reduceTheo Buehler
REGRESS_ROOT_TARGTES and remove ${SUDO} from kq-pty-2. kq-tun also needs root, but it isn't run. discussed with and ok millert