* [PATCH] mm: fix CONFIG_STACK_GROWSUP typo in tools/testing/vma/include/dup.h
@ 2026-06-11 1:22 Ethan Nelson-Moore
2026-06-17 11:09 ` David Hildenbrand (Arm)
2026-06-26 12:06 ` Lorenzo Stoakes
0 siblings, 2 replies; 5+ messages in thread
From: Ethan Nelson-Moore @ 2026-06-11 1:22 UTC (permalink / raw)
To: Vlastimil Babka, Jann Horn, Pedro Falcato, Lorenzo Stoakes,
Andrew Morton, Liam R. Howlett, Alice Ryhl, linux-mm
Cc: Ethan Nelson-Moore, stable
Commit 2b6a3f061f11 ("mm: declare VMA flags by bit") significantly
refactored the header file include/linux/mm.h. In that step, it introduced
a typo in an ifdef, referring to a non-existing config option
STACK_GROWS_UP, whereas the actual config option is called STACK_GROWSUP.
Commit 40a4af52e047 ("mm: fix CONFIG_STACK_GROWSUP typo in mm.h") fixed
this typo in the mm.h header file, but did not update the copy of the
code in tools/testing/vma/include/dup.h. Update this copy as well.
Commit message adapted from the above-referenced fix to mm.h.
Fixes: 2b6a3f061f11 ("mm: declare VMA flags by bit")
Cc: stable@vger.kernel.org # 7.0+
Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
---
tools/testing/vma/include/dup.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/testing/vma/include/dup.h b/tools/testing/vma/include/dup.h
index 9e0dfd3a85b0..adbc3179085d 100644
--- a/tools/testing/vma/include/dup.h
+++ b/tools/testing/vma/include/dup.h
@@ -243,7 +243,7 @@ enum {
#define VM_NOHUGEPAGE INIT_VM_FLAG(NOHUGEPAGE)
#define VM_MERGEABLE INIT_VM_FLAG(MERGEABLE)
#define VM_STACK INIT_VM_FLAG(STACK)
-#ifdef CONFIG_STACK_GROWS_UP
+#ifdef CONFIG_STACK_GROWSUP
#define VM_STACK_EARLY INIT_VM_FLAG(STACK_EARLY)
#else
#define VM_STACK_EARLY VM_NONE
--
2.43.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] mm: fix CONFIG_STACK_GROWSUP typo in tools/testing/vma/include/dup.h
2026-06-11 1:22 [PATCH] mm: fix CONFIG_STACK_GROWSUP typo in tools/testing/vma/include/dup.h Ethan Nelson-Moore
@ 2026-06-17 11:09 ` David Hildenbrand (Arm)
2026-06-26 12:03 ` Lorenzo Stoakes
2026-06-26 12:06 ` Lorenzo Stoakes
1 sibling, 1 reply; 5+ messages in thread
From: David Hildenbrand (Arm) @ 2026-06-17 11:09 UTC (permalink / raw)
To: Ethan Nelson-Moore, Vlastimil Babka, Jann Horn, Pedro Falcato,
Lorenzo Stoakes, Andrew Morton, Liam R. Howlett, Alice Ryhl,
linux-mm
Cc: stable
On 6/11/26 03:22, Ethan Nelson-Moore wrote:
> Commit 2b6a3f061f11 ("mm: declare VMA flags by bit") significantly
> refactored the header file include/linux/mm.h. In that step, it introduced
> a typo in an ifdef, referring to a non-existing config option
> STACK_GROWS_UP, whereas the actual config option is called STACK_GROWSUP.
>
> Commit 40a4af52e047 ("mm: fix CONFIG_STACK_GROWSUP typo in mm.h") fixed
> this typo in the mm.h header file, but did not update the copy of the
> code in tools/testing/vma/include/dup.h. Update this copy as well.
>
> Commit message adapted from the above-referenced fix to mm.h.
>
> Fixes: 2b6a3f061f11 ("mm: declare VMA flags by bit")
> Cc: stable@vger.kernel.org # 7.0+
This is in tools/testing/vma. Why does this require a stable tag?
What is the resulting problem (in the test!) that we even care about the Fixes: tag?
If there is no user visible (test!) problem, then this is merely a cleanup, not
a bugfix.
Change itself LGTM.
> Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
> ---
> tools/testing/vma/include/dup.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/vma/include/dup.h b/tools/testing/vma/include/dup.h
> index 9e0dfd3a85b0..adbc3179085d 100644
> --- a/tools/testing/vma/include/dup.h
> +++ b/tools/testing/vma/include/dup.h
> @@ -243,7 +243,7 @@ enum {
> #define VM_NOHUGEPAGE INIT_VM_FLAG(NOHUGEPAGE)
> #define VM_MERGEABLE INIT_VM_FLAG(MERGEABLE)
> #define VM_STACK INIT_VM_FLAG(STACK)
> -#ifdef CONFIG_STACK_GROWS_UP
> +#ifdef CONFIG_STACK_GROWSUP
> #define VM_STACK_EARLY INIT_VM_FLAG(STACK_EARLY)
> #else
> #define VM_STACK_EARLY VM_NONE
--
Cheers,
David
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mm: fix CONFIG_STACK_GROWSUP typo in tools/testing/vma/include/dup.h
2026-06-17 11:09 ` David Hildenbrand (Arm)
@ 2026-06-26 12:03 ` Lorenzo Stoakes
0 siblings, 0 replies; 5+ messages in thread
From: Lorenzo Stoakes @ 2026-06-26 12:03 UTC (permalink / raw)
To: David Hildenbrand (Arm)
Cc: Ethan Nelson-Moore, Vlastimil Babka, Jann Horn, Pedro Falcato,
Andrew Morton, Liam R. Howlett, Alice Ryhl, linux-mm, stable
On Wed, Jun 17, 2026 at 01:09:26PM +0200, David Hildenbrand (Arm) wrote:
> On 6/11/26 03:22, Ethan Nelson-Moore wrote:
> > Commit 2b6a3f061f11 ("mm: declare VMA flags by bit") significantly
> > refactored the header file include/linux/mm.h. In that step, it introduced
> > a typo in an ifdef, referring to a non-existing config option
> > STACK_GROWS_UP, whereas the actual config option is called STACK_GROWSUP.
> >
> > Commit 40a4af52e047 ("mm: fix CONFIG_STACK_GROWSUP typo in mm.h") fixed
> > this typo in the mm.h header file, but did not update the copy of the
> > code in tools/testing/vma/include/dup.h. Update this copy as well.
> >
> > Commit message adapted from the above-referenced fix to mm.h.
> >
> > Fixes: 2b6a3f061f11 ("mm: declare VMA flags by bit")
> > Cc: stable@vger.kernel.org # 7.0+
>
> This is in tools/testing/vma. Why does this require a stable tag?
>
> What is the resulting problem (in the test!) that we even care about the Fixes: tag?
Yeah I doubt very much that stable users are running VMA userland tests on
parisc :))
>
> If there is no user visible (test!) problem, then this is merely a cleanup, not
> a bugfix.
Yeah I think moreso this.
>
> Change itself LGTM.
>
> > Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
> > ---
> > tools/testing/vma/include/dup.h | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/tools/testing/vma/include/dup.h b/tools/testing/vma/include/dup.h
> > index 9e0dfd3a85b0..adbc3179085d 100644
> > --- a/tools/testing/vma/include/dup.h
> > +++ b/tools/testing/vma/include/dup.h
> > @@ -243,7 +243,7 @@ enum {
> > #define VM_NOHUGEPAGE INIT_VM_FLAG(NOHUGEPAGE)
> > #define VM_MERGEABLE INIT_VM_FLAG(MERGEABLE)
> > #define VM_STACK INIT_VM_FLAG(STACK)
> > -#ifdef CONFIG_STACK_GROWS_UP
> > +#ifdef CONFIG_STACK_GROWSUP
> > #define VM_STACK_EARLY INIT_VM_FLAG(STACK_EARLY)
> > #else
> > #define VM_STACK_EARLY VM_NONE
>
>
> --
> Cheers,
>
> David
Thanks, Lorenzo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mm: fix CONFIG_STACK_GROWSUP typo in tools/testing/vma/include/dup.h
2026-06-11 1:22 [PATCH] mm: fix CONFIG_STACK_GROWSUP typo in tools/testing/vma/include/dup.h Ethan Nelson-Moore
2026-06-17 11:09 ` David Hildenbrand (Arm)
@ 2026-06-26 12:06 ` Lorenzo Stoakes
2026-06-26 16:49 ` Andrew Morton
1 sibling, 1 reply; 5+ messages in thread
From: Lorenzo Stoakes @ 2026-06-26 12:06 UTC (permalink / raw)
To: Ethan Nelson-Moore
Cc: Vlastimil Babka, Jann Horn, Pedro Falcato, Andrew Morton,
Liam R. Howlett, Alice Ryhl, linux-mm, stable
On Wed, Jun 10, 2026 at 06:22:44PM -0700, Ethan Nelson-Moore wrote:
> Commit 2b6a3f061f11 ("mm: declare VMA flags by bit") significantly
> refactored the header file include/linux/mm.h. In that step, it introduced
> a typo in an ifdef, referring to a non-existing config option
> STACK_GROWS_UP, whereas the actual config option is called STACK_GROWSUP.
>
> Commit 40a4af52e047 ("mm: fix CONFIG_STACK_GROWSUP typo in mm.h") fixed
> this typo in the mm.h header file, but did not update the copy of the
> code in tools/testing/vma/include/dup.h. Update this copy as well.
>
> Commit message adapted from the above-referenced fix to mm.h.
>
> Fixes: 2b6a3f061f11 ("mm: declare VMA flags by bit")
> Cc: stable@vger.kernel.org # 7.0+
Actually since we don't set the config options like the kernel does in
userland tests, this can't actually be something that you can get to
happen :P
So drop both Fixes, and the Cc: stable please as per David (Andrew - can
you make that change? Thanks!)
> Signed-off-by: Ethan Nelson-Moore <enelsonmoore@gmail.com>
Thanks for fixing this however! I typo'd this in the actual code but didn't
update the VMA userland test code. Appreciate the cleanup! So, with the
fixes, Cc: stable tags dropped:
Reviewed-by: Lorenzo Stoakes <ljs@kernel.org>
> ---
> tools/testing/vma/include/dup.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/vma/include/dup.h b/tools/testing/vma/include/dup.h
> index 9e0dfd3a85b0..adbc3179085d 100644
> --- a/tools/testing/vma/include/dup.h
> +++ b/tools/testing/vma/include/dup.h
> @@ -243,7 +243,7 @@ enum {
> #define VM_NOHUGEPAGE INIT_VM_FLAG(NOHUGEPAGE)
> #define VM_MERGEABLE INIT_VM_FLAG(MERGEABLE)
> #define VM_STACK INIT_VM_FLAG(STACK)
> -#ifdef CONFIG_STACK_GROWS_UP
> +#ifdef CONFIG_STACK_GROWSUP
> #define VM_STACK_EARLY INIT_VM_FLAG(STACK_EARLY)
> #else
> #define VM_STACK_EARLY VM_NONE
> --
> 2.43.0
>
Cheers, Lorenzo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] mm: fix CONFIG_STACK_GROWSUP typo in tools/testing/vma/include/dup.h
2026-06-26 12:06 ` Lorenzo Stoakes
@ 2026-06-26 16:49 ` Andrew Morton
0 siblings, 0 replies; 5+ messages in thread
From: Andrew Morton @ 2026-06-26 16:49 UTC (permalink / raw)
To: Lorenzo Stoakes
Cc: Ethan Nelson-Moore, Vlastimil Babka, Jann Horn, Pedro Falcato,
Liam R. Howlett, Alice Ryhl, linux-mm, stable
On Fri, 26 Jun 2026 13:06:23 +0100 Lorenzo Stoakes <ljs@kernel.org> wrote:
> So drop both Fixes, and the Cc: stable please as per David (Andrew - can
> you make that change? Thanks!)
Done, thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-06-26 16:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-11 1:22 [PATCH] mm: fix CONFIG_STACK_GROWSUP typo in tools/testing/vma/include/dup.h Ethan Nelson-Moore
2026-06-17 11:09 ` David Hildenbrand (Arm)
2026-06-26 12:03 ` Lorenzo Stoakes
2026-06-26 12:06 ` Lorenzo Stoakes
2026-06-26 16:49 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox