]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
11 months agochg: ci: Replace Oracle Linux Docker images with AlmaLinux ones
Michal Nowak [Thu, 29 May 2025 15:11:10 +0000 (15:11 +0000)] 
chg: ci: Replace Oracle Linux Docker images with AlmaLinux ones

To be consistent with the replacing of Oracle Linux QCOW2 images with
AlmaLinux AWS AMIs, also replace Docker images.

Merge branch 'mnowak/replace-oracle-linux-with-almalinux' into 'main'

See merge request isc-projects/bind9!10434

11 months agoReplace Oracle Linux Docker images with AlmaLinux ones
Michal Nowak [Wed, 30 Apr 2025 15:34:13 +0000 (17:34 +0200)] 
Replace Oracle Linux Docker images with AlmaLinux ones

To be consistent with the replacing of Oracle Linux QCOW2 images with
AlmaLinux AWS AMIs, also replace Docker images.

11 months agofix: test: Fix intermittent kasp pytest failures
Nicki Křížek [Thu, 29 May 2025 12:34:15 +0000 (12:34 +0000)] 
fix: test: Fix intermittent kasp pytest failures

The `pytest` cases checks if a zone is signed by looking at the `NSEC` record at the apex. If that has an RRSIG record, it is considered signed. But `named` signs zones incrementally (in batches) and so the zone may still lack some signatures. In other words, the tests may consider a zone signed while in fact signing is not yet complete, then performs additional checks such as is a subdomain signed with the right key. If this check happens before the zone is actually fully
signed, the check will fail.

Fix this by using `check_dnssec_verify` instead of `check_is_zone_signed`. We were already doing this check, but we now move it up. This will transfer the zone and then run `dnssec-verify` on the response. If the zone is partially signed, the check will fail, and it will retry for up to ten times.

Closes #5303

Merge branch '5303-kasp-pytest-intermittent-test-failures' into 'main'

See merge request isc-projects/bind9!10445

11 months agoFix intermittent kasp pytest failures
Matthijs Mekking [Wed, 7 May 2025 15:17:27 +0000 (17:17 +0200)] 
Fix intermittent kasp pytest failures

The pytest cases checks if a zone is signed by looking at the NSEC
record at the apex. If that has an RRSIG record, it is considered
signed. But 'named' signs zones incrementally (in batches) and so
the zone may still lack some signatures. In other words, the tests
may consider a zone signed while in fact signing is not yet complete,
then performs additional checks such as is a subdomain signed with the
right key. If this check happens before the zone is actually fully
signed, the check will fail.

Fix this by using 'check_dnssec_verify' instead of
'check_is_zone_signed'. We were already doing this check, but we now
move it up. This will transfer the zone and then run 'dnssec-verify'
on the response. If the zone is partially signed, the check will fail,
and it will retry for up to ten times.

11 months agochg: test: Add utility module to import correct version of hypothesis
Nicki Křížek [Thu, 29 May 2025 09:04:04 +0000 (09:04 +0000)] 
chg: test: Add utility module to import correct version of hypothesis

On FIPS-enabled platforms, we need to ensure a minimal version of
hypothesis which no longer uses MD5. This doesn't need to be enforced
for other platforms.

Move the import magic to a utility module to avoid copy-pasting the
boilerplate code around.

Merge branch 'nicki/pytest-import-hypothesis' into 'main'

See merge request isc-projects/bind9!10442

11 months agoEnsure supported version of hypothesis is available
Nicki Křížek [Mon, 5 May 2025 16:00:07 +0000 (18:00 +0200)] 
Ensure supported version of hypothesis is available

On FIPS-enabled platforms, we need to ensure a minimal version of
hypothesis which no longer uses MD5. This doesn't need to be enforced
for other platforms.

Move the import magic to a utility module to avoid copy-pasting the
boilerplate code around.

11 months agofix: nil: silence tainted scalar in client.c
Mark Andrews [Thu, 29 May 2025 06:59:00 +0000 (06:59 +0000)] 
fix: nil: silence tainted scalar in client.c

Coverity detected that 'optlen' was not being checked in 'process_opt'.
This is actually already done when the OPT record was initially
parsed.  Add an INSIST to silence Coverity as is done in message.c.

Closes #5330

Merge branch '5330-tainted-scalar-in-client-c' into 'main'

See merge request isc-projects/bind9!10500

11 months agoSilence tainted scalar in client.c
Mark Andrews [Wed, 28 May 2025 23:42:08 +0000 (09:42 +1000)] 
Silence tainted scalar in client.c

Coverity detected that 'optlen' was not being checked in 'process_opt'.
This is actually already done when the OPT record was initially
parsed.  Add an INSIST to silence Coverity as is done in message.c.

11 months agofix: nil: Remove spurious zconf.h include
Ondřej Surý [Thu, 29 May 2025 04:35:08 +0000 (04:35 +0000)] 
fix: nil: Remove spurious zconf.h include

The #include <zconf.h> got spuriously included into isc_commandline
unit.  The #include <limits.h> needs to be used instead.

Merge branch 'ondrej/unify-handling-of-the-program-name-fix' into 'main'

See merge request isc-projects/bind9!10503

11 months agoRemove spurious zconf.h include
Ondřej Surý [Thu, 29 May 2025 04:30:59 +0000 (06:30 +0200)] 
Remove spurious zconf.h include

The #include <zconf.h> got spuriously included into isc_commandline
unit.  The #include <limits.h> needs to be used instead.

11 months agochg: dev: Unify handling of the program name in all the utilities
Ondřej Surý [Thu, 29 May 2025 04:24:26 +0000 (04:24 +0000)] 
chg: dev: Unify handling of the program name in all the utilities

There were several methods how we used 'argv[0]'.  Some programs had a
static value, some programs did use isc_file_progname(), some programs
stripped 'lt-' from the beginning of the name.  And some used argv[0]
directly.

Unify the handling and all the variables into isc_commandline_progname
that gets populated by the new isc_commandline_init(argc, argv) call.

Merge branch 'ondrej/unify-handling-of-the-program-name' into 'main'

See merge request isc-projects/bind9!10502

11 months agoUnify handling of the program name in all the utilities
Ondřej Surý [Wed, 28 May 2025 20:43:38 +0000 (22:43 +0200)] 
Unify handling of the program name in all the utilities

There were several methods how we used 'argv[0]'.  Some programs had a
static value, some programs did use isc_file_progname(), some programs
stripped 'lt-' from the beginning of the name.  And some used argv[0]
directly.

Unify the handling and all the variables into isc_commandline_progname
that gets populated by the new isc_commandline_init(argc, argv) call.

11 months agochg: dev: Set name for all the isc_mem context from isc_mem_create()
Ondřej Surý [Thu, 29 May 2025 03:50:44 +0000 (03:50 +0000)] 
chg: dev: Set name for all the isc_mem context from isc_mem_create()

Instead of giving the memory context names with an explicit call to
isc_mem_setname(), add the name to isc_mem_create() call to have all the
memory contexts an unconditional name.

