Re: [PATCH net-next v4 14/15] quic: add frame encoder and decoder base
Paolo Abeni <[email protected]> Tue, 4 Nov 2025 13:47:35 +0100
| Newsgroups | dev.linux.lists.quic,dev.linux.lists.kernel-tls-handshake,org.kernel.vger.linux-cifs,org.kernel.vger.netdev |
|---|---|
| Message-ID | <[email protected]> |
On 10/29/25 3:35 PM, Xin Long wrote:
> +static void quic_frame_free(struct quic_frame *frame)
> +{
> + struct quic_frame_frag *frag, *next;
> +
> + if (!frame->type && frame->skb) { /* RX path frame with skb. */
Are RX path frame with !skb expected/possible? such frames will be
'misinterpreted' as TX ones, specifically will do `kfree(frame->data)`
which in turn could be a bad thing.
Possibly add a WARN on such scenario?
/P