Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753756Ab0HNTrP (ORCPT ); Sat, 14 Aug 2010 15:47:15 -0400 Received: from mail001.aei.ca ([206.123.6.130]:52115 "EHLO mail001.aei.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752610Ab0HNTrO convert rfc822-to-8bit (ORCPT ); Sat, 14 Aug 2010 15:47:14 -0400 From: Ed Tomlinson To: Linus Torvalds Subject: Re: Linux 2.6.35.2 Date: Sat, 14 Aug 2010 15:47:08 -0400 User-Agent: KMail/1.13.5 (Linux/2.6.35.2-crc+; KDE/4.4.5; x86_64; ; ) Cc: sedat.dilek@gmail.com, Greg KH , LKML , penberg@kernel.org, arthur@psw.ro, wylda@volny.cz References: <201008141427.03946.edt@aei.ca> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT Message-Id: <201008141547.08722.edt@aei.ca> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2747 Lines: 63 On Saturday 14 August 2010 14:47:45 Linus Torvalds wrote: > On Sat, Aug 14, 2010 at 11:27 AM, Ed Tomlinson wrote: > > > > It seems to be helping here. Without it 35.2 would either stall in boot or give lots of tracebacks. With it things > > start normally and my background stuff works as expected. > > Ok, thanks. I've committed it to the -git tree. > > Just to verify: you have CONFIG_HIGHPTE enabled on a x86-32 kernel, > right? I'd have expected this to not ever show up anywhere else, and > I'm just verifying that there isn't anything else going on. I'm > appending the commit message, the patch hasn't changed. No. I have a x86-64 based kernel (amd64). Ed > Author: Linus Torvalds > Date: Sat Aug 14 11:44:56 2010 -0700 > > mm: fix page table unmap for stack guard page properly > > We do in fact need to unmap the page table _before_ doing the whole > stack guard page logic, because if it is needed (mainly 32-bit x86 with > PAE and CONFIG_HIGHPTE, but other architectures may use it too) then it > will do a kmap_atomic/kunmap_atomic. > > And those kmaps will create an atomic region that we cannot do > allocations in. However, the whole stack expand code will need to do > anon_vma_prepare() and vma_lock_anon_vma() and they cannot do that in an > atomic region. > > Now, a better model might actually be to do the anon_vma_prepare() when > _creating_ a VM_GROWSDOWN segment, and not have to worry about any of > this at page fault time. But in the meantime, this is the > straightforward fix for the issue. > > See https://bugzilla.kernel.org/show_bug.cgi?id=16588 for details. > > Reported-by: Wylda > Reported-by: Sedat Dilek > Reported-by: Mike Pagano > Reported-by: Fran?ois Valenduc > Tested-by: Ed Tomlinson > Cc: Pekka Enberg > Cc: Greg KH > Cc: stable@kernel.org > Signed-off-by: Linus Torvalds > > mm/memory.c | 13 ++++++------- > 1 files changed, 6 insertions(+), 7 deletions(-) > -- > 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/ > > -- 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/