aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcclibs/libcpp/Makefile.in
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2013-11-23 15:48:17 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2013-11-23 15:48:17 +0000
commit0a9655a082b25b1eaeb36ad7832f4c91d3e7f45d (patch)
treefb93e62e7349c113134117155612ff51dc329b6c /contrib/gcclibs/libcpp/Makefile.in
parent8a8d9d147508fa13ec70e0adf21ee9f103a1cc82 (diff)
If check_deferred_signal() execution needs binding of PLT symbol,
unlocking the rtld bind lock results in the processing of ast and recursing into the check_deferred_signal(). Nested execution of check_deferred_signal() delivers the signal to user code and clears si_signo. On return, top-level check_deferred_signal() frame continues delivering the same signal one more time, but now with zero si_signo. Fix this by adding a flag to indicate that deferred delivery is running, so check_deferred_signal() should avoid doing anything. Since user signal handler is allowed to modify the passed machine context to make return from the signal handler to cause arbitrary jump, or do longjmp(). For this case, also clear the flag in thr_sighandler(), since kernel signal delivery means that nested delivery code should not run right now. Reported by: Vitaly Magerya <vmagerya@gmail.com> Reviewed by: davidxu, jilles Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week
Notes
Notes: svn path=/head/; revision=258499
Diffstat (limited to 'contrib/gcclibs/libcpp/Makefile.in')
0 files changed, 0 insertions, 0 deletions