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. James _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Jeremy Fitzhardinge
2010-Dec-06 18:18 UTC
Re: [Xen-devel] Dom0 crash after bad use of gntdev
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 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel