aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorAndrea Righi <[email protected]>2025-10-13 20:36:34 +0000
committerTejun Heo <[email protected]>2025-10-14 20:29:17 +0000
commit05e63305c85c88141500f0a2fb02afcfba9396e1 (patch)
treefc206e537b2672c403e51ec132c271dda17c7af9 /lib/mpi/mpi-mod.c
parentsched_ext: Allocate scx_kick_cpus_pnt_seqs lazily using kvzalloc() (diff)
downloadkernel-05e63305c85c88141500f0a2fb02afcfba9396e1.tar.gz
kernel-05e63305c85c88141500f0a2fb02afcfba9396e1.zip
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 <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions