From: David Miller Subject: Re: [PATCH net] tcp: fix NULL ref in tail loss probe Date: Wed, 05 Dec 2018 16:35:37 -0800 (PST) Message-ID: <20181205.163537.357208910274074787.davem@davemloft.net> References: <20181205223838.151667-1-ycheng@google.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: gregkh@linuxfoundation.org, netdev@vger.kernel.org, edumazet@google.com, ncardwell@google.com, rafael.tinoco@linaro.org To: ycheng@google.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:48710 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727679AbeLFAfi (ORCPT ); Wed, 5 Dec 2018 19:35:38 -0500 In-Reply-To: <20181205223838.151667-1-ycheng@google.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Yuchung Cheng Date: Wed, 5 Dec 2018 14:38:38 -0800 > TCP loss probe timer may fire when the retranmission queue is empty but > has a non-zero tp->packets_out counter. tcp_send_loss_probe will call > tcp_rearm_rto which triggers NULL pointer reference by fetching the > retranmission queue head in its sub-routines. > > Add a more detailed warning to help catch the root cause of the inflight > accounting inconsistency. > > Reported-by: Rafael Tinoco > Signed-off-by: Yuchung Cheng > Signed-off-by: Eric Dumazet > Signed-off-by: Neal Cardwell Applied, thanks for working to diagnose this so quickly.