Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932228AbVKWTXF (ORCPT ); Wed, 23 Nov 2005 14:23:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932223AbVKWTXF (ORCPT ); Wed, 23 Nov 2005 14:23:05 -0500 Received: from smtp.osdl.org ([65.172.181.4]:29152 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S932209AbVKWTXA (ORCPT ); Wed, 23 Nov 2005 14:23:00 -0500 Date: Wed, 23 Nov 2005 11:22:18 -0800 From: Andrew Morton To: Michal Piotrowski Cc: linux-kernel@vger.kernel.org, Harald Welte , netdev@vger.kernel.org Subject: Re: 2.6.15-rc2-mm1 Message-Id: <20051123112218.73f68926.akpm@osdl.org> In-Reply-To: <6bffcb0e0511230615y7531e268n@mail.gmail.com> References: <20051123033550.00d6a6e8.akpm@osdl.org> <6bffcb0e0511230615y7531e268n@mail.gmail.com> X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1451 Lines: 33 Michal Piotrowski wrote: > > Debug: sleeping function called from invalid context at > include/asm/semaphore.h:123 > in_atomic():1, irqs_disabled():0 > [] dump_stack+0x17/0x19 > [] __might_sleep+0x9c/0xae > [] translate_table+0x147/0xc14 [ip_tables] > [] ipt_register_table+0x93/0x20d [ip_tables] > [] init+0x27/0x9e [iptable_filter] > [] sys_init_module+0xd7/0x26c > [] sysenter_past_esp+0x54/0x75 > --------------------------- > | preempt count: 00000001 ] > | 1 level deep critical section nesting: > ---------------------------------------- > .. [] .... ipt_register_table+0x33/0x20d [ip_tables] > .....[] .. ( <= init+0x27/0x9e [iptable_filter]) > ipt_register_table() does get_cpu() then calls translate_table(), and somewhere under translate_table() we do something which sleeps, only I'm not sure what it is - netfilter likes to hide things in unexpected places. check_entry() will do sleepy things under that get_cpu(), but that doesn't seem to be in this particular call chain. Anyway, the new get_cpu() in ipt_register_table() is the problem. - 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/