mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
devctl_notify() can be called with a mutex held. If the event system is not listed in devctl_systems[], sysevent_get_group() calls sysevent_new_group(), which calls strdup() with M_WAITOK, and we may end up sleeping while holding a non-sleepable mutex. Add the missing systems. While here, remove the nonexistent KERNEL system. PR: 299272 MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D61161