From 0250399a8151388188ebd345d02e18a527e7d4c9 Mon Sep 17 00:00:00 2001 From: Owen Smith Date: Wed, 4 Mar 2020 13:27:23 +0000 Subject: [PATCH] Reorder StorePollLocked and StoreDisable 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 --- 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.39.5