git: 03466b1de5f8 - stable/15 - netlink: Pre-register the missing devctl event systems
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Nov 2026 08:02:36 UTC
The branch stable/15 has been updated by christos:
URL: https://cgit.FreeBSD.org/src/commit/?id=03466b1de5f8358db6d60eb9a72b3d121be47e64
commit 03466b1de5f8358db6d60eb9a72b3d121be47e64
Author: Christos Margiolis <christos@FreeBSD.org>
AuthorDate: 2026-11-03 16:51:08 +0000
Commit: Christos Margiolis <christos@FreeBSD.org>
CommitDate: 2026-11-13 08:02:14 +0000
netlink: Pre-register the missing devctl event systems
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
(cherry picked from commit 66d078c17294ca2ea225e4926a8cd9697dda57ed)
---
sys/netlink/netlink_sysevent.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sys/netlink/netlink_sysevent.c b/sys/netlink/netlink_sysevent.c
index 09e7e50a7409..d63a4c025dc3 100644
--- a/sys/netlink/netlink_sysevent.c
+++ b/sys/netlink/netlink_sysevent.c
@@ -56,6 +56,7 @@ static struct sysevent_group {
static const char *devctl_systems[] = {
"ACPI",
"AEON",
+ "BLUETOOTH",
"CAM",
"CARP",
"coretemp",
@@ -66,10 +67,11 @@ static const char *devctl_systems[] = {
"HYPERV_NIC_VF",
"IFNET",
"INFINIBAND",
- "KERNEL",
+ "kernel",
"nvme",
"PMU",
"RCTL",
+ "SND",
"USB",
"VFS",
"VT",