From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH 2/4] netfilter: xtables2: make ip_tables reentrant Date: Wed, 21 Apr 2010 14:47:17 +0200 Message-ID: <4BCEF3D5.9070303@trash.net> References: <1271373909-6959-1-git-send-email-jengelh@medozas.de> <1271373909-6959-3-git-send-email-jengelh@medozas.de> <4BCC4B19.7040805@trash.net> <4BCC636A.1080401@trash.net> <4BCDA9BC.50201@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: netfilter-devel@vger.kernel.org To: Jan Engelhardt Return-path: Received: from stinky.trash.net ([213.144.137.162]:40094 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754417Ab0DUMrS (ORCPT ); Wed, 21 Apr 2010 08:47:18 -0400 In-Reply-To: Sender: netfilter-devel-owner@vger.kernel.org List-ID: Jan Engelhardt wrote: > netfilter: x_tables: move sleeping allocation outside BH-disabled region > > The jumpstack allocation needs to be moved out of the critical region. > Corrects this notice: > > BUG: sleeping function called from invalid context at mm/slub.c:1705 > [ 428.295762] in_atomic(): 1, irqs_disabled(): 0, pid: 9111, name: iptables > [ 428.295771] Pid: 9111, comm: iptables Not tainted 2.6.34-rc1 #2 > [ 428.295776] Call Trace: > [ 428.295791] [] __might_sleep+0xe5/0xed > [ 428.295801] [] __kmalloc+0x92/0xfc > [ 428.295825] [] ? xt_jumpstack_alloc+0x36/0xff [x_tables] Applied, thanks Jan.