Page MenuHomeFreeBSD

ktls: Zero out TLS_GET_RECORD control messages
ClosedPublic

Authored by markj on Jan 19 2022, 8:18 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 10, 4:41 AM
Unknown Object (File)
Wed, Oct 8, 3:58 AM
Unknown Object (File)
Sep 12 2025, 10:50 PM
Unknown Object (File)
Sep 10 2025, 12:56 PM
Unknown Object (File)
Aug 31 2025, 8:49 PM
Unknown Object (File)
Aug 16 2025, 2:50 AM
Unknown Object (File)
Aug 6 2025, 1:43 PM
Unknown Object (File)
Jul 26 2025, 1:11 PM
Subscribers

Details

Summary

Otherwise we end up copying uninitialized bytes into the socket buffer.

Reported by: KMSAN

Diff Detail

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

Event Timeline

markj requested review of this revision.Jan 19 2022, 8:18 PM

Huh, we should be setting all of the fields? Is there a padding byte I guess?

In D33953#768089, @jhb wrote:

Huh, we should be setting all of the fields? Is there a padding byte I guess?

Yes, sorry the description isn't quite right. There is a single padding byte.

This revision is now accepted and ready to land.Jan 20 2022, 8:36 PM
This revision was automatically updated to reflect the committed changes.