Bug 196781 - Using this USB camera / SD reader without SD card make logs fill up quickly
Summary: Using this USB camera / SD reader without SD card make logs fill up quickly
Status: NEW
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: io_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-26 10:23 UTC by Morgan Leijström
Modified: 2017-08-26 10:23 UTC (History)
0 users

See Also:
Kernel Version: for years to now 4.9.43
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Morgan Leijström 2017-08-26 10:23:13 UTC
While it was severe for me (log partition filled up) this seem to be so unusual hardware so i set severity normal anyhow.

I filed the bug originally at https://bugs.mageia.org/show_bug.cgi?id=10038 - for more info see there.  At that time the symptom was like https://bugzilla.kernel.org/show_bug.cgi?id=43191

That was years ago, never fixed.  Log message changed completely a couple years ago, and maybe it is not the same issue... so i create a new bug here to see if someone may recognise it.

The logging flood it is caused by the same procedure with same hardware in same circumstance as i used before.


If i have the SD card in the camera and plug it into the computer USB, it is recognised and Plasma pops up dialog, it can mount, browse etc the SD card OK.

But if i plug it in without SD card, and also if i later unplug it, the logs are filling up with repeated messages.

Both /var/log/messages and /var/log/syslog grows.

When i connect the camera to USB in without SD card spews to /var/log/messages a couple hundred lines of:

Aug 25 17:34:39 svarten systemd-udevd[31234]: inotify_add_watch(9, /dev/sdd, 10) failed: No such file or directory

End then:

Aug 25 17:34:39 svarten kernel: [ 9469.213241] scsi 10:0:0:0: Direct-Access     GENPLUS  USB-MSDC DISK A  1.00 PQ: 0 ANSI: 0
Aug 25 17:34:39 svarten systemd-udevd[31234]: inotify_add_watch(9, /dev/sdd, 10) failed: No such file or directory
Aug 25 17:34:39 svarten kernel: [ 9469.215607] sd 10:0:0:0: [sdd] Test WP failed, assume Write Enabled
Aug 25 17:34:39 svarten kernel: [ 9469.216735] sd 10:0:0:0: [sdd] Asking for cache data failed
Aug 25 17:34:39 svarten kernel: [ 9469.216737] sd 10:0:0:0: [sdd] Assuming drive cache: write through
Aug 25 17:34:39 svarten kernel: [ 9469.217102] sd 10:0:0:0: [sdd] Attached SCSI removable disk

And stops.   Acceptable so far.
*But when i then unplug it from USB it starts again spewing lines* like

Aug 25 17:37:41 svarten systemd-udevd[31234]: inotify_add_watch(9, /dev/sdd, 10) failed: No such file or directory

About a hundred lines per second!

Logging stops like above if i plug in the camera again - but interestingly systemd-udevd still occupies one CPU core 100%.

If i insert the SD card, and then plug in the camera, the SD is not found, and one CPU is still running full.

I have to reboot in order to connect to the camera.

For me personally this is not a big problem.

My concern is that i do not like system going down by just briefly attaching an USB device...!

I am not a coder, just a serious user.

So, if someone is willing to dig into it i am willing to donate my miniature camera that is triggering this behaviour (at least have on Mageia 2,3,4,5,6 64 bit on this machine)

The camera was sold as Velleman CAMCOLVC8N1 keychain video camera.

Note You need to log in before you can comment on or make changes to this bug.