]> git.ipfire.org Git - thirdparty/pdns.git/commit
Use mmap for stack allocation, adding the MAP_STACK flag on OpenBSD.
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 4 Jan 2019 12:09:08 +0000 (13:09 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 4 Jan 2019 12:09:08 +0000 (13:09 +0100)
commit4c6d0b56dfde775e5896b28061daed637a5762ed
treeb97727c10e77eddb6057055d0728fd1e6295a689
parent3ca12516aa23c0d8fdb0f01bd424cd6cbd7474bf
Use mmap for stack allocation, adding the MAP_STACK flag on OpenBSD.

On a userland to kernel transition OpenBSD checks if the stack
pointer points to a piece of mem marked MAP_STACK to prevent a large
class of exploits. Since we setup out own stack we must use mmap
on OpenBSD, and we might do that on other sytems as well.
pdns/lazy_allocator.hh