From owner-freebsd-hackers Fri Aug 24 23:10:40 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from earth.backplane.com (earth-nat-cw.backplane.com [208.161.114.67]) by hub.freebsd.org (Postfix) with ESMTP id EBE1037B40F for ; Fri, 24 Aug 2001 23:10:32 -0700 (PDT) (envelope-from dillon@earth.backplane.com) Received: (from dillon@localhost) by earth.backplane.com (8.11.6/8.11.2) id f7P6AV404891; Fri, 24 Aug 2001 23:10:31 -0700 (PDT) (envelope-from dillon) Date: Fri, 24 Aug 2001 23:10:31 -0700 (PDT) From: Matt Dillon Message-Id: <200108250610.f7P6AV404891@earth.backplane.com> To: Peter Wemm Cc: Julian Elischer , Alfred Perlstein , David Greenman , freebsd-hackers@FreeBSD.ORG Subject: Re: Possible race in i386/i386/pmap.c:pmap_copy() References: <20010825055913.1ED783810@overcee.netplex.com.au> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG :> Hmm. Ok, I think you are right. APTDpde is what is being loaded :> and that points into the user page table directory page, which is :> per-process. So APTDpde should be per-process. : :But it is! (sort-of) APTDpde was per-process but is now per-address-space :with the advent of fork and RFMEM sharing (and KSE). : :When we context switch, PTD goes with the process^H^H^H^Haddress space, and :APTD is merely mapped by the last entry in the per-process PTD :(PTD[APTDPDTI] if memory serves correctly). : :Cheers, :-Peter :-- :Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au Oh !@#$#@$.. you're right! That means there *IS* a race, just that it is a race in the case where you use rfork. APTDpde can be ripped out from under one thread by another thread. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message