| abb212fe | 16-Nov-2021 |
John Baldwin <[email protected]> |
ktls tests: Check the return values of close().
Suggested by: markj Reviewed by: markj Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D33004
(cherry picked from commit 694
ktls tests: Check the return values of close().
Suggested by: markj Reviewed by: markj Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D33004
(cherry picked from commit 694c708d6a0d00f84fa53357a1cc8a72272a26e3)
show more ...
|
| b2d704ea | 16-Nov-2021 |
John Baldwin <[email protected]> |
ktls: Use ATF_REQUIRE instead of assert() for validating TLS header lengths.
The TLS header length field is set by the kernel, so if it is incorrect that is an indication of a kernel bug, not an int
ktls: Use ATF_REQUIRE instead of assert() for validating TLS header lengths.
The TLS header length field is set by the kernel, so if it is incorrect that is an indication of a kernel bug, not an internal error in the tests.
Prompted by: markj (comment in an earlier review) Reviewed by: markj Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D33003
(cherry picked from commit d71830cdf0df6dbc4bd3332daa95d9ecd7d64060)
show more ...
|
| 6987f78e | 15-Nov-2021 |
John Baldwin <[email protected]> |
ktls: Add tests ensuring unsupported receive cipher suites are rejected.
Reviewed by: markj Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D32982
(cherry picked from commi
ktls: Add tests ensuring unsupported receive cipher suites are rejected.
Reviewed by: markj Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D32982
(cherry picked from commit 83a54b582f89ff63f9076eb7d50b5cdbd009905f)
show more ...
|
| e91446cd | 15-Nov-2021 |
John Baldwin <[email protected]> |
ktls: Add tests ensuring invalid receive cipher suites are rejected.
Reviewed by: markj Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D32981
(cherry picked from commit 23
ktls: Add tests ensuring invalid receive cipher suites are rejected.
Reviewed by: markj Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D32981
(cherry picked from commit 233ce578a424a7a3e5cf21ea6ba2b2036950d54f)
show more ...
|
| 38b44748 | 15-Nov-2021 |
John Baldwin <[email protected]> |
ktls: Add simple receive tests of kernel TLS.
Similar to the simple transmit tests added in a10482ea7476d68d1ab028145ae6d97cef747b49, these tests test the kernel TLS functionality directly by manual
ktls: Add simple receive tests of kernel TLS.
Similar to the simple transmit tests added in a10482ea7476d68d1ab028145ae6d97cef747b49, these tests test the kernel TLS functionality directly by manually encrypting TLS records using randomly generated keys and writing them to a socket to be processed by the kernel.
Reviewed by: markj Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D32980
(cherry picked from commit 3e7f8a8da254cfa97af90c3aae1cb827da55fc9d)
show more ...
|
| 27d29db0 | 15-Nov-2021 |
John Baldwin <[email protected]> |
ktls: Add tests for sending empty fragments for TLS 1.0 connections.
Reviewed by: markj Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D32841
(cherry picked from commit 0f
ktls: Add tests for sending empty fragments for TLS 1.0 connections.
Reviewed by: markj Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D32841
(cherry picked from commit 0ff2a12ae32a3a88be63f4036599c1324ce04f78)
show more ...
|
| 9b6f4b35 | 15-Nov-2021 |
John Baldwin <[email protected]> |
ktls: Add padding tests for AES-CBC MTE cipher suites.
For each AES-CBC MTE cipher suite, test sending records with 1 to 16 bytes of payload. This ensures that all of the potential padding values a
ktls: Add padding tests for AES-CBC MTE cipher suites.
For each AES-CBC MTE cipher suite, test sending records with 1 to 16 bytes of payload. This ensures that all of the potential padding values are covered.
Reviewed by: markj Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D32840
(cherry picked from commit 44265dc3dae1d373f33f474244b5c9811471080b)
show more ...
|
| 64ecbc0c | 08-Nov-2021 |
Ed Maste <[email protected]> |
tests: do not build ktls_test if WITHOUT_OPENSSL
ktls_test requires libcrypto to build, and fails if it is not available (which is the case when building WITHOUT_OPENSSL).
Reported by: Michael Dext
tests: do not build ktls_test if WITHOUT_OPENSSL
ktls_test requires libcrypto to build, and fails if it is not available (which is the case when building WITHOUT_OPENSSL).
Reported by: Michael Dexter, Build Option Survey Reviewed by: jhb Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D32895
(cherry picked from commit e818178e3a597922ce77bee874e441a1b7df0099)
show more ...
|
| 4ee7ac8d | 03-Feb-2021 |
Alex Richardson <[email protected]> |
Fix build with read-only source dir after 83c20b8a2da0
I changed the Makefile to use SRCS instead of LDADD, but since there is still and absolute path to the source the .o file was created inside th
Fix build with read-only source dir after 83c20b8a2da0
I changed the Makefile to use SRCS instead of LDADD, but since there is still and absolute path to the source the .o file was created inside the source directory instead of the build directory. It would be nice if this was an error/warning by default, but for now just fix this issue by using .PATH and the base name of the file.
Reported by: cy, peterj
(cherry picked from commit 8b820df156e065f48857dca89a89462074659e14)
show more ...
|
| db3b5695 | 03-Mar-2021 |
Alex Richardson <[email protected]> |
Fix GCC build of ptrace_test after 96a9e50e63bfc
It seems like GCC's -Wsign-compare is stricter and also warns for constants. Appease GCC by adding the required casts.
Fixes: 96a9e50e63bfc ("ptrac
Fix GCC build of ptrace_test after 96a9e50e63bfc
It seems like GCC's -Wsign-compare is stricter and also warns for constants. Appease GCC by adding the required casts.
Fixes: 96a9e50e63bfc ("ptrace_test: Add more debug output on test failures") Reported by: Jenkins CI
(cherry picked from commit 1fcbddec14dd693acf6a4be579f8d9e10b6a06a4)
show more ...
|
| 2726b463 | 23-Feb-2021 |
Alex Richardson <[email protected]> |
Fix ptrace_test:ptrace__syscall_args after ATF upgrade
ATF now opens the results file (without CLOEXEC), so the child actually has a valid file descriptor 3. To fix this simply use a large number th
Fix ptrace_test:ptrace__syscall_args after ATF upgrade
ATF now opens the results file (without CLOEXEC), so the child actually has a valid file descriptor 3. To fix this simply use a large number that will definitely not be a valid file descriptor.
Reviewed by: jhb, cem, lwhsu Differential Revision: https://reviews.freebsd.org/D28889
(cherry picked from commit 17cc20092cd7a45adb6d772e0f449617007a82d9)
show more ...
|
| 80c34bad | 01-Mar-2021 |
Alex Richardson <[email protected]> |
Remove atf_tc_skip calls from ptrace_test
I've run these tests many times in a loop on multiple architectures and it works reliably for me, maybe it's time to retire these skips? This also adds an a
Remove atf_tc_skip calls from ptrace_test
I've run these tests many times in a loop on multiple architectures and it works reliably for me, maybe it's time to retire these skips? This also adds an additional waitpid to one of the tests to avoid a potential race condition (suggested by markj@).
PR: 239397, 244056, 239425, 240510, 220841, 243605 Reviewed By: markj Differential Revision: https://reviews.freebsd.org/D28888
(cherry picked from commit 1032131464f1196ad674b30c14a9e611789a1061)
show more ...
|