| #
3e2245df |
| 17-Dec-2024 |
christos <christos@NetBSD.org> |
PR/58896: Martin Husemann: Demonstrate that a PT_STOPed process could not be PT_KILLed.
|
| #
29fd2137 |
| 07-Dec-2023 |
riastradh <riastradh@NetBSD.org> |
t_setrlimit: Narrow the scope of stack-protector warning suppression.
|
| #
e757b4ce |
| 24-Nov-2023 |
christos <christos@NetBSD.org> |
t_setrlimit uses alloca now
|
| #
832d4752 |
| 08-Aug-2023 |
mrg <mrg@NetBSD.org> |
introduce new GCC 12 warning disables and use them in a few places
this introduces 4 new warning disable flags:
CC_WNO_MISSING_TEMPLATE_KEYWORD CC_WNO_REGISTER CC_WNO_STRINGOP_OVERREAD
introduce new GCC 12 warning disables and use them in a few places
this introduces 4 new warning disable flags:
CC_WNO_MISSING_TEMPLATE_KEYWORD CC_WNO_REGISTER CC_WNO_STRINGOP_OVERREAD CC_WNO_ARRAY_BOUNDS
and documents them in README.warnings. of these, the string op and array bounds are both problematic (real bugs) and also spurious (not real bugs), and the other 2 are mostly temporary for older 3rd party code.
add some new uses of CC_WNO_STRINGOP_OVERFLOW.
fix m68k build for gallium and GCC 12.
show more ...
|
| #
f937c412 |
| 03-Jun-2023 |
lukem <lukem@NetBSD.org> |
bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER
Provide a single variable CC_WNO_ADDRESS_OF_PACKED_MEMBER with options for both clang and gcc, to replace CLANG_NO_ADDR_OF_PACKED_MEMBER CC_N
bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER
Provide a single variable CC_WNO_ADDRESS_OF_PACKED_MEMBER with options for both clang and gcc, to replace CLANG_NO_ADDR_OF_PACKED_MEMBER CC_NO_ADDR_OF_PACKED_MEMBER GCC_NO_ADDR_OF_PACKED_MEMBER
Using the convention CC_compilerflag, where compilerflag is based on the full compiler flag name.
show more ...
|
| #
52acc686 |
| 01-Aug-2022 |
kre <kre@NetBSD.org> |
Provide _GNU_SOURCE for t_clone now that is required to make clone() visible.
|
| #
49a41610 |
| 06-Apr-2022 |
gson <gson@NetBSD.org> |
Add a regression test for PR kern/52239, "Changing protections of already mmap'ed region can fail", based on the test program in the PR.
|
| #
f75cd5d6 |
| 01-Nov-2021 |
hannken <hannken@NetBSD.org> |
Test lib/libc/sys/t_timerfd often fails when run on QEMU because QEMU misses clock interrupts.
Always check values against [ lower, upper ] bounds and use "4 * upper" when run under QEMU.
Now becom
Test lib/libc/sys/t_timerfd often fails when run on QEMU because QEMU misses clock interrupts.
Always check values against [ lower, upper ] bounds and use "4 * upper" when run under QEMU.
Now becomes part of PR kern/43997 "Kernel timer discrepancies".
show more ...
|
| #
e714af64 |
| 19-Sep-2021 |
thorpej <thorpej@NetBSD.org> |
Add native implementations of eventfd(2) and timerfd(2), compatible with the Linux interfaces of the same name.
|
| #
cb93b810 |
| 06-Sep-2020 |
mrg <mrg@NetBSD.org> |
add support for new GCC 9 warnings that may be too much to fix right now. new address-of-packed-member and format-overflow warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd GCC_NO_FORMAT_OVERFLOW v
add support for new GCC 9 warnings that may be too much to fix right now. new address-of-packed-member and format-overflow warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.
apply to a bunch of the tree. mostly, these are real bugs that should be fixed, but in many cases, only by removing the 'packed' attribute from some structure that doesn't really need it. (i looked at many different ones, and while perhaps 60-80% were already properly aligned, it wasn't clear to me that the uses were always coming from sane data vs network alignment, so it doesn't seem safe to remove packed without careful research for each affect struct.) clang already warned (and was not erroring) for many of these cases, but gcc picked up dozens more.
show more ...
|
| #
bdad8b27 |
| 14-Aug-2020 |
riastradh <riastradh@NetBSD.org> |
New system call getrandom() compatible with Linux and others.
Three ways to call:
getrandom(p, n, 0) Blocks at boot until full entropy. Returns up to n
New system call getrandom() compatible with Linux and others.
Three ways to call:
getrandom(p, n, 0) Blocks at boot until full entropy. Returns up to n bytes at p; guarantees up to 256 bytes even if interrupted after blocking. getrandom(0,0,0) serves as an entropy barrier: return only after system has full entropy.
getrandom(p, n, GRND_INSECURE) Never blocks. Guarantees up to 256 bytes even if interrupted. Equivalent to /dev/urandom. Safe only after successful getrandom(...,0), getrandom(...,GRND_RANDOM), or read from /dev/random.
getrandom(p, n, GRND_RANDOM) May block at any time. Returns up to n bytes at p, but no guarantees about how many -- may return as short as 1 byte. Equivalent to /dev/random. Legacy. Provided only for source compatibility with Linux.
Can also use flags|GRND_NONBLOCK to fail with EWOULDBLOCK/EAGAIN without producing any output instead of blocking.
- The combination GRND_INSECURE|GRND_NONBLOCK is the same as GRND_INSECURE, since GRND_INSECURE never blocks anyway.
- The combinations GRND_INSECURE|GRND_RANDOM and GRND_INSECURE|GRND_RANDOM|GRND_NONBLOCK are nonsensical and fail with EINVAL.
As proposed on tech-userlevel, tech-crypto, tech-security, and tech-kern, and subsequently adopted by core (minus the getentropy part of the proposal, because other operating systems and participants in the discussion couldn't come to an agreement about getentropy and blocking semantics):
https://mail-index.netbsd.org/tech-userlevel/2020/05/02/msg012333.html
show more ...
|
| #
07e8492e |
| 17-Jul-2020 |
kamil <kamil@NetBSD.org> |
Add ppoll() a compatibility wrapper around pollts(2)
Submitted by Apurva Nandan.
|
| #
81e05080 |
| 17-Jun-2020 |
rin <rin@NetBSD.org> |
Fix build for vax; Compile t_ptrace_sigchld.c with -D__TEST_FENV.
|
| #
1da5a7c8 |
| 30-Apr-2020 |
ryo <ryo@NetBSD.org> |
Add a test for sigaltstack(2) and SA_ONSTACK
|
| #
276ef223 |
| 26-Apr-2020 |
thorpej <thorpej@NetBSD.org> |
Add a NetBSD native futex implementation, mostly written by riastradh@. Map the COMPAT_LINUX futex calls to the native ones.
|
| #
37baba21 |
| 18-Apr-2020 |
christos <christos@NetBSD.org> |
PR/55177: Carlo Arenas: mremap(MAP_REMAPDUP) fails after fork()
|
| #
fe331b9d |
| 06-Mar-2020 |
kamil <kamil@NetBSD.org> |
Add new ptrace(2) test file
t_ptrace_sigchld - for SIGCHLD handler + ptrace(2).
Right now a single test is enabled (raise(SIGKILL)) and marked as failed as it never finishes as the child is never c
Add new ptrace(2) test file
t_ptrace_sigchld - for SIGCHLD handler + ptrace(2).
Right now a single test is enabled (raise(SIGKILL)) and marked as failed as it never finishes as the child is never collected before exiting the parent uninterested about its child (SA_NOCLDWAIT).
show more ...
|
| #
3e9309ba |
| 01-Mar-2020 |
christos <christos@NetBSD.org> |
fix variable name
|
| #
0dc8cda9 |
| 01-Mar-2020 |
christos <christos@NetBSD.org> |
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 af
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.
show more ...
|
| #
1706a0e6 |
| 22-Feb-2020 |
kamil <kamil@NetBSD.org> |
Disable t_ptrace_wait* tests for MKSANITIZER/MKLIBCSANITIZER
A subset of tests is not compatible with the sanitizers.
|
| #
dba77376 |
| 30-Jun-2019 |
mgorny <mgorny@NetBSD.org> |
Add a test for verifying procinfo note inside coredumps.
Add a first test for triggering a core dump in the debugged process (via PT_DUMPCORE) and verifying it. The test finds procinfo note and che
Add a test for verifying procinfo note inside coredumps.
Add a first test for triggering a core dump in the debugged process (via PT_DUMPCORE) and verifying it. The test finds procinfo note and checks its contents.
The core dump is processed through libelf. However, it only provides for finding all note segments (or sections?). I had to implement finding and processing individual notes myself. I've added a core_find_note() function that will be reused in future tests.
Reviewed by kamil.
show more ...
|
| #
af8d450a |
| 26-Apr-2019 |
maya <maya@NetBSD.org> |
Use LDADD, which apparently puts the libraries at the end of the command, and makes static builds (aka sun2) happier.
|
| #
5e8f5be0 |
| 25-Apr-2019 |
kamil <kamil@NetBSD.org> |
Introduce check for the support of FPU exceptions
If FPU exceptions are unsupported, skip the SIGFPE crash tests.
Reuse code from tests/kernel/h_segv.c
|
| #
5a04cbf3 |
| 10-Feb-2019 |
kamil <kamil@NetBSD.org> |
Link t_ptrace_wait* tests with -pthread
While there, bump (c) for ATF ptrace(2) tests.
Add __used in infinite_thread() for consistency with other functions in the file.
|
| #
a80aa007 |
| 21-Aug-2018 |
christos <christos@NetBSD.org> |
more tests
|