DragonFlyBSD Kernel Audit
← triage · dashboard
DF-2974

EVENTHANDLER_FAST_DEREGISTER macro is syntactically broken (missing underscore in list symbol) and the entire FAST handler API is dead code

Field Value
ID DF-2974
Status new
Severity Info
CVSS 3.1 CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:N
CWE CWE-1164 / CWE-1078
File sys/sys/eventhandler.h (found in subr_eventhandler.c pass 2)
Lines 95-96
Area kern
Confidence certain
Discovered 2026-09-02
Pass 2 (GLM 5.3 second pass — subr_eventhandler.c row)
Bucket base:kern
Reported pending
Known CVE none
CVE match novel

Summary

eventhandler.h:95-96 defines EVENTHANDLER_FAST_DEREGISTER(name, tag) as eventhandler_deregister(Xeventhandler_list ## name, tag) — the token concat produces 'Xeventhandler_list' instead of 'Xeventhandler_list_' (compare the correct form at :68/:78/:83/:93), so any use is a compile error. Grep confirms EVENTHANDLER_FAST_* have zero users in-tree: the whole fast-handler path (static lists outside the registry) is dead code that nonetheless encodes the lock-free-dispatch pattern DF-0246 lives in. Fix: delete the FAST API (preferred) or correct the typo; if kept, FAST_INVOKE must take evlist_token to close the DF-0246-class race for fast lists.

Timeline

  • 2026-09-02 Discovered during pass-2 audit of subr_eventhandler.c (GLM 5.3). DF-0246 re-verified still present, not re-reported.

Discussion (0)

No comments yet.