Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755301AbbFPVHu (ORCPT ); Tue, 16 Jun 2015 17:07:50 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:27672 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754883AbbFPVHf (ORCPT ); Tue, 16 Jun 2015 17:07:35 -0400 Date: Tue, 16 Jun 2015 14:07:21 -0700 From: Martin KaFai Lau To: Larry Finger CC: Tejun Heo , Catalin Marinas , Christoph Lameter , , , Kernel Team Subject: Re: [RFC NEXT] mm: Fix suspicious RCU usage at kernel/sched/core.c:7318 Message-ID: <20150616210720.GC3958923@devbig242.prn2.facebook.com> References: <1434403518-5308-1-git-send-email-Larry.Finger@lwfinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1434403518-5308-1-git-send-email-Larry.Finger@lwfinger.net> User-Agent: Mutt/1.5.20 (2009-12-10) X-Originating-IP: [192.168.52.123] X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.14.151,1.0.33,0.0.0000 definitions=2015-06-16_06:2015-06-16,2015-06-16,1970-01-01 signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 865 Lines: 15 On Mon, Jun 15, 2015 at 04:25:18PM -0500, Larry Finger wrote: > Additional backtrace lines are truncated. In addition, the above splat is > followed by several "BUG: sleeping function called from invalid context > at mm/slub.c:1268" outputs. As suggested by Martin KaFai Lau, these are the > clue to the fix. Routine kmemleak_alloc_percpu() always uses GFP_KERNEL > for its allocations, whereas it should use the value input to pcpu_alloc(). Just a minor nit, 'kmemleak_alloc_percpu() should follow the gfp from per_alloc()' may be a more accurate title to describe the patch. Acked-by: Martin KaFai Lau -- 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/