glibc/sysdeps/sparc/sparc32
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 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
fpu Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
sparcv9 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
__longjmp.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
alloca.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
backtrace.h Use libgcc unwinder for sparc backtraces, if available. 2013-01-21 14:15:30 -08:00
bsd-_setjmp.S
bsd-setjmp.S
bzero.c
configure sparc: Use atomic compiler builtins on sparc 2019-11-27 10:31:13 -03:00
configure.ac sparc: Use atomic compiler builtins on sparc 2019-11-27 10:31:13 -03:00
dl-irel.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dl-machine.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dl-plt.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
dotmul.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
ieee754.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Implies Remove sysdeps/sparc/sparc32/soft-fp directory. 2018-05-25 16:51:15 +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
lshift.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Makefile Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
memchr.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
memcpy.S 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
mul_1.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pthread_spin_lock.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pthread_spin_trylock.S linux: Consolidate INLINE_SYSCALL 2020-02-14 21:09:12 -03:00
pthreaddef.h aarch64: enforce >=64K guard size [BZ #26691] 2020-10-02 09:57:44 +01:00
q_add.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_cmp.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_cmpe.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_div.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_dtoq.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_feq.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_fge.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_fgt.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_fle.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_flt.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_fne.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_itoq.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_lltoq.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_mul.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_neg.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_qtod.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_qtoi.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_qtoll.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_qtos.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_qtou.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_qtoull.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_sqrt.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_stoq.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_sub.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_ulltoq.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_util.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
q_utoq.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
rem.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
rshift.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
sdiv.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03: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
stackguard-macros.h BZ #15754: CVE-2013-4788 2013-09-23 00:52:09 -04: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
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
strrchr.c
sub_n.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
submul_1.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tls-macros.h Split tls-macros.h into sysdeps directories. 2012-07-17 11:30:58 +00:00
tst-audit.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
udiv.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
umul.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
urem.S Remove 32 bit sparc v7 support 2019-11-27 09:37:57 -03:00
Versions Remove sysdeps/sparc/sparc32/soft-fp directory. 2018-05-25 16:51:15 +00:00