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/20419] files with large allocated notes crash in open_verify


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

--- Comment #3 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  0065aaaaae51cd60210ec3a7e13dddd8e01ffe2c (commit)
      from  b289cd9db8286fa6c670104dd5dfcfc68d5d00d6 (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=0065aaaaae51cd60210ec3a7e13dddd8e01ffe2c

commit 0065aaaaae51cd60210ec3a7e13dddd8e01ffe2c
Author: Paul Pluzhnikov <ppluzhnikov@google.com>
Date:   Sat May 5 18:08:27 2018 -0700

    Fix BZ 20419.  A PT_NOTE in a binary could be arbitratily large, so using
    alloca for it may cause stack overflow.  If the note is larger than
    __MAX_ALLOCA_CUTOFF, use dynamically allocated memory to read it in.

    2018-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>

        [BZ #20419]
        * elf/dl-load.c (open_verify): Fix stack overflow.
        * elf/Makefile (tst-big-note): New test.
        * elf/tst-big-note-lib.S: New.
        * elf/tst-big-note.c: New.

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

Summary of changes:
 ChangeLog                                          |    8 +++++++
 elf/Makefile                                       |    8 +++++-
 elf/dl-load.c                                      |   21 ++++++++++++++++++-
 elf/{tst-absolute-sym-lib.c => tst-big-note-lib.S} |   15 +++++++------
 wcsmbs/test-char-types.c => elf/tst-big-note.c     |   15 ++++---------
 5 files changed, 46 insertions(+), 21 deletions(-)
 copy elf/{tst-absolute-sym-lib.c => tst-big-note-lib.S} (71%)
 copy wcsmbs/test-char-types.c => elf/tst-big-note.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]