From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Lameter Subject: Re: netfilter: Hung task Date: Mon, 19 Mar 2012 15:03:14 -0500 (CDT) Message-ID: References: <20120318141943.GA28850@1984> <20120319002811.GA30408@1984> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Pablo Neira Ayuso , kaber@trash.net, davem@davemloft.net, Dave Jones , netfilter-devel@vger.kernel.org, "linux-kernel@vger.kernel.org List" , netdev@vger.kernel.org To: Sasha Levin Return-path: In-Reply-To: Sender: netfilter-devel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Mon, 19 Mar 2012, Sasha Levin wrote: > lockdep listed all the held locks there. None of the locks listed are slub locks. > I've mentioned that it looks very similar to > https://lkml.org/lkml/2012/1/14/45 where the userspace helper tried to > read from the sysfs files, but got into a deadlock since the kernel > side held them before it called the usermode helper. Ah yes. In that case slub held a semaphore. Code was changed since then to no longer hold a semaphore when calling into sysfs. The uevent handler can execute arbitrary user space code. Do you have to hold locks while calling kmem_cache_destroy?