Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965092AbaFSUmh (ORCPT ); Thu, 19 Jun 2014 16:42:37 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:43227 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964975AbaFSUmf (ORCPT ); Thu, 19 Jun 2014 16:42:35 -0400 Message-ID: <53A34B23.1000401@oracle.com> Date: Thu, 19 Jun 2014 16:42:11 -0400 From: Sasha Levin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: paulmck@linux.vnet.ibm.com, Thomas Gleixner CC: Christoph Lameter , Pekka Enberg , Matt Mackall , Andrew Morton , Dave Jones , "linux-mm@kvack.org" , LKML Subject: Re: slub/debugobjects: lockup when freeing memory References: <53A2F406.4010109@oracle.com> <20140619165247.GA4904@linux.vnet.ibm.com> <20140619202928.GG4904@linux.vnet.ibm.com> In-Reply-To: <20140619202928.GG4904@linux.vnet.ibm.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Source-IP: ucsinet22.oracle.com [156.151.31.94] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/19/2014 04:29 PM, Paul E. McKenney wrote: > rcu: Provide call_rcu_alloc() and call_rcu_sched_alloc() to avoid recursion > > The sl*b allocators use call_rcu() to manage object lifetimes, but > call_rcu() can use debug-objects, which in turn invokes the sl*b > allocators. These allocators are not prepared for this sort of > recursion, which can result in failures. > > This commit therefore creates call_rcu_alloc() and call_rcu_sched_alloc(), > which act as their call_rcu() and call_rcu_sched() counterparts, but > which avoid invoking debug-objects. These new API members are intended > only for use by the sl*b allocators, and this commit makes the sl*b > allocators use call_rcu_alloc(). Why call_rcu_sched_alloc()? Because > in CONFIG_PREEMPT=n kernels, call_rcu() maps to call_rcu_sched(), so > therefore call_rcu_alloc() must map to call_rcu_sched_alloc(). > > Reported-by: Sasha Levin > Set-straight-by: Thomas Gleixner > Signed-off-by: Paul E. McKenney Paul, what is this patch based on? It won't apply cleanly on -next or Linus's tree. Thanks, Sasha -- 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/