Re: [PATCH 2/2] x86/mmap: handle worst-case heap randomization in mmap_base

From: Kees Cook
Date: Fri Apr 19 2019 - 15:03:15 EST


On Fri, Apr 19, 2019 at 3:51 AM Ingo Molnar <mingo@xxxxxxxxxx> wrote:
> I'd suggest incorporating all feedback and sending a v2 series - it's
> much easier to get people's attention via code submitted. ;-)

I sent my patch out, akpm added it to -mm and then xtensa broke, and
it got removed. Soooo... I'm looking at it again now. I think I might
combine the ideas and in the interpreter case bump the entire mmap
base by the brk randomization size. That should make things less
strange and solve the corner case without reducing available address
space in the general case.

--
Kees Cook