From: Greg KH <greg@kroah.com>
To: Mat Martineau <mathew.j.martineau@linux.intel.com>
Cc: mptcp@lists.linux.dev, pabeni@redhat.com, stable@vger.kernel.org
Subject: Re: [PATCH mptcp-stable] mptcp: fix msk traversal in mptcp_nl_cmd_set_flags()
Date: Wed, 2 Feb 2022 06:37:39 +0100 [thread overview]
Message-ID: <YfoYo7wQGVpkM464@kroah.com> (raw)
In-Reply-To: <366acfc7-cab7-8f9a-e1cc-3d7f57fecbf8@linux.intel.com>
On Tue, Feb 01, 2022 at 05:09:36PM -0800, Mat Martineau wrote:
> On Tue, 1 Feb 2022, Mat Martineau wrote:
>
> > commit 8e9eacad7ec7a9cbf262649ebf1fa6e6f6cc7d82 upstream.
> >
> > The upstream commit had to handle a lookup_by_id variable that is only
> > present in 5.17. This version of the patch removes that variable, so the
> > __lookup_addr() function only handles the lookup as it is implemented in
> > 5.15 and 5.16. It also removes one 'const' keyword to prevent a warning
> > due to differing const-ness in the 5.17 version of addresses_equal().
> >
> > The MPTCP endpoint list is under RCU protection, guarded by the
> > pernet spinlock. mptcp_nl_cmd_set_flags() traverses the list
> > without acquiring the spin-lock nor under the RCU critical section.
> >
> > This change addresses the issue performing the lookup and the endpoint
> > update under the pernet spinlock.
> >
> > Fixes: 0f9f696a502e ("mptcp: add set_flags command in PM netlink")
> > Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
> > ---
> >
> > Paolo, can I add an ack or signoff tag from you?
> >
> > The upstream commit (8e9eacad7ec7) was queued for the 5.16 and 5.15
> > stable trees, which brought along a few extra patches that didn't belong
> > in stable. I asked Greg to drop those patches from his queue, and this
> > particular commit required manual changes as described above (related to
> > the lookup_by_id variable that's new in 5.16).
> >
> > This patch will not apply to the export branch. I confirmed that it
> > applies, builds, and runs on both the 5.16.5 and 5.15.19 branches. Self
> > tests succeed too.
> >
> > When I send to the stable list, I'll also include these tags:
> > Cc: <stable@vger.kernel.org> # 5.15.x
> > Cc: <stable@vger.kernel.org> # 5.16.x
>
> So... this wasn't supposed to go to stable@vger.kernel.org yet. git
> send-email picked up the cc lines that I had moved out of the commit
> message. Sorry about that.
There's nothing wrong with us seeing it as kernel development should be
done in public :)
thanks,
greg k-h
next prev parent reply other threads:[~2022-02-02 5:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-02 0:40 [PATCH mptcp-stable] mptcp: fix msk traversal in mptcp_nl_cmd_set_flags() Mat Martineau
2022-02-02 1:09 ` Mat Martineau
2022-02-02 5:37 ` Greg KH [this message]
2022-02-04 10:24 ` Paolo Abeni
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=YfoYo7wQGVpkM464@kroah.com \
--to=greg@kroah.com \
--cc=mathew.j.martineau@linux.intel.com \
--cc=mptcp@lists.linux.dev \
--cc=pabeni@redhat.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.