From owner-freebsd-stable@FreeBSD.ORG Wed Sep 9 19:02:35 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1671B106566C; Wed, 9 Sep 2009 19:02:35 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id 821128FC0A; Wed, 9 Sep 2009 19:02:34 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id n89J2TuQ034689 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 9 Sep 2009 22:02:29 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id n89J2Tb0044024; Wed, 9 Sep 2009 22:02:29 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id n89J2TwJ044023; Wed, 9 Sep 2009 22:02:29 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 9 Sep 2009 22:02:28 +0300 From: Kostik Belousov To: John Baldwin Message-ID: <20090909190228.GC47688@deviant.kiev.zoral.com.ua> References: <4AA7D8B3.1010203@unsane.co.uk> <200909091339.00193.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="w2Ze1fp8mKggy7lw" Content-Disposition: inline In-Reply-To: <200909091339.00193.jhb@freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-stable@freebsd.org, Vincent Hoffman Subject: Re: general protection fault on boot. X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Sep 2009 19:02:35 -0000 --w2Ze1fp8mKggy7lw Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 09, 2009 at 01:38:59PM -0400, John Baldwin wrote: > On Wednesday 09 September 2009 12:32:51 pm Vincent Hoffman wrote: > > Hi all, > > I've been running the 8.0-BETAs in a xen virtual machine > > (hvm/fully virtualised) for testing and something between r196730 and > > r196746 causes a general protection fault on boot. I'll try and narrow > > it down if i get a chance but I'm a a bit busy at the moment. > > =20 > > backtrace is available at > > http://unsane.co.uk/~jhary/freebsd/GPF-09-09-09.gif=20 > > Xen dom0 is a centos5.3 box using the xen-3.3.1 rpms from > > http://www.gitco.de/linux/i386/centos/5/rpms/ if thats of any use. > >=20 > > Let me know if I need to provide any more info. >=20 > Hmm, can you try reverting 196737? Or actually, can you print out the va= lue=20 > of %ebx ('p $ebx' in ddb will work I think)? I wonder if this patch woul= d=20 > fix it: >=20 > Index: pmap.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- pmap.c (revision 196974) > +++ pmap.c (working copy) > @@ -999,7 +999,7 @@ > * coherence domain. > */ > mfence(); > - for (; sva < eva; sva +=3D cpu_clflush_line_size) > + for (; sva <=3D eva; sva +=3D cpu_clflush_line_size) > clflush(sva); > mfence(); > } else { Oh, no, another pointy hat to me :(. Please, try this patch instead. diff --git a/sys/i386/xen/pmap.c b/sys/i386/xen/pmap.c index 4b81aae..122318c 100644 --- a/sys/i386/xen/pmap.c +++ b/sys/i386/xen/pmap.c @@ -1004,8 +1004,8 @@ pmap_invalidate_cache_range(vm_offset_t sva, vm_offse= t_t eva) * coherence domain. */ mfence(); - for (; eva < sva; eva +=3D cpu_clflush_line_size) - clflush(eva); + for (; sva < eva; sva +=3D cpu_clflush_line_size) + clflush(sva); mfence(); } else { =20 --w2Ze1fp8mKggy7lw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkqn+8IACgkQC3+MBN1Mb4iLZACfc8+868+lMdSftGZ1wH2sIcSr 0VoAnjqHi69YrBcjQlrmPgOcx9vJfBPg =wZdP -----END PGP SIGNATURE----- --w2Ze1fp8mKggy7lw--