summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_glue.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2011-01-09 12:38:40 +0000
committerkib <kib@FreeBSD.org>2011-01-09 12:38:40 +0000
commitb2e3ee7d07d38a011d50e0ce65fe146aafb5c939 (patch)
tree3e9a8bc61608f36b6d941a6fe4ca52880cc1c222 /sys/vm/vm_glue.c
parent13fb4c75946c522dc61a068915f8ebe021d256c7 (diff)
downloadFreeBSD-src-b2e3ee7d07d38a011d50e0ce65fe146aafb5c939.zip
FreeBSD-src-b2e3ee7d07d38a011d50e0ce65fe146aafb5c939.tar.gz
Implement the __pthread_map_stacks_exec() for libthr.
Stack creation code is changed to call _rtld_get_stack_prot() to get the stack protection right. There is a race where thread is created during dlopen() of dso that requires executable stacks. Then, _rtld_get_stack_prot() may return PROT_READ | PROT_WRITE, but thread is still not linked into the thread list. In this case, the callback misses the thread stack, and rechecks the required protection afterward. Reviewed by: davidxu
Diffstat (limited to 'sys/vm/vm_glue.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud