win-pvdrivers

changeset 812:551d17b09bc1 0.11.0.221

Force a crash if we get a buffer overrun in hibernate
author James Harper <james.harper@bendigoit.com.au>
date Sat Aug 28 13:53:10 2010 +1000 (2010-08-28)
parents bf1b18b4728b
children c5235eb2c802
files xenpci/xenpci_pdo.c xenvbd/xenvbd.c
line diff
     1.1 --- a/xenpci/xenpci_pdo.c	Sat Aug 28 13:52:40 2010 +1000
     1.2 +++ b/xenpci/xenpci_pdo.c	Sat Aug 28 13:53:10 2010 +1000
     1.3 @@ -1071,6 +1071,7 @@ XenPciPdo_EvtDeviceD0Entry(WDFDEVICE dev
     1.4    CHAR path[128];
     1.5    
     1.6    FUNCTION_ENTER();
     1.7 +  KdPrint((__DRIVER_NAME "     path = %s\n", xppdd->path));
     1.8  
     1.9    switch (previous_state)
    1.10    {
    1.11 @@ -1148,9 +1149,7 @@ XenPciPdo_EvtDeviceD0Exit(WDFDEVICE devi
    1.12    UNREFERENCED_PARAMETER(target_state);
    1.13    
    1.14    FUNCTION_ENTER();
    1.15 -
    1.16    KdPrint((__DRIVER_NAME "     path = %s\n", xppdd->path));
    1.17 -
    1.18    
    1.19    switch (target_state)
    1.20    {
     2.1 --- a/xenvbd/xenvbd.c	Sat Aug 28 13:52:40 2010 +1000
     2.2 +++ b/xenvbd/xenvbd.c	Sat Aug 28 13:53:10 2010 +1000
     2.3 @@ -439,6 +439,7 @@ XenVbd_PutQueuedSrbsOnRing(PXENVBD_DEVIC
     2.4  
     2.5      if ((ULONG_PTR)srb->DataBuffer & 511)
     2.6      {
     2.7 +      ASSERT(!dump_mode || block_count * 512 < BLKIF_MAX_SEGMENTS_PER_REQUEST_DUMP_MODE * PAGE_SIZE);
     2.8        xvdd->aligned_buffer_in_use = TRUE;
     2.9        ptr = xvdd->aligned_buffer;
    2.10        if (!decode_cdb_is_read(srb))