]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: applet: Remove appctx from buffer wait list on release
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 10 Nov 2023 16:04:23 +0000 (17:04 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 10 Nov 2023 16:49:57 +0000 (17:49 +0100)
commitebf90ca550a711b8b5f2620c83f51b4461839cd2
tree4a91f67b2b2e4594fb4ebb9255ed656bb2b8d491
parent9530e7dcd38f2a771558c75b40c7decf14c1bc7a
BUG/MEDIUM: applet: Remove appctx from buffer wait list on release

For now, the appctx is removed from the buffer wait list when it is
freed. However, when it is released, it is not necessarily freed
immediately. But it is detached from the SC. If it is still registered in
the buffer wait list, it could then be woken up to get a buffer. At this
stage it is totally unexpected, especially because we must access the SC.

The fix is obvious, the appctx must be removed from the buffer wait list on
release.

Note this bug exists because the appctx was moved at the mux level.

This patch must be backported as far as 2.6.
src/applet.c