From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946639AbXD3TJ0 (ORCPT ); Mon, 30 Apr 2007 15:09:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1946646AbXD3TJ0 (ORCPT ); Mon, 30 Apr 2007 15:09:26 -0400 Received: from holomorphy.com ([66.93.40.71]:52880 "EHLO holomorphy.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1946639AbXD3TJY (ORCPT ); Mon, 30 Apr 2007 15:09:24 -0400 Date: Mon, 30 Apr 2007 12:09:52 -0700 From: William Lee Irwin III To: Christoph Hellwig Cc: Andi Kleen , Alan Cox , David Chinner , Zan Lynx , Adrian Bunk , Linux Kernel Subject: Re: [2/6] add config option to vmalloc stacks (was: Re: [-mm patch] i386: enable 4k stacks by default) Message-ID: <20070430190952.GP31925@holomorphy.com> References: <20070428191927.GN3468@stusta.de> <1177795118.7828.6.camel@localhost> <20070430035838.GC77450368@melbourne.sgi.com> <20070430091754.24df88df@the-village.bc.nu> <20070430104806.GA14944@infradead.org> <20070430173819.GC19966@holomorphy.com> <20070430174310.GE19966@holomorphy.com> <20070430181104.GB14739@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070430181104.GB14739@infradead.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 On Mon, Apr 30, 2007 at 10:43:10AM -0700, William Lee Irwin III wrote: >> Add a config option to vmalloc() task stacks so that stack overflows are >> detected without fail, and with a fatal failure mode at that. On Mon, Apr 30, 2007 at 07:11:04PM +0100, Christoph Hellwig wrote: > Whee, this sounds like a really helpful although costly debugging option. If desired, I can redo it standalone. It should be clear from the remainder of the series of debug patches that it's readily extensible to IRQ stacks for similar purposes, as IRQ stacks are similarly vmalloc()'d by later patches in the series. The patch to make __pa() BUG() on vmallocspace addresses may also be worthy of consideration in conjunction with vmalloc()'ing the stack. That particular patch was suggested by freitag. -- wli