glibc/sysdeps
Ulrich Weigand 5162e7dd96 PowerPC64: Fix incorrect CFI in *context routines
The context established by "makecontext" has a link register pointing
back to an error path within the makecontext routine.  This is currently
covered by the CFI FDE for makecontext itself, which is simply wrong
for the stack frame *inside* the context.  When trying to unwind (e.g.
doing a backtrace) in a routine inside a context created by makecontext,
this can lead to uninitialized stack slots being accessed, causing the
unwinder to crash in the worst case.

Similarly, during parts of the "setcontext" routine, when the stack
pointer has already been switched to point to the new context, the
address range is still covered by the CFI FDE for setcontext.  When
trying to unwind in that situation (e.g. backtrace from an async
signal handler for profiling), it is again possible that the unwinder
crashes.

Theses are all problems in existing code, but the changes in stack
frame layout appear to make the "worst case" much more likely in
the ELFv2 ABI context.  This causes regressions e.g. in the libgo
testsuite on ELFv2.

This patch fixes this by ending the makecontext/setcontext FDEs
before those problematic parts of the assembler, similar to what
is already done on other platforms.   This fixes the libgo
regression on ELFv2.
2013-12-04 07:41:37 -06:00
..
generic Adjust generic swapon prototype to match Linux version. 2013-11-21 15:44:26 -08:00
gnu Use __glibc_reserved instead __unused. 2013-11-26 12:32:28 +01:00
i386 Fix exp missing underflows (bug 15268, bug 15425). 2013-12-03 21:49:56 +00:00
ieee754 Fix exp missing underflows (bug 15268, bug 15425). 2013-12-03 21:49:56 +00:00
init_array Add sysdeps/init_array to produce empty crt[in].o and use .preinit_array for gcrt1.o 2013-03-12 12:50:13 -07:00
mach rename configure.in to configure.ac 2013-10-30 17:32:08 +10:00
posix Remove redundant GAIH_OKIFUNSPEC and GAIH_EAI. 2013-12-02 20:23:13 +05:30
powerpc Update powerpc-fpu ULPs. 2013-12-04 06:04:48 -06:00
pthread Fix typos. 2013-08-21 19:48:48 +02:00
s390 [BZ #16214] S/390: Fix TLS GOT pointer setup. 2013-11-29 09:57:04 +01:00
sh Fix dbl-64 e_sqrt.c for non-default rounding modes (bug 16271). 2013-11-28 16:50:38 +00:00
sparc Fix dbl-64 e_sqrt.c for non-default rounding modes (bug 16271). 2013-11-28 16:50:38 +00:00
unix PowerPC64: Fix incorrect CFI in *context routines 2013-12-04 07:41:37 -06:00
wordsize-32 Remove --disable-versioning. 2013-09-04 15:25:42 +00:00
wordsize-64 Move dummy glob64.c alongside glob.c that defines glob64. 2013-05-06 16:11:11 -07:00
x86 Use __glibc_reserved instead __unused. 2013-11-26 12:32:28 +01:00
x86_64 Fix exp missing underflows (bug 15268, bug 15425). 2013-12-03 21:49:56 +00:00