From: Chris Wedgwood Subject: Re: 2.6.25-rc3ish TCP assertion & WARN_ON Date: Sun, 2 Mar 2008 09:50:13 -0800 Message-ID: <20080302175013.GA4483@puku.stupidest.org> References: <20080301183234.GA4707@puku.stupidest.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev To: Ilpo J?rvinen Return-path: Received: from smtp120.sbc.mail.sp1.yahoo.com ([69.147.64.93]:46760 "HELO smtp120.sbc.mail.sp1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1754827AbYCBRuU (ORCPT ); Sun, 2 Mar 2008 12:50:20 -0500 Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Sat, Mar 01, 2008 at 10:19:07PM +0200, Ilpo J?rvinen wrote: > It consumes some cpu by validating the whole TCP's write queue > multiple times per ACK to find most of the errors as soon as they > happen rather than when some cheap mainline trap triggers (often > much later than the actual bug). With that: [ 1911.211964] P: 0 L: 0 vs 0 S: 0 vs 0 F: 0 vs 2 w: 2569814359-2569814359 (3) [ 1911.211981] l0 s0 f2 p0 seq: su2569814359 hs2569814359 sn2569814359 [ 1911.211995] ------------[ cut here ]------------ [ 1911.212005] WARNING: at net/ipv4/tcp_ipv4.c:234 tcp_verify_wq+0x23d/0x271() [ 1911.212022] Modules linked in: kvm_amd kvm tun firewire_ohci firewire_core crc_itu_t [ 1911.212046] Pid: 0, comm: swapper Not tainted 2.6.25-rc3-cw3-01124-g4b36a25-dirty #8 [ 1911.212062] [ 1911.212063] Call Trace: [ 1911.212076] [] warn_on_slowpath+0x58/0x6b [ 1911.212093] [] ? printk+0x67/0x69 [ 1911.212103] [] ? tcp_print_queue+0x21b/0x22d [ 1911.212115] [] ? _spin_unlock_bh+0x2f/0x34 [ 1911.212127] [] tcp_verify_wq+0x23d/0x271 [ 1911.212140] [] tcp_ack+0x749/0xfab [ 1911.212152] [] ? __atomic_notifier_call_chain+0x74/0x83 [ 1911.212165] [] tcp_rcv_state_process+0x731/0xb2d [ 1911.212177] [] tcp_v4_do_rcv+0x167/0x1ba [ 1911.212188] [] tcp_v4_rcv+0x701/0x75e [ 1911.212199] [] ip_local_deliver_finish+0x158/0x230 [ 1911.212211] [] ip_local_deliver+0x72/0x7d [ 1911.212222] [] ip_rcv_finish+0x353/0x378 [ 1911.212233] [] ip_rcv+0x272/0x2a5 [ 1911.212249] [] netif_receive_skb+0x26c/0x2b9 [ 1911.212261] [] process_backlog+0x82/0xe7 [ 1911.212273] [] net_rx_action+0x87/0x14e [ 1911.212285] [] __do_softirq+0x66/0xd3 [ 1911.212297] [] call_softirq+0x1c/0x28 [ 1911.212308] [] do_softirq+0x34/0x72 [ 1911.212319] [] irq_exit+0x3f/0x41 [ 1911.212329] [] do_IRQ+0x147/0x169 [ 1911.212340] [] ? default_idle+0x0/0x5f [ 1911.212351] [] ret_from_intr+0x0/0xa [ 1911.212360] [] ? __atomic_notifier_call_chain+0x0/0x83 [ 1911.212379] [] ? default_idle+0x39/0x5f [ 1911.212390] [] ? default_idle+0x34/0x5f [ 1911.212401] [] ? default_idle+0x0/0x5f [ 1911.212411] [] ? cpu_idle+0x98/0xba [ 1911.212423] [] ? rest_init+0x55/0x57 [ 1911.212434] [ 1911.212440] ---[ end trace 9f6658e64a24d34b ]--- Is that useful?