From: "Theo de Raadt" Subject: Re: another yubikey diff To: Miod Vallat Cc: Mike Larkin , Brandon Mercer , Mark Kettenis , tech@openbsd.org Date: Fri, 22 Aug 2025 11:19:01 -0600 Miod Vallat wrote: > > hotplug creates events when devices match. This is before the attach > > functions have completed. If hotplug tries to play with a device, and the > > attach routine encounters extended sleeps, the hotplug action will not > > succeed. > > Are you sure about that? Looking at subr_autoconf.c, > hotplug_device_attach() only gets invoked after the device attach > routine has returned. Then maybe it is deferred actions that screw things up. We've heard numerous cases of hotplug not behaving like people expect.