]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix data race in async master dump/load context publication
authorOndřej Surý <ondrej@isc.org>
Fri, 8 May 2026 05:46:03 +0000 (07:46 +0200)
committerOndřej Surý <ondrej@isc.org>
Thu, 14 May 2026 06:51:39 +0000 (08:51 +0200)
commit8ae464d552a4f9b6dddeb068cecb101e071bdd6e
treeb32616d1aa10fa8f8461084a10b8c48b4c97b3db
parent2091d703ac473632d0e7f34ce30a541db401bd69
Fix data race in async master dump/load context publication

Bouncing the offload itself to the target loop let the after-work
callback fire on the target thread and run the user's done callback
before the calling thread had published *dctxp / *lctxp.  Enqueue on
the calling loop and bounce only the done callback instead, so the
publish is sequenced before the cross-thread hand-off by construction
and cannot be reintroduced by reordering the entry-point body.
lib/dns/master.c
lib/dns/masterdump.c