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, Apr 16, 3:10 AM
Unknown Object (File)
Thu, Apr 11, 11:09 PM
Unknown Object (File)
Feb 22 2024, 11:09 AM
Unknown Object (File)
Feb 12 2024, 8:30 AM
Unknown Object (File)
Feb 8 2024, 8:44 PM
Unknown Object (File)
Dec 20 2023, 12:48 AM
Unknown Object (File)
Dec 13 2023, 2:19 AM
Unknown Object (File)
Dec 3 2023, 2:10 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