FltMgr bugcheck

During a rename I’m returning STATUS_NOT_SAME_DEVICE
(Data->IoStatus.Status = STATUS_NOT_SAME_DEVICE, Info = 0, return
FLT_PREOP_COMPLETE).
However this is causing a FltMgr bugcheck during
FltPrintReturnCallbackStatus (surprisingly my driver is not in the call
stack at this point). The problem does not occur if rename does not
return this error code.
Is there anything special I need to do when I return
STATUS_NOT_SAME_DEVICE vs other status codes?


Kind regards, Dejan M.
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32
developers.
Alfa File Monitor - File monitoring library for Win32 developers.

Dejan,

I know this is not much help but, I return STATUS_NOT_SAME_DEVICE in
response to renames on certain files in my mini-filter without seeing
this problem. So I don’t think there is anything special you need to
do.

Maybe I have just been lucky.

Regards

Ben

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dejan Maksimovic
Sent: 05 October 2005 01:25
To: Windows File Systems Devs Interest List
Subject: [ntfsd] FltMgr bugcheck

During a rename I’m returning STATUS_NOT_SAME_DEVICE
(Data->IoStatus.Status = STATUS_NOT_SAME_DEVICE, Info = 0, return
FLT_PREOP_COMPLETE).
However this is causing a FltMgr bugcheck during
FltPrintReturnCallbackStatus (surprisingly my driver is not in the call
stack at this point). The problem does not occur if rename does not
return this error code.
Is there anything special I need to do when I return
STATUS_NOT_SAME_DEVICE vs other status codes?


Kind regards, Dejan M.
http://www.alfasp.com E-mail: xxxxx@alfasp.com Alfa Transparent File
Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32
developers.
Alfa File Monitor - File monitoring library for Win32 developers.


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@des.co.uk To unsubscribe
send a blank email to xxxxx@lists.osr.com

Could be just enough to tell me “look elsewhere, you’re barking up the wrong
tree”:slight_smile: Thanks, at least it’s not that…

Ben Curley wrote:

Dejan,

I know this is not much help but, I return STATUS_NOT_SAME_DEVICE in
response to renames on certain files in my mini-filter without seeing
this problem. So I don’t think there is anything special you need to
do.

Maybe I have just been lucky.

Regards

Ben

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dejan Maksimovic
Sent: 05 October 2005 01:25
To: Windows File Systems Devs Interest List
Subject: [ntfsd] FltMgr bugcheck

During a rename I’m returning STATUS_NOT_SAME_DEVICE
(Data->IoStatus.Status = STATUS_NOT_SAME_DEVICE, Info = 0, return
FLT_PREOP_COMPLETE).
However this is causing a FltMgr bugcheck during
FltPrintReturnCallbackStatus (surprisingly my driver is not in the call
stack at this point). The problem does not occur if rename does not
return this error code.
Is there anything special I need to do when I return
STATUS_NOT_SAME_DEVICE vs other status codes?


Kind regards, Dejan M.
http://www.alfasp.com E-mail: xxxxx@alfasp.com Alfa Transparent File
Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32
developers.
Alfa File Monitor - File monitoring library for Win32 developers.


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@des.co.uk To unsubscribe
send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Kind regards, Dejan M.
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32 developers.
Alfa File Monitor - File monitoring library for Win32 developers.

Dejan,

I don’t know why filter manager would crash in this scenario. Can you
please double check the name of the routine that is crashing? That
routine does not make any sense to me. I would like to understand
exactly where it is failing.

Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
Rights

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dejan Maksimovic
Sent: Tuesday, October 04, 2005 5:25 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] FltMgr bugcheck

During a rename I’m returning STATUS_NOT_SAME_DEVICE
(Data->IoStatus.Status = STATUS_NOT_SAME_DEVICE, Info = 0, return
FLT_PREOP_COMPLETE).
However this is causing a FltMgr bugcheck during
FltPrintReturnCallbackStatus (surprisingly my driver is not in the call
stack at this point). The problem does not occur if rename does not
return this error code.
Is there anything special I need to do when I return
STATUS_NOT_SAME_DEVICE vs other status codes?


Kind regards, Dejan M.
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32
developers.
Alfa File Monitor - File monitoring library for Win32 developers.


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Here are the Fltmgr parts of the stack:

FltpvPrintErrors+00DA
FltpvVerifyPreOperationStatus+007E
FltvPreOperation+0063
FltvPerformPreCallbacks
FltvPassThroughInternal
FltvPassThrough
FltvDispatch

Sorry about the incorrect routine name, I have posted this when I no longer had
access to the test machine.

Regards, Dejan.

Neal Christiansen wrote:

Dejan,

I don’t know why filter manager would crash in this scenario. Can you
please double check the name of the routine that is crashing? That
routine does not make any sense to me. I would like to understand
exactly where it is failing.


Kind regards, Dejan M.
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32 developers.
Alfa File Monitor - File monitoring library for Win32 developers.

I found the reason. The completion context was set and the FltMgr was complaining
about a set CCtx when no completion routine was set.
It’s reproducible with the simplest bare bone mini-filter. If this is the correct
outcome from the above scenario, this should be an FAQ item; if not here’s a simple
code that crashes the system (put inside SetInfo pre-operation handler):
if(Data->Iopb->Parameters.SetFileInformation.FileInformationClass ==
FileRenameInformation)
{
DbgPrint(“Changing return status\n”);
*CompletionContext = Data;
Data->IoStatus.Status = STATUS_NOT_SAME_DEVICE;
Data->IoStatus.Information = 0;
return FLT_PREOP_COMPLETE;
}
return FLT_PREOP_SUCCESS_NO_CALLBACK;

Regards, Dejan.

Neal Christiansen wrote:

Dejan,

I don’t know why filter manager would crash in this scenario. Can you
please double check the name of the routine that is crashing? That
routine does not make any sense to me. I would like to understand
exactly where it is failing.


Kind regards, Dejan M.
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32 developers.
Alfa File Monitor - File monitoring library for Win32 developers.