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

From: Matt Fleming
Date: Mon Jul 07 2025 - 08:07:00 EST


On Mon, Jul 7, 2025 at 9:13 AM Marco Elver <elver@xxxxxxxxxx> wrote:
>
> We could allocate this in stack_depot_init(). I think it wasn't done
> so far as requiring a very large number of pools is typically
> indicative of stackdepot misuse.
>
> In any case, I agree it's better if this were configurable at boot
> time. However, need to be careful to sanitize user inputs (reject too
> small, reject too large).
>
> Matt, do you think this would work better for your usecase rather than
> rebuilding the kernel?

Yep, that's a better option. I'll send a new version.