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)
Wed, May 15, 11:06 AM
Unknown Object (File)
Thu, May 9, 9:02 PM
Unknown Object (File)
Apr 16 2024, 3:10 AM
Unknown Object (File)
Apr 11 2024, 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

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