]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
stackdepot: make max number of pools boot-time configurable
authorMatt Fleming <mfleming@cloudflare.com>
Fri, 18 Jul 2025 15:39:28 +0000 (16:39 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 2 Aug 2025 19:01:38 +0000 (12:01 -0700)
commited4f142f72a9191b8236778093074c277435bf8a
tree6e2ee493ddd2295eb32886efdd6924d60a196f03
parent6c6d8f8ba7789c221a2e4c43a0ed982c7a41f428
stackdepot: make max number of pools boot-time configurable

We're hitting the WARN in depot_init_pool() about reaching the stack depot
limit because we have long stacks that don't dedup very well.

Introduce a new start-up parameter to allow users to set the number of
maximum stack depot pools.

Link: https://lkml.kernel.org/r/20250718153928.94229-1-matt@readmodwrite.com
Signed-off-by: Matt Fleming <mfleming@cloudflare.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Acked-by: Marco Elver <elver@google.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Andrey Konovalov <andreyknvl@gmail.com>
Cc: Dmitriy Vyukov <dvyukov@google.com>
Cc: Oscar Salvador <osalvador@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Documentation/admin-guide/kernel-parameters.txt
lib/stackdepot.c