Re: How is possible that NDIS_PACKET->Head->MappedSystemVa is pageable



When you construct your packet ti indicate, do you insure that the first NDIS buffer contains the MAC header plus LookaheadSize bytes?

This is a requirement, and failure to comply can cause problems like the one you are seeing.

Thomas F. Divine, Windows DDK MVP
http://www.pcausa.com

"Peter" <Peter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:23AF6F43-B238-433E-A23F-FE72C3E384D8@xxxxxxxxxxxxxxxx
I met bug:
DRIVER_IRQL_NOT_LESS_OR_EQUAL,

Bug occurred inside of: NdisMIndicateReceivePacket(...,myPacket, 1);
called from my driver.
Amazing is that address of memory referenced is inside of NDIS_PACKET:
MyPacket->Head->MappedSystemVa.
I see in memory in debugger that MappedSystemVa is not displayable ant it
show error ERROR_READ_FAULT, so it is probably paged.

I met this bug in system with debug versions of kernel,hal and ndis.sys
and on system running under memory stress with driver verifier turned on my
driver and ndis.sys.
MyPacket was allocated with NdisDprAllocatePacket() and buffers are created
by copying from original packet with help of NdisCopyBuffer().
How can be possible that packet created by such way has paged
Head->MappedSystemVa ?
What can I to do in my code to avoid of this ?

Peter

.



Relevant Pages

  • [patch 2.6.12-rc3] dell_rbu: Resubmitting patch for new Dell BIOS update driver
    ... +for updating BIOS images on Dell hardware. ... +This document discusses the functionality of the DELL_RBU driver. ... +The BIOS then scans the memory to find the image and will then update itself. ... +2> By writing image in to smaller packet chunks of contiguous physical memory. ...
    (Linux-Kernel)
  • RE: [patch 2.6.12-rc3] dell_rbu: Resubmitting patch for new DellBIOS update driver
    ... This driver also has made the mono_size and packet_size entries writable ... +for updating BIOS images on Dell hardware. ... +in the contiguous or packetized memory depending upon the update type. ... +2> By writing image in to smaller packet chunks of contiguous physical ...
    (Linux-Kernel)
  • [patch 2.6.12-rc3] dell_rbu: Resubmitting patch for new Dell BIOS update driver
    ... +for updating BIOS images on Dell hardware. ... +This document discusses the functionality of the DELL_RBU driver. ... +The BIOS then scans the memory to find the image and will then update itself. ... +2> By writing image in to smaller packet chunks of contiguous physical memory. ...
    (Linux-Kernel)
  • [RFC][patch 2.6.12-rc3] dell_rbu: Resubmitting patch for new Dell BIOS update driver
    ... this patch is your whole driver and the firmware changes all ... +Demonstrate the usage of the new open sourced rbu (Remote BIOS Update) ... +update itself with the image downloaded in to the memory. ... +would place each packet in contiguous physical memory. ...
    (Linux-Kernel)
  • Re: memory allocation fails
    ... I noticed you mentioned "packet" so I assume this is a network driver? ... > My PC 1394 driver allocates memory when it receives packet. ... This is non-paged memory allocation. ...
    (microsoft.public.development.device.drivers)

Loading