From: Keir Fraser Subject: Re: Double mapping of iomem assertion Date: Fri, 19 Oct 2007 08:19:24 +0100 Message-ID: References: <4718753D.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4718753D.76E4.0078.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , Kieran Mansley Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 19/10/07 08:13, "Jan Beulich" wrote: >> This was introduced by xen changeset 14731, back in April. So Jan is to >> blame (and me, I suppose!). ;-) I expect it's in a few vendor kernels at >> this point... > > Indeed, I didn't consider this situation. However, excluding the check > against current->mm here was on purpose (and hence I'm not certain > your adding of it was correct) - when used on user mappings, > ptep_get_and_clear() is expected to return the most up-to-date A/D > flags, which cannot be achieved through a hypercall. On the contrary, > the use(s) with init_mm never have such expectations as far as I > recall, they at best check the returned value for validity/presence/null. Ah, that's true... I'll fix the fix. -- Keir