CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2014/10/03 11:41:00

Modified files:
        sys/sys        : mman.h 
        sys/uvm        : uvm.h uvm_extern.h uvm_fault.c uvm_map.c 
                         uvm_mmap.c 

Log message:
Introduce __MAP_NOFAULT, a mmap(2) flag that makes sure a mapping will not
cause a SIGSEGV or SIGBUS when a mapped file gets truncated.  Access to
pages that are not backed by a file on such a mapping will be replaced by
zero-filled anonymous pages.  Makes passing file descriptors of mapped files
usable without having to play tricks with signal handlers.

"steal your mmap flag" deraadt@

Reply via email to