diff options
author | Chris Metcalf <cmetcalf@ezchip.com> | 2015-07-21 12:04:52 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@ezchip.com> | 2015-07-21 12:11:55 -0400 |
commit | 0ac4f1dab3e5778c79994a89111b4eb1d247ab12 (patch) | |
tree | bcc24bc8dd8a2c2b879e38a1c97234d9fcf420ba /ChangeLog | |
parent | f30d94a74a30b832354d4b87c23a4909ed24b929 (diff) | |
download | glibc-0ac4f1dab3e5778c79994a89111b4eb1d247ab12.zip glibc-0ac4f1dab3e5778c79994a89111b4eb1d247ab12.tar.gz glibc-0ac4f1dab3e5778c79994a89111b4eb1d247ab12.tar.bz2 |
tile: Fix BZ #18508 (makecontext yield infinite backtrace)
It turns out tile suffered from the same problem as S390. However,
disabling CFI information for the __startcontext on tile was not
sufficient to fix the problem; I think the backtracer will just
blindly try to follow the link register (lr) in that case.
Instead, the change adds a cfi_undefined directive for "lr"
and then arranges to call __startcontext directly when the new
context starts, rather than just synthesizing a return to it.
In addition to being a bit easier now to understand the control
flow, this also allows the cfi_undefined directive to be placed in
a way that causes it to be in force at the address that the "lr"
from the called function points to.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,10 @@ +2015-07-21 Chris Metcalf <cmetcalf@ezchip.com> + + * sysdeps/unix/sysv/linux/tile/makecontext.c (__makecontext): Call + __startcontext to initialize the new context. + * sysdeps/unix/sysv/linux/tile/setcontext.S (__startcontext): Set + up CFI directive to forbid further backtracing. + 2015-07-21 Marko Myllynen <myllynen@redhat.com> * charmaps/ANSI_X3.110-1983: Remove obsolete repertoire map |