about summary refs log tree commit diff
path: root/sysdeps/unix/clock_gettime.c
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2017-10-19 18:19:55 +0100
committerWilco Dijkstra <wdijkstr@arm.com>2017-10-19 18:19:55 +0100
commitd74e6f6c0de55fc588b1ac09c88eb0fb8b8600af (patch)
treee75ef871621bf3c08b6c18bf5f31a373a37fc9a4 /sysdeps/unix/clock_gettime.c
parent4d916f0f12b230f49967797f98b2b613c734a047 (diff)
downloadglibc-d74e6f6c0de55fc588b1ac09c88eb0fb8b8600af.tar.gz
glibc-d74e6f6c0de55fc588b1ac09c88eb0fb8b8600af.tar.xz
glibc-d74e6f6c0de55fc588b1ac09c88eb0fb8b8600af.zip
Fix deadlock in _int_free consistency check
This patch fixes a deadlock in the fastbin consistency check.
If we fail the fast check due to concurrent modifications to
the next chunk or system_mem, we should not lock if we already
have the arena lock.  Simplify the check to make it obviously
correct.

	* malloc/malloc.c (_int_free): Fix deadlock bug in consistency check.
Diffstat (limited to 'sysdeps/unix/clock_gettime.c')
0 files changed, 0 insertions, 0 deletions