Jump to content
Welcome to our new Citrix community!
  • 0

Filter driver issue: ZwReadFile causes OSR fsdk exception in my IRP_MJ_CREATE dispatch routine for PicaDriveRedirector file, returning Invalid Handle status


Juumlrgen Falk

Question

When my filter driver calls ZwReadFile in IRP_MJ_CREATE dispatch routine for PicaDriveRedirector file for a mapped drive, it causes an OSR fsdk exception in the lower level PicaDriveRedirector driver (Citrix redirector). The IoCreateFileSpecifyDeviceObjectHint succeeds so I get a valid handle. But calling ZwReadFile with the valid handle, causes the OSR fsdk exception below. The user action behind is, that the file is about to be copied from the mapped drive F: (an USB stick) to the desktop. The full path looks like this: \\Device\PicaDriveRedirector\Client\F$\myfile.exe. 
 

*** FSDK DEBUGGING: Caught exception in FSDK Code ***
*** THIS IS AN EXPECTED CONDITION BEING HANDLED ***
*** FSDK DEBUGGING: Caught exception in FSDK Code ***
*** ***
*** You should execute the following windbg commands: **
*** ***
*** ***
*** .exr 0xFFFF82078ED7F1D0 ; .cxr 0xFFFF82078ED7F270 ; kv ***

*** ***
*** ***
*** (this is current as of WinDBG 6.5.3.7) ***
*** For current versions please see ***
*** http://www.microsoft.com/whdc/ddk/debugging ***
*** ***

*** FSDK DEBUGGING: Continued past breakpoint. ***

 

return values from ZwReadFile

452a0080: IRP_MJ_CREATE ZwReadFile Error: Status=c0000008, IoStatusBlock.Status=0, Handle=800022e4

 

It looks like the handle becomes invalid during read. This all happens when I'm filtering the \device\picadriveredirector files. I assume it occurs in the OSR Windows File System Development Kit (FSDK) that the Citrix picadriveredirector team is using. The exception is raised by the lower level picadriveredirector driver.  I've also created the read IRP by myself and sent it down, to bypass ZwReadFile, same problem.

Any help is appreciated. Thank you.

Link to comment

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...