patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Kevin Traynor <ktraynor@redhat.com>
To: Yiding Zhou <yidingx.zhou@intel.com>, stable@dpdk.org
Cc: Qi Zhang <qi.z.zhang@intel.com>
Subject: Re: [PATCH 21.11] net/iavf: fix segfaults when calling API after VF reset failed
Date: Thu, 23 Jun 2022 14:58:43 +0100	[thread overview]
Message-ID: <006b50c9-c897-abc5-1e6a-6f4389c1f356@redhat.com> (raw)
In-Reply-To: <20220622044125.133057-1-yidingx.zhou@intel.com>

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@intel.com>
> Acked-by: Qi Zhang<qi.z.zhang@intel.com>

Thanks, applied.


      reply	other threads:[~2022-06-23 13:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-22  4:41 Yiding Zhou
2022-06-23 13:58 ` Kevin Traynor [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=006b50c9-c897-abc5-1e6a-6f4389c1f356@redhat.com \
    --to=ktraynor@redhat.com \
    --cc=qi.z.zhang@intel.com \
    --cc=stable@dpdk.org \
    --cc=yidingx.zhou@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).