]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
5 years agoMerge branch 'v9_14_12-release' into 'v9_14' bind-9.14
Michał Kępień [Tue, 19 May 2020 13:10:20 +0000 (13:10 +0000)] 
Merge branch 'v9_14_12-release' into 'v9_14'

[CVE-2020-8616] [CVE-2020-8617] Merge 9.14.12 release branch

See merge request isc-projects/bind9!3564

6 years agoInclude util/check-make-install.in in tarball v9.14.12
Michał Kępień [Wed, 6 May 2020 10:32:33 +0000 (12:32 +0200)] 
Include util/check-make-install.in in tarball

6 years agoMerge branch 'prep-release' into v9_14
Tinderbox User [Wed, 6 May 2020 06:38:32 +0000 (06:38 +0000)] 
Merge branch 'prep-release' into v9_14

6 years agoprep 9.14.12
Tinderbox User [Wed, 6 May 2020 06:31:30 +0000 (06:31 +0000)] 
prep 9.14.12

6 years agoMerge branch '1388-confidential-issue-security-v9_14' into 'security-v9_14'
Mark Andrews [Fri, 1 May 2020 03:29:50 +0000 (03:29 +0000)] 
Merge branch '1388-confidential-issue-security-v9_14' into 'security-v9_14'

1388 confidential issue security v9 14

See merge request isc-private/bind9!152

6 years agoAdd release notes entry
Mark Andrews [Tue, 31 Mar 2020 06:22:15 +0000 (17:22 +1100)] 
Add release notes entry

6 years agoAdd CHANGES entry
Mark Andrews [Tue, 31 Mar 2020 03:02:22 +0000 (14:02 +1100)] 
Add CHANGES entry

6 years agoUpdate the ARM to reflect that TLD and root servers are no longer exempt
Mark Andrews [Tue, 31 Mar 2020 02:58:16 +0000 (13:58 +1100)] 
Update the ARM to reflect that TLD and root servers are no longer exempt

from max-recursion-queries limits.

6 years agoCount queries to the root and TLD servers as well
Mark Andrews [Mon, 30 Mar 2020 03:28:58 +0000 (14:28 +1100)] 
Count queries to the root and TLD servers as well

6 years agoAdd test for reduction in number of fetches
Stephen Morris [Thu, 5 Mar 2020 18:46:46 +0000 (18:46 +0000)] 
Add test for reduction in number of fetches

Add a system test that counts how many address fetches are made
for different numbers of NS records and checks that the number
are successfully limited.

6 years agoMerge branch '1703-tsig-verify-failure-security-v9_14' into 'security-v9_14'
Mark Andrews [Tue, 21 Apr 2020 06:24:54 +0000 (06:24 +0000)] 
Merge branch '1703-tsig-verify-failure-security-v9_14' into 'security-v9_14'

1703 tsig verify failure security v9 14

See merge request isc-private/bind9!149

6 years agoReduce the number of fetches we make when looking up addresses
Mark Andrews [Thu, 6 Feb 2020 06:19:10 +0000 (17:19 +1100)] 
Reduce the number of fetches we make when looking up addresses

If there are more that 5 NS record for a zone only perform a
maximum of 4 address lookups for all the name servers.  This
limits the amount of remote lookup performed for server
addresses at each level for a given query.

6 years agoAdd release note entry
Mark Andrews [Mon, 30 Mar 2020 00:49:46 +0000 (11:49 +1100)] 
Add release note entry

6 years agoAdd CHANGES entry
Mark Andrews [Mon, 30 Mar 2020 00:18:52 +0000 (11:18 +1100)] 
Add CHANGES entry

6 years agoOnly look at tsig.error in responses
Mark Andrews [Wed, 25 Mar 2020 06:46:26 +0000 (17:46 +1100)] 
Only look at tsig.error in responses

6 years agoCheck that a 'BADTIME' response with 'QR=0' is handled as a request
Mark Andrews [Wed, 25 Mar 2020 06:44:51 +0000 (17:44 +1100)] 
Check that a 'BADTIME' response with 'QR=0' is handled as a request

6 years agoMerge branch 'michal/prepare-release-notes-for-bind-9.14.12' into 'v9_14'
Michał Kępień [Tue, 5 May 2020 20:41:32 +0000 (20:41 +0000)] 
Merge branch 'michal/prepare-release-notes-for-bind-9.14.12' into 'v9_14'

Prepare release notes for BIND 9.14.12

See merge request isc-projects/bind9!3496

6 years agoRelease notes: wording and formatting tweaks
Michał Kępień [Tue, 5 May 2020 20:37:56 +0000 (22:37 +0200)] 
Release notes: wording and formatting tweaks

6 years agoAdd release notes for BIND 9.14.12
Michał Kępień [Tue, 5 May 2020 20:37:56 +0000 (22:37 +0200)] 
Add release notes for BIND 9.14.12

6 years agoNote there will be no more BIND 9.14.x releases
Michał Kępień [Tue, 5 May 2020 20:37:56 +0000 (22:37 +0200)] 
Note there will be no more BIND 9.14.x releases

6 years agoTweak and reword recent CHANGES entries
Michał Kępień [Tue, 5 May 2020 20:37:56 +0000 (22:37 +0200)] 
Tweak and reword recent CHANGES entries

