Page MenuHomeFreeBSD

socket: Add assertions around naked refcount decrements
ClosedPublic

Authored by markj on Sep 15 2021, 7:58 PM.
Tags
None
Referenced Files
F173892577: D31974.id95319.diff
Tue, Sep 29, 4:06 AM
Unknown Object (File)
Sat, Sep 26, 9:38 AM
Unknown Object (File)
Fri, Sep 25, 11:36 PM
Unknown Object (File)
Wed, Sep 23, 2:52 AM
Unknown Object (File)
Wed, Sep 23, 2:51 AM
Unknown Object (File)
Wed, Sep 23, 2:50 AM
Unknown Object (File)
Mon, Sep 14, 12:25 AM
Unknown Object (File)
Wed, Sep 9, 3:01 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 41534
Build 38423: arc lint + arc unit