Re: [2/3] mm: fix up some user-visible effects of the stack guard page

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Friday, August 20, 2010 - 9:07 am

On Fri, Aug 20, 2010 at 8:54 AM, Linus Torvalds
<torvalds@linux-foundation.org> wrote:

Actually, thinking some more about it, that may not be a good idea.
Why? Simply because we may want to merge the vma's back together if
you do munlock. And it won't (and mustn't) merge if the vm_flags
differ in VM_GROWSDOWN.

So I do think we want to keep VM_GROWSDOWN (and VM_GROWSUP on PA-RISC)
even across a vma split.

Of course, we could set a flag whether the vma really does have a
guard page or not.

That said, it does strike me as rather odd to do VM ops on partial
stacks. What are you doing, exactly, to hit this?

                         Linus
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [2/3] mm: fix up some user-visible effects of the stac ..., Linus Torvalds, (Fri Aug 20, 9:07 am)