]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: Prevent a race in the aggressive NSEC cache 10377/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 7 May 2021 15:25:01 +0000 (17:25 +0200)
committerOtto <otto.moerbeek@open-xchange.com>
Mon, 10 May 2021 10:26:18 +0000 (12:26 +0200)
commit8a2e2d5a4f904146ee7ad48c80984fcc4f3efab8
tree123b284b805e5940b486c8c57323239a9b4eea97
parent8acf42e9ad4c339b7636693ed2d22e305a2e2335
rec: Prevent a race in the aggressive NSEC cache

When a new NSEC3 record has a different salt than the one we know, we
update the zone entry with the new salt. Unfortunately, that salt was
read without holding the lock in `AggressiveNSECCache::getNSEC3Denial`,
leading to a possible data race.

(cherry picked from commit 779f35b41c758bed9215d51df4fc3a69edbada9d)
pdns/recursordist/aggressive_nsec.cc
pdns/recursordist/aggressive_nsec.hh