]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: proxy: protect "show errors" against backend deletion
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Jul 2026 09:28:07 +0000 (11:28 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Jul 2026 12:20:18 +0000 (14:20 +0200)
commit2caecfd5984d3396ffadc7345a7f289a37f050c4
treed5ff50f4f9bff6e2934ef19984103db2fa5bb554
parent8120eace828cb0bd524d57e2145fd1557199bbf4
BUG/MEDIUM: proxy: protect "show errors" against backend deletion

Command "show errors" is not safe as it loops over the list of proxies.
A crash may occur if the task yields on a proxy which is deleted just
before the dump is restarted.

As with previous fixes dealing with similar cases, this is fixed via the
watcher mechanism. A new <px_watcher> member is defined in
<show_errors_ctx> and used to loop over the proxies list.

This must be backported up to 3.4.
src/proxy.c