Merge branch 'ondrej/ondrej-isc_mem_create-with-name' into 'main'

See merge request isc-projects/bind9!10426

11 months agoGive every memory pool a name
Ondřej Surý [Wed, 28 May 2025 21:00:24 +0000 (23:00 +0200)] 
Give every memory pool a name

Instead of giving the memory pools names with an explicit call to
isc_mempool_setname(), add the name to isc_mempool_create() call to have
all the memory pools an unconditional name.

11 months agoGive every memory context a name
Ondřej Surý [Fri, 21 Feb 2025 11:45:08 +0000 (12:45 +0100)] 
Give every memory context a name

Instead of giving the memory context names with an explicit call to
isc_mem_setname(), add the name to isc_mem_create() call to have all the
memory contexts an unconditional name.

11 months agofix: nil: simplify code around isc_mem_put() and isc_mem_free()
Evan Hunt [Thu, 29 May 2025 00:51:17 +0000 (00:51 +0000)] 
fix: nil: simplify code around isc_mem_put() and isc_mem_free()

it isn't necessary to set a pointer to NULL after calling
isc_mem_put() or isc_mem_free(), because those macros take
care of it automatically.

Merge branch 'each-memfree-null' into 'main'

See merge request isc-projects/bind9!10485

11 months agococcinelle patch for isc_mem_free()/isc_mem_put()
Colin Vidal [Wed, 28 May 2025 20:55:52 +0000 (22:55 +0200)] 
coccinelle patch for isc_mem_free()/isc_mem_put()

add a Coccinelle patch to ensure the pointer being used by
isc_mem_free() and isc_mem_put() is not explicitly set to NULL (those
mecros are taking care of it).

11 months agosimplify code around isc_mem_put() and isc_mem_free()
Evan Hunt [Wed, 28 May 2025 06:04:33 +0000 (23:04 -0700)] 
simplify code around isc_mem_put() and isc_mem_free()

it isn't necessary to set a pointer to NULL after calling
isc_mem_put() or isc_mem_free(), because those macros take
care of it automatically.

11 months agofix: dev: Set name for all the isc_mem contexts
Ondřej Surý [Wed, 28 May 2025 20:46:14 +0000 (20:46 +0000)] 
fix: dev: Set name for all the isc_mem contexts

Merge branch 'ondrej/fix-isc_mem_setname-usage' into 'main'

See merge request isc-projects/bind9!10425

11 months agoSet name for all the isc_mem context
Ondřej Surý [Fri, 25 Apr 2025 11:01:16 +0000 (13:01 +0200)] 
Set name for all the isc_mem context

The memory context for isc_managers and dst_api units had no name and
that was causing trouble with the statistics channel output.  Set the
name for the two memory context that were missing a proper name.

11 months agofix: usr: Fix zone deletion issue
Ondřej Surý [Wed, 28 May 2025 17:48:57 +0000 (17:48 +0000)] 
fix: usr: Fix zone deletion issue

A secondary zone could initiate a new zone transfer from the
primary server after it had been already deleted from the
secondary server, and before the internal garbage collection
was activated to clean it up completely. This has been fixed.

Closes #5291

Merge branch '5291-zone-delete-bug' into 'main'

See merge request isc-projects/bind9!10449

11 months agoPrepare a zone for shutting down when deleting it from a view
Aram Sargsyan [Mon, 12 May 2025 13:58:38 +0000 (13:58 +0000)] 
Prepare a zone for shutting down when deleting it from a view

After b171cacf4f0123ba96bef6eedfc92dfb608db6b7, a zone object can
remain in the memory for a while, until garbage collection is run.
Setting the DNS_ZONEFLG_EXITING flag should prevent the zone
maintenance function from running while it's in that state.
Otherwise, a secondary zone could initiate a zone transfer after
it had been deleted.

11 months agofix: usr: Fix a zone refresh bug
Ondřej Surý [Wed, 28 May 2025 16:51:33 +0000 (16:51 +0000)] 
fix: usr: Fix a zone refresh bug

A secondary zone could fail to further refresh with new
versions of the zone from a primary server if named was
reconfigured during the SOA request step of an ongoing
zone transfer. This has been fixed.

Closes #5307

Merge branch '5307-zone-refresh-stuck-after-reconfiguration-fix' into 'main'

See merge request isc-projects/bind9!10468

11 months agoEmit a ISC_R_CANCELED result instead of ISC_R_SHUTTINGDOWN
Aram Sargsyan [Wed, 21 May 2025 15:27:53 +0000 (15:27 +0000)] 
Emit a ISC_R_CANCELED result instead of ISC_R_SHUTTINGDOWN

When request manager shuts down, it also shuts down all its ongoing
requests. Currently it calls their callback functions with a
ISC_R_SHUTTINGDOWN result code for the request. Since a request
manager can shutdown not only during named shutdown but also during
named reconfiguration, instead of sending ISC_R_SHUTTINGDOWN result
code send a ISC_R_CANCELED code to avoid confusion and errors with
the expectation that a ISC_R_SHUTTINGDOWN result code can only be
received during actual shutdown of named.

All the callback functions which are passed to either the
dns_request_create() or the dns_request_createraw() functions have
been analyzed to confirm that they can process both the
ISC_R_SHUTTINGDOWN and ISC_R_CANCELED result codes. Changes were
made where it was necessary.

11 months agoTest named reconfiguration during zone transfer's SOA request
Aram Sargsyan [Wed, 21 May 2025 14:57:47 +0000 (14:57 +0000)] 
Test named reconfiguration during zone transfer's SOA request

This new test checks that named can correctly process an interrupted
SOA request during zone transfer, caused by reconfiguration.

Co-authored-by: Michał Kępień <michal@isc.org>
11 months agoAdd a debug log in zone.c:refresh_callback()
Aram Sargsyan [Wed, 21 May 2025 14:56:04 +0000 (14:56 +0000)] 
Add a debug log in zone.c:refresh_callback()

The new debug message logs the request result in the SOA request
callback function.

11 months agoFix a zone refresh bug in zone.c:refresh_callback()
Aram Sargsyan [Wed, 21 May 2025 14:44:50 +0000 (14:44 +0000)] 
Fix a zone refresh bug in zone.c:refresh_callback()

When the zone.c:refresh_callback() callback function is called during
a SOA request before a zone transfer, it can receive a
ISC_R_SHUTTINGDOWN result for the sent request when named is shutting
down, and in that case it just destroys the request and finishes the
ongoing transfer, without clearing the DNS_ZONEFLG_REFRESH flag of the
zone. This is alright when named is going to shutdown, but currently
the callback can get a ISC_R_SHUTTINGDOWN result also when named is
reconfigured during the ongoibg SOA request. In that case, leaving the
DNS_ZONEFLG_REFRESH flag set results in the zone never being able
to refresh again, because any new attempts will be caneled while
the flag is set. Clear the DNS_ZONEFLG_REFRESH flag on the 'exiting'
error path of the callback function.

