linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [heads-up] deadlock in configfs_symlink()
       [not found]                   ` <20190804204809.GA29474@ZenIV.linux.org.uk>
@ 2019-08-05  8:18                     ` Felipe Balbi
  0 siblings, 0 replies; only message in thread
From: Felipe Balbi @ 2019-08-05  8:18 UTC (permalink / raw)
  To: Al Viro; +Cc: Linus Torvalds, Christoph Hellwig, linux-usb

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-08-05  8:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20190802053843.GZ1131@ZenIV.linux.org.uk>
     [not found] ` <20190802065743.GB7786@lst.de>
     [not found]   ` <20190802160327.GA1131@ZenIV.linux.org.uk>
     [not found]     ` <20190802171321.GA2860@ZenIV.linux.org.uk>
     [not found]       ` <20190803161619.GA484@ZenIV.linux.org.uk>
     [not found]         ` <CAHk-=wjV+opOWSw4zhaZRJ6uL9mKTZmYrkUH+y0KH=5v4OCa5g@mail.gmail.com>
     [not found]           ` <20190803175154.GB1131@ZenIV.linux.org.uk>
     [not found]             ` <20190803185630.GA11310@ZenIV.linux.org.uk>
     [not found]               ` <CAHk-=wgYPKdtdbShrGueytoLi3ZpG99gzSx5ijgEVxcX=zz3nQ@mail.gmail.com>
     [not found]                 ` <20190804203143.GD1131@ZenIV.linux.org.uk>
     [not found]                   ` <20190804204809.GA29474@ZenIV.linux.org.uk>
2019-08-05  8:18                     ` [heads-up] deadlock in configfs_symlink() Felipe Balbi

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