HomeFreeBSD

getsockopt: improve locking for SOL_SOCKET level socket options

Description

getsockopt: improve locking for SOL_SOCKET level socket options

Ensure SOLISTENING() is done inside SOCK_LOCK()/SOCK_UNLOCK()
for getsockopt() handling of SOL_SOCKET-level socket options.

Reviewed by: markj, rscheff
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D46881

(cherry picked from commit 3326ab87cc22cb70a41e13aefd8684ff0feed01f)

Details

Provenance
tuexenAuthored on Oct 7 2024, 2:46 PM
Reviewer
markj
Differential Revision
D46881: getsockopt: improve locking for SOL_SOCKET level socket options
Parents
rGb785f83e987d: tcp: small cleanup
Branches
Unknown
Tags
Unknown