glibc/sysdeps/unix
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
..
bsd Fix typos. 2013-08-29 09:11:45 +02:00
i386 Remove remaining bounded-pointers support from i386 .S files. 2013-02-21 22:21:52 +00:00
inet Move nss directory into sysdeps Subdirs. 2013-02-05 14:32:48 -08:00
powerpc Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sh Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
sysv/linux PowerPC64: Fix incorrect CFI in *context routines 2013-12-04 07:41:37 -06:00
x86_64 Remove bounded-pointers handling from x86_64 assembly sources. 2013-02-17 21:57:26 +00:00
clock_gettime.c Fix symbol definitions for __clock_* functions 2013-06-11 11:11:11 +05:30
clock_nanosleep.c Fix symbol definitions for __clock_* functions 2013-06-11 11:11:11 +05:30
clock_settime.c Fix symbol definitions for __clock_* functions 2013-06-11 11:11:11 +05:30
confstr.h
get_child_max.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
getlogin_r.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
getlogin.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
getpagesize.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
grantpt.c CVE-2013-2207, BZ #15755: Disable pt_chown. 2013-07-21 15:39:55 -04:00
ifreq.c True stub __ifreq. 2013-08-27 10:42:52 -07:00
Implies
make-syscalls.sh don't use Bash-specific ${parameter/pattern/string} expansion 2013-09-28 23:03:09 -04:00
Makefile don't use Bash-specific ${parameter/pattern/string} expansion 2013-09-28 23:03:09 -04:00
s-proto-cancel.S * sysdeps/unix/Makefile: Include $(common-objpfx)s-proto-cancel.d. 2002-12-30 00:12:56 +00:00
s-proto.S
setxid.h Update. 2004-11-12 01:27:04 +00:00
sockatmark.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
stime.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
Subdirs
syscall-template.S Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
syscall.S Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
syscalls.list Name space hygeine for madvise. 2012-10-04 16:31:43 -07:00
sysdep.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00