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
F106553758: D33953.id101700.diff
Wed, Jan 1, 6:00 PM
Unknown Object (File)
Fri, Dec 27, 2:26 AM
Unknown Object (File)
Fri, Dec 20, 7:51 PM
Unknown Object (File)
Fri, Dec 20, 1:59 PM
Unknown Object (File)
Wed, Dec 11, 8:31 PM
Unknown Object (File)
Sun, Dec 8, 6:14 PM
Unknown Object (File)
Wed, Dec 4, 11:19 AM
Unknown Object (File)
Nov 28 2024, 11:29 AM
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.