Crash in Dokan2.dll in DispatchDirectoryInformation #1183
-
Hello, we see intermittent crashes of our user mode implementation at a customer. But we' ve some dumps, and they all look the same:
Within DispatchDirectoryInformation we see the crash at: EnterCriticalSection(&IoEvent->DokanOpenInfo->CriticalSection); which makes sense, because IoEvent->DokanOpenInfo is NULL. Interesting fact: at the start of the Function there's a DbgPrint that deals with this:
Besides the question, how that pointer can be NULL, shouldn't this be checked before the EnterCriticalSection ? Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Hi Uwe, |
Beta Was this translation helpful? Give feedback.
-
Hi Liryna, I'll build a patch for the customer and ask him to install it on some machines. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Not yet, I'll ask them. |
Beta Was this translation helpful? Give feedback.
-
Okay, the customer has used the patch for a week now, and they didn't have any crashes since. So it looks like it's working correctly. |
Beta Was this translation helpful? Give feedback.
Hi Uwe,
Indeed a handle is not always expected during listing but the migration from v1 to v2 with the memory pool missed broke the logic
This patch should be enough 952087b to fix it. If you have the chance to confirm it, please let me know!