glibc/sysdeps
Florian Weimer a289ea09ea Do not print backtraces on fatal glibc errors
If the process is in a bad state, we used to print backtraces in
many cases.  This is problematic because doing so could involve
a lot of work, like loading libgcc_s using the dynamic linker,
and this could itself be targeted by exploit writers.  For example,
if the crashing process was forked from a long-lived process, the
addresses in the error message could be used to bypass ASLR.

Commit ed421fca42 ("Avoid backtrace from
__stack_chk_fail [BZ #12189]"), backtraces where no longer printed
because backtrace_and_maps was always called with do_abort == 1.

Rather than fixing this logic error, this change removes the backtrace
functionality from the sources.  With the prevalence of external crash
handlers, it does not appear to be particularly useful.  The crash
handler may also destroy useful information for debugging.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2019-08-19 15:41:29 +02:00
..
aarch64 aarch64: Disable using DC ZVA in emag memset 2019-08-14 10:58:21 +08:00
alpha Declare most TS 18661-1 interfaces for C2X. 2019-08-13 11:28:51 +00:00
arm Declare most TS 18661-1 interfaces for C2X. 2019-08-13 11:28:51 +00:00
csky Declare most TS 18661-1 interfaces for C2X. 2019-08-13 11:28:51 +00:00
generic login: Assume that _HAVE_UT_* constants are true 2019-08-13 12:09:32 +02:00
gnu login: Add nonstring attributes to struct utmp, struct utmpx [BZ #24899] 2019-08-15 16:09:43 +02:00
hppa Declare most TS 18661-1 interfaces for C2X. 2019-08-13 11:28:51 +00:00
htl hurd: advertise *_setpshared as not supported 2019-01-02 22:21:34 +01:00
hurd Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
i386 Update i386 libm-test-ulps 2019-08-15 12:25:51 +02:00
ia64 Declare most TS 18661-1 interfaces for C2X. 2019-08-13 11:28:51 +00:00
ieee754 Make totalorder and totalordermag functions take pointer arguments. 2019-08-15 15:18:34 +00:00
init_array Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
m68k Declare most TS 18661-1 interfaces for C2X. 2019-08-13 11:28:51 +00:00
mach Make totalorder and totalordermag functions take pointer arguments. 2019-08-15 15:18:34 +00:00
microblaze Declare most TS 18661-1 interfaces for C2X. 2019-08-13 11:28:51 +00:00
mips Declare most TS 18661-1 interfaces for C2X. 2019-08-13 11:28:51 +00:00
nios2 Declare most TS 18661-1 interfaces for C2X. 2019-08-13 11:28:51 +00:00
nptl nptl: Move pthread_attr_getdetachstate implementation into libc 2019-08-16 22:44:44 +02:00
posix Do not print backtraces on fatal glibc errors 2019-08-19 15:41:29 +02:00
powerpc Declare most TS 18661-1 interfaces for C2X. 2019-08-13 11:28:51 +00:00
pthread nptl: Add POSIX-proposed sem_clockwait 2019-07-12 13:36:23 +00:00
riscv Declare most TS 18661-1 interfaces for C2X. 2019-08-13 11:28:51 +00:00
s390 Declare most TS 18661-1 interfaces for C2X. 2019-08-13 11:28:51 +00:00
sh Declare most TS 18661-1 interfaces for C2X. 2019-08-13 11:28:51 +00:00
sparc Declare most TS 18661-1 interfaces for C2X. 2019-08-13 11:28:51 +00:00
unix Do not print backtraces on fatal glibc errors 2019-08-19 15:41:29 +02:00
wordsize-32 Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wordsize-64 Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
x86 Declare most TS 18661-1 interfaces for C2X. 2019-08-13 11:28:51 +00:00
x86_64 x86-64: Compile branred.c with -mprefer-vector-width=128 [BZ #24603] 2019-07-24 14:48:43 -07:00