RE: [EXTERNAL] Re: [PATCH net v3 1/2] net: mana: Validate the packet length reported by the NIC
Dexuan Cui <[email protected]>
| Newsgroups | org.kernel.vger.linux-hyperv,org.kernel.vger.linux-kernel,org.kernel.vger.linux-rdma,org.kernel.vger.netdev,org.kernel.vger.stable |
|---|---|
| Message-ID | <DS4PR21MB6914481C0041A113F5791238BFFF2@DS4PR21MB6914.namprd21.prod.outlook.com> |
> From: Paolo Abeni <[email protected]> > 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: [email protected] > > 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