Re: [PATCH 0/3] properly account for stack randomization and guard gap

From: Rik van Riel
Date: Fri Jun 23 2017 - 11:13:48 EST


On Fri, 2017-06-23 at 10:35 +0200, Ingo Molnar wrote:
> * riel@xxxxxxxxxx <riel@xxxxxxxxxx> wrote:
>
> > When RLIMIT_STACK is larger than the minimum gap enforced by
> > mmap_base(), it is possible for the kernel to place the mmap
> > area where the stack wants to grow, resulting in the stack
> > not being able to use the space that should have been allocated
> > to it through RLIMIT_STACK.
> >
> > This series ensures that x86, ARM64, and PPC have at least
> > RLIMIT_STACK + stack randomization + the stack guard gap
> > space available for the stack.
> >
> > s390 seems to be ok. I have not checked other architectures.
>
> x86 patch LGTM:
>
> Â Acked-by: Ingo Molnar <mingo@xxxxxxxxxx>
>
> ... but I suspect this wants to go via -mm or Linus directly?

I believe Andrew picked it up yesterday.