From owner-freebsd-current Mon Jul 27 16:28:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA06968 for freebsd-current-outgoing; Mon, 27 Jul 1998 16:28:57 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp02.primenet.com (root@smtp02.primenet.com [206.165.6.132]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA06907 for ; Mon, 27 Jul 1998 16:28:38 -0700 (PDT) (envelope-from tlambert@usr08.primenet.com) Received: (from daemon@localhost) by smtp02.primenet.com (8.8.8/8.8.8) id OAA07847; Mon, 27 Jul 1998 14:30:40 -0700 (MST) Received: from usr08.primenet.com(206.165.6.208) via SMTP by smtp02.primenet.com, id smtpdd07414; Mon Jul 27 14:30:15 1998 Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id NAA21188; Mon, 27 Jul 1998 13:30:15 -0700 (MST) From: Terry Lambert Message-Id: <199807272030.NAA21188@usr08.primenet.com> Subject: Re: MMAP problems To: mike@smith.net.au (Mike Smith) Date: Mon, 27 Jul 1998 20:30:15 +0000 (GMT) Cc: tlambert@primenet.com, mike@smith.net.au, karl@Mcs.Net, wollman@khavrinen.lcs.mit.edu, dswartz@druber.com, current@FreeBSD.ORG In-Reply-To: <199807270007.RAA12744@antipodes.cdrom.com> from "Mike Smith" at Jul 26, 98 05:07:08 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > The problem Garrett notes is, IMO, "pilot error" and has to do with > > the failure to call msync() when it is necessary. Per the discussion, > > it can be made possible to not need to call msync(). > > Subsequent to your dissertation, do you have any suggested fixes? Someone needs to go over the mmap code with a fine tooth comb, with a critical eye towards what happens when a page from a mapped region is nominally LRU'ed out from under it, and then subsequently read-faulted back in. Unless there is a specific difference for executable page handling, I'll note that I expect this problem to show up from use of shared libraries, as well. 8-(. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message