Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752640AbYCYHsO (ORCPT ); Tue, 25 Mar 2008 03:48:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751084AbYCYHr7 (ORCPT ); Tue, 25 Mar 2008 03:47:59 -0400 Received: from one.firstfloor.org ([213.235.205.2]:34555 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750887AbYCYHr6 (ORCPT ); Tue, 25 Mar 2008 03:47:58 -0400 Date: Tue, 25 Mar 2008 08:51:06 +0100 From: Andi Kleen To: Christoph Lameter Cc: Andi Kleen , linux-mm@kvack.org, linux-kernel@vger.kernel.org, viro@ftp.linux.org.uk Subject: Re: [11/14] vcompound: Fallbacks for order 1 stack allocations on IA64 and x86 Message-ID: <20080325075106.GF2170@one.firstfloor.org> References: <20080321061703.921169367@sgi.com> <20080321061726.782068299@sgi.com> <871w63iuap.fsf@basil.nowhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1376 Lines: 34 On Mon, Mar 24, 2008 at 12:53:19PM -0700, Christoph Lameter wrote: > On Fri, 21 Mar 2008, Andi Kleen wrote: > > > The traditional reason this was discouraged (people seem to reinvent > > variants of this patch all the time) was that there used > > to be drivers that did __pa() (or equivalent) on stack addresses > > and that doesn't work with vmalloc pages. > > > > I don't know if such drivers still exist, but such a change > > is certainly not a no-brainer > > I thought that had been cleaned up because some arches already have Someone posted a patch recently that showed that the cdrom layer does it. Might be more. It is hard to audit a few million lines of driver code. > virtually mapped stacks? This could be debugged by testing with > CONFIG_VFALLBACK_ALWAYS set. Which results in a stack that is always > vmalloc'ed and thus the driver should fail. It might be a subtle failure. Maybe sparse could be taught to check for this if it happens in a single function? (cc'ing Al who might have some thoughts on this). Of course if it happens spread out over multiple functions sparse wouldn't help neither. -Andi -- 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/