bind9/lib/dns
Mark Andrews 0b861934b4 Address lock-order-inversion
WARNING: ThreadSanitizer: lock-order-inversion (potential deadlock)
    Cycle in lock order graph: M1 (0x000000000001) => M2 (0x000000000002) => M1

    Mutex M2 acquired here while holding mutex M1 in thread T1:
    #0 pthread_rwlock_wrlock <null>
    #1 isc_rwlock_lock lib/isc/rwlock.c:52:4
    #2 zone_postload lib/dns/zone.c:5101:2
    #3 receive_secure_db lib/dns/zone.c:16206:11
    #4 dispatch lib/isc/task.c:1152:7
    #5 run lib/isc/task.c:1344:2

    Mutex M1 previously acquired by the same thread here:
    #0 pthread_mutex_lock <null>
    #1 receive_secure_db lib/dns/zone.c:16204:2
    #2 dispatch lib/isc/task.c:1152:7
    #3 run lib/isc/task.c:1344:2

    Mutex M1 acquired here while holding mutex M2 in thread T1:
    #0 pthread_mutex_lock <null>
    #1 get_raw_serial lib/dns/zone.c:2518:2
    #2 zone_gotwritehandle lib/dns/zone.c:2559:4
    #3 dispatch lib/isc/task.c:1152:7
    #4 run lib/isc/task.c:1344:2

    Mutex M2 previously acquired by the same thread here:
    #0 pthread_rwlock_rdlock <null>
    #1 isc_rwlock_lock lib/isc/rwlock.c:48:3
    #2 zone_gotwritehandle lib/dns/zone.c:2552:2
    #3 dispatch lib/isc/task.c:1152:7
    #4 run lib/isc/task.c:1344:2

    Thread T1 (running) created by main thread at:
    #0 pthread_create <null>
    #1 isc_thread_create lib/isc/pthreads/thread.c:73:8
    #2 isc_taskmgr_create lib/isc/task.c:1434:3
    #3 create_managers bin/named/main.c:915:11
    #4 setup bin/named/main.c:1223:11
    #5 main bin/named/main.c:1523:2

    SUMMARY: ThreadSanitizer: lock-order-inversion (potential deadlock) in pthread_rwlock_wrlock

(cherry picked from commit 1090876693)
2020-09-22 22:26:53 +10:00
..
include update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
rdata update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
tests update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
win32 update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
.gitignore 4394. [func] Add rndc command "dnstap-reopen" to close and 2016-06-24 09:37:04 +10:00
acl.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
adb.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
api prep 9.16.7 2020-09-16 22:50:38 +02:00
badcache.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
byaddr.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
cache.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
callbacks.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
catz.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
client.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
clientinfo.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
compress.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
db.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dbiterator.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dbtable.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
diff.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dispatch.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dlz.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dns64.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnsrps.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnssec.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnstap.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dnstap.proto fix spelling errors reported by Fossies. 2020-02-21 07:05:31 +00:00
ds.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dst_api.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dst_internal.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dst_openssl.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dst_parse.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dst_parse.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dst_pkcs11.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dst_result.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dyndb.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
ecdb.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
ecs.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
fixedname.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
forward.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
gen-unix.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
gen-win32.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
gen.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
geoip2.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
gssapi_link.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
gssapictx.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
hmac_link.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
ipkeylist.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
iptable.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
journal.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
kasp.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
key.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
keydata.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
keymgr.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
keytable.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
Kyuafile regen master 2017-12-29 01:44:18 +00:00
lib.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
log.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
lookup.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
Makefile.in Resolve the overlinking of the system libraries 2020-05-11 09:49:54 +02:00
mapapi improve calculation of database size 2020-03-12 00:38:37 -07:00
master.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
masterdump.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
message.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
name.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
ncache.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
nsec.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
nsec3.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
nta.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
openssl_link.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
openssldh_link.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
opensslecdsa_link.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
openssleddsa_link.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
opensslrsa_link.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
order.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
peer.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
pkcs11.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
pkcs11ecdsa_link.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
pkcs11eddsa_link.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
pkcs11rsa_link.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
portlist.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
private.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
rbt.c Remove the memmove call on dns_rbtnode_t structure that contains atomics 2020-09-21 19:21:28 +10:00
rbtdb.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
rbtdb.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
rcode.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
rdata.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
rdatalist.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
rdatalist_p.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
rdataset.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
rdatasetiter.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
rdataslab.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
request.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
resolver.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
result.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
rootns.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
rpz.c Fix updating summary RPZ DB for mixed-case RPZs 2020-09-21 09:32:21 +02:00
rriterator.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
rrl.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
sdb.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
sdlz.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
soa.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
spnego.asn1 Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
spnego.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
spnego.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
spnego_asn1.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
spnego_asn1.pl update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
ssu.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
ssu_external.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
stats.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
tcpmsg.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
time.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
timer.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
tkey.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
tsec.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
tsig.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
tsig_p.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
ttl.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
update.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
validator.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
version.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
view.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
xfrin.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
zone.c Address lock-order-inversion 2020-09-22 22:26:53 +10:00
zone_p.h update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
zonekey.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
zoneverify.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
zt.c update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00