cvs commit: src/sys/vm vm_map.c vm_map.h

Alan Cox alc at cs.rice.edu
Fri Apr 23 20:52:19 PDT 2004


On Fri, Apr 23, 2004 at 08:46:44PM -0700, Alan Cox wrote:
> alc         2004/04/23 20:46:44 PDT
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/vm               vm_map.c vm_map.h 
>   Log:
>   In cases where a file was resident in memory mmap(..., PROT_NONE, ...)
>   would actually map the file with read access enabled.  According to
>   http://www.opengroup.org/onlinepubs/007904975/functions/mmap.html this is
>   an error.  Similarly, an madvise(..., MADV_WILLNEED) would enable read
>   access on a virtual address range that was PROT_NONE.
>   
>   The solution implemented herein is (1) to pass a vm_prot_t to
>   vm_map_pmap_enter() describing the allowed access and (2) to make
>   vm_map_pmap_enter() responsible for understanding the limitations of
>   pmap_enter_quick().
>   
>   Submitted by:   "Mark W. Krentel" <krentel at dreamscape.com>
>   PR:             kern/64573
>   
>   Revision  Changes    Path
>   1.333     +5 -4      src/sys/vm/vm_map.c
>   1.109     +1 -1      src/sys/vm/vm_map.h

Could someone else please port and commit this change to RELENG_4?  I'm
happy to explain what to do.

Thanks,
Alan


More information about the cvs-all mailing list