From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] tcp: tcp_fragment() should not assume rtx skbs Date: Fri, 03 Nov 2017 16:03:24 +0900 (KST) Message-ID: <20171103.160324.395984746958427451.davem@davemloft.net> References: <1509671403.2849.38.camel@edumazet-glaptop3.roam.corp.google.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, ycheng@google.com, ncardwell@google.com, soheil@google.com, ast@kernel.org, priyarjha@google.com To: eric.dumazet@gmail.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:36996 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750821AbdKCHD3 (ORCPT ); Fri, 3 Nov 2017 03:03:29 -0400 In-Reply-To: <1509671403.2849.38.camel@edumazet-glaptop3.roam.corp.google.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Eric Dumazet Date: Thu, 02 Nov 2017 18:10:03 -0700 > From: Eric Dumazet > > While stress testing MTU probing, we had crashes in list_del() that we root-caused > to the fact that tcp_fragment() is unconditionally inserting the freshly allocated > skb into tsorted_sent_queue list. > > But this list is supposed to contain skbs that were sent. > This was mostly harmless until MTU probing was enabled. > > Fortunately we can use the tcp_queue enum added later (but in same linux version) > for rtx-rb-tree to fix the bug. > > Fixes: e2080072ed2d ("tcp: new list for sent but unacked skbs for RACK recovery") > Signed-off-by: Eric Dumazet Applied, thanks Eric.