Page MenuHomeFreeBSD

socket: Add assertions around naked refcount decrements
ClosedPublic

Authored by markj on Sep 15 2021, 7:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 27, 4:30 PM
Unknown Object (File)
Tue, Apr 9, 6:23 PM
Unknown Object (File)
Feb 20 2024, 1:29 PM
Unknown Object (File)
Feb 15 2024, 6:23 AM
Unknown Object (File)
Feb 15 2024, 4:14 AM
Unknown Object (File)
Feb 15 2024, 4:14 AM
Unknown Object (File)
Feb 15 2024, 3:58 AM
Unknown Object (File)
Feb 8 2024, 10:25 AM
Subscribers

Details

Summary

Sockets in a listen queue hold a reference to the parent listening
socket. Several code paths release this reference manually when moving
a child socket out of the queue.

Replace comments about the expected post-decrement refcount value with
assertions. Use refcount_load() instead of a plain load. No functional
change intended.

Diff Detail

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