2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00
Commit Graph

40440 Commits

Author SHA1 Message Date
Ondřej Surý
17da9fed58 Remove AES algorithm for DNS cookies
The AES algorithm for DNS cookies was being kept for legacy reasons, and
it can be safely removed in the next major release.  Remove both the AES
usage for DNS cookies and the AES implementation itself.
2023-11-15 10:31:16 +01:00
Michal Nowak
25cfec4d2b Merge branch 'mnowak/fedora-39' into 'main'
Add Fedora 39

See merge request isc-projects/bind9!8375
2023-11-14 18:32:09 +00:00
Michal Nowak
cdb4b97b28 Add Fedora 39 2023-11-14 17:45:05 +01:00
Arаm Sаrgsyаn
f6112e5c65 Merge branch '4418-catz-rbtdb-cds_lfht_destroy-failed' into 'main'
Fix catz db update callback registration logic error (take two)

Closes #4418

See merge request isc-projects/bind9!8476
2023-11-14 10:07:11 +00:00
Aram Sargsyan
2b81ef5cd5 Add a CHANGES note for [GL #4418] 2023-11-14 09:00:20 +00:00
Aram Sargsyan
c584899b1a Fix catz db update callback registration logic error (take two)
Please see the 998765fea5 commit for
the description of the original issue. The commit had fixed the
logic error, but it was reintroduced again later with the
a1afa31a5a commit, where the check of
the 'db_registered' flag was removed in dns__catz_update_cb(). The
check was removed, because the registration function was made
idempotent, so double registration is not an issue, but the check
also prevented from unneeded registration, on which the original
fix relied.

This commit just removes the update callback registration code from
the dns__catz_update_cb() function instead of bringing back the check,
because after code flow analysis, it is now clear that it's not required
at all. The "call onupdate() artificially" comment (which was mentioned
by the removed code) is speaking about the dns_catz_dbupdate_callback()
function, which is called by server.c on (re)configuration, and that
function already takes care of update callback's registration since the
998765fea5 commit was applied, so there
is no need to do that here again.
2023-11-14 08:59:48 +00:00
Arаm Sаrgsyаn
4b419cec95 Merge branch 'aram/isc_hasmap-iterators-use-atomics' into 'main'
Use atomics for the the iterators number of isc_hashmap_t

See merge request isc-projects/bind9!8474
2023-11-14 08:58:04 +00:00
Aram Sargsyan
b6ae7ec82b Add a CHANGES note for [GL !8474] 2023-11-14 08:57:06 +00:00
Aram Sargsyan
2826f885d5 Use atomics for the iterators number in isc_hashmap_t
Concurrent threads can access a hashmap for reading by creating and
then destroying an iterator, in which case the integer number of the
active iterators is increased or decreased from different threads,
introducing a data race. Use atomic operations to protect the variable.
2023-11-14 08:56:41 +00:00
Ondřej Surý
9ac0f2df9e Merge branch 'ondrej-clang-format-17' into 'main'
Reformat sources with up-to-date clang-format-17

See merge request isc-projects/bind9!8488
2023-11-13 16:16:48 +00:00
Ondřej Surý
2a212ffd5c Ignore clang-format reformat 2023-11-13 16:56:10 +01:00
Ondřej Surý
79d9360011 Reformat sources with up-to-date clang-format-17 2023-11-13 16:52:35 +01:00
Ondřej Surý
4ee7b803b6 Merge branch '4421-deprecate-AES-based-DNS-cookies' into 'main'
Deprecate AES algorithm for DNS cookies

Closes #4421

See merge request isc-projects/bind9!8472
2023-11-13 15:00:48 +00:00
Ondřej Surý
2a3b3beaf1 Add CHANGES and release note for [GL #4421] 2023-11-13 15:00:04 +01:00
Ondřej Surý
67d14b0ee5 Deprecate AES algorithm for DNS cookies
The AES algorithm for DNS cookies was being kept for legacy reasons,
and it can be safely removed in the next major release.  Mark is as
deprecated, so the `named-checkconf` prints a warning when in use.
2023-11-13 14:59:43 +01:00
Arаm Sаrgsyаn
fd4ad5f0ba Merge branch '4328-tasn-error-in-isc_hashmap_iter_create' into 'main'
Resolve "ThreadSanitizer: data race in dns_tsigkeyring_dump"

Closes #4328

See merge request isc-projects/bind9!8473
2023-11-13 13:33:38 +00:00
Aram Sargsyan
0817d42102 Add a CHANGES note for [GL #4328] 2023-11-13 12:06:26 +00:00
Aram Sargsyan
6687de854f Use a read lock when iterating over a hashmap
The 'dns_tsigkeyring_t' structure has a read/write lock to protect
its 'keys' member, which is a 'isc_hashmap_t' pointer and needs to
be protected.

The dns_tsigkeyring_dump() function, however, doesn't use the lock,
which can introduce a race with another thread, if the other thread
tries to modify the hashmap.

Add a read lock around the code, which iterates over the hashmap.
2023-11-13 12:06:26 +00:00
Petr Špaček
4c9d948365 Merge branch 'pspacek/set-up-version-and-release-notes-for-bind-9.19.19' into 'main'
Set up version and release notes for BIND 9.19.19

See merge request isc-projects/bind9!8482
2023-11-10 13:20:50 +00:00
Petr Špaček
993e53ba53 Set up release notes for BIND 9.19.19 2023-11-10 13:50:32 +01:00
Petr Špaček
f5a91e2f49 Update BIND version to 9.19.19-dev 2023-11-10 13:50:32 +01:00
Michał Kępień
8dea58c390 Update BIND version for release v9.19.18 2023-11-09 13:02:34 +01:00
Michał Kępień
29546ae22c Add a CHANGES marker 2023-11-09 13:02:34 +01:00
Michał Kępień
69ca828f2e Merge branch 'michal/prepare-documentation-for-bind-9.19.18' into 'v9.19.18-release'
Prepare documentation for BIND 9.19.18

See merge request isc-private/bind9!591
2023-11-09 12:01:25 +00:00
Michał Kępień
46980fd8c2 Reorder release notes 2023-11-09 12:36:34 +01:00
Michał Kępień
38d0b73a37 Tweak and reword release notes 2023-11-09 12:36:34 +01:00
Michał Kępień
b35f8dbbc1 Prepare release notes for BIND 9.19.18 2023-11-09 12:36:34 +01:00
Michał Kępień
af544ef80e Tweak CHANGES entry for [GL #4260] 2023-11-09 12:36:34 +01:00
Michał Kępień
af92841c5e Tweak CVE-2021-25219 reference 2023-11-09 12:36:34 +01:00
Petr Špaček
36aa66bfb4 Merge branch 'matthijs-remove-deprecation-warning-on-dnssec-policy-max-zone-ttl' into 'main'
Remove deprecation warning on dnssec policy max zone ttl

See merge request isc-projects/bind9!8467
2023-11-05 13:10:03 +00:00
Matthijs Mekking
91430cd59a Remove dnssec-policy/max-zone-ttl deprecation text
The readthedocs also placed a deprecation warning on 'max-zone-ttl'
that is part of 'dnssec-policy'. This option is of course not being
deprecated.
2023-11-05 11:37:33 +01:00
Evan Hunt
7d650fde89 Merge branch 'fanf-rndc-nta-newlines' into 'main'
Fix missing newlines in output of `rndc nta -dump`

See merge request isc-projects/bind9!8454
2023-11-02 16:31:25 +00:00
Evan Hunt
37b101b6e2 CHANGES for [GL !8454] 2023-11-02 21:31:43 +11:00
Tony Finch
61b245e318 Fix missing newlines in output of rndc nta -dump
There were no newlines between each view in the list of negative trust
anchors.
2023-11-02 21:31:09 +11:00
Tom Krizek
01b1ae7bef Merge branch '4401-make-check-fix-junitxml-output-processing' into 'main'
Fix pytest junitxml output processing for make check

Closes #4401

See merge request isc-projects/bind9!8443
2023-11-02 09:02:01 +00:00
Tom Krizek
ba25ecd2d2 Fix pytest junitxml output processing for make check
Not every element tagged `skipped` in the JUnitXML tree has to contain
the `type` attribute. An example of that is a test that results in
xpass.

This has been verified with pytest version 7.4.2 and prior.
2023-11-02 09:59:23 +01:00
Michał Kępień
1a724685a0 Merge branch 'michal/add-a-release-signing-job-to-gitlab-ci' into 'main'
Add a release signing job to GitLab CI

See merge request isc-projects/bind9!8418
2023-11-02 06:23:15 +00:00
Michał Kępień
a3a91a1557 Add a release signing job to GitLab CI
Add a GitLab CI job that is only run for tags and makes signing BIND 9
releases more convenient by utilizing a signing VM that is registered as
a GitLab CI runner.  This pulls the signing process into the release
pipelines in GitLab CI, resulting in job artifacts containing the
signatures for BIND 9 releases, which in turns simplifies the subsequent
release publication steps.
2023-11-02 07:22:20 +01:00
Mark Andrews
83053ea740 Merge branch '4406-cleanup-b-in-dnstap-main' into 'main'
Resolve "cleanup 'b' in dnstap-read main"

Closes #4406

See merge request isc-projects/bind9!8455
2023-11-02 04:25:19 +00:00
Mark Andrews
0482451f84 Cleanup dead code in dnstap-read
Remove 'b' from main as it is unused.
2023-11-01 20:58:22 +00:00
Mark Andrews
73b8a311a6 Merge branch '4209-turn-on-qname-minimisation-for-adb-name-fetches' into 'main'
Resolve "Turn on QNAME minimisation for adb name fetches."

Closes #4209

See merge request isc-projects/bind9!8107
2023-11-01 17:13:47 +00:00
Mark Andrews
967bdb33be Add release note for [GL #4209] 2023-11-01 16:51:56 +01:00
Mark Andrews
899527e357 Add CHANGES note for [GL #4209] 2023-11-01 16:51:53 +01:00
Evan Hunt
461b9a0442 if GLUEOK is set, and glue is found in a zone DB, don't check the cache
EXPERIMENT: when DNS_DB_GLUEOK is set, dns_view_find() will now return
glue if it is found it a local zone database, without checking to see
if a better answer has been cached previously.
2023-11-01 16:49:08 +01:00
Mark Andrews
9227b82e71 Also look for additional records in dns_adb_find
If a child zone is served by the same servers as a parent zone and
a NS query is made for the zone name then the addresses of the
nameservers are returned in the additional section are tagged as
trust additional.
2023-11-01 16:49:08 +01:00
Mark Andrews
578da93581 Turn on QNAME minimisation when fetching nameserver addresses 2023-11-01 16:49:08 +01:00
Evan Hunt
a4aa93f46d Merge branch '4340-fix-max-cache-size' into 'main'
restore isc_mem_setwater() call in the cache

Closes #4340

See merge request isc-projects/bind9!8445
2023-11-01 15:18:18 +00:00
Michał Kępień
789879b572 Add release note for GL #4340 2023-11-01 15:18:02 +00:00
Evan Hunt
93f1518c80 CHANGES for [GL #4340] 2023-11-01 15:18:02 +00:00
Evan Hunt
b12f709f05 restore isc_mem_setwater() call in the cache
Commit 4db150437e incorrectly removed the
call to isc_mem_setwater() from dns_cache_setcachesize().  The water()
function is a no-op, but we still need to set high- and low-water marks
in the memory context, otherwise overmem conditions will not be
detected.
2023-11-01 15:18:02 +00:00