11 months agofix: test: enable shell-based rndc system tests
Colin Vidal [Wed, 28 May 2025 15:44:21 +0000 (15:44 +0000)] 
fix: test: enable shell-based rndc system tests

Enable existing rndc system tests (the python test function calling the
shell file was missing). Also update the extra artifacts list to remove
one generated file which was left behind.

Merge branch 'colin/rndc-tests' into 'main'

See merge request isc-projects/bind9!10489

11 months agoenable shell-based rndc system tests
Colin Vidal [Wed, 28 May 2025 13:15:56 +0000 (15:15 +0200)] 
enable shell-based rndc system tests

Enable existing rndc system tests (the python test function calling the
shell file was missing). Also update the extra artifacts list to remove
one generated file which was left behind.

11 months agochg: doc: Update security issue reporting procedure
Petr Špaček [Wed, 28 May 2025 14:51:00 +0000 (14:51 +0000)] 
chg: doc: Update security issue reporting procedure

Merge branch 'pspacek/update-reporting-procedure-sec-md' into 'main'

See merge request isc-projects/bind9!10487

11 months agoUpdate security issue reporting procedure
Petr Špaček [Wed, 28 May 2025 10:53:48 +0000 (12:53 +0200)] 
Update security issue reporting procedure

We have a new template for people to use. It saves lots of back and
forth if people use it.

11 months agochg: test: DNSTAP test cleanup
Petr Špaček [Wed, 28 May 2025 11:16:17 +0000 (11:16 +0000)] 
chg: test: DNSTAP test cleanup

Merge branch 'pspacek/dnstap-test-cleanup' into 'main'

See merge request isc-projects/bind9!10478

11 months agoUse Pytest mark to guard dnstap features
Petr Špaček [Fri, 23 May 2025 15:37:19 +0000 (17:37 +0200)] 
Use Pytest mark to guard dnstap features

11 months agoFix DNSTAP feature detection for pytest
Petr Špaček [Fri, 23 May 2025 15:36:54 +0000 (17:36 +0200)] 
Fix DNSTAP feature detection for pytest

11 months agoPort dnstap test to use isctest utilities
Petr Špaček [Fri, 23 May 2025 15:27:02 +0000 (17:27 +0200)] 
Port dnstap test to use isctest utilities

11 months agofix: dev: Add more iteration macros
Evan Hunt [Wed, 28 May 2025 04:40:40 +0000 (04:40 +0000)] 
fix: dev: Add more iteration macros

Add more macros for iteration: `DNS_RDATASET_FOREACH`, `CFG_LIST_FOREACH`, `DNS_DBITERATOR_FOREACH`, and `DNS_RDATASETITER_FOREACH`.

Merge branch 'each-rdataset-foreach' into 'main'

See merge request isc-projects/bind9!10350

11 months agoadd DNS_DBITERATOR_FOREACH and DNS_RDATASETITER_FOREACH
Evan Hunt [Thu, 27 Mar 2025 05:49:03 +0000 (22:49 -0700)] 
add DNS_DBITERATOR_FOREACH and DNS_RDATASETITER_FOREACH

when iterating databases, use DNS_DBITERATOR_FOREACH and
DNS_DNSRDATASETITER_FOREACH macros where possible.

11 months agoadd CFG_LIST_FOREACH macro
Evan Hunt [Thu, 27 Mar 2025 01:54:05 +0000 (18:54 -0700)] 
add CFG_LIST_FOREACH macro

replace the pattern `for (elt = cfg_list_first(x); elt != NULL;
elt = cfg_list_next(elt))` with a new `CFG_LIST_FOREACH` macro.

11 months agoadd DNS_RDATASET_FOREACH macro
Evan Hunt [Sat, 22 Mar 2025 06:32:27 +0000 (23:32 -0700)] 
add DNS_RDATASET_FOREACH macro

replace the pattern `for (result = dns_rdataset_first(x); result ==
ISC_R_SUCCES; result = dns_rdataset_next(x)` with a new
`DNS_RDATASET_FOREACH` macro throughout BIND.

11 months agoimport_rdataset() can't fail
Evan Hunt [Sat, 22 Mar 2025 06:48:01 +0000 (23:48 -0700)] 
import_rdataset() can't fail

the import_rdataset() function can't return any value other
than ISC_R_SUCCESS, so it's been changed to void and its callers
don't rely on its return value any longer.

11 months agofix: nil: correct the DbC assertions in message.c
Evan Hunt [Tue, 27 May 2025 23:11:27 +0000 (23:11 +0000)] 
fix: nil: correct the DbC assertions in message.c

the comments for some calls in the dns_message API specified
requirements which were not actually enforced in the functions.
in most cases, this has now been corrected by adding the missing
REQUIREs. in one case, the comment was incorrect and has been
revised.

Merge branch 'each-fix-message-requires' into 'main'

See merge request isc-projects/bind9!10466

11 months agocorrect the DbC assertions in message.c
Evan Hunt [Thu, 15 May 2025 17:30:29 +0000 (10:30 -0700)] 
correct the DbC assertions in message.c

the comments for some calls in the dns_message API specified
requirements which were not actually enforced in the functions.

in most cases, this has now been corrected by adding the missing
REQUIREs. in one case, the comment was incorrect and has been
revised.

11 months agofix: dev: Make all ISC_LIST_FOREACH calls safe
Evan Hunt [Tue, 27 May 2025 23:08:35 +0000 (23:08 +0000)] 
fix: dev: Make all ISC_LIST_FOREACH calls safe

Previously, `ISC_LIST_FOREACH` and `ISC_LIST_FOREACH_SAFE` were
two separate macros, with the _SAFE version allowing entries
to be unlinked during the loop. `ISC_LIST_FOREACH` is now also
safe, and the separate `_SAFE` macro has been removed.

Similarly, the `ISC_LIST_FOREACH_REV` macro is now safe, and
`ISC_LIST_FOREACH_REV_SAFE` has also been removed.

Merge branch 'each-isc-list-foreach' into 'main'

See merge request isc-projects/bind9!10479

11 months agomake all ISC_LIST_FOREACH calls safe
Evan Hunt [Fri, 23 May 2025 20:02:22 +0000 (13:02 -0700)] 
make all ISC_LIST_FOREACH calls safe

previously, ISC_LIST_FOREACH and ISC_LIST_FOREACH_SAFE were
two separate macros, with the _SAFE version allowing entries
to be unlinked during the loop. ISC_LIST_FOREACH is now also
safe, and the separate _SAFE macro has been removed.

similarly, the ISC_LIST_FOREACH_REV macro is now safe, and
ISC_LIST_FOREACH_REV_SAFE has also been removed.

11 months ago[CVE-2025-40775] sec: test: Add a bad TSIG algorithm hypothesis python test
Nicki Křížek [Fri, 23 May 2025 11:30:58 +0000 (11:30 +0000)] 
[CVE-2025-40775] sec: test: Add a bad TSIG algorithm hypothesis python test

Closes #5300

Merge branch '5300-tsig-unknown-alg-test' into 'main'

See merge request isc-projects/bind9!10475

