From owner-cvs-all@FreeBSD.ORG Wed Aug 6 15:12:36 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B933437B404; Wed, 6 Aug 2003 15:12:36 -0700 (PDT) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AE5F43FCB; Wed, 6 Aug 2003 15:12:35 -0700 (PDT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.12.9/8.12.9) with ESMTP id h76MCZnq021247 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 6 Aug 2003 18:12:35 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.6/8.9.1) id h76MCTS91864; Wed, 6 Aug 2003 18:12:29 -0400 (EDT) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16177.32077.922446.986623@grasshopper.cs.duke.edu> Date: Wed, 6 Aug 2003 18:12:29 -0400 (EDT) To: "Alan L. Cox" In-Reply-To: <3F3164D8.17704FF1@imimic.com> References: <200308061846.h76IkmYp068237@repoman.freebsd.org> <20030806162243.A91712@grasshopper.cs.duke.edu> <3F3164D8.17704FF1@imimic.com> X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/i386/i386 pmap.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Aug 2003 22:12:37 -0000 Alan L. Cox writes: > Andrew Gallatin wrote: > > > > Alan Cox [alc@FreeBSD.org] wrote: > > > alc 2003/08/06 11:46:48 PDT > > > > > > FreeBSD src repository > > > > > > Modified files: > > > sys/i386/i386 pmap.c > > > Log: > > > Acquire the page queues lock in pmap_insert_entry(). (I used to believe > > > that the page's busy flag could be relied upon to synchronize access to the > > > pv list. I don't any longer. See, for example, the call to > > > pmap_insert_entry() from pmap_copy().) > > > > Any chance this is what's causing the pmap corruption on alpha and ia64? > > We're also doing those same 3 lines there: > > > > TAILQ_INSERT_TAIL(&pmap->pm_pvlist, pv, pv_plist); > > TAILQ_INSERT_TAIL(&m->md.pv_list, pv, pv_list); > > m->md.pv_list_count++; > > > > Yup. Give it a try. > > > FWIW, I've managed to get a j16 buildworld to complete on a July 4 > > kernel, and fail with a fault-on-nofault-entry panic with a July 10 > > kernel. > > > > Prior to the "no fault", I would expect that a zero-filled page got > instantiated to satisfy the fault. > > Alan With the patch, the early "no fault" panic goes away, and seems to be replace by memory corruption later in the build: building static c library ranlib libc_pic.a ranlib libc.a ranlib libc_p.a sh /usr/src/tools/install.sh -C -o root -g wheel -m 444 libc.a /usr/obj/usr/src/alpha/usr/lib sh /usr/src/tools/install.sh -C -o root -g wheel -m 444 libc_p.a /usr/obj/usr/src/alpha/usr/lib sh /usr/src/tools/install.sh -s -o root -g wheel -m 444 libc.so.5 /usr/obj/usr/src/alpha/usr/lib ln -fs libc.so.5 /usr/obj/usr/src/alpha/usr/lib/libc.so sh /usr/src/tools/install.sh -o root -g wheel -m 444 libc_pic.a /usr/obj/usr/src/alpha/usr/lib 5 errors *** Error code 2 1 error *** Error code 2 1 error *** Error code 2 1 error This is after the build is 1/2 done (judging by the size of the logfile). I'm going to try again to ensure that I don't get the panic.. Drew