]> git.ipfire.org Git - thirdparty/glibc.git/commit
mips: terminate the FDE before the return trampoline in makecontext
authorAurelien Jarno <aurelien@aurel32.net>
Tue, 8 Mar 2016 23:25:00 +0000 (00:25 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 9 Mar 2016 17:51:50 +0000 (18:51 +0100)
commit63ed4db4b45cab21cf6f68aac7b9fce2f770fe74
treee0a6f2c5fb3181e46dd445ad685a34c5f3758019
parent9d1399e89d431b34a5a6e5e48ee40721c22815b8
mips: terminate the FDE before the return trampoline in makecontext

In makecontext the FDE needs to be terminated before the return
trampoline otherwise backtrace called within a context created by
makecontext yields infinite backtrace.

This bug has been present for a long time, stdlib/tst-makecontext did
not fail until recent commit e535ce25. Tested on mips-linux-gnu and
mips64el-linux-gnuabi64 and mips-linux-gnu, no regression.

This fixes stdlib/tst-makecontext on MIPS.

Changelog:
[BZ #19792]
* sysdeps/unix/sysv/linux/mips/makecontext.S (__makecontext):
Terminate FDE before return label.

(cherry picked from commit f8e9c4d30c28b8815e65a391416e8b15d2e7cbb8)
ChangeLog
NEWS
sysdeps/unix/sysv/linux/mips/makecontext.S