Page MenuHomeFreeBSD

ktls: Post receive errors on partially closed sockets.
ClosedPublic

Authored by jhb on Dec 21 2022, 5:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 27 2024, 7:27 AM
Unknown Object (File)
Sep 27 2024, 4:12 AM
Unknown Object (File)
Sep 11 2024, 8:53 PM
Unknown Object (File)
Sep 5 2024, 10:13 PM
Unknown Object (File)
Jul 10 2024, 9:01 PM
Unknown Object (File)
Jul 8 2024, 4:15 AM
Unknown Object (File)
Jun 21 2024, 3:28 AM
Unknown Object (File)
Apr 20 2024, 6:37 PM
Subscribers

Details

Summary

If an error such as an invalid record or one whose decryption fails is
detected on a socket that has received a RST then ktls_drop() could
ignore the error since INP_DROPPED could already be set. In this case
soreceive_generic hangs since it does not return from a KTLS socket
with pending encrypted data unless there is an error (so_error) (this
behavior is to ensure that soreceive_generic doesn't return a
premature EOF when there is pending data still being decrypted).

Note that this was a bug prior to
69542f26820b7edb8351398b36edda5299c1db56 as tcp_usr_abort would also
have ignored the error in this case.

Sponsored by: Chelsio Communications

Diff Detail

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