]> git.ipfire.org Git - thirdparty/bind9.git/commit
TLS: Avoid accessing non-atomic listener socket flags during HS
authorArtem Boldariev <artem@boldariev.com>
Thu, 1 Dec 2022 20:42:54 +0000 (22:42 +0200)
committerArtem Boldariev <artem@boldariev.com>
Fri, 2 Dec 2022 10:16:12 +0000 (12:16 +0200)
commit4d0c2263753e283552c8236d899e13abe7025b54
treee6e8e20a8d30f1ffc61057ca3bfa331b8dd575bd
parentfc991fa79d59291d1c898263e772bff28ec7ba02
TLS: Avoid accessing non-atomic listener socket flags during HS

This commit ensures that the non-atomic flags inside a TLS listener
socket object (and associated worker) are accessed when doing
handshake for a connection only from within the context of the
dedicated thread, but not other worker threads.

The purpose of this commit is to avoid TSAN errors during
isc__nmsocket_closing() calls. It is a continuation of
4b5559cd8f41e67bf03e92d9d0338dee9d549b48.
lib/isc/netmgr/tlsstream.c