From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756020Ab0HPTQc (ORCPT ); Mon, 16 Aug 2010 15:16:32 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:39953 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755896Ab0HPTQb convert rfc822-to-8bit (ORCPT ); Mon, 16 Aug 2010 15:16:31 -0400 Subject: Re: [LOCKDEP BUG][2.6.36-rc1] xt_info_wrlock? From: Peter Zijlstra To: Eric Dumazet Cc: Steven Rostedt , netdev@vger.kernel.org, LKML , "David S. Miller" , Patrick McHardy , Ingo Molnar In-Reply-To: <1281984528.2487.25.camel@edumazet-laptop> References: <1281978469.3268.55.camel@gandalf.stny.rr.com> <1281979893.2524.54.camel@edumazet-laptop> <1281981301.3268.110.camel@gandalf.stny.rr.com> <1281982566.3268.137.camel@gandalf.stny.rr.com> <1281983814.1926.1763.camel@laptop> <1281984528.2487.25.camel@edumazet-laptop> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Mon, 16 Aug 2010 21:16:17 +0200 Message-ID: <1281986177.1926.1858.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2010-08-16 at 20:48 +0200, Eric Dumazet wrote: > Le lundi 16 août 2010 à 20:36 +0200, Peter Zijlstra a écrit : > > On Mon, 2010-08-16 at 14:16 -0400, Steven Rostedt wrote: > > > @@ -729,8 +729,10 @@ static void get_counters(const struct > > > xt_table_info *t, > > > local_bh_enable(); > > > /* Processing counters from other cpus, we can let bottom half > > > enabled, > > > * (preemption is disabled) > > > + * We must turn off lockdep to avoid a false positive. > > > */ > > > > > > + lockdep_off(); > > > for_each_possible_cpu(cpu) { > > > > > nack! > > > Interesting. > > Care to elaborate ? Adding lockdep_off() is just plain wrong, if you cannot describe the locking there's a fair chance its wrong anyway. As it stands there's only a single lockdep_off(), and that lives in NTFS it looks like it could be annotated differently, but then, who cares about NTFS anyway ;-)