svn commit: r365595 - stable/12/sys/netinet/tcp_stacks
Michael Tuexen
tuexen at FreeBSD.org
Thu Sep 10 17:29:21 UTC 2020
Author: tuexen
Date: Thu Sep 10 17:29:20 2020
New Revision: 365595
URL: https://svnweb.freebsd.org/changeset/base/365595
Log:
MFC r351328 (by rrs):
Fix an issue when TSO and Rack play together. Basically
an retransmission of the initial SYN (with data) would
cause us to strip the SYN and decrement/increase offset/len
which then caused us a -1 offset and a panic.
Modified:
stable/12/sys/netinet/tcp_stacks/rack.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/netinet/tcp_stacks/rack.c
==============================================================================
--- stable/12/sys/netinet/tcp_stacks/rack.c Thu Sep 10 17:26:16 2020 (r365594)
+++ stable/12/sys/netinet/tcp_stacks/rack.c Thu Sep 10 17:29:20 2020 (r365595)
@@ -7467,9 +7467,6 @@ again:
(tp->t_state == TCPS_SYN_RECEIVED))
flags &= ~TH_SYN;
#endif
- sb_offset--, len++;
- if (sbavail(sb) == 0)
- len = 0;
}
/*
* Be careful not to send data and/or FIN on SYN segments. This
More information about the svn-src-all
mailing list