HomeFreeBSD

tcp: Don't try to disconnect a socket multiple times.

Description

tcp: Don't try to disconnect a socket multiple times.

When the checks for INP_TIMEWAIT were removed, tcp_usr_close() and
tcp_usr_disconnect() were no longer prevented from calling
tcp_disconnect() on a socket that was already disconnected. This
triggered a panic in cxgbe(4) for TOE where the tcp_disconnect() on an
already-disconnected socket invoked tcp_output() on a socket that was
already in time-wait.

Reviewed by: rrs, np
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D37112

Details

Provenance
jhbAuthored on Feb 17 2023, 5:13 PM
Reviewer
rrs
Differential Revision
D37112: tcp: Don't try to disconnect a socket multiple times.
Parents
rGca457729cc7b: cxgbe: Queue NIC TLS mbufs internally.
Branches
Unknown
Tags
Unknown