summaryrefslogtreecommitdiff
path: root/include/linux/overflow.h
diff options
context:
space:
mode:
authorAndrea Righi <arighi@nvidia.com>2025-10-13 23:36:34 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-12-01 13:46:08 +0300
commit18228a70a01a49e34fe599ccacc88a2bca70dce2 (patch)
treec6c12ab465b7553608820a6e8d72587983833fd7 /include/linux/overflow.h
parentf1ad80fdf97b6ef1d2ae8271cb10eb01c3a561c7 (diff)
downloadlinux-18228a70a01a49e34fe599ccacc88a2bca70dce2.tar.xz
sched_ext: Fix scx_kick_pseqs corruption on concurrent scheduler loads
commit 05e63305c85c88141500f0a2fb02afcfba9396e1 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/overflow.h')
0 files changed, 0 insertions, 0 deletions