Memory leak occurs in my network redirector -Rxlr tag

I’m writing a network redirector like SMB.
And it is also using RDBSS.

When I download many files from our server using my network-redirector, I found memory leak occurs. I tested with OSR’s pooltag reporter. It’s awesome. Thanks for the creator.
The leak’s pool tag was ‘Rxlr’. I guess this is RDBSS module’s.

  • Is it true? I’m not sure. How can I know that?

So, I also tested using SMB.
When I download many files with SMB, allocs - frees always is zero. -Yes it’s perfect.

Where do I get start point? Give me a hint please.
Thanks.

I’ve found the tag ‘RxIr’ is for RxContext.

For every IRPs, the memory leak occurs.
Why aren’t RxContext deallocated?

Hi,
I don’t know which os version you’re running, but looking at the rdbss code
I dig up from an old ifs kit, it seems to me a leak exist in the
RxlowioSubmit code if the irp sent is asynchronous and status pending is
returned from below. In this case the rxcontext reference count is
incremented but I don’t see it decremented in the completion path so
RxContext structure cannot be deallocated. Maybe someone at MS can prove me
wrong I hope. Checking on a live system with a memory breakpoint on this
reference count should confirmed/disprove this. I don’t see a related KB
entry quoting or fixing this either.
Regards,
J.

wrote in message news:xxxxx@ntfsd…
> I’ve found the tag ‘RxIr’ is for RxContext.
>
> For every IRPs, the memory leak occurs.
> Why aren’t RxContext deallocated?
>
>

Thanks jerome.

I haven’t found the problem yet.
But appreciate for your answer.

Even if I return when RxContext->ReferenceCount is 1 and RxContext->Flags is 0x23, the leak occurs.
I think it doesn’t care I/O has been issued anync or not.