Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932678Ab3FQKwO (ORCPT ); Mon, 17 Jun 2013 06:52:14 -0400 Received: from mga14.intel.com ([143.182.124.37]:38724 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756007Ab3FQKwN (ORCPT ); Mon, 17 Jun 2013 06:52:13 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,880,1363158000"; d="scan'208";a="256076529" Subject: Re: [PATCH] tcp: Modify the condition for the first skb to collapse From: Jun Chen To: Eric Dumazet Cc: ycheng@google.com, ncardwell@google.com, edumazet@google.com, netdev@vger.kernel.org, Linux Kernel In-Reply-To: <1371464962.3252.181.camel@edumazet-glaptop> References: <1371478739.10495.5.camel@chenjun-workstation> <1371456935.3252.177.camel@edumazet-glaptop> <1371490190.28418.6.camel@chenjun-workstation> <1371464962.3252.181.camel@edumazet-glaptop> Content-Type: text/plain; charset="UTF-8" Date: Mon, 17 Jun 2013 14:52:13 -0400 Message-ID: <1371495133.28418.19.camel@chenjun-workstation> Mime-Version: 1.0 X-Mailer: Evolution 2.32.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2521 Lines: 80 On Mon, 2013-06-17 at 03:29 -0700, Eric Dumazet wrote: > On Mon, 2013-06-17 at 13:29 -0400, Jun Chen wrote: > > > > > hi, > > When the condition of tcp_win_from_space(skb->truesize) > skb->len is > > true but the before(start, TCP_SKB_CB(skb)->seq) is also true, the final > > condition will be true. The follow line: > > int offset = start - TCP_SKB_CB(skb)->seq; > > BUG_ON(offset < 0); > > this BUG_ON will be triggered. > > > > Really this should never happen, we must track what's happening here. It's very very rare, but the logic of codes have such a little hole. > > Are you using a pristine kernel, without any patches ? The based kernel version is 3.4. > > Are you able to reproduce this bug in a short amount of time ? I can't reproduce it in short time, this log had just been found once for long long time tests on many devices . > > What kind of driver is in use ? (your stack trace was truncated) I attach the whole stack traces for you. <0>[ 7736.348788] Call Trace: <4>[ 7736.348861] [] tcp_prune_queue+0x120/0x2f0 <4>[ 7736.348984] [] tcp_data_queue+0x777/0xf00 <4>[ 7736.349055] [] ? ipt_do_table+0x1f8/0x480 <4>[ 7736.349126] [] ? ipt_do_table+0x1f8/0x480 <4>[ 7736.349196] [] tcp_rcv_established+0x114/0x680 <4>[ 7736.349269] [] tcp_v4_do_rcv+0x164/0x350 <4>[ 7736.349396] [] ? nf_nat_fn+0xb1/0x1d0 <4>[ 7736.349470] [] tcp_v4_rcv+0x6f1/0x7a0 <4>[ 7736.349599] [] ? nf_hook_slow+0x10d/0x150 <4>[ 7736.349673] [] ip_local_deliver_finish+0x8b/0x200 <4>[ 7736.349796] [] ip_local_deliver+0x8f/0xa0 <4>[ 7736.349867] [] ? ip_rcv_finish+0x300/0x300 <4>[ 7736.349937] [] ip_rcv_finish+0xdf/0x300 <4>[ 7736.350062] [] ip_rcv+0x258/0x330 <4>[ 7736.350132] [] ? inet_del_protocol+0x30/0x30 <4>[ 7736.350258] [] __netif_receive_skb+0x325/0x410 <4>[ 7736.350331] [] process_backlog+0x96/0x150 <4>[ 7736.350455] [] net_rx_action+0x115/0x210 <4>[ 7736.350525] [] ? tcp_out_of_resources+0xb0/0xb0 <4>[ 7736.350652] [] __do_softirq+0x9b/0x220 <4>[ 7736.350723] [] ? local_bh_enable_ip+0xd0/0xd0 > > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/