RE: [EXTERNAL] Re: [PATCH net v3 1/2] net: mana: Validate the packet length reported by the NIC
From: Dexuan Cui
Date: Wed Jul 08 2026 - 10:22:41 EST
> From: Paolo Abeni <pabeni@xxxxxxxxxx>
> Sent: Wednesday, July 8, 2026 3:57 AM
> ...
> On 7/2/26 6:12 AM, Dexuan Cui wrote:
> > Validate the packet length reported in the RX CQE before passing it
> > to skb processing. The CQE is supplied by the NIC device and should
> > not be blindly trusted.
> >
> > Cc: stable@xxxxxxxxxxxxxxx
>
> This need a Fixes: tag, to help stable team backport.
Please use:
Fixes: ca9c54d2d6a5 ("net: mana: Add a driver for Microsoft Azure Network Adapter (MANA)")
In this first commit of the driver, mana_process_rx_cqe() only checks if pktlen
is not zero, and later mana_process_rx_cqe() -> mana_rx_skb() uses the
'pkt_len' blindly.
> No need to repost: just reply here, and I'll add it while applying the
> patch.
>
> Thanks,
>
> Paolo
Thank you, Paolo!
Thanks,
-- Dexuan