Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Apr 2004 20:43:42 -0700
From:      "David G. Lawrence" <dg@dglawrence.com>
To:        "Mark W. Krentel" <krentel@dreamscape.com>
Cc:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/64573: mmap with PROT_NONE, but still could be read
Message-ID:  <20040414034342.GA2439@nexus.dglawrence.com>
In-Reply-To: <200404140140.i3E1eKh6099415@freefall.freebsd.org>
References:  <200404140140.i3E1eKh6099415@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
>  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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040414034342.GA2439>