Commit 28401a63 authored by Breno Leitao's avatar Breno Leitao Committed by Greg Kroah-Hartman
Browse files

sched_ext: Use kvzalloc for large exit_dump allocation



commit 47068309 upstream.

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@vger.kernel.org
Fixes: 07814a94 ("sched_ext: Print debug dump after an error exit")
Suggested-by: default avatarRik van Riel <riel@surriel.com>
Signed-off-by: default avatarBreno Leitao <leitao@debian.org>
Acked-by: default avatarAndrea Righi <arighi@nvidia.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 30c0d6e7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment