Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759625AbXFDR6x (ORCPT ); Mon, 4 Jun 2007 13:58:53 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755494AbXFDR6r (ORCPT ); Mon, 4 Jun 2007 13:58:47 -0400 Received: from holomorphy.com ([66.93.40.71]:47203 "EHLO holomorphy.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754096AbXFDR6r (ORCPT ); Mon, 4 Jun 2007 13:58:47 -0400 Date: Mon, 4 Jun 2007 10:59:24 -0700 From: William Lee Irwin III To: Andrew Morton Cc: Christoph Lameter , linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, jeremy@goop.org Subject: Re: SLUB: Return ZERO_SIZE_PTR for kmalloc(0) Message-ID: <20070604175924.GE15426@holomorphy.com> References: <20070601204141.f84ad72f.akpm@linux-foundation.org> <20070601213117.1178e8e0.akpm@linux-foundation.org> <20070601215427.f06d09e7.akpm@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070601215427.f06d09e7.akpm@linux-foundation.org> Organization: The Domain of Holomorphy User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1012 Lines: 21 On Fri, 1 Jun 2007 21:45:15 -0700 (PDT) Christoph Lameter wrote: >> That would have to occur with objects that are repeatedly allocated and >> then linked toghether etc. Linking typicallty requires a listhead so its >> typically difficult to do zero length objects. On Fri, Jun 01, 2007 at 09:54:27PM -0700, Andrew Morton wrote: > Well I can't immediately think of a scenario in which it's likely to occur, > but we're in the position of trying to prove a negative. > Poke Bill Irwin - he'll think of something ;) I've yet to see anyone get quite that creative, but I've not gone fishing for instances of this. I can think of plenty of places where one could do something like this in practice, but don't care to give anyone any ideas. -- wli - 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/