11 months agoAdd a bad TSIG algorithm hypothesis python test
Nicki Křížek [Wed, 30 Apr 2025 04:06:23 +0000 (21:06 -0700)] 
Add a bad TSIG algorithm hypothesis python test

Co-authored-by: Petr Špaček <pspacek@isc.org>
11 months agochg: dev: Adaptive memory allocation strategy for qp-tries
Alessio Podda [Thu, 22 May 2025 22:53:48 +0000 (22:53 +0000)] 
chg: dev: Adaptive memory allocation strategy for qp-tries

qp-tries allocate their nodes (twigs) in chunks to reduce allocator
pressure and improve memory locality. The choice of chunk size presents
a tradeoff: larger chunks benefit qp-tries with many values (as seen
in large zones and resolvers) but waste memory in smaller use cases.

Previously, our fixed chunk size of 2^10 twigs meant that even an
empty qp-trie would consume 12KB of memory, while reducing this size
would negatively impact resolver performance.

This commit implements an adaptive chunking strategy that:
 - Tracks the size of the most recently allocated chunk.
 - Doubles the chunk size for each new allocation until reaching a
   predefined maximum.

This approach effectively balances memory efficiency for small tries
while maintaining the performance benefits of larger chunk sizes for
bigger data structures.

Merge branch 'alessio/qp-small-alloc' into 'main'

See merge request isc-projects/bind9!10245

11 months agoTune min and max chunk size
Alessio Podda [Mon, 5 May 2025 09:43:44 +0000 (11:43 +0200)] 
Tune min and max chunk size

Before implementing adaptive chunk sizing, it was necessary to ensure
that a chunk could hold up to 48 twigs, but the new logic will size-up
new chunks to ensure that the current allocation can succeed.

We exploit the new logic in two ways:
 - We make the minimum chunk size smaller than the old limit of 2^6,
   reducing memory consumption.
 - We make the maximum chunk size larger, as it has been observed that
   it improves resolver performance.

11 months agoAdaptive memory allocation strategy for qp-tries
alessio [Sun, 9 Mar 2025 08:13:16 +0000 (09:13 +0100)] 
Adaptive memory allocation strategy for qp-tries

qp-tries allocate their nodes (twigs) in chunks to reduce allocator
pressure and improve memory locality. The choice of chunk size presents
a tradeoff: larger chunks benefit qp-tries with many values (as seen
in large zones and resolvers) but waste memory in smaller use cases.

Previously, our fixed chunk size of 2^10 twigs meant that even an
empty qp-trie would consume 12KB of memory, while reducing this size
would negatively impact resolver performance.

This commit implements an adaptive chunking strategy that:
 - Tracks the size of the most recently allocated chunk.
 - Doubles the chunk size for each new allocation until reaching a
   predefined maximum.

This approach effectively balances memory efficiency for small tries
while maintaining the performance benefits of larger chunk sizes for
bigger data structures.

This commit also splits the callback freeing qpmultis into two
phases, one that frees the underlying qptree, and one that reclaims
the qpmulti memory. In order to prevent races between the qpmulti
destructor and chunk garbage collection jobs, the second phase is
protected by reference counting.

11 months agofix: doc: Update CVE checklist
Michał Kępień [Thu, 22 May 2025 12:25:24 +0000 (12:25 +0000)] 
fix: doc: Update CVE checklist

Merge branch 'michal/update-cve-checklist' into 'main'

See merge request isc-projects/bind9!10473

11 months agoFix duplicate Markdown reference
Michał Kępień [Thu, 22 May 2025 12:21:04 +0000 (14:21 +0200)] 
Fix duplicate Markdown reference

Commit 7e429463f527ab80d17ddf8c6c3418de7b5fc11e added a second
definition of the "step_asn_send" reference.  Make the relevant links
distinct.

11 months agoSend pre-announcement emails for all ISC projects
Michał Kępień [Thu, 22 May 2025 12:21:04 +0000 (14:21 +0200)] 
Send pre-announcement emails for all ISC projects

There is no reason for the public pre-announcements of security issues
to only be sent for BIND 9.  Remove the "BIND 9 only" annotation from
the relevant checklist step as it caused confusion in practice.

11 months agoUpdate CVE checklist template
Suzanne Goldlust [Wed, 21 May 2025 14:37:34 +0000 (14:37 +0000)] 
Update CVE checklist template

Clarify a confusing step in the CVE checklist.

11 months agoMerge tag 'v9.21.8'
Michał Kępień [Wed, 21 May 2025 19:23:09 +0000 (21:23 +0200)] 
Merge tag 'v9.21.8'

11 months agorem: dev: Clean up the DST cryptographic API
Ondřej Surý [Tue, 20 May 2025 23:39:34 +0000 (23:39 +0000)] 
rem: dev: Clean up the DST cryptographic API

The DST API has been cleaned up, duplicate functions has been squashed
into single call (verify and verify2 functions), and couple of unused
functions have been completely removed (createctx2, computesecret,
paramcompare, and cleanup).

Merge branch 'ondrej/dst_api-cleanup' into 'main'

See merge request isc-projects/bind9!10345

11 months agoDeprecate max-rsa-exponent-size, always use 4096 instead
Ondřej Surý [Mon, 28 Apr 2025 15:22:18 +0000 (17:22 +0200)] 
Deprecate max-rsa-exponent-size, always use 4096 instead

The `max-rsa-exponent-size` could limit the exponents of the RSA
public keys during the DNSSEC verification.  Instead of providing
a cryptic (not cryptographic) knob, hardcode the max exponent to
be 4096 (the theoretical maximum for DNSSEC).

11 months agoCleanup the DST cryptographic API
Ondřej Surý [Sun, 21 Jul 2024 09:30:09 +0000 (11:30 +0200)] 
Cleanup the DST cryptographic API

The DST API has been cleaned up, duplicate functions has been squashed
into single call (verify and verify2 functions), and couple of unused
functions have been completely removed (createctx2, computesecret,
paramcompare, and cleanup).

12 months agonew: usr: Implement a new 'notify-defer' configuration option
Arаm Sаrgsyаn [Thu, 15 May 2025 13:26:44 +0000 (13:26 +0000)] 
new: usr: Implement a new 'notify-defer' configuration option

This new option sets a delay (in seconds) to wait before sending
a set of NOTIFY messages for a zone. Whenever a NOTIFY message is
ready to be sent, sending will be deferred for this duration. This
option is not to be confused with the :any:`notify-delay` option.
The default is 0 seconds.

Closes #5259

Merge branch '5259-implement-zone-notify-defer' into 'main'

See merge request isc-projects/bind9!10419

12 months agoImplement a new 'notify-defer' configuration option
Aram Sargsyan [Tue, 22 Apr 2025 13:33:48 +0000 (13:33 +0000)] 
Implement a new 'notify-defer' configuration option

This new option sets the delay, in seconds, to wait before sending
a set of NOTIFY messages for a zone. Whenever a NOTIFY message is
ready to be sent, sending will be deferred for this duration.

