From: Tim Deegan Subject: Re: Xen-unstable-staging: Xen BUG at iommu_map.c:455 Date: Thu, 16 Apr 2015 10:28:30 +0100 Message-ID: <20150416092830.GD13443@deinos.phlegethon.org> References: <55294CA8.2070208@citrix.com> <55294DF9.9040207@citrix.com> <1189087521.20150411192519@eikelenboom.it> <55295B7D.4020107@citrix.com> <4810067032.20150411194249@eikelenboom.it> <55296730.30802@citrix.com> <1468678653.20150411213342@eikelenboom.it> <55298278.2080406@citrix.com> <1698372572.20150411230533@eikelenboom.it> <55299391.4030900@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yig6D-0001RO-OY for xen-devel@lists.xenproject.org; Thu, 16 Apr 2015 09:28:41 +0000 Content-Disposition: inline In-Reply-To: <55299391.4030900@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: Sander Eikelenboom , Paul Durrant , Jan Beulich , xen-devel List-Id: xen-devel@lists.xenproject.org [Trimmed egregious quoting] At 22:35 +0100 on 11 Apr (1428791713), Andrew Cooper wrote: > I am not certain that it is the correct way to fix the issue, nor that > the ioreq server code is the only way to trigger it. There are several > ways to shoot a gfn mapping from the guests physmap. > > At least we now understand why it happens. I will defer to others CC'd > on this thread for their opinions in the matter. The patch semes like a pretty good check to me, though I'm not convinced it's race-free. At the least I'd cache the m2p lookup so we use the same value for the checks and the map_page() call. And IMO update_paging_mode() ought to log and reject bogus GFNs as well. Cheers, Tim.