ktls: harden Linux recv path
-
zero the 5 prepended TLS header bytes before recvmsg to avoid stale header bytes when no TLS_GET_RECORD_TYPE cmsg is delivered
-
require MSG_EOR and reject MSG_CTRUNC to avoid treating partial records as complete
-
drop subtraction of EVP_GCM_TLS_TAG_LEN from msg_iov.iov_len (kernel already strips the tag). Restores full plaintext capacity and matches the FreeBSD path
This PR is in a state where it requires action by @openssl/committers but the last update was 30 days ago
ping @MegaManSec there are comments.
I don't see the fix FreeBSD unaligned write promised by the title?
Fixed (by removing it from the title and description). Originally I was going to submit this PR with https://github.com/openssl/openssl/pull/28860 combined, but decided to de-couple, but forgot to update the actual PR.
This pull request is ready to merge
Squashed, applied clang-reformat and merged to the master branch. Thank you for your contribution.