Commit Graph

35687 Commits

Author SHA1 Message Date
Mark Andrews
d172b933fb Merge branch '4604-fix-initial-tests-in-masterfile-system-test-bind-9.16' into 'bind-9.16'
[9.16] Resolve "Fix initial tests in masterfile system test"

See merge request isc-projects/bind9!8789
2024-02-28 01:56:11 +00:00
Mark Andrews
32b1d00afb Split the first masterfile test into 3
Additionally read the correct zone for BIND 8 ttl checks

(cherry picked from commit e02b73c7a4)
2024-02-28 12:26:31 +11:00
Michał Kępień
03fdd3f12c Merge branch 'michal/post-release-tweaks-9.16' into 'bind-9.16'
[9.16] Miscellaneous post-release tweaks

See merge request isc-projects/bind9!8740
2024-02-14 16:23:14 +00:00
Michał Kępień
ec1afa639f Mention CVE-2023-50868 in CHANGES entry 6322
Since CVE-2023-50868 does not have a dedicated fix in BIND 9, mention
its CVE identifier in the CHANGES entry for CVE-2023-50387 (KeyTrap),
which accompanied the code change that addresses both of these
vulnerabilities.

(cherry picked from commit 2fd20bbaf5)
2024-02-14 17:19:44 +01:00
Michał Kępień
b56c18b477 Merge tag 'v9.16.48' into bind-9.16
BIND 9.16.48
2024-02-14 13:41:33 +01:00
Michał Kępień
0dab57e15f Merge branch 'prep-release' into v9.16.48-release v9.16.48 2024-02-11 12:31:39 +01:00
Michał Kępień
7fc5ef173b prep 9.16.48 2024-02-11 12:31:23 +01:00
Michał Kępień
2cdf003dae Merge branch 'michal/prepare-documentation-for-bind-9.16.48' into 'v9.16.48-release'
Prepare documentation for BIND 9.16.48

See merge request isc-private/bind9!658
2024-02-11 11:29:36 +00:00
Michał Kępień
43a6b02728 Add release note for GL #4459 2024-02-11 12:10:17 +01:00
Michał Kępień
659e0d80fd Prepare release notes for BIND 9.16.48 2024-02-11 12:10:17 +01:00
Michał Kępień
81ac09c421 Merge branch '4568-fix-isc_ht-case-insensitive-matching-9.16' into 'v9.16.48-release'
[9.16] Fix case insensitive matching in isc_ht hash table implementation

