Public bug reported:

fwupd doesn't release hidraw devices for unplugged peripherals, causing
the kernel to keep allocating new hidraw devices until it hits
HIDRAW_MAX_DEVICES.

Steps to reproduce:
1. Ensure that fwupd.service is running
2. Plug in a Logitech Unifying Receiver (or any other thing that creates a 
hidraw device that fwupd recognizes)
3. Unplug it.
4. Repeat 2 and 3, and note that the allocated hidraw device number keeps 
increasing.
5. HIDRAW_MAX_DEVICES=64, so after /dev/hidraw64 is hit, no new hidraw devices 
can be allocated until fwupd is restarted
6. Check the list of hidraw devices being held by fwupd:

% sudo lsof -p $(pidof fwupd) -n | grep hidraw
fwupd   15027 root   16u      CHR              246,6      0t0 83682527 
/dev/hidraw6 (deleted)
fwupd   15027 root   30u      CHR              246,7      0t0 83769950 
/dev/hidraw7 (deleted)
fwupd   15027 root   31u      CHR             246,11      0t0 83771266 
/dev/hidraw11 (deleted)
fwupd   15027 root   33u      CHR              246,8      0t0 83778056 
/dev/hidraw8 (deleted)
fwupd   15027 root   34u      CHR             246,13      0t0 83779740 
/dev/hidraw13 (deleted)
fwupd   15027 root   39u      CHR              246,9      0t0 83912152 
/dev/hidraw9 (deleted)
fwupd   15027 root   41u      CHR             246,10      0t0 83916478 
/dev/hidraw10 (deleted)
fwupd   15027 root   43u      CHR             246,12      0t0 83918049 
/dev/hidraw12 (deleted)
fwupd   15027 root   45u      CHR             246,14      0t0 83923588 
/dev/hidraw14 (deleted)
fwupd   15027 root   47u      CHR             246,15      0t0 83927517 
/dev/hidraw15 (deleted)
fwupd   15027 root   48u      CHR             246,19      0t0 83928356 
/dev/hidraw19 (deleted)
fwupd   15027 root   50u      CHR             246,16      0t0 83935331 
/dev/hidraw16 (deleted)
fwupd   15027 root   57u      CHR             246,17      0t0 83953052 
/dev/hidraw17 (deleted)
fwupd   15027 root   59u      CHR             246,18      0t0 83953650 
/dev/hidraw18 (deleted)
fwupd   15027 root   61u      CHR             246,24      0t0 83955207 
/dev/hidraw24

7. Restart fwupd.service.
8. Note that the newly created /dev/hidraw device is now back to a small number.

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: fwupd 0.9.7-2ubuntu1
Uname: Linux 4.14.12-hyper1+ x86_64
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
CurrentDesktop: GNOME
Date: Tue Mar  6 13:42:00 2018
SourcePackage: fwupd
UpgradeStatus: Upgraded to artful on 2017-11-04 (121 days ago)

** Affects: fwupd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug artful

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1753655

Title:
  fwupd doesn't release hidraw devices

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/fwupd/+bug/1753655/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to