This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dynamic-link/13862] Reuse of cached stack can cause bounds overrun of thread DTV


https://sourceware.org/bugzilla/show_bug.cgi?id=13862

--- Comment #22 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, master has been updated
       via  d8dd00805b8f3a011735d7a407097fb1c408d867 (commit)
      from  167da422b30b35c9eb9fc819ce5d3b3b0d65c6f4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d8dd00805b8f3a011735d7a407097fb1c408d867

commit d8dd00805b8f3a011735d7a407097fb1c408d867
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Fri Nov 28 07:54:07 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: Include <atomic.h>.
        (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.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                              |   20 ++++
 elf/dl-tls.c                           |  102 ++++++++++++--------
 nptl/Makefile                          |   17 +++-
 nptl/tst-stack4.c                      |  159 ++++++++++++++++++++++++++++++++
 elf/tst-pie2.c => nptl/tst-stack4mod.c |   24 ++----
 5 files changed, 262 insertions(+), 60 deletions(-)
 create mode 100644 nptl/tst-stack4.c
 copy elf/tst-pie2.c => nptl/tst-stack4mod.c (75%)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]