]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: sink: properly init applet under sft lock
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 24 Jul 2024 13:45:50 +0000 (15:45 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Wed, 24 Jul 2024 15:58:24 +0000 (17:58 +0200)
commitc81b8ee480f7e55809b56b369cfea1bf36879e67
tree4250c058daf0f16a9a89a21226b3d8bf0b8fb0ce
parent06547dcf52f56471ae044250e2d4f20fdf0219ba
BUG/MEDIUM: sink: properly init applet under sft lock

Since 09d69eacf8 ("MEDIUM: sink: start applets asynchronously") the applet
is no longer initialized under the sft lock while it was the case before.

At first it doesn't seem to be an issue, but if we look closer at
sink_forward_session_init(), we can see that sft->appctx is assigned
while it can be accessed at the same time from sink_init_forward().

Let's restore the old guarantees by performing the .init under the sft
lock.

No backport needed unless 09d69eacf8 is.
src/sink.c