See merge request isc-private/bind9!654
2024-02-11 11:06:57 +00:00
Ondřej Surý
81479eaa63 Add CHANGES note for [GL #4568]
(cherry picked from commit e91884553f)
2024-02-11 11:57:58 +01:00
Ondřej Surý
b9c10a194d Add a system test for mixed-case data for the same owner
We were missing a test where a single owner name would have multiple
types with a different case.  The generated RRSIGs and NSEC records will
then have different case than the signed records and message parser have
to cope with that and treat everything as the same owner.

(cherry picked from commit a114042059)
2024-02-11 11:57:58 +01:00
Ondřej Surý
f493a83941 Fix case insensitive matching in isc_ht hash table implementation
The case insensitive matching in isc_ht was basically completely broken
as only the hashvalue computation was case insensitive, but the key
comparison was always case sensitive.

(cherry picked from commit 175655b771)
2024-02-11 11:57:58 +01:00
Michał Kępień
d03f7933ae Merge branch 'michal/set-up-version-and-release-notes-for-bind-9.16.49' into 'bind-9.16'
Set up version and release notes for BIND 9.16.49

See merge request isc-projects/bind9!8722
2024-02-11 10:12:13 +00:00
Michał Kępień
ae9d795a13 Set up release notes for BIND 9.16.49 2024-02-11 11:10:14 +01:00
Michał Kępień
8e4896ffa4 Update BIND version to 9.16.49-dev 2024-02-11 11:10:14 +01:00
Tom Krizek
5b7a0f02c1 Merge branch '4562-use-source-port-for-ditch-pl-9.16' into 'bind-9.16'
[9.16] Use a single local port for ditch.pl

See merge request isc-projects/bind9!8708
2024-02-08 13:41:18 +00:00
Tom Krizek
be735330bb Use a single local port for ditch.pl
The ditch.pl script is used to generate burst traffic without waiting
for the responses. When running other tests in parallel, this can result
in a ephemeral port clash, since the ditch.pl process closes the socket
immediately. In rare occasions when the message ID also clashes with
other tests' queries, it might result in an UnexpectedSource error from
dnspython.

Use a dedicated port EXTRAPORT8 which is reserved for each test as a
source port for the burst traffic.

(cherry picked from commit 339fa5690a)
2024-02-08 13:46:52 +01:00
Ondřej Surý
ac12ddb6e1 Merge branch 'ondrej/various-rbtdb-fixes-9.16' into 'bind-9.16'
[9.16] Fix missing RRSIG for CNAME with different slabheader order

See merge request isc-projects/bind9!8705
2024-02-08 09:11:09 +00:00
Ondřej Surý
9dea042fb8 Add CHANGES note for [GL !8675]
(cherry picked from commit 6e81717cff)
2024-02-08 09:43:15 +01:00
Ondřej Surý
f654ed7a05 Optimize cname_and_other_data to stop as earliest as possible
Stop the cname_and_other_data processing if we already know that the
result is true.  Also, we know that CNAME will be placed in the priority
headers, so we can stop looking for CNAME if we haven't found CNAME and
we are past the priority headers.

(cherry picked from commit 3f774c2a8a)
2024-02-08 09:42:52 +01:00
Ondřej Surý
8ef414a7f3 Optimize the slabheader placement for certain RRTypes
Mark the infrastructure RRTypes as "priority" types and place them at
the beginning of the rdataslab header data graph.  The non-priority
types either go right after the priority types (if any).

(cherry picked from commit 3ac482be7f)
2024-02-08 09:42:48 +01:00
Ondřej Surý
51d6488e82 Fix missing RRSIG for CNAME with different slabheader order
The cachedb was missing piece of code (already found in zonedb) that
would make lookups in the slabheaders to miss the RRSIGs for CNAME if
the order of CNAME and RRSIG(CNAME) was reversed in the node->data.

(cherry picked from commit 5070c7f5c7)
2024-02-08 09:42:42 +01:00
Mark Andrews
6b8400d2db Merge branch '4561-shutdown-test-doesn-t-log-everything-to-named-run-bind-9.16' into 'bind-9.16'
[9.16] Resolve "Shutdown test doesn't log everything to named.run"

See merge request isc-projects/bind9!8702
2024-02-07 04:00:23 +00:00
Mark Andrews
aa8f3363d4 Capture the resolver's startup and shutdown logging
Also set the debugging to 99.

(cherry picked from commit 3651c58a6a)
2024-02-07 12:20:25 +11:00
Michał Kępień
90dc9a326d Merge branch 'prep-release' into v9.16.47-release 2024-02-02 11:20:19 +01:00
Michal Nowak
bab1aa9666 prep 9.16.47 2024-02-02 11:19:57 +01:00
Michal Nowak
830e62aa8e Merge branch 'michal/prepare-documentation-for-bind-9.16.47' into 'v9.16.47-release'
Prepare documentation for BIND 9.16.47

See merge request isc-private/bind9!645
2024-02-02 10:06:42 +00:00
Michał Kępień
83cad74ae2 Prepare release notes for BIND 9.16.47 2024-02-02 09:23:00 +01:00
Michał Kępień
435787efa3 Merge branch 'ondrej/split-taskmgr-9.16' into 'v9.16.47-release'
[9.16] [CVE-2023-50387] Fix KeyTrap

See merge request isc-private/bind9!629
2024-02-01 20:54:47 +00:00
Ondřej Surý
0ab4125801 Add CHANGES and release note for [GL #4424]
(cherry picked from commit c847092a17)
2024-02-01 21:51:07 +01:00
Ondřej Surý
a520fbc047 Optimize selecting the signing key
Don't parse the crypto data before parsing and matching the id and the
algorithm for consecutive DNSKEYs.  This allows us to parse the RData
only in case the other parameters match allowing us to skip keys that
are of no interest to us, but still would consume precious CPU time by
parsing possibly garbage with OpenSSL.

(cherry picked from commit f39cd17a26)
2024-02-01 21:51:07 +01:00
Ondřej Surý
3d206e918b Don't iterate from start every time we select new signing key
Remember the position in the iterator when selecting the next signing
key.  This should speed up processing for larger DNSKEY RRSets because
we don't have to iterate from start over and over again.

(cherry picked from commit 21af5c9a97)
2024-02-01 21:51:07 +01:00
Mark Andrews
6a65a42528 Fail processing incoming DNS message on first validation failure
Stop processing the DNS validation when first validation failure occurs
in the DNS message.

(cherry picked from commit 0add293477)
2024-02-01 21:51:07 +01:00
Mark Andrews
751b7cc475 Skip revoked keys when selecting DNSKEY in the validation loop
Don't select revoked keys when iterating through DNSKEYs in the DNSSEC
validation routines.

(cherry picked from commit 439e16e4de)
2024-02-01 21:51:07 +01:00
Ondřej Surý
c12608ca93 Split fast and slow task queues
Change the taskmgr (and thus netmgr) in a way that it supports fast and
slow task queues.  The fast queue is used for incoming DNS traffic and
it will pass the processing to the slow queue for sending outgoing DNS
messages and processing resolver messages.

In the future, more tasks might get moved to the slow queues, so the
cached and authoritative DNS traffic can be handled without being slowed
down by operations that take longer time to process.

(cherry picked from commit 1b3b0cef22)
2024-02-01 21:51:07 +01:00
Michał Kępień
a0c78d19f1 Merge branch '4234-confidential-parser-regression-9.16' into 'v9.16.47-release'
[9.16] fix a message parsing regression

See merge request isc-private/bind9!634
2024-02-01 20:29:35 +00:00
Michał Kępień
010a660624 Add a CHANGES entry
(cherry picked from commit 04ba284e1a)
2024-01-31 16:04:59 +01:00
Evan Hunt
f397ff5bb8 fix another message parsing regression
The fix for CVE-2023-4408 introduced a regression in the message
parser, which could cause a crash if an rdata type that can only
occur in the question was found in another section.

(cherry picked from commit 510f1de8a6)
2024-01-31 16:04:59 +01:00
Evan Hunt
0bbb0065e6 fix a message parsing regression
the fix for CVE-2023-4408 introduced a regression in the message
parser, which could cause a crash if duplicate rdatasets were found
in the question section. this commit ensures that rdatasets are
correctly disassociated and freed when this occurs.

(cherry picked from commit 4c19d35614)
2024-01-31 16:04:59 +01:00
Michal Nowak
1bee444649 Merge branch 'mnowak/drop-freebsd-12-9.16' into 'bind-9.16'
[9.16] Drop FreeBSD 12

See merge request isc-projects/bind9!8673
2024-01-26 11:00:16 +00:00
Michal Nowak
68d3e48c70 Drop FreeBSD 12
Support for FreeBSD 12.4, the last FreeBSD 12.x release, ended on
December 31, 2023.

Link: https://www.freebsd.org/security/unsupported/

Move the --with-gssapi=krb5-config ./configure option to Tumbleweed.

(cherry picked from commit 98bfa22381)
2024-01-26 10:57:53 +01:00
Michał Kępień
92b0a99831 Merge branch 'michal/set-up-version-and-release-notes-for-bind-9.16.48' into 'bind-9.16'
Set up version and release notes for BIND 9.16.48

See merge request isc-projects/bind9!8654
2024-01-15 14:55:54 +00:00
Michał Kępień
846376b144 Set up release notes for BIND 9.16.48 2024-01-15 15:49:18 +01:00
Michał Kępień
a3b6516d55 Update BIND version to 9.16.48-dev 2024-01-15 15:49:18 +01:00
Tom Krizek
597174b6c0 Merge branch '4521-timeout-in-dig-not-handled-in-rndc-system-test-9.16' into 'bind-9.16'
[9.16] Resolve "Timeout in dig not handled in system tests"

See merge request isc-projects/bind9!8634
2024-01-09 13:33:52 +00:00
Tom Krizek
1878a91a30 Handle dig timing out gracefully in upforwd
(cherry picked from commit 7b77574b6d)
2024-01-09 13:43:27 +01:00
Tom Krizek
43f9261157 Handle dig timing out gracefully in staticstub
(cherry picked from commit cc7c4760aa)
2024-01-09 13:43:26 +01:00
Tom Krizek
758f03f4f8 Handle dig timing out gracefully in sortlist
(cherry picked from commit 2341934f7d)
2024-01-09 13:43:26 +01:00