From owner-freebsd-bugs@FreeBSD.ORG Tue Apr 13 20:44:20 2004 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 215A116A4CE for ; Tue, 13 Apr 2004 20:44:20 -0700 (PDT) Received: from dglawrence.com (c-24-21-223-117.client.comcast.net [24.21.223.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id C74FD43D39 for ; Tue, 13 Apr 2004 20:44:19 -0700 (PDT) (envelope-from dg@nexus.dglawrence.com) Received: from nexus.dglawrence.com (localhost [127.0.0.1]) by dglawrence.com (8.12.10/8.12.6) with ESMTP id i3E3hg5X029349; Tue, 13 Apr 2004 20:43:42 -0700 (PDT) (envelope-from dg@nexus.dglawrence.com) Received: (from dg@localhost) by nexus.dglawrence.com (8.12.10/8.12.3/Submit) id i3E3hg5T029348; Tue, 13 Apr 2004 20:43:42 -0700 (PDT) Date: Tue, 13 Apr 2004 20:43:42 -0700 From: "David G. Lawrence" To: "Mark W. Krentel" Message-ID: <20040414034342.GA2439@nexus.dglawrence.com> References: <200404140140.i3E1eKh6099415@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200404140140.i3E1eKh6099415@freefall.freebsd.org> cc: freebsd-bugs@FreeBSD.org Subject: Re: kern/64573: mmap with PROT_NONE, but still could be read X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2004 03:44:20 -0000 > First, there is a much simpler program to reproduce the bug. This is > from 5.2-current as of April 6, 2004. > > /* > * Test mmap() and PROT_NONE. The first printf() should fail with seg > * fault or bus error because the segment has protection PROT_NONE, > * but actually, it runs ok. > */ Why would anyone want to mmap a file with PROT_NONE? -DG David G. Lawrence President Download Technologies, Inc. - http://www.downloadtech.com - (866) 399 8500 TeraSolutions, Inc. - http://www.terasolutions.com - (888) 346 7175 The FreeBSD Project - http://www.freebsd.org Pave the road of life with opportunities.