glibc/sysdeps/sparc/sparc64
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 Define wordsize.h macros everywhere 2016-11-04 09:37:44 -07:00
fpu Add libm_alias_finite for _finite symbols 2020-01-03 10:02:04 -03:00
multiarch 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
align-cpy.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
bzero.c
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
hp-timing.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Implies Remove sysdeps/sparc/sparc64/soft-fp directory. 2018-05-25 20:00:51 +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
memcmp.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
memmove.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_init.c SPARC: Consolidate unnecessary nptl/ subdirectories. 2014-06-25 10:04:14 -07: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
pthread_spin_unlock.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
pthreaddef.h aarch64: enforce >=64K guard size [BZ #26691] 2020-10-02 09:57:44 +01:00
qp_add.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_cmp.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_cmpe.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_div.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_dtoq.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_feq.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_fge.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_fgt.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_fle.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_flt.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_fne.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_itoq.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_mul.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_neg.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_qtod.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_qtoi.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_qtos.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_qtoui.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_qtoux.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_qtox.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_sqrt.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_stoq.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_sub.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_uitoq.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_util.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_uxtoq.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qp_xtoq.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
rawmemchr.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
rtld-memcpy.c Fix sparc build. 2014-11-14 10:32:52 -08:00
rtld-memmove.c sparc: assembly version of memmove for ultra1+ 2017-12-14 08:47:09 -02:00
rtld-memset.c Use generic memset/memcpy in rtld on sparcv9/sparc64. 2012-03-28 22:22:15 -07: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
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
strcspn.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
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
strpbrk.S Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strrchr.c
strspn.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
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
Versions Remove sysdeps/sparc/sparc64/soft-fp directory. 2018-05-25 20:00:51 +00:00