HomeFreeBSD

tcp: improve ref count handling when processing SYN

Description

tcp: improve ref count handling when processing SYN

Don't leak a reference count for so->so_cred when processing an
incoming SYN segment with an on-stack syncache entry and the
sysctl variable net.inet.tcp.syncache.see_other is false.

Reviewed by: cc, markj, rscheff
Sponsored by: Netflix, Inc.
Pull Request: https://reviews.freebsd.org/D46793

(cherry picked from commit cbc9438f0505bd971e9eba635afdae38a267d76e)

Details

Provenance
tuexenAuthored on Sep 28 2024, 8:06 PM
Parents
rG2f5ac48d9b6d: tcp: improve MAC error handling for SYN segments
Branches
Unknown
Tags
Unknown