BUG/MEDIUM: quic: Possible crashes when sending too short Initial packets
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 7 Nov 2023 17:29:28 +0000 (18:29 +0100)
committerFrédéric Lécaille <flecaille@haproxy.com>
Thu, 9 Nov 2023 09:32:31 +0000 (10:32 +0100)
commitb21e08cbd275fc6da24d1f3f0ec54a96f318c751
treeba5e4307f14e01773735c1185f6d0abd24787eca
parentc78cb49a3b432cabe54804b462a6a83e6dda1cfd
BUG/MEDIUM: quic: Possible crashes when sending too short Initial packets

This may happen during handshakes when Handshake packets cannot be coalesced
to a first Initial packet because of TX frame allocation failures (from
qc_build_frms()). This leads too short (not padded) Initial packets to be sent.
This is detected by a BUG_ON() in qc_send_ppkts().

To avoid this an Handshake packet without ack-eliciting frames which should have
been built by qc_build_frms() is built.

Must be backported as far as 2.6.
src/quic_tx.c