From: "Jan Beulich" Subject: Re: Crash during boot in Debian lenny default dom0 kernel (2.6.26-2-xen-686) Date: Thu, 25 Feb 2010 09:16:01 +0000 Message-ID: <4B864DE10200007800031393@vpn.id2.novell.com> References: <25841307.20100224200810@eikelenboom.it> <20100224202009.GE2761@reaktio.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: George Dunlap , pasik@iki.fi Cc: Sander Eikelenboom , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> George Dunlap 25.02.10 00:57 >>> >I realize dom0 is a privileged guest, but it still seems like we >should try not to crash Xen as a result on guest input. :-) While generally I agree, I think in the given case this is unavoidable - Xen could apply some sanity check, but the passing of a machine address from Dom0 to Xen implies that Dom0 knows what it does, and Xen trusts it. Specifically, struct physdev_map_pirq has this contents according to the trace .domid =3D 00007ff0 .type =3D 00000000 .index =3D ffffffff .pirq =3D ffffffff .bus =3D 00000000 .devfn =3D 00000008 .entry_nr =3D 00000000 .table_base =3D f5861e4a00000001 table_base would seem like not having been initialized at all. I would guess that they use the structure definition from before c/s 18323 (which had, instead of a table_base member, an int field indicating MSI vs. MSI-X. The original definition was added with c/s 17534 and 17535, but all of those changes happened during 3.3 development, so no-one should be using the old definition in released code.. Jan