]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix data race on nta->expiry
authorOndřej Surý <ondrej@isc.org>
Tue, 17 Mar 2026 03:08:54 +0000 (04:08 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 19 Mar 2026 00:44:37 +0000 (01:44 +0100)
commit44bb3cd2a7b50108d2c9ee571f4830353f904e20
treeb28eba4a48c7f15d7e3760d800fe60a9ea931c51
parentfae6c6eeadac46d458d2527eae037d555d461b1c
Fix data race on nta->expiry

Use CMM_LOAD_SHARED/CMM_STORE_SHARED for nta->expiry, which is
written from the NTA's owning loop but read from any loop (validator,
rndc status, rndc nta -dump).

Also dispatch delete_expired to the NTA's owning loop rather than
the caller's loop.
lib/dns/nta.c