summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-08-08 17:17:13 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-08-08 17:17:13 +0000
commitba803f158faf28e05a52dd2cf968f6925e85586e (patch)
treeff2b2549b23ebb294a78361398a7e21c78063b93 /sys
parent645bfcfc7a44cb3eef794f55a0f348cdbb48b20c (diff)
There was a possible off-by-one in ld.so when loading shared libraries.
In some (rare?) cases, where the bss was too small and fit entirely into the leftovers of the data segment we could map one extra page. This is slightly dangerous on PMAP_PREFER machines where mmaps allocations do not happen linearly in the virtual space and we could end up overwriting mappings that are already in use. This also changes the initial allocation from being a MAP_ANON to a MAP_FILE so that we can pass the fd as a PMAP_PREFER hint.
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions