From: Keir Fraser Subject: Re: Double mapping of iomem assertion Date: Wed, 17 Oct 2007 17:06:55 +0100 Message-ID: References: <1192636736.4277.30.camel@moonstone.uk.level5networks.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1192636736.4277.30.camel@moonstone.uk.level5networks.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: Kieran Mansley Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 17/10/07 16:58, "Kieran Mansley" wrote: > The second ioremap calls get_vm_area() and happens to be given a region > of virtual memory that at least partly overlaps the area that was used > for the first one. As the area was freed by the iounmap() in the middle > this seems sensible, but then when it comes to get the PTE for the > virtual addresses in the second map, it finds there are entries left > over from the first one. Well, that's bogus. iounmap() should zap all PTEs via remove_vm_area(). If it's not doing so then we have a bug. -- Keir