mirror_ubuntu-kernels/tools/testing/selftests/vDSO
Jason A. Donenfeld 4920a2590e selftests/vDSO: add tests for vgetrandom
This adds two tests for vgetrandom. The first one, vdso_test_chacha,
simply checks that the assembly implementation of chacha20 matches that
of libsodium, a basic sanity check that should catch most errors. The
second, vdso_test_getrandom, is a full "libc-like" implementation of the
userspace side of vgetrandom() support. It's meant to be used also as
example code for libcs that might be integrating this.

Cc: linux-kselftest@vger.kernel.org
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2024-07-19 20:22:12 +02:00
..
.gitignore selftests/vDSO: add tests for vgetrandom 2024-07-19 20:22:12 +02:00
Makefile selftests/vDSO: add tests for vgetrandom 2024-07-19 20:22:12 +02:00
parse_vdso.c selftests/vDSO: fix clang build errors and warnings 2024-07-05 14:12:23 -06:00
parse_vdso.h selftests: vdso: Use a header file to prototype parse_vdso API 2020-05-22 11:04:10 -06:00
vdso_config.h selftests/vDSO: fix building errors on LoongArch 2024-05-05 17:28:07 -07:00
vdso_standalone_test_x86.c selftests/vDSO: fix clang build errors and warnings 2024-07-05 14:12:23 -06:00
vdso_test_abi.c kselftest/vDSO: Use ksft_print_msg() rather than printf in vdso_test_abi 2023-11-30 14:50:09 -07:00
vdso_test_chacha.c selftests/vDSO: add tests for vgetrandom 2024-07-19 20:22:12 +02:00
vdso_test_clock_getres.c kselftest: vDSO: Fix accumulation of uninitialized ret when CLOCK_REALTIME is undefined 2023-06-12 16:39:10 -06:00
vdso_test_correctness.c selftests/vDSO: fix array_size.cocci warning 2022-04-04 13:27:11 -06:00
vdso_test_getcpu.c selftests/vDSO: fix runtime errors on LoongArch 2024-05-05 17:28:07 -07:00
vdso_test_getrandom.c selftests/vDSO: add tests for vgetrandom 2024-07-19 20:22:12 +02:00
vdso_test_gettimeofday.c selftests/vDSO: fix runtime errors on LoongArch 2024-05-05 17:28:07 -07:00