> -----Original Message-----
> From: Yiding Zhou <yidingx.z...@intel.com>
> Sent: Wednesday, April 27, 2022 11:25 PM
> To: dev@dpdk.org; Wu, Jingjing <jingjing...@intel.com>; Xing, Beilei
> <beilei.x...@intel.com>
> Cc: Yang, Qiming <qiming.y...@intel.com>; Zhang, Qi Z
> <qi.z.zh...@intel.com>; sta...@dpdk.org; Zhou, YidingX
> <yidingx.z...@intel.com>
> Subject: [PATCH v2] net/iavf: fix segfaults when calling API after VF reset 
> failed
> 
> Some pointers will be set to NULL when iavf_dev_reset() failed, for example 
> vf-
> >vf_res, vf->vsi_res vf->rss_key and etc.
> APIs access these NULL pointers will trigger segfault.
> 
> This patch adds closed flag to indicate that the VF is closed, and rejects 
> API calls
> in this state to avoid coredump.
> 
> Fixes: e74e1bb6280d ("net/iavf: enable port reset")
> Cc: sta...@dpdk.org
> 
> Signed-off-by: Yiding Zhou <yidingx.z...@intel.com>
Tested-by: Peng Huang <peng.hu...@intel.com>

Reply via email to