[NTOS:CM] Lock the cached KCB before removing it from cache entries
authorGeorge Bișoc <george.bisoc@reactos.org>
Sat, 23 Mar 2024 19:28:01 +0000 (20:28 +0100)
committerGeorge Bișoc <george.bisoc@reactos.org>
Sun, 24 Mar 2024 18:03:43 +0000 (19:03 +0100)
commitf1d2a4485975004e5ff1c666ed2d8ebefe5282b7
tree6d516fbe54a06f01b4c6f70d688687f715aead28
parent2449ed5d85cf4fb04d12a394fc43741c8137580b
[NTOS:CM] Lock the cached KCB before removing it from cache entries

- Annotate the CmpEnumerateOpenSubKeys function with SAL2
- When removing an orphaned cached KCB, ensure that it is locked before clearing it from cache table entries
ntoskrnl/config/cmapi.c
ntoskrnl/config/ntapi.c
ntoskrnl/include/internal/cm.h