diff options
| author | fangqiurong <fangqiurong@kylinos.cn> | 2026-08-14 11:26:23 +0800 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-08-14 09:17:01 -1000 |
| commit | 03506edca637a8465dba9f635c50e9884fbcaf4e (patch) | |
| tree | f1506d584dcf2f494f96c06de522696c9192bec5 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 1d0a73dd0c4f5a904ece163fdd24c7e03de0fb1b (diff) | |
sched_ext: Fix exit_task leak on fork failure during enable
scx_fork() initializes tasks when scx_init_task_enabled is set, but
scx_cancel_fork() only exits them when scx_enabled() is true. A fork
that fails in the enable window (between releasing scx_fork_rwsem and
setting __scx_enabled) runs ops.init_task() but never ops.exit_task().
Gate scx_cancel_fork() on scx_init_task_enabled.
Fixes: 4269c603cc26 ("sched_ext: Enable scx_ops_init_task() separately")
Cc: stable@vger.kernel.org # v6.12+
Signed-off-by: fangqiurong <fangqiurong@kylinos.cn>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
