Re: [PATCH 2/2] mm: mmap: map MAP_STACK to VM_NOHUGEPAGE

From: Andrew Morton
Date: Tue Jan 16 2024 - 17:29:08 EST


On Tue, 16 Jan 2024 12:57:41 -0800 Yang Shi <shy828301@xxxxxxxxx> wrote:

> > Should this be marked for stable? Given how easily it is for pthreads
> > to allocate hugepages w/o this change, it can easily cause memory
> > bloat on larger systems and/or users with high thread counts. I don't
> > think that will be welcomed, and seems odd that just 6.7 should suffer
> > this.
>
> Thanks for the suggestion, fine to me.
>

Thanks, added, along with

Fixes: efa7df3e3bb5 ("mm: align larger anonymous mappings on THP boundaries")