]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix the fetch context hash table lock ordering
authorOndřej Surý <ondrej@isc.org>
Wed, 19 Feb 2025 05:28:46 +0000 (06:28 +0100)
committerOndřej Surý <ondrej@isc.org>
Fri, 21 Feb 2025 21:05:43 +0000 (22:05 +0100)
commitcf078fadebcf73184a64cf46d28c3f40b54f1867
treef99f0620fc0c4634fd390f238b1623d11e455dbc
parentb9e3cd5d2a75f962a1e88cbe676cf875a796543d
Fix the fetch context hash table lock ordering

The order of the fetch context hash table rwlock and the individual
fetch context was reversed when calling the release_fctx() function.
This was causing a problem when iterating the hash table, and thus the
ordering has been corrected in a way that the hash table rwlock is now
always locked on the outside and the fctx lock is the interior lock.
lib/dns/resolver.c