]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
2 years agoUpdate Sphinx version used for documentation build
Petr Špaček [Thu, 18 Apr 2024 10:46:13 +0000 (12:46 +0200)] 
Update Sphinx version used for documentation build

2 years agoMerge branch 'ondrej-offload-statschannel' into 'main'
Ondřej Surý [Thu, 18 Apr 2024 08:56:06 +0000 (08:56 +0000)] 
Merge branch 'ondrej-offload-statschannel' into 'main'

Offload the isc_http response processing to worker thread

Closes #4680

See merge request isc-projects/bind9!7647

2 years agoAdd CHANGES and release note for [GL #4680]
Ondřej Surý [Tue, 16 Apr 2024 15:37:30 +0000 (17:37 +0200)] 
Add CHANGES and release note for [GL #4680]

2 years agoSupress the leak detection in xmlGetGlobalState
Ondřej Surý [Wed, 17 Apr 2024 18:44:32 +0000 (20:44 +0200)] 
Supress the leak detection in xmlGetGlobalState

The xmlGetGlobalState allocates per-thread memory that is not properly
cleaned up when the libxml2 is used from offloaded threads.  Add the
function the the LeakSanitizer suppression list.

2 years agoUse xmlMemSetup() instead of xmlGcMemSetup()
Ondřej Surý [Wed, 17 Apr 2024 17:58:16 +0000 (19:58 +0200)] 
Use xmlMemSetup() instead of xmlGcMemSetup()

Since we don't have a specialized function for "atomic" allocations,
it's better to just use xmlMemSetup() instead of xmlGcMemSetup()
according to this:

https://mail.gnome.org/archives/xml/2007-August/msg00032.html

2 years agoOffload the isc_http response processing to worker thread
Ondřej Surý [Fri, 3 Mar 2023 15:59:21 +0000 (16:59 +0100)] 
Offload the isc_http response processing to worker thread

Prepare the statistics channel data in the offloaded worker thread, so
the networking thread is not blocked by the process gathering data from
various data structures.  Only the netmgr send is then run on the
networkin thread when all the data is already there.

2 years agoMerge branch '4554-dnssec-policy-jitter' into 'main' 4371-all-the-things-that-need-to-be-fixed-before-9-20
Matthijs Mekking [Thu, 18 Apr 2024 08:11:18 +0000 (08:11 +0000)] 
Merge branch '4554-dnssec-policy-jitter' into 'main'

Add signatures-jitter option

Closes #4554

See merge request isc-projects/bind9!8686

2 years agoAdd checkconf check for signatures-jitter
Matthijs Mekking [Tue, 16 Apr 2024 13:49:13 +0000 (15:49 +0200)] 
Add checkconf check for signatures-jitter

Having a value higher than signatures-validity does not make sense
and should be treated as a configuration error.

2 years agoAdd release notes and CHANGES for #4554
Matthijs Mekking [Thu, 1 Feb 2024 08:50:40 +0000 (09:50 +0100)] 
Add release notes and CHANGES for #4554

Mention the new signature jitter option.

2 years agoImplement signature jitter
Matthijs Mekking [Thu, 1 Feb 2024 08:34:33 +0000 (09:34 +0100)] 
Implement signature jitter

When calculating the RRSIG validity, jitter is now derived from the
config option rather than from the refresh value.

2 years agoRefactor code that calculates signature validity
Matthijs Mekking [Wed, 31 Jan 2024 16:31:16 +0000 (17:31 +0100)] 
Refactor code that calculates signature validity

There are three code blocks that are (almost) similar, refactor it
to one function.

2 years agoUpdate autosign test to use signatures-jitter
Matthijs Mekking [Thu, 1 Feb 2024 15:33:21 +0000 (16:33 +0100)] 
Update autosign test to use signatures-jitter

Now that we have an option to configure jitter, use it in system tests
that test jitter.

2 years agoAdd signatures-jitter option
Matthijs Mekking [Wed, 31 Jan 2024 15:52:32 +0000 (16:52 +0100)] 
Add signatures-jitter option

Add an option to speficy signatures jitter.

2 years agoMerge tag 'v9.19.23'
Petr Špaček [Thu, 18 Apr 2024 07:21:47 +0000 (09:21 +0200)] 
Merge tag 'v9.19.23'

2 years agoMerge branch '4671-calling-dns_qpkey_toname-twice-fails' into 'main'
Mark Andrews [Thu, 18 Apr 2024 01:05:42 +0000 (01:05 +0000)] 
Merge branch '4671-calling-dns_qpkey_toname-twice-fails' into 'main'

Resolve "Calling dns_qpkey_toname twice fails."

Closes #4671

See merge request isc-projects/bind9!8948

2 years agoCheck that name is properly reset by dns_qpkey_toname
Mark Andrews [Wed, 17 Apr 2024 00:00:33 +0000 (10:00 +1000)] 
Check that name is properly reset by dns_qpkey_toname

2 years agodns_qpkey_toname failed to reset name correctly
Mark Andrews [Tue, 16 Apr 2024 23:40:05 +0000 (09:40 +1000)] 
dns_qpkey_toname failed to reset name correctly

This could lead to a mismatch between name->length and the rest
of the name structure.

2 years agoMerge branch '4475-use-atomics-to-access-trust-access-in-dns_ncache' into 'main'
Ondřej Surý [Wed, 17 Apr 2024 19:18:35 +0000 (19:18 +0000)] 
Merge branch '4475-use-atomics-to-access-trust-access-in-dns_ncache' into 'main'

Use atomic operations to access the trust byte in ncache data

Closes #4475

See merge request isc-projects/bind9!8946

2 years agoAdd CHANGES note for [GL #4475]
Mark Andrews [Mon, 15 Jan 2024 01:02:56 +0000 (12:02 +1100)] 
Add CHANGES note for [GL #4475]

2 years agoUse atomic operations to access the trust byte in ncache data
Ondřej Surý [Thu, 11 Apr 2024 01:16:12 +0000 (03:16 +0200)] 
Use atomic operations to access the trust byte in ncache data

Protect the access to the trust byte in the ncache data with relaxed
atomic operation to mimick the current behaviour.  This will teach
TSAN that the concurrent access is fine.

2 years agoOnly copy the name data after we know its actual length
Mark Andrews [Mon, 15 Jan 2024 00:47:13 +0000 (11:47 +1100)] 
Only copy the name data after we know its actual length

This prevents TSAN errors with the ncache code where the trust byte
access needs to be protected by a lock.  The old code copied the
entire region before determining where the name ended.  We now
determine where the name ends then copy just that data and in doing
so avoid reading the trust byte.

2 years agoMerge branch '4434-use-nm-tests-timeouts-for-the-dispatch-test' into 'main'
Artem Boldariev [Mon, 15 Apr 2024 14:25:13 +0000 (14:25 +0000)] 
Merge branch '4434-use-nm-tests-timeouts-for-the-dispatch-test' into 'main'

dispatch_test: use the NM tests timeouts

Closes #4434

See merge request isc-projects/bind9!8923

2 years agodispatch_test: use the NM tests timeouts
Artem Boldariev [Thu, 28 Mar 2024 14:22:11 +0000 (16:22 +0200)] 
dispatch_test: use the NM tests timeouts

This commit makes the dispatch_test use the same timeouts that network
manager tests. We do that because the old values appear to be too
small for our heavy loaded CI machines, leading to spurious failures
on them. The network manager tests are much more stable in this
situation and they use somewhat larger timeout values.

We use a smaller connection timeouts for the tests which are expected
to timeout to not wait for too long.

2 years agoMerge branch '4669-error-sending-notify-to-ipv6-secondary' into 'main'
Mark Andrews [Fri, 12 Apr 2024 00:16:01 +0000 (00:16 +0000)] 
Merge branch '4669-error-sending-notify-to-ipv6-secondary' into 'main'

Wrong source address used for IPv6 notify messages

Closes #4669

See merge request isc-projects/bind9!8935

2 years agoAdd CHANGES note for [GL #4669]
Mark Andrews [Wed, 3 Apr 2024 23:43:29 +0000 (10:43 +1100)] 
Add CHANGES note for [GL #4669]

2 years agoCheck that notify message was sent over IPv6
Mark Andrews [Thu, 4 Apr 2024 00:24:59 +0000 (11:24 +1100)] 
Check that notify message was sent over IPv6

2 years agoWrong source address used for IPv6 notify messages
Mark Andrews [Wed, 3 Apr 2024 23:35:23 +0000 (10:35 +1100)] 
Wrong source address used for IPv6 notify messages

The source address field of 'newnotify' was not updated from the
default (0.0.0.0) when the destination address was an IPv6 address.
This resulted in the messages failing to be sent.  Set the source
address to :: when the destination address is an IPv6 address.

2 years agoMerge branch 'pspacek/releng-changes' into 'main'
Petr Špaček [Thu, 11 Apr 2024 15:15:49 +0000 (15:15 +0000)] 
Merge branch 'pspacek/releng-changes' into 'main'

Move Release issue template to BIND QA repo

See merge request isc-projects/bind9!8944

2 years agoMove Release issue template to BIND QA repo
Petr Špaček [Wed, 10 Apr 2024 16:34:52 +0000 (12:34 -0400)] 
Move Release issue template to BIND QA repo

It's easier to maintain the template in a single place together with
the script used to in the template.

In future use script bind9/releng/create_checklist.py
from isc-private/bind-qa to generate release issue.

2 years agoMerge branch 'each-dupwithoffsets-cannot-fail' into 'main'
Evan Hunt [Thu, 11 Apr 2024 03:25:07 +0000 (03:25 +0000)] 
Merge branch 'each-dupwithoffsets-cannot-fail' into 'main'

dns_name_dupwithoffsets() cannot fail

See merge request isc-projects/bind9!8945

2 years agodns_name_dupwithoffsets() cannot fail
Evan Hunt [Tue, 12 Mar 2024 21:38:18 +0000 (14:38 -0700)] 
dns_name_dupwithoffsets() cannot fail

this function now always returns success; change it to void and
clean up its callers.

2 years agoMerge branch 'pspacek/set-up-version-and-release-notes-for-bind-9.19.24' into 'main'
Petr Špaček [Thu, 4 Apr 2024 19:15:28 +0000 (19:15 +0000)] 
Merge branch 'pspacek/set-up-version-and-release-notes-for-bind-9.19.24' into 'main'

Set up version and release notes for BIND 9.19.24

See merge request isc-projects/bind9!8939

2 years agoSet up release notes for BIND 9.19.24
Petr Špaček [Thu, 4 Apr 2024 17:35:03 +0000 (19:35 +0200)] 
Set up release notes for BIND 9.19.24

2 years agoUpdate BIND version to 9.19.24-dev
Petr Špaček [Thu, 4 Apr 2024 17:35:03 +0000 (19:35 +0200)] 
Update BIND version to 9.19.24-dev

2 years agoUpdate BIND version for release v9.19.23
Petr Špaček [Tue, 2 Apr 2024 16:08:00 +0000 (18:08 +0200)] 
Update BIND version for release

2 years agoAdd a CHANGES marker
Petr Špaček [Tue, 2 Apr 2024 16:06:04 +0000 (18:06 +0200)] 
Add a CHANGES marker

2 years agoMerge branch 'pspacek/prepare-documentation-for-bind-9.19.23' into 'v9.19.23-release'
Petr Špaček [Tue, 2 Apr 2024 16:04:47 +0000 (16:04 +0000)] 
Merge branch 'pspacek/prepare-documentation-for-bind-9.19.23' into 'v9.19.23-release'

Prepare documentation for BIND 9.19.23

See merge request isc-private/bind9!677

2 years agoTweak and reword release notes
Suzanne Goldlust [Tue, 2 Apr 2024 15:26:16 +0000 (15:26 +0000)] 
Tweak and reword release notes

2 years agoAdd release note for GL #4622 and #4652
Petr Špaček [Tue, 2 Apr 2024 14:20:18 +0000 (16:20 +0200)] 
Add release note for GL #4622 and #4652

2 years agoAdd release note for GL #4614
Petr Špaček [Tue, 2 Apr 2024 14:16:28 +0000 (16:16 +0200)] 
Add release note for GL #4614

2 years agoAdd release note for GL #4552
Petr Špaček [Tue, 2 Apr 2024 13:20:00 +0000 (15:20 +0200)] 
Add release note for GL #4552

2 years agoPrepare release notes for BIND 9.19.23
Petr Špaček [Thu, 28 Mar 2024 08:00:16 +0000 (09:00 +0100)] 
Prepare release notes for BIND 9.19.23

2 years agoMerge branch '4446-deprecate-fixed-rrset-order' into 'main'
Ondřej Surý [Tue, 2 Apr 2024 15:21:10 +0000 (15:21 +0000)] 
Merge branch '4446-deprecate-fixed-rrset-order' into 'main'

Deprecate fixed value for the rrset-order option

Closes #4446

See merge request isc-projects/bind9!8808

2 years agoAdd CHANGES and release note for [GL #4446]
Ondřej Surý [Fri, 1 Mar 2024 08:36:38 +0000 (09:36 +0100)] 
Add CHANGES and release note for [GL #4446]

2 years agoDeprecate fixed value for the rrset-order option
Ondřej Surý [Fri, 1 Mar 2024 08:34:32 +0000 (09:34 +0100)] 
Deprecate fixed value for the rrset-order option

Mark the "fixed" value for the "rrset-order" option deprecated, so we
can remove it in the future.

2 years agoMerge branch '4593-deprecate-sortlist' into 'main'
Ondřej Surý [Tue, 2 Apr 2024 15:13:26 +0000 (15:13 +0000)] 
Merge branch '4593-deprecate-sortlist' into 'main'

Deprecate sortlist option

Closes #4593

See merge request isc-projects/bind9!8807

2 years agoAdd CHANGES and release note for [GL #4593]
Ondřej Surý [Fri, 1 Mar 2024 07:49:53 +0000 (08:49 +0100)] 
Add CHANGES and release note for [GL #4593]

2 years agoDeprecate sortlist option
Ondřej Surý [Fri, 1 Mar 2024 07:45:06 +0000 (08:45 +0100)] 
Deprecate sortlist option

Mark the sortlist option deprecated, so we can remove it in the
future.

2 years agoMerge branch '4654-validator-invalid-name' into 'main'
Ondřej Surý [Tue, 2 Apr 2024 14:22:55 +0000 (14:22 +0000)] 
Merge branch '4654-validator-invalid-name' into 'main'

Rename and fix dns_validator_destroy()

Closes #4654

See merge request isc-projects/bind9!8933

2 years agoAdd a CHANGES note for [GL #4654]
Aram Sargsyan [Tue, 2 Apr 2024 10:43:35 +0000 (10:43 +0000)] 
Add a CHANGES note for [GL #4654]

2 years agoRename and fix dns_validator_destroy() to dns_validator_shutdown()
Aram Sargsyan [Mon, 25 Mar 2024 14:35:20 +0000 (14:35 +0000)] 
Rename and fix dns_validator_destroy() to dns_validator_shutdown()

Since the dns_validator_destroy() function doesn't guarantee that
it destroys the validator, rename it to dns_validator_shutdown()
and require explicit dns_validator_detach() to follow.

Enforce the documented function requirement that the validator must
be completed when the function is called.

Make sure to set val->name to NULL when the function is called,
so that the owner of the validator may destroy the name, even if
the validator is not destroyed immediately. This should be safe,
because the name can be used further only for logging by the
offloaded work callbacks when they detect that the validator is
already canceled/complete, and the logging function has a condition
to use the name only when it is non-NULL.

2 years agoRemove a redundant log message and a comment
Aram Sargsyan [Mon, 25 Mar 2024 14:20:24 +0000 (14:20 +0000)] 
Remove a redundant log message and a comment

If val->result is not ISC_R_SUCCESS, a similar message is logged
further down in the function. Remove the redundant log message.

Also remove an unnecessary code comment line.

2 years agoMerge branch 'each-isc-loop' into 'main'
Ondřej Surý [Tue, 2 Apr 2024 09:49:06 +0000 (09:49 +0000)] 
Merge branch 'each-isc-loop' into 'main'

use a thread-local variable to get the current running loop

See merge request isc-projects/bind9!8911

2 years agoMerge branch '4652-dname-assertion' into 'main'
Ondřej Surý [Tue, 2 Apr 2024 08:36:08 +0000 (08:36 +0000)] 
Merge branch '4652-dname-assertion' into 'main'

fix crash from NS target below DNAME

Closes #4652

See merge request isc-projects/bind9!8931

2 years agocomplete removal of isc_loop_current()
Evan Hunt [Tue, 26 Mar 2024 09:13:53 +0000 (02:13 -0700)] 
complete removal of isc_loop_current()

isc_loop() can now take its place.

This also requires changes to the test harness - instead of running the
setup and teardown outside of th main loop, we now schedule the setup
and teardown to run on the loop (via isc_loop_setup() and
isc_loop_teardown()) - this is needed because the new the isc_loop()
call has to be run on the active event loop, but previously the
isc_loop_current() (and the variants like isc_loop_main()) would work
even outside of the loop because it needed just isc_tid() to work, but
not the full loop (which was mainly true for the main thread).

2 years agouse a thread-local variable to get the current running loop
Evan Hunt [Tue, 26 Mar 2024 07:13:45 +0000 (00:13 -0700)] 
use a thread-local variable to get the current running loop

if we had a method to get the running loop, similar to how
isc_tid() gets the current thread ID, we can simplify loop
and loopmgr initialization.

remove most uses of isc_loop_current() in favor of isc_loop().
in some places where that was the only reason to pass loopmgr,
remove loopmgr from the function parameters.

2 years agoAdd CHANGES note for [GL #4652]
Evan Hunt [Mon, 1 Apr 2024 20:47:17 +0000 (13:47 -0700)] 
Add CHANGES note for [GL #4652]

2 years agoupdate foundname when detecting a zonecut above qname
Evan Hunt [Mon, 1 Apr 2024 20:41:39 +0000 (13:41 -0700)] 
update foundname when detecting a zonecut above qname

an assertion could be triggered in the QPDB cache if a DNAME
was found above a queried NS, because the 'foundname' value was
not correctly updated to point to the zone cut.

the same mistake existed in qpzone and has been fixed there as well.

2 years agoadd a test for handling illegal NS below DNAME
Evan Hunt [Mon, 1 Apr 2024 20:37:57 +0000 (13:37 -0700)] 
add a test for handling illegal NS below DNAME

an assertion could be triggered in the QPDB cache if an NS
was encountered that pointed to a name below a DNAME.

2 years agoMerge branch 'ondrej/placeholder' into 'main'
Ondřej Surý [Tue, 2 Apr 2024 07:18:53 +0000 (07:18 +0000)] 
Merge branch 'ondrej/placeholder' into 'main'

Add placeholder

See merge request isc-projects/bind9!8932

2 years agoAdd placeholder
Ondřej Surý [Tue, 2 Apr 2024 07:16:39 +0000 (09:16 +0200)] 
Add placeholder

2 years agoMerge branch 'michal/extract-changes-checks-to-a-separate-gitlab-ci-job' into 'main'
Michał Kępień [Fri, 29 Mar 2024 07:29:59 +0000 (07:29 +0000)] 
Merge branch 'michal/extract-changes-checks-to-a-separate-gitlab-ci-job' into 'main'

Extract CHANGES checks to a separate GitLab CI job

See merge request isc-projects/bind9!8918

2 years agoRestore consistency in YAML anchor names
Michał Kępień [Fri, 29 Mar 2024 07:27:49 +0000 (08:27 +0100)] 
Restore consistency in YAML anchor names

Commit a4e9ce500a42d596e64c477df66c9bcdd692b06b added "pipelines" to CI
job trigger lists without updating the names of the YAML anchors
containing those lists accordingly.  Update YAML anchor names so that
they are consistent with their own contents.

2 years agoDo not check CHANGES in pre-release pipelines
Michał Kępień [Fri, 29 Mar 2024 07:27:49 +0000 (08:27 +0100)] 
Do not check CHANGES in pre-release pipelines

Since pre-release testing is usually carried out for branches in which
CHANGES entries are intentionally malformed to prevent entry numbering
conflicts down the road, do not run the "changes" GitLab CI job in
pipelines that are triggered by a parent pipeline (which can currently
only be a pre-release testing pipeline) to prevent triggering job
failures that would be meaningless anyway.

2 years agoExtract CHANGES checks to a separate GitLab CI job
Michał Kępień [Fri, 29 Mar 2024 07:27:49 +0000 (08:27 +0100)] 
Extract CHANGES checks to a separate GitLab CI job

Checking the contents of the CHANGES file currently requires invoking
multiple shell scripts.  These invocations are conflated with those for
other test scripts in the "misc" GitLab CI job.  Extract the commands
checking the contents of the CHANGES file to a separate GitLab CI job,
"changes", to improve readability.  Remove similar checks for the
CHANGES.SE file altogether as they are only relevant for BIND -S and
therefore should not be present in an open source branch.

2 years agoMerge branch '4281-CVE-2023-5517-test' into 'main'
Michał Kępień [Thu, 28 Mar 2024 13:42:02 +0000 (13:42 +0000)] 
Merge branch '4281-CVE-2023-5517-test' into 'main'

[CVE-2023-5517] Check nxdomain-redirect against built-in RFC-1918 zone

Closes #4281

See merge request isc-projects/bind9!8919

2 years agoChecking nxdomain-redirect against built-in RFC-1918 zone
Mark Andrews [Mon, 9 Oct 2023 23:54:16 +0000 (10:54 +1100)] 
Checking nxdomain-redirect against built-in RFC-1918 zone

Check that RFC 1918 leak detection does not trigger an assertion
when nxdomain redirection is enabled in the server but not for the
RFC 1918 reverse namespace.

2 years agoMerge branch 'mnowak/freebsd-use-mit-kerberos5' into 'main'
Michal Nowak [Wed, 27 Mar 2024 08:15:26 +0000 (08:15 +0000)] 
Merge branch 'mnowak/freebsd-use-mit-kerberos5' into 'main'

Build FreeBSD with MIT Kerberos5 instead of Heimdal

See merge request isc-projects/bind9!8906

2 years agoBuild FreeBSD with MIT Kerberos5 instead of Heimdal
Michal Nowak [Fri, 22 Mar 2024 10:31:23 +0000 (11:31 +0100)] 
Build FreeBSD with MIT Kerberos5 instead of Heimdal

tsiggss system tests crash or are unstable with the base FreeBSD
(Heimdal-based) GSS-API.

2 years agoMerge branch 'mnowak/revert-05b09f2b5bb68a916288f56bf627babad4055b90' into 'main'
Michal Nowak [Mon, 25 Mar 2024 13:45:39 +0000 (13:45 +0000)] 
Merge branch 'mnowak/revert-05b09f2b5bb68a916288f56bf627babad4055b90' into 'main'

Revert "Work around a TSAN issue with newer kernels"

Closes #4649

See merge request isc-projects/bind9!8905

2 years agoRevert "Work around a TSAN issue with newer kernels"
Michal Nowak [Thu, 21 Mar 2024 13:06:00 +0000 (14:06 +0100)] 
Revert "Work around a TSAN issue with newer kernels"

This reverts commit 05b09f2b5bb68a916288f56bf627babad4055b90.

The workaround has been moved to the AMI image (isc-private/packer!10).

2 years agoMerge branch '4622-qp-hang-in-fix-iterator' into 'main'
Matthijs Mekking [Mon, 25 Mar 2024 10:53:36 +0000 (10:53 +0000)] 
Merge branch '4622-qp-hang-in-fix-iterator' into 'main'

Fix fix_iterator hang

Closes #4622 and #4632

See merge request isc-projects/bind9!8881

2 years agoFix fix_iterator hang
Matthijs Mekking [Tue, 19 Mar 2024 07:48:56 +0000 (08:48 +0100)] 
Fix fix_iterator hang

If there are no more previous leaves, it means the queried name
precedes the entire range of names in the database, so we should just
move the iterator one step back and return, instead of continuing our
search for the predecessor.

This is similar to an earlier bug fixed in an earlier commit:

    ea9a8cb392ff59438a911485742b220d40f24d6f

2 years agoAdd a test case for fix_iterator hang
Matthijs Mekking [Tue, 19 Mar 2024 08:45:59 +0000 (09:45 +0100)] 
Add a test case for fix_iterator hang

When fixing the iterator, when every leaf on this branch is greater
than the one we wanted we go back to the parent branch and iterate back
to the predecessor from that point.

But if there are no more previous leafs, it means the queried name
precedes the entire range of names in the database, so we would just
move the iterator one step back and continue from there.

This could end in a loop because the queried name precedes the entire
range of names and so none of those names are the predecessor of the
queried name.

2 years agoMerge branch 'pspacek/hazard-improvements' into 'main'
Petr Špaček [Thu, 21 Mar 2024 16:57:12 +0000 (16:57 +0000)] 
Merge branch 'pspacek/hazard-improvements' into 'main'

CI hazard improvements

See merge request isc-projects/bind9!8843

2 years agoWarn if security fixes are not marked for testing
Michał Kępień [Thu, 21 Mar 2024 14:45:25 +0000 (15:45 +0100)] 
Warn if security fixes are not marked for testing

2 years agoWarn about release notes without CHANGES entry
Petr Špaček [Thu, 7 Mar 2024 15:58:29 +0000 (16:58 +0100)] 
Warn about release notes without CHANGES entry

2 years agoDetect change in supported RR types and issue Hazard warning
Petr Špaček [Thu, 7 Mar 2024 15:41:46 +0000 (16:41 +0100)] 
Detect change in supported RR types and issue Hazard warning

2 years agoMerge branch '4605-re-enable-enginepkcs11-test' into 'main'
Tom Krizek [Thu, 21 Mar 2024 16:36:13 +0000 (16:36 +0000)] 
Merge branch '4605-re-enable-enginepkcs11-test' into 'main'

Re-enable enginepkcs11 system test

Closes #4605

See merge request isc-projects/bind9!8888

2 years agoMark the enginepkcs11 test as flaky
Tom Krizek [Wed, 20 Mar 2024 10:43:35 +0000 (11:43 +0100)] 
Mark the enginepkcs11 test as flaky

There are frequent intermittent failures due to "crypto failure".

2 years agoRe-enable enginepkcs11 system test
Tom Krizek [Mon, 26 Feb 2024 17:08:23 +0000 (18:08 +0100)] 
Re-enable enginepkcs11 system test

The condition in prereq.sh which attempts to match two string uses
integer equality operation. This results in an error, causing the
enginepkcs11 test to always be skipped. Use = operator for the string
comparison instead.

2 years agoMerge branch 'tkrizek/autosign-flaky' into 'main'
Tom Krizek [Thu, 21 Mar 2024 15:23:27 +0000 (15:23 +0000)] 
Merge branch 'tkrizek/autosign-flaky' into 'main'

Mark the autosign system test as flaky

Closes #4247 and #1565

See merge request isc-projects/bind9!8867

2 years agoMark the autosign system test as flaky
Tom Krizek [Thu, 14 Mar 2024 15:18:02 +0000 (16:18 +0100)] 
Mark the autosign system test as flaky

The autosign test uses sleep in many cases to wait for something to
happen. This inevitably leads to an instability that manifests in our
CI. Allow an automatic rerun of the test to improve its stability.

2 years agoMerge branch 'tkrizek/resolver-test-export-home' into 'main'
Tom Krizek [Thu, 21 Mar 2024 13:14:52 +0000 (13:14 +0000)] 
Merge branch 'tkrizek/resolver-test-export-home' into 'main'

Export variable in resolver system test

See merge request isc-projects/bind9!8799

2 years agoExport variable in resolver system test
Tom Krizek [Fri, 12 Jan 2024 14:03:53 +0000 (15:03 +0100)] 
Export variable in resolver system test

Variable assignment when calling subroutines might not be portable.
Notably, it doesn't work with FreeBSD shell, where the value of HOME
would be ignored in this case.

Since the commands are already executed in a subshell, export the HOME
variable to ensure it is properly handled in all shells.

2 years agoMerge branch 'michal/add-pipelines-to-ci-job-trigger-lists' into 'main'
Michał Kępień [Thu, 21 Mar 2024 11:29:53 +0000 (11:29 +0000)] 
Merge branch 'michal/add-pipelines-to-ci-job-trigger-lists' into 'main'

Add "pipelines" to CI job trigger lists

See merge request isc-projects/bind9!8884

2 years agoAdd "pipelines" to CI job trigger lists
Michał Kępień [Thu, 21 Mar 2024 11:29:21 +0000 (12:29 +0100)] 
Add "pipelines" to CI job trigger lists

To enable GitLab CI jobs in other projects to trigger pipelines in the
BIND 9 project using their CI_JOB_TOKEN, add "pipelines" to the relevant
GitLab CI job trigger lists.

2 years agoMerge branch '4649-work-around-a-tsan-issue-with-newer-kernels' into 'main'
Petr Špaček [Thu, 21 Mar 2024 07:59:46 +0000 (07:59 +0000)] 
Merge branch '4649-work-around-a-tsan-issue-with-newer-kernels' into 'main'

Work around a TSAN issue with newer kernels

Closes #4649

See merge request isc-projects/bind9!8893

2 years agoWork around a TSAN issue with newer kernels
Michał Kępień [Thu, 21 Mar 2024 05:47:29 +0000 (06:47 +0100)] 
Work around a TSAN issue with newer kernels

The ThreadSanitizer version currently available from Fedora 39
repositories is unable to cope with very high ASLR entropy, which is the
default in some recent Linux distributions [1].  This causes all
TSAN-enabled builds to fail on the affected systems with an error like:

    FATAL: ThreadSanitizer: unexpected memory mapping 0x7d00e0772000-0x7d00e0c00000

Work around the problem by reducing ASLR entropy for all TSAN-enabled
builds until the problem is resolved upstream.

[1] https://github.com/google/sanitizers/issues/1716

2 years agoMerge branch '4640-checkzone-in-system-test-leaks-queries' into 'main'
Mark Andrews [Thu, 21 Mar 2024 02:37:07 +0000 (02:37 +0000)] 
Merge branch '4640-checkzone-in-system-test-leaks-queries' into 'main'

Resolve "Checkzone in system test leaks queries"

Closes #4640

See merge request isc-projects/bind9!8870

2 years agoStop named-checkzone leaking test queries
Mark Andrews [Tue, 23 Nov 2021 01:27:23 +0000 (12:27 +1100)] 
Stop named-checkzone leaking test queries

2 years agoMerge branch '4580-add-resolver-arpa-to-the-built-in-empty-zones' into 'main'
Mark Andrews [Wed, 20 Mar 2024 21:51:24 +0000 (21:51 +0000)] 
Merge branch '4580-add-resolver-arpa-to-the-built-in-empty-zones' into 'main'

Resolve "Add resolver.arpa to the built in empty zones"

Closes #4580

See merge request isc-projects/bind9!8732

2 years agoAdd release note for [GL #4580]
Mark Andrews [Wed, 14 Feb 2024 05:37:49 +0000 (16:37 +1100)] 
Add release note for [GL #4580]

2 years agoAdd CHANGES entry for [GL #4580]
Mark Andrews [Wed, 14 Feb 2024 05:35:15 +0000 (16:35 +1100)] 
Add CHANGES entry for [GL #4580]

2 years agoAdd RESOLVER.ARPA to the built in empty zones
Mark Andrews [Wed, 14 Feb 2024 05:32:33 +0000 (16:32 +1100)] 
Add RESOLVER.ARPA to the built in empty zones

RFC 9462 adds RESOLVER.ARPA to the list of built in empty zones.

2 years agoMerge tag 'v9.19.22'
Michał Kępień [Wed, 20 Mar 2024 13:04:49 +0000 (14:04 +0100)] 
Merge tag 'v9.19.22'

2 years agoMerge branch 'michal/add-an-async-dns-server-for-use-in-system-tests' into 'main'
Michał Kępień [Wed, 20 Mar 2024 09:28:43 +0000 (09:28 +0000)] 
Merge branch 'michal/add-an-async-dns-server-for-use-in-system-tests' into 'main'

Add an async DNS server for use in system tests

See merge request isc-projects/bind9!8519

2 years agoMove conftest log initialization to conftest.py
Tom Krizek [Wed, 13 Mar 2024 17:18:42 +0000 (18:18 +0100)] 
Move conftest log initialization to conftest.py

Initializing the conftest logging upon importing the isctest package
isn't practical when there are standalone pieces which can be used
outside of the testing framework, such as the asyncdnsserver module.

2 years agoAdd an async DNS server for use in system tests
Michał Kępień [Wed, 20 Mar 2024 08:22:36 +0000 (09:22 +0100)] 
Add an async DNS server for use in system tests

Implement a new Python class, AsyncDnsServer, which can be used by
ans.py scripts placed in ansX/ system test subdirectories.  This enables
conveniently starting a feature-limited, non-standards-compliant, custom
DNS server instance.  It can read and serve zone files, but it is also
able to evaluate any user-provided query-processing logic, allowing
query responses to be changed, delayed, or dropped altogether.  These
are all actions commonly taken by custom DNS servers written in Python
that are used in BIND 9 system tests.  Having a single "base"
implementation of such a custom DNS server reduces code duplication,
improving test maintainability.

Co-authored-by: Tom Krizek <tkrizek@isc.org>
2 years agoMerge branch '4645-cid-488064-passing-null-pointer-version-to-maybe_update_recordsand...
Mark Andrews [Tue, 19 Mar 2024 22:41:35 +0000 (22:41 +0000)] 
Merge branch '4645-cid-488064-passing-null-pointer-version-to-maybe_update_recordsandsize-which-dereferences-it' into 'main'

Resolve "CID 488064: Passing null pointer "version" to "maybe_update_recordsandsize", which dereferences it"

Closes #4645 and #4646

See merge request isc-projects/bind9!8880