Skip to contentSkip to conversation

deadlock in configfs_symlink()

heads-up Felipe Balbi 1 participant 1 message Aug 5, 2019 11 messages not in the archive USB

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): CAHk-=wjV+opOWSw4zhaZRJ6uL9mKTZmYrkUH+y0KH=5v4OCa5g@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): CAHk-=wgYPKdtdbShrGueytoLi3ZpG99gzSx5ijgEVxcX=zz3nQ@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#11 lore raw

Hi,

Quoted 20 lines · Al Viro
Quoted 13 lines · Al Viro

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.

Quoted 9 lines

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

Signature · 1 line
balbi