Re: WARNING: at mm/mremap.c:211 move_page_tables in i386

From: Linus Torvalds
Date: Tue Jul 14 2020 - 12:19:01 EST


On Tue, Jul 14, 2020 at 9:08 AM Joel Fernandes <joel@xxxxxxxxxxxxxxxxx> wrote:
>
> I was thinking we should not call move_page_tables() with overlapping ranges
> at all, just to keep things simple.

No, we're not breaking the existing stack movement code just to keep
things simple.

The rule is "make it as simple as possible, but no simpler".

And "as possible" in the case of Linux means "no breaking of old
interfaces". The stack randomization movement most certainly counts.

Linus