Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754450AbYH0GCf (ORCPT ); Wed, 27 Aug 2008 02:02:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752755AbYH0GCH (ORCPT ); Wed, 27 Aug 2008 02:02:07 -0400 Received: from ozlabs.org ([203.10.76.45]:56096 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752342AbYH0GCF (ORCPT ); Wed, 27 Aug 2008 02:02:05 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18612.60878.887716.452936@drongo.ozlabs.ibm.com> Date: Wed, 27 Aug 2008 16:01:50 +1000 From: Paul Mackerras To: Linus Torvalds Cc: Parag Warudkar , Adrian Bunk , Rusty Russell , "Alan D. Brunelle" , "Rafael J. Wysocki" , Linux Kernel Mailing List , Kernel Testers List , Andrew Morton , Arjan van de Ven , Ingo Molnar , linux-embedded@vger.kernel.org Subject: Re: [Bug #11342] Linux 2.6.27-rc3: kernel BUG at mm/vmalloc.c - bisected In-Reply-To: References: <200808261111.19205.rusty@rustcorp.com.au> <20080826183051.GB10925@cs181140183.pp.htv.fi> <20080826205916.GB11734@cs181140183.pp.htv.fi> X-Mailer: VM 8.0.9 under Emacs 21.4.1 (powerpc-unknown-linux-gnu) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 849 Lines: 21 Linus Torvalds writes: > 4kB used to be the _only_ choice. And no, there weren't even irq stacks. > So that 4kB was not just the whole kernel call-chain, it was also all the > irq nesting above it. I think your memory is failing you. In 2.4 and earlier, the kernel stack was 8kB minus the size of the task_struct, which sat at the start of the 8kB. For instance, from include/asm-i386/processor.h for 2.4.29: #define THREAD_SIZE (2*PAGE_SIZE) #define alloc_task_struct() ((struct task_struct *) __get_free_pages(GFP_KERNEL,1)) #define free_task_struct(p) free_pages((unsigned long) (p), 1) Paul. -- 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/