Page MenuHomeFreeBSD

socket: Make soref() assert that so_count > 0
Needs ReviewPublic

Authored by markj on Jul 8 2024, 4:25 PM.
Tags
None
Referenced Files
F153981542: D45921.id140699.diff
Sat, Apr 25, 6:08 AM
F153979934: D45921.id141740.diff
Sat, Apr 25, 5:55 AM
Unknown Object (File)
Fri, Apr 24, 6:13 AM
Unknown Object (File)
Sun, Apr 19, 4:33 PM
Unknown Object (File)
Sat, Apr 18, 8:07 PM
Unknown Object (File)
Thu, Apr 16, 6:53 PM
Unknown Object (File)
Mon, Apr 13, 7:59 PM
Unknown Object (File)
Mon, Apr 13, 5:16 AM
Subscribers

Details

Reviewers
glebius
Summary

This might help catch some bugs. socreate() currently violates this
assertion, so initialize its refcount manually (and without an atomic
instruction) before attaching to the protocol.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 58570
Build 55458: arc lint + arc unit