]> git.ipfire.org Git - thirdparty/bind9.git/commit
Lock the adbname and adbentry prior to unlocking hash locks
authorOndřej Surý <ondrej@isc.org>
Tue, 13 Dec 2022 12:48:55 +0000 (13:48 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 15 Dec 2022 14:19:22 +0000 (15:19 +0100)
commita27ea1bba093e3b822d93c5b4ef5f65a8b2bb7d5
tree9bbf20a35183564372b3e3315011b3afd65c09f1
parentb8a915b0acb944f6734fdcec284b83a1eb5cf64c
Lock the adbname and adbentry prior to unlocking hash locks

There was a datarace that could expire a freshly created ADB names and
entries between the return from get_attached_{name,entry} and locking it
again.  Lock the ADB name and ADB entry inside the hash table lock, so
they won't get expired until the full initialization has been complete.
lib/dns/adb.c