glibc/sysdeps/alpha
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
..
alphaev5 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
alphaev6 alpha: Use builtin sqrt{f} 2020-06-22 11:09:49 -03:00
alphaev67 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
bits Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
fpu alpha: Use builtin sqrt{f} 2020-06-22 11:09:49 -03:00
nptl aarch64: enforce >=64K guard size [BZ #26691] 2020-10-02 09:57:44 +01:00
__longjmp.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
_mcount.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
add_n.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
addmul_1.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
atomic-machine.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
bsd-_setjmp.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
bsd-setjmp.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
bzero.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
configure Require autoconf 2.69 2014-09-29 07:53:36 -07:00
configure.ac Require autoconf 2.69 2014-09-29 07:53:36 -07:00
crti.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
crtn.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
div_libc.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
div.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
divl.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
divlu.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
divq.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
divqu.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dl-dtprocnum.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
dl-machine.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dl-procinfo.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dl-procinfo.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dl-sysdep.h 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-trampoline.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
e_sqrtl.c Add libm_alias_finite for _finite symbols 2020-01-03 10:02:04 -03:00
elf-initfini.h Introduce <elf-initfini.h> and ELF_INITFINI for all architectures 2020-02-18 15:12:25 +01:00
ffs.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ffsll.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
gccframe.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
hp-timing.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
htonl.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
htons.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Implies Remove sysdeps/alpha/soft-fp directory. 2018-05-23 17:29:20 +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
ldiv.S 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
lldiv.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
local-soft-fp.h Remove sysdeps/alpha/soft-fp directory. 2018-05-23 17:29:20 +00:00
lshift.S 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 alpha: Do not build with -fpic 2020-03-03 15:42:36 +01:00
memchr.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
memset.S 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
mul_1.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
nscd-types.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ots_add.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ots_cmp.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ots_cmpe.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ots_cvtqux.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ots_cvtqx.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ots_cvttx.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ots_cvtxq.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ots_cvtxt.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ots_div.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ots_mul.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ots_nintxq.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ots_sub.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
preconfigure Remove relro configure test. 2014-06-27 16:51:22 +00:00
rawmemchr.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
reml.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
remlu.S Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
remq.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
remqu.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
rshift.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
setjmp.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
sfp-machine.h 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
start.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
stpcpy.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
stpncpy.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strcat.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strchr.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strcmp.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strcpy.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strlen.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strncat.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strncmp.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strncpy.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strrchr.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
stxcpy.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
stxncpy.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
sub_n.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Subdirs Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
submul_1.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tininess.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
tls-macros.h Relocate alpha from ports to libc 2014-02-12 07:00:06 -08:00
tst-audit.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
udiv_qrnnd.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Versions Remove sysdeps/alpha/soft-fp directory. 2018-05-23 17:29:20 +00:00