kernel - Fix udev devfs leak and possible panic
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 17 Mar 2018 18:11:26 +0000 (11:11 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 17 Mar 2018 18:11:26 +0000 (11:11 -0700)
commit0049c59cb7fdf51f94e6d972d59c5f19d86aaad4
treed45b2e098cc1de941567fa5ed5cdfe44299fe305
parent3ea578da975a2e5ca2ab5252d9f6986c8d01e460
kernel - Fix udev devfs leak and possible panic

* udev was trying to add cloned nodes under /dev/udev, but /dev/udev
  is not a directory.

* Leave /dev/udev alone and put the cloned nodes under /dev/udevs/%d.

* Fixes 'X leaked device nodes' from devfs, particularly when mounted
  inside jails.

* Might also fix occassional devfs related panics.
sys/kern/kern_udev.c