Re: [PATCH v3] sched_ext: Use kvzalloc for large exit_dump allocation

From: Tejun Heo
Date: Tue Apr 08 2025 - 13:57:52 EST


On Tue, Apr 08, 2025 at 09:50:42AM -0700, Breno Leitao wrote:
> Replace kzalloc with kvzalloc for the exit_dump buffer allocation, which
> can require large contiguous memory depending on the implementation.
> This change prevents allocation failures by allowing the system to fall
> back to vmalloc when contiguous memory allocation fails.
>
> Since this buffer is only used for debugging purposes, physical memory
> contiguity is not required, making vmalloc a suitable alternative.
>
> Cc: stable@xxxxxxxxxxxxxxx
> Fixes: 07814a9439a3b0 ("sched_ext: Print debug dump after an error exit")
> Suggested-by: Rik van Riel <riel@xxxxxxxxxxx>
> Signed-off-by: Breno Leitao <leitao@xxxxxxxxxx>
> Acked-by: Andrea Righi <arighi@xxxxxxxxxx>

Applied to sched_ext/for-6.15-fixes.

Thanks.

--
tejun