From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: Kernel panic nf_nat_setup_info+0x5b3/0x6e0 Date: Thu, 31 Mar 2011 16:47:52 +0200 Message-ID: <1301582872.3169.44.camel@edumazet-laptop> References: <118081298480841@web25.yandex.ru> <4D6E2BEB.50805@trash.net> <124481299095426@web67.yandex.ru> <586191301580222@web107.yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Changli Gao , Patrick McHardy , netfilter-devel@vger.kernel.org, netdev@vger.kernel.org, Paul E McKenney To: "\"Oleg A. Arkhangelsky\"" Return-path: Received: from mail-fx0-f46.google.com ([209.85.161.46]:61830 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757998Ab1CaOsB (ORCPT ); Thu, 31 Mar 2011 10:48:01 -0400 In-Reply-To: <586191301580222@web107.yandex.ru> Sender: netdev-owner@vger.kernel.org List-ID: Le jeudi 31 mars 2011 =C3=A0 18:03 +0400, "Oleg A. Arkhangelsky" a =C3=A9= crit : >=20 > 26.03.2011, 16:44, "Changli Gao" : > > On Thu, Mar 3, 2011 at 3:33 PM, Changli Gao ; wr= ote: > > > >> Please try the patch attached and test if the problem is solved o= r not. Thanks. > > > > Any feedback? Thanks. > > >=20 > Seems that patch is fine. >=20 > https://bugzilla.kernel.org/show_bug.cgi?id=3D21512 >=20 I wonder if this is not hiding another bug. Adding an RCU grace period might reduce the probability window. By the time nf_conntrack_free(ct) is called, no other cpu/thread could/should use ct, or ct->ext ? Sure, another thread can find/pass_on ct in a lookup but should not use it, since its refcount (ct_general.use) should be 0. Patrick ?