CVSROOT:        /cvs
Module name:    src
Changes by:     guent...@cvs.openbsd.org        2022/06/30 11:15:48

Modified files:
        lib/libc/stdlib: malloc.c 

Log message:
To figure our whether a large allocation can be grown into the
following page(s) we've been first mquery()ing for it, mmapp()ing
w/o MAP_FIXED if available, and then munmap()ing if there was a
race.  Instead, just try it directly with
mmap(MAP_FIXED | __MAP_NOREPLACE)

tested in snaps for weeks

ok deraadt@

Reply via email to