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

Re: [win-pv-devel] [PATCH] Reorder StorePollLocked and StoreDisable


  • To: 'Owen Smith' <owen.smith@xxxxxxxxxx>, "win-pv-devel@xxxxxxxxxxxxxxxxxxxx" <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Durrant, Paul" <pdurrant@xxxxxxxxxxxx>
  • Date: Wed, 4 Mar 2020 13:51:22 +0000
  • Accept-language: en-GB, en-US
  • Delivery-date: Wed, 04 Mar 2020 13:51:41 +0000
  • Ironport-sdr: MguEhIQflWs0xZDaNWfe2R9GiwTFIwX3vBet3z4bhL5ttThmsdHECnhPKBkgPR2oCMw9Vo/La/ gGE2RGamUBSw==
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>
  • Thread-index: AQHV8ijhVLLxLz+sF0OHdrSi7/Ph0qg4cyoA
  • Thread-topic: [win-pv-devel] [PATCH] Reorder StorePollLocked and StoreDisable

> -----Original Message-----
> From: win-pv-devel <win-pv-devel-bounces@xxxxxxxxxxxxxxxxxxxx> On Behalf Of 
> Owen Smith
> Sent: 04 March 2020 13:27
> To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
> Cc: Owen Smith <owen.smith@xxxxxxxxxx>
> Subject: [EXTERNAL][win-pv-devel] [PATCH] Reorder StorePollLocked and 
> StoreDisable
> 
> CAUTION: This email originated from outside of the organization. Do not click 
> links or open
> attachments unless you can confirm the sender and know the content is safe.
> 
> 
> 
> StoreDisable will close and NULL the event channel, then StorePollLocked
> will attempt to call EVTCHN(GetCount...) with the NULLed pointer. This
> will lead to a D1 BSOD.
> 
> Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>

Reviewed-by: Paul Durrant <pdurrant@xxxxxxxxxx>

Ouch! I wonder why I've never spotted this in testing. This is going to need 
back-porting too.

  Paul

> ---
>  src/xenbus/store.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/xenbus/store.c b/src/xenbus/store.c
> index f07e469..cbc442e 100644
> --- a/src/xenbus/store.c
> +++ b/src/xenbus/store.c
> @@ -2611,8 +2611,8 @@ StoreRelease(
> 
>      XENBUS_SUSPEND(Release, &Context->SuspendInterface);
> 
> -    StoreDisable(Context);
>      (VOID) StorePollLocked(Context);
> +    StoreDisable(Context);
>      RtlZeroMemory(&Context->Response, sizeof (XENBUS_STORE_RESPONSE));
> 
>      XENBUS_EVTCHN(Release, &Context->EvtchnInterface);
> --
> 2.16.2.windows.1
> 
> 
> _______________________________________________
> win-pv-devel mailing list
> win-pv-devel@xxxxxxxxxxxxxxxxxxxx
> https://lists.xenproject.org/mailman/listinfo/win-pv-devel
_______________________________________________
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®.