-
Notifications
You must be signed in to change notification settings - Fork 690
Description
Environment
- Windows version: win7, win10
- Processor architecture: x64
- Dokany version: 2.1.0.1000
- Library type (Dokany/FUSE): Dokany
Check List
- I checked my issue doesn't exist yet
- My issue is valid with mirror default sample and not specific to my user-mode driver implementation
- I can always reproduce the issue with the provided description below.
- I have updated Dokany to the latest version and have reboot my computer after.
- I tested one of the last snapshot from appveyor CI
Description
When I run memfs.exe with administrator privileges on a PC with certain antivirus software installed, I get a BSOD,seemingly crashing in dokan2.sys
If I disable the antivirus software or stop its USB protection feature, memfs.exe can work normally.
Also, if I enable the antivirus software and its USB protection feature but run memfs.exe without administrator privileges, memfs.exe can work normally.
I've tested version 2.1.0.1000 on both Windows 7 and Windows 10.
The name of the antivirus software is Rising, and it's from China. Here is the download page: rising v17 download page
I am a novice and not very familiar with Windows driver development. I have conducted some basic debugging and it seems that the buffer obtained through the MmGetSystemAddressForMdlNormalSafe() function points to an incorrect address. When executing RtlZeroMemory() on this buffer, an error occurred.
I looked into the code, and I have a question: In the DokanQueryDirectory() function (sys/directory.c:106), could the value of RequestContext->Irp->MdlAddress be filled by the program of antivirus software?
My English is bad. This is the translation provided by ChatGPT.
Thank you very much.
Logs
Here is my log and the output of !analyze -v: