From d74e6f6c0de55fc588b1ac09c88eb0fb8b8600af Mon Sep 17 00:00:00 2001 From: Wilco Dijkstra Date: Thu, 19 Oct 2017 18:19:55 +0100 Subject: 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. --- ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index ea655fc..17a2833 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2017-10-19 Wilco Dijkstra + + * malloc/malloc.c (_int_free): Fix deadlock bug in consistency check. + 2017-10-19 Valery Reznic H.J. Lu -- cgit v1.1