Page MenuHomeFreeBSD

ktls_tests: Ignore spurious errors from shutdown(2).
ClosedPublic

Authored by jhb on Dec 14 2022, 12:07 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 14, 4:36 AM
Unknown Object (File)
Fri, Nov 8, 5:02 PM
Unknown Object (File)
Sat, Nov 2, 2:40 AM
Unknown Object (File)
Sep 27 2024, 3:52 PM
Unknown Object (File)
Sep 26 2024, 11:12 AM
Unknown Object (File)
Sep 23 2024, 2:28 PM
Unknown Object (File)
Sep 20 2024, 3:07 PM
Unknown Object (File)
Sep 17 2024, 12:32 PM
Subscribers

Details

Summary

For some of the "bad size" tests, the remote end can notice the error
and drop the connection before the test program returns from write to
call shutdown. In that case, shutdown fails with ENOTCONN. Permit
these ENOTCONN errors without failing the test.

Sponsored by: Chelsio Communications

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Dec 14 2022, 12:07 AM

I'm testing the 3 reviews (D37691, D37692 and D37693) at the same time, at for the first build & test run, regression tests still failing:

  • sys.kern.ktls_test.ktls_receive_aes128_cbc_1_1_sha1_bad_major
  • sys.kern.ktls_test.ktls_receive_aes256_cbc_1_2_sha256_bad_minor
  • sys.kern.ktls_test.ktls_receive_aes256_cbc_1_1_sha1_oversized_record
  • sys.kern.ktls_test.ktls_receive_chacha20_poly1305_1_3_oversized_record

with same error : "tests/sys/kern/ktls_test.c:283: close(sv[1]) == 0 not met" for all

This revision was not accepted when it landed; it landed in state Needs Review.Dec 20 2022, 7:39 PM
This revision was automatically updated to reflect the committed changes.