Re: [PATCHv2] mm: Fix warning in move_normal_pmd()

From: Linus Torvalds
Date: Wed Jul 15 2020 - 19:19:05 EST


On Wed, Jul 15, 2020 at 4:04 PM Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> It *might* be as simple as this incremental thing on top

No, it needs to be

+ if (*old_addr + *len < old->vm_end)
+ return;

in try_to_align_end(), of course.

Now I'm going for a lie-down, because this cross-eyed thing isn't working.

Linus