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
Unknown Object (File)
Thu, Oct 3, 8:06 AM
Unknown Object (File)
Wed, Oct 2, 6:11 AM
Unknown Object (File)
Mon, Sep 30, 11:11 PM
Unknown Object (File)
Mon, Sep 23, 7:44 PM
Unknown Object (File)
Sun, Sep 22, 7:53 AM
Unknown Object (File)
Sat, Sep 21, 3:51 AM
Unknown Object (File)
Fri, Sep 20, 7:46 AM
Unknown Object (File)
Thu, Sep 19, 3:35 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 58920
Build 55807: arc lint + arc unit