dhcpcd-discuss

Race between kernel and udevd uevents

Lukas Wunner

Wed Apr 11 15:33:15 2018

Hi,

when resetting a USB-attached Ethernet interface using the USBDEVFS_RESET
ioctl(), the interface briefly disappears, then reappears.  This results
in add and remove uevents from both the kernel and udevd.

If those uevents are interleaved as
   kernel remove
   kernel add
   udevd remove
   udevd add
then dhcpcd fails to assign addresses on reappearance of the interface.

If on the other hand the uevents are ordered as
   kernel remove
   udevd remove
   kernel add
   udevd add
then everything works as expected.

Adding --nodev on the command line or nodev to dhcpcd.conf makes the
issue go away.

Detailed debug logs are available at
https://github.com/RPi-Distro/repo/issues/102

Thanks,

Lukas

Follow-Ups:
Re: Race between kernel and udevd ueventsRoy Marples
Archive administrator: postmaster@marples.name