linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Felipe Balbi <balbi@kernel.org>
To: Al Viro <viro@zeniv.linux.org.uk>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	Christoph Hellwig <hch@lst.de>,
	"linux-usb@vger.kernel.org" <linux-usb@vger.kernel.org>
Subject: Re: [heads-up] deadlock in configfs_symlink()
Date: Mon, 5 Aug 2019 11:18:00 +0300	[thread overview]
Message-ID: <CAH8TKc8kAR2iKETnh5RH1qVUiFUH2BSnirKg_RSbUEZ9ui8FuA@mail.gmail.com> (raw)
In-Reply-To: <20190804204809.GA29474@ZenIV.linux.org.uk>

Hi,

On Sun, Aug 4, 2019 at 11:48 PM Al Viro <viro@zeniv.linux.org.uk> wrote:
>
> On Sun, Aug 04, 2019 at 09:31:43PM +0100, Al Viro wrote:
>
> > FWIW, the following reproduces the deadlock on mainline:
> >
> > dd if=/dev/zero of=/tmp/image bs=1M count=20
> > modprobe dummy_hcd
> > modprobe configfs
> > mount -t configfs none /sys/kernel/config
> > modprobe g_mass_storage file=/tmp/image ro=y
> > cd /sys/kernel/config/usb_gadget/
> > mkdir blah
> > cd blah/configs
> > mkdir foo.1
> > cd foo.1
> > ln -s /sys/kernel/config/usb_gadget/blah/configs/foo.1/no-such-dir/ barf
>
> So does the following, actually - mass_storage is irrelevant here; it just
> brings libcomposite in.
>
> modprobe dummy_hcd
> modprobe libcomposite
> mount -t configfs none /sys/kernel/config
> cd /sys/kernel/config/usb_gadget/
> mkdir blah
> cd blah/configs
> mkdir foo.1
> cd foo.1
> ln -s /sys/kernel/config/usb_gadget/blah/configs/foo.1/no-such-dir/ barf

I'll try to reproduce on my end. Added linux-usb to the loop

-- 
balbi

           reply	other threads:[~2019-08-05  8:18 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20190804204809.GA29474@ZenIV.linux.org.uk>]

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=CAH8TKc8kAR2iKETnh5RH1qVUiFUH2BSnirKg_RSbUEZ9ui8FuA@mail.gmail.com \
    --to=balbi@kernel.org \
    --cc=hch@lst.de \
    --cc=linux-usb@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    --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).