From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Fitzhardinge Subject: Re: Dom0 crash after bad use of gntdev Date: Mon, 06 Dec 2010 10:18:43 -0800 Message-ID: <4CFD2903.3010705@goop.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: James Harper Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 12/05/2010 09:43 PM, James Harper wrote: > I have a bug in some code running in Dom0 that uses gntdev and it's > crashing Dom0 when it goes wrong. I'm not sure exactly what it's doing > wrong but is it acceptable for this to happen? The things I know are > that I'm passing an invalid array to xc_gnttab_map_grant_refs and then > unmapping it without checking the result of the mapping. I'm not sure > what else is going on aside from those two things. In principle the kernel shouldn't crash as a result from misuse of an ABI, and it often indicates some problem which might affect things in a more subtle way under other circumstances. Can you post the details of your crash and what your program is doing? Thanks, J