From: Andrew Morton Subject: Re: [Bugme-new] [Bug 10097] New: SMP BUG in __nf_conntrack_find Date: Mon, 25 Feb 2008 11:11:00 -0800 Message-ID: <20080225111100.b83e9e6b.akpm@linux-foundation.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: bugme-daemon@bugzilla.kernel.org, Patrick McHardy , casteyde.christian@free.fr To: netdev@vger.kernel.org Return-path: Received: from smtp1.linux-foundation.org ([207.189.120.13]:47191 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754589AbYBYTM2 (ORCPT ); Mon, 25 Feb 2008 14:12:28 -0500 In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: On Mon, 25 Feb 2008 10:44:08 -0800 (PST) bugme-daemon@bugzilla.kernel.org wrote: > http://bugzilla.kernel.org/show_bug.cgi?id=10097 > > Summary: SMP BUG in __nf_conntrack_find > Product: Networking > Version: 2.5 > KernelVersion: 2.6.25-rc3 > Platform: All > OS/Version: Linux > Tree: Mainline > Status: NEW > Severity: normal > Priority: P1 > Component: Netfilter/Iptables > AssignedTo: networking_netfilter-iptables@kernel-bugs.osdl.org > ReportedBy: casteyde.christian@free.fr > > > Latest working kernel version: 2.6.24.2 > Earliest failing kernel version: 2.6.24-rc3 (not checked before) > Distribution: Bluewhite64 > Hardware Environment: Athlon X2 4200 > > Software Environment: > samba 3.0, 2.6.25-rc3 kernel + HR + tickless + kernel SMP debugging > > Problem Description: > The Samba smbd daemon triggers regularly the following BUG with 2.6.25-rc3: > > BUG: using smp_processor_id() in preemptible [00000000] code: nmbd/3167 > caller is __nf_conntrack_find+0x119/0x150 > Pid: 3167, comm: nmbd Not tainted 2.6.25-rc3 #1 > > Call Trace: > [] debug_smp_processor_id+0xc4/0xd0 > [] __nf_conntrack_find+0x119/0x150 > [] nf_conntrack_find_get+0x19/0x80 > [] nf_conntrack_in+0x1a4/0x5a0 > [] ? restore_args+0x0/0x30 > [] ipv4_conntrack_local+0x66/0x70 > [] nf_iterate+0x62/0xa0 > [] ? dst_output+0x0/0x10 > [] nf_hook_slow+0x66/0xe0 > [] ? dst_output+0x0/0x10 > [] __ip_local_out+0xa5/0xb0 > [] ip_local_out+0x11/0x30 > [] ip_push_pending_frames+0x261/0x3e0 > [] udp_push_pending_frames+0x233/0x3d0 > [] udp_sendmsg+0x30f/0x710 > [] ? default_wake_function+0x0/0x10 > [] inet_sendmsg+0x45/0x80 > [] sock_sendmsg+0xdf/0x110 > [] ? autoremove_wake_function+0x0/0x40 > [] ? hrtick_resched+0x77/0x90 > [] ? trace_hardirqs_on+0xd5/0x160 > [] ? sockfd_lookup_light+0x45/0x80 > [] sys_sendto+0xea/0x120 > [] ? _spin_unlock_irq+0x2b/0x60 > [] ? trace_hardirqs_on+0xd5/0x160 > [] ? _spin_unlock_irq+0x36/0x60 > [] system_call_after_swapgs+0x7b/0x80 > > Steps to reproduce: > Start smbd with the forementionned kernel instrumented for SMP and kernel > debugging and hr + tickless enabled. > Presumably this is in NF_CT_STAT_INC(). I wonder what caused it to start happening. Guys, this probably means that the developers who tested this change aren't enabling the debug options which all kernel developers _should_ be enabling when "testing" their code! Documentation/SubmitChecklist has a handy list. Should NF_CT_STAT_INC() be using local_inc()?