Commit Graph

40223 Commits

Author SHA1 Message Date
Matthijs Mekking
00fa7483b9 Renumber the ns2/named-alt*.conf.in files
Now that some configuration input files have been removed, rename
the filenames.
2023-11-28 17:03:08 +01:00
Matthijs Mekking
3119164e29 Drop ns2/named-alt1.conf.in and ns2/named-alt2.conf.in
These files were not being used in the system test.
2023-11-28 17:03:08 +01:00
Michal Nowak
236e5bf519 Drop the last remnant of ns2/named-alt3.conf.in
The ns2/named-alt3.conf.in config file was removed in
f8e264ba6d. From then on, system test
reports:

    sed: can't read ns2/named-alt3.conf.in: No such file or directory"

Drop the last remnant of ns2/named-alt3.conf.in.
2023-11-28 17:03:08 +01:00
Michał Kępień
de2009e3c2 Merge branch 'michal/minor-gitlab-ci-cleanup' into 'main'
Minor GitLab CI cleanup

See merge request isc-projects/bind9!8505
2023-11-21 09:29:09 +00:00
Michał Kępień
192cceba5a Move job definitions to the proper place
The definitions of the "ci-variables" and "cross-version-config-tests"
GitLab CI jobs were accidentally added in the .gitlab-ci.yml section
that claims to only contain job templates.  Move the definitions of
these two jobs to a more appropriate location in .gitlab-ci.yml, without
changing the job definitions themselves.
2023-11-21 10:18:52 +01:00
Michał Kępień
832c7d4396 Drop the TARBALL_EXTENSION variable
All currently supported BIND 9 branches use xz-packed tarballs for
source code distribution.  Having a variable with a lengthy name that
only holds two characters does not improve readability - it was only
useful for maintaining .gitlab-ci.yml consistency between BIND 9.11 and
all the newer branches, but that era has come to an end a while ago.

Replace all occurrences of the TARBALL_EXTENSION variable in
.gitlab-ci.yml with a fixed string ("xz") to simplify the contents of
that file.
2023-11-21 10:18:52 +01:00
Mark Andrews
a1da698103 Merge branch '4432-pointers-dereferenced-before-being-checked' into 'main'
Resolve "Pointers Dereferenced before Being Checked"

Closes #4432

See merge request isc-projects/bind9!8508
2023-11-21 05:40:17 +00:00
Mark Andrews
decc17d3b0 Ineffective DbC protections
Dereference before NULL checks.  Thanks to Eric Sesterhenn from X41
D-Sec GmbH for reporting this.
2023-11-21 14:48:43 +11:00
Matthijs Mekking
a819d36446 Merge branch 'matthijs-lexopt-escape-public-key' into 'main'
Recognize escapes when reading the public key

See merge request isc-projects/bind9!8502
2023-11-20 08:48:06 +00:00
Matthijs Mekking
53657591fa Add CHANGES 2023-11-20 08:32:29 +01:00
Matthijs Mekking
6a4f3ec242 Add a DNSSEC policy test case for a special zone
Try to create a key for a zone, and then sign it, that has some special
characters in the name.
2023-11-20 08:31:39 +01:00
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