This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/13862] Reuse of cached stack can cause bounds overrun of thread DTV
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 27 Nov 2014 15:34:27 +0000
- Subject: [Bug dynamic-link/13862] Reuse of cached stack can cause bounds overrun of thread DTV
- Auto-submitted: auto-generated
- References: <bug-13862-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=13862
--- Comment #17 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 220d769f14eccf1ef36862b294cffee5ae615a74 (commit)
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=220d769f14eccf1ef36862b294cffee5ae615a74
commit 220d769f14eccf1ef36862b294cffee5ae615a74
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu Nov 27 05:42:23 2014 -0800
Reallocate DTV if the current DTV isn't big enough
This patch reallocates DTV if the current DTV isn't big enough, using
the similar approach in _dl_update_slotinfo. 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_allocate_tls_init): This. Reallocate DTV if the current
DTV isn't big enough.
* 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.