Page MenuHomeFreeBSD

ktls: Write-lock the INP when changing a transmit TLS session.
ClosedPublic

Authored by jhb on Jan 28 2022, 9:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 5, 9:32 AM
Unknown Object (File)
Tue, Oct 29, 4:50 AM
Unknown Object (File)
Oct 12 2024, 2:33 PM
Unknown Object (File)
Sep 27 2024, 8:25 AM
Unknown Object (File)
Sep 17 2024, 12:59 AM
Unknown Object (File)
Sep 15 2024, 11:09 PM
Unknown Object (File)
Sep 8 2024, 11:26 AM
Unknown Object (File)
Sep 7 2024, 9:57 AM

Details

Summary

The TCP rate pacing code relies on being able to read this pointer
safely while holding an INP lock. The initial TLS session pointer is
set while holding the write lock already.

Diff Detail

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

Event Timeline

jhb requested review of this revision.Jan 28 2022, 9:30 PM
This revision is now accepted and ready to land.Jan 28 2022, 9:49 PM

Is it allowed to lock the INP after SOCKBUF? I thought you needed to lock INP first, then SOCKBUF?

  • Lock INP before socket buffer.
This revision now requires review to proceed.Feb 1 2022, 12:42 AM
This revision is now accepted and ready to land.Feb 1 2022, 9:57 AM