6 years agoMerge branch '1806-system-and-unit-clang-asan-have-incorrect-needs-v9_14' into 'v9_14'
Mark Andrews [Thu, 30 Apr 2020 08:48:39 +0000 (08:48 +0000)] 
Merge branch '1806-system-and-unit-clang-asan-have-incorrect-needs-v9_14' into 'v9_14'

Incorrect job in needs, gcc:asan -> clang:asan

See merge request isc-projects/bind9!3463

6 years agoIncorrect job in needs, gcc:asan -> clang:asan
Mark Andrews [Thu, 30 Apr 2020 07:12:00 +0000 (17:12 +1000)] 
Incorrect job in needs, gcc:asan -> clang:asan

(cherry picked from commit 0adf9562fb687817c99d734030ded8521c78eaef)

6 years agoMerge branch 'michal/fix-srcid-on-windows-v9_14' into 'v9_14'
Michał Kępień [Wed, 15 Apr 2020 09:42:57 +0000 (09:42 +0000)] 
Merge branch 'michal/fix-srcid-on-windows-v9_14' into 'v9_14'

[v9_14] Fix "srcid" on Windows

See merge request isc-projects/bind9!3372

6 years agoFix "srcid" on Windows
Michał Kępień [Wed, 15 Apr 2020 09:38:40 +0000 (11:38 +0200)] 
Fix "srcid" on Windows

Windows BIND releases produced by GitLab CI are built from Git
repositories, not from release tarballs, which means the "srcid" file is
not present in the top source directory when MSBuild is invoked.  This
causes the Git commit hash for such builds to be set to "unset_id".
Enable win32utils/Configure to try determining the commit hash for a
build by invoking Git on the build host if the "srcid" file is not
present (which is what its Unix counterpart does).

(cherry picked from commit 05e13e7cafaff48b5e3bb098114225df89f3e59c)

6 years agoMerge branch '1574-confidential-issue-rebinding-protection-fail-in-forwarding-mode...
Ondřej Surý [Wed, 8 Apr 2020 09:04:30 +0000 (09:04 +0000)] 
Merge branch '1574-confidential-issue-rebinding-protection-fail-in-forwarding-mode-v9_14' into 'v9_14'

Resolve "DNS rebinding protection is ineffective when BIND is configured as a forwarding DNS server"

See merge request isc-projects/bind9!3344

6 years agoAdd release notes
Ondřej Surý [Wed, 8 Apr 2020 06:58:53 +0000 (08:58 +0200)] 
Add release notes

6 years agoAdd CHANGES
Ondřej Surý [Wed, 8 Apr 2020 06:56:26 +0000 (08:56 +0200)] 
Add CHANGES

6 years agoAdd test for the proposed fix
Diego Fronza [Thu, 13 Feb 2020 23:35:25 +0000 (20:35 -0300)] 
Add test for the proposed fix

This test asserts that option "deny-answer-aliases" works correctly
when forwarding requests.

As a matter of example, the behavior expected for a forwarder BIND
instance, having an option such as deny-answer-aliases { "domain"; }
is that when forwarding a request for *.anything-but-domain, it is
expected that it will return SERVFAIL if any answer received has a CNAME
for "*.domain".

6 years agoFixed rebinding protection bug when using forwarder setups
Diego Fronza [Thu, 13 Feb 2020 23:17:13 +0000 (20:17 -0300)] 
Fixed rebinding protection bug when using forwarder setups

BIND wasn't honoring option "deny-answer-aliases" when configured to
forward queries.

Before the fix it was possible for nameservers listed in "forwarders"
option to return CNAME answers pointing to unrelated domains of the
original query, which could be used as a vector for rebinding attacks.

The fix ensures that BIND apply filters even if configured as a forwarder
instance.

6 years agoMerge branch 'ondrej/scan-build-10-fixes-v9_14-2' into 'v9_14'
Ondřej Surý [Thu, 26 Mar 2020 12:51:49 +0000 (12:51 +0000)] 
Merge branch 'ondrej/scan-build-10-fixes-v9_14-2' into 'v9_14'

Fix new warnings reported by scan-build from LLVM/Clang 10 (v9.14) v2

See merge request isc-projects/bind9!3297

6 years agoImport parse_tsan.py file to v9_11 branch
Ondřej Surý [Thu, 26 Mar 2020 08:56:41 +0000 (09:56 +0100)] 
Import parse_tsan.py file to v9_11 branch

6 years agoFix 'Dereference of null pointer' from scan-build-10
Ondřej Surý [Wed, 25 Mar 2020 16:25:45 +0000 (17:25 +0100)] 
Fix 'Dereference of null pointer' from scan-build-10

These are mostly false positives, the clang-analyzer FAQ[1] specifies
why and how to fix it:

> The reason the analyzer often thinks that a pointer can be null is
> because the preceding code checked compared it against null. So if you
> are absolutely sure that it cannot be null, remove the preceding check
> and, preferably, add an assertion as well.

The 2 warnings reported are:

dnssec-cds.c:781:4: warning: Access to field 'base' results in a dereference of a null pointer (loaded from variable 'buf')
                        isc_buffer_availableregion(buf, &r);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/builds/isc-projects/bind9/lib/isc/include/isc/buffer.h:996:36: note: expanded from macro 'isc_buffer_availableregion'
                                   ^
