nptl: disable mprotect usage in stack protection
commit5b9a9801a4867af70c9ed55379b3eaa3dba59ef3
authorChristophe Lyon <christophe.lyon@st.com>
Wed, 4 Jul 2018 15:55:31 +0000 (4 17:55 +0200)
committerWaldemar Brodkorb <wbrodkorb@conet.de>
Fri, 10 Aug 2018 14:02:45 +0000 (10 16:02 +0200)
treed408f2e9f64dc5ab9e973232fb8353b29e547119
parentfcecd012a6944eab8912787ca668b280e7233a8d
nptl: disable mprotect usage in stack protection

Since mprotect does not work on MMU-less systems, disable it if
__ARCH_USE_MMU__ is not defined.

* libpthread/nptl/allocatestack.c (change_stack_perm): Call
mprotect only if __ARCH_USE_MMU__ is defined.
(allocate_stack): Likewise.

Signed-off-by: Mickaël Guêné <mickael.guene@st.com>
Signed-off-by: Christophe Lyon <christophe.lyon@st.com>
libpthread/nptl/allocatestack.c