Home | History | Annotate | Download | only in kernel
History log of /src/tests/kernel/Makefile
RevisionDateAuthorComments
 1.96  17-Jul-2025  kre ATF test additions for O_CLOFORK.

These are Ricardo Branco's ATF test modifications for O_CLOFORK
& SOCK_CLOFORK (with some FD_CLOFORK included).

These have all been made able to be built & run in an environment
where O_CLOFORK (etc) are not yet visible to userland.
 1.95  27-Apr-2025  riastradh tests/kernel: New test for setjmp(9)/longjmp(9).

PR port-riscv/59304: kernel longjmp(9) fails to make setjmp(9) return 1
PR port-hppa/59305: kernel longjmp(9) fails to make setjmp(9) return 1
PR port-powerpc/59306: kernel longjmp(9) fails to make setjmp(9) return 1
PR port-sparc/59307: kernel longjmp(9) fails to make setjmp(9) return 1
PR port-vax/59308: kernel longjmp(9) fails to make setjmp(9) return 1
 1.94  27-Apr-2025  riastradh tests/kernel/Makefile: Back out DPSRCS for t_execregs arch helpers.

This time for real -- accidentally backed out the wrong commit last
time:

https://mail-index.netbsd.org/source-changes/2025/04/26/msg156620.html

Doesn't work the way I'd hoped for update builds -- I had tested it
only with a .h file, not with the .S files:

# create kernel//work/src/tests/kernel/arch/arm/execsp.d
CC=/work/tools/bin/arm--netbsdelf-eabi-gcc /work/tools/bin/nbmkdep -f /work/src/tests/kernel/arch/arm/execsp.d.tmp -- --sysroot=/branches/hosts-current/evbearmv5 -D_KERNTYPES -I/work/src/tests/kernel/.. -x assembler-with-cpp /work/src/tests/kernel/arch/arm/execsp.S && mv -f /work/src/tests/kernel/arch/arm/execsp.d.tmp /work/src/tests/kernel/arch/arm/execsp.d
nbmkdep: unable to write to file /work/src/tests/kernel/arch/arm/execsp.d.tmp: Permission denied

PR kern/59084: exec/spawn leaks register content
 1.93  26-Apr-2025  riastradh tests/kernel/Makefile: Back out DPSRCS for t_signal_and_sp helpers.

Doesn't work the way I'd hoped for update builds -- I had tested it
only with a .h file, not with the .S files:

# create kernel//work/src/tests/kernel/arch/arm/execsp.d
CC=/work/tools/bin/arm--netbsdelf-eabi-gcc /work/tools/bin/nbmkdep -f /work/src/tests/kernel/arch/arm/execsp.d.tmp -- --sysroot=/branches/hosts-current/evbearmv5 -D_KERNTYPES -I/work/src/tests/kernel/.. -x assembler-with-cpp /work/src/tests/kernel/arch/arm/execsp.S && mv -f /work/src/tests/kernel/arch/arm/execsp.d.tmp /work/src/tests/kernel/arch/arm/execsp.d

PR kern/59327: user stack pointer is not aligned properly
 1.92  26-Apr-2025  riastradh tests/kernel/Makefile: Add DPSRCS for t_execregs.c parts.

We build it with -DHAVE_EXECREGS_TEST if arch/.../execregs.h exists;
this way if you add it for a new architecture and do an update build,
t_execregs.c will be recompiled with the macro defined so it will
pick up the new stuff automatically.

PR kern/59084: exec/spawn leaks register content
 1.91  26-Apr-2025  riastradh tests/kernel/Makefile: Add DPSRCS for t_signal_and_sp.c parts.

This way if you add, e.g., arch/foo/execsp.S, then t_signal_and_sp.c
will be recompiled with -DHAVE_EXECSP even if you don't make clean.

PR kern/59327: user stack pointer is not aligned properly
 1.90  21-Apr-2025  riastradh t_signal_and_sp: Test makecontext and pthread_create stack alignment.

PR kern/59327: user stack pointer is not aligned properly
 1.89  20-Apr-2025  riastradh t_signal_and_sp: Add mips support.

PR kern/59327: user stack pointer is not aligned properly

PR kern/58149: Cannot return from a signal handler if SP was
misaligned when the signal arrived

Stack pointer misaligment in some cases hypothesized to be a possible
cause of:

PR port-evbmips/59236: Multiple segfaults in erlite3 boot
 1.88  20-Apr-2025  riastradh Test stack pointer alignment in various scenarios.

1. elf entry point
2. main function
3. signal handler

Extend the test to amd64 while here -- fortunately both aarch64 and
amd64 pass, but others, such as mips, will fail:

PR kern/59327: user stack pointer is not aligned properly

This extends the test that was previously written for:

PR kern/58149: aarch64: Cannot return from a signal handler if SP was
misaligned when the signal arrived

With any luck, this will help us to systematically eradicate misaligned
stack pointers as hypothesized to be the reason for:

PR port-mips/59236: Multiple segfaults in erlite3 boot
 1.87  20-Apr-2025  riastradh h_execregs: Properly request to statically link this.

Adding -static to LDFLAGS doesn't work because we end up passing
various other flags that cause it to come out as a dynamic executable
anyway, which would crash on SIGSEGV early at startup -- except that
the entry point exits before calling the normal start routine, so by
accident it works.

PR kern/59084: exec/spawn leaks register content
 1.86  28-Feb-2025  riastradh t_execregs: Test some more registers on hppa.

Looks like we're missing zeroing of floating-point registers too, as
well as the carry/borrow and divide step correction bits in the
semi-secret PSW register.

