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

40212 Commits

Author SHA1 Message Date
Matthijs Mekking
71f023a1c3 Recognize escapes when reading the public key
Escapes are valid in DNS names, and should be recognized when reading
the public key from disk.
2023-11-20 08:31:39 +01:00
Mark Andrews
7cace4fb61 Merge branch '4396-dig-does-not-display-yaml-output-for-errors-when-using-protocols-other-than-udp' into 'main'
Resolve "dig does not display YAML output for errors when using protocols other than UDP"

Closes #4396

See merge request isc-projects/bind9!8442
2023-11-20 02:35:57 +00:00
Mark Andrews
f813795c6f Add CHANGES for [GL #4396] 2023-11-20 12:24:19 +11:00
Mark Andrews
831efa40d6 Emit "no servers could be reached" for TCP as well as UDP
When all the servers are exhausted for TCP emit "no servers could
be reached" in tcp_connected.  This message is already emitted for
UDP.
2023-11-20 12:23:27 +11:00
Ondřej Surý
8876b2d8a9 Merge branch '4414-shutdown-crash-in-control_recvmessage' into 'main'
Make sure we shutdown the controlconf listeners and connections once

Closes #4414

See merge request isc-projects/bind9!8470
2023-11-16 16:26:24 +00:00
Ondřej Surý
5734d6c826 Make sure we shutdown the controlconf listeners and connections once
It was possible that controlconf connections could be shutdown twice
when shutting down the server, because they would receive the
signal (ISC_R_SHUTTINGDOWN result) from netmgr and then the shutdown
procedure would be called second time via controls_shutdown().

Split the shutdown procedure from control_recvmessage(), so we can call
it independently from netmgr callbacks and make sure it will be called
only once.  Do the similar thing for the listeners.
2023-11-16 16:58:12 +01:00
Michał Kępień
f4ca058a06 Merge branch 'michal/update-release-and-cve-checklists' into 'main'
Update release and CVE checklists

See merge request isc-projects/bind9!8500
2023-11-16 10:47:08 +00:00
Michał Kępień
fe503854f0 Remove steps related to the post-mortem meeting
The post-mortem meeting is now considered an on-demand event.  The past
few security release cycles proved that there is rarely a need to
discuss things in this form, so there is little point in carrying out
the relevant steps for every single vulnerability - which does not
prevent us from doing so if the actual need arises.
2023-11-16 11:39:51 +01:00
Vicky Risk
2db9ab405c Revise responsibilities in the CVE checklist
Update the CVE checklist to reflect agreed-upon changes between Support
and Marketing responsibilities.
2023-11-16 11:39:51 +01:00
Michał Kępień
b9443d81cb Rebase -S branches after version bumps
Applying version bumps in open source branches breaks automatic rebasing
of the bind-9.x-sub branches.  Ensure the latter are manually rebased
after each version bump to prevent the "rebase" job in GitLab CI from
failing.
2023-11-16 11:39:51 +01:00
Michał Kępień
9c744e6613 Reassign release (pre-)publishing to QA 2023-11-16 11:39:51 +01:00
Michał Kępień
c8c974059d Prepare the patches/ subdirectory earlier
The patches/ subdirectory needs to be present in each prerelease
directory before the ASN releases get pre-published or else the latter
will not contain standalone patches.
2023-11-16 11:39:51 +01:00
Vicky Risk
a90409bf4d Revise responsibilities in the release checklist
Update the release checklist to reflect agreed-upon changes between
Support and Marketing responsibilities.
2023-11-16 11:39:51 +01:00
Evan Hunt
0e3a75798b Merge branch '3983-secondary-loadtime' into 'main'
set loadtime during initial transfer of a secondary zone

Closes #3983

See merge request isc-projects/bind9!8485
2023-11-16 02:02:15 +00:00
Evan Hunt
9643281453 set loadtime during initial transfer of a secondary zone
when transferring in a non-inline-signing secondary for the first time,
we previously never set the value of zone->loadtime, so it remained
zero. this caused a test failure in the statschannel system test,
and that test case was temporarily disabled.  the value is now set
correctly and the test case has been reinstated.
2023-11-15 17:23:25 -08:00
Mark Andrews
f17b94fb72 Merge branch '4433-supplied-buffer-too-large-in-wire_test-c' into 'main'
Resolve "Supplied Buffer Too Large in wire_test.c"

Closes #4433

See merge request isc-projects/bind9!8496
2023-11-16 01:19:33 +00:00
Mark Andrews
560c245971 Adjust comment to have correct message limit value 2023-11-16 11:22:47 +11:00
Mark Andrews
cbfcdbc199 Adjust message buffer sizes in test code 2023-11-16 11:22:02 +11:00
Mark Andrews
a069513234 Check that buffer length in dns_message_renderbegin
The maximum DNS message size is 65535 octets. Check that the buffer
being passed to dns_message_renderbegin does not exceed this as the
compression code assumes that all offsets are no bigger than this.
2023-11-16 11:15:49 +11:00
Michał Kępień
dc25df18f3 Merge tag 'v9.19.18' 2023-11-15 14:54:10 +01:00
Ondřej Surý
101fad490b Merge branch '4421-remove-AES-based-DNS-cookies' into 'main'
Remove AES algorithm for DNS cookies

Closes #4421

See merge request isc-projects/bind9!8471
2023-11-15 09:36:22 +00:00
Ondřej Surý
8e230d8908 Add CHANGES and release note for [GL #4421] 2023-11-15 10:31:34 +01:00
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