linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dominique Martinet <dominique.martinet@cea.fr>
To: Andy Lutomirski <luto@amacapital.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	V9FS Developers <v9fs-developer@lists.sourceforge.net>,
	Linux FS Devel <linux-fsdevel@vger.kernel.org>
Subject: Re: [V9fs-developer] Hang triggered by udev coldplug, looks like a race
Date: Thu, 24 Dec 2015 11:51:49 +0100	[thread overview]
Message-ID: <20151224105149.GA24863@nautica> (raw)
In-Reply-To: <CALCETrX=-1hfy_MgZX5HswTOG8WqUHrMCN+c0KHoZYQSHHB_7Q@mail.gmail.com>

Andy Lutomirski wrote on Thu, Dec 17, 2015:
> This could be QEMU's analysis script screwing up.  Is there a good way
> for me to gather more info?

I finally took some time to reproduce it (sorry for the delay)

Using your config, virtme commit (17363c2) and kernel tag v4.4-rc3 I was
able to reproduce it just fine with my qemu (2.4.90)

Now for the fun bit... I ran it with a gdb server, attaching gdb and
running cont always 'unblocks' it
Using the kernel gdb scripts (lx-ps) I see about 250 kworker threads
running, the backtraces all look the same:

[   20.273945]  [<ffffffff818c3910>] schedule+0x30/0x80
[   20.274644]  [<ffffffff818c3c39>] schedule_preempt_disabled+0x9/0x10
[   20.275539]  [<ffffffff818c6147>] __mutex_lock_slowpath+0x107/0x2f0
[   20.276421]  [<ffffffff811cf02e>] ? lookup_fast+0xbe/0x320
[   20.277195]  [<ffffffff818c6345>] mutex_lock+0x15/0x30
[   20.277916]  [<ffffffff811d0df7>] walk_component+0x1a7/0x270


so given it unblocks after hooking gdb + cont I'm actually thinking this
might be a pure scheduling issue? (e.g. thread is never re-scheduled or
something like that?)
I can't see any task not in schedule() in your sysrq dump task
transcript either.


Not sure how to go around debugging that, to be honest.
I've tried both default one virtual cpu and -smp 3 or 4 and both can
reproduce it; cpu usage on the host is always low so it doesn't look
like there's any busy-polling involved.. This is a pretty subtle bug we
have there..

-- 
Dominique Martinet

  reply	other threads:[~2015-12-24 10:52 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-04  5:52 Hang triggered by udev coldplug, looks like a race Andy Lutomirski
2015-12-07 19:18 ` Andy Lutomirski
2015-12-07 22:46   ` [V9fs-developer] " Dominique Martinet
2015-12-08  1:59     ` Andy Lutomirski
2015-12-08  2:33       ` Al Viro
2015-12-08 22:49         ` Andy Lutomirski
2015-12-09  6:23           ` Dominique Martinet
2015-12-09  6:41             ` Dominique Martinet
2015-12-09  6:45             ` Al Viro
2015-12-17 21:06               ` Andy Lutomirski
2015-12-24 10:51                 ` Dominique Martinet [this message]
2015-12-30  6:43                   ` Andy Lutomirski
2016-01-04 15:59                     ` Peter Zijlstra
2016-01-04 16:09                       ` Dominique Martinet
2016-01-04 19:07                         ` Andy Lutomirski
2016-01-04 19:27                           ` Peter Zijlstra

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=20151224105149.GA24863@nautica \
    --to=dominique.martinet@cea.fr \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@amacapital.net \
    --cc=v9fs-developer@lists.sourceforge.net \
    --cc=viro@zeniv.linux.org.uk \
    /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).