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)
Fri, Apr 5, 8:31 PM
Unknown Object (File)
Fri, Apr 5, 8:31 PM
Unknown Object (File)
Fri, Apr 5, 7:35 PM
Unknown Object (File)
Fri, Apr 5, 7:23 PM
Unknown Object (File)
Feb 23 2024, 11:14 PM
Unknown Object (File)
Dec 23 2023, 1:23 AM
Unknown Object (File)
Dec 12 2023, 3:13 PM
Unknown Object (File)
Oct 27 2023, 4:24 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.