]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix possible deadlock in unix/socket.c
authorWitold Kręcicki <wpk@isc.org>
Tue, 19 May 2020 08:08:25 +0000 (10:08 +0200)
committerWitold Kręcicki <wpk@isc.org>
Mon, 8 Jun 2020 13:30:10 +0000 (15:30 +0200)
commitbbf14226144b92d02b90777a00d7b1ffbca6bc40
treec9d9a77d9b06f6289a9e2deb77fa0d28aef865d6
parent24573abeef757971c9fa77116a013165bd7d3f7a
Fix possible deadlock in unix/socket.c

In process_fd we lock sock->lock and then internal_accept locks mgr->lock,
in isc_sockmgr_render* functions we lock mgr->lock and then lock sock->lock,
that can cause a deadlock when accessing stats. Unlock sock->lock early in
all the internal_{send,recv,connect,accept} functions instead of late
in process_fd.
CHANGES
lib/isc/unix/socket.c