Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752897Ab0AHA04 (ORCPT ); Thu, 7 Jan 2010 19:26:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752222Ab0AHA0z (ORCPT ); Thu, 7 Jan 2010 19:26:55 -0500 Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:60808 "EHLO fgwmail7.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752113Ab0AHA0y (ORCPT ); Thu, 7 Jan 2010 19:26:54 -0500 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 Date: Fri, 8 Jan 2010 09:23:33 +0900 From: KAMEZAWA Hiroyuki To: Linus Torvalds Cc: Peter Zijlstra , Christoph Lameter , Arjan van de Ven , "Paul E. McKenney" , "linux-kernel@vger.kernel.org" , "linux-mm@kvack.org" , "minchan.kim@gmail.com" , "hugh.dickins" , Nick Piggin , Ingo Molnar Subject: Re: [RFC][PATCH 6/8] mm: handle_speculative_fault() Message-Id: <20100108092333.1040c799.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: References: <20100104182429.833180340@chello.nl> <20100104182813.753545361@chello.nl> <20100105054536.44bf8002@infradead.org> <20100105192243.1d6b2213@infradead.org> <1262884960.4049.106.camel@laptop> <1262900683.4049.139.camel@laptop> Organization: FUJITSU Co. LTD. X-Mailer: Sylpheed 2.7.1 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 979 Lines: 32 On Thu, 7 Jan 2010 14:33:50 -0800 (PST) Linus Torvalds wrote: > > > On Thu, 7 Jan 2010, Peter Zijlstra wrote: > > > > I haven't yet looked at the patch, but isn't expand_stack() kinda like > > what you want? That serializes using anon_vma_lock(). > > Yeah, that sounds like the right thing to do. It is the same operation, > after all (and has the same effects, especially for the special case of > upwards-growing stacks). > > So basically the idea is to extend that stack expansion to brk(), and > possibly mmap() in general. > Hmm, do_brk() sometimes unmap conflicting mapping. Isn't it be a problem ? Stack expansion just fails and SEGV if it hit with other mmaps.... Thanks, -Kame -- 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/