deadlock in configfs_symlink()
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
modprobedummy_hcd
modprobe configfs
mount -t configfs none/sys/kernel/config
modprobeg_mass_storagefile=/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/barfSo does the following, actually -
mass_storageis 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