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 malloc/15073] Race condition using ATOMIC_FASTBINS in _int_free causes crash or heap corruption


http://sourceware.org/bugzilla/show_bug.cgi?id=15073

--- Comment #16 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, release/2.16/master has been updated
       via  c972bcc9ebdb5c2601b6b34001c7450e7a0b5ea3 (commit)
      from  02eff8c4f82241c0843d47cb58c4355eb4f5d9e9 (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=c972bcc9ebdb5c2601b6b34001c7450e7a0b5ea3

commit c972bcc9ebdb5c2601b6b34001c7450e7a0b5ea3
Author: Maxim Kuvyrkov <maxim@kugelworks.com>
Date:   Tue Dec 24 09:44:50 2013 +1300

    Fix race in free() of fastbin chunk: BZ #15073

    Perform sanity check only if we have_lock.  Due to lockless nature of
fastbins
    we need to be careful derefencing pointers to fastbin entries
(chunksize(old)
    in this case) in multithreaded environments.

    The fix is to add have_lock to the if-condition checks.  The rest of the
patch
    only makes code more readable.

        * malloc/malloc.c (_int_free): Perform sanity check only if we
        have_lock.

    Conflicts:

        ChangeLog
        NEWS

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

Summary of changes:
 ChangeLog       |    7 +++++++
 NEWS            |    2 +-
 malloc/malloc.c |   20 ++++++++++++--------
 3 files changed, 20 insertions(+), 9 deletions(-)

-- 
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]