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)
Tue, Nov 25, 8:16 PM
Unknown Object (File)
Sun, Nov 16, 8:20 AM
Unknown Object (File)
Sun, Nov 16, 5:59 AM
Unknown Object (File)
Sun, Nov 16, 3:55 AM
Unknown Object (File)
Sun, Nov 16, 1:55 AM
Unknown Object (File)
Nov 5 2025, 3:02 PM
Unknown Object (File)
Oct 26 2025, 8:35 PM
Unknown Object (File)
Oct 24 2025, 4:19 AM
Subscribers

Details

Summary

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

Reported by: KMSAN

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43991
Build 40879: arc lint + arc unit

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.