From owner-freebsd-stable@FreeBSD.ORG Thu Sep 10 11:28:58 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 317D0106566B; Thu, 10 Sep 2009 11:28:58 +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 620618FC20; Thu, 10 Sep 2009 11:28:56 +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 n8ABSoS4001348 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 10 Sep 2009 14:28:51 +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 n8ABSotr077784; Thu, 10 Sep 2009 14:28:50 +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 n8ABSoN6077783; Thu, 10 Sep 2009 14:28:50 +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: Thu, 10 Sep 2009 14:28:50 +0300 From: Kostik Belousov To: Vincent Hoffman Message-ID: <20090910112850.GG47688@deviant.kiev.zoral.com.ua> References: <4AA7D8B3.1010203@unsane.co.uk> <200909091339.00193.jhb@freebsd.org> <20090909190228.GC47688@deviant.kiev.zoral.com.ua> <4AA8D62F.1020901@unsane.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YOUJ+9SC2P4ELYXZ" Content-Disposition: inline In-Reply-To: <4AA8D62F.1020901@unsane.co.uk> 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, John Baldwin 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: Thu, 10 Sep 2009 11:28:58 -0000 --YOUJ+9SC2P4ELYXZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 10, 2009 at 11:34:23AM +0100, Vincent Hoffman wrote: > Kostik Belousov wrote: > > On Wed, Sep 09, 2009 at 01:38:59PM -0400, John Baldwin wrote: > > =20 > >> On Wednesday 09 September 2009 12:32:51 pm Vincent Hoffman wrote: > >> =20 > >>> 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. > >>> > >>> 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= value=20 > >> of %ebx ('p $ebx' in ddb will work I think)? I wonder if this patch w= ould=20 > >> fix it: > >> > >> 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 { > >> =20 > > > > 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_o= ffset_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 > > =20 > Hi, > I tried this this morning with no joy i'm afraid. > not much change but new backtrace (with p $ebx) at > http://www.unsane.co.uk/~jhary/freebsd/10-09-09.gif I would need the panic message and ddb lines that are not present on your screenshot. Also, the dmesg is interesting (CPU features report). >=20 > Just to check I'm not in need of more coffee as i'm still learning svn > (and my coding skills such as they are lie in shell and perl) >=20 > krill# svn info > Path: . > URL: svn://svn.freebsd.org/base/stable/8 > Repository Root: svn://svn.freebsd.org/base > Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f > Revision: 196740 > Node Kind: directory > Schedule: normal > Last Changed Author: rnoland > Last Changed Rev: 196737 > Last Changed Date: 2009-09-01 17:41:28 +0100 (Tue, 01 Sep 2009) >=20 >=20 > krill# sed -n '1010,1017p' sys/i386/xen/pmap.c > * coherence domain. > */ > mfence(); > for (; sva < eva; sva +=3D cpu_clflush_line_size) > clflush(sva); > mfence(); > } else { >=20 > krill# >=20 > Happy to give vnc access to the console of the machine if that would help. >=20 > Vince --YOUJ+9SC2P4ELYXZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkqo4vIACgkQC3+MBN1Mb4iXfACfWtwupfpz27jM1HtX5SL/2Bp2 qSwAoPNLTaZXG9ftOou39sV4uhMpGB7s =rFA/ -----END PGP SIGNATURE----- --YOUJ+9SC2P4ELYXZ--