Commit Graph
28646 Commits
Author SHA1 Message Date
Petr MensikandOndřej Surý d33aef43de Delay kserver cleanup until all tasks finishes
It might be possible some pending task would run when kserver is already
cleaned up. Postpone gsstsig structures cleanup after task and timer
managers are destroyed. No pending threads are possible after it.

Make action in maybeshutdown only if doshutdown was not already called.
Might be called from getinput event.

(cherry picked from commit 2685e69be8)
2020-06-04 11:35:07 +02:00
Ondřej Surý ded53d8762 Merge branch '1849-cidr-rejected-by-9-11-18-and-higher' into 'v9_11'
Resolve "CIDR rejected by 9.11.18 and higher"

See merge request isc-projects/bind9!3639
2020-06-04 06:39:27 +00:00
Ondřej Surý f35ffb0f4a Add CHANGES entry for #1849 2020-06-03 22:17:02 +02:00
Ondřej Surý 7e2d9531a7 Change the invalid CIDR from parser error to warning
In [RT #43367], the BIND 9 changed the strictness of address / prefix
length checks:

    Check prefixes in acls to make sure the address and
    prefix lengths are consistent.  Warn only in
    BIND 9.11 and earlier.

Unfortunately, a regression slipped in and the check was made an error
also in the BIND 9.11.  This commit fixes the regression, but turning
the error into a warning.
2020-06-03 22:17:02 +02:00
Michał Kępień d392679e24 Merge branch 'michal/misc-danger-tweaks-v9_11' into 'v9_11'
[v9_11] Miscellaneous Danger tweaks

See merge request isc-projects/bind9!3641
2020-06-03 14:01:21 +00:00
Michał Kępień dddb154ec7 Only run Danger if DANGER_GITLAB_API_TOKEN is set
Prevent the Danger GitLab CI job from failing when the GitLab API key to
use is not set.

(cherry picked from commit 2c90438583)
2020-06-03 15:54:12 +02:00
Michał Kępień 3dc4c81cad Prevent invalid warnings about missing identifiers
The Danger script inspects differences between the current version of a
given merge request's target branch and the merge request branch.  If
the latter falls behind the former, the Danger script will wrongly warn
about missing GitLab/RT identifiers because it incorrectly treats the
"+++" diff marker as an indication of the merge request adding new lines
to a file.  Tweak the relevant conditional expression to prevent such
invalid warnings from being raised.

(cherry picked from commit e062812c38)
2020-06-03 15:54:11 +02:00
Michał Kępień 53b3c53d73 Make fetching target branch reliable
As GitLab Runner Docker executor caches Git repositories between jobs,
prevent the Danger script from attempting to update local refs to ensure
"git fetch" returns with an exit code of 0.  Use the FETCH_HEAD ref for
determining the differences between the merge request branch and its
target branch.

(cherry picked from commit d558c4cb78)
2020-06-03 15:54:11 +02:00
Michał Kępień ff90340598 Tweak condition for missing log message warning
Commits adding CHANGES entries and/or release notes do not need a commit
log message.  Do not warn about a missing commit log message for such
commits to make the warning more meaningful.

(cherry picked from commit c13944ca46)
2020-06-03 15:54:10 +02:00
Ondřej Surý bf3c6d793f Merge branch 'wpk/fix-socket-test-teardown-v9_11' into 'v9_11'
tests: fix isc/socket_test.c teardown

See merge request isc-projects/bind9!3637
2020-06-03 13:36:24 +00:00
Witold KręcickiandOndřej Surý c6ec2aaedc tests: fix isc/socket_test.c teardown
In case of a test failure we weren't tearing down sockets and tasks
properly, causing the test to hang instead of failing nicely.

(cherry picked from commit 4a8d9250cf)
2020-06-03 14:17:16 +02:00
Ondřej Surý 2d290220fd Merge branch 'marka-fix-ci-configure-v9_11' into 'v9_11'
fix CI configure for v9_11

See merge request isc-projects/bind9!3617
2020-06-03 10:16:46 +00:00
Mark Andrews d00fa6cc01 CI configure fixes for bad backports
remove --disable-maintainer-mode
rename --with-json to --with-libjson
2020-06-02 16:05:36 +10:00
Ondřej Surý 99ed4bc788 Merge branch '1164-add-danger-python-to-gitlab-ci-v9_11' into 'v9_11'
Add Danger Python to GitLab CI (v9.11)

See merge request isc-projects/bind9!3612
2020-06-01 11:59:28 +00:00
Michał KępieńandOndřej Surý 5190c42841 Add Danger Python to GitLab CI
Certain rules of the BIND development process are not codified anywhere
and/or are used inconsistently.  In an attempt to improve this
situation, add a GitLab CI job which uses Danger Python to add comments
to merge requests when certain expectations are not met.  Two categories
of feedback are used, only one of which - fail() - causes the GitLab CI
job to fail.  Exclude dangerfile.py from Python QA checks as the way the
contents of that file are evaluated triggers a lot of Flake8 and PyLint
warnings.

(cherry picked from commit 36bb45a8b6)
2020-06-01 13:49:05 +02:00
Mark Andrews 97cdeb2c41 Merge branch '1858-silence-tsan-in-bin-nsupdate-nsupdate-c-v9_11' into 'v9_11'
Lock access to 'answer' to silence TSAN

See merge request isc-projects/bind9!3598
2020-05-28 03:46:29 +00:00
Mark Andrews 919ea623aa Lock access to 'answer' to silence TSAN
(cherry picked from commit b3bd8a270b)
2020-05-28 11:13:37 +10:00
Mark Andrews 9bf9b3ca0c Merge branch '1853-force-promotion-to-unsigned-int' into 'v9_11'
Resolve "Force promotion to unsigned int."

See merge request isc-projects/bind9!3547
2020-05-28 00:37:41 +00:00
Mark Andrews 20e848bc3b Force promotion to unsigned int then shift the result 2020-05-28 09:59:40 +10:00
Mark Andrews d8343f9f15 Merge branch '1861-named_checknames_get-missing-dbc-v9_11' into 'v9_11'
Resolve "named_checknames_get missing DBC"

See merge request isc-projects/bind9!3582
2020-05-25 03:25:39 +00:00
Mark Andrews 2f75aa8120 Add DBC checks to named_checknames_get
(cherry picked from commit 20c07da49b)
2020-05-25 11:56:15 +10:00
Mark Andrews 35964017d0 Set obj to NULL so INSIST makes sense
(cherry picked from commit ac9e266749)
2020-05-25 11:56:14 +10:00
Michał Kępień 15426151af Merge branch 'michal/do-not-install-python-packages-in-gitlab-ci-jobs-v9_11' into 'v9_11'
[v9_11] Do not install Python packages in GitLab CI jobs

See merge request isc-projects/bind9!3574
2020-05-21 10:02:05 +00:00
Michał Kępień 513378a11a Do not install Python packages in GitLab CI jobs
As Python QA tools, BIND system test prerequisites, and documentation
building utilities are now all included in operating system images used
in GitLab CI, do not use pip for installing them in each CI job any
more.

(cherry picked from commit e3c217296d)
2020-05-21 11:43:57 +02:00
Michał Kępień 2b28dd5d40 Merge branch 'v9_11_19-release' into 'v9_11'
[CVE-2020-8616] [CVE-2020-8617] Merge 9.11.19 release branch

See merge request isc-projects/bind9!3565
2020-05-19 13:19:06 +00:00
Michał Kępień 4a33456f2e Set up release notes for BIND 9.11.20 2020-05-19 14:29:56 +02:00
Michał Kępień b4b5540a8b Bump BIND_BASELINE_VERSION for ABI checks 2020-05-19 14:29:56 +02:00
Michał Kępień afe9c72c92 Fix UTF-8 characters in doc/arm/notes.txt 2020-05-19 14:25:06 +02:00
Tinderbox UserandMichał Kępień d0f8a9d2b9 Merge branch 'prep-release' into v9_11 2020-05-19 14:25:06 +02:00
Tinderbox UserandMichał Kępień 85a5d7392e prep 9.11.19 2020-05-19 14:25:05 +02:00
Mark AndrewsandMichał Kępień 2e25875dbf Merge branch '1388-confidential-issue-security-v9_11' into 'security-v9_11'
1388 confidential issue security v9 11

See merge request isc-private/bind9!153
2020-05-19 14:24:53 +02:00
Mark AndrewsandMichał Kępień 7fbcb53a4d Merge branch '1703-tsig-verify-failure-security-v9_11' into 'security-v9_11'
1703 tsig verify failure security v9 11

See merge request isc-private/bind9!150
2020-05-19 14:24:53 +02:00
Mark AndrewsandMichał Kępień ea328d7f77 Add release notes entry 2020-05-19 14:24:53 +02:00
Mark AndrewsandMichał Kępień fedb32b281 Add CHANGES entry 2020-05-19 14:24:53 +02:00
Mark AndrewsandMichał Kępień 3507a927d5 Update the ARM to reflect that TLD and root servers are no longer exempt
from max-recursion-queries limits.
2020-05-19 14:24:53 +02:00
Mark AndrewsandMichał Kępień 8b93271edc Count queries to the root and TLD servers as well 2020-05-19 14:24:53 +02:00
Stephen MorrisandMichał Kępień 5fb65f4544 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-19 14:24:53 +02:00
Mark AndrewsandMichał Kępień 850ca8498c 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-19 14:24:53 +02:00
Mark AndrewsandMichał Kępień e244b73975 Add release note entry 2020-05-19 14:24:52 +02:00
Mark AndrewsandMichał Kępień 93e312cbd8 Add CHANGES entry 2020-05-19 14:24:52 +02:00
Mark AndrewsandMichał Kępień 086b0e4f1c Only look at tsig.error in responses 2020-05-19 14:24:52 +02:00
Mark AndrewsandMichał Kępień 67ba3f8f3a Check that a 'BADTIME' response with 'QR=0' is handled as a request 2020-05-19 14:24:52 +02:00
Mark Andrews 68881f49b9 Merge branch '1856-race-in-clear-signing-records-in-dnssec-system-test-v9_11' into 'v9_11'
Resolve "Race in 'clear signing records' in dnssec system test."

See merge request isc-projects/bind9!3560
2020-05-19 06:09:34 +00:00
Mark Andrews 016cea35f4 Add CHANGES
(cherry picked from commit 3405ee9eb2)
2020-05-19 13:51:45 +10:00
Mark Andrews 809d55226b Address race in dnssec system test. 'clear signing records' can fail
as the update triggers by the rndc command to clear the signing records
may not have completed by the time the subsequent rndc command to test
that the records have been removed is commenced.  Loop several times to
prevent false negative.

(cherry picked from commit 353018c0e5)
2020-05-19 13:50:51 +10:00
Michał Kępień 90bf2b10b2 Merge branch 'michal/misc-cppcheck-tweaks-v9_11' into 'v9_11'
[v9_11] Miscellaneous cppcheck tweaks

See merge request isc-projects/bind9!3553
2020-05-18 08:45:36 +00:00
Michał Kępień 41b4af5d20 Work around cppcheck 2.0 uninitvar false positives
cppcheck 2.0 reports false positives about uninitialized variables in a
lot of places throughout BIND source code, e.g.:

    bin/dig/host.c:386:24: error: Uninitialized variable: length [uninitvar]
     printf("%.*s", (int)r.length, (char *)r.base);
                           ^

Apparently cppcheck 2.0 has issues with processing (&var)->field syntax,
which is what the macros from lib/isc/include/isc/buffer.h are evaluated
to.  This issue was reported upstream [1] and will hopefully be
addressed in a future cppcheck release.

In the meantime, to avoid modifying BIND source code in multiple places
just because of a static checker false positive, work around the issue
by adding intermediate variables to buffer macro definitions using a sed
invocation in the cppcheck job script.

[1] https://sourceforge.net/p/cppcheck/discussion/general/thread/122153e3c1/

(cherry picked from commit 481fa34e50)
2020-05-18 10:41:41 +02:00
Michał Kępień b5608306d4 Make GCC version extraction work with GCC 10
Add whitespace to the regular expression used for extracting the GCC
version from "gcc --version" output so that it works properly with
multi-digit major version numbers.

(cherry picked from commit 3b48eec79f)
2020-05-18 10:41:41 +02:00
Michał Kępień 90a20ad8ef Ensure cppcheck creates a HTML report upon failure
Commit 00f12220c0 broke the cppcheck job
in GitLab CI: when cppcheck fails, the script is immediately
interrupted, preventing cppcheck-htmlreport from being run.  To ensure
the HTML report is generated when cppcheck fails, revert to invoking
cppcheck-htmlreport in the "after_script" part of the job.

(cherry picked from commit cb2037ee9d)
2020-05-18 10:41:06 +02:00
Mark Andrews 3b52372f3c Merge branch '1852-race-in-autosign-system-test-v9_11' into 'v9_11'
Resolve "race in autosign system test."

See merge request isc-projects/bind9!3550
2020-05-18 07:00:36 +00:00