glibc/sysdeps/powerpc
Szabolcs Nagy 238032ead6 aarch64: enforce >=64K guard size [BZ #26691]
There are several compiler implementations that allow large stack
allocations to jump over the guard page at the end of the stack and
corrupt memory beyond that. See CVE-2017-1000364.

Compilers can emit code to probe the stack such that the guard page
cannot be skipped, but on aarch64 the probe interval is 64K by default
instead of the minimum supported page size (4K).

This patch enforces at least 64K guard on aarch64 unless the guard
is disabled by setting its size to 0.  For backward compatibility
reasons the increased guard is not reported, so it is only observable
by exhausting the address space or parsing /proc/self/maps on linux.

On other targets the patch has no effect. If the stack probe interval
is larger than a page size on a target then ARCH_MIN_GUARD_SIZE can
be defined to get large enough stack guard on libc allocated stacks.

The patch does not affect threads with user allocated stacks.

Fixes bug 26691.
2020-10-02 09:57:44 +01:00
..
bits powerpc: Add new hwcap values 2020-06-23 18:15:06 -03:00
fpu Update powerpc libm-test-ulps 2020-09-10 15:52:01 -03:00
nofpu Update powerpc-nofpu libm-test-ulps. 2020-07-20 20:16:25 +00:00
nptl aarch64: enforce >=64K guard size [BZ #26691] 2020-10-02 09:57:44 +01:00
power4 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
power6 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
powerpc32 powerpc: Protect dl_powerpc_cpu_features on INIT_ARCH() [BZ #26615] 2020-09-22 17:45:12 -03:00
powerpc64 powerpc: fix ifunc implementation list for POWER9 strlen and stpcpy 2020-09-17 11:00:42 -05:00
sys/platform Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
abort-instr.h Update. 2002-09-15 18:31:23 +00:00
atomic-machine.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
cpu-features.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
cpu-features.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dl-procinfo.c powerpc: Add new hwcap values 2020-06-23 18:15:06 -03:00
dl-procinfo.h powerpc: Fix POWER10 selection 2020-07-21 18:01:39 -03:00
dl-tls.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dl-tls.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dl-tunables.list Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
elf-initfini.h Introduce <elf-initfini.h> and ELF_INITFINI for all architectures 2020-02-18 15:12:25 +01:00
ffs.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
fpu_control.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gccframe.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
hwcapinfo.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
hwcapinfo.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ifunc-sel.h Fix powerpc ifunc-sel.h build for -Os. 2018-03-02 22:27:56 +00:00
jmpbuf-offsets.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
jmpbuf-unwind.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ldsodefs.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
libc-tls.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
locale-defines.sym powerpc: strcasestr optmization for power8 2016-04-22 19:23:13 +05:30
longjmp.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
machine-gmon.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Makefile powerpc: Move cache line size to rtld_global_ro 2020-01-17 09:05:03 -03:00
math-tests-snan-cast.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
memusage.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
mod-cache-ppc.c powerpc: Move cache line size to rtld_global_ro 2020-01-17 09:05:03 -03:00
mod-tlsopt-powerpc.c tst-tlsopt-powerpc as a shared lib 2017-08-03 15:39:21 +09:30
mp_clz_tab.c Update. 2002-03-14 20:48:50 +00:00
novmx-longjmp.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
novmx-sigjmp.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
novmxsetjmp.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
preconfigure powerpc: Add support for POWER10 2020-06-29 10:08:38 -03:00
preconfigure.ac powerpc: Add support for POWER10 2020-06-29 10:08:38 -03:00
rtld-global-offsets.sym powerpc: Move cache line size to rtld_global_ro 2020-01-17 09:05:03 -03:00
sched_cpucount.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
sigjmp.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
sotruss-lib.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
stackinfo.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
sysdep.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
test-arith.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
test-arithf.c Update. 1997-08-10 18:37:15 +00:00
test-get_hwcap-static.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
test-get_hwcap.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
test-gettimebase.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tls-macros.h Split tls-macros.h in sysdeps directories. 2012-07-19 17:04:04 -03:00
tst-cache-ppc-static-dlopen.c powerpc: Move cache line size to rtld_global_ro 2020-01-17 09:05:03 -03:00
tst-cache-ppc-static.c powerpc: Move cache line size to rtld_global_ro 2020-01-17 09:05:03 -03:00
tst-cache-ppc.c powerpc: Move cache line size to rtld_global_ro 2020-01-17 09:05:03 -03:00
tst-set_ppr.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-stack-align.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-tlsifunc-static.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-tlsifunc.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-tlsopt-powerpc.c tst-tlsopt-powerpc as a shared lib 2017-08-03 15:39:21 +09:30
Versions Add femode_t functions. 2016-09-07 16:40:09 +00:00