From: Ian Campbell Subject: Re: [PATCH v2 3/3] [GSOC14] FIX:- Race condition between initializing shared ring and mempaging. Date: Wed, 23 Jul 2014 11:14:00 +0100 Message-ID: <1406110440.17026.1.camel@kazak.uk.xensource.com> References: <1402942851-12538-1-git-send-email-myselfdushyantbehl@gmail.com> <1402942851-12538-4-git-send-email-myselfdushyantbehl@gmail.com> <1403865212.25894.11.camel@kazak.uk.xensource.com> <53CCD6ED.3020303@citrix.com> <53CD2670.50704@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <53CD2670.50704@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: David Scott , Stefano Stabellini , Ian Jackson , Xen Devel , Andres Lagar Cavilla , Dushyant Behl List-Id: xen-devel@lists.xenproject.org On Mon, 2014-07-21 at 15:40 +0100, Andrew Cooper wrote: > > > > Note that the XSA commmit, 6ae2df93c27, does exactly that. Enable > > paging/access/sharing, and only after that decrease reservation (and > > after that unpause). So the window is open ... methinks? > > No - it does a domain pause around this set of critical operations, so > the guest is guaranteed not to be running, and therefore cannot > interfere. Shouldn't there be a memset in here somewhere? To clear out any bogus material in the ring? (maybe the caller of this code always clears the ring itself, I didn't check that) Ian.