]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
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

2 years agoRemove remenants of cache support from qpzone.c
Mark Andrews [Tue, 19 Mar 2024 06:02:56 +0000 (17:02 +1100)] 
Remove remenants of cache support from qpzone.c

These where leading to Coverity errors being reported.

2 years agoMerge branch 'mnowak/pytest_rewrite_glue' into 'main'
Michal Nowak [Tue, 19 Mar 2024 19:16:53 +0000 (19:16 +0000)] 
Merge branch 'mnowak/pytest_rewrite_glue' into 'main'

Rewrite glue system test to pytest

See merge request isc-projects/bind9!8846

2 years agoUse bitwise operation to remove RD from default flags
Michal Nowak [Tue, 19 Mar 2024 11:35:48 +0000 (12:35 +0100)] 
Use bitwise operation to remove RD from default flags

2 years agoRewrite glue system test to pytest
Michal Nowak [Thu, 7 Mar 2024 13:58:38 +0000 (14:58 +0100)] 
Rewrite glue system test to pytest

Limit dnspython to version 2.0.0+
(https://github.com/rthalley/dnspython/pull/503), otherwise the test
fails with:

    E   AttributeError: module 'dns.edns' has no attribute 'OptionType'

2 years agoMerge branch 'mnowak/pytest_rewrite_masterfile' into 'main'
Michal Nowak [Tue, 19 Mar 2024 10:38:07 +0000 (10:38 +0000)] 
Merge branch 'mnowak/pytest_rewrite_masterfile' into 'main'

Rewrite masterfile system test to pytest

See merge request isc-projects/bind9!8791

2 years agoRewrite masterfile system test to pytest
Michal Nowak [Tue, 19 Mar 2024 09:31:38 +0000 (10:31 +0100)] 
Rewrite masterfile system test to pytest

2 years agoAdd zones_equal() with optional TTL comparison
Michal Nowak [Tue, 19 Mar 2024 09:49:19 +0000 (10:49 +0100)] 
Add zones_equal() with optional TTL comparison

2 years agoModify rrsets_equal() to optionally compare TTL
Michal Nowak [Tue, 19 Mar 2024 09:45:59 +0000 (10:45 +0100)] 
Modify rrsets_equal() to optionally compare TTL

2 years agoMerge branch 'mnowak/pytest_rewrite_limits' into 'main'
Michal Nowak [Mon, 18 Mar 2024 15:32:47 +0000 (15:32 +0000)] 
Merge branch 'mnowak/pytest_rewrite_limits' into 'main'

Rewrite limits system test to pytest

See merge request isc-projects/bind9!8798

2 years agoRewrite limits system test to pytest
Michal Nowak [Wed, 28 Feb 2024 15:41:32 +0000 (16:41 +0100)] 
Rewrite limits system test to pytest

Also, tweak the IP ranges of A RRsets so they are more easily processed
by for loops.

2 years agoMerge branch 'mnowak/freebsd-13.3' into 'main'
Michal Nowak [Mon, 18 Mar 2024 14:59:33 +0000 (14:59 +0000)] 
Merge branch 'mnowak/freebsd-13.3' into 'main'

Add FreeBSD 13.3

See merge request isc-projects/bind9!8826

2 years agoAdd FreeBSD 13.3
Michal Nowak [Tue, 5 Mar 2024 19:22:47 +0000 (20:22 +0100)] 
Add FreeBSD 13.3

2 years agoMerge branch '4641-dig-ednsflags-does-not-re-enable-edns' into 'main'
Mark Andrews [Sun, 17 Mar 2024 03:06:22 +0000 (03:06 +0000)] 
Merge branch '4641-dig-ednsflags-does-not-re-enable-edns' into 'main'

Resolve "dig +ednsflags does not re-enable EDNS"

Closes #4641

See merge request isc-projects/bind9!8874

2 years agoAdd CHANGES for [GL #4641
Mark Andrews [Sat, 16 Mar 2024 05:26:47 +0000 (16:26 +1100)] 
Add CHANGES for [GL #4641

2 years agoTest +noedns +ednsflags=non-zero-value
Mark Andrews [Sat, 16 Mar 2024 05:26:17 +0000 (16:26 +1100)] 
Test +noedns +ednsflags=non-zero-value

2 years agoRe-enable EDNS if an EDNS flag gets set to 1 by +ednsflags
Mark Andrews [Sat, 16 Mar 2024 04:55:37 +0000 (15:55 +1100)] 
Re-enable EDNS if an EDNS flag gets set to 1 by +ednsflags

This is consistent with +dnssec and +nsid which only re-enable
EDNS if do is set to 1 or nsid is requested.

2 years agoMerge branch 'mnowak/move-stress-tests-to-freebsd-13' into 'main'
Michal Nowak [Fri, 15 Mar 2024 11:12:11 +0000 (11:12 +0000)] 
Merge branch 'mnowak/move-stress-tests-to-freebsd-13' into 'main'

FreeBSD "stress" tests now run on FreeBSD 13.2

See merge request isc-projects/bind9!8689

2 years agoFreeBSD "stress" tests now run on FreeBSD 13.2
Michal Nowak [Thu, 1 Feb 2024 15:09:05 +0000 (16:09 +0100)] 
FreeBSD "stress" tests now run on FreeBSD 13.2

2 years agoMerge branch 'mnowak/pytest_rewrite_rrchecker' into 'main'
Michal Nowak [Fri, 15 Mar 2024 09:05:20 +0000 (09:05 +0000)] 
Merge branch 'mnowak/pytest_rewrite_rrchecker' into 'main'

Rewrite rrchecker system test to pytest

See merge request isc-projects/bind9!8832

2 years agoRewrite rrchecker system test to pytest
Michal Nowak [Wed, 6 Mar 2024 14:57:24 +0000 (15:57 +0100)] 
Rewrite rrchecker system test to pytest

2 years agoMerge branch '4639-add-openssl-flags-to-proxystream_test' into 'main'
Mark Andrews [Thu, 14 Mar 2024 23:42:25 +0000 (23:42 +0000)] 
Merge branch '4639-add-openssl-flags-to-proxystream_test' into 'main'

Resolve "Add OpenSSL Flags to proxystream_test"

Closes #4639

See merge request isc-projects/bind9!8869

2 years agoAdd OpenSSL libraries and flags to proxystream_test
Mark Andrews [Thu, 14 Mar 2024 23:08:57 +0000 (10:08 +1100)] 
Add OpenSSL libraries and flags to proxystream_test

2 years agoMerge branch '4614-qpdb-excess-memory' into 'main'
Evan Hunt [Thu, 14 Mar 2024 18:06:54 +0000 (18:06 +0000)] 
Merge branch '4614-qpdb-excess-memory' into 'main'

reduce memory consumption of QP zone and cache databases

Closes #4614

See merge request isc-projects/bind9!8849

2 years agoCHANGES for [GL #4614]
Evan Hunt [Tue, 12 Mar 2024 01:57:16 +0000 (18:57 -0700)] 
CHANGES for [GL #4614]

2 years agoreduce memory consumption of the remaining QP databases
Evan Hunt [Wed, 13 Mar 2024 20:42:57 +0000 (13:42 -0700)] 
reduce memory consumption of the remaining QP databases

use dynamically allocated names instead of fixednames in
forward.c, keytable.c, nametree.c, and nta.c

2 years agoreduce memory consumption of rpz summary database
Evan Hunt [Tue, 12 Mar 2024 05:10:41 +0000 (22:10 -0700)] 
reduce memory consumption of rpz summary database

use dynamically allocated names instead of fixednames in rpz.c

2 years agoreduce memory consumption of qpcache database
Evan Hunt [Tue, 12 Mar 2024 01:53:49 +0000 (18:53 -0700)] 
reduce memory consumption of qpcache database

as with qpzone, use a dynamically-allocated dns_name instead
of a dns_fixedname object to store node names in the QP database.

2 years agoreduce memory consumption of qpzone database
Evan Hunt [Tue, 12 Mar 2024 01:47:01 +0000 (18:47 -0700)] 
reduce memory consumption of qpzone database

every node of a QP database contains a copy of the nodename,
which is used as the key for the QP-trie. previously, the name
was stored as a dns_fixedname object, which has room for up to
255 characters. we can reduce the space consumed by dynamically
allocating a dns_name object that's just long enough for the name
to be stored.

2 years agoMerge branch '4629-cid-487882-error-handling-issues' into 'main'
Matthijs Mekking [Thu, 14 Mar 2024 14:12:57 +0000 (14:12 +0000)] 
Merge branch '4629-cid-487882-error-handling-issues' into 'main'

Resolve "CID 487882: Error handling issues in lib/dns/qpzone.c"

Closes #4629

See merge request isc-projects/bind9!8852

2 years agoFix Coverity CID 487882: Error handling issues
Matthijs Mekking [Tue, 12 Mar 2024 10:59:38 +0000 (11:59 +0100)] 
Fix Coverity CID 487882: Error handling issues

The dns_qpiter_next() was called without checking the return value. If
we cannot move the iterator forward, there is no use in calling the
step() function.

/lib/dns/qpzone.c: 2804 in activeempty()
2798       * of the name we were searching for. Step the iterator
2799       * forward, then step() will continue forward until it
2800       * finds a node with active data. If that node is a
2801       * subdomain of the one we were looking for, then we're
2802       * at an active empty nonterminal node.
2803       */
>>>     CID 487882:  Error handling issues  (CHECKED_RETURN)
>>>     Calling "dns_qpiter_next" without checking return value (as is done elsewhere 26 out of 27 times).
2804      dns_qpiter_next(it, NULL, NULL, NULL);
2805      return (step(search, it, FORWARD, next) &&
2806      dns_name_issubdomain(next, current));
2807     }

2 years agoMerge branch 'matthijs-add-rfc-9460-to-arm' into 'main'
Matthijs Mekking [Thu, 14 Mar 2024 12:53:23 +0000 (12:53 +0000)] 
Merge branch 'matthijs-add-rfc-9460-to-arm' into 'main'

Add RFC 9460 to list of supported RFCs

See merge request isc-projects/bind9!8847

2 years agoAdd RFC 9460 to list of supported RFCs
Matthijs Mekking [Mon, 11 Mar 2024 07:55:26 +0000 (08:55 +0100)] 
Add RFC 9460 to list of supported RFCs

The specification was implemented (#1132) when it was a draft. Now that
it is RFC, add the RFC to the list of supported RFCs.

2 years agoMerge branch '4631-cid-487884-dead-code-in-qpcache' into 'main'
Matthijs Mekking [Thu, 14 Mar 2024 11:50:17 +0000 (11:50 +0000)] 
Merge branch '4631-cid-487884-dead-code-in-qpcache' into 'main'

Resolve "CID 487884: Dead code in qpcache.c"

Closes #4631

See merge request isc-projects/bind9!8853

2 years agoFix Coverity CID 487884: Dead code in qpcache.c
Matthijs Mekking [Tue, 12 Mar 2024 13:12:23 +0000 (14:12 +0100)] 
Fix Coverity CID 487884: Dead code in qpcache.c

Adding a changed record is zonedb related and does not belong in
the cache code. This is a leftover dead code and can be safely
removed.

/lib/dns/qpcache.c: 3459 in add()
3453      }
3454      newheader->next = topheader->next;
3455      newheader->down = topheader;
3456      topheader->next = newheader;
3457      qpnode->dirty = 1;
3458      if (changed != NULL) {
>>>     CID 487884:    (DEADCODE)
>>>     Execution cannot reach this statement: "changed->dirty = true;".
3459      changed->dirty = true;
3460      }
3461      } else {
3462      /*
3463       * No rdatasets of the given type exist at the node.
3464       */
/lib/dns/qpcache.c: 3409 in add()
3403      }
3404      newheader->next = topheader->next;
3405      newheader->down = topheader;
3406      topheader->next = newheader;
3407      qpnode->dirty = 1;
3408      if (changed != NULL) {
>>>     CID 487884:    (DEADCODE)
>>>     Execution cannot reach this statement: "changed->dirty = true;".
3409      changed->dirty = true;
3410      }
3411      mark_ancient(header);
3412      if (sigheader != NULL) {
3413      mark_ancient(sigheader);
3414

2 years agoMerge branch '4624-duration-error-checking' into 'main'
Matthijs Mekking [Thu, 14 Mar 2024 10:08:43 +0000 (10:08 +0000)] 
Merge branch '4624-duration-error-checking' into 'main'

Detect invalid durations

Closes #4624

See merge request isc-projects/bind9!8844

2 years agoAdd CHANGES and release note for #4624
Matthijs Mekking [Fri, 8 Mar 2024 11:23:40 +0000 (12:23 +0100)] 
Add CHANGES and release note for #4624

2 years agoDetect invalid durations
Matthijs Mekking [Fri, 8 Mar 2024 11:12:50 +0000 (12:12 +0100)] 
Detect invalid durations

Be stricter in durations that are accepted. Basically we accept ISO 8601
formats, but fail to detect garbage after the integers in such strings.

For example, 'P7.5D' will be treated as 7 days. Pass 'endptr' to
'strtoll' and check if the endptr is at the correct suffix.

2 years agoMerge branch '4608-ensure-static-stub-ns-records-are-not-returned' into 'main'
Mark Andrews [Thu, 14 Mar 2024 04:16:39 +0000 (04:16 +0000)] 
Merge branch '4608-ensure-static-stub-ns-records-are-not-returned' into 'main'

Resolve "Ensure static stub NS records are not returned"

Closes #4608

See merge request isc-projects/bind9!8790

2 years agoAdd CHANGES note for [GL #4608]
Mark Andrews [Thu, 29 Feb 2024 06:17:52 +0000 (17:17 +1100)] 
Add CHANGES note for [GL #4608]

2 years agoCheck static-stub synthesised NS is not returned
Mark Andrews [Thu, 29 Feb 2024 06:14:43 +0000 (17:14 +1100)] 
Check static-stub synthesised NS is not returned