/builds/isc-projects/bind9/lib/isc/include/isc/buffer.h:821:16: note: expanded from macro 'ISC__BUFFER_AVAILABLEREGION'
                (_r)->base = isc_buffer_used(_b);              \
                             ^~~~~~~~~~~~~~~~~~~
/builds/isc-projects/bind9/lib/isc/include/isc/buffer.h:152:29: note: expanded from macro 'isc_buffer_used'
        ((void *)((unsigned char *)(b)->base + (b)->used)) /*d*/
                                   ^~~~~~~~~
1 warning generated.

--

./main.c:1254:9: warning: Access to field 'sctx' results in a dereference of a null pointer (loaded from variable 'named_g_server')
        sctx = named_g_server->sctx;
               ^~~~~~~~~~~~~~~~~~~~
1 warning generated.

References:
1. https://clang-analyzer.llvm.org/faq.html#null_pointer

6 years agoFix 'Dead nested assignment's from scan-build-10
Ondřej Surý [Wed, 25 Mar 2020 16:00:07 +0000 (17:00 +0100)] 
Fix 'Dead nested assignment's from scan-build-10

The 1 warning reported is:

os.c:872:7: warning: Although the value stored to 'ptr' is used in the enclosing expression, the value is never actually read from 'ptr'
        if ((ptr = strtok_r(command, " \t", &last)) == NULL) {
             ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

6 years agoFix missing <inttypes.h> include
Ondřej Surý [Thu, 26 Mar 2020 07:23:52 +0000 (08:23 +0100)] 
Fix missing <inttypes.h> include

6 years agoMerge branch 'michal/misc-gitlab-ci-yml-cleanups-v9_14' into 'v9_14'
Michał Kępień [Thu, 26 Mar 2020 10:45:18 +0000 (10:45 +0000)] 
Merge branch 'michal/misc-gitlab-ci-yml-cleanups-v9_14' into 'v9_14'

[v9_14] Miscellaneous .gitlab-ci.yml cleanups

See merge request isc-projects/bind9!3301

6 years agoRemove unused YAML anchors
Michał Kępień [Thu, 26 Mar 2020 10:03:52 +0000 (11:03 +0100)] 
Remove unused YAML anchors

Some YAML anchors defined in .gitlab-ci.yml are not subsequently used.
Remove them to prevent confusion.

(cherry picked from commit 3d121ede6cf9876890fa80c1050d569c5c653d05)

6 years agoDo not install compiledb in cppcheck job
Michał Kępień [Thu, 26 Mar 2020 10:03:52 +0000 (11:03 +0100)] 
Do not install compiledb in cppcheck job

compiledb is already included in the Docker image used by the cppcheck
job.  Do not attempt installing it again.

(cherry picked from commit 3d264dbe819cd045cde72acac4222cbadf71ee15)

6 years agoInclude compiler name in all build/test job names
Michał Kępień [Thu, 26 Mar 2020 10:03:52 +0000 (11:03 +0100)] 
Include compiler name in all build/test job names

Most build/test job names already contain a "clang", "gcc", or "msvc"
prefix which indicates the compiler used for a given job.  Apply that
naming convention to all build/test job names.

(cherry picked from commit 0c898084cd0f3abf82a40ad82d384952dcb3def5)

6 years agoRefactor TSAN unit test job definitions
Michał Kępień [Thu, 26 Mar 2020 10:03:52 +0000 (11:03 +0100)] 
Refactor TSAN unit test job definitions

Multiple YAML keys have identical values for both TSAN unit test job
definitions.  Extract these common keys to a YAML anchor and use it in
TSAN unit test job definitions to reduce code duplication.

(cherry picked from commit 84463f33bfe7777b5884696820cdf484ea9a1073)

6 years agoRun "kyua report-html" for TSAN unit test jobs
Michał Kępień [Thu, 26 Mar 2020 10:03:52 +0000 (11:03 +0100)] 
Run "kyua report-html" for TSAN unit test jobs

Definitions of jobs running unit tests under TSAN contain an
"after_script" YAML key.  Since the "unit_test_job" anchor is included
in those job definitions before "after_script" is defined, the
job-specific value of that key overrides the one defined in the included
anchor.  This prevents "kyua report-html" from being run for TSAN unit
test jobs.  Moving the invocation of "kyua report-html" to the "script"
key in the "unit_test_job" anchor is not acceptable as it would cause
the exit code of that command to determine the result of all unit test
jobs and we need that to be the exit code of "make unit".  Instead, add
"kyua report-html" invocations to the "after_script" key of TSAN unit
test job definitions to address the problem without affecting other job
definitions.

(cherry picked from commit 6ebce9425e21615bfbe2aafe3bbc0b001885e882)

6 years agoRefactor TSAN system test job definitions
Michał Kępień [Thu, 26 Mar 2020 10:03:52 +0000 (11:03 +0100)] 
Refactor TSAN system test job definitions

Multiple YAML keys have identical values for both TSAN system test job
definitions.  Extract these common keys to a YAML anchor and use it in
TSAN system test job definitions to reduce code duplication.

(cherry picked from commit a9aa295f1f3a5af1861d5be150f66522358da8aa)

6 years agoDrop "before_script" key from TSAN job definitions
Michał Kępień [Thu, 26 Mar 2020 10:03:52 +0000 (11:03 +0100)] 
Drop "before_script" key from TSAN job definitions

Both "system_test_job" and "unit_test_job" YAML anchors contain a
"before_script" key.  TSAN job definitions first specify their own value
of the "before_script" key and then include the aforementioned YAML
anchors, which results in the value of the "before_script" key being
overridden with the value specified by the included anchor.  Given this,
remove "before_script" definitions specific to TSAN jobs as they serve
no practical purpose.

(cherry picked from commit 8ef01c7b50d9700f81f4836657a62ccf80b91ac7)

6 years agoDefine TSAN options in a global variable
Michał Kępień [Thu, 26 Mar 2020 10:03:52 +0000 (11:03 +0100)] 
Define TSAN options in a global variable

All assignments for the TSAN_OPTIONS variable are identical across the
entire .gitlab-ci.yml file.  Define a global TSAN_OPTIONS_COMMON
variable and use it in job definitions to reduce code duplication.

(cherry picked from commit 6325c0993a4f73b7c79dea4835a98c894820f189)

6 years agoMerge branch 'ondrej/no-clang-on-debian-sid-v9_11-v9_14' into 'v9_14'
Ondřej Surý [Wed, 25 Mar 2020 21:22:31 +0000 (21:22 +0000)] 
Merge branch 'ondrej/no-clang-on-debian-sid-v9_11-v9_14' into 'v9_14'

Rewrite .gitlab-ci.yml to have 'base_image' and other GitLab CI improvements (v9.14)

See merge request isc-projects/bind9!3291

6 years agoAdjust the differences between v9_16 and v9_11 GitLab CI job configuration
Ondřej Surý [Wed, 25 Mar 2020 17:20:40 +0000 (18:20 +0100)] 
Adjust the differences between v9_16 and v9_11 GitLab CI job configuration

(cherry picked from commit f801f0f9267cf2ac13b72d268cb6178894dd0356)

6 years agoReplace clang:stretch:amd64 build with clang:buster:amd64 build (+ add missing system...
Ondřej Surý [Wed, 25 Mar 2020 15:31:59 +0000 (16:31 +0100)] 
Replace clang:stretch:amd64 build with clang:buster:amd64 build (+ add missing system test)

(cherry picked from commit 281531d82bab6d8d6eceb0937b4ca100fd20a2ff)
(cherry picked from commit 95d2d8399a02833553e39e6be943a47e3d4c5ce0)

6 years agoReplace bear with compiledb and drop MAKE_COMMAND because we don't need it
Ondřej Surý [Mon, 23 Mar 2020 10:48:24 +0000 (11:48 +0100)] 
Replace bear with compiledb and drop MAKE_COMMAND because we don't need it

(cherry picked from commit ec72d1100d7e86c131ab1936f91ed4da87c48a4b)
(cherry picked from commit 00f12220c08a6e5fd2a4e5eef6ca0cf34b4a7b5b)

6 years agoAdjust the GitLab CI jobs to match the new images
Ondřej Surý [Tue, 24 Mar 2020 08:43:45 +0000 (09:43 +0100)] 
Adjust the GitLab CI jobs to match the new images

The custom builds (oot, asan, tsan) were mostly built using Debian sid
amd64 image.  The problem was that this image broke too easily, because
it's Debian "unstable" after all.

This commit introduces "base_image" that should be most stable with
extra bits on top (clang, coccinelle, cppcheck, ...).  Currently, that
would be Debian buster amd64.

Other changes introduced by this commit:

* Change the default clang version to 10
* Run both ASAN and TSAN with both gcc and clang compilers
* Remove Clang Debian stretch i386 job

(cherry picked from commit 5f5721aa11a88cfb9d2bb65fa8b8044fcb0022ed)
(cherry picked from commit 7398668e76c27d21db37e67c1617a7cfaffd4dbd)

6 years agoMerge branch 'ondrej/scan-build-10-fixes-v9_11-v9_14' into 'v9_14'
Ondřej Surý [Wed, 25 Mar 2020 17:28:28 +0000 (17:28 +0000)] 
Merge branch 'ondrej/scan-build-10-fixes-v9_11-v9_14' into 'v9_14'

Fix new warnings reported by scan-build from LLVM/Clang 10 (v9.14)

See merge request isc-projects/bind9!3290

6 years agoFix 'Dereference of null pointer' from scan-build-10
Ondřej Surý [Wed, 25 Mar 2020 16:25:45 +0000 (17:25 +0100)] 
Fix 'Dereference of null pointer' from scan-build-10

These are mostly false positives, the clang-analyzer FAQ[1] specifies
why and how to fix it:

> The reason the analyzer often thinks that a pointer can be null is
> because the preceding code checked compared it against null. So if you
> are absolutely sure that it cannot be null, remove the preceding check
> and, preferably, add an assertion as well.

The 2 warnings reported are:

byname_test.c:308:34: warning: Access to field 'fwdtable' results in a dereference of a null pointer (loaded from variable 'view')
                RUNTIME_CHECK(dns_fwdtable_add(view->fwdtable, dns_rootname,
                                               ^~~~~~~~~~~~~~
/builds/isc-projects/bind9/lib/isc/include/isc/util.h:318:52: note: expanded from macro 'RUNTIME_CHECK'
                                                   ^~~~
/builds/isc-projects/bind9/lib/isc/include/isc/error.h:50:21: note: expanded from macro 'ISC_ERROR_RUNTIMECHECK'
        ((void)(ISC_LIKELY(cond) ||  \
                           ^~~~
/builds/isc-projects/bind9/lib/isc/include/isc/likely.h:23:43: note: expanded from macro 'ISC_LIKELY'
                                            ^
1 warning generated.

--

./rndc.c:255:6: warning: Dereference of null pointer (loaded from variable 'host')
        if (*host == '/') {
            ^~~~~
1 warning generated.

References:
1. https://clang-analyzer.llvm.org/faq.html#null_pointer

(cherry picked from commit ddd0d356e5922e6b1958b3050e04a160e106734a)
(cherry picked from commit 9b76eea08f7c1a205c8269bd7b301a3c45455202)

6 years agoFix 'Dead nested assignment's from scan-build-10
Ondřej Surý [Wed, 25 Mar 2020 16:00:07 +0000 (17:00 +0100)] 
Fix 'Dead nested assignment's from scan-build-10

The 3 warnings reported are:

os.c:872:7: warning: Although the value stored to 'ptr' is used in the enclosing expression, the value is never actually read from 'ptr'
        if ((ptr = strtok_r(command, " \t", &last)) == NULL) {
             ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

--

rpz.c:1117:10: warning: Although the value stored to 'zbits' is used in the enclosing expression, the value is never actually read from 'zbits'
        return (zbits &= x);
                ^        ~
1 warning generated.

--

openssleddsa_link.c:532:10: warning: Although the value stored to 'err' is used in the enclosing expression, the value is never actually read from 'err'
        while ((err = ERR_get_error()) != 0) {
                ^     ~~~~~~~~~~~~~~~
1 warning generated.

(cherry picked from commit 262f087bcff969b6eca2ae0a71be4323a3c1729d)
(cherry picked from commit 138dded9d92de3fc966494862e8e38ded4467fc9)

6 years agoMerge branch 'ondrej/remove-debian-jessie-from-gitlab-ci-v9_14' into 'v9_14'
Michał Kępień [Wed, 25 Mar 2020 06:21:18 +0000 (06:21 +0000)] 
Merge branch 'ondrej/remove-debian-jessie-from-gitlab-ci-v9_14' into 'v9_14'

Remove Debian 8 ("Jessie") from the GitLab CI

See merge request isc-projects/bind9!3283

6 years agoRemove Debian 8 ("Jessie") from the GitLab CI
Ondřej Surý [Tue, 24 Mar 2020 12:56:29 +0000 (13:56 +0100)] 
Remove Debian 8 ("Jessie") from the GitLab CI

There are several reason why remove Debian 8 from the CI:

* Debian 8 ("jessie") has been superseded by Debian 9 ("stretch").
* Regular security support updates have been discontinued as of
  June 17th, 2018.
* Jessie LTS is supported from 17th June 2018 to June 30, 2020.

In other words, it's no longer officially supported by Debian security
team, but by the volunteer/paid contributor composed LTS team.  And the
release will be discontinued in three months from now.  We can use the
freed CI resources to bring new platforms or just to make the jobs run a
bit faster.

(cherry picked from commit 75f46cc3d1bac79e1e5e630a91eae76750c0f90e)

6 years agoMerge branch '4-gitlab-ci.yml-improvement-v9_14' into 'v9_14'
Ondřej Surý [Fri, 20 Mar 2020 15:13:52 +0000 (15:13 +0000)] 
Merge branch '4-gitlab-ci.yml-improvement-v9_14' into 'v9_14'

Improve GitLab CI configuration (v9.14)

See merge request isc-projects/bind9!3260

6 years agoRename MAKE environment variable to MAKE_COMMAND
Ondřej Surý [Tue, 7 Aug 2018 14:46:53 +0000 (16:46 +0200)] 
Rename MAKE environment variable to MAKE_COMMAND

The environment variable MAKE has been replaced with MAKE_COMMAND,
because overriding MAKE variable also changed the definition of the MAKE
inside the Makefiles, and we want only a single wrapper around the whole
build process.

Previously, setting `MAKE` to `bear make` meant that `bear make` would
be run at every nested make invocation, which messed up the upcoming
automake transition as compile_commands.json would be generated in every
subdirectory instead of just having one central file at the top of the
build tree.

(cherry picked from commit de1a637a696383583545243fdfaebcbda8392a5f)

6 years agoReplace dependencies+needs with needs+artifacts in GitLabCI config
Ondřej Surý [Tue, 7 Aug 2018 14:46:53 +0000 (16:46 +0200)] 
Replace dependencies+needs with needs+artifacts in GitLabCI config

All jobs now use solely the newer needs configuration to declare
dependencies between jobs:

    needs:
      - job: <foo>
        artifacts: true

instead of combination of dependencies and needs which is deprecated.
This change completely unbundles the stages (alas the stages still needs
to stay because the job graph has to stay acyclic between the stages).

(cherry picked from commit 66ba808c1b69e53427d7f0bb40c7134996ca764a)

6 years agoMerge branch '1684-timer-test-build-v9_14' into 'v9_14'
Ondřej Surý [Fri, 20 Mar 2020 15:09:16 +0000 (15:09 +0000)] 
Merge branch '1684-timer-test-build-v9_14' into 'v9_14'

fix a pointer-to-int cast error

See merge request isc-projects/bind9!3272

6 years agofix a pointer-to-int cast error
Evan Hunt [Tue, 17 Mar 2020 18:18:36 +0000 (11:18 -0700)] 
fix a pointer-to-int cast error

(cherry picked from commit 6b766460375e1069bd8510bf6ea77597e421641e)

6 years agoMerge branch 'michal/update-gitlab-ci-to-freebsd-12.1-v9_14' into 'v9_14'
Michał Kępień [Mon, 16 Mar 2020 19:05:31 +0000 (19:05 +0000)] 
Merge branch 'michal/update-gitlab-ci-to-freebsd-12.1-v9_14' into 'v9_14'

[v9_14] Update GitLab CI to FreeBSD 12.1

See merge request isc-projects/bind9!3240

6 years agoMove FreeBSD CI jobs to libvirt-based executors
Michał Kępień [Mon, 16 Mar 2020 10:32:46 +0000 (11:32 +0100)] 
Move FreeBSD CI jobs to libvirt-based executors

To get rid of the currently used FreeBSD-specific executor, move FreeBSD
CI jobs to libvirt-based executors.  Make the necessary tag and variable
adjustments.

(cherry picked from commit 80618b53782f9bdd105b05f17496c86938a6657f)

6 years agoUpdate GitLab CI to FreeBSD 12.1
Michał Kępień [Mon, 16 Mar 2020 10:32:46 +0000 (11:32 +0100)] 
Update GitLab CI to FreeBSD 12.1

Since FreeBSD 12.1 is the current FreeBSD 12.x release, replace FreeBSD
12.0 GitLab CI jobs with their up-to-date counterparts.

(cherry picked from commit 4c68b56246608383fe8acf27c2cc71fb4754ffb0)

6 years agoMerge branch 'michal/do-not-run-openbsd-system-test-jobs-for-tags-v9_14' into 'v9_14'
Michał Kępień [Mon, 9 Mar 2020 13:36:10 +0000 (13:36 +0000)] 
Merge branch 'michal/do-not-run-openbsd-system-test-jobs-for-tags-v9_14' into 'v9_14'

[v9_14] Do not run OpenBSD system test jobs for tags

See merge request isc-projects/bind9!3189

6 years agoDo not run OpenBSD system test jobs for tags
Michał Kępień [Mon, 9 Mar 2020 13:33:04 +0000 (14:33 +0100)] 
Do not run OpenBSD system test jobs for tags

OpenBSD virtual machines seem to affected particularly badly by other
activity happening on the host.  This causes trouble around release
time: when multiple tags are pushed to the repository, a large number of
jobs is started concurrently on all CI runners.  In extreme cases, this
causes the system test suite to run for about an hour (!) on OpenBSD
VMs, with multiple tests failing.  We investigated the test artifacts
for all such cases in the past and the outcome was always the same: test
failures were caused by extremely slow I/O on the guest.  We tried
various tricks to work around this problem, but nothing helped.

Given the above, stop running OpenBSD system test jobs for pending BIND
releases to prevent the results of these jobs from affecting the
assessment of a given release's readiness for publication.  This change
does not affect OpenBSD build jobs.  OpenBSD system test jobs will still
be run for scheduled and web-requested pipelines, to make sure we catch
any severe issues with test code on that platform sooner or later.

(cherry picked from commit 7b002cea83889d69494740a660c88b52990d3259)

6 years agoMerge branch '1628-release-process-failed-to-detect-that-header-file-was-not-installe...
Mark Andrews [Fri, 6 Mar 2020 01:53:16 +0000 (01:53 +0000)] 
Merge branch '1628-release-process-failed-to-detect-that-header-file-was-not-installed-v9_14' into 'v9_14'

test installed header files

See merge request isc-projects/bind9!3176

6 years agotest installed header files
Mark Andrews [Wed, 19 Feb 2020 22:31:05 +0000 (09:31 +1100)] 
test installed header files

(cherry picked from commit a278b6bd84d8e852879521facfb3f38da6b78b7d)

6 years agoMerge branch 'marka-sort-AC_CONFIG_FILES-v9_14' into 'v9_14'
Mark Andrews [Thu, 5 Mar 2020 22:31:50 +0000 (22:31 +0000)] 
Merge branch 'marka-sort-AC_CONFIG_FILES-v9_14' into 'v9_14'

sort AC_CONFIG_FILES

See merge request isc-projects/bind9!3169

6 years agosort AC_CONFIG_FILES
Mark Andrews [Thu, 5 Mar 2020 21:17:06 +0000 (08:17 +1100)] 
sort AC_CONFIG_FILES

(cherry picked from commit fd0d4ba9481bf26e9aef62a2776182b8419a7d88)

6 years agoMerge branch 'mnowak/respdiff-v9_14' into 'v9_14'
Michal Nowak [Thu, 5 Mar 2020 14:48:11 +0000 (14:48 +0000)] 
Merge branch 'mnowak/respdiff-v9_14' into 'v9_14'

[v9_14] Add respdiff job

See merge request isc-projects/bind9!3165

6 years agoAdd respdiff job
Michal Nowak [Thu, 6 Feb 2020 14:53:36 +0000 (15:53 +0100)] 
Add respdiff job

This job leverages respdiff test from the private bind-qa repo.

(cherry picked from commit 04f8b65a8f280b35ba7a466f5eedc99798d9eafb)

6 years agoMerge branch 'marka-check-touched-v9_14' into 'v9_14'
Mark Andrews [Tue, 3 Mar 2020 22:37:45 +0000 (22:37 +0000)] 
Merge branch 'marka-check-touched-v9_14' into 'v9_14'

Marka check touched v9 14

See merge request isc-projects/bind9!3148

6 years agoAdd CHANGES entry
Mark Andrews [Tue, 3 Mar 2020 01:31:55 +0000 (12:31 +1100)] 
Add CHANGES entry

(cherry picked from commit 64474db14e715e4b1a545406acf9fb5be8200f50)

6 years agoRestart zone maintenance if it had been stalled.
Mark Andrews [Mon, 2 Mar 2020 23:50:06 +0000 (10:50 +1100)] 
Restart zone maintenance if it had been stalled.

(cherry picked from commit f171347b5f27c1b0dfe1ef935512b20a820901c9)

6 years agoCheck inline master zones that are touched reload correctly.
Mark Andrews [Mon, 2 Mar 2020 08:38:29 +0000 (19:38 +1100)] 
Check inline master zones that are touched reload correctly.

(cherry picked from commit 50e079d6c3eea1a16b94bdb10d9e19939147bc30)

6 years agoMerge branch '1627-call-set_resigntime-and-zone_settimer-v9_14' into 'v9_14'
Mark Andrews [Tue, 3 Mar 2020 06:15:15 +0000 (06:15 +0000)] 
Merge branch '1627-call-set_resigntime-and-zone_settimer-v9_14' into 'v9_14'

Resolve "inline re-signing stops"

See merge request isc-projects/bind9!3140

6 years agoadd release note entry
Mark Andrews [Tue, 3 Mar 2020 04:37:42 +0000 (15:37 +1100)] 
add release note entry

(cherry picked from commit 23ce0f32e5a770c16a76d19e2a1c9e1322433d69)

6 years agoAdd CHANGES note
Mark Andrews [Tue, 3 Mar 2020 04:30:52 +0000 (15:30 +1100)] 
Add CHANGES note

(cherry picked from commit 905549f061dab784c533287db087d3705cfe0a1d)

6 years agoAdjust lock/unlock in zone_rekey()
Ondřej Surý [Thu, 27 Feb 2020 07:45:10 +0000 (08:45 +0100)] 
Adjust lock/unlock in zone_rekey()

(cherry picked from commit aaaa7e67fa2b0ec618ec4be1af175fd6d73b76a0)

6 years agoEnsure that resigintime and the zone timer are set
Mark Andrews [Fri, 28 Feb 2020 03:01:40 +0000 (14:01 +1100)] 
Ensure that resigintime and the zone timer are set

(cherry picked from commit a6626594aa348209eb02ec1ba8d3539821144aca)

6 years agoAdd more zone locks
Matthijs Mekking [Thu, 27 Feb 2020 10:59:12 +0000 (11:59 +0100)] 
Add more zone locks

Add more zone locks around code that touches zone timer setting
in failure modes.

(cherry picked from commit 143d1c9767e25d35dd939f43f6bae462ee9db477)

6 years agoAlways call set_resigntime with the zone lock held
Mark Andrews [Thu, 27 Feb 2020 06:48:05 +0000 (17:48 +1100)] 
Always call set_resigntime with the zone lock held

(cherry picked from commit 7212961849510f97146f815fa03f1e90de9d3201)

6 years agoAlways call zone_settimer()
Mark Andrews [Thu, 27 Feb 2020 06:43:26 +0000 (17:43 +1100)] 
Always call zone_settimer()

zone_needdump() could potentially not call zone_settimer() so
explitly call zone_settimer() as zone->resigntime could have
gone backward.

(cherry picked from commit 5ec57f31b0cca77f2629bac888c323cd619979ee)

6 years agoCall set_resigntime() in receive_secure_serial()
Mark Andrews [Thu, 27 Feb 2020 06:35:18 +0000 (17:35 +1100)] 
Call set_resigntime() in receive_secure_serial()

With RRSIG records no longer being signed with the full
sig-validity-interval we need to ensure the zone->resigntime
as it may need to be set to a earlier time.

(cherry picked from commit 5d1611afdc61ea8f19ceecc3e88cdb2296ec3914)

6 years agoMerge branch 'marka-fix-signature-test-v9_14' into 'v9_14'
Mark Andrews [Fri, 21 Feb 2020 06:52:15 +0000 (06:52 +0000)] 
Merge branch 'marka-fix-signature-test-v9_14' into 'v9_14'

Fix code to generate the test signatues.

See merge request isc-projects/bind9!3103

6 years agoFix code to generate the test signatues.
Mark Andrews [Fri, 21 Feb 2020 05:40:50 +0000 (21:40 -0800)] 
Fix code to generate the test signatues.

* ctx needs to be destroyed before it is regenerated.
* emit the name of the signature to be replaced.
* cleanup memory before asserting so post longjump doesn't detect a
  memory leak.
* comment code.

(cherry picked from commit 3a8c8a2a3199844bb16232e2f362f67d14181939)

6 years agoMerge branch 'michal/make-a-sed-script-in-doc-arm-makefile.in-portable-v9_14' into...
Michał Kępień [Thu, 20 Feb 2020 11:28:13 +0000 (11:28 +0000)] 
Merge branch 'michal/make-a-sed-script-in-doc-arm-makefile.in-portable-v9_14' into 'v9_14'

[v9_14] Make a sed script in doc/arm/Makefile.in portable

See merge request isc-projects/bind9!3098

6 years agoMake a sed script in doc/arm/Makefile.in portable
Michał Kępień [Thu, 20 Feb 2020 11:23:36 +0000 (12:23 +0100)] 
Make a sed script in doc/arm/Makefile.in portable

BSD sed does not recognize \s as a whitespace matching token.  Make the
sed script in doc/arm/Makefile.in which ensures GitLab identifiers are
not split across lines portable by replacing \s with [[:space:]].

(cherry picked from commit b25e6b51f6e16c983ab7c0f5cd8187bdd197b8d3)

6 years agoMerge branch 'michal/increase-lifetime-of-docs-sid-amd64-artifacts-v9_14' into 'v9_14'
Michał Kępień [Thu, 20 Feb 2020 10:57:37 +0000 (10:57 +0000)] 
Merge branch 'michal/increase-lifetime-of-docs-sid-amd64-artifacts-v9_14' into 'v9_14'

[v9_14] Increase lifetime of docs:sid:amd64 artifacts

See merge request isc-projects/bind9!3095

6 years agoIncrease lifetime of docs:sid:amd64 artifacts
Michał Kępień [Thu, 20 Feb 2020 10:51:58 +0000 (11:51 +0100)] 
Increase lifetime of docs:sid:amd64 artifacts

Artifacts generated by the docs:sid:amd64 job need to be retained longer
than for other jobs as they are used for building bind.isc.org contents.
If these artifacts are removed too quickly, pipelines in the pages/bind
GitLab project start failing, preventing content updates from being
published.  Increase lifetime of the relevant job artifacts to prevent
this from happening.

(cherry picked from commit 9751ba5a7568a550e62096661515ebc1c2efe3a4)

6 years agoMerge branch 'ondrej/win32-stdatomic-fix-v9_14' into 'v9_14' v9.14.11
Ondřej Surý [Thu, 13 Feb 2020 14:21:40 +0000 (14:21 +0000)] 
Merge branch 'ondrej/win32-stdatomic-fix-v9_14' into 'v9_14'

Stop requiring same memory ordering in win32 atomic_compare_exchange functions

See merge request isc-projects/bind9!3059

6 years agoStop requiring same memory ordering in win32 atomic_compare_exchange functions
Ondřej Surý [Thu, 20 Jun 2019 16:51:36 +0000 (18:51 +0200)] 
Stop requiring same memory ordering in win32 atomic_compare_exchange functions

6 years agoMerge branch 'prep-release' into v9_14
Tinderbox User [Wed, 12 Feb 2020 20:08:05 +0000 (20:08 +0000)] 
Merge branch 'prep-release' into v9_14

6 years agoprep v9.14.11
Tinderbox User [Wed, 12 Feb 2020 16:46:55 +0000 (16:46 +0000)] 
prep v9.14.11

6 years agoMerge branch 'mnowak/coverity-disable-web-tag-v9_14' into 'v9_14'
Michal Nowak [Wed, 12 Feb 2020 14:58:10 +0000 (14:58 +0000)] 
Merge branch 'mnowak/coverity-disable-web-tag-v9_14' into 'v9_14'

[v9_14] Run Coverity Scan only when specific variables are present

See merge request isc-projects/bind9!3055

6 years agoRun Coverity Scan only when specific variables are present
Michal Nowak [Wed, 12 Feb 2020 14:58:10 +0000 (14:58 +0000)] 
Run Coverity Scan only when specific variables are present

Submissions to Coverity Scan should be limited to those originated from
release branches and only from a specific schedule which holds
COVERITY_SCAN_PROJECT_NAME and COVERITY_SCAN_TOKEN variables.

(cherry picked from commit 48530aa21395414b0f9788ea5ab158b2b09ab977)

6 years agoMerge branch 'michal/prepare-release-notes-for-bind-9.14.11' into 'v9_14'
Michał Kępień [Wed, 12 Feb 2020 13:18:56 +0000 (13:18 +0000)] 
Merge branch 'michal/prepare-release-notes-for-bind-9.14.11' into 'v9_14'

Prepare release notes for BIND 9.14.11

See merge request isc-projects/bind9!3051

6 years agoAdd release notes section for BIND 9.14.11
Michał Kępień [Wed, 12 Feb 2020 12:50:21 +0000 (13:50 +0100)] 
Add release notes section for BIND 9.14.11

6 years agoMerge branch 'michal/minor-README-tweaks-v9_14' into 'v9_14'
Michał Kępień [Wed, 12 Feb 2020 10:38:22 +0000 (10:38 +0000)] 
Merge branch 'michal/minor-README-tweaks-v9_14' into 'v9_14'

[v9_14] Minor README tweaks

See merge request isc-projects/bind9!3048

6 years agoMinor CHANGES tweak
Michał Kępień [Wed, 12 Feb 2020 10:23:48 +0000 (11:23 +0100)] 
Minor CHANGES tweak

(cherry picked from commit a0349b18e0049de6fb842219b92e2fb6ed44b2ca)

6 years agoMinor README tweaks
Stephen Morris [Tue, 11 Feb 2020 14:14:50 +0000 (15:14 +0100)] 
Minor README tweaks

(cherry picked from commit bc539d48e7ea2588c9a9353b5212534693116056)