Menu

#168 Bug when locking the volume

v1.0_(example)
open
nobody
None
5
2017-11-29
2017-05-31
v77
No

When I try to use the FSCTL_LOCK_VOLUME control code on a volume that uses ext2fsd (0.69), the function DeviceIoControl does not return, and the process can no longer be killed.
No problem when used on a NTFS volume.

The bug occurs on Windows 7 and 8.1. I can check on other versions if it can help.

The same call in another executable does not produce the bug. It seems related to a property of the executable, but I don't know what.

Discussion

  • v77

    v77 - 2017-05-31

    I forgot to say: the bug occurs only if the volume cannot be locked. If the volume has no open handle and can be locked successfully, the bug does not occur.

     
  • mikhoul

    mikhoul - 2017-05-31

    Will follow the bug :)

     
  • bilboazerty

    bilboazerty - 2017-11-29

    Good morning, i'm using the version 0.69 and i'm facing the same issue, using deviceiocontrol to lock the volume with FSCTL_LOCK_VOLUME freeze the thread and api never return.
    After looking more in deep in driver source code i notice that CcWaitForCurrentLazyWriterActivity is used in driver. this probably this api which waiting for locking the volume.?!

     

Log in to post a comment.