History log of /openbsd-src/lib/libpthread/man/pthread_attr_setstack.3 (Results 1 – 6 of 6)
Revision Date Author Comments
# 0abccc37 03-Dec-2020 otto <otto@openbsd.org>

There are special rules regarding the memory passed to pthread_attr_setstack().
ok semarie@


# 003f5e42 12-Apr-2018 deraadt <deraadt@openbsd.org>

Implement MAP_STACK option for mmap(). Synchronous faults (pagefault and
syscall) confirm the stack register points at MAP_STACK memory, otherwise
SIGSEGV is delivered. sigaltstack() and pthread_att

Implement MAP_STACK option for mmap(). Synchronous faults (pagefault and
syscall) confirm the stack register points at MAP_STACK memory, otherwise
SIGSEGV is delivered. sigaltstack() and pthread_attr_setstack() are modified
to create a MAP_STACK sub-region which satisfies alignment requirements.
Observe that MAP_STACK can only be set/cleared by mmap(), which zeroes the
contents of the region -- there is no mprotect() equivalent operation, so
there is no MAP_STACK-adding gadget.
This opportunistic software-emulation of a stack protection bit makes
stack-pivot operations during ROPchain fragile (kind of like removing a
tool from the toolbox).
original discussion with tedu, uvm work by stefan, testing by mortimer
ok kettenis

show more ...


# 86f9d4cd 05-Jun-2013 tedu <tedu@openbsd.org>

use fancy .In macro for includes. from Jan Klemkow. ok jmc schwarze


# 91063d07 18-Dec-2008 guenther <guenther@openbsd.org>

Add pthread_attr_[sg]etguardsize() to match rthread, including manpages
Bump lib minor

ok otto@ kurt@ marc@; doc review by jmc@


# 30fcf885 05-Jul-2008 jmc <jmc@openbsd.org>

- correct .Dt for pthread_attr_setstack.3
- new sentence, new line


# 11ddadc0 05-Jul-2008 guenther <guenther@openbsd.org>

Add manpage for pthread_attr_[sg]etstack(3)
Correct misnaming in STANDARDS section
ok brad@ otto@