The branch main has been updated by tuexen:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=e0f7e732488476dc02ec771a5831715fbd7ca51a

commit e0f7e732488476dc02ec771a5831715fbd7ca51a
Author:     Michael Tuexen <tue...@freebsd.org>
AuthorDate: 2025-07-01 07:00:24 +0000
Commit:     Michael Tuexen <tue...@freebsd.org>
CommitDate: 2025-07-01 07:00:24 +0000

    tcp: remove an invalid KASSERT
    
    Since TCP endpoints in the TIME-WAIT state are no longer special,
    allow them to be switched over to the default stack.
    
    Reported by:            
syzbot+902d31bb0e68a1e8c...@syzkaller.appspotmail.com
    Reviewed by:            cc
    MFC after:              1 week
    Sponsored by:           Netflix, Inc.
    Differential Revision:  https://reviews.freebsd.org/D51090
---
 sys/netinet/tcp_subr.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index bbcd20b715ba..cd42a67294a6 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -1032,10 +1032,6 @@ tcp_default_fb_init(struct tcpcb *tp, void **ptr)
        /* We don't use the pointer */
        *ptr = NULL;
 
-       KASSERT(tp->t_state < TCPS_TIME_WAIT,
-           ("%s: connection %p in unexpected state %d", __func__, tp,
-           tp->t_state));
-
        /* Make sure we get no interesting mbuf queuing behavior */
        /* All mbuf queue/ack compress flags should be off */
        tcp_lro_features_off(tp);

Reply via email to