Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754695Ab3D2PP5 (ORCPT ); Mon, 29 Apr 2013 11:15:57 -0400 Received: from mx2.parallels.com ([199.115.105.18]:58150 "EHLO mx2.parallels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750792Ab3D2PP4 (ORCPT ); Mon, 29 Apr 2013 11:15:56 -0400 Message-ID: <517E8EE1.6090306@parallels.com> Date: Mon, 29 Apr 2013 19:16:49 +0400 From: Glauber Costa User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130402 Thunderbird/17.0.5 MIME-Version: 1.0 To: Christoph Lameter CC: Pekka Enberg , Tetsuo Handa , LKML Subject: Re: [linux-next-20130422] Bug in SLAB? References: <201304242108.FDC35910.VJMHFFFSOLOOQt@I-love.SAKURA.ne.jp> <201304252120.GII21814.FMJFtHLOOVQFOS@I-love.SAKURA.ne.jp> <201304291140.IFJ95894.OFLSFFHQOOMVJt@I-love.SAKURA.ne.jp> <517E8758.9040803@parallels.com> <0000013e564e0e5a-121c52f9-e489-470f-99d5-67a5ad42eb75-000000@email.amazonses.com> In-Reply-To: <0000013e564e0e5a-121c52f9-e489-470f-99d5-67a5ad42eb75-000000@email.amazonses.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [46.39.244.6] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 580 Lines: 14 On 04/29/2013 06:59 PM, Christoph Lameter wrote: > The code in kmalloc_index() creates a BUG() and preferentially should > create a compile time failure when a number that is too big is passed to it. > > What is MAX_ORDER on the architecture? Returning NULL is fine, but kmalloc_index currently does not check for MAX_ORDER at all. -- 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/