[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[win-pv-devel] [PATCH xenvbd] Prevent IsZeroMemory() ASSERTions when XENDISK shuts down


  • To: <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Paul Durrant <paul.durrant@xxxxxxxxxx>
  • Date: Wed, 18 Sep 2019 17:21:20 +0100
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=paul.durrant@xxxxxxxxxx; spf=Pass smtp.mailfrom=Paul.Durrant@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: Paul Durrant <paul.durrant@xxxxxxxxxx>
  • Delivery-date: Wed, 18 Sep 2019 16:21:35 +0000
  • Ironport-sdr: lI2RxaBtvxCpvyYKAjV8FQJHRGIUOLypuJGZYDKlv3bkJ/BdcM8Mms7wCPResboHoHz+HC4reU C2Berd76itAChnYpqC7IdelaNdSFVPy9zaoKqwJnQerN6kOhkJ8j39rzxETAq8eAxJADzvrC0f TqiPsksX2p87q9XdOACxCJj2+mMlYMot/5fFhZeK6SZFU/LMPAOX1ukn80wbEA1y/91AxtN/sJ in4INI0GG6MikXCUHagWHY7rfrM8yvdgM5bLUVbYOvxsDidRYIuTotrfh86qR84E30ZWUz6JN+ ei8=
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

Pdo->PhysSectorSize needs to be zeroed out.

Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx>
---
 src/xendisk/pdo.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/xendisk/pdo.c b/src/xendisk/pdo.c
index 62e15b2..d996643 100644
--- a/src/xendisk/pdo.c
+++ b/src/xendisk/pdo.c
@@ -1024,6 +1024,7 @@ __PdoStopDevice(
 
     IoReleaseRemoveLock(&Pdo->Dx->RemoveLock, Irp);
 
+    Pdo->PhysSectorSize = 0;
     Pdo->SectorSize = 0;
 
     return STATUS_SUCCESS;
@@ -1276,6 +1277,7 @@ done:
     status = PdoForwardIrpSynchronously(Pdo, Irp);
     IoCompleteRequest(Irp, IO_NO_INCREMENT);
 
+    Pdo->PhysSectorSize = 0;
     Pdo->SectorSize = 0;
 
     FdoAcquireMutex(Fdo);
-- 
2.5.3


_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/win-pv-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.