[Bug dynamic-link/13862] Reuse of cached stack can cause bounds overrun of thread DTV
cvs-commit at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Thu Nov 27 21:45:00 GMT 2014
https://sourceware.org/bugzilla/show_bug.cgi?id=13862
--- Comment #19 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, hjl/pr13862 has been created
at b2d53cf4c7bc1fc7e5d92bfe783e8c03439c50bb (commit)
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=b2d53cf4c7bc1fc7e5d92bfe783e8c03439c50bb
commit b2d53cf4c7bc1fc7e5d92bfe783e8c03439c50bb
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Nov 27 05:42:23 2014 -0800
Resize DTV if the current DTV isn't big enough
This patch changes _dl_allocate_tls_init to resize DTV if the current DTV
isn't big enough. Tested on X86-64, x32 and ia32.
[BZ #13862]
* elf/dl-tls.c (oom): Remove #ifdef SHARED/#endif.
(_dl_static_dtv, _dl_initial_dtv): Moved before ...
(_dl_resize_dtv): This. Extracted from _dl_update_slotinfo.
(_dl_allocate_tls_init): Resize DTV if the current DTV isn't
big enough.
(_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
* nptl/Makefile (tests): Add tst-stack4.
(modules-names): Add tst-stack4mod.
($(objpfx)tst-stack4): New.
(tst-stack4mod.sos): Likewise.
($(objpfx)tst-stack4.out): Likewise.
($(tst-stack4mod.sos)): Likewise.
(clean): Likewise.
* nptl/tst-stack4.c: New file.
* nptl/tst-stack4mod.c: Likewise.
-----------------------------------------------------------------------
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list