BAD_POOL_CALLER with 4th parameter as 40

Dear All,

I am getting BAD_POOL_CALLER caller at a particuar module in my filter
driver application with 4th parameter as 40
“The current thread attempted to free kernel pool at user-mode address.”
What does this means ??? freeing kernel pool at user mode address ?

Please comment.

Regards,
rohit

What address are you trying to free?

Regards,

Tony Mason
Consulting Partner
OSR Open Systems Resources Inc
http://www.osr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rohit Dhamija
Sent: Tuesday, May 11, 2004 7:21 AM
To: ntfsd redirect
Subject: [ntfsd] BAD_POOL_CALLER with 4th parameter as 40

Dear All,

I am getting BAD_POOL_CALLER caller at a particuar module in my filter
driver application with 4th parameter as 40
“The current thread attempted to free kernel pool at user-mode address.”
What does this means ??? freeing kernel pool at user mode address ?

Please comment.

Regards,
rohit


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

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

Dear Mr Mason,

Thank you for the reply.
I am trying to free unicode string.

Regards,
Rohit
“Tony Mason” wrote in message news:xxxxx@ntfsd…
What address are you trying to free?

Regards,

Tony Mason
Consulting Partner
OSR Open Systems Resources Inc
http://www.osr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rohit Dhamija
Sent: Tuesday, May 11, 2004 7:21 AM
To: ntfsd redirect
Subject: [ntfsd] BAD_POOL_CALLER with 4th parameter as 40

Dear All,

I am getting BAD_POOL_CALLER caller at a particuar module in my filter
driver application with 4th parameter as 40
“The current thread attempted to free kernel pool at user-mode address.”
What does this means ??? freeing kernel pool at user mode address ?

Please comment.

Regards,
rohit


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

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

Rohit,

No, I mean “what is the numeric value of the address you are trying to
free.” Barring that, how about the entire bug check code? That would
yield the answer.

My guess is that this means you are freeing an address that is in the
user portion of the address space. If I am interpreting your note
correctly, your bug check was:

0xC2: (0x40,

, address>, 0)

What confused me is your description of the 0x40 as the *FOURTH*
parameter. I think it should be the FIRST parameter if I am
interpreting your comments correctly (I had to go look it up in the docs
though.)

Are you sure you are freeing a UNICODE_STRING? Again, I'd guess you are
freeing the Buffer associated with one and I suspect that buffer address
is in user mode address space.

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources Inc.
http://www.osr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rohit Dhamija
Sent: Tuesday, May 11, 2004 8:52 AM
To: ntfsd redirect
Subject: Re:[ntfsd] BAD_POOL_CALLER with 4th parameter as 40

Dear Mr Mason,

Thank you for the reply.
I am trying to free unicode string.

Regards,
Rohit
"Tony Mason" wrote in message news:xxxxx@ntfsd...
What address are you trying to free?

Regards,

Tony Mason
Consulting Partner
OSR Open Systems Resources Inc
http://www.osr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rohit Dhamija
Sent: Tuesday, May 11, 2004 7:21 AM
To: ntfsd redirect
Subject: [ntfsd] BAD_POOL_CALLER with 4th parameter as 40

Dear All,

I am getting BAD_POOL_CALLER caller at a particuar module in my filter
driver application with 4th parameter as 40
"The current thread attempted to free kernel pool at user-mode address."
What does this means ???? freeing kernel pool at user mode address ?

Please comment.

Regards,
rohit

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

You are currently subscribed to ntfsd as: xxxxx@osr.com
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: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Dear Mr. Mason,

Yes, 0x40 was the FIRST parameter and I was trying to free buffer associated
with the unicode.
“how about the entire bug check code”
Actually I made changes in code and didnot recieved the same error again so
donot know the entire bug check code.
Regards,
Rohit

“Tony Mason” wrote in message news:xxxxx@ntfsd…
Rohit,

No, I mean “what is the numeric value of the address you are trying to
free.” Barring that, how about the entire bug check code? That would
yield the answer.

My guess is that this means you are freeing an address that is in the
user portion of the address space. If I am interpreting your note
correctly, your bug check was:

0xC2: (0x40, , address>, 0)

What confused me is your description of the 0x40 as the FOURTH
parameter. I think it should be the FIRST parameter if I am
interpreting your comments correctly (I had to go look it up in the docs
though.)

Are you sure you are freeing a UNICODE_STRING? Again, I’d guess you are
freeing the Buffer associated with one and I suspect that buffer address
is in user mode address space.

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources Inc.
http://www.osr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rohit Dhamija
Sent: Tuesday, May 11, 2004 8:52 AM
To: ntfsd redirect
Subject: Re:[ntfsd] BAD_POOL_CALLER with 4th parameter as 40

Dear Mr Mason,

Thank you for the reply.
I am trying to free unicode string.

Regards,
Rohit
“Tony Mason” wrote in message news:xxxxx@ntfsd…
What address are you trying to free?

Regards,

Tony Mason
Consulting Partner
OSR Open Systems Resources Inc
http://www.osr.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Rohit Dhamija
Sent: Tuesday, May 11, 2004 7:21 AM
To: ntfsd redirect
Subject: [ntfsd] BAD_POOL_CALLER with 4th parameter as 40

Dear All,

I am getting BAD_POOL_CALLER caller at a particuar module in my filter
driver application with 4th parameter as 40
“The current thread attempted to free kernel pool at user-mode address.”
What does this means ??? freeing kernel pool at user mode address ?

Please comment.

Regards,
rohit


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

You are currently subscribed to ntfsd as: xxxxx@osr.com
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: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Dear Mr Mason,

The exact error was :
STOP: 0X000000C2 ( 0X00000040, 0X00000000, 0X80000000, 0X000000)
BAD_POOL_CALLER

and it comes as soon as i am trying to free a buffer.

DbgPrint(“\xxxxx@KRISHNA Allowed for:%wZ!”,&fullFileNameWrt);
ExFreePoolWithTag(fullFileNameWrt.Buffer,‘pmoC’);

The debug print stops at above pt.
@KRISHNA Allowed for: c:\WINN####

The debug print doesnot shows the complete path and at this point the system
crashes. I think i have properly freed the memory.

Please comment.
Regards,
rohit