]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: free rejected Rx packets
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 20 Jun 2022 08:58:03 +0000 (10:58 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 20 Jun 2022 13:04:07 +0000 (15:04 +0200)
commit23f908ccd62b1123e0fe1ed73743dcd8390890e1
treef9f14420ba50e69fa86d734731eae5c5a1bb2ff0
parent2c31e1293661cd44b71457b8fd0567b08ef95b0b
BUG/MINOR: quic: free rejected Rx packets

Free Rx packet in the datagram handler if the packet was not taken in
charge by a quic_conn instance. This is reflected by the packet refcount
which is null.

A packet can be rejected for a variety of reasons. For example, failed
decryption, no Initial token and Retry emission or for datagram null
padding.

This patch should resolve the Rx packets memory leak observed via "show
pools" with the previous commit
  2c31e1293661cd44b71457b8fd0567b08ef95b0b
  BUG/MINOR: quic: purge conn Rx packet list on release

This specific memory leak instance was reproduced using quiche client
which uses null datagram padding.

This should partially resolve github issue #1751.

It must be backported up to 2.6.
src/xprt_quic.c