From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: Re: race condition in xen-gntdev Date: Tue, 30 Jun 2015 16:26:45 +0100 Message-ID: <5592B535.9070802@citrix.com> References: <20150430144744.GF919@mail-itl> <20150527234508.GA14838@mail-itl> <20150617194211.GB11083@mail-itl> <20150622174626.GH5408@l.oracle.com> <20150622181335.GJ11083@mail-itl> <20150622183713.GD9631@l.oracle.com> <55885E88.2040805@tycho.nsa.gov> <20150626012824.GD967@mail-itl> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20150626012824.GD967@mail-itl> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: =?windows-1252?Q?Marek_Marczykowski-G=F3recki?= , Daniel De Graaf Cc: Boris Ostrovsky , David Vrabel , xen-devel List-Id: xen-devel@lists.xenproject.org On 26/06/15 02:28, Marek Marczykowski-G=F3recki wrote: > = > From b876e14888bdafa112c3265e6420543fa74aa709 Mon Sep 17 00:00:00 2001 > From: =3D?UTF-8?q?Marek=3D20Marczykowski-G=3DC3=3DB3recki?=3D > > Date: Fri, 26 Jun 2015 02:16:49 +0200 > Subject: [PATCH] xen/grant: fix race condition in gntdev_release > = > While gntdev_release is called, MMU notifier is still registered and > can traverse priv->maps list even if no pages are mapped (which is the > case - gntdev_release is called after all). But gntdev_release will > clear that list, so make sure that only one of those things happens at > the same time. Applied to for-linus-4.2 and tagged for stable, thanks. David