30206 Commits
Author SHA1 Message Date
Michał Kępień f3dc26e898 Include util/check-make-install.in in tarball v9.14.12 2020-05-06 12:32:33 +02:00
Tinderbox User 89162cdcac Merge branch 'prep-release' into v9_14 2020-05-06 06:38:32 +00:00
Tinderbox User 43046e10fb prep 9.14.12 2020-05-06 06:38:18 +00:00
Mark AndrewsandMichał Kępień 57d40f8d1d 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
2020-05-05 23:47:30 +02:00
Mark AndrewsandMichał Kępień c097015732 Add release notes entry 2020-05-05 23:47:28 +02:00
Mark AndrewsandMichał Kępień 5040582843 Add CHANGES entry 2020-05-05 23:47:27 +02:00
Mark AndrewsandMichał Kępień 943b274e2c Update the ARM to reflect that TLD and root servers are no longer exempt
from max-recursion-queries limits.
2020-05-05 23:47:23 +02:00
Mark AndrewsandMichał Kępień 034b7e3452 Count queries to the root and TLD servers as well 2020-05-05 23:47:21 +02:00
Stephen MorrisandMichał Kępień b06df900b8 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.
2020-05-05 23:47:19 +02:00
Mark AndrewsandMichał Kępień 25e2bca11e 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
2020-05-05 23:47:16 +02:00
Mark AndrewsandMichał Kępień 27f868f34c 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.
2020-05-05 23:47:16 +02:00
Mark AndrewsandMichał Kępień ce1e502a74 Add release note entry 2020-05-05 23:47:14 +02:00
Mark AndrewsandMichał Kępień 41df648a8e Add CHANGES entry 2020-05-05 23:46:19 +02:00
Mark AndrewsandMichał Kępień 58199e954a Only look at tsig.error in responses 2020-05-05 23:45:57 +02:00
Mark AndrewsandMichał Kępień d18eb51380 Check that a 'BADTIME' response with 'QR=0' is handled as a request 2020-05-05 23:45:55 +02:00
Michał Kępień d5835e162d 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
2020-05-05 20:41:32 +00:00
Michał Kępień 951eb4cd37 Release notes: wording and formatting tweaks 2020-05-05 22:37:56 +02:00
Michał Kępień af66005acd Add release notes for BIND 9.14.12 2020-05-05 22:37:56 +02:00
Michał Kępień 2d0e5ba92a Note there will be no more BIND 9.14.x releases 2020-05-05 22:37:56 +02:00
Michał Kępień f0a266f05e Tweak and reword recent CHANGES entries 2020-05-05 22:37:56 +02:00
Mark Andrews ea5fd177e5 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
2020-04-30 08:48:39 +00:00
Mark Andrews 8f065bbee8 Incorrect job in needs, gcc:asan -> clang:asan
(cherry picked from commit 0adf9562fb)
2020-04-30 17:45:14 +10:00
Michał Kępień 86286a078b 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
2020-04-15 09:42:57 +00:00
Michał Kępień 0d36832d60 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 05e13e7caf)
2020-04-15 11:39:50 +02:00
Ondřej Surý 546af0511a 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
2020-04-08 09:04:30 +00:00
Ondřej Surý 163cc168e5 Add release notes 2020-04-08 09:45:32 +02:00
Ondřej Surý d13a505d40 Add CHANGES 2020-04-08 09:45:32 +02:00
Diego FronzaandOndřej Surý 64c3c57b59 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".
2020-04-08 09:00:16 +02:00
Diego FronzaandOndřej Surý 6da142ff7f 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.
2020-04-08 09:00:16 +02:00
Ondřej Surý 2650ff19c7 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
2020-03-26 12:51:49 +00:00
Ondřej Surý 2637a2ce9d Import parse_tsan.py file to v9_11 branch 2020-03-26 13:42:35 +01:00
Ondřej Surý f3ba17fedc 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
2020-03-26 13:42:35 +01:00
Ondřej Surý e3acfedbe3 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.
2020-03-26 13:42:35 +01:00
Ondřej Surý 969cb06e15 Fix missing <inttypes.h> include 2020-03-26 13:42:35 +01:00
Michał Kępień 2b2872f3f4 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
2020-03-26 10:45:18 +00:00
Michał Kępień 03f764f708 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 3d121ede6c)
2020-03-26 11:43:47 +01:00
Michał Kępień 7be0cc640f 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 3d264dbe81)
2020-03-26 11:43:47 +01:00
Michał Kępień 824204ae19 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 0c898084cd)
2020-03-26 11:43:47 +01:00
Michał Kępień 91276d9a8c 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 84463f33bf)
2020-03-26 11:43:47 +01:00
Michał Kępień 5e2428a545 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 6ebce9425e)
2020-03-26 11:43:47 +01:00
Michał Kępień a46c97f36d 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 a9aa295f1f)
2020-03-26 11:43:47 +01:00
Michał Kępień 5ba8fac351 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 8ef01c7b50)
2020-03-26 11:43:47 +01:00
Michał Kępień 4c8ce37e26 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 6325c0993a)
2020-03-26 11:43:47 +01:00
Ondřej Surý f51d6cc42b 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
2020-03-25 21:22:31 +00:00
Ondřej Surý dd0fd4e7e9 Adjust the differences between v9_16 and v9_11 GitLab CI job configuration
(cherry picked from commit f801f0f926)
2020-03-25 18:33:57 +01:00
Ondřej Surý 696f0ecdf6 Replace clang:stretch:amd64 build with clang:buster:amd64 build (+ add missing system test)
(cherry picked from commit 281531d82b)
(cherry picked from commit 95d2d8399a)
2020-03-25 18:33:56 +01:00
Ondřej Surý 94d7daabb7 Replace bear with compiledb and drop MAKE_COMMAND because we don't need it
(cherry picked from commit ec72d1100d)
(cherry picked from commit 00f12220c0)
2020-03-25 18:33:53 +01:00
Ondřej Surý a58f256c22 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 5f5721aa11)
(cherry picked from commit 7398668e76)
2020-03-25 18:33:32 +01:00
Ondřej Surý fc1bd06eac 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
2020-03-25 17:28:28 +00:00
Ondřej Surý 0ff5c1f10d 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 ddd0d356e5)
(cherry picked from commit 9b76eea08f)
2020-03-25 18:27:08 +01:00