All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: Mat Martineau <mathew.j.martineau@linux.intel.com>
Cc: mptcp@lists.linux.dev
Subject: Re: [PATCH v2 mptcp-net] net: introduce and use lock_sock_fast_nested()
Date: Mon, 27 Sep 2021 10:15:52 +0200	[thread overview]
Message-ID: <e4f697a4da0dd4f0c063792c12f2d8e4d5a01ebd.camel@redhat.com> (raw)
In-Reply-To: <6485e648-1038-736e-4da6-c513efb21ebf@linux.intel.com>

On Fri, 2021-09-24 at 11:51 -0700, Mat Martineau wrote:
> On Fri, 24 Sep 2021, Paolo Abeni wrote:
> 
> > Syzkaller reported a false positive deadlock involving
> > the nl socket lock and the subflow socket lock:
> > 
> 
> ...
> 
> > the problem originates from uncorrect lock annotation in the mptcp
> > code and is only visible since commit 2dcb96bacce3 ("net: core: Correct
> > the sock::sk_lock.owned lockdep annotations"), but is present since
> > the port-based endpoint support initial implementation.
> > 
> > This patch addresses the issue introducing a nested variant of
> > lock_sock_fast() and using it in the relevant code path.
> > 
> > Fixes: 1729cf186d8a ("mptcp: create the listening socket for new port")
> > Fixes: 2dcb96bacce3 ("net: core: Correct the sock::sk_lock.owned lockdep annotations")
> > Suggested-by: Thomas Gleixner <tglx@linutronix.de>
> > Reported-and-tested-by: syzbot+1dd53f7a89b299d59eaf@syzkaller.appspotmail.com
> > Signed-off-by: Paolo Abeni <pabeni@redhat.com>
> > ---
> > v1 -> v2:
> > - fix a typo into a comment (Mat)
> 
> Thanks for the v2 and the answers about inline functions vs. exported 
> symbols.
> 
> Ok with me to merge in the export branch and/or upstream. I'm guessing you 
> might want to send this one to netdev yourself?

I'm fine doing that. I'll send it after somo more staging into the
export branch.

Thanks!

Paolo


  reply	other threads:[~2021-09-27  8:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-24 13:42 [PATCH v2 mptcp-net] net: introduce and use lock_sock_fast_nested() Paolo Abeni
2021-09-24 18:51 ` Mat Martineau
2021-09-27  8:15   ` Paolo Abeni [this message]
2021-09-25  8:18 ` Matthieu Baerts

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=e4f697a4da0dd4f0c063792c12f2d8e4d5a01ebd.camel@redhat.com \
    --to=pabeni@redhat.com \
    --cc=mathew.j.martineau@linux.intel.com \
    --cc=mptcp@lists.linux.dev \
    /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.