12 months agoUpdate the dns_zone_setnotifydelay() function's documentation
Aram Sargsyan [Thu, 17 Apr 2025 14:38:44 +0000 (14:38 +0000)] 
Update the dns_zone_setnotifydelay() function's documentation

Add a note that the delay is in seconds.

12 months agoDelete the unused dns_zone_getnotifydelete() function
Aram Sargsyan [Thu, 17 Apr 2025 14:37:28 +0000 (14:37 +0000)] 
Delete the unused dns_zone_getnotifydelete() function

The function is unused, delete it.

12 months agofix: test: Fix catz system test errors
Arаm Sаrgsyаn [Thu, 15 May 2025 12:19:46 +0000 (12:19 +0000)] 
fix: test: Fix catz system test errors

Merge branch 'aram/catz-system-test-errors-fix' into 'main'

See merge request isc-projects/bind9!10444

12 months agoFix more catz system test errors
Aram Sargsyan [Wed, 7 May 2025 13:34:04 +0000 (13:34 +0000)] 
Fix more catz system test errors

A quick grep check discovered a couple of more errors similar to the
one fixed in the previous commit. Fix them too.

12 months agoFix catz system test error
Aram Sargsyan [Wed, 7 May 2025 13:32:15 +0000 (13:32 +0000)] 
Fix catz system test error

The '|| ret=1' is omitted from the check. This was introduced in the
b171cacf4f0123ba96bef6eedfc92dfb608db6b7 commit. Fix the error.

12 months agochg: test: Mark test_idle_timeout as flaky on FreeBSD 13
Michał Kępień [Wed, 14 May 2025 17:17:11 +0000 (17:17 +0000)] 
chg: test: Mark test_idle_timeout as flaky on FreeBSD 13

The test_idle_timeout check in the "timeouts" system test has been
failing often on FreeBSD 13 AWS hosts.  Adding timestamped debug logging
shows that the time.sleep() calls used in that check are returning
significantly later than asked to on that platform (e.g. after 4 seconds
when just 1 second is requested), breaking the test's timing assumptions
and triggering false positives.  These failures are not an indication of
a bug in named and have not been observed on any other platform.  Mark
the problematic check as flaky, but only on FreeBSD 13, so that other
failure modes are caught appropriately.

Merge branch 'michal/mark-test_idle_timeout-as-flaky-on-freebsd-13' into 'main'

See merge request isc-projects/bind9!10459

12 months agoMark test_idle_timeout as flaky on FreeBSD 13
Michał Kępień [Wed, 14 May 2025 07:50:33 +0000 (09:50 +0200)] 
Mark test_idle_timeout as flaky on FreeBSD 13

The test_idle_timeout check in the "timeouts" system test has been
failing often on FreeBSD 13 AWS hosts.  Adding timestamped debug logging
shows that the time.sleep() calls used in that check are returning
significantly later than asked to on that platform (e.g. after 4 seconds
when just 1 second is requested), breaking the test's timing assumptions
and triggering false positives.  These failures are not an indication of
a bug in named and have not been observed on any other platform.  Mark
the problematic check as flaky, but only on FreeBSD 13, so that other
failure modes are caught appropriately.

12 months agofix: dev: Debug level was ignored when logging to stderr
Evan Hunt [Tue, 13 May 2025 20:56:32 +0000 (20:56 +0000)] 
fix: dev: Debug level was ignored when logging to stderr

The debug level (set with the `-d` option) was ignored when running `named` with the `-g` and `-u` options.

Merge branch 'each-fix-debug-level' into 'main'

See merge request isc-projects/bind9!10453

12 months agodebug level was ignored when logging to stderr
Evan Hunt [Tue, 13 May 2025 07:56:08 +0000 (00:56 -0700)] 
debug level was ignored when logging to stderr

In commit cc167266aa, the -g option was changed so it sets both
named_g_logstderr and also named_g_logflags to use ISO style timestamps
with tzinfo. Together with an error in named_log_setsafechannels(), that
change could cause the debugging level to be ignored.

12 months agorem: ci: Drop Ubuntu 20.04 Focal Fossa
Michal Nowak [Tue, 13 May 2025 16:24:41 +0000 (16:24 +0000)] 
rem: ci: Drop Ubuntu 20.04 Focal Fossa

Focal-specific ./configure options were moved to Jammy.

Merge branch 'mnowak/drop-ubuntu-focal' into 'main'

See merge request isc-projects/bind9!9899

12 months agoRevert "Ignore .hypothesis files created by system tests"
Michal Nowak [Tue, 13 May 2025 15:03:21 +0000 (17:03 +0200)] 
Revert "Ignore .hypothesis files created by system tests"

This reverts commit f413ddbe5f2edfdeedc41603dcd2afe105ed2844.

12 months agoMake FreeBSD 12.x part of Community-Maintained platforms
Michal Nowak [Thu, 12 Dec 2024 11:27:09 +0000 (12:27 +0100)] 
Make FreeBSD 12.x part of Community-Maintained platforms

12 months agoDrop Ubuntu 20.04 Focal Fossa
Michal Nowak [Thu, 12 Dec 2024 11:25:09 +0000 (12:25 +0100)] 
Drop Ubuntu 20.04 Focal Fossa

Focal-specific ./configure options were moved to Jammy.

12 months agochg: doc: Set up version for BIND 9.21.9
Michał Kępień [Mon, 12 May 2025 18:38:52 +0000 (18:38 +0000)] 
chg: doc: Set up version for BIND 9.21.9

Merge branch 'michal/set-up-version-for-bind-9.21.9' into 'main'

See merge request isc-projects/bind9!10450

12 months agoUpdate BIND version to 9.21.9-dev
Michał Kępień [Mon, 12 May 2025 18:24:12 +0000 (20:24 +0200)] 
Update BIND version to 9.21.9-dev

12 months agoUpdate BIND version for release v9.21.8
Michał Kępień [Thu, 8 May 2025 21:09:48 +0000 (23:09 +0200)] 
Update BIND version for release

12 months agonew: doc: Prepare documentation for BIND 9.21.8
Michał Kępień [Thu, 8 May 2025 21:08:02 +0000 (21:08 +0000)] 
new: doc: Prepare documentation for BIND 9.21.8

Merge branch 'michal/prepare-documentation-for-bind-9.21.8' into 'v9.21.8-release'

See merge request isc-private/bind9!796

12 months agoReorder release notes
Michał Kępień [Thu, 8 May 2025 20:51:59 +0000 (22:51 +0200)] 
Reorder release notes

12 months agoTweak and reword release notes
Michał Kępień [Thu, 8 May 2025 20:51:59 +0000 (22:51 +0200)] 
Tweak and reword release notes

12 months agoPrepare release notes for BIND 9.21.8
Michał Kępień [Thu, 8 May 2025 20:51:59 +0000 (22:51 +0200)] 
Prepare release notes for BIND 9.21.8

12 months agoGenerate changelog for BIND 9.21.8
Michał Kępień [Thu, 8 May 2025 20:51:59 +0000 (22:51 +0200)] 
Generate changelog for BIND 9.21.8

