From: David Miller <davem@davemloft.net>
To: andreyknvl@google.com
Cc: acme@kernel.org, arnaldo.melo@gmail.com, dvyukov@google.com,
gerrit@erg.abdn.ac.uk, dccp@vger.kernel.org,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
edumazet@google.com, xiyou.wangcong@gmail.com,
syzkaller@googlegroups.com
Subject: Re: net/dccp: dccp_create_openreq_child freed held lock
Date: Thu, 04 May 2017 09:53:19 -0400 (EDT) [thread overview]
Message-ID: <20170504.095319.42169195176229264.davem@davemloft.net> (raw)
In-Reply-To: <CAAeHK+wSrkrooaK=d6Od85hNNQbTSuPxe55DFFYWEuE5zSqmSw@mail.gmail.com>
From: Andrey Konovalov <andreyknvl@google.com>
Date: Thu, 4 May 2017 15:36:37 +0200
> On Wed, Mar 1, 2017 at 4:40 PM, Arnaldo Carvalho de Melo
> <acme@kernel.org> wrote:
>> Em Wed, Mar 01, 2017 at 12:35:10PM -0300, Arnaldo Carvalho de Melo escreveu:
>>> Em Wed, Mar 01, 2017 at 10:38:54AM +0100, Dmitry Vyukov escreveu:
>>> > Hello,
>>> >
>>> > I've got the following report while running syzkaller fuzzer on
>>> > 86292b33d4b79ee03e2f43ea0381ef85f077c760:
>>> >
>>> >
>>> > It seems that dccp_create_openreq_child needs to unlock the sock if
>>> > dccp_feat_activate_values fails.
>>>
>>> Yeah, can you please use the patch below, that mimics the error paths in
>>> sk_clone_new(), from where I think even the comment about it being a raw
>>
>> Argh, s/sk_clone_new()/sk_clone_lock()/g
>
> Hi Arnaldo,
>
> Could you send the patch?
>
> We haven't seen these reports since we applied it.
It isn't necessary in the current tree.
Arnaldo created a helper sk_free_unlock_clone() which handles this situation
properly, and calls it from dccp_create_openreq_child().
next prev parent reply other threads:[~2017-05-04 13:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-01 9:38 Dmitry Vyukov
2017-03-01 15:35 ` Arnaldo Carvalho de Melo
2017-03-01 15:40 ` Arnaldo Carvalho de Melo
2017-05-04 13:36 ` Andrey Konovalov
2017-05-04 13:53 ` David Miller [this message]
2017-05-04 13:54 ` Andrey Konovalov
2017-03-02 10:11 ` Dmitry Vyukov
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=20170504.095319.42169195176229264.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=acme@kernel.org \
--cc=andreyknvl@google.com \
--cc=arnaldo.melo@gmail.com \
--cc=dccp@vger.kernel.org \
--cc=dvyukov@google.com \
--cc=edumazet@google.com \
--cc=gerrit@erg.abdn.ac.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=syzkaller@googlegroups.com \
--cc=xiyou.wangcong@gmail.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
all inboxes | Powered by JetHome®