bind9/util
Michał Kępień f7b9bb5518
Add tests for CVE-2022-2795
Add a test ensuring that the amount of work fctx_getaddresses() performs
for any encountered delegation is limited: delegate example.net to a set
of 1,000 name servers in the redirect.com zone, the names of which all
resolve to IP addresses that nothing listens on, and query for a name in
the example.net domain, checking the number of times the findname()
function gets executed in the process; fail if that count is excessively
large.

Since the size of the referral response sent by ans3 is about 20 kB, it
cannot be sent back over UDP (EMSGSIZE) on some operating systems in
their default configuration (e.g. FreeBSD - see the
net.inet.udp.maxdgram sysctl).  To enable reliable reproduction of
CVE-2022-2795 (retry patterns vary across BIND 9 versions) and avoid
false positives at the same time (thread scheduling - and therefore the
number of fetch context restarts - vary across operating systems and
across test runs), extend bin/tests/system/resolver/ans3/ans.pl so that
it also listens on TCP and make "ns1" in the "resolver" system test
always use TCP when communicating with "ans3".

Also add a test (foo.bar.sub.tld1/TXT) that ensures the new limitations
imposed on the resolution process by the mitigation for CVE-2022-2795 do
not prevent valid, glueless delegation chains from working properly.
2022-12-21 16:08:37 +01:00
..
altbuild.sh update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
api-checker.sh update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
bindkeys.pl update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
branchsync.sh update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
check-ans-prereq.sh update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
check-categories.sh update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
check-changes update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
check-cocci Run spatch jobs in parallel 2022-02-14 20:25:38 +01:00
check-includes.pl update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
check-instincludes.sh update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
check-line-length.sh Detect overly long CHANGES lines 2021-01-28 15:09:46 +11:00
check-make-install.in Install BIND with "make DESTDIR=<PATH> install" 2021-05-25 18:42:37 +02:00
check-pullups.pl update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
check-sources.pl update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
check-win32util-configure update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
checklibs.sh update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
commit-arm.sh update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
COPYRIGHT fix a typo in copyright headers, and change "http" to "https" 2020-09-14 16:52:34 -07:00
COPYRIGHT.BRIEF fix a typo in copyright headers, and change "http" to "https" 2020-09-14 16:52:34 -07:00
COPYRIGHT.BSDI fix a typo in copyright headers, and change "http" to "https" 2020-09-14 16:52:34 -07:00
COPYRIGHT.NAI fix a typo in copyright headers, and change "http" to "https" 2020-09-14 16:52:34 -07:00
COPYRIGHT.NOM fix a typo in copyright headers, and change "http" to "https" 2020-09-14 16:52:34 -07:00
COPYRIGHT.PORTION fix a typo in copyright headers, and change "http" to "https" 2020-09-14 16:52:34 -07:00
COPYRIGHT.TOP fix a typo in copyright headers, and change "http" to "https" 2020-09-14 16:52:34 -07:00
copyrights Add tests for CVE-2022-2795 2022-12-21 16:08:37 +01:00
git-replay-merge.sh update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
kit.sh update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
mandoc2docbook.pl update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
mdnbuildtest.sh update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
memleak.pl update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
merge_copyrights update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
mksymtbl.pl update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
models.c update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
nanny.pl update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
new-func update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
nt-kit update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
pairwise-testing.sh Do not remove stderr from pict output 2021-02-23 15:27:59 +01:00
parse_tsan.py Save parsed tsan files with .txt extension 2022-03-23 20:32:33 +01:00
spacewhack.pl update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
suppressions.txt Suppress unknownMacro directive which is currently broken with OpenSSL 2020-02-08 06:32:42 -08:00
tabify-changes update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
update-drafts.pl update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
update_branches update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
update_copyrights update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
xc update all copyright headers to eliminate the typo 2020-09-14 17:00:40 -07:00
xmllint-html.sh Check for errors in html files 2021-07-02 13:44:26 +10:00