]> git.ipfire.org Git - thirdparty/bind9.git/commit
[9.18] fix: usr: Improve the resolver performance under attack
authorOndřej Surý <ondrej@isc.org>
Wed, 22 Jan 2025 14:27:44 +0000 (14:27 +0000)
committerOndřej Surý <ondrej@isc.org>
Wed, 22 Jan 2025 14:27:44 +0000 (14:27 +0000)
commit2c667bc9c6125d905d7a437e00aee8745f813f55
treebbb6e2632f49aafc5297e50f343cbad1382cf44b
parent43c77d95f1df1c376733dd8b570e9f8e38ec5c7d
parent4cc1160e4d81e7b835fae57b52172b8453e40113
[9.18] fix: usr: Improve the resolver performance under attack

A remote client can force the DNS resolver component to consume the memory faster than cleaning up the resources for the canceled resolver fetches due to `recursive-clients` limit. If the such traffic pattern is sustained for a long period of time, the DNS server might eventually run out of the available memory. This has been fixed.

It should be noted that when under such heavy attack for BIND 9 version both with and without the fix, no outgoing DNS queries will be successful as the generated traffic pattern will consume all the available slots for the recursive clients.

Merge branch '5110-backport-the-hashtable-use-for-fetchcontexts-9.18' into 'bind-9.18'

See merge request isc-projects/bind9!9961