glibc/malloc
Maxim Kuvyrkov 362b47fe09 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.
2013-12-24 09:44:50 +13:00
..
arena.c Drop PER_THREAD conditionals from malloc. 2013-12-10 18:00:14 +01:00
Depend Update. 1999-10-04 22:59:43 +00:00
hooks.c Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset. 2013-12-10 19:36:28 +01:00
Makefile Drop PER_THREAD conditionals from malloc. 2013-12-10 18:00:14 +01:00
malloc.c Fix race in free() of fastbin chunk: BZ #15073 2013-12-24 09:44:50 +13:00
malloc.h Remove __malloc_ptr_t. 2013-03-08 21:27:42 +00:00
mallocbug.c Avoid warnings in test malloc program 2012-03-28 13:05:11 -04:00
mcheck-init.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
mcheck.c Remove __malloc_size_t. 2013-03-08 16:46:07 +00:00
mcheck.h Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
memusage.c Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
memusage.sh Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
memusagestat.c Add #include <stdint.h> for uint[32|64]_t usage (except installed headers). 2013-05-16 11:32:54 -05:00
morecore.c Remove __malloc_ptr_t. 2013-03-08 21:27:42 +00:00
mtrace.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
mtrace.pl Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
obstack.c Avoid use of "register" as optimization hint. 2013-06-07 22:24:35 +00:00
obstack.h Use __glibc_block in public headers. 2013-11-21 16:57:37 -05:00
set-freeres.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
thread-freeres.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
tst-calloc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
tst-malloc-usable.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
tst-malloc.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
tst-mallocfork.c * malloc/tst-mallocfork.c (do_test): Make sure sa_flags is 2005-12-06 00:50:15 +00:00
tst-mallocstate.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
tst-mcheck.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
tst-memalign.c malloc: Fix for infinite loop in memalign/posix_memalign. 2013-10-30 14:46:02 -07:00
tst-mtrace.c Update copyright notices with scripts/update-copyrights. 2013-01-02 19:05:09 +00:00
tst-mtrace.sh Add --enable-hardcoded-path-in-tests configure option 2013-01-11 07:14:18 -08:00
tst-obstack.c Update. 2000-11-20 17:40:29 +00:00
tst-posix_memalign.c malloc: Fix for infinite loop in memalign/posix_memalign. 2013-10-30 14:46:02 -07:00
tst-pvalloc.c malloc/tst-pvalloc.c: Tidy up code. 2013-10-04 09:15:33 +01:00
tst-realloc.c malloc: Add realloc test. 2013-09-09 09:20:09 +01:00
tst-trim1.c * malloc/tst-trim1.c: New file. 2007-12-16 22:57:57 +00:00
tst-valloc.c malloc/tst-valloc.c: Tidy up code. 2013-10-04 09:16:41 +01:00
Versions Implement aligned_alloc 2012-01-01 07:17:21 -05:00