bind9/lib
Ondřej Surý 7e002d89b4 Fix the data race when shutting down dns_adb
When dns_adb is shutting down, first the adb->shutting_down flag is set
and then task is created that runs shutdown_stage2() that sets the
shutdown flag on names and entries.  However, when dns_adb_createfind()
is called, only the individual shutdown flags are being checked, and the
global adb->shutting_down flag was not checked.  Because of that it was
possible for a different thread to slip in and create new find between
the dns_adb_shutdown() and dns_adb_detach(), but before the
shutdown_stage2() task is complete.  This was detected by
ThreadSanitizer as data race because the zonetable might have been
already detached by dns_view shutdown process and simultaneously
accessed by dns_adb_createfind().

This commit converts the adb->shutting_down to atomic_bool to prevent
the global adb lock when creating the find.
2021-11-22 11:09:21 +01:00
..
bind9 Be less strict regarding "tls" statements in the configuration file 2021-10-30 11:54:33 +03:00
dns Fix the data race when shutting down dns_adb 2021-11-22 11:09:21 +01:00
irs Check parsed resconf values 2021-08-12 09:52:52 -07:00
isc address '--disable-doh' failures 2021-11-17 13:48:43 -08:00
isccc Use #pragma once as header guards 2021-10-13 00:49:15 -07:00
isccfg Replace ARRAYSIZE with ARRAY_SIZE 2021-11-02 16:14:40 +11:00
ns Add EDE to query messages 2021-11-19 09:44:28 +01:00
.gitignore The isc/platform.h header has been completely removed 2021-07-06 05:33:48 +00:00
Makefile.am move samples/resolve.c to bin/tests/system 2021-04-16 14:29:43 +02:00
unit-test-driver.sh.in Enforce a run time limit on unit test binaries 2021-04-07 11:41:45 +02:00