Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jul 2015 18:38:32 +0000 (UTC)
From:      Patrick Kelsey <pkelsey@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r285762 - stable/10/sys/netinet
Message-ID:  <201507211838.t6LIcW86093342@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pkelsey
Date: Tue Jul 21 18:38:31 2015
New Revision: 285762
URL: https://svnweb.freebsd.org/changeset/base/285762

Log:
  MFC r285567:
  
  Check TCP timestamp option flag so that the automatic receive buffer
  scaling code does not use an uninitialized timestamp echo reply value
  from the stack when timestamps are not enabled.
  
  Approved by: re (gjb)

Modified:
  stable/10/sys/netinet/tcp_input.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netinet/tcp_input.c
==============================================================================
--- stable/10/sys/netinet/tcp_input.c	Tue Jul 21 18:08:10 2015	(r285761)
+++ stable/10/sys/netinet/tcp_input.c	Tue Jul 21 18:38:31 2015	(r285762)
@@ -1801,6 +1801,7 @@ tcp_do_segment(struct mbuf *m, struct tc
 		 * the buffer to better manage the socket buffer resources.
 		 */
 			if (V_tcp_do_autorcvbuf &&
+			    (to.to_flags & TOF_TS) &&
 			    to.to_tsecr &&
 			    (so->so_rcv.sb_flags & SB_AUTOSIZE)) {
 				if (TSTMP_GT(to.to_tsecr, tp->rfbuf_ts) &&



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507211838.t6LIcW86093342>