Re: [PATCH] stackdepot: Make max number of pools build-time configurable

From: Matt Fleming
Date: Wed Jun 11 2025 - 08:21:54 EST


On Tue, Jun 10, 2025 at 5:09 PM Andrey Konovalov <andreyknvl@xxxxxxxxx> wrote:
>
> On Tue, Jun 10, 2025 at 1:16 PM Matt Fleming <matt@xxxxxxxxxxxxxxxx> wrote:
> >
> > From: Matt Fleming <mfleming@xxxxxxxxxxxxxx>
> >
> > We're hitting the WARN in depot_init_pool() about reaching the stack
> > depot limit. My assumption is because we have long stacks that don't
> > dedup very well.
>
> Note that this might happen if filter_irq_stacks() somehow fails in your setup.
>
> See e.g. this:
>
> https://lore.kernel.org/all/CA+fCnZdWgAD1pu4yyjON0ph9ae1B6iaWas0CbET+MXLNNXt5Hg@xxxxxxxxxxxxxx/
> https://lore.kernel.org/all/44140c34-e2bd-4f6e-892c-51469edc8dfb@xxxxxxxxxx/

Thanks for the tip. I'll double-check if we're hitting a similar issue
before sending a v2.