From: SeongJae Park <sjpark@amazon.com>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: SeongJae Park <sjpark@amazon.com>, <sashal@kernel.org>,
<aams@amazon.com>, <markubo@amazon.com>,
<linux-kernel@vger.kernel.org>,
"# 4 . 4 . y" <stable@vger.kernel.org>,
David Vrabel <david.vrabel@citrix.com>,
"David S . Miller" <davem@davemloft.net>
Subject: Re: Please apply "xen-netback: delete NAPI instance when queue fails to initialize" to v4.4.y
Date: Wed, 24 Feb 2021 18:47:32 +0100 [thread overview]
Message-ID: <20210224174732.30014-1-sjpark@amazon.com> (raw)
In-Reply-To: <YDaLBcj5DJrSWXqU@kroah.com>
On Wed, 24 Feb 2021 18:21:09 +0100 Greg KH <gregkh@linuxfoundation.org> wrote:
> On Wed, Feb 24, 2021 at 06:03:56PM +0100, SeongJae Park wrote:
> > This is a request for merge of upstream commit 4a658527271b ("xen-netback:
> > delete NAPI instance when queue fails to initialize") on v4.4.y tree.
> >
> > If 'xenvif_connect()' fails after successful 'netif_napi_add()', the napi is
> > not cleaned up. Because 'create_queues()' frees the queues in its error
> > handling code, if the 'xenvif_free()' is called for the vif, use-after-free
> > occurs. The upstream commit fixes the problem by cleaning up the napi in the
> > 'xenvif_connect()'.
> >
> > Attaching the original patch below for your convenience.
>
> The original patch does not apply cleanly.
I tested the commit is cleanly applicable with 'git cherry-pick' before posting
this. I just tried 'git format-patch ... && git am ...' and confirmed it
doesn't work. Sorry, my fault.
>
> > Tested-by: Markus Boehme <markubo@amazon.de>
>
> What was tested?
We confirmed the unmodified v4.4.y kernel crashes on a stress test that
repeatedly doing netdev attach/detach, while the patch applied version doesn't.
>
> I backported the patch, but next time, please provide the patch that
> will work properly.
Thanks, and apology for the inconvenience. I will do the check with posting
patch again rather than only 'git cherry-pick' from next time.
Thanks,
SeongJae Park
>
> greg k-h
prev parent reply other threads:[~2021-02-24 17:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-24 17:03 Please apply "xen-netback: delete NAPI instance when queue fails to initialize" to v4.4.y SeongJae Park
2021-02-24 17:21 ` Greg KH
2021-02-24 17:47 ` SeongJae Park [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=20210224174732.30014-1-sjpark@amazon.com \
--to=sjpark@amazon.com \
--cc=aams@amazon.com \
--cc=davem@davemloft.net \
--cc=david.vrabel@citrix.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=markubo@amazon.com \
--cc=sashal@kernel.org \
--cc=stable@vger.kernel.org \
/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