diff options
author | guenther <> | 2022-06-30 17:15:48 +0000 |
---|---|---|
committer | guenther <> | 2022-06-30 17:15:48 +0000 |
commit | 77f0574b7c2b37a3c137d20f6ad687362c8da9a0 (patch) | |
tree | 2425f35436d2313336db8896e3fffeb6c8cf530d /src/lib/libssl/s3_lib.c | |
parent | 29cede2c0ebae841864f6d6a7011218f23f586b9 (diff) | |
download | openbsd-77f0574b7c2b37a3c137d20f6ad687362c8da9a0.tar.gz openbsd-77f0574b7c2b37a3c137d20f6ad687362c8da9a0.tar.bz2 openbsd-77f0574b7c2b37a3c137d20f6ad687362c8da9a0.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/s3_lib.c')
0 files changed, 0 insertions, 0 deletions