reactos/ntoskrnl/cc
Thomas Faber 1d398057a3
[NTOS:CC] Access SectionObjectPointers without lock in CcRosInitializeFileCache. CORE-14691
kmtest:NtCreateSection calls CcInitializeCacheMap with a
NULL value for SectionObjectPointers. This will cause an exception when
trying to access it, which in Windows can be handled gracefully.
However accessing it while holding ViewLock means the lock will not be
released, leading to an APC_INDEX_MISMATCH bugcheck.

This solves the problem by allocating SharedCacheMap outside the lock,
then freeing it again under lock if another thread has updated SharedCacheMap
in the mean time. This is also What Windows Does(TM).
2018-06-05 16:24:13 +02:00
..
cacheman.c [NTOS:CC] Use UNIMPLEMENTED_ONCE instead of custom code 2018-04-07 12:00:10 +02:00
copy.c [NTOSKRNL] Map the VACB in kernel space before inserting it in lists. 2018-04-15 22:52:53 +02:00
fs.c [NTOSKRNL] Drop the VACB lock. 2018-04-15 22:52:53 +02:00
lazywrite.c [NTOSKRNL] Optimize a bit deferred writes. 2018-05-02 23:33:45 +02:00
mdl.c
pin.c [NTOSKRNL] Fix lazy writer for in-use VACB. 2018-04-29 20:42:53 +02:00
view.c [NTOS:CC] Access SectionObjectPointers without lock in CcRosInitializeFileCache. CORE-14691 2018-06-05 16:24:13 +02:00