Commit 4706830
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: 07814a9 ("sched_ext: Print debug dump after an error exit")
Suggested-by: Rik van Riel <riel@surriel.com>
Signed-off-by: Breno Leitao <leitao@debian.org>
Acked-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>1 parent 4a1d8ab commit 4706830
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4623 | 4623 | | |
4624 | 4624 | | |
4625 | 4625 | | |
4626 | | - | |
| 4626 | + | |
4627 | 4627 | | |
4628 | 4628 | | |
4629 | 4629 | | |
| |||
4639 | 4639 | | |
4640 | 4640 | | |
4641 | 4641 | | |
4642 | | - | |
| 4642 | + | |
4643 | 4643 | | |
4644 | 4644 | | |
4645 | 4645 | | |
| |||
0 commit comments