]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
2 years agoFix broken link to OMB memo
Suzanne Goldlust [Wed, 29 Nov 2023 22:38:24 +0000 (22:38 +0000)] 
Fix broken link to OMB memo

(cherry picked from commit 1482f5b1ed0bc5937a012c0432fb14913bd6827b)

2 years agoMerge branch 'michal/minor-gitlab-ci-cleanup-9.18' into 'bind-9.18'
Michał Kępień [Tue, 21 Nov 2023 09:31:33 +0000 (09:31 +0000)] 
Merge branch 'michal/minor-gitlab-ci-cleanup-9.18' into 'bind-9.18'

[9.18] Minor GitLab CI cleanup

See merge request isc-projects/bind9!8512

2 years agoMove job definitions to the proper place
Michał Kępień [Tue, 21 Nov 2023 09:18:52 +0000 (10:18 +0100)] 
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.

(cherry picked from commit 192cceba5aeb960ddf5dbd92d173acea50b48e1d)

2 years agoDrop the TARBALL_EXTENSION variable
Michał Kępień [Tue, 21 Nov 2023 09:18:52 +0000 (10:18 +0100)] 
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.

(cherry picked from commit 832c7d4396dcaf8ecaf417be92f7ef1023dc13a7)

2 years agoMerge branch 'matthijs-lexopt-escape-public-key-9.18' into 'bind-9.18'
Matthijs Mekking [Mon, 20 Nov 2023 12:40:43 +0000 (12:40 +0000)] 
Merge branch 'matthijs-lexopt-escape-public-key-9.18' into 'bind-9.18'

[9.18] Recognize escapes when reading the public key

See merge request isc-projects/bind9!8504

2 years agoAdd CHANGES
Matthijs Mekking [Mon, 20 Nov 2023 07:32:29 +0000 (08:32 +0100)] 
Add CHANGES

(cherry picked from commit 53657591fa7532600b147876a9c702ebf8fdc7f9)

2 years agoAdd a DNSSEC policy test case for a special zone
Matthijs Mekking [Fri, 17 Nov 2023 15:00:23 +0000 (16:00 +0100)] 
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.

(cherry picked from commit 6a4f3ec242be67124bdc81785c8c78bf79c5066d)

2 years agoRecognize escapes when reading the public key
Matthijs Mekking [Fri, 17 Nov 2023 12:45:17 +0000 (13:45 +0100)] 
Recognize escapes when reading the public key

Escapes are valid in DNS names, and should be recognized when reading
the public key from disk.

(cherry picked from commit 71f023a1c395d34be690147da9162a25a5041e6f)

2 years agoMerge branch '4396-dig-does-not-display-yaml-output-for-errors-when-using-protocols...
Mark Andrews [Mon, 20 Nov 2023 03:14:58 +0000 (03:14 +0000)] 
Merge branch '4396-dig-does-not-display-yaml-output-for-errors-when-using-protocols-other-than-udp-bind-9.18' into 'bind-9.18'

[9.18] Resolve "dig does not display YAML output for errors when using protocols other than UDP"

See merge request isc-projects/bind9!8503

2 years agoAdd CHANGES for [GL #4396]
Mark Andrews [Wed, 15 Nov 2023 04:46:51 +0000 (15:46 +1100)] 
Add CHANGES for [GL #4396]

(cherry picked from commit f813795c6ff7625698a7b5768fb228eb1a271a7d)

2 years agoEmit "no servers could be reached" for TCP as well as UDP
Mark Andrews [Sat, 28 Oct 2023 04:40:22 +0000 (15:40 +1100)] 
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.

(cherry picked from commit 831efa40d616d56fc86c3eb55a8e8fe953ab9409)

2 years agoMerge branch '3983-secondary-loadtime-bind-9.18' into 'bind-9.18'
Evan Hunt [Thu, 16 Nov 2023 05:53:00 +0000 (05:53 +0000)] 
Merge branch '3983-secondary-loadtime-bind-9.18' into 'bind-9.18'

[9.18] set loadtime during initial transfer of a secondary zone

See merge request isc-projects/bind9!8498

2 years agoset loadtime during initial transfer of a secondary zone
Evan Hunt [Sat, 11 Nov 2023 21:15:27 +0000 (13:15 -0800)] 
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.

(cherry picked from commit 964328145383d2c95377f48e61ea9f05cfb6d8a7)

2 years agoMerge branch '4433-supplied-buffer-too-large-in-wire_test-c-bind-9.18' into 'bind...
Mark Andrews [Thu, 16 Nov 2023 02:01:21 +0000 (02:01 +0000)] 
Merge branch '4433-supplied-buffer-too-large-in-wire_test-c-bind-9.18' into 'bind-9.18'

[9.18] Resolve "Supplied Buffer Too Large in wire_test.c"

See merge request isc-projects/bind9!8497

2 years agoAdjust comment to have correct message limit value
Mark Andrews [Thu, 16 Nov 2023 00:22:47 +0000 (11:22 +1100)] 
Adjust comment to have correct message limit value

(cherry picked from commit 560c24597190a77e5d157543fc1179b84d7f74b0)

2 years agoAdjust message buffer sizes in test code
Mark Andrews [Thu, 16 Nov 2023 00:22:02 +0000 (11:22 +1100)] 
Adjust message buffer sizes in test code

(cherry picked from commit cbfcdbc19952b8c7679a21f5d4770f3b85bbf5c9)

2 years agoCheck that buffer length in dns_message_renderbegin
Mark Andrews [Thu, 16 Nov 2023 00:15:49 +0000 (11:15 +1100)] 
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.

(cherry picked from commit a06951323496ee084b49e01d436616adf2d67f1b)

2 years agoMerge tag 'v9.18.20' into bind-9.18
Michał Kępień [Wed, 15 Nov 2023 13:57:53 +0000 (14:57 +0100)] 
Merge tag 'v9.18.20' into bind-9.18

2 years agoMerge branch 'mnowak/fedora-39-9.18' into 'bind-9.18'
Michal Nowak [Tue, 14 Nov 2023 19:21:02 +0000 (19:21 +0000)] 
Merge branch 'mnowak/fedora-39-9.18' into 'bind-9.18'

[9.18] Add Fedora 39

See merge request isc-projects/bind9!8491

2 years agoAdd Fedora 39
Michal Nowak [Thu, 12 Oct 2023 15:33:47 +0000 (17:33 +0200)] 
Add Fedora 39

(cherry picked from commit cdb4b97b289362f5d2806b608d920b7e973531de)

2 years agoMerge branch 'ondrej-clang-format-17-bind-9.18' into 'bind-9.18'
Ondřej Surý [Mon, 13 Nov 2023 16:22:04 +0000 (16:22 +0000)] 
Merge branch 'ondrej-clang-format-17-bind-9.18' into 'bind-9.18'

Reformat sources with up-to-date clang-format-17

See merge request isc-projects/bind9!8489

2 years agoIgnore clang-format reformat
Ondřej Surý [Mon, 13 Nov 2023 15:56:10 +0000 (16:56 +0100)] 
Ignore clang-format reformat

2 years agoReformat sources with up-to-date clang-format-17
Ondřej Surý [Mon, 13 Nov 2023 16:13:07 +0000 (17:13 +0100)] 
Reformat sources with up-to-date clang-format-17

2 years agoMerge branch 'pspacek/set-up-version-and-release-notes-for-bind-9.18.21' into 'bind...
Petr Špaček [Fri, 10 Nov 2023 13:20:57 +0000 (13:20 +0000)] 
Merge branch 'pspacek/set-up-version-and-release-notes-for-bind-9.18.21' into 'bind-9.18'

Set up version and release notes for BIND 9.18.21

See merge request isc-projects/bind9!8483

2 years agoSet up release notes for BIND 9.18.21
Petr Špaček [Fri, 10 Nov 2023 13:04:03 +0000 (14:04 +0100)] 
Set up release notes for BIND 9.18.21

2 years agoUpdate BIND version to 9.18.21-dev
Petr Špaček [Fri, 10 Nov 2023 13:04:03 +0000 (14:04 +0100)] 
Update BIND version to 9.18.21-dev

2 years agoUpdate BIND version for release v9.18.20
Michał Kępień [Thu, 9 Nov 2023 12:41:09 +0000 (13:41 +0100)] 
Update BIND version for release

2 years agoAdd a CHANGES marker
Michał Kępień [Thu, 9 Nov 2023 12:41:09 +0000 (13:41 +0100)] 
Add a CHANGES marker

2 years agoMerge branch 'michal/prepare-documentation-for-bind-9.18.20' into 'v9.18.20-release'
Michał Kępień [Thu, 9 Nov 2023 12:40:14 +0000 (12:40 +0000)] 
Merge branch 'michal/prepare-documentation-for-bind-9.18.20' into 'v9.18.20-release'

Prepare documentation for BIND 9.18.20

See merge request isc-private/bind9!592

2 years agoReorder release notes
Michał Kępień [Thu, 9 Nov 2023 12:10:33 +0000 (13:10 +0100)] 
Reorder release notes

2 years agoTweak and reword release notes
Michał Kępień [Thu, 9 Nov 2023 12:10:33 +0000 (13:10 +0100)] 
Tweak and reword release notes

2 years agoPrepare release notes for BIND 9.18.20
Michał Kępień [Thu, 9 Nov 2023 12:10:33 +0000 (13:10 +0100)] 
Prepare release notes for BIND 9.18.20

2 years agoTweak CHANGES entry for [GL #4260]
Michał Kępień [Thu, 9 Nov 2023 12:10:33 +0000 (13:10 +0100)] 
Tweak CHANGES entry for [GL #4260]

2 years agoTweak CVE-2021-25219 reference
Michał Kępień [Thu, 9 Nov 2023 12:10:33 +0000 (13:10 +0100)] 
Tweak CVE-2021-25219 reference

2 years agoMerge branch 'ondrej/remove-i386-as-fully-supported-platform-9.18' into 'bind-9.18'
Michał Kępień [Wed, 8 Nov 2023 12:14:02 +0000 (12:14 +0000)] 
Merge branch 'ondrej/remove-i386-as-fully-supported-platform-9.18' into 'bind-9.18'

[9.18] Move i386 and armhf to the Best-Effort category

See merge request isc-projects/bind9!8475

2 years agoSplit the CPU architectures into more categories
Ondřej Surý [Mon, 21 Aug 2023 15:53:15 +0000 (17:53 +0200)] 
Split the CPU architectures into more categories

Move i386 and other less common or ancient CPU architectures to
Community-Maintened category.  Move armhf and arm64 to the Best-Effort
category as we do test them as part of development work (new MacBooks
are all arm64), we don't really do full set of tests in the CI.

(cherry picked from commit db94c7526cc13ea864d18940a844a40ecd300540)

2 years agoMerge branch 'each-fix-ntadump' into 'bind-9.18'
Evan Hunt [Fri, 3 Nov 2023 13:08:07 +0000 (13:08 +0000)] 
Merge branch 'each-fix-ntadump' into 'bind-9.18'

[9.18] Fix missing newlines in output of `rndc nta -dump`

See merge request isc-projects/bind9!8466

2 years agoCHANGES for [GL !8454]
Evan Hunt [Wed, 1 Nov 2023 16:38:22 +0000 (17:38 +0100)] 
CHANGES for [GL !8454]

(cherry picked from commit 37b101b6e233af37ce349d7b3d33775908650c3f)

2 years agoFix missing newlines in output of `rndc nta -dump`
Tony Finch [Tue, 15 Oct 2019 14:36:55 +0000 (15:36 +0100)] 
Fix missing newlines in output of `rndc nta -dump`

There were no newlines between each view in the list of negative trust
anchors.

(cherry picked from commit 61b245e3182a0d940295b0f45cf3dc136fa9ef8b)

2 years agoMerge branch '4101-update-b-root-server-net-addresses-bind-9.18' into 'bind-9.18'
Mark Andrews [Thu, 2 Nov 2023 17:19:05 +0000 (17:19 +0000)] 
Merge branch '4101-update-b-root-server-net-addresses-bind-9.18' into 'bind-9.18'

[9.18] Resolve "Update b.root-server.net addresses"

See merge request isc-projects/bind9!8462

2 years agoAdd release note for [GL #4101]
Mark Andrews [Wed, 11 Oct 2023 23:26:38 +0000 (10:26 +1100)] 
Add release note for [GL #4101]

(cherry picked from commit c7a06b1fa18386a129d6c97fef03ce249dd2e765)

2 years agoAdd CHANGES note for [GL #4101]
Mark Andrews [Wed, 11 Oct 2023 23:24:50 +0000 (10:24 +1100)] 
Add CHANGES note for [GL #4101]

(cherry picked from commit b9bba29c5e77bcfffce401da2ed53cdcbf2d90e7)

2 years agoSuppress reporting upcoming changes in root hints
Mark Andrews [Tue, 17 Oct 2023 23:45:41 +0000 (10:45 +1100)] 
Suppress reporting upcoming changes in root hints

To reduce the amount of log spam when root servers change their
addresses keep a table of upcoming changes by expected date and time
and suppress reporting differences for them until then.

Add initial entry for B.ROOT-SERVERS.NET, Nov 27, 2023.

(cherry picked from commit b69100b747f267c6ec95fb0011941f021fc3a4f4)

2 years agoUpdate b.root-servers.net IP addresses
Mark Andrews [Wed, 11 Oct 2023 23:19:38 +0000 (10:19 +1100)] 
Update b.root-servers.net IP addresses

This covers both root hints and the default primaries for the root
zone mirror.  The official change date is Nov 27, 2023.

(cherry picked from commit 2ca2f7e9852a3d6e93f065c01ea4679f723688f7)

2 years agoMerge branch '4406-cleanup-b-in-dnstap-main-bind-9.18' into 'bind-9.18'
Mark Andrews [Thu, 2 Nov 2023 10:53:15 +0000 (10:53 +0000)] 
Merge branch '4406-cleanup-b-in-dnstap-main-bind-9.18' into 'bind-9.18'

[9.18] Resolve "cleanup 'b' in dnstap-read main"

See merge request isc-projects/bind9!8460

2 years agoCleanup dead code in dnstap-read
Mark Andrews [Wed, 1 Nov 2023 17:09:25 +0000 (04:09 +1100)] 
Cleanup dead code in dnstap-read

Remove 'b' from main as it is unused.

(cherry picked from commit 0482451f84b0f266dab1e2d2f2ba78ca20ec5b73)

2 years agoMerge branch '4401-make-check-fix-junitxml-output-processing-9.18' into 'bind-9.18'
Tom Krizek [Thu, 2 Nov 2023 09:30:31 +0000 (09:30 +0000)] 
Merge branch '4401-make-check-fix-junitxml-output-processing-9.18' into 'bind-9.18'

[9.18] Fix pytest junitxml output processing for make check

See merge request isc-projects/bind9!8459

2 years agoFix pytest junitxml output processing for make check
Tom Krizek [Mon, 30 Oct 2023 15:16:33 +0000 (16:16 +0100)] 
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.

(cherry picked from commit ba25ecd2d2b61d612c0f028b125e90d6d43e4bda)

2 years agoMerge branch 'michal/add-a-release-signing-job-to-gitlab-ci-9.18' into 'bind-9.18'
Michał Kępień [Thu, 2 Nov 2023 06:36:22 +0000 (06:36 +0000)] 
Merge branch 'michal/add-a-release-signing-job-to-gitlab-ci-9.18' into 'bind-9.18'

[9.18] Add a release signing job to GitLab CI

See merge request isc-projects/bind9!8457

2 years agoAdd a release signing job to GitLab CI
Michał Kępień [Thu, 2 Nov 2023 06:23:38 +0000 (07:23 +0100)] 
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.

(cherry picked from commit a3a91a1557e46215420125b9c2ab6842f3625757)

2 years agoMerge branch '4404-improve-stability-of-the-jemalloc-workaround' into 'bind-9.18'
Michał Kępień [Wed, 1 Nov 2023 17:04:36 +0000 (17:04 +0000)] 
Merge branch '4404-improve-stability-of-the-jemalloc-workaround' into 'bind-9.18'

Improve stability of the jemalloc workaround

See merge request isc-projects/bind9!8453

2 years agoImprove stability of the jemalloc workaround
Michał Kępień [Wed, 1 Nov 2023 17:04:07 +0000 (18:04 +0100)] 
Improve stability of the jemalloc workaround

When jemalloc is linked into BIND 9 binaries (rather than preloaded or
used as the system allocator), depending on the decisions made by the
linker, the malloc() symbol may be resolved to a non-jemalloc
implementation at runtime.  Such a scenario foils the workaround added
in commit 2da371d005c472dea349110e3ef9a6ed7b18b824 as it relies on the
jemalloc implementation of malloc() to be executed.

Handle the above scenario properly by calling mallocx() explicitly
instead of relying on the runtime resolution of the malloc() symbol.
Use trivial wrapper functions to avoid the need to copy multiple #ifdef
lines from lib/isc/mem.c to lib/isc/trampoline.c.  Using a simpler
alternative, e.g. calling isc_mem_create() & isc_mem_destroy(), was
already considered before and rejected, as described in the log message
for commit 2da371d005c472dea349110e3ef9a6ed7b18b824.

ADJUST_ZERO_ALLOCATION_SIZE() is only used in isc__mem_free_noctx() to
concisely avoid compilation warnings about its 'size' parameter not
being used when building against jemalloc < 4.0.0 (as sdallocx() is then
redefined to dallocx(), which has a different signature).

2 years agoMerge branch 'tkrizek/perf-tests-shotgun-9.18' into 'bind-9.18'
Tom Krizek [Wed, 1 Nov 2023 14:18:14 +0000 (14:18 +0000)] 
Merge branch 'tkrizek/perf-tests-shotgun-9.18' into 'bind-9.18'

[9.18] Add DNS Shotgun performance tests to nightly pipelines

See merge request isc-projects/bind9!8452

2 years agoUpdate release checklist
Tom Krizek [Wed, 25 Oct 2023 13:51:23 +0000 (15:51 +0200)] 
Update release checklist

Add a step to verify results of shotgun:* jobs.

(cherry picked from commit 322dfbf6a9aac06acd2ee7c7eafdd10d4fe9159a)

2 years agoci: trigger a DNS Shotgun performance test
Tom Krizek [Wed, 27 Sep 2023 13:48:31 +0000 (15:48 +0200)] 
ci: trigger a DNS Shotgun performance test

Run comparative performance tests against the latest released version of
the same branch. This is done for different protocols with an
appropriate load the server is expected to be able to handle.

Currently, the results need to be inspected manually, since a success of
the job doesn't indicate there is no issue. Instead, the job provides an
URL to an overview with latency, memory and CPU charts which display the
test results with the current code against the reference version. There
should be no major unexplained and reproducible differences in the
charts.

(cherry picked from commit c7fcb1ca6055ac6796e6035f3939814f841a51fc)

2 years agoutil: script to get DNS Shotgun pipeline results
Tom Krizek [Wed, 27 Sep 2023 15:41:26 +0000 (17:41 +0200)] 
util: script to get DNS Shotgun pipeline results

The shotgun performance tests are executed in a different repository, in
a couple of different pipelines. To hide away the complexity, this
script takes the pipeline ID of the triggered pipeline and then takes
care of the rest - waits for the pipeline to finish, locates the child
pipeline and the relevant results. The output from this script is a
convenient link to the charts with the results once they're available.

GitLab also has a mechanism which can wait for another pipeline.
However, it can't be utilized here, since there are variables which
need to be passed in when the pipeline is triggered (like protocol to be
tested, load, runtime etc.). This isn't currently supported by the
GitLab feature.

(cherry picked from commit ff32421a64f1208687892ea8dbbbfd4c84fed028)

2 years agoci: move baseline version detection into separate job
Tom Krizek [Wed, 27 Sep 2023 13:26:10 +0000 (15:26 +0200)] 
ci: move baseline version detection into separate job

Multiple CI jobs may utilize a baseline version, i.e. the version that
the current code should be tested against when doing comparative
testing. To avoid repeating the non-trivial detection of the baseline
version, move it into a separate job which creates an environment file
that subsequent jobs may require via `needs` option. It is then possible
to use the variable(s) defined in the script section of the new job.

(cherry picked from commit ef4e2d296458367aa1628dee238bb534087792e4)

2 years agoMerge branch '4355-serve-stale-unexpected-recursion-9.18' into 'bind-9.18'
Matthijs Mekking [Tue, 31 Oct 2023 13:32:52 +0000 (13:32 +0000)] 
Merge branch '4355-serve-stale-unexpected-recursion-9.18' into 'bind-9.18'

[9.18] Don't ignore authoritative local zones when in serve-stale mode

See merge request isc-projects/bind9!8446

2 years agoAdd release note and CHANGES for #4355
Matthijs Mekking [Mon, 23 Oct 2023 12:38:47 +0000 (14:38 +0200)] 
Add release note and CHANGES for #4355

(cherry picked from commit ac19d43a328cc47e19f9843ab9318951d6a3eee2)

2 years agoDon't ignore auth zones when in serve-stale mode
Matthijs Mekking [Mon, 30 Oct 2023 18:33:19 +0000 (19:33 +0100)] 
Don't ignore auth zones when in serve-stale mode

When serve-stale is enabled and recursive resolution fails, the fallback
to lookup stale data always happens in the cache database. Any
authoritative data is ignored, and only information learned through
recursive resolution is examined.

If there is data in the cache that could lead to an answer, and this can
be just the root delegation, the resolver will iterate further, getting
closer to the answer that can be found by recursing down the root, and
eventually puts the final response in the cache.

Change the fallback to serve-stale to use 'query_getdb()', that finds
out the best matching database for the given query.

(cherry picked from commit 2322425016298a39d2e48153285aefdfecc9a510)

2 years agoTest case for issue #4355
Matthijs Mekking [Mon, 23 Oct 2023 11:52:12 +0000 (13:52 +0200)] 
Test case for issue #4355

Add a test case where serve-stale is enabled on a server that also
servers a local authoritative zone.

The particular case tests a lame delegation and checks if falling
back to serving stale data does not attempt to retrieve the query
by recursing from the root down.

(cherry picked from commit e196ba61682694c107d0a6cadf6255da550a69a2)

2 years agoMerge branch 'mnowak/openbsd-7.4-9.18' into 'bind-9.18'
Michal Nowak [Mon, 30 Oct 2023 12:18:34 +0000 (12:18 +0000)] 
Merge branch 'mnowak/openbsd-7.4-9.18' into 'bind-9.18'

[9.18] Add OpenBSD 7.4

See merge request isc-projects/bind9!8434

2 years agoAdd OpenBSD 7.4
Michal Nowak [Tue, 17 Oct 2023 14:31:51 +0000 (16:31 +0200)] 
Add OpenBSD 7.4

(cherry picked from commit f8733fc051fac18d5fd7959711c38cbcb8db6bb7)

2 years agoMerge branch '4393-only-declare-engine-when-used' into 'bind-9.18'
Mark Andrews [Fri, 27 Oct 2023 05:56:25 +0000 (05:56 +0000)] 
Merge branch '4393-only-declare-engine-when-used' into 'bind-9.18'

Resolve "error: variable 'engine' set but not used on OpenBSD 7.4"

See merge request isc-projects/bind9!8436

2 years agoOnly declare 'engine' if it is used
Mark Andrews [Thu, 26 Oct 2023 23:49:38 +0000 (10:49 +1100)] 
Only declare 'engine' if it is used

Move the declaration of 'engine' within the appropriate #if/#endif
block.  Remove the UNUSED(engine) from the #else block.

2 years agoMerge branch 'aram/fix-lock-file-option-and--X-argument-issues-9.18' into 'bind-9.18'
Arаm Sаrgsyаn [Thu, 26 Oct 2023 13:49:30 +0000 (13:49 +0000)] 
Merge branch 'aram/fix-lock-file-option-and--X-argument-issues-9.18' into 'bind-9.18'

[9.18] Fix assertion failure when using -X none and lock-file in configuration

See merge request isc-projects/bind9!8433

2 years agoDo not warn about lock-file option change when -X is used
Aram Sargsyan [Thu, 26 Oct 2023 12:28:25 +0000 (12:28 +0000)] 
Do not warn about lock-file option change when -X is used

When -X is used the 'lock-file' option change detection condition
is invalid, because it compares the 'lock-file' option's value to
the '-X' argument's value instead of the older 'lock-file' option
value (which was ignored because of '-X').

Don't warn about changing 'lock-file' option if '-X' is used.

(cherry picked from commit 41945b32d76c99e18c697d03ebc039091386667c)

2 years agoFix an invalid condition check when detecting a lock-file change
Aram Sargsyan [Thu, 26 Oct 2023 12:24:17 +0000 (12:24 +0000)] 
Fix an invalid condition check when detecting a lock-file change

It is obvious that the '!cfg_obj_asstring(obj)' check should be
'cfg_obj_asstring(obj)' instead, because it is an AND logic chain
which further uses 'obj' as a string.

Fix the error.

(cherry picked from commit bc891e749fe361caeb7d7ca5208ebf1e1f4f02ac)

2 years agoFix assertion failure when using -X none and lock-file in configuration
Aram Sargsyan [Thu, 26 Oct 2023 12:21:57 +0000 (12:21 +0000)] 
Fix assertion failure when using -X none and lock-file in configuration

When 'lock-file <lockfile>' is used in configuration at the same time
as using '-X none' in 'named' invocation, there is an invalid
logic that would lead to a isc_mem_strdup() call on a NULL value.

Also, contradicting to ARM, 'lock-file none' is overriding the '-X'
argument.

Fix the overall logic, and make sure that the '-X' takes precedence to
'lock-file'.

(cherry picked from commit fc2dd0939002b1edf7ced4b653c9d6640576a213)

2 years agoMerge branch '4386-fix-assertion-failure-when-using--X-named-option-9.18' into 'bind...
Ondřej Surý [Thu, 26 Oct 2023 12:07:54 +0000 (12:07 +0000)] 
Merge branch '4386-fix-assertion-failure-when-using--X-named-option-9.18' into 'bind-9.18'

[9.18] Fix assertion failure when using -X and lock-file in configuration

See merge request isc-projects/bind9!8430

2 years agoAdd CHANGES and release note for [GL #4386]
Ondřej Surý [Thu, 26 Oct 2023 08:59:53 +0000 (10:59 +0200)] 
Add CHANGES and release note for [GL #4386]

(cherry picked from commit 8294a43acfc2e796be8bee3e7e311162e6a4047d)

2 years agoFix assertion failure when using -X and lock-file in configuration
Ondřej Surý [Thu, 26 Oct 2023 08:54:28 +0000 (10:54 +0200)] 
Fix assertion failure when using -X and lock-file in configuration

When 'lock-file <lockfile1>' was used in configuration at the same time
as using `-X <lockfile2>` in `named` invocation, there was an invalid
logic that would lead to a double isc_mem_strdup() call on the
<lockfile2> value.

Skip the second allocation if `lock-file` is being used in
configuration, so the <lockfile2> is used only single time.

(cherry picked from commit 4f68def5e966f0d359833b64837e25f0cb60fb6a)

2 years agoMerge branch 'tkrizek/shfmt-9.18' into 'bind-9.18'
Tom Krizek [Thu, 26 Oct 2023 11:59:05 +0000 (11:59 +0000)] 
Merge branch 'tkrizek/shfmt-9.18' into 'bind-9.18'

[9.18] Enforce shell script codestyle with shfmt

See merge request isc-projects/bind9!8429

2 years agoIgnore shell script formatting in git blame
Tom Krizek [Tue, 24 Oct 2023 12:55:07 +0000 (14:55 +0200)] 
Ignore shell script formatting in git blame

(cherry picked from commit c8fb0b48e06e3f32a71643a9d567d8640dbd4c67)

2 years agoAdd editorconfig file for shell style
Tom Krizek [Wed, 25 Oct 2023 08:14:12 +0000 (10:14 +0200)] 
Add editorconfig file for shell style

(cherry picked from commit bebdfa13be9737dba5e9f12ac18b14f1e4583dbb)

2 years agoRun shfmt in CI
Tom Krizek [Tue, 24 Oct 2023 12:56:06 +0000 (14:56 +0200)] 
Run shfmt in CI

Ensure our shell script format stays consistent in the future.

(cherry picked from commit b6505ff5734d0721d83369161e5c74a637982a5c)

2 years agoReformat shell scripts with shfmt
Tom Krizek [Thu, 26 Oct 2023 11:05:00 +0000 (13:05 +0200)] 
Reformat shell scripts with shfmt

All changes in this commit were automated using the command:

shfmt -w -i 2 -ci -bn . $(find . -name "*.sh.in")

By default, only *.sh and files without extension are checked, so
*.sh.in files have to be added additionally. (See mvdan/sh#944)

(manually replayed commit 4cb8b13987b930952238cc88e84272b8cf911933)

2 years agoMerge branch '4387-lock-file-is-deleted-on-exit-even-if-lock-acquisition-failed-bind...
Mark Andrews [Thu, 26 Oct 2023 07:47:14 +0000 (07:47 +0000)] 
Merge branch '4387-lock-file-is-deleted-on-exit-even-if-lock-acquisition-failed-bind-9.18' into 'bind-9.18'

[9.18] Resolve "lock file is deleted on exit even if lock acquisition failed"

See merge request isc-projects/bind9!8424

2 years agoAdd release note for [GL #4387]
Mark Andrews [Thu, 26 Oct 2023 05:14:02 +0000 (16:14 +1100)] 
Add release note for [GL #4387]

(cherry picked from commit c1b8279ebbdc7f80857feef8a67037e6a7d75131)

2 years agoAdd CHANGES note for [GL #4387]
Mark Andrews [Thu, 26 Oct 2023 04:07:58 +0000 (15:07 +1100)] 
Add CHANGES note for [GL #4387]

(cherry picked from commit a8613372c95bf9c8608dd1bf4c67f2089be89ba7)

2 years agoCheck that the lock file was not removed too early
Mark Andrews [Thu, 26 Oct 2023 04:07:58 +0000 (15:07 +1100)] 
Check that the lock file was not removed too early

When named fails to starts due to not being able to obtain
a lock on the lock file that lock file should remain.  Check
that the lock file exists before and after the attempt to
start a second instance of named.

(cherry picked from commit 811c9ee7d17927b534f9c83b20395389e2d145b2)

2 years agoOnly remove the lock file if we managed to lock it
Mark Andrews [Thu, 26 Oct 2023 03:50:43 +0000 (14:50 +1100)] 
Only remove the lock file if we managed to lock it

The lock file was being removed when we hadn't successfully locked
it which defeated the purpose of the lockfile.  Adjust cleanup_lockfile
such that it only unlinks the lockfile if we have successfully locked
the lockfile and it is still active (lockfile != NULL).

(cherry picked from commit b9c789b8b34a45a1572590a9ef4c8aa1306b4c63)

2 years agoMerge branch '4381-assert-in-dns__catz_update_cb-on-shutdown-9.18' into 'bind-9.18'
Arаm Sаrgsyаn [Mon, 23 Oct 2023 11:08:16 +0000 (11:08 +0000)] 
Merge branch '4381-assert-in-dns__catz_update_cb-on-shutdown-9.18' into 'bind-9.18'

[9.18] Resolve "Assertion failure in dns__catz_update_cb() on shutdown"

See merge request isc-projects/bind9!8413

2 years agoAdd a CHANGES note for [GL #4381]
Aram Sargsyan [Fri, 20 Oct 2023 10:55:14 +0000 (10:55 +0000)] 
Add a CHANGES note for [GL #4381]

(cherry picked from commit 598107f1c27e50b841688498d95da2ba71192e90)

2 years agoFix shutdown races in catzs
Aram Sargsyan [Fri, 20 Oct 2023 10:45:35 +0000 (10:45 +0000)] 
Fix shutdown races in catzs

The dns__catz_update_cb() does not expect that 'catzs->zones'
can become NULL during shutdown.

Add similar checks in the dns__catz_update_cb() and dns_catz_zone_get()
functions to protect from such a case. Also add an INSIST in the
dns_catz_zone_add() function to explicitly state that such a case
is not expected there, because that function is called only during a
reconfiguration.

(cherry picked from commit 4eb4fa288cfdfed30cd3d930874f73970f1ca5c0)

2 years agoMerge branch 'mnowak/drop-ubuntu-bionic' into 'bind-9.18'
Michal Nowak [Mon, 23 Oct 2023 09:52:13 +0000 (09:52 +0000)] 
Merge branch 'mnowak/drop-ubuntu-bionic' into 'bind-9.18'

Drop Ubuntu 18.04 "bionic"

See merge request isc-projects/bind9!8365

2 years agoDrop Ubuntu 18.04 "bionic"
Michal Nowak [Tue, 10 Oct 2023 11:59:38 +0000 (13:59 +0200)] 
Drop Ubuntu 18.04 "bionic"

Ubuntu 18.04 LTS (Bionic Beaver) is EOL.

Move gcc:bionic:amd64-specific CFLAGS and EXTRA_CONFIGURE to
gcc:jammy:amd64.

2 years agoMerge branch '4152-reproducer-stack-exhaustion-9.18' into 'bind-9.18'
Michal Nowak [Fri, 20 Oct 2023 14:56:57 +0000 (14:56 +0000)] 
Merge branch '4152-reproducer-stack-exhaustion-9.18' into 'bind-9.18'

[9.18] Add test for CVE-2023-3341

See merge request isc-projects/bind9!8411

2 years agoAdd test for CVE-2023-3341
Michal Nowak [Wed, 12 Jul 2023 08:26:53 +0000 (10:26 +0200)] 
Add test for CVE-2023-3341

(cherry picked from commit 7d1834b250bde423e3a0b255b5ed75f0417792e6)

2 years agoMerge branch '4260-adjust-udp-refresh-timeouts-bind-9.18' into 'bind-9.18'
Mark Andrews [Fri, 20 Oct 2023 00:45:26 +0000 (00:45 +0000)] 
Merge branch '4260-adjust-udp-refresh-timeouts-bind-9.18' into 'bind-9.18'

[9.18] Adjust UDP zone maintenance timeouts

See merge request isc-projects/bind9!8405

2 years agoadd CHANGES for [GL #4260]
Mark Andrews [Wed, 16 Aug 2023 06:29:46 +0000 (16:29 +1000)] 
add CHANGES for [GL #4260]

(cherry picked from commit 1a9791b4d81af33ae838fe54b9f32e5c04c7e35f)

2 years agoAdjust UDP timeouts used in zone maintenance
Mark Andrews [Wed, 16 Aug 2023 04:40:12 +0000 (14:40 +1000)] 
Adjust UDP timeouts used in zone maintenance

Drop timeout before resending a UDP request from 15 seconds to 5
seconds and add 1 second to the total time to allow for the reply
to the third request to arrive.  This will speed up the time it
takes for named to recover from a lost packet when refreshing a
zone and for it to determine that a primary is down.

(cherry picked from commit 29f399797db658c4bd7835b1592225dff2e6ef8e)

2 years agoMerge branch '4378-uv_sleep-wrapper-misses-parentheses-causing-unit-test-hang-bind...
Mark Andrews [Fri, 20 Oct 2023 00:05:31 +0000 (00:05 +0000)] 
Merge branch '4378-uv_sleep-wrapper-misses-parentheses-causing-unit-test-hang-bind-9.18' into 'bind-9.18'

[9.18] Resolve "uv_sleep wrapper misses parentheses, causing unit test hang"

See merge request isc-projects/bind9!8404

2 years agoAdd parentheses around macro arguement 'msec'
Mark Andrews [Thu, 19 Oct 2023 23:30:48 +0000 (10:30 +1100)] 
Add parentheses around macro arguement 'msec'

The is needed to ensure that the multiplication is correctly done.
This was reported by Jinmei Tatuya.

2 years agoMerge branch 'mnowak/llvm-17-9.18' into 'bind-9.18'
Michal Nowak [Wed, 18 Oct 2023 07:42:36 +0000 (07:42 +0000)] 
Merge branch 'mnowak/llvm-17-9.18' into 'bind-9.18'

[9.18] Update clang to version 17

See merge request isc-projects/bind9!8398

2 years agoUpdate the source code formatting using clang-format-17
Michal Nowak [Tue, 10 Oct 2023 16:07:29 +0000 (18:07 +0200)] 
Update the source code formatting using clang-format-17

2 years agoUpdate clang to version 17
Michal Nowak [Tue, 10 Oct 2023 13:10:00 +0000 (15:10 +0200)] 
Update clang to version 17

(cherry picked from commit 625a4ffc7a194243db8bc4661c92a45f52f1874f)

2 years agoMerge branch '4368-callback-prototype-mismatch' into 'bind-9.18'
Mark Andrews [Tue, 17 Oct 2023 22:06:16 +0000 (22:06 +0000)] 
Merge branch '4368-callback-prototype-mismatch' into 'bind-9.18'

Resolve "tcp_noresponse check fails with LLVM 17"

See merge request isc-projects/bind9!8394

2 years agoFix callback to match prototype
Mark Andrews [Tue, 17 Oct 2023 06:28:59 +0000 (17:28 +1100)] 
Fix callback to match prototype

noop_accept_cb triggers an undefined behaviour failure with LLVM 17.
The return type mismatched the prototype.  Also return ISC_R_SUCCESS
instead of 0.

2 years agoMerge branch '4365-update-dangerfile-py-to-know-about-cve-bind-9.18' into 'bind-9.18'
Mark Andrews [Tue, 17 Oct 2023 02:51:34 +0000 (02:51 +0000)] 
Merge branch '4365-update-dangerfile-py-to-know-about-cve-bind-9.18' into 'bind-9.18'

[9.18] Resolve "Update dangerfile.py to know about `:cve:`"

See merge request isc-projects/bind9!8391