bind9/lib
Ondřej Surý afe8a60f98 Delay isc__nm_uvreq_t deallocation to connection callback
When the TCP, TCPDNS or TLSDNS connection times out, the isc__nm_uvreq_t
would be pushed into sock->inactivereqs before the uv_tcp_connect()
callback finishes.  Because the isc__nmsocket_t keeps the list of
inactive isc__nm_uvreq_t, this would cause use-after-free only when the
sock->inactivereqs is full (which could never happen because the failure
happens in connection timeout callback) or when the sock->inactivereqs
mechanism is completely removed (f.e. when running under Address or
Thread Sanitizer).

Delay isc__nm_uvreq_t deallocation to the connection callback and only
signal the connection callback should be called by shutting down the
libuv socket from the connection timeout callback.

(cherry picked from commit 3268627916)
2022-02-23 23:31:18 +01:00
..
bind9 Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
dns Add "UNUSED(fctx);" to FCTXTRACE*() macro stubs 2022-02-21 11:06:28 +01:00
irs Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
isc Delay isc__nm_uvreq_t deallocation to connection callback 2022-02-23 23:31:18 +01:00
isccc Use ISC_R_SHUTTINGDOWN to detect netmgr shutting down 2022-01-13 09:14:12 +01:00
isccfg Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
ns Fix more ns_statscounter_recursclients underflows 2022-02-23 14:43:09 +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 Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00