[dpdk-stable] [PATCH 1/2] net/i40e: fix address of first segment

Zhang, Xiao xiao.zhang at intel.com
Tue Sep 24 08:47:57 CEST 2019



> -----Original Message-----
> From: Joyce Kong [mailto:joyce.kong at arm.com]
> Sent: Tuesday, September 24, 2019 1:49 PM
> To: dev at dpdk.org
> Cc: nd at arm.com; thomas at monjalon.net; jerinj at marvell.com; Zhang, Xiao
> <xiao.zhang at intel.com>; gavin.hu at arm.com; honnappa.nagarahalli at arm.com;
> stable at dpdk.org
> Subject: [PATCH 1/2] net/i40e: fix address of first segment
> 
> This patch fixes (dereference after null check) coverity issue.
> The address of first segmented packets was not set correctly during
> reassembling packets which led to this issue.
> 
> Coverity issue: 343422, 343403
> Fixes: ca74903b75cf ("net/i40e: extract non-x86 specific code from vector
> driver")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Joyce Kong <joyce.kong at arm.com>
> ---
>  drivers/net/i40e/i40e_rxtx_vec_neon.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/i40e/i40e_rxtx_vec_neon.c
> b/drivers/net/i40e/i40e_rxtx_vec_neon.c
> index 864eb9a..deb185f 100644
> --- a/drivers/net/i40e/i40e_rxtx_vec_neon.c
> +++ b/drivers/net/i40e/i40e_rxtx_vec_neon.c
> @@ -474,6 +474,7 @@ i40e_recv_scattered_pkts_vec(void *rx_queue, struct
> rte_mbuf **rx_pkts,
>  			i++;
>  		if (i == nb_bufs)
>  			return nb_bufs;
> +		rxq->pkt_first_seg = rx_pkts[i];
>  	}
>  	return i + reassemble_packets(rxq, &rx_pkts[i], nb_bufs - i,
>  		&split_flags[i]);
> --
> 2.7.4

Reviewed-by: Xiao Zhang <xiao.zhang at intel.com>



More information about the stable mailing list