diff options
| author | Andrea Righi <arighi@nvidia.com> | 2025-10-13 23:36:34 +0300 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2025-10-14 23:29:17 +0300 |
| commit | 05e63305c85c88141500f0a2fb02afcfba9396e1 (patch) | |
| tree | fc206e537b2672c403e51ec132c271dda17c7af9 /scripts/livepatch/init.c | |
| parent | 14c1da3895a116f4e32c20487046655f26d3999b (diff) | |
| download | linux-05e63305c85c88141500f0a2fb02afcfba9396e1.tar.xz | |
sched_ext: Fix scx_kick_pseqs corruption on concurrent scheduler loads
If we load a BPF scheduler while another scheduler is already running,
alloc_kick_pseqs() would be called again, overwriting the previously
allocated arrays.
Fix by moving the alloc_kick_pseqs() call after the scx_enable_state()
check, ensuring that the arrays are only allocated when a scheduler can
actually be loaded.
Fixes: 14c1da3895a11 ("sched_ext: Allocate scx_kick_cpus_pnt_seqs lazily using kvzalloc()")
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'scripts/livepatch/init.c')
0 files changed, 0 insertions, 0 deletions
