bind9/lib
Mark Andrews da0a7a34ec Complete the isc_nmhandle_detach() in the worker thread.
isc_nmhandle_detach() needs to complete in the same thread
as shutdown_walk_cb() to avoid a race.  Clear the caller's
pointer then pass control to the worker if necessary.

    WARNING: ThreadSanitizer: data race
    Write of size 8 at 0x000000000001 by thread T1:
    #0 isc_nmhandle_detach lib/isc/netmgr/netmgr.c:1258:15
    #1 control_command bin/named/controlconf.c:388:3
    #2 dispatch lib/isc/task.c:1152:7
    #3 run lib/isc/task.c:1344:2

    Previous read of size 8 at 0x000000000001 by thread T2:
    #0 isc_nm_pauseread lib/isc/netmgr/netmgr.c:1449:33
    #1 recv_data lib/isccc/ccmsg.c:109:2
    #2 isc__nm_tcp_shutdown lib/isc/netmgr/tcp.c:1157:4
    #3 shutdown_walk_cb lib/isc/netmgr/netmgr.c:1515:3
    #4 uv_walk <null>
    #5 process_queue lib/isc/netmgr/netmgr.c:659:4
    #6 process_normal_queue lib/isc/netmgr/netmgr.c:582:10
    #7 process_queues lib/isc/netmgr/netmgr.c:590:8
    #8 async_cb lib/isc/netmgr/netmgr.c:548:2
    #9 <null> <null>

(cherry picked from commit f95ba8aa20)
2020-10-15 11:03:47 +11:00
..
bind9 update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
dns Restore the dns_message_reset() call before the dns_dispatch_getnext() 2020-10-08 16:27:10 +11:00
irs update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
isc Complete the isc_nmhandle_detach() in the worker thread. 2020-10-15 11:03:47 +11:00
isccc update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
isccfg prep 9.16.7 2020-09-16 22:50:38 +02:00
ns Change the default ENDS buffer size to 1232 for DNS Flag Day 2020 2020-10-06 09:35:20 +02:00
samples The dns_message_create() cannot fail, change the return to void 2020-09-30 14:26:26 +02:00
win32/bindevt update all copyright headers to eliminate the typo 2020-09-14 16:50:58 -07:00
.gitignore added gitignore, removed cvsignore 2012-03-03 23:10:05 -08:00
Kyuafile link in lib/isccc/tests/Kyuafile 2018-11-13 07:23:36 +11:00
Makefile.in remove lib/tests as nothing uses it anymore 2018-03-09 14:12:50 -08:00