From owner-freebsd-net@FreeBSD.ORG Thu Mar 31 23:40:18 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8834D1065672; Thu, 31 Mar 2011 23:40:18 +0000 (UTC) (envelope-from sec@42.org) Received: from ice.42.org (v6.42.org [IPv6:2001:608:9::1]) by mx1.freebsd.org (Postfix) with ESMTP id 3C7348FC12; Thu, 31 Mar 2011 23:40:18 +0000 (UTC) Received: by ice.42.org (Postfix, from userid 1000) id 7748D2841C; Fri, 1 Apr 2011 01:40:17 +0200 (CEST) Date: Fri, 1 Apr 2011 01:40:17 +0200 From: Stefan `Sec` Zehl To: John Baldwin Message-ID: <20110331234017.GC3308@ice.42.org> Mail-Followup-To: John Baldwin , freebsd-net@freebsd.org References: <4D8B99B4.4070404@FreeBSD.org> <201103281423.52202.jhb@freebsd.org> <20110328183810.GF23803@ice.42.org> <201103300838.09608.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201103300838.09608.jhb@freebsd.org> User-Agent: Mutt/1.4.2.3i I-love-doing-this: really X-Modeline: vim:set ts=8 sw=4 smarttab tw=72 si noic notitle: Accept-Languages: de, en X-URL: http://sec.42.org/ Cc: freebsd-net@freebsd.org Subject: Re: The tale of a TCP bug X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Mar 2011 23:40:18 -0000 On Wed, Mar 30, 2011 at 08:38 -0400, John Baldwin wrote: > There is at least one case I know of related to a bug I reported earlier > where a window probe from a remote connection can cause rcv_nxt to advance > past rcv_adv by one. However, I think we want to know about those cases, > and we should probably be treating rcv_adv - rcv_nxt as if it is zero in > that case, not -1 (my patch in my original e-mail does just that in a > different place in tcp_output() when we calculate the window "for real"). I've been running for about a day now with the committed patch and adv_neg is still zero: | ice:~>uptime; sysctl net.inet.tcp.adv_neg | 1:36AM up 1 day, 4:52, 1 user, load averages: 0.12, 0.06, 0.05 | net.inet.tcp.adv_neg: 0 I'll of course monitor this value and report back if I ever see it increase :-) CU, Sec -- Diplomacy is the ability to tell a person to go to hell in such a nice way that he or she looks forward to the trip.