]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix a data race between the dns_zone and dns_catz modules
authorAram Sargsyan <aram@isc.org>
Fri, 9 Jun 2023 07:13:27 +0000 (07:13 +0000)
committerAram Sargsyan <aram@isc.org>
Thu, 15 Jun 2023 08:49:20 +0000 (08:49 +0000)
commit6f1f5fc307c2513d31cda94ef8cc47aa5efeaf88
tree92efa9bc9ec5e9f3152d0dc8fe55be21c5a9caf5
parent68cfbd2bd13cdfceb795ea80f1cc2c842650f8f2
Fix a data race between the dns_zone and dns_catz modules

The dns_zone_catz_enable_db() and dns_zone_catz_disable_db()
functions can race with similar operations in the catz module
because there is no synchronization between the threads.

Add catz functions which use the view's catalog zones' lock
when registering/unregistering the database update notify callback,
and use those functions in the dns_zone module, instead of doing it
directly.
lib/dns/catz.c
lib/dns/include/dns/catz.h
lib/dns/zone.c