]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: task: Do not destroy a task that is not ours in task_destroy
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 9 Apr 2026 13:37:14 +0000 (15:37 +0200)
committerOlivier Houchard <cognet@ci0.org>
Fri, 18 Sep 2026 12:37:12 +0000 (14:37 +0200)
commit42a586e52a60deb4e93c76fafd19349d605a3f7a
treeafe775040139cb3a007724c88f8f51e8657633e2
parented3cd8c1b9143b13a107b4921c40957d16ee7d9f
BUG/MEDIUM: task: Do not destroy a task that is not ours in task_destroy

In task_destroy(), if the task is not exclusively ours, then just use
task_kill(). If it is a shared task, then there is a race condition if
another thread tries to schedule it at the same time, which could result
in the task being scheduled after been freed.

This should be backported up to 2.8.
include/haproxy/task.h