CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2020/03/04 14:15:39

Modified files:
        sys/uvm        : uvm_map.c uvm_mmap.c 

Log message:
Do not count pages mapped as PROT_NONE against the RLIMIT_DATA limit.
Instead count (and check the limit) when their protection gets flipped
from PROT_NONE to something that permits access.  This means that
mprotect(2) may now fail if changing the protection would exceed RLIMIT_DATA.

This helps code (such as Chromium's JavaScript interpreter that reserves
large chunks of address space but populates it sparsely.

ok deraadt@, otto@, kurt@, millert@, robert@

Reply via email to