[dpdk-stable] [PATCH v1] net/ice/base: fix wrong first mask value setting

Zhang, Qi Z qi.z.zhang at intel.com
Tue Jun 29 16:06:05 CEST 2021



> -----Original Message-----
> From: Wu, Wenjun1 <wenjun1.wu at intel.com>
> Sent: Monday, June 21, 2021 4:59 PM
> To: dev at dpdk.org; Yang, Qiming <qiming.yang at intel.com>; Zhang, Qi Z
> <qi.z.zhang at intel.com>
> Cc: Wu, Wenjun1 <wenjun1.wu at intel.com>; stable at dpdk.org
> Subject: [PATCH v1] net/ice/base: fix wrong first mask value setting
> 
> Since each pf does not share the same structure space, the first mask value
> should start at 0 instead of hw->pf_id * per_pf to avoid address overflow.
> Otherwise, address space will overlap when masks.first + masks.count >
> ICE_PROF_MASK_COUNT, and it may lead to unexpected variable assignment,
> which causes segmentation fault.
> 
> Fixes: 9467486f179f ("net/ice/base: enable masking for RSS and FD field
> vectors")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Wenjun Wu <wenjun1.wu at intel.com>

Acked-by: Qi Zhang <qi.z.zhang at intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi



More information about the stable mailing list