]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: quic: QUIC CID removed from tree without locking
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 13 Dec 2023 10:45:43 +0000 (11:45 +0100)
committerFrédéric Lécaille <flecaille@haproxy.com>
Wed, 13 Dec 2023 13:42:50 +0000 (14:42 +0100)
commitdd58dff1e64fa382d368958469506c296454fde6
tree8b5afa37a65c912a511d083150709749c87f784c
parentf8e095b05828b8c82a01e37a18ea33e581e55431
BUG/MEDIUM: quic: QUIC CID removed from tree without locking

This bug arrived with this commit:

   BUG/MINOR: quic: Wrong RETIRE_CONNECTION_ID sequence number chec

Every connection ID manipulations against the by thread trees used to store the
connection IDs must be done under the trees locks. These trees are accessed by
the low level connection identification code.

When receiving a RETIRE_CONNECTION_ID frame, the concerned connection ID must
be deleted from the its underlying by thread tree but not without locking!
Add a WR lock around ebmb_delete() call to do so.

Must be backported as far as 2.7.
src/quic_rx.c