]> git.ipfire.org Git - thirdparty/bind9.git/commit
Remove purged adb names and entries from SIEVE list immediately
authorOndřej Surý <ondrej@isc.org>
Tue, 10 Feb 2026 05:16:31 +0000 (06:16 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 25 Feb 2026 06:26:38 +0000 (07:26 +0100)
commit46cfac082555b02f44c3d6c4f8a2925c07d99b6c
tree0334e9015ecc35e04d56cf65db894ed215aef2f1
parent91286490c1fef8f7b7de07de51b5cd99412d8625
Remove purged adb names and entries from SIEVE list immediately

Both `expire_name()` and `expire_entry()` use the isc_async mechanism to
remove names and entries from the SIEVE-LRU lists on the matching
isc_loop.

Under heavy load when the cleaning mechanism didn't have the chance to
kick in yet, this delay could lead to double-counting the purged names
and entries when purging the SIEVE-LRU lists during an overmem
condition.  This would result in insufficient memory being cleaned up,
causing the ADB to never recover from the overmem condition and leading
to an OOM crash of `named`.

This patch resolves the issue by bypassing the async queue and executing
the removal synchronously if the target loop matches the current
isc_loop().
lib/dns/adb.c