Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932337Ab1CWJtq (ORCPT ); Wed, 23 Mar 2011 05:49:46 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:45763 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755975Ab1CWJto (ORCPT ); Wed, 23 Mar 2011 05:49:44 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=ALzAErQC32VhvgHLwJPhH6BxF04tt3R09ZW4XpIsw8D+UROAo5pEn3d9NzrHdXQ0nI fAMZNdiFgz6LWSl7l5BQ9iuXMLUdJOvKuT2y9RHXQqK/MwMUsCpD5XWrE0iTf6kpauu8 p0SmmoR0ZVU+lhifM5LU3/fuLDpXzs73yf3Eo= Subject: Re: 2.6.39-rc: WARNING: at __ip_select_ident+0xd3/0xf0() From: Eric Dumazet To: Alexander Beregalov Cc: Linux Kernel Mailing List , netdev , David Miller In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Wed, 23 Mar 2011 10:49:39 +0100 Message-ID: <1300873779.3063.39.camel@edumazet-laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3302 Lines: 95 Le mercredi 23 mars 2011 à 10:14 +0300, Alexander Beregalov a écrit : > Hi > > I do not know how to reproduce it. > > WARNING: at include/net/inetpeer.h:102 __ip_select_ident+0xd3/0xf0() > Hardware name: > Modules linked in: hwmon_vid sata_sil i2c_nforce2 > Pid: 0, comm: swapper Not tainted 2.6.38-07035-g6447f55d #1 > Call Trace: > [] warn_slowpath_common+0x6d/0xa0 > [] ? __ip_select_ident+0xd3/0xf0 > [] ? __ip_select_ident+0xd3/0xf0 > [] warn_slowpath_null+0x1d/0x20 > [] __ip_select_ident+0xd3/0xf0 > [] __ip_make_skb+0x25c/0x360 > [] ? ip_append_data+0x67/0xa0 > [] ? icmp_glue_bits+0x0/0x60 > [] ip_push_pending_frames+0x14/0x30 > [] icmp_push_reply+0xdc/0x100 > [] icmp_send+0x408/0x4a0 > [] ? __udp4_lib_lookup.clone.49+0x171/0x2d0 > [] __udp4_lib_rcv+0x487/0x6a0 > [] ? ip_route_input_common+0x0/0xa00 > [] udp_rcv+0x12/0x20 > [] ip_local_deliver+0x9c/0x140 > [] ? ip_local_deliver+0x4d/0x140 > [] ip_rcv+0x266/0x560 > [] __netif_receive_skb+0x393/0x400 > [] ? __netif_receive_skb+0xc4/0x400 > [] netif_receive_skb+0x42/0x50 > [] napi_skb_finish+0x37/0x50 > [] napi_gro_receive+0xb3/0xc0 > [] e1000_receive_skb.clone.34+0x3f/0x60 > [] e1000_clean_rx_irq+0x27f/0x4b0 > [] ? __lock_acquire+0x441/0x19a0 > [] e1000_clean+0x1e9/0x570 > [] ? _raw_spin_lock+0x5c/0x70 > [] net_rx_action+0xe8/0x170 > [] __do_softirq+0x77/0x110 > [] ? __do_softirq+0x0/0x110 > [] ? irq_exit+0x76/0x90 > [] ? do_IRQ+0x43/0xb0 > [] ? common_interrupt+0x2e/0x34 > [] ? default_idle+0x2f/0x60 > [] ? cpu_idle+0x36/0x60 > [] ? rest_init+0xa5/0xb0 > [] ? rest_init+0x0/0xb0 > [] ? start_kernel+0x277/0x27e > [] ? unknown_bootoption+0x0/0x19f > [] ? i386_start_kernel+0x71/0x77 > -- Thanks Alexander for this bug report. Here is a patch to fix this issue (and other crash you mentioned in next mail) [PATCH] ipv4: fix ip_rt_update_pmtu() commit 2c8cec5c10bc (Cache learned PMTU information in inetpeer) added an extra inet_putpeer() call in ip_rt_update_pmtu(). This results in various problems, since we can free one inetpeer, while it is still in use. Ref: http://www.spinics.net/lists/netdev/msg159121.html Reported-by: Alexander Beregalov Signed-off-by: Eric Dumazet --- net/ipv4/route.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 870b518..34921b0 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -1593,8 +1593,6 @@ static void ip_rt_update_pmtu(struct dst_entry *dst, u32 mtu) rt->rt_peer_genid = rt_peer_genid(); } check_peer_pmtu(dst, peer); - - inet_putpeer(peer); } } -- 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/