]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
2 years agoMerge branch '2471-test-three-is-a-crowd-v9_16' into 'bind-9.16'
Matthijs Mekking [Thu, 6 Jul 2023 09:46:28 +0000 (09:46 +0000)] 
Merge branch '2471-test-three-is-a-crowd-v9_16' into 'bind-9.16'

[9.16] Add "three is a crowd" test case

See merge request isc-projects/bind9!8087

2 years agoAdd test for "three is a crowd" bug (GL #2375)
Matthijs Mekking [Tue, 27 Jun 2023 14:29:50 +0000 (16:29 +0200)] 
Add test for "three is a crowd" bug (GL #2375)

Add this test scenario for a bug fixed a while ago. When a third key is
introduced while the previous rollover hasn't finished yet, the keymgr
could decide to remove the first two keys, because it was not checking
for an indirect dependency on the keys.

In other words, the previous bug behavior was that the first two keys
were removed from the zone too soon.

This test case checks that all three keys stay in the zone, and no keys
are removed premature after another new key has been introduced.

(cherry picked from commit 9c40cf05667075990e13e78787c8a8f356e21793)

2 years agoCheck all keys despite early failure
Matthijs Mekking [Tue, 27 Jun 2023 14:27:35 +0000 (16:27 +0200)] 
Check all keys despite early failure

In the kasp script, if one expected key is not found, continue checking
the other key ids, even if there is no match for the first one.  This
provides a bit more information which keys mismatch and makes for
easier debugging test failures.

(cherry picked from commit 674249f66a5c41d6742aebb2461ba0659c01eee7)

2 years agoMerge branch '4169-add-google-site-verification-tag-to-the-toc-page-9.16' into 'bind...
Michał Kępień [Thu, 29 Jun 2023 16:50:53 +0000 (16:50 +0000)] 
Merge branch '4169-add-google-site-verification-tag-to-the-toc-page-9.16' into 'bind-9.16'

[9.16] Add Google Site Verification tag to the TOC page

See merge request isc-projects/bind9!8078

2 years agoAdd Google Site Verification tag to the TOC page
Michał Kępień [Thu, 29 Jun 2023 16:32:50 +0000 (18:32 +0200)] 
Add Google Site Verification tag to the TOC page

This should allow tracking HTTP 404 errors for Read the Docs using the
Google Search Console.

(cherry picked from commit 13c35ab0b3e7a58f863c5f7765449e34c1cc4e5a)

2 years agoMerge branch 'tkrizek-disable-delv-in-tsan-9.16' into 'bind-9.16'
Tom Krizek [Thu, 29 Jun 2023 13:42:33 +0000 (13:42 +0000)] 
Merge branch 'tkrizek-disable-delv-in-tsan-9.16' into 'bind-9.16'

[9.16] Disable delv tests under TSAN

See merge request isc-projects/bind9!8072

2 years agoCheck for unset variables only after conf.sh is loaded
Tom Krizek [Mon, 26 Jun 2023 16:59:32 +0000 (18:59 +0200)] 
Check for unset variables only after conf.sh is loaded

Make the cds/setup.sh compatible with the workaround which relies on
testing the TSAN_OPTIONS variable which may not be set.

(cherry picked from commit 76d9873ef6dd00eb6bd16cfe19d9972e89a9d846)

2 years agoFix checking for executables in shell conditions in tests
Tom Krizek [Mon, 26 Jun 2023 15:14:16 +0000 (17:14 +0200)] 
Fix checking for executables in shell conditions in tests

Surround the variables which are checked whether they're executable in
double quotes. Without them, empty paths won't be properly interpreted
as not executable.

(manually picked from commit 06056c44a7bebc50b6e32ca5baa3c396ae4e948f)

2 years agoOnly use delv if available in mkeys test
Tom Krizek [Mon, 26 Jun 2023 14:46:27 +0000 (16:46 +0200)] 
Only use delv if available in mkeys test

Check that $DELV is an executable before using it in a test.

(cherry picked from commit 384339dbba6e262e734095f7ea2c39ab7771fedb)

2 years agoDisable delv tests under TSAN
Tom Krizek [Mon, 26 Jun 2023 14:40:03 +0000 (16:40 +0200)] 
Disable delv tests under TSAN

Since delv can occasionally hang in system tests when running with TSAN
(see GL#4119), disable these tests as a workaround. Otherwise, the hung
delv process will just waste CI resources and prevent any meaningful
output from the rest of the test suite.

(cherry picked from commit fbcf37f914ed83cab374e01d13e0ce302c87ab52)

2 years agoMerge branch 'tkrizek-system-test-fixes-9.16' into 'bind-9.16'
Tom Krizek [Mon, 26 Jun 2023 13:44:25 +0000 (13:44 +0000)] 
Merge branch 'tkrizek-system-test-fixes-9.16' into 'bind-9.16'

[9.16] Fix a couple of oversights in system tests

See merge request isc-projects/bind9!8057

2 years agoCheck for proper file size output in dnstap test
Tom Krizek [Thu, 22 Jun 2023 16:08:17 +0000 (18:08 +0200)] 
Check for proper file size output in dnstap test

Previously, the first check silently failed, as 450 is apparently (in
the CI) the minimum output size for the dnstap output, rather than
470 which the test was expecting. Effectively, the check served as a 5
second sleep rather than waiting for the proper file size.

Additionally, check the expected file sizes and fail if expectations
aren't met.

(manually picked from commit 5f809e50b6a8441592fdf6d0fd8aa69668a25439)

On main, the minimum file size seems to 454 bytes, while on some
platforms in our CI setup for the 9.16 branch, it appears to be 450
instead.

2 years agoCheck for proper log message in kasp test
Tom Krizek [Thu, 22 Jun 2023 15:57:22 +0000 (17:57 +0200)] 
Check for proper log message in kasp test

The log message is supposed to contain the zone name which was
erroneously omitted, but didn't pop up during tests, since return code
was silently ignored.

Now it actually waits for the proper log message rather than being an
equivalent of 3 second sleep (which was also sufficient to make the test
pass, thus we detected no failure).

(cherry picked from commit 1dd4c2b9e2649f8dc41335e15180c0dc5ad4efbb)

2 years agoMerge tag 'v9.16.42' into bind-9.16
Michal Nowak [Wed, 21 Jun 2023 18:24:59 +0000 (20:24 +0200)] 
Merge tag 'v9.16.42' into bind-9.16

BIND 9.16.42

2 years agoMerge branch '2354-add-a-tool-for-reproducing-isc-spnego-bugs-9.16' into 'bind-9.16'
Michał Kępień [Mon, 19 Jun 2023 09:09:08 +0000 (09:09 +0000)] 
Merge branch '2354-add-a-tool-for-reproducing-isc-spnego-bugs-9.16' into 'bind-9.16'

[9.16] [CVE-2020-8625] [CVE-2021-25216] Add a tool for reproducing ISC SPNEGO bugs

See merge request isc-projects/bind9!8043

2 years agoAdd a tool for reproducing ISC SPNEGO bugs
Michał Kępień [Mon, 19 Jun 2023 07:20:03 +0000 (09:20 +0200)] 
Add a tool for reproducing ISC SPNEGO bugs

Extend the "tsiggss" system test with reproducers for CVE-2020-8625 and
CVE-2021-25216.

(cherry picked from commit a47dc810f7f5f04ae474da7beddd03d02e8e4d6c)

2 years agoMerge branch '4150-fix-entity-renumbering-in-parse_tsan.py-9.16' into 'bind-9.16'
Michał Kępień [Thu, 15 Jun 2023 14:23:04 +0000 (14:23 +0000)] 
Merge branch '4150-fix-entity-renumbering-in-parse_tsan.py-9.16' into 'bind-9.16'

[9.16] Fix entity renumbering in util/parse_tsan.py

See merge request isc-projects/bind9!8040

2 years agoFix entity renumbering in util/parse_tsan.py
Michał Kępień [Thu, 15 Jun 2023 14:17:14 +0000 (16:17 +0200)] 
Fix entity renumbering in util/parse_tsan.py

util/parse_tsan.py builds tables of mutexes, threads, and pointers it
finds in the TSAN report provided to it as a command-line argument and
then replaces all mentions of each of these entities so that they are
numbered sequentially in the processed report.  For example, this line:

    Cycle in lock order graph: M0 (...) => M5 (...) => M9 (...) => M0

is expected to become:

    Cycle in lock order graph: M1 (...) => M2 (...) => M3 (...) => M1

Problems arise when the gaps between mutex/thread identifiers present on
a single line are smaller than the total number of mutexes/threads found
by the script so far.  For example, the following line:

    Cycle in lock order graph: M0 (...) => M1 (...) => M2 (...) => M0

first gets turned into:

    Cycle in lock order graph: M1 (...) => M1 (...) => M2 (...) => M1

and then into:

    Cycle in lock order graph: M2 (...) => M2 (...) => M2 (...) => M2

In other words, lines like this become garbled due to information loss.

The problem stems from the fact that the numbering scheme the script
uses for identifying mutexes and threads is exactly the same as the one
used by TSAN itself.  Update util/parse_tsan.py so that it uses
zero-padded numbers instead, making the "overlapping" demonstrated above
impossible.

(cherry picked from commit 7f0790c82f4e54ceecba28d2969aa0d979d434d3)

2 years agoMerge branch 'tkrizek/respdiff-threshold-9.16' into 'bind-9.16'
Tom Krizek [Thu, 15 Jun 2023 08:19:13 +0000 (08:19 +0000)] 
Merge branch 'tkrizek/respdiff-threshold-9.16' into 'bind-9.16'

Adjust the respdiff failure threshold for a new dataset

See merge request isc-projects/bind9!8032

2 years agoAdjust the respdiff failure threshold for a new dataset
Tom Krizek [Fri, 2 Jun 2023 08:53:42 +0000 (10:53 +0200)] 
Adjust the respdiff failure threshold for a new dataset

This is just a slight tweak for the respdiff CI test. The new dataset
has a different set of queries and it results in a slightly more
SERVFAILs rather than timeouts in the respdiff-long-third-party test.

In our comparison script, timeouts are not counted towards the
threshold. While the total number of differences remains roughly the
same, the different distributions of them (among SERVFAIL vs timeout)
warrants a slight bump in the threshold in order to avoid test failures.

Related isc-private/bind-qa!65

2 years agoMerge branch '4117-serve-stale-check-9.16' into 'bind-9.16'
Tom Krizek [Tue, 13 Jun 2023 12:54:30 +0000 (12:54 +0000)] 
Merge branch '4117-serve-stale-check-9.16' into 'bind-9.16'

[9.16] Avoid false positive in serve-stale system test check

See merge request isc-projects/bind9!8028

2 years agoAvoid false positive in serve-stale system test check
Tom Krizek [Tue, 13 Jun 2023 08:52:01 +0000 (10:52 +0200)] 
Avoid false positive in serve-stale system test check

The purpose of the check is to verify the server has survived the
previous barrage of queries. This is done by sending a query and
checking we get a NOERROR response back.

Previously, that query could've been affected by a servfail cache - the
server would return a SERVFAIL answer, thus failing the check, despite
being up and running. Use version.bind txt ch query to avoid the
interference of servfail cache.

(cherry picked from commit dd7bcd2855888969778910deaac47aa54786c877)

2 years agoMerge branch 'mnowak/set-up-version-and-release-notes-for-bind-9.16.43' into 'bind...
Michal Nowak [Mon, 12 Jun 2023 15:17:44 +0000 (15:17 +0000)] 
Merge branch 'mnowak/set-up-version-and-release-notes-for-bind-9.16.43' into 'bind-9.16'

Set up version and release notes for BIND 9.16.43

See merge request isc-projects/bind9!8023

2 years agoSet up release notes for BIND 9.16.43
Michal Nowak [Mon, 12 Jun 2023 14:37:04 +0000 (16:37 +0200)] 
Set up release notes for BIND 9.16.43

2 years agoUpdate BIND version to 9.16.43-dev
Michal Nowak [Mon, 12 Jun 2023 14:36:18 +0000 (16:36 +0200)] 
Update BIND version to 9.16.43-dev

2 years agoprep 9.16.42 v9.16.42
Michal Nowak [Fri, 9 Jun 2023 14:35:17 +0000 (16:35 +0200)] 
prep 9.16.42

2 years agoMerge branch 'mnowak/prepare-documentation-for-bind-9.16.42' into 'security-bind...
Michal Nowak [Fri, 9 Jun 2023 14:32:44 +0000 (14:32 +0000)] 
Merge branch 'mnowak/prepare-documentation-for-bind-9.16.42' into 'security-bind-9.16'

Prepare documentation for BIND 9.16.42

See merge request isc-private/bind9!544

2 years agoTweak and reword release notes
Michal Nowak [Fri, 9 Jun 2023 14:18:38 +0000 (16:18 +0200)] 
Tweak and reword release notes

2 years agoPrepare release notes for BIND 9.16.42
Michal Nowak [Fri, 9 Jun 2023 14:13:28 +0000 (16:13 +0200)] 
Prepare release notes for BIND 9.16.42

2 years agoMerge branch '4089-confidential-stale-query-loop-bind-9.16' into 'security-bind-9.16'
Michal Nowak [Fri, 9 Jun 2023 14:01:35 +0000 (14:01 +0000)] 
Merge branch '4089-confidential-stale-query-loop-bind-9.16' into 'security-bind-9.16'

[9.16] [CVE-2023-2911] Fix stale-answer-client-timeout 0 crash

See merge request isc-private/bind9!533

2 years agoCHANGES and release notes for [GL #4089]
Evan Hunt [Wed, 31 May 2023 19:47:31 +0000 (12:47 -0700)] 
CHANGES and release notes for [GL #4089]

2 years agoFix serve-stale hang at shutdown
Matthijs Mekking [Thu, 1 Jun 2023 08:03:48 +0000 (10:03 +0200)] 
Fix serve-stale hang at shutdown

The 'refresh_rrset' variable is used to determine if we can detach from
the client. This can cause a hang on shutdown. To fix this, move setting
of the 'nodetach' variable up to where 'refresh_rrset' is set (in
query_lookup(), and thus not in ns_query_done()), and set it to false
when actually refreshing the RRset, so that when this lookup is
completed, the client will be detached.

2 years agoStale answer lookups could loop when over recursion quota
Evan Hunt [Fri, 26 May 2023 06:53:50 +0000 (23:53 -0700)] 
Stale answer lookups could loop when over recursion quota

When a query was aborted because of the recursion quota being exceeded,
but triggered a stale answer response and a stale data refresh query,
it could cause named to loop back where we are iterating and following
a delegation. Having no good answer in cache, we would fall back to
using serve-stale again, use the stale data, try to refresh the RRset,
and loop back again, without ever terminating until crashing due to
stack overflow.

This happens because in the functions 'query_notfound()' and
'query_delegation_recurse()', we check whether we can fall back to
serving stale data. We shouldn't do so if we are already refreshing
an RRset due to having prioritized stale data in cache.

In other words, we need to add an extra check to 'query_usestale()' to
disallow serving stale data if we are currently refreshing a stale
RRset.

As an additional mitigation to prevent looping, we now use the result
code ISC_R_ALREADYRUNNING rather than ISC_R_FAILURE when a recursion
loop is encountered, and we check for that condition in
'query_usestale()' as well.

2 years agoMerge branch '4055-improve-the-overmem-cache-cleaning-9.16' into 'security-bind-9.16'
Michal Nowak [Fri, 9 Jun 2023 13:49:34 +0000 (13:49 +0000)] 
Merge branch '4055-improve-the-overmem-cache-cleaning-9.16' into 'security-bind-9.16'

[9.16] Improve RBT overmem cache cleaning

See merge request isc-private/bind9!528

2 years agoSet max-cache-size expectations for low values
Michal Nowak [Wed, 7 Jun 2023 12:03:01 +0000 (14:03 +0200)] 
Set max-cache-size expectations for low values

2 years agoAdd CHANGES and release note for [GL #4055]
Ondřej Surý [Thu, 1 Jun 2023 13:46:23 +0000 (15:46 +0200)] 
Add CHANGES and release note for [GL #4055]

3 years agoImprove RBT overmem cache cleaning
Ondřej Surý [Tue, 30 May 2023 06:46:17 +0000 (08:46 +0200)] 
Improve RBT overmem cache cleaning

When cache memory usage is over the configured cache size (overmem) and
we are cleaning unused entries, it might not be enough to clean just two
entries if the entries to be expired are smaller than the newly added
rdata.  This could be abused by an attacker to cause a remote Denial of
Service by possibly running out of the operating system memory.

Currently, the addrdataset() tries to do a single TTL-based cleaning
considering the serve-stale TTL and then optionally moves to overmem
cleaning if we are in that condition.  Then the overmem_purge() tries to
do another single TTL based cleaning from the TTL heap and then continue
with LRU-based cleaning up to 2 entries cleaned.

Squash the TTL-cleaning mechanism into single call from addrdataset(),
but ignore the serve-stale TTL if we are currently overmem.

Then instead of having a fixed number of entries to clean, pass the size
of newly added rdatasetheader to the overmem_purge() function and
cleanup at least the size of the newly added data.  This prevents the
cache going over the configured memory limit (`max-cache-size`).

Additionally, refactor the overmem_purge() function to reduce for-loop
nesting for readability.

3 years agoMerge branch '4114-include-doc-bind-9.16' into 'bind-9.16'
Evan Hunt [Mon, 5 Jun 2023 19:25:54 +0000 (19:25 +0000)] 
Merge branch '4114-include-doc-bind-9.16' into 'bind-9.16'

remove accidentally-backported "include" doc

See merge request isc-projects/bind9!8001

3 years agoremove accidentally-backported "include" doc
Evan Hunt [Mon, 5 Jun 2023 19:05:35 +0000 (12:05 -0700)] 
remove accidentally-backported "include" doc

glob-expansion of filenames in "include" statements was added
in bind 9.18 but was accidentally mentioned in the bind 9.16 ARM.

3 years agoMerge branch 'mnowak/windows-disable-minimal-update-check-with-no-keys' into 'bind...
Michal Nowak [Thu, 1 Jun 2023 15:43:07 +0000 (15:43 +0000)] 
Merge branch 'mnowak/windows-disable-minimal-update-check-with-no-keys' into 'bind-9.16'

Disable minimal update check with no keys on Windows

See merge request isc-projects/bind9!7996

3 years agoDisable minimal update check with no keys on Windows
Michal Nowak [Wed, 31 May 2023 11:14:19 +0000 (13:14 +0200)] 
Disable minimal update check with no keys on Windows

The $t1 value equals $t2 due to the time elapsed between "rndc
managed-keys status" calls being equal to the normal active refresh
period (as calculated per rules listed in RFC 5011 section 2.3) minus an
"hour" (as set using -T mkeytimers). This value equality is expected to
happen on really slow machines. On our Windows CI runner, it happens
very often.

3 years agoMerge branch 'mnowak/alpine-3.18-9.16' into 'bind-9.16'
Michal Nowak [Wed, 31 May 2023 10:16:33 +0000 (10:16 +0000)] 
Merge branch 'mnowak/alpine-3.18-9.16' into 'bind-9.16'

[9.16] Add Alpine Linux 3.18

See merge request isc-projects/bind9!7995

3 years agoAdd Alpine Linux 3.18
Michal Nowak [Mon, 29 May 2023 13:48:56 +0000 (15:48 +0200)] 
Add Alpine Linux 3.18

(cherry picked from commit ddb846454dc9c8d1ef4f4d22bda23e82bbbfbe02)

3 years agoMerge branch '4034-heap-use-after-free-error-workaround' into 'bind-9.16'
Michal Nowak [Wed, 31 May 2023 09:41:16 +0000 (09:41 +0000)] 
Merge branch '4034-heap-use-after-free-error-workaround' into 'bind-9.16'

Workaround heap-use-after-free error in process_sendevent()

See merge request isc-projects/bind9!7979

3 years agoWorkaround heap-use-after-free error in process_sendevent()
Michal Nowak [Mon, 29 May 2023 13:41:15 +0000 (15:41 +0200)] 
Workaround heap-use-after-free error in process_sendevent()

This is a workaround of a permanent CI failure after GitLab CI migration
to AWS.

3 years agoMerge branch 'mnowak/custom-userspace-rcu-library-9.16' into 'bind-9.16'
Michal Nowak [Tue, 30 May 2023 19:27:34 +0000 (19:27 +0000)] 
Merge branch 'mnowak/custom-userspace-rcu-library-9.16' into 'bind-9.16'

[9.16] Change images for TSAN jobs

See merge request isc-projects/bind9!7988

3 years agoChange images for TSAN jobs
Michal Nowak [Fri, 26 May 2023 08:50:58 +0000 (10:50 +0200)] 
Change images for TSAN jobs

Fedora 38 and Debian "bullseye" images were "forked" to images used only
for TSAN CI jobs. The new images contain TSAN-aware liburcu that does
not fit well with ASAN CI jobs for which original images were also used.

liburcu is not used in this branch, but images are shared among
branches, and their use needs to be consistent in all maintained
branches.

(cherry picked from commit 04dda8661f50917e392f5237363a7c9a823e94df)

3 years agoMerge branch '3950-serve-stale-strikes-again-v9.16' into 'bind-9.16'
Matthijs Mekking [Tue, 30 May 2023 15:06:51 +0000 (15:06 +0000)] 
Merge branch '3950-serve-stale-strikes-again-v9.16' into 'bind-9.16'

[9.16] Fix serve-stale bug when cache has no data

See merge request isc-projects/bind9!7982

3 years agoAdd release note and changes for #3950
Matthijs Mekking [Mon, 1 May 2023 13:04:42 +0000 (15:04 +0200)] 
Add release note and changes for #3950

Fixing another serve-stale bug is still news.

(cherry picked from commit 23dbb6ba72c9c5cce6f703d44dc6eaed2005c982)

3 years agoFix serve-stale bug when cache has no data
Matthijs Mekking [Thu, 20 Apr 2023 14:22:53 +0000 (16:22 +0200)] 
Fix serve-stale bug when cache has no data

We recently fixed a bug where in some cases (when following an
expired CNAME for example), named could return SERVFAIL if the target
record is still valid (see isc-projects/bind9#3678, and
isc-projects/bind9!7096). We fixed this by considering non-stale
RRsets as well during the stale lookup.

However, this triggered a new bug because despite the answer from
cache not being stale, the lookup may be triggered by serve-stale.
If the answer from database is not stale, the fix in
isc-projects/bind9!7096 erroneously skips the serve-stale logic.

Add 'answer_found' checks to the serve-stale logic to fix this issue.

(cherry picked from commit bbd163acf67843c76099921e467dd0ef90f3f670)

3 years agoAdd serve-stale test case for GL #3950
Matthijs Mekking [Mon, 1 May 2023 12:46:29 +0000 (14:46 +0200)] 
Add serve-stale test case for GL #3950

Add a test case where when priming the cache with a slow authoritative
resolver, the stale-answer-client-timeout option should not return
a delegation to the client (it should wait until an applicable answer
is found, if no entry is found in the cache).

(cherry picked from commit c3d4fd34493501140ba1bd72afba4922ba55530a)

3 years agoMerge branch 'mnowak/gitlab-runner-autoscaling-9.16' into 'bind-9.16'
Michal Nowak [Fri, 26 May 2023 10:00:37 +0000 (10:00 +0000)] 
Merge branch 'mnowak/gitlab-runner-autoscaling-9.16' into 'bind-9.16'

[9.16] Run most Docker CI jobs in AWS with autoscaler

See merge request isc-projects/bind9!7970

3 years agoRun most Docker CI jobs in AWS with autoscaler
Michal Nowak [Wed, 17 May 2023 12:33:12 +0000 (14:33 +0200)] 
Run most Docker CI jobs in AWS with autoscaler

All but the "respdiff-long" job, for which our AWS instances do not have
enough memory, are now being spawned in the AWS by the autoscaler
executor.

(cherry picked from commit f09cf69594c6aab4d0c5608226424c566b833f3c)

3 years agoMerge branch 'mnowak/get_core_dumps-fix-misplaced-tsan-line-9.16' into 'bind-9.16'
Michal Nowak [Fri, 19 May 2023 12:58:52 +0000 (12:58 +0000)] 
Merge branch 'mnowak/get_core_dumps-fix-misplaced-tsan-line-9.16' into 'bind-9.16'

[9.16] TSAN summarising line was misplaced in run.sh

See merge request isc-projects/bind9!7950

3 years agoTSAN summarising line was misplaced in run.sh
Michal Nowak [Fri, 19 May 2023 08:03:22 +0000 (10:03 +0200)] 
TSAN summarising line was misplaced in run.sh

The line summarising TSAN reports was misplaced in the ASAN territory
and thus never used.

I also made core dumps, assertion failures, and TSAN reports detection
independent of each other.

(cherry picked from commit 0c4c7ddec446d3ea8d079855fe9ee514eefeba72)

3 years agoMerge branch 'mnowak/danger-test-pairwise-hint-9.16' into 'bind-9.16'
Michal Nowak [Fri, 19 May 2023 12:41:34 +0000 (12:41 +0000)] 
Merge branch 'mnowak/danger-test-pairwise-hint-9.16' into 'bind-9.16'

[9.16] Add a friendly Danger plea to run the pairwise CI job

See merge request isc-projects/bind9!7954

3 years agoAdd a friendly Danger plea to run the pairwise CI job
Michal Nowak [Fri, 28 Apr 2023 08:24:17 +0000 (10:24 +0200)] 
Add a friendly Danger plea to run the pairwise CI job

Sometimes a pairwise definition for a new ./configure switch is added
but not tested in the CI.

(cherry picked from commit 96563c6020a8a95442145408c299806f26a9055a)

3 years agoMerge branch 'mnowak/fedora-38-9.16' into 'bind-9.16'
Michal Nowak [Fri, 19 May 2023 12:10:55 +0000 (12:10 +0000)] 
Merge branch 'mnowak/fedora-38-9.16' into 'bind-9.16'

[9.16] Add Fedora 38

See merge request isc-projects/bind9!7952

3 years agoAdd Fedora 38
Michal Nowak [Mon, 17 Apr 2023 17:15:17 +0000 (19:15 +0200)] 
Add Fedora 38

(cherry picked from commit 2e0550970bdfbcd959a6a2a862225daaf0dd0ec2)

3 years agoMerge branch '4076-nsupdate-disable-too-many-DNS-UPDATEs-queued-check-on-windows...
Michal Nowak [Thu, 18 May 2023 15:13:24 +0000 (15:13 +0000)] 
Merge branch '4076-nsupdate-disable-too-many-DNS-UPDATEs-queued-check-on-windows' into 'bind-9.16'

Disable exceeded quota check on Windows

See merge request isc-projects/bind9!7943

3 years agoDisable exceeded quota check on Windows
Michal Nowak [Thu, 18 May 2023 10:53:21 +0000 (12:53 +0200)] 
Disable exceeded quota check on Windows

This check is too unstable on Windows. Given the bind-9.16 branch is in
security fixes-only mode, something unlikely to be investigated before
the branch goes EOL.

3 years agoMerge tag 'v9.16.41' into bind-9.16
Michał Kępień [Thu, 18 May 2023 12:17:30 +0000 (14:17 +0200)] 
Merge tag 'v9.16.41' into bind-9.16

BIND 9.16.41

3 years agoMerge branch '4035-fuzz-mem-c-871-fatal-error-runtime_check-pthread_mutex_lock-contex...
Mark Andrews [Thu, 18 May 2023 04:10:46 +0000 (04:10 +0000)] 
Merge branch '4035-fuzz-mem-c-871-fatal-error-runtime_check-pthread_mutex_lock-contextslock-0-0-34-0-failed' into 'bind-9.16'

Resolve "fuzz: mem.c:871: fatal error: RUNTIME_CHECK(((pthread_mutex_lock(((&contextslock))) == 0) ? 0 : 34) == 0) failed"

See merge request isc-projects/bind9!7907

3 years agoRemove init and deinit from fuzz.h
Mark Andrews [Wed, 10 May 2023 22:20:54 +0000 (08:20 +1000)] 
Remove init and deinit from fuzz.h

Constructors and destructors for the main program are not reliable
as they may be called before constructors for shared libraries they
depend upon or be called after destructors of shared libraries they
depend upon.

3 years agoMerge branch '4066-resolv-conf-parsing-eats-lines-if-more-than-3-nameservers-set...
Mark Andrews [Wed, 17 May 2023 23:36:57 +0000 (23:36 +0000)] 
Merge branch '4066-resolv-conf-parsing-eats-lines-if-more-than-3-nameservers-set-bind-9.16' into 'bind-9.16'

[9.16] Resolve "resolv.conf parsing eats lines if more than 3 nameservers set"

See merge request isc-projects/bind9!7942

3 years agoAdd CHANGES for [GL #4066]
Mark Andrews [Mon, 15 May 2023 00:39:50 +0000 (10:39 +1000)] 
Add CHANGES for [GL #4066]

(cherry picked from commit 36dab033dc13a8950bec1d48f61f6439a084f73f)

3 years agoProperly process extra nameserver lines in resolv.conf
Mark Andrews [Mon, 15 May 2023 00:34:16 +0000 (10:34 +1000)] 
Properly process extra nameserver lines in resolv.conf

The whole line needs to be read rather than just the token "nameserver"
otherwise the next line in resolv.conf is not properly processed.

(cherry picked from commit 864cd080523fcbafd5a79f69922e4ebe2dd5885f)

3 years agoMerge branch 'mnowak/openbsd-7.3-9.16' into 'bind-9.16'
Michal Nowak [Mon, 15 May 2023 18:38:03 +0000 (18:38 +0000)] 
Merge branch 'mnowak/openbsd-7.3-9.16' into 'bind-9.16'

[9.16] Add OpenBSD 7.3

See merge request isc-projects/bind9!7930

3 years agoAdd OpenBSD 7.3
Michal Nowak [Mon, 17 Apr 2023 16:50:55 +0000 (18:50 +0200)] 
Add OpenBSD 7.3

(cherry picked from commit ff52cd9604107207521b4db8fdc02bdde5fa0c51)

3 years agoMerge branch 'mnowak/freebsd-13.2-9.16' into 'bind-9.16'
Michal Nowak [Mon, 15 May 2023 16:53:54 +0000 (16:53 +0000)] 
Merge branch 'mnowak/freebsd-13.2-9.16' into 'bind-9.16'

[9.16] Add FreeBSD 13.2

See merge request isc-projects/bind9!7928

3 years agoAdd FreeBSD 13.2
Michal Nowak [Mon, 17 Apr 2023 16:46:43 +0000 (18:46 +0200)] 
Add FreeBSD 13.2

(cherry picked from commit 81ad645d7dca367750c49122009b475d48b7f5ed)

3 years agoMerge branch '4054-zone_resigninc-bugfix-9.16' into 'bind-9.16'
Arаm Sаrgsyаn [Mon, 15 May 2023 14:00:45 +0000 (14:00 +0000)] 
Merge branch '4054-zone_resigninc-bugfix-9.16' into 'bind-9.16'

[9.16] zone_resigninc(): check whether zone->db is a valid pointer before attaching

See merge request isc-projects/bind9!7924

3 years agoAdd a CHANGES note for [GL #4054]
Aram Sargsyan [Thu, 11 May 2023 12:20:58 +0000 (12:20 +0000)] 
Add a CHANGES note for [GL #4054]

(cherry picked from commit 00ed5f84a9a888b52dbb25e627e24c571c6a83e3)

3 years agoCheck whether zone->db is a valid pointer before attaching
Aram Sargsyan [Thu, 11 May 2023 12:08:13 +0000 (12:08 +0000)] 
Check whether zone->db is a valid pointer before attaching

The zone_resigninc() function does not check the validity of
'zone->db', which can crash named if the zone was unloaded earlier,
for example with "rndc delete".

Check that 'zone->db' is not 'NULL' before attaching to it, like
it is done in zone_sign() and zone_nsec3chain() functions, which
can similarly be called by zone maintenance.

(cherry picked from commit fae0930eb84063fc03d711a0c772c58e5b470377)

3 years agoMerge branch 'mnowak/drop_set_key_default_values' into 'bind-9.16'
Michal Nowak [Fri, 12 May 2023 09:11:57 +0000 (09:11 +0000)] 
Merge branch 'mnowak/drop_set_key_default_values' into 'bind-9.16'

Drop set_key_default_values function

See merge request isc-projects/bind9!7910

3 years agoDrop set_key_default_values function
Michal Nowak [Thu, 11 May 2023 09:20:34 +0000 (11:20 +0200)] 
Drop set_key_default_values function

The set_key_default_values function hasn't been backported to bind-9.16
and produces a warning in the nsec3 system test:

    tests.sh: line 234: set_key_default_values: command not found

3 years agoMerge branch 'mnowak/coverity-scan-2022.12-9.16' into 'bind-9.16'
Michal Nowak [Fri, 12 May 2023 08:54:40 +0000 (08:54 +0000)] 
Merge branch 'mnowak/coverity-scan-2022.12-9.16' into 'bind-9.16'

[9.16] Use the latest Coverity Scan

See merge request isc-projects/bind9!7919

3 years agoUse the latest Coverity Scan
Michal Nowak [Wed, 3 May 2023 09:55:57 +0000 (11:55 +0200)] 
Use the latest Coverity Scan

(cherry picked from commit 68dd45876412d159c9855731745fd6ccbb1cd3eb)

3 years agoMerge branch 'mnowak/pytest_rewrite_ttl-9.16' into 'bind-9.16'
Michal Nowak [Thu, 11 May 2023 15:30:45 +0000 (15:30 +0000)] 
Merge branch 'mnowak/pytest_rewrite_ttl-9.16' into 'bind-9.16'

[9.16] Rewrite the ttl system test to pytest

See merge request isc-projects/bind9!7916

3 years agoRewrite the ttl system test to pytest
Michal Nowak [Thu, 4 May 2023 18:05:30 +0000 (20:05 +0200)] 
Rewrite the ttl system test to pytest

(cherry picked from commit 0c05c3d97ba96eee79f51fc890d70ec8991b92df)

3 years agoMerge branch 'mnowak/clang-16-9.16' into 'bind-9.16'
Michal Nowak [Thu, 11 May 2023 13:14:00 +0000 (13:14 +0000)] 
Merge branch 'mnowak/clang-16-9.16' into 'bind-9.16'

[9.16] Update clang to version 16

See merge request isc-projects/bind9!7913

3 years agoUpdate sources to Clang 16 formatting
Michal Nowak [Thu, 11 May 2023 12:26:14 +0000 (14:26 +0200)] 
Update sources to Clang 16 formatting

3 years agoUpdate clang to version 16
Michal Nowak [Fri, 24 Mar 2023 10:18:09 +0000 (11:18 +0100)] 
Update clang to version 16

(cherry picked from commit 30aa2581077aabc03de1f11c88dd50ef15dc2a69)

3 years agoMerge branch 'tkrizek/shutdown-test-exc-handling-9.16' into 'bind-9.16'
Tom Krizek [Wed, 10 May 2023 14:15:24 +0000 (14:15 +0000)] 
Merge branch 'tkrizek/shutdown-test-exc-handling-9.16' into 'bind-9.16'

[9.16] Ensure named always terminates in the shutdown test

See merge request isc-projects/bind9!7903

3 years agoEnsure named always terminates in the shutdown test
Tom Krizek [Thu, 6 Apr 2023 12:05:30 +0000 (14:05 +0200)] 
Ensure named always terminates in the shutdown test

Previously, if an exception would happen inside the `with` block, the
error handler would wait indefinitely for the process to end. That would
never happen, since the termination signal was never sent to named and
the test would get stuck.

Using the try-finally block ensures that the named process is always
killed and any exception or errors will be handled gracefully.

(cherry picked from commit 836e6ed284b9f62c49b06db944db83d508d4a054)

3 years agoRefactor shutdown test into more helper functions
Tom Krizek [Thu, 6 Apr 2023 12:01:43 +0000 (14:01 +0200)] 
Refactor shutdown test into more helper functions

Improve code readability by splitting the test into more functions. Some
could be re-used later on for more general-purpose subprocess handling
or named checks.

(cherry picked from commit 9d64f1c1edf66e907c0e83f8b38a2e31b970d429)

3 years agoMerge branch 'michal/set-up-version-and-release-notes-for-bind-9.16.42' into 'bind...
Michał Kępień [Wed, 10 May 2023 08:47:58 +0000 (08:47 +0000)] 
Merge branch 'michal/set-up-version-and-release-notes-for-bind-9.16.42' into 'bind-9.16'

Set up version and release notes for BIND 9.16.42

See merge request isc-projects/bind9!7901

3 years agoSet up release notes for BIND 9.16.42
Michał Kępień [Wed, 10 May 2023 08:41:42 +0000 (10:41 +0200)] 
Set up release notes for BIND 9.16.42

3 years agoUpdate BIND version to 9.16.42-dev
Michał Kępień [Wed, 10 May 2023 08:41:42 +0000 (10:41 +0200)] 
Update BIND version to 9.16.42-dev

3 years agoMerge branch 'prep-release' into v9.16.41-release v9.16.41
Michał Kępień [Tue, 9 May 2023 11:37:39 +0000 (13:37 +0200)] 
Merge branch 'prep-release' into v9.16.41-release

3 years agoprep 9.16.41
Michał Kępień [Tue, 9 May 2023 11:37:27 +0000 (13:37 +0200)] 
prep 9.16.41

3 years agoMerge branch 'michal/prepare-documentation-for-bind-9.16.41' into 'v9.16.41-release'
Michał Kępień [Tue, 9 May 2023 11:36:00 +0000 (11:36 +0000)] 
Merge branch 'michal/prepare-documentation-for-bind-9.16.41' into 'v9.16.41-release'

Prepare documentation for BIND 9.16.41

See merge request isc-private/bind9!517

3 years agoAdd release note for GL #4027
Michał Kępień [Tue, 9 May 2023 11:27:20 +0000 (13:27 +0200)] 
Add release note for GL #4027

3 years agoPrepare release notes for BIND 9.16.41
Michał Kępień [Tue, 9 May 2023 11:27:20 +0000 (13:27 +0200)] 
Prepare release notes for BIND 9.16.41

3 years agoApply minor corrections to CHANGES
Michał Kępień [Tue, 9 May 2023 11:27:20 +0000 (13:27 +0200)] 
Apply minor corrections to CHANGES

3 years agoMerge branch '2447-rbt_serialize_test-c-runtime-error-member-access-within-misaligned...
Mark Andrews [Fri, 5 May 2023 07:42:04 +0000 (07:42 +0000)] 
Merge branch '2447-rbt_serialize_test-c-runtime-error-member-access-within-misaligned-address' into 'bind-9.16'

Resolve "rbt_serialize_test.c: runtime error: member access within misaligned address"

See merge request isc-projects/bind9!7852

3 years agoCheck the pointer alignments when deserialising
Mark Andrews [Wed, 19 Apr 2023 00:34:49 +0000 (10:34 +1000)] 
Check the pointer alignments when deserialising

deserialize_corrupt_test may corrupt the pointers such that they
is no longer properly aligned.  Check that the alignment is consistent
with memory returned from isc_mem before checking the magic value.

3 years agoMerge branch '4027-nsec3-of-removed-empty-non-terminal-remains-in-chain-breaking...
Mark Andrews [Tue, 25 Apr 2023 07:05:25 +0000 (07:05 +0000)] 
Merge branch '4027-nsec3-of-removed-empty-non-terminal-remains-in-chain-breaking-validation-tools-bind-9.16' into 'bind-9.16'

[9.16] Resolve "NSEC3 of removed empty-non-terminal remains in chain, breaking validation tools"

See merge request isc-projects/bind9!7868

3 years agoAdd CHANGES note for [GL #4027]
Mark Andrews [Fri, 21 Apr 2023 04:03:03 +0000 (14:03 +1000)] 
Add CHANGES note for [GL #4027]

(cherry picked from commit 7dbb2b877b356327f387cc19e2de9c71a014d1b8)

3 years agoCheck removal of ENT when subdomains are removed
Mark Andrews [Fri, 21 Apr 2023 03:49:32 +0000 (13:49 +1000)] 
Check removal of ENT when subdomains are removed

Empty-non-terminal NSEC records where not always removed when the
delegations generating them where removed via update. Check that
they now are.

(cherry picked from commit ad91a70d155ee27a97ed9a7edad60c4d49d55789)