From: bart brooks Subject: GPL PV Windows xennet will BSOD Date: Wed, 4 Jun 2008 22:28:56 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0537395074==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0537395074== Content-Type: multipart/alternative; boundary="_9234281f-b698-42fb-b153-52efc53b2721_" --_9234281f-b698-42fb-b153-52efc53b2721_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Running GPL PV Windows drivers on Windows 2003 Server Standard Edition SP2 = - The current GPL PV Windows xennet driver source found in the repository wil= l BSOD if the option "Large Send Offload" is changed to disabled or if the = driver is disabled. Tracked down the issue via WinDbg =96 If a buffer is in the free list prior to the function XenNet_RxBufferFree()= being called via the function XenNet_RxShutdown() the array fl->page_list[= ] will be overwritten and the variable page_free will be stepped on. A simple solution, which I have verified is to dispose of the free list buf= fers (if there are any) by calling the function XenFreelist_Dispose() prior= to calling the function XenNet_RxBufferFree() Here=92s the fix for the function XenNet_RxShutdown(); add the following li= nes after KeAcquireSpinLock() and before XenNet_RxBufferFree () /* free any buffers in free list before freeing all rx buffers */ XenFreelist_Dispose(&xi->rx_freelist); =20 Bart =20 _________________________________________________________________ Instantly invite friends from Facebook and other social networks to join yo= u on Windows Live=99 Messenger. https://www.invite2messenger.net/im/?source=3DTXT_EML_WLH_InviteFriends= --_9234281f-b698-42fb-b153-52efc53b2721_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Running GPL PV Windows drivers on Windows 2003 Server Standard Editi= on SP2 -

The current GPL PV Windows xennet driver source found in the reposit= ory will BSOD if the option "Large Send Offload" is changed to disabled or = if the driver is disabled.

Tracked down the issue via WinDbg =96

If a buffer is in the free list prior= to the function XenNet_RxBufferFree() being called via the function XenNet_RxShutdown() the array fl->page_= list[] will be overwritten and the variable page_free will be stepped on.

A si= mple solution, which I have verified is to dispose of the free list buffers= (if there are any) by calling the function XenFreelist_Dispose() prior to = calling the function XenNet_RxBufferFree()<= /P>

Here= =92s the fix for the function XenNet_RxShutdown(); add the following lines = after KeAcquireSpinLock() and before &nbs= p;XenNet_RxBufferFree ()

  /* free any buffers in free lis= t before freeing all rx buffers */

  XenFreelist_Dispose(&xi->= ;rx_freelist);

 = ;

Bart=

 


Instantly invite friends from Facebook and other soci= al networks to join you on Windows Live=99 Messenger. Invite friends now! = --_9234281f-b698-42fb-b153-52efc53b2721_-- --===============0537395074== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0537395074==--