]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: spoe: Don't try to get agent config during SPOP healthcheck
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 7 Feb 2019 15:13:26 +0000 (16:13 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 7 Feb 2019 20:23:58 +0000 (21:23 +0100)
commit11389018bc92bf7b94533e682af5cb4bbf0e43d9
tree4e7d1d6f8fb775dbc7364fc65d34cb10b145f2df
parentff9c9140f4da4f14bef8c9a5955f9453d0f26c60
BUG/MAJOR: spoe: Don't try to get agent config during SPOP healthcheck

During SPOP healthchecks, a dummy appctx is used to create the HAPROXY-HELLO
frame and then to parse the AGENT-HELLO frame. No agent are attached to it. So
it is important to not rely on an agent during these stages. When HAPROXY-HELLO
frame is created, there is no problem, all accesses to an agent are
guarded. This is not true during the parsing of the AGENT-HELLO frame. Thus, it
is possible to crash HAProxy with a SPOA declaring the async or the pipelining
capability during a healthcheck.

This patch must be backported to 1.9 and 1.8.
src/flt_spoe.c