[ros-bugs] [Bug 2083] New: gate.c - KeWaitForGate - Dispatcher lock may be left unreleased
ReactOS.Bugzilla at www.reactos.org
ReactOS.Bugzilla at www.reactos.org
Sat Mar 10 16:19:04 CET 2007
http://www.reactos.org/bugzilla/show_bug.cgi?id=2083
Summary: gate.c - KeWaitForGate - Dispatcher lock may be left
unreleased
Product: ReactOS
Version: TRUNK
Platform: x86 Hardware
OS/Version: ReactOS
Status: NEW
Severity: major
Priority: P3
Component: Kernel
AssignedTo: ros-bugs at reactos.org
ReportedBy: barmaley_m at yahoo.com
QAContact: ros-bugs at reactos.org
File: gate.c
Line: 78
Description:
If a gate is already signaled, KeWaitForGate exits quickly. All the locks which
have been previously acquired (The gate, Thread lock, Apc lock) are then
released before exiting. In one case, however, the dispatcher database lock may
have been acquired, but never released in the quick-exit branch.
Proposed fix:
Insert in gate.c, at line 78:
----- begin
/* Release the dispatcher if we have previously acquired it */
if (Queue) KiReleaseDispatcherLockFromDpcLevel();
----- end
--
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
You are the assignee for the bug, or are watching the assignee.
More information about the Ros-bugs
mailing list