12 months ago[CVE-2025-40775] sec: usr: Prevent assertion when processing TSIG algorithm
Michał Kępień [Thu, 8 May 2025 20:45:48 +0000 (22:45 +0200)] 
[CVE-2025-40775] sec: usr: Prevent assertion when processing TSIG algorithm

DNS messages that included a Transaction Signature (TSIG) containing an
invalid value in the algorithm field caused :iscman:`named` to crash
with an assertion failure. This has been fixed.  :cve:`2025-40775`

See isc-projects/bind9#5300

Merge branch '5300-confidential-tsig-unknown-alg' into 'v9.21.8-release'

See merge request isc-private/bind9!793

12 months agoPrevent assertion when processing TSIG algorithm
Evan Hunt [Fri, 25 Apr 2025 22:17:44 +0000 (15:17 -0700)] 
Prevent assertion when processing TSIG algorithm

In a previous change, the "algorithm" value passed to
dns_tsigkey_create() was changed from a DNS name to an integer;
the name was then chosen from a table of known algorithms. A
side effect of this change was that a query using an unknown TSIG
algorithm was no longer handled correctly, and could trigger an
assertion failure.  This has been corrected.

The dns_tsigkey struct now stores the signing algorithm
as dst_algorithm_t value 'alg' instead of as a dns_name,
but retains an 'algname' field, which is used only when the
algorithm is DST_ALG_UNKNOWN.  This allows the name of the
unrecognized algorithm name to be returned in a BADKEY
response.

12 months agofix: usr: Return the correct NSEC3 records for NXDOMAIN responses
Michał Kępień [Thu, 8 May 2025 20:42:09 +0000 (20:42 +0000)] 
fix: usr: Return the correct NSEC3 records for NXDOMAIN responses

The wrong NSEC3 records were sometimes returned as proof that the QNAME
did not exist. This has been fixed.

Closes #5292

Merge branch '5292-wrong-nsec3-chosen-for-no-qname-proof' into 'main'

See merge request isc-projects/bind9!10447

12 months agoWrong NSEC3 chosen for NO QNAME proof
Mark Andrews [Tue, 22 Apr 2025 08:39:59 +0000 (18:39 +1000)] 
Wrong NSEC3 chosen for NO QNAME proof

When we optimised the closest encloser NSEC3 discovery the maxlabels
variable was used in the binary search. The updated value was later
used to add the NO QNAME NSEC3 but that block of code needed the
original value. This resulted in the wrong NSEC3 sometimes being
chosen to perform this role.

12 months agochg: ci: Run linkchecker only on Wednesdays
Michal Nowak [Mon, 5 May 2025 14:53:16 +0000 (14:53 +0000)] 
chg: ci: Run linkchecker only on Wednesdays

Some domains tested by linkchecker may think that we connect to them too
often and will refuse connection or reply with an error code, which makes
this job fail. Let's check links only on Wednesdays.

Merge branch 'mnowak/run-linkchecker-only-sometimes' into 'main'

See merge request isc-projects/bind9!10439

12 months agoRun linkchecker only on Wednesdays
Michal Nowak [Mon, 5 May 2025 10:57:47 +0000 (12:57 +0200)] 
Run linkchecker only on Wednesdays

Some domains tested by linkchecker may think that we connect to them too
often and will refuse connection or reply with and error code, which
makes this job fail. Let's check links only on Wednesdays.

12 months agochg: ci: Disable linkcheck on www.gnu.org
Michal Nowak [Mon, 5 May 2025 10:00:01 +0000 (10:00 +0000)] 
chg: ci: Disable linkcheck on www.gnu.org

The check fails with the following error for some time:

    broken    https://www.gnu.org/software/libidn/#libidn2 - HTTPSConnectionPool(host='www.gnu.org', port=443): Max retries exceeded with url: /software/libidn/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f5bd4c14590>: Failed to establish a new connection: [Errno 111] Connection refused'))

Merge branch 'mnowak/linkcheck-disable-www-gnu-org' into 'main'

See merge request isc-projects/bind9!10436

12 months agoDisable linkcheck on www.gnu.org
Michal Nowak [Mon, 5 May 2025 09:50:03 +0000 (11:50 +0200)] 
Disable linkcheck on www.gnu.org

The check fails with the following error for some time:

    broken    https://www.gnu.org/software/libidn/#libidn2 - HTTPSConnectionPool(host='www.gnu.org', port=443): Max retries exceeded with url: /software/libidn/ (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f5bd4c14590>: Failed to establish a new connection: [Errno 111] Connection refused'))

12 months agofix: dev: fix the ksr two-tone test
Mark Andrews [Fri, 2 May 2025 07:09:56 +0000 (07:09 +0000)] 
fix: dev: fix the ksr two-tone test

The two-tone ksr subtest (test_ksr_twotone) depended on the dnssec-policy keys algorithm values in named.conf being entered in numerical order.  As the algorithms used in the test can be selected randomly this does not always happen. Sort the dnssec-policy keys by algorithm when adding them to the key list from named.conf.

Closes #5286

Merge branch '5286-ksr-two-tone-test-only-work-by-luck' into 'main'

See merge request isc-projects/bind9!10395

12 months agoDon't depend on keys being sorted
Mark Andrews [Tue, 29 Apr 2025 06:59:15 +0000 (16:59 +1000)] 
Don't depend on keys being sorted

Extract each section of the bundle and check that the expected
records are there.  The old code was assuming that the records in
each section where in a particular order which didn't happen in
practice.

12 months agofix: dev: fix the error handling of put_yamlstr calls
Mark Andrews [Thu, 1 May 2025 06:17:42 +0000 (06:17 +0000)] 
fix: dev: fix the error handling of put_yamlstr calls

The return value was sometimes being ignored when it shouldn't
have been.

Closes #5301

Merge branch '5301-cid-550216-remove-dead-code' into 'main'

See merge request isc-projects/bind9!10432

12 months agoFix the error handling of put_yamlstr calls
Mark Andrews [Wed, 30 Apr 2025 05:37:56 +0000 (15:37 +1000)] 
Fix the error handling of put_yamlstr calls

The return value was sometimes being ignored when it shouldn't
have been.

12 months agochg: ci: Revise merge request pipeline job triggering rules
Michał Kępień [Tue, 29 Apr 2025 16:19:36 +0000 (16:19 +0000)] 
chg: ci: Revise merge request pipeline job triggering rules

Over the past few years, some of the initial decisions made about which
GitLab CI jobs to run for all merge requests and which of them to run
just for scheduled/web-triggered pipelines turned out to be less than
ideal in practice: test coverage was found to be too lax in some areas
and on the other hand unnecessarily repetitive in others.  For example,
compilation failures for certain build types that are not exercised for
every merge request (e.g. FIPS-enabled builds) turned out to be much
more common in practice than e.g. test failures happening only on a
subset of releases of a given Linux distribution.

To limit excessive resource use while retaining broad test coverage,
adjust GitLab CI job triggering rules for merge request pipelines as
follows:

