| #
0d283a3a |
| 27-Aug-2024 |
riastradh <riastradh@NetBSD.org> |
arc4random(3): Add automatic tests.
This verifies that: - arc4random zeroes its state and reseeds itself on fork - arc4random reseeds itself on entropy consolidation (e.g., VM clone) - arc4random fa
arc4random(3): Add automatic tests.
This verifies that: - arc4random zeroes its state and reseeds itself on fork - arc4random reseeds itself on entropy consolidation (e.g., VM clone) - arc4random falls back to global state if it can't allocate local state because address space limits cause mmap to fail
NOTE: This adds a new libc symbol __arc4random_global, but it's in the reserved namespace and only used by t_arc4random, so no libc minor bump.
PR kern/58632: getentropy(2) and arc4random(3) do not reseed on VM fork
show more ...
|
| #
2b5e567d |
| 31-May-2022 |
riastradh <riastradh@NetBSD.org> |
libc: Reintroduce getentropy.
This was introduced two years ago when the getrandom/getentropy API question was still open, and removed because the discussion was ongoing. Now getentropy is more wid
libc: Reintroduce getentropy.
This was introduced two years ago when the getrandom/getentropy API question was still open, and removed because the discussion was ongoing. Now getentropy is more widely adopted and soon to be in POSIX. So reintroduce the symbol into libc since we'll be keeping it anyway. Discussion of details of the semantics, as interpreted by NetBSD, is ongoing, but the symbol needs to get in before the netbsd-10 branch. The draft POSIX text is (https://www.opengroup.org/austin/docs/austin_1110.pdf):
SYNOPSIS #include <unistd.h>
int getentropy(void *buffer, size_t length);
DESCRIPTION The getentropy() function shall write length bytes of data starting at the location pointed to by buffer. The output shall be unpredictable high quality random data, generated by a cryptographically secure pseudo-random number generator. The maximum permitted value for the length argument is given by the {GETENTROPY_MAX} symbolic constant defined in <limits.h>.
RETURN VALUES Upon successful completion, getentropy() shall return 0; otherwise, -1 shall be retunred and errno set to indicate the error.
ERRORS The getentropy() function shall fail if:
[EINVAL] The value of length is greater than {GETENTROPY_MAX}.
The getentropy() function may fail if:
[ENOSYS] The system does not provide the necessary source of entropy.
RATIONALE The getentropy() function is not a cancellation point.
Minor changes from the previous introduction of getentropy into libc:
- Return EINVAL, not EIO, on buflen > 256. - Define GETENTROPY_MAX in limits.h.
The declaration of getentropy in unistd.h and definition of GETENTROPY_MAX in limits.h are currently conditional on _NETBSD_SOURCE. When the next revision of POSIX is finalized, we can expose them also under _POSIX_C_SOURCE > 20yymmL as usual -- and this can be done as a pullup without breaking existing compiled programs.
show more ...
|
| #
3735bb21 |
| 22-Feb-2020 |
kamil <kamil@NetBSD.org> |
Update t_siginfo.c build rules
Add logic for MKSANITIZER/MKLIBCSANITIZER checks.
|
| #
d7ada1c9 |
| 26-Apr-2019 |
maya <maya@NetBSD.org> |
-frounding-math is gcc specific, help clang builds
|
| #
48997350 |
| 24-Apr-2019 |
christos <christos@NetBSD.org> |
PR/54000: Andreag Gustafsson: Compile the rounding test with -fround-math since with gcc-7, the default mode ignores fenv settings (the same effect can be achieved with -O0 :-)
https://gcc.gnu.org/w
PR/54000: Andreag Gustafsson: Compile the rounding test with -fround-math since with gcc-7, the default mode ignores fenv settings (the same effect can be achieved with -O0 :-)
https://gcc.gnu.org/wiki/FloatingPointMath
show more ...
|
| #
5b7d8aad |
| 09-Feb-2017 |
christos <christos@NetBSD.org> |
remove exect, it will not be fixed and it will be removed.
|
| #
5e8d31ff |
| 09-Dec-2016 |
kamil <kamil@NetBSD.org> |
Attach t_exect to ATF tests and distribution
Add missing SIGTRAP handler. Assert there that the signal is SIGTRAP as expected and si_code TRAP_TRACE.
This test will break on some ports that have du
Attach t_exect to ATF tests and distribution
Add missing SIGTRAP handler. Assert there that the signal is SIGTRAP as expected and si_code TRAP_TRACE.
This test will break on some ports that have dummy or incomplete implementation of exect(2).
This test works on amd64 correctly.
Sponsored by <The NetBSD Foundation>
show more ...
|
| #
7303bfa7 |
| 22-Dec-2015 |
christos <christos@NetBSD.org> |
Add __TEST_FENV
|
| #
25e32ca7 |
| 22-Dec-2015 |
christos <christos@NetBSD.org> |
Put have fenv elsewhere.
|
| #
5e889310 |
| 22-Dec-2015 |
martin <martin@NetBSD.org> |
Sync list of fenv enabled architectures again (PR 48633), this time for mips addition.
|
| #
b66d9858 |
| 21-Dec-2015 |
martin <martin@NetBSD.org> |
While PR 48633 is not properly fixed, keep the additional lists of fenv-enabled architectures in sync.
|
| #
8827b899 |
| 08-Jul-2015 |
matt <matt@NetBSD.org> |
Build t_fpgetmask/t_fpgetround for aarch64 since they are now in libc
|
| #
619d31d6 |
| 27-Dec-2014 |
martin <martin@NetBSD.org> |
Enable fenv for arm
|
| #
e2043274 |
| 10-Aug-2014 |
martin <martin@NetBSD.org> |
Do not set HAVE_FENV for arm as long as it misses feenableexcept().
|
| #
41f262a0 |
| 10-Aug-2014 |
martin <martin@NetBSD.org> |
Use the same condition for HAVE_FENV
|
| #
547b3a3b |
| 10-Aug-2014 |
matt <matt@NetBSD.org> |
Changes to existing files to enable building AARCH64 userland. evbarm64-el This is clang only. While gcc4.8 supports aarch64, no netbsd support has been written for aarch64 with gcc4.8.
|
| #
413d532b |
| 29-Apr-2014 |
uebayasi <uebayasi@NetBSD.org> |
Minimal execve(2) ATF test.
|
| #
048981b5 |
| 30-Jan-2014 |
joerg <joerg@NetBSD.org> |
Add test for uint64 to real long double conversion.
|
| #
82f50f62 |
| 08-Nov-2012 |
pgoyette <pgoyette@NetBSD.org> |
Convert old src/regress/timer&waiter tests to ATF
|
| #
d2c07527 |
| 13-Apr-2012 |
njoly <njoly@NetBSD.org> |
Do not re-add -mieee option on alpha, it's already set by default.
|
| #
e626461e |
| 18-Mar-2012 |
jruoho <jruoho@NetBSD.org> |
Add a case for PR lib/41558. It is unclear whether this is a bug, but at least it is documented now. Probably it would be better to follow Linux, where the test case does not fail.
|
| #
6aa27f04 |
| 17-Mar-2012 |
jruoho <jruoho@NetBSD.org> |
Add few basic tests for realpath(3).
|
| #
0ce98f42 |
| 13-Feb-2012 |
martin <martin@NetBSD.org> |
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
|
| #
945d534b |
| 08-Nov-2011 |
jruoho <jruoho@NetBSD.org> |
Few naive checks for cpuset(3) and ftok(3).
|
| #
06b5587b |
| 05-Nov-2011 |
jruoho <jruoho@NetBSD.org> |
Few naive checks for time(3).
|