Unfortunately, while investigating this, I discovered that qemu's
hppa implementation doesn't implement fpu traps even if the fpu is
disabled (relevant bits of CR 10 `CCR', Coprocessor Control Register,
are cleared), which breaks fpu switching on NetBSD. So I can't test
properly this myself. We should maybe just change NetBSD from lazy
fpu switching to eager fpu switching anyway to thwart Spectre-class
attacks if there's any hppa hardware out there that does speculative
execution.

PR kern/59084: exec/spawn leaks register content
 1.85  27-Feb-2025  riastradh Test whether exec/spawn will zero registers.

Currently implemented only for a handful of architectures; should
extend this to all the others, and extend as appropriate if we find
more register content is worth testing (like maybe vector registers,
but they are managed differently anyway and less likely to leak).

VAX test contributed (and tested) by Kalvis Duckmanton, with some
tweaks by me; the others written and tested by me. IA64 skipped,
even though I suspect it _would_ leak if the kernel code ran as is,
because I have no way to test it.

PR kern/59084: exec/spawn leaks register content
 1.84  22-Dec-2024  riastradh t_time_arith: New test for timer calculations.

This will facilitate fixing various problems in the arithmetic to
determine, given an itimer's scheduled time (it_value) and periodic
interval (it_interval) along with the current time of actual expiry
(now), what time the itimer should be rescheduled for (next, new
value of it_timer) on the same clock.

Later we can also put tests for other functions like tvtohz here, and
make them test many different values of hz/tick.

XXX Not 100% sure about all of these cases -- there is some room for
reasonable discussion about what the right answer is. But we have
unquestionably implemented the wrong thing for many of these cases,
even if the answers this test checks for may not be quite right yet.

PR kern/58922: itimer(9): arithmetic overflow
PR kern/58925: itimer(9) responds erratically to clock wound back
PR kern/58926: itimer(9) integer overflow in overrun counting
PR kern/58927: itimer(9): overrun accounting is broken
 1.83  10-Nov-2024  riastradh tests/kernel/t_cloexec: New tests for close-on-exec.

Verified that the following tests fail on a netbsd-10 kernel:

- clonedev_posixspawn
- dup3_posixspawn
- fcntldupfd_posixspawn

PR kern/58822: close-on-exec is broken for dup3 and opening cloning
devices
 1.82  09-Oct-2024  kre Add a test for clock_nanotime() [ PR kern/58733 ]

Add a t_nanosleep test to the kernel tests, to (to a limited extent)
validate its functionality.

Initially this concentrates on the issue from PR kern/58733
where if a process paused in nanosleep() is stopped, and then
continued, and if it is using TIMER_ABSTIME, the call will
return prematurely, but indicating success.

There are (currently) 4 test cases, to test all 4 possibilities
using CLOCK_MONOTONIC and CLOCK_REALTIME (if someone wants to
add any other clocks that make sense, that should be easy) and
TIMER_ABSTIME and TIMER_RELTIME.

Currently both TIMER_ABSTIME tests fail (the TIMER_RELTIME
tests pass). When the kernel bug is fixed, the ABSTIME
tests should be fixed along with it.

These tests are currently somewhat crude, and I'm not sure
how well they will work on a qemu test system (they work as
expected on bare metal).
 1.81  04-Oct-2024  msaitoh tests: Fix build error. Set TESTS_SH correctly.
 1.80  03-Oct-2024  christos new semtimedop(2) test GSoC 2024 (Shivraj Jamgade)
 1.79  09-Aug-2024  bad add tests/kernel/t_umount.c: test case for unmount(2)

demonstrate that failing to umount and async mounted file system causes the
kernel syncer to start flushing dirty buffers for it.

PR kern/58564: async mounts revert to being synced after failed unmount
 1.78  22-Apr-2024  pho branches: 1.78.2;
Add a test for kern/58149

aarch64: Cannot return from a signal handler if SP was misaligned when the signal arrived
 1.77  17-Oct-2023  rjs The t_fdrestart test requires rump.
 1.76  15-Oct-2023  riastradh t_fdrestart: New test of closing fd with another thread in I/O on it.

Adapted from regress/sys/kern/dislodgefd.

PR kern/57659
 1.75  03-Aug-2023  nia Revert addition of epoll to libc until discussion concludes
 1.74  29-Jul-2023  christos Add tests for t_memfd_create and fix bug found by tests
 1.73  28-Jul-2023  christos Add epoll(2) from Theodore Preduta as part of GSoC 2023
 1.72  03-Jun-2023  lukem adapt to ${CC_WNO_FORMAT_TRUNCATION}
 1.71  21-Apr-2023  gutteridge Add new test t_open_pr_57260

New test case that reflects the fix in PR kern/57260. The majority of
work for this case itself was by riastradh@, who'd supplied the basis
for it in the ticket, and provided further guidance.
 1.70  01-Oct-2021  martin branches: 1.70.2;
t_simplehook requires RUMP
 1.69  30-Sep-2021  yamaguchi Added tests for the linear hook APIs
 1.68  01-Jul-2020  jruoho Add basic checks for magic symlink(7)'s. These include a case for PR lib/55361,
although it seems that realpath(3) has bigger problems with these symlinks.
 1.67  25-Jun-2020  jruoho Add a test case for PR kern/52744, which no longer appears to be present.
 1.66  01-Mar-2020  christos Centralize the base rump libraries into a variable used by all the other
Makefiles so that we can make changes to it centrally as needed and have
less mess. Fixes the sun2 build that needs rumpvfs after librump after
the latest changes.
 1.65  11-Feb-2020  riastradh Test that fpu state is preserved by fork.
 1.64  29-Sep-2019  mrg convert HAVE_GCC == 7 to HAVE_GCC >= 7.
 1.63  15-Sep-2019  christos Add tests for fexecve(2)
 1.62  15-Sep-2019  christos Add F_GETPATH, presented to tech-kern.
 1.61  15-Aug-2019  kamil Adapt tests/kernel/t_subr_prf for MKSANITIZER

Allow to rename snprintf-like functions to avoid clashes with a sanitizer.

This tests needs a fixup to remove 'undef symbol' from the test code
generator.
 1.60  07-Jun-2019  christos branches: 1.60.2;
Add a $ORIGIN test
 1.59  01-Jun-2019  kamil Add ATF KERN_PROC_CWD tests
 1.58  04-Feb-2019  mrg - tests explicitly check failure modes, ignore those warnings
 1.57  03-Feb-2019  thorpej Implement support for "pshared" POSIX semaphores.

Fixes lib/53273 (and Firefox's multi-process tab feature).
 1.56  25-Jan-2019  christos PR/53908: Alex Raschi: Test that require modules belong in modules; move the
threadpool test from kernel to modules.
 1.55  24-Dec-2018  thorpej Add threadpool(9), an abstraction that provides shared pools of kernel
threads running at specific priorities, with support for unbound pools
and per-cpu pools.

Written by riastradh@, and based on the May 2014 draft, with a few changes
by me:
- Working on the assumption that a relative few priorities will actually
be used, reduce the memory footprint by using linked lists, rather than
2 large (and mostly empty) tables. The performance impact is essentially
nil, since these lists are consulted only when pools are created (and
destroyed, for DIAGNOSTIC checks), and the lists will have at most 225
entries.
- Make threadpool job object, which the caller must allocate storage for,
really opaque.
- Use typedefs for the threadpool types, to reduce the verbosity of the
API somewhat.
- Fix a bunch of pool / worker thread / job object lifecycle bugs.

Also include an ATF unit test, written by me, that exercises the basics
of the API by loading a kernel module that exposes several sysctls that
allow the ATF test script to create and destroy threadpools, schedule a
basic job, and verify that it ran.

And thus NetBSD 8.99.29 has arrived.
 1.54  11-Nov-2018  riastradh Use feenableexcept to trap fp exceptions, and trigger one, for SIGFPE.

Not every CPU traps integer division by zero -- aarch64, powerpc,
&c., just return zero.
 1.53  14-Mar-2018  kamil branches: 1.53.2;
Add new ATF tests: kernel/t_zombie

New tests attempting to kill, stop, drop or revive a zombie:
- signal1 (SIGKILL)
- signal2 (SIGSTOP)
- signal3 (SIGABRT)
- signal4 (SIGHUP)
- signal5 (SIGCONT)

New test race1 verifying whether there are any kernel races when processing
signals to zombies, executing in a loop for 5 seconds.

These tests were inspired by a kernel unexpected behavior when a lookup
of a dying process could result in two detected entities once as an alive
process and once as a zombie.

race1 is similar to t_ptrace_wait* race1, however without ptrace(2) involved.

Sponsored by <The NetBSD Foundation>
 1.52  14-Dec-2017  nakayama branches: 1.52.2;
Use SCRIPTS instead of PROGS to avoid strip(1) if STRIPFLAG=-s.
 1.51  12-Dec-2017  christos PR/52812: scole_mail: src/tests/kernel/t_timeleft.c doesn't compile with MKRUMP=no
It needs libpthread regardless MKRUMP..
 1.50  10-Dec-2017  christos Add tests to make sure that the program name is what it is supposed to be.
 1.49  08-Dec-2017  christos make _lwp_park return the remaining time to sleep in the "ts" argument
if it is a relative timestamp, as discussed in tech-kern.
XXX: pullup-8
 1.48  07-Dec-2017  christos Add trapsignal tests that make sure that traps don't end up spinning
indefinitely, discussed in tech-kern.
 1.47  06-Dec-2017  christos add a test to check that the interpreter is preserved when executing scripts.
 1.46  03-Apr-2017  kamil Remove tests/kernel/t_ptrace* from the tree

ptrace(2) tests have been moved to tests/lib/libc/sys

Sponsored by <The NetBSD Foundation>
 1.45  02-Apr-2017  kamil Remove kernel/arch/{amd64,i386,x86} tests

These files were merged with kernel/t_ptrace_wait*

This removes MD test files.

Sponsored by <The NetBSD Foundation>
 1.44  14-Dec-2016  kamil branches: 1.44.2;
Define -D_KERNTYPES in CPPFLAGS unconditionally to fix MKRUMP=no build

Reported by Robert Swindells

Sponsored by <The NetBSD Foundation>
 1.43  02-Dec-2016  kamil Refactor location of amd64-specific ATF tests to new dir kernel/arch/amd64

Rename
- tests/kernel/t_ptrace_amd64_wait.c
to
- tests/kernel/arch/amd64/t_ptrace_wait.c
and adapt appropriate files accordingly.

New directory will be used for more amd64-specific tests, verifying the
MD parts of the kernel.

Remove old entries from distrib/sets/lists as they were added a while ago.

Sponsored by <The NetBSD Foundation>
 1.42  01-Dec-2016  kamil Add new test file t_ptrace_amd64_wait.c and refactor t_ptrace_*wait* tests

Clone t_ptrace_wait.c to t_ptrace_amd64_wait.c and put common parts to
t_ptrace_wait.h.

The t_ptrace_amd64_wait.c file is dedicated to hold amd64-specific tests
for the ptrace(2) interface.

Add new basic test dbreg1 in t_ptrace_amd64_wait{,3,4,6,id,pid}:
Verify plain PT_GETDBREGS with printing Debug Registers

Fix evbarm64-aarch64 issue pointed by <christos>, kill1 and kill2 tests
must be defined without PT_STEP guards.

Sponsored by <The NetBSD Foundation>
 1.41  07-Nov-2016  kamil Add new tests for combination of wait(2) interfaces with ptrace(2)

Move out wait(2) specific tests from t_ptrace and put them to t_ptrace_wait

Add generic code fragments to reuse the same source-code for every member
of the wait(2) family, namely:
- wait(2)
- waitpid(2)
- waitid(2)
- wait3(2)
- wait4(2)
- wait6(2)

Currently in the new test-suite there are the following tests:
- traceme1
- traceme2
- traceme3
- traceme4
- attach1

Not all tests are possible to be executed against every wait(2)-like
interface, therefore they will be disabled in such case. Currently this
limits attach1 to waitpid(2), waitid(2), wait4(2), wait6(2), while the
other tests (traceme 1-4) run with all of the interfaces.

The construct of this file is dedicated for addition of new tests in the
close future.

As of now all of the tests pass correctly.

Thanks for Robert Elz for suggestions on improving the code (earlier draft
of this new form).

Sponsored by <The NetBSD Foundation>.
 1.40  02-Nov-2016  kamil Add new test t_ptrace with traceme1

This test is a placeholder for further checks of the native ptrace(2)
function calls.

XXX: Is it safe to call ATF functions from a child? FreeBSD seems to
construct dedicated asserts for them.

XXX: printf(3) calls from a child are not intercepted by atf-run(1)

Sponsored by <The NetBSD Foundation>.
 1.39  15-Feb-2016  christos branches: 1.39.2;
This needs _KERNTYPES on some platforms.
 1.38  23-Jan-2016  christos Define _KERNTYPES for things that need it.
 1.37  22-Jun-2015  matt Don't build tests that depend on RUMP if BSD_MK_COMPAT_FILE is defined.
 1.36  10-Aug-2014  tls Merge tls-earlyentropy branch into HEAD.
 1.35  09-Aug-2014  gson Test that reading a CTLTYPE_INT sysctl variable into a buffer that is
too small returns ENOMEM, and that reading it into a buffer that is
large enough returns the expected sizeof(int) bytes of data.
 1.34  10-Jun-2014  he Fix static linking for the tests: -lrump is also used by -lrumpuser,
so we also need -lrump after -lrumpuser. Fixes build for sun2.
 1.33  16-Apr-2013  mlelstv branches: 1.33.4;
First attempt at stress testing umount of a busy disk.
 1.32  28-Feb-2013  martin Add a testprogram for PR 47598.
 1.31  07-Nov-2012  pgoyette Add missing '+' so we include t_lock as well as t_lockf and others.

Should fix the build break.
 1.30  07-Nov-2012  pgoyette Add ATF version of the file locking test
 1.29  07-Nov-2012  nakayama Fix MKRUMP=no build.
librt is unrelated to rump.
 1.28  05-Nov-2012  pgoyette Convert to ATF format the old src/regress/ style tests for Sys V IPC
 1.27  03-Nov-2012  pgoyette Convert the old src/regress/mqueue test to ATF
 1.26  08-Aug-2012  christos branches: 1.26.2;
Exclude tests that use rump
 1.25  17-Mar-2012  jruoho Move the _lwp_ctl(2) preemption counter check to the right place.
 1.24  13-Feb-2012  martin Move posix_spawn tests to lib/libc/gen/posix_spawn - they test both libc
and kernel, but that is an implementation detail unrelated to the tests
themselfs.
Ok: releng
 1.23  11-Feb-2012  martin Add userland part of posix_spawn. Libc functions imported from FreeBSD.
Based on Charles Zhang's summer of code project.
 1.22  24-Nov-2011  christos Add a test for the kernel snprintf.
 1.21  15-Oct-2011  jruoho branches: 1.21.2;
Move the sigaction(2) test to the right place.
 1.20  15-Oct-2011  jruoho Move the ucontext(2) test to the right place.
 1.19  15-Oct-2011  jruoho Move the writev(2) test to the right place.
 1.18  15-Oct-2011  jruoho Move the clock_gettime(2) timer test to the right place.
 1.17  15-Oct-2011  jruoho Follow the design principles of tests(7) by merging 't_poll3w' to 't_poll'
as a test case instead of separate file.
 1.16  15-Oct-2011  jruoho Move the mkdir(2) test to the right place.
 1.15  15-Oct-2011  jruoho Move the pipe(2) test to the right place.
 1.14  15-Oct-2011  jruoho Move the posix_fadvise(2) test to the right place.
 1.13  24-Sep-2011  christos Add a pty test, written by Matthew Mondor
 1.12  28-May-2011  tron Move regression test for PR kern/44986 from "kernel" to "syscalls" as
the later directory seems to be a better fit.
 1.11  28-May-2011  tron Add two test cases for pollts(2):
- The first tests basic functionality e.g. timeouts and correct events.
- The second tests whether pollts(2) correctly restores the signal mask.
This test currently fails because of PR kern/44986.
 1.10  05-Mar-2011  pgoyette Add tests for verifying the recent changes to ps_strings

From joerg@ with atf-ification from myself.
 1.9  11-Nov-2010  pooka add necessary libs for t_posix_fadvise
 1.8  02-Aug-2010  pooka test case for PR kern/43694
 1.7  14-Jul-2010  jmmv Add a couple of simple tests for sigaction(2): one for the case where flags
is set to 0 and the other for the case where we set SA_RESETHAND.

The latter test is intended to expose PR port-macppc/43619 and is marked as
an expected failure on such platform.
 1.6  13-Jul-2010  jmmv Get rid of static Atffiles and let bsd.test.mk generate them on the fly.
 1.5  28-Jun-2010  pooka xfail test for kernel panicky in PR kern/40688
 1.4  21-May-2010  pooka test extattrctl kernel panic (kern/43328)
 1.3  08-Dec-2009  uebayasi CPPFLAGS.* is per *.c, not per ${PROG} or ${LIB}.
 1.2  08-Sep-2009  pooka Add test case for PR kern/42020:

t_rnd (1/1): 1 test cases
RNDADDDATA: Failed: Test case did not exit cleanly: Abort trap (core dumped)

Failed test cases:
t_rnd:RNDADDDATA
 1.1  20-Feb-2009  jmmv branches: 1.1.2;
Add the kernel-level tests developed by Lukasz Strzygowski as part of the
atfify GSoC 2008 project.
 1.1.2.2  13-May-2009  jym Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
 1.1.2.1  20-Feb-2009  jym file Makefile was added on branch jym-xensuspend on 2009-05-13 19:19:33 +0000
 1.21.2.4  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.21.2.3  16-Jan-2013  yamt sync with (a bit old) head
 1.21.2.2  30-Oct-2012  yamt sync with head
 1.21.2.1  17-Apr-2012  yamt sync with head
 1.26.2.3  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.26.2.2  23-Jun-2013  tls resync from head
 1.26.2.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.33.4.2  10-Aug-2014  tls Rebase.
 1.33.4.1  07-Apr-2014  tls Fix t_subr_prf.c -- such as is possible. I am not so sure about the idea of
tearing apart a source file with a script in order to "test" pieces of it...
 1.39.2.3  26-Apr-2017  pgoyette Sync with HEAD
 1.39.2.2  07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.39.2.1  04-Nov-2016  pgoyette Sync with HEAD
 1.44.2.1  21-Apr-2017  bouyer Sync with HEAD
 1.52.2.4  26-Jan-2019  pgoyette Sync with HEAD
 1.52.2.3  26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts
 1.52.2.2  26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.52.2.1  15-Mar-2018  pgoyette Synch with HEAD
 1.53.2.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.53.2.1  10-Jun-2019  christos Sync with HEAD
 1.60.2.2  18-Nov-2024  martin Pull up following revision(s) (requested by 1922):

tests/kernel/Makefile: revision 1.83
sys/sys/filedesc.h: revision 1.71
distrib/sets/lists/tests/mi: revision 1.1346
tests/kernel/h_cloexec.c: revision 1.1
tests/kernel/t_cloexec.c: revision 1.1
sys/compat/netbsd32/netbsd32_ioctl.c: revision 1.122
distrib/sets/lists/debug/mi: revision 1.454

tests/kernel/t_cloexec: New tests for close-on-exec.

Verified that the following tests fail on a netbsd-10 kernel:
- clonedev_posixspawn
- dup3_posixspawn
- fcntldupfd_posixspawn

PR kern/58822: close-on-exec is broken for dup3 and opening cloning
devices
sys/filedesc.h: Add a note about writing to ff_exclose.
No functional change intended -- just a reminder to avoid repeating a
class of bugs we've had.

PR kern/58822: close-on-exec is broken for dup3 and opening cloning
devices

netbsd32_ioctl: Use fd_set_exclose instead of open-coding it.
No functional change intended -- this just reduces unnecessary
copies of open-coded logic which, when copied incompletely, led to:

PR kern/58822: close-on-exec is broken for dup3 and opening cloning
devices
 1.60.2.1  16-Aug-2019  martin Pull up following revision(s) (requested by kamil in ticket #71):

tests/kernel/Makefile: revision 1.61

Adapt tests/kernel/t_subr_prf for MKSANITIZER

Allow to rename snprintf-like functions to avoid clashes with a sanitizer.

This tests needs a fixup to remove 'undef symbol' from the test code
generator.
 1.70.2.1  17-Nov-2024  martin Pull up following revision(s) (requested by riastradh in ticket #1007):

tests/kernel/Makefile: revision 1.83
sys/sys/filedesc.h: revision 1.71
distrib/sets/lists/tests/mi: revision 1.1346
tests/kernel/h_cloexec.c: revision 1.1
tests/kernel/t_cloexec.c: revision 1.1
sys/compat/netbsd32/netbsd32_ioctl.c: revision 1.122
distrib/sets/lists/debug/mi: revision 1.454

tests/kernel/t_cloexec: New tests for close-on-exec.
Verified that the following tests fail on a netbsd-10 kernel:
- clonedev_posixspawn
- dup3_posixspawn
- fcntldupfd_posixspawn
PR kern/58822: close-on-exec is broken for dup3 and opening cloning
devices


sys/filedesc.h: Add a note about writing to ff_exclose.
No functional change intended -- just a reminder to avoid repeating a
class of bugs we've had.
PR kern/58822: close-on-exec is broken for dup3 and opening cloning
devices


netbsd32_ioctl: Use fd_set_exclose instead of open-coding it.
No functional change intended -- this just reduces unnecessary
copies of open-coded logic which, when copied incompletely, led to:
PR kern/58822: close-on-exec is broken for dup3 and opening cloning
devices
 1.78.2.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed