mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[NTOS:CM] Do not acquire a KCB lock twice when deleting a key object
This prevents a deadlock in DelistKeyBodyFromKCB when we delete a key object because of an access check failure during a open procedure of a registry key, as we are already holding a lock against the target KCB of the key body.
This commit is contained in:
@@ -138,7 +138,7 @@ CmpDeleteKeyObject(PVOID DeletedObject)
|
||||
if (Kcb)
|
||||
{
|
||||
/* Delist the key */
|
||||
DelistKeyBodyFromKCB(KeyBody, FALSE);
|
||||
DelistKeyBodyFromKCB(KeyBody, KeyBody->KcbLocked);
|
||||
|
||||
/* Dereference the KCB */
|
||||
CmpDelayDerefKeyControlBlock(Kcb);
|
||||
|
||||
Reference in New Issue
Block a user