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)
Fri, Apr 25, 5:05 AM
Unknown Object (File)
Mar 13 2025, 6:03 PM
Unknown Object (File)
Mar 11 2025, 7:43 AM
Unknown Object (File)
Feb 20 2025, 5:22 PM
Unknown Object (File)
Feb 14 2025, 12:54 AM
Unknown Object (File)
Feb 10 2025, 11:16 AM
Unknown Object (File)
Feb 10 2025, 6:31 AM
Unknown Object (File)
Feb 2 2025, 4:11 PM

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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44151
Build 41039: arc lint + arc unit

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