Udev infinite loop
Hi,
I've encountered a small problem with udev. If I mount my ZIP drive with a bad option it goes in an infinite loop and every ~0.5 second the udev daemon wakes up and my ZIP starts spinning.
I run fedora core 3 test1 with linux-2.6.8-rc4, udev-026. So I don't use actually use udev but it's running.
If I do :
mount /dev/hdd4 /mnt/zip -o unknown_option=unknown_value
mount will complain about the option, refuse to mount, and the infinite loop will start.
I am sorry for the lack of details, but I am not currently at home. If you cannot reproduce it, please ask me any details you need.
Thanks.
Signature · 13 lines
Guillaume ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 12 lines · Guillaume Chazarain
Hi,
I've encountered a small problem with udev. If I mount my ZIP drive with a bad option it goes in an infinite loop and every ~0.5 second the udev daemon wakes up and my ZIP starts spinning.
I run fedora core 3 test1 with linux-2.6.8-rc4, udev-026. So I don't use actually use udev but it's running.
If I do :
Quoted 7 lines
mount
/dev/hdd4/mnt/zip-o unknown_option=unknown_valuemount will complain about the option, refuse to mount, and the infinite loop will start.
I am sorry for the lack of details, but I am not currently at home. If you cannot reproduce it, please ask me any details you need.
I need more details. Kernel log messages. udev log messages. something more...
Oh, and how about upgrading to the latest version of udev, we're at 030 these days.
thanks,
greg k-h
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 20 lines · Greg KH
Quoted 17 lines · Guillaume Chazarain
Hi,
I've encountered a small problem with udev. If I mount my ZIP drive with a bad option it goes in an infinite loop and every ~0.5 second the udev daemon wakes up and my ZIP starts spinning.
I run fedora core 3 test1 with linux-2.6.8-rc4, udev-026. So I don't use actually use udev but it's running.
If I do :
mount
/dev/hdd4/mnt/zip-o unknown_option=unknown_valuemount will complain about the option, refuse to mount, and the infinite loop will start.
Quoted 10 lines
Quoted 4 lines
I am sorry for the lack of details, but I am not currently at home. If you cannot reproduce it, please ask me any details you need.
I need more details. Kernel log messages. udev log messages. something more...
That's bad news, it means you cannot reproduce it :(
Here is a tar.bz2 containing strace logs of dbus-daemon-1 and udevd. There is also a dmesg output, my kernel .config, /etc/udev /sys and kernel logs.
I see nothing wrong in them, but hopefully you will.
Quoted 5 lines
Oh, and how about upgrading to the latest version of udev, we're at 030 these days.
OK, done.
Signature · 1 line
Guillaume
Quoted 6 lines · Guillaume Chazarain
That's bad news, it means you cannot reproduce it :(
Here is a tar.bz2 containing strace logs of dbus-daemon-1 and udevd. There is also a dmesg
output, my kernel .config,/etc/udev/sys and kernel logs. I see nothing wrong in them, but hopefully you will.
This is not an udev problem; this is caused by the fact that hal polls your device for media; fwiw, I've seen this with the ide-cs driver as well when using a PCMCIA CF card reader and I'm looking into blacklisting such devices or at least working around issues. Please state your version of hal and include the output of 'lshal' so we can get this resolved.
To me, it seems that if you do a 'dd if=/dev/hde of=/tmp/foo bsQ2 count' then it causes a all partitions on /dev/hde to be hot unplugged and then hot replugged. Uhm, isn't that some kind of bug in the driver or what.
thanks,
David
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 7 lines · David Zeuthen
Quoted 6 lines · Guillaume Chazarain
That's bad news, it means you cannot reproduce it :(
Here is a tar.bz2 containing strace logs of dbus-daemon-1 and udevd. There is also a dmesg
output, my kernel .config,/etc/udev/sys and kernel logs. I see nothing wrong in them, but hopefully you will.
Guillaume: I believe I've fixed this problem in the just released hal 0.2.97, at least it works nicely with my PCMCIA card reader which showed the same issues. I see that you are running Fedora Core development; updated hal-0.2.97 packages should appear in rawhide soon [1].
It would be great if you can test these packages ('rpm -q hal' should report hal-0.2.97-1 or higher) and if it fails then please report the bug to http://bugzilla.redhat.com or the [email protected] mailing list. If it just works, also feel free to mail me personally; I would appreciate it! Thanks.
Quoted 11 lines
This is not an udev problem; this is caused by the fact that hal polls your device for media; fwiw, I've seen this with the ide-cs driver as well when using a PCMCIA CF card reader and I'm looking into blacklisting such devices or at least working around issues. Please state your version of hal and include the output of 'lshal' so we can get this resolved.
To me, it seems that if you do a 'dd if=/dev/hde of=/tmp/foo bsQ2 count' then it causes a all partitions on
/dev/hdeto be hot unplugged and then hot replugged. Uhm, isn't that some kind of bug in the driver or what.
Hotplug folks: I'd just like to note that this problem is not exclusive to hal at all, it even applies to mount(1) if the filesystem given is 'auto', cause then mount(1) access the device file and this will cause a hotplug removal and then a hotplug add. Specifically, using udev callouts to get the drive serial number or volume lanel will also cause infinite loops.
Can anyone please confirm this is a bug in the IDE subsystem?
Thanks,
David
[1] : Alternatively download the (S)RPMs from here
http://freedesktop.org/~david/rpms/
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 20 lines · David Zeuthen
Quoted 11 lines · David Zeuthen
Quoted 8 lines · Guillaume Chazarain
That's bad news, it means you cannot reproduce it :(
Here is a tar.bz2 containing strace logs of dbus-daemon-1 and udevd. There is also a dmesg
output, my kernel .config,/etc/udev/sys and kernel logs. I see nothing wrong in them, but hopefully you will.Guillaume: I believe I've fixed this problem in the just released hal 0.2.97, at least it works nicely with my PCMCIA card reader which showed the same issues. I see that you are running Fedora Core development; updated hal-0.2.97 packages should appear in rawhide soon [1].
Quoted 7 lines
It would be great if you can test these packages ('rpm -q hal' should report hal-0.2.97-1 or higher) and if it fails then please report the bug to http://bugzilla.redhat.com or the [email protected] mailing list. If it just works, also feel free to mail me personally; I would appreciate it! Thanks.
Sorry for the delay, I am at work, here are two lshal outputs, one before mounting and the other after.
Hopefully tomorrow you'll know if the new hal solves my problems :)
Signature · 1 line
Guillaume