From: Daniel Stodden Subject: Question: dom0 electrocuted by implicitly unmapped grantrefs Date: Mon, 23 Nov 2009 14:43:56 -0800 Message-ID: <1259016236.2758.277.camel@ramone.somacoma.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Xen Developers List-Id: xen-devel@lists.xenproject.org Hi. Can someone explain a piece of code to me? I'm looking at a dom0 crash dump involving the following piece in grant_table.c:__gnttab_unmap_common if ( unlikely((op->rd = rd = rcu_lock_domain_by_id(dom)) == NULL) ) { /* This can happen when a grant is implicitly unmapped. */ gdprintk(XENLOG_INFO, "Could not find domain %d\n", dom); domain_crash(ld); /* naughty... */ return; } I assume 'implicitly unmapped' therein refers to a case where rd is gone because ld in some or the other way already managed to tear down a mapping without an exlicit gnttab call? This correct? Otherwise killing ld would seem a bit rough to me :} Either way: is domain_crash(ld) the appropriate response? Why not just fail the op and let the caller live and learn? Thanks. Daniel