diff options
author | guenther <> | 2022-06-30 17:15:48 +0000 |
---|---|---|
committer | guenther <> | 2022-06-30 17:15:48 +0000 |
commit | bba78d9dd5b00312f2056cd821f67a63db27dad5 (patch) | |
tree | 2425f35436d2313336db8896e3fffeb6c8cf530d /src/lib/libssl/ssl_methods.c | |
parent | 60bd7814aabdd2a0b90bf39b553f4b6b6cc406a7 (diff) | |
download | openbsd-bba78d9dd5b00312f2056cd821f67a63db27dad5.tar.gz openbsd-bba78d9dd5b00312f2056cd821f67a63db27dad5.tar.bz2 openbsd-bba78d9dd5b00312f2056cd821f67a63db27dad5.zip |
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@
Diffstat (limited to 'src/lib/libssl/ssl_methods.c')
0 files changed, 0 insertions, 0 deletions