- run all possible build jobs for every merge request; compilation
failures triggered for build flavors that were only tested in
scheduled pipelines turned out to be surprisingly commonplace and
became a nuisance over time, particularly given that the run times
of build jobs are much lower than those of test jobs,

- for every merge request, run at least one system & unit test job for
each build flavor (e.g. sanitizer-enabled, FIPS-enabled,
out-of-tree, tarball-based, etc.),

- limit the amount of test jobs run for each distinct operating
system; for example, only run system & unit test jobs for Ubuntu
24.04 Noble Numbat in merge request pipelines, skipping those for
Ubuntu 22.04 Jammy Jellyfish and Ubuntu 20.04 Focal Fossa (while
still running them in other pipeline types, e.g. in scheduled
pipelines),

- ensure every merge request is tested on Oracle Linux 8, which is the
operating system with the oldest package versions out of the systems
that are still supported by this BIND 9 branch,

- decrease the number of test jobs run with sanitizers enabled while
still testing with both ASAN and TSAN and both GCC and Clang for
every merge request.

These changes do not affect the set of jobs created for any other
pipeline type (triggered by a schedule, by a GitLab API call, by the web
interface, etc.); only merge request pipelines are affected.

---

Since understanding the impact of this MR just by looking at the diff is
arguably challenging, I prepared some tables showing which jobs are
currently triggered for every merge request and what the new state of
things will be after this MR gets merged.

**Legend:**

  - :chart_with_upwards_trend: - job was *not* run for every merge
    request before, but will be

  - :chart_with_downwards_trend: - job was run for every merge request
    before, but will *not* be any longer

| Change | Job | Stage | Before | After | cff39d32455 | 2f1995c7136 / 4ad8c86cf2b |
| ------ | --- | ----- | ------ | ----- | ----------- | ----------- |
| | `docs` |  `docs` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `docs:tarball` |  `docs` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `clang:asan` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `clang:bookworm:amd64` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `clang:freebsd13:amd64` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `clang:freebsd14:amd64` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `clang:openbsd:amd64` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `clang:tsan` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| :chart_with_upwards_trend:| `gcc:8fips:amd64` |  `build` | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| :chart_with_upwards_trend:| `gcc:9fips:amd64` |  `build` | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `gcc:alpine3.21:amd64` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `gcc:asan` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `gcc:bookworm:amd64` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `gcc:bookworm:amd64cross32` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `gcc:bookworm:rbt:amd64` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `gcc:focal:amd64` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `gcc:jammy:amd64` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `gcc:noble:amd64` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `gcc:oraclelinux8:amd64` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `gcc:oraclelinux9:amd64` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `gcc:ossl3:sid:amd64` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `gcc:out-of-tree` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `gcc:sid:amd64` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `gcc:tarball` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `gcc:tarball:nosphinx` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `gcc:tsan` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `gcc:tumbleweed:amd64` |  `build` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `cross-version-config-tests` |  `system` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `respdiff` |  `system` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `respdiff-third-party` |  `system` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `respdiff:asan` |  `system` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `respdiff:tsan` |  `system` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| :chart_with_downwards_trend:| `system:clang:asan` |  `system` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
| :chart_with_downwards_trend:| `system:clang:bookworm:amd64` |  `system` | :white_check_mark: | :x: | :x: | :x: |
| :chart_with_downwards_trend:| `system:clang:freebsd13:amd64` |  `system` | :white_check_mark: | :x: | :x: | :x: |
| | `system:clang:freebsd14:amd64` |  `system` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `system:clang:tsan` |  `system` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| :chart_with_upwards_trend:| `system:gcc:8fips:amd64` |  `system` | :x: | :x: | :white_check_mark: | :white_check_mark: |
| | `system:gcc:9fips:amd64` |  `system` | :x: | :white_check_mark: | :x: | :x: |
| | `system:gcc:alpine3.21:amd64` |  `system` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `system:gcc:asan` |  `system` | :white_check_mark: | :x: | :x: | :white_check_mark: |
| | `system:gcc:bookworm:amd64` |  `system` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `system:gcc:bookworm:rbt:amd64` |  `system` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| :chart_with_downwards_trend:| `system:gcc:focal:amd64` |  `system` | :white_check_mark: | :x: | :x: | :x: |
| :chart_with_downwards_trend:| `system:gcc:jammy:amd64` |  `system` | :white_check_mark: | :x: | :x: | :x: |
| | `system:gcc:noble:amd64` |  `system` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| :chart_with_downwards_trend:| `system:gcc:oraclelinux8:amd64` |  `system` | :white_check_mark: | :x: | :x: | :x: |
| | `system:gcc:oraclelinux9:amd64` |  `system` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `system:gcc:ossl3:sid:amd64` |  `system` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| :chart_with_upwards_trend:| `system:gcc:out-of-tree` |  `system` | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| :chart_with_downwards_trend:| `system:gcc:sid:amd64` |  `system` | :white_check_mark: | :x: | :x: | :x: |
| :chart_with_upwards_trend:| `system:gcc:tarball` |  `system` | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| :chart_with_downwards_trend:| `system:gcc:tsan` |  `system` | :white_check_mark: | :x: | :x: | :x: |
| | `system:gcc:tumbleweed:amd64` |  `system` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| :chart_with_downwards_trend:| `unit:clang:asan` |  `unit` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :x: |
| :chart_with_downwards_trend:| `unit:clang:bookworm:amd64` |  `unit` | :white_check_mark: | :x: | :x: | :x: |
| :chart_with_downwards_trend:| `unit:clang:freebsd13:amd64` |  `unit` | :white_check_mark: | :x: | :x: | :x: |
| | `unit:clang:freebsd14:amd64` |  `unit` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `unit:clang:openbsd:amd64` |  `unit` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `unit:clang:tsan` |  `unit` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| :chart_with_upwards_trend:| `unit:gcc:8fips:amd64` |  `unit` | :x: | :x: | :white_check_mark: | :white_check_mark: |
| | `unit:gcc:9fips:amd64` |  `unit` | :x: | :white_check_mark: | :x: | :x: |
| | `unit:gcc:alpine3.21:amd64` |  `unit` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `unit:gcc:asan` |  `unit` | :white_check_mark: | :x: | :x: | :white_check_mark: |
| | `unit:gcc:bookworm:amd64` |  `unit` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `unit:gcc:bookworm:rbt:amd64` |  `unit` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| :chart_with_downwards_trend:| `unit:gcc:focal:amd64` |  `unit` | :white_check_mark: | :x: | :x: | :x: |
| :chart_with_downwards_trend:| `unit:gcc:jammy:amd64` |  `unit` | :white_check_mark: | :x: | :x: | :x: |
| | `unit:gcc:noble:amd64` |  `unit` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| :chart_with_downwards_trend:| `unit:gcc:oraclelinux8:amd64` |  `unit` | :white_check_mark: | :x: | :x: | :x: |
| | `unit:gcc:oraclelinux9:amd64` |  `unit` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| | `unit:gcc:ossl3:amd64` |  `unit` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| :chart_with_upwards_trend:| `unit:gcc:out-of-tree` |  `unit` | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| :chart_with_downwards_trend:| `unit:gcc:sid:amd64` |  `unit` | :white_check_mark: | :x: | :x: | :x: |
| :chart_with_upwards_trend:| `unit:gcc:tarball` |  `unit` | :x: | :white_check_mark: | :white_check_mark: | :white_check_mark: |
| :chart_with_downwards_trend:| `unit:gcc:tsan` |  `unit` | :white_check_mark: | :x: | :x: | :x: |
| | `unit:gcc:tumbleweed:amd64` |  `unit` | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: |

