Re: [PATCH] mm: Enforce a minimal stack gap even against inaccessible VMAs

From: Andrew Morton
Date: Wed Oct 09 2024 - 17:08:36 EST


On Wed, 9 Oct 2024 15:53:50 +0100 Lorenzo Stoakes <lorenzo.stoakes@xxxxxxxxxx> wrote:

> > All errors (new ones prefixed by >>):
> >
> > mm/mmap.c: In function 'expand_upwards':
> > >> mm/mmap.c:1069:39: error: 'prev' undeclared (first use in this function)
> > 1069 | if (vma_is_accessible(prev))
>
> Suspect this is just a simple typo and should be next rather than prev :>)

Agree, I'll make that change.

CONFIG_STACK_GROWSUP is only a parisc thing. That makes runtime
testing difficult.