From: Byungchul Park <byungchul.park@lge.com>
To: Jan Kara <jack@suse.cz>,
syzbot
<bot+045a1f65bdea780940bf0f795a292f4cd0b773d1@syzkaller.appspotmail.com>
Cc: akpm@linux-foundation.org, hannes@cmpxchg.org,
jlayton@redhat.com, linux-kernel@vger.kernel.org,
linux-mm@kvack.org, mgorman@techsingularity.net,
npiggin@gmail.com, rgoldwyn@suse.com,
syzkaller-bugs@googlegroups.com, peterz@infradead.org,
kernel-team@lge.com
Subject: Re: possible deadlock in generic_file_write_iter (2)
Date: Tue, 5 Dec 2017 13:58:09 +0900 [thread overview]
Message-ID: <80ba65b6-d0c2-2d3a-779b-a134af8a9054@lge.com> (raw)
In-Reply-To: <20171204083339.GF8365@quack2.suse.cz>
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.
--
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-05 4:58 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 [this message]
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
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=80ba65b6-d0c2-2d3a-779b-a134af8a9054@lge.com \
--to=byungchul.park@lge.com \
--cc=akpm@linux-foundation.org \
--cc=bot+045a1f65bdea780940bf0f795a292f4cd0b773d1@syzkaller.appspotmail.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