bibikurosawa / dokan

Automatically exported from code.google.com/p/dokan
0 stars 0 forks source link

Bluescreen possibly because of cache manager calls #132

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We have observed spurious bluescreen issues after installing our 0.4.2 +
bugfixes dokan release. The crashes do not occur in dokan.sys, but usually
in NTFS. The crashes happen at different places, but always when trying to
access memory managed by the cache manager (CcFlushCache, for example). 
I have looked through the code and noticed that dokan calls
CcUnitializeCacheMap once in sys/flush.c and also in cleanup.c. I haven't
been able to confirm that this is bad, but since some in-memory structures
are reused in the cache manager (according to the file system internals
book), doing a double release would explain why ntfs is accessing memory
that might have been deallocated.

I have attached an example minidump.

Original issue reported on code.google.com by t.s.mae...@gmail.com on 10 Feb 2010 at 6:57

Attachments:

GoogleCodeExporter commented 9 years ago
Replacing the CCUninitializeCacheMap with a CcFlushCache seems to get rid of 
the blue
screens. I have now completely removed all cache manager calls from our TRUNK 
and
I'll keep you posted what that does.

Original comment by t.s.mae...@gmail.com on 12 Mar 2010 at 12:33