diff options
| author | David Carlier <devnexen@gmail.com> | 2026-02-12 20:35:19 +0000 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-02-12 11:17:35 -1000 |
| commit | 048714d9df73a724d3f84b587f1110963e32f9b3 (patch) | |
| tree | c8ad50f35d66bef9b8cf26445a108eebfa68d532 /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git | |
| parent | 988369d236e46e6bc68d2616fbc008aa6b06a454 (diff) | |
tools/sched_ext: scx_userland: fix restart and stats thread lifecycle bugs
Fix three issues in scx_userland's restart path:
- exit_req is not reset on restart, causing sched_main_loop() to exit
immediately without doing any scheduling work.
- stats_printer thread handle is local to spawn_stats_thread(), making
it impossible to join from main(). Promote it to file scope.
- The stats thread continues reading skel->bss after the skeleton is
destroyed on restart, causing a use-after-free. Join the stats thread
before destroying the skeleton to ensure it has exited.
Signed-off-by: David Carlier <devnexen@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
