From: Keir Fraser Subject: Re: Question: dom0 electrocuted by implicitly unmapped grantrefs Date: Tue, 24 Nov 2009 08:32:40 +0000 Message-ID: References: <1259017646.2758.315.camel@ramone.somacoma.net> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1259017646.2758.315.camel@ramone.somacoma.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Daniel Stodden Cc: Xen Developers List-Id: xen-devel@lists.xenproject.org On 23/11/2009 23:07, "Daniel Stodden" wrote: >> It's arguable I suppose. An implicitly unmapped grant leaves a grant entry >> which cannot be released until the mapping domain dies. It's a nasty kind of >> leak, and I made the hypervisor's response to it suitably abrupt. > > Forgive my ignorance: Why can't it be released any more? To me it looks > as if the mapping is already gone, so the entry is stale, and the caller > just pointed at it somewhat asking for just that. We can't usually reliably tell. In most cases the granting domain would still be hanging around. It's just on that one unlikely path we happen to be able to tell. -- Keir