And a short statistical summary of the changes proposed:

| Stage | Before | After | Diff |
| ----- | ------ | ----- | ---- |
| `docs` | 2 | 2 | **0** |
| `build` | 23 | 25 | **+2** |
| `system` | 23 | 18 | **-5** |
| `unit` | 19 | 14 | **-5** |
| **TOTAL** | **67** | **59** | **-8** |

Mattermost thread (sparked by @pspacek):
https://mattermost.isc.org/isc/pl/z6nymnu4m3dhzr3rxtjkzzgk7a

Merge branch 'michal/revise-ci-job-triggering-rules' into 'main'

See merge request isc-projects/bind9!10349

12 months agoRevise merge request pipeline job triggering rules
Michał Kępień [Tue, 29 Apr 2025 16:12:49 +0000 (18:12 +0200)] 
Revise merge request pipeline job triggering rules

Over the past few years, some of the initial decisions made about which
GitLab CI jobs to run for all merge requests and which of them to run
just for scheduled/web-triggered pipelines turned out to be less than
ideal in practice: test coverage was found to be too lax in some areas
and on the other hand unnecessarily repetitive in others.  For example,
compilation failures for certain build types that are not exercised for
every merge request (e.g. FIPS-enabled builds) turned out to be much
more common in practice than e.g. test failures happening only on a
subset of releases of a given Linux distribution.

To limit excessive resource use while retaining broad test coverage,
adjust GitLab CI job triggering rules for merge request pipelines as
follows:

  - run all possible build jobs for every merge request; compilation
    failures triggered for build flavors that were only tested in
    scheduled pipelines turned out to be surprisingly commonplace and
    became a nuisance over time, particularly given that the run times
    of build jobs are much lower than those of test jobs,

  - for every merge request, run at least one system & unit test job for
    each build flavor (e.g. sanitizer-enabled, FIPS-enabled,
    out-of-tree, tarball-based, etc.),

  - limit the amount of test jobs run for each distinct operating
    system; for example, only run system & unit test jobs for Ubuntu
    24.04 Noble Numbat in merge request pipelines, skipping those for
    Ubuntu 22.04 Jammy Jellyfish and Ubuntu 20.04 Focal Fossa (while
    still running them in other pipeline types, e.g. in scheduled
    pipelines),

  - ensure every merge request is tested on Oracle Linux 8, which is the
    operating system with the oldest package versions out of the systems
    that are still supported by this BIND 9 branch,

  - decrease the number of test jobs run with sanitizers enabled while
    still testing with both ASAN and TSAN and both GCC and Clang for
    every merge request.

These changes do not affect the set of jobs created for any other
pipeline type (triggered by a schedule, by a GitLab API call, by the web
interface, etc.); only merge request pipelines are affected.

12 months agorem: ci: Drop OpenBSD from the CI
Michal Nowak [Tue, 29 Apr 2025 10:55:28 +0000 (10:55 +0000)] 
rem: ci: Drop OpenBSD from the CI

With the ongoing process of moving CI workloads to AWS, OpenBSD poses a
challenge, as there is no OpenBSD AMI image in the AWS catalog. Building
our image from scratch is disproportionately complicated, given that
OpenBSD is not a common deployment platform for BIND 9. Otherwise,
OpenBSD stays at the "Best-Effort" level of support.

Merge branch 'mnowak/drop-openbsd-from-ci' into 'main'

See merge request isc-projects/bind9!10375

12 months agoDrop OpenBSD from the CI
Michal Nowak [Wed, 9 Apr 2025 12:05:42 +0000 (14:05 +0200)] 
Drop OpenBSD from the CI

With the ongoing process of moving CI workloads to AWS, OpenBSD poses a
challenge, as there is no OpenBSD AMI image in the AWS catalog. Building
our image from scratch is disproportionately complicated, given that
OpenBSD is not a common deployment platform for BIND 9. Otherwise,
OpenBSD stays at the "Best-Effort" level of support.

12 months agofix: dev: Call rcu_barrier earlier in the destructor
Alessio Podda [Fri, 25 Apr 2025 12:30:49 +0000 (12:30 +0000)] 
fix: dev: Call rcu_barrier earlier in the destructor

If a call_rcu thread is running, there is a possible race condition
where the destructors run before all call_rcu callbacks have finished
running. This can happen, for example, if the call_rcu callback tries to
log something after the logging context has been torn down.

In !10394, we tried to counter this by explicitely creating a call_rcu
thread an shutting it down before running the destructors, but it is
possible for things to "slip" and end up on the default call_rcu thread.

As a quickfix, this commit moves an rcu_barrier() that was in the mem
context destructor earlier, so that it "protects" all libisc
destructors.

Closes #5296

Merge branch '5296-join-rcu-thread-on-shutdown' into 'main'

See merge request isc-projects/bind9!10423

12 months agoCall rcu_barrier earlier in the destructor
Your Name [Fri, 25 Apr 2025 08:41:29 +0000 (10:41 +0200)] 
Call rcu_barrier earlier in the destructor

If a call_rcu thread is running, there is a possible race condition
where the destructors run before all call_rcu callbacks have finished
running. This can happen, for example, if the call_rcu callback tries to
log something after the logging context has been torn down.

In !10394, we tried to counter this by explicitely creating a call_rcu
thread an shutting it down before running the destructors, but it is
possible for things to "slip" and end up on the default call_rcu thread.

As a quickfix, this commit moves an rcu_barrier() that was in the mem
context destructor earlier, so that it "protects" all libisc
destructors.

12 months agochg: test: Rewrite kasp system test to pytest (4)
Matthijs Mekking [Fri, 25 Apr 2025 10:23:59 +0000 (10:23 +0000)] 
chg: test: Rewrite kasp system test to pytest (4)

These tests do not easily fit in the standard test case framework, so they go into their own suite.
- zsk retired case
- checkds cases
- reload/restart
- inheritance tests

Merge branch 'matthijs-pytest-rewrite-kasp-system-test-4' into 'main'

See merge request isc-projects/bind9!10278

12 months agoConvert kasp inheritance tests
Matthijs Mekking [Mon, 17 Mar 2025 16:16:29 +0000 (17:16 +0100)] 
Convert kasp inheritance tests

These tests ensure that if dnssec-policy is set on a higher level, the
zone is still signed (or unsigned) as expected. Or if a higher level
has an override, the new policy is honored as expected.