Re: [syzbot] [net?] WARNING in stack_depot_save_flags (2)

From: syzbot

Date: Wed Nov 11 2026 - 16:01:38 EST


> #syz test: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master

Patch testing via #syz test is temporarily disabled.
See https://github.com/google/syzkaller/issues/8122 for details.

>
> diff --git a/lib/stackdepot.c b/lib/stackdepot.c
> index 90c52f2e0d3f4..da4dba8b40bd3 100644
> --- a/lib/stackdepot.c
> +++ b/lib/stackdepot.c
> @@ -299,7 +299,13 @@ static bool depot_init_pool(void **prealloc)
> /* Bail out if we reached the pool limit. */
> WARN_ON_ONCE(pools_num > stack_max_pools); /* should never happen */
> WARN_ON_ONCE(!new_pool); /* to avoid unnecessary pre-allocation */
> - WARN_ONCE(1, "Stack depot reached limit capacity");
> + /*
> + * Exhaustion is a handled resource limit, not a bug:
> + * all users cope with a failed save, and privileged workloads
> + * (e.g. BPF JIT churning unique stacks under KASAN) can reach
> + * it legitimately. Keep a one-time notice, not a WARN() splat.
> + */
> + pr_warn_once("Stack depot reached limit capacity");
> return false;
> }
>