[PATCH 21.11] net/iavf: fix segfaults when calling API after VF reset failed

Kevin Traynor ktraynor at redhat.com
Thu Jun 23 15:58:43 CEST 2022


On 22/06/2022 05:41, Yiding Zhou wrote:
> [ upstream commit 676d986b4b86ac6441b99cc1c89126640bd7e187 ]
> 
> 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")
> 
> Signed-off-by: Yiding Zhou<yidingx.zhou at intel.com>
> Acked-by: Qi Zhang<qi.z.zhang at intel.com>

Thanks, applied.



More information about the stable mailing list