From mboxrd@z Thu Jan 1 00:00:00 1970 From: KOSAKI Motohiro Subject: Re: [RESEND][PATCH] Mark thread stack correctly in proc//maps Date: Thu, 02 Feb 2012 16:40:12 -0500 Message-ID: <4F2B02BC.8010308@gmail.com> References: <20120116163106.GC7180@jl-vm1.vm.bytemark.co.uk> <1326776095-2629-1-git-send-email-siddhesh.poyarekar@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: owner-linux-mm@kvack.org To: Siddhesh Poyarekar Cc: Jamie Lokier , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Alexander Viro , linux-fsdevel@vger.kernel.org, Michael Kerrisk , linux-man@vger.kernel.org List-Id: linux-man@vger.kernel.org > extern unsigned long move_page_tables(struct vm_area_struct *vma, > diff --git a/mm/mmap.c b/mm/mmap.c > index 3f758c7..2f9f540 100644 > --- a/mm/mmap.c > +++ b/mm/mmap.c > @@ -992,6 +992,9 @@ unsigned long do_mmap_pgoff(struct file *file, > unsigned long addr, > vm_flags = calc_vm_prot_bits(prot) | calc_vm_flag_bits(flags) | > mm->def_flags | VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC; > > + if (flags& MAP_STACK) > + vm_flags |= VM_STACK_FLAGS; ?? MAP_STACK doesn't mean auto stack expansion. Why do you turn on VM_GROWSDOWN? Seems incorrect. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org