From: Byungchul Park <byungchul.park@lge.com>
To: Dmitry Vyukov <dvyukov@google.com>
Cc: Jan Kara <jack@suse.cz>,
syzbot
<bot+045a1f65bdea780940bf0f795a292f4cd0b773d1@syzkaller.appspotmail.com>,
Andrew Morton <akpm@linux-foundation.org>,
Johannes Weiner <hannes@cmpxchg.org>,
jlayton@redhat.com, LKML <linux-kernel@vger.kernel.org>,
Linux-MM <linux-mm@kvack.org>,
Mel Gorman <mgorman@techsingularity.net>,
npiggin@gmail.com, rgoldwyn@suse.com,
syzkaller-bugs@googlegroups.com,
Peter Zijlstra <peterz@infradead.org>,
kernel-team@lge.com
Subject: Re: possible deadlock in generic_file_write_iter (2)
Date: Fri, 8 Dec 2017 08:27:15 +0900 [thread overview]
Message-ID: <740fcf68-091c-707a-2846-df3bf114e608@lge.com> (raw)
In-Reply-To: <CACT4Y+ZXMU3-zhoCo2SPOt+NJYJG8JARDKXFE=A4XMDUni8W-w@mail.gmail.com>
On 12/8/2017 2:07 AM, Dmitry Vyukov wrote:
> On Wed, Dec 6, 2017 at 6:05 AM, Byungchul Park <byungchul.park@lge.com> wrote:
>>>> On 12/4/2017 5:33 PM, Jan Kara wrote:
>>>>>
>>>>> Hello,
>>>>>
>>>>> adding Peter and Byungchul to CC since the lockdep report just looks
>>>>> strange and cross-release seems to be involved. Guys, how did #5 get into
>>>>> the lock chain and what does put_ucounts() have to do with sb_writers
>>>>> there? Thanks!
>>>>
>>>>
>>>> Hello Jan,
>>>>
>>>> In order to get full stack of #5, we have to pass a boot param,
>>>> "crossrelease_fullstack", to the kernel. Now that it only informs
>>>> put_ucounts() in the call trace, it's hard to find out what exactly
>>>> happened at that time, but I can tell #5 shows:
>>>>
>>>> When acquire(sb_writers) in put_ucounts(), it was on the way to
>>>> complete((completion)&req.done) of wait_for_completion() in
>>>> devtmpfs_create_node().
>>>>
>>>> If acquire(sb_writers) in put_ucounts() is stuck, then
>>>> wait_for_completion() in devtmpfs_create_node() would be also
>>>> stuck, since complete() being in the context of acquire(sb_writers)
>>>> cannot be called.
>>>>
>>>> This is why cross-release added the lock chain.
>>>
>>> Hi,
>>>
>>> What is cross-release? Is it something new? Should we always enable
>>> crossrelease_fullstack during testing?
>>
>> Hello Dmitry,
>>
>> Yes, it's new one making lockdep track wait_for_completion() as well.
>>
>> And we should enable crossrelease_fullstack if you don't care system
>> slowdown but testing.
>
> I've enabled CONFIG_BOOTPARAM_LOCKDEP_CROSSRELEASE_FULLSTACK. It
> should have the same effect, right?
Sure.
--
Thanks,
Byungchul
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2017-12-07 23:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-03 14:22 syzbot
2017-12-04 8:33 ` Jan Kara
2017-12-05 4:58 ` Byungchul Park
2017-12-05 9:19 ` Dmitry Vyukov
2017-12-06 5:05 ` Byungchul Park
2017-12-07 0:32 ` Andrew Morton
2017-12-07 17:07 ` Dmitry Vyukov
2017-12-07 23:27 ` Byungchul Park [this message]
2017-12-05 9:41 ` Jan Kara
2017-12-06 5:34 ` Byungchul Park
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=740fcf68-091c-707a-2846-df3bf114e608@lge.com \
--to=byungchul.park@lge.com \
--cc=akpm@linux-foundation.org \
--cc=bot+045a1f65bdea780940bf0f795a292f4cd0b773d1@syzkaller.appspotmail.com \
--cc=dvyukov@google.com \
--cc=hannes@cmpxchg.org \
--cc=jack@suse.cz \
--cc=jlayton@redhat.com \
--cc=kernel-team@lge.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mgorman@techsingularity.net \
--cc=npiggin@gmail.com \
--cc=peterz@infradead.org \
--cc=rgoldwyn@suse.com \
--cc=syzkaller-bugs@googlegroups.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