Skip to content
Commit 47068309 authored by Breno Leitao's avatar Breno Leitao Committed by Tejun Heo
Browse files

sched_ext: Use kvzalloc for large exit_dump allocation



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>
parent 4a1d8aba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment