]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Fix a race condition with custom Lua web handlers 14342/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 17 Jun 2024 10:42:02 +0000 (12:42 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 17 Jun 2024 14:05:10 +0000 (16:05 +0200)
commit57a73a843598daadfd1063f9ca3a47a828592898
treef51b7bce46acc14afcc0efa11a263e94711f29d0
parent14a3de88f7a235812d65a43d5756dd59820c6b6e
dnsdist: Fix a race condition with custom Lua web handlers

Custom web handlers written in Lua modify the global Lua context,
but until now they did not take the lock protecting it so a data
race condition was possible.
Reported by TSAN while running our unit tests.
pdns/dnsdist-web.cc
pdns/dnsdistdist/dnsdist-lua-web.cc