Re: [dpdk-dev] [PATCH] net/ice: fix integer overflow when computing max_pkt_len

2021-06-20 Thread Zhang, Qi Z
> -Original Message- > From: Tudor Cornea > Sent: Tuesday, June 15, 2021 6:39 PM > To: Yang, Qiming ; Zhang, Qi Z > > Cc: dev@dpdk.org; Tudor Cornea > Subject: [PATCH] net/ice: fix integer overflow when computing max_pkt_len > > The len variable, used in the computation of max_pkt_le

[dpdk-dev] [PATCH] net/ice: fix integer overflow when computing max_pkt_len

2021-06-15 Thread Tudor Cornea
The len variable, used in the computation of max_pkt_len could overflow, if used to store the result of the following computation: ICE_SUPPORT_CHAIN_NUM * rxq->rx_buf_len Since, we could define the mbuf size to have a large value (i.e 13312), and ICE_SUPPORT_CHAIN_NUM is defined as 5, the computa

[dpdk-dev] [PATCH] net/ice: fix integer overflow when computing max_pkt_len

2021-06-15 Thread Tudor Cornea
Greetings, Please review the following patch for the dpdk-next-net-intel branch. The len variable, used in the computation of max_pkt_len could overflow, if used to store the result of the following computation: ICE_SUPPORT_CHAIN_NUM * rxq->rx_buf_len Since, we could define the mbuf size to hav