[Bug 278826] [hpet] cdev->si_refcount leakage when enable hpet as timecounter hardware

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 07 May 2024 09:14:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278826

--- Comment #2 from Austin Zhang <austin.zhang@dell.com> ---
(In reply to Konstantin Belousov from comment #1)

When a process exits, it's expected to release /dev/hpet0 via munmap, which
should decrease the si_refcount accordingly. However, it appears this decrement
does not occur. If the count isn't properly reduced, it could erroneously
overflow and potentially turn negative. That's why I believe there is a
leakage.
Please correct me if I've misunderstood the scenario.

-- 
You are receiving this mail because:
You are the assignee for the bug.