linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kara <jack@suse.cz>
To: Byungchul Park <byungchul.park@lge.com>
Cc: Jan Kara <jack@suse.cz>,
	syzbot 
	<bot+045a1f65bdea780940bf0f795a292f4cd0b773d1@syzkaller.appspotmail.com>,
	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 10:41:50 +0100	[thread overview]
Message-ID: <20171205094150.GA6076@quack2.suse.cz> (raw)
In-Reply-To: <80ba65b6-d0c2-2d3a-779b-a134af8a9054@lge.com>


Hello Byungchul,

On Tue 05-12-17 13:58:09, Byungchul Park wrote:
> On 12/4/2017 5:33 PM, Jan Kara wrote:
> >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:

OK, thanks for the tip.

> 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.

But this is something I don't get: There aren't sb_writers anywhere near
put_ucounts(). So why the heck did lockdep think that sb_writers are
acquired by put_ucounts()?

								Honza
-- 
Jan Kara <jack@suse.com>
SUSE Labs, CR

  parent reply	other threads:[~2017-12-05  9:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <94eb2c0d010a4e7897055f70535b@google.com>
2017-12-04  8:33 ` possible deadlock in generic_file_write_iter (2) 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
2017-12-05  9:41     ` Jan Kara [this message]
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=20171205094150.GA6076@quack2.suse.cz \
    --to=jack@suse.cz \
    --cc=akpm@linux-foundation.org \
    --cc=bot+045a1f65bdea780940bf0f795a292f4cd0b773d1@syzkaller.appspotmail.com \
    --cc=byungchul.park@lge.com \
    --cc=hannes@cmpxchg.org \
    --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;
as well as URLs for NNTP newsgroup(s).