]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
6 years agocheck kskonly key ids
Mark Andrews [Wed, 29 Jan 2020 08:02:01 +0000 (19:02 +1100)] 
check kskonly key ids

(cherry picked from commit 379949cce43be56ec3132cd1c1f4c9b24d9d04fb)

6 years agoadd CHANGES
Mark Andrews [Tue, 14 Jan 2020 04:22:22 +0000 (15:22 +1100)] 
add CHANGES

(cherry picked from commit 272a31f7589972183a369f88b48f321f81c8d2b8)

6 years agostyle
Mark Andrews [Mon, 13 Jan 2020 04:41:35 +0000 (15:41 +1100)] 
style

(cherry picked from commit 279f6b01de3c399081d0471d2914889bde6efe5d)

6 years agoreturn the correct error code for the type being checked
Mark Andrews [Mon, 13 Jan 2020 04:34:16 +0000 (15:34 +1100)] 
return the correct error code for the type being checked

(cherry picked from commit a09c464a201934b83782a5f3db968100e90fb5ce)

6 years agocheck that a CDNSKEY deletion record is accepted
Mark Andrews [Mon, 13 Jan 2020 04:30:28 +0000 (15:30 +1100)] 
check that a CDNSKEY deletion record is accepted

(cherry picked from commit f91b3a69ce19333327cba338d4af12404bec6243)

6 years agohandle CDS deletion record in consistancy checks
Mark Andrews [Mon, 13 Jan 2020 04:08:17 +0000 (15:08 +1100)] 
handle CDS deletion record in consistancy checks

(cherry picked from commit 0adb4b25d38b6e2332b0cee8ab3f65be8e457c83)

6 years agoMerge branch 'michal/list-atypical-failures-in-system-test-summary-v9_14' into 'v9_14'
Michał Kępień [Wed, 29 Jan 2020 14:42:40 +0000 (14:42 +0000)] 
Merge branch 'michal/list-atypical-failures-in-system-test-summary-v9_14' into 'v9_14'

[v9_14] List atypical failures in system test summary

See merge request isc-projects/bind9!2974

6 years agoList atypical failures in system test summary
Michał Kępień [Wed, 29 Jan 2020 13:50:26 +0000 (14:50 +0100)] 
List atypical failures in system test summary

Each system test can be marked as failed not only due to some tested
component(s) not behaving as expected, but also because of core dumps,
assertion failures, and/or ThreadSanitizer reports being found among its
artifacts.  Make the system test summary list the tests which exhibit
such atypical symptoms to more clearly present the nature of problems
found.

(cherry picked from commit a8836b381f9d4825535757f05c09011912ee04fc)

6 years agoMerge branch '1508-case-system-test-failed-v9_14' into 'v9_14'
Mark Andrews [Tue, 28 Jan 2020 23:05:22 +0000 (23:05 +0000)] 
Merge branch '1508-case-system-test-failed-v9_14' into 'v9_14'

wait longer for dynamic zone to be transfered

See merge request isc-projects/bind9!2971

6 years agowait longer for dynamic zone to be transfered
Mark Andrews [Fri, 13 Dec 2019 04:58:39 +0000 (15:58 +1100)] 
wait longer for dynamic zone to be transfered

(cherry picked from commit 7b0ba6eb103e5af2878052b7924956c836ad940c)

6 years agoMerge branch 'each-merge-doc-v9_14_10' into 'v9_14'
Evan Hunt [Mon, 27 Jan 2020 22:43:14 +0000 (22:43 +0000)] 
Merge branch 'each-merge-doc-v9_14_10' into 'v9_14'

merge doc from 9.14.10 release

See merge request isc-projects/bind9!2962

6 years agoregen v9_14
Tinderbox User [Thu, 16 Jan 2020 15:06:56 +0000 (15:06 +0000)] 
regen v9_14

6 years agoprep 9.14.10
Tinderbox User [Thu, 16 Jan 2020 15:01:08 +0000 (15:01 +0000)] 
prep 9.14.10

Update the API files.
- lib/dns:
  - struct resolver has added elements, this is an interface change
    and thus LIBINTERFACE is incremented, and LIBREVISION is reset.
  - Since this also means an interface change since the last public
    release, also reset LIBAGE.
- lib/isccfg:
  - The library source code changed, so increment LIBREVISION.
- lib/ns:
  - The library source code changed, so increment LIBREVISION.

Update other files:
- No changes needed to the README, this is a small bugfix release.

6 years agoMerge branch 'each-history-typo-v9_14' into 'v9_14'
Evan Hunt [Fri, 24 Jan 2020 17:57:08 +0000 (17:57 +0000)] 
Merge branch 'each-history-typo-v9_14' into 'v9_14'

fixed a typo

See merge request isc-projects/bind9!2961

6 years agofixed a typo
Evan Hunt [Fri, 24 Jan 2020 17:53:32 +0000 (09:53 -0800)] 
fixed a typo

(cherry picked from commit 0147acd7b6dc788842b93f6faf72029ab7db1598)

6 years agoMerge branch '1579-dnstap-system-test-appears-to-be-timing-sensitive-v9_14' into...
Mark Andrews [Thu, 23 Jan 2020 21:50:26 +0000 (21:50 +0000)] 
Merge branch '1579-dnstap-system-test-appears-to-be-timing-sensitive-v9_14' into 'v9_14'

Resolve "dnstap system test appears to be timing sensitive"

See merge request isc-projects/bind9!2958

6 years agowait for the ./NS lookup to complete
Mark Andrews [Thu, 23 Jan 2020 02:54:56 +0000 (13:54 +1100)] 
wait for the ./NS lookup to complete

(cherry picked from commit 9b6df37303a9b091f1c6742cfa4a0108ca7848c4)

6 years agocheck that all servers have finished loading before beginging tests
Mark Andrews [Thu, 23 Jan 2020 02:31:47 +0000 (13:31 +1100)] 
check that all servers have finished loading before beginging tests

(cherry picked from commit 4a992c7a18ef943d562c157f6724fe2dcaba4f45)

6 years agoMerge branch 'marka-signing-clear-notify-v9_14' into 'v9_14'
Mark Andrews [Thu, 23 Jan 2020 13:34:24 +0000 (13:34 +0000)] 
Merge branch 'marka-signing-clear-notify-v9_14' into 'v9_14'

Send NOFITY messages after deleting private-type records.

See merge request isc-projects/bind9!2953

6 years agoSend NOFITY messages after deleting private-type records.
Tony Finch [Thu, 16 Jan 2020 15:46:04 +0000 (15:46 +0000)] 
Send NOFITY messages after deleting private-type records.

The `rndc signing -clear` command cleans up the private-type records
that keep track of zone signing activity, but before this change it
did not tell the secondary servers that the zone has changed.

(cherry picked from commit f3f7b7df5dc920eb982c48419126527d18d2c0a2)

6 years agoMerge branch '1572-wait-for-mirror-zone-to-be-deleted-v9_14' into 'v9_14'
Mark Andrews [Thu, 23 Jan 2020 05:46:53 +0000 (05:46 +0000)] 
Merge branch '1572-wait-for-mirror-zone-to-be-deleted-v9_14' into 'v9_14'

wait for log message before testing that mirror zone is correctly removed

See merge request isc-projects/bind9!2952

6 years agowait for log message before testing that mirror zone is correctly removed
Mark Andrews [Wed, 22 Jan 2020 04:49:48 +0000 (15:49 +1100)] 
wait for log message before testing that mirror zone is correctly removed

(cherry picked from commit c6ba51cfc4d47281ca2d1c5bbd34087756fe8697)

6 years agoMerge branch '1522-pad-system-test-is-timing-sensitive-v9_14' into 'v9_14'
Mark Andrews [Thu, 23 Jan 2020 03:47:26 +0000 (03:47 +0000)] 
Merge branch '1522-pad-system-test-is-timing-sensitive-v9_14' into 'v9_14'

address timing issues in padding system test

See merge request isc-projects/bind9!2951

6 years agoaddress timing issues in padding system test
Mark Andrews [Wed, 18 Dec 2019 02:23:58 +0000 (13:23 +1100)] 
address timing issues in padding system test

'rndc stats' is not instantaneous. Wait for the dump to complete
before looking at the content.

(cherry picked from commit b3f06729e51b05626ce03d31871d0d5341a9d66d)

6 years agoMerge branch '1540-bind-aborts-when-queried-for-non-existing-domain-in-chaos-class...
Evan Hunt [Wed, 22 Jan 2020 21:12:24 +0000 (21:12 +0000)] 
Merge branch '1540-bind-aborts-when-queried-for-non-existing-domain-in-chaos-class-v9_14' into 'v9_14'

Resolve "bind 9.14.8 and 9.14.9 aborts when queried for non-existing domain in chaos class"

See merge request isc-projects/bind9!2948

6 years agoCHANGES
Evan Hunt [Wed, 22 Jan 2020 18:23:34 +0000 (10:23 -0800)] 
CHANGES

(cherry picked from commit 42e1fb832248f34bcec76bba63e498cede3a9108)

6 years agoAdded test for the proposed fix
Diego Fronza [Wed, 15 Jan 2020 18:22:06 +0000 (15:22 -0300)] 
Added test for the proposed fix

Added test to ensure that NXDOMAIN is returned when BIND is queried for a
non existing domain in CH class (if a view of CHAOS class is configured)
and that it also doesn't crash anymore in those cases.

(cherry picked from commit 7417b79c7a84b6f02547e15915326f1a5129028b)

6 years agoFixed crash when querying for non existing domain in chaos class
Diego Fronza [Wed, 15 Jan 2020 17:39:38 +0000 (14:39 -0300)] 
Fixed crash when querying for non existing domain in chaos class

Function dns_view_findzonecut in view.c wasn't correctly handling
classes other than IN (chaos, hesiod, etc) whenever the name being
looked up wasn't in cache or in any of the configured zone views' database.

That resulted in a NULL fname being used in resolver.c:4900, which
in turn was triggering abort.

(cherry picked from commit 85555f29d78fe896a289b8c7c938b9833f4dcaa5)

6 years agoMerge branch 'mnowak/prevent-failing-grep-invocations-from-interrupting-mkeys-v9_14...
Michal Nowak [Wed, 22 Jan 2020 14:56:15 +0000 (14:56 +0000)] 
Merge branch 'mnowak/prevent-failing-grep-invocations-from-interrupting-mkeys-v9_14' into 'v9_14'

[v9_14] mkeys: Prevent failing grep invocations

See merge request isc-projects/bind9!2945

6 years agomkeys: Prevent failing grep invocations
Michal Nowak [Mon, 20 Jan 2020 17:06:16 +0000 (18:06 +0100)] 
mkeys: Prevent failing grep invocations

Some 'grep' invocations were not guarded from interrupting the test
prematurely, e.g. when no text was matched.

(cherry picked from commit 6c4a2b602042d83450f0af50c25225efa8698750)

6 years agoMerge branch 'marka-Psync-future-v9_14' into 'v9_14'
Mark Andrews [Tue, 21 Jan 2020 23:04:16 +0000 (23:04 +0000)] 
Merge branch 'marka-Psync-future-v9_14' into 'v9_14'

Marka psync future v9 14

See merge request isc-projects/bind9!2926

6 years agodnssec: do not publish CDS records when -Psync is in the future
Mark Andrews [Tue, 21 Jan 2020 23:04:16 +0000 (23:04 +0000)] 
dnssec: do not publish CDS records when -Psync is in the future

This is a bug I encountered when trying to schedule an algorithm
rollover. My plan, for a zone whose maximum TTL is 48h, was to sign
with the new algorithm and schedule a change of CDS records for more
than 48 hours in the future, roughly like this:

    $ dnssec-keygen -a 13 -fk -Psync now+50h $zone
    $ dnssec-keygen -a 13 $zone
    $ dnssec-settime -Dsync now+50h $zone_ksk_old

However the algorithm 13 CDS was published immediately, which could
have made the zone bogus.

To reveal the bug using the `smartsign` test, this change just adds a
KSK with all its times in the future, so it should not affect the
existing checks at all. But the final check (that there are no CDS or
CDSNSKEY records after -Dsync) fails with the old `syncpublish()`
logic, because the future key's sync records appear early. With the
new `syncpublish()` logic the future key does not affect the test, as
expected, and it now passes.

(cherry picked from commit 4227b7969b27c50cf6f45e8d5a776edab74b097b)

6 years agoMerge branch 'mnowak/enhance_unit_test_debugging-v9_14' into 'v9_14'
Michal Nowak [Tue, 21 Jan 2020 17:46:57 +0000 (17:46 +0000)] 
Merge branch 'mnowak/enhance_unit_test_debugging-v9_14' into 'v9_14'

[v9_14] Omit spurious string from unit test debugging efforts

See merge request isc-projects/bind9!2936

6 years agoOmit spurious string from unit test debugging efforts
Michal Nowak [Tue, 21 Jan 2020 17:46:57 +0000 (17:46 +0000)] 
Omit spurious string from unit test debugging efforts

When both 'broken' and 'failed' test cases appear in unit test output

...
===> Broken tests
lib/isc/tests/socket_test:main  ->  broken: Test case timed out  [300.022s]
===> Failed tests
lib/isc/tests/time_test:main  ->  failed: 2 of 6 tests failed  [0.006s]
===> Summary
...

spurious '===>' string gets matched, that results in the following
error:

  Usage error for command debug: '===>' is not a test case identifier (missing ':'?).

Following change makes sure the string is omitted.

I checked on FreeBSD and OpenBSD that the AWK construct is supported.

(cherry picked from commit 9e6f6156f7fcd6713531960582d5393d05ac569d)

6 years agoMerge branch 'wpk/fix-inline-test-v9_14' into 'v9_14'
Witold Krecicki [Tue, 21 Jan 2020 14:34:37 +0000 (14:34 +0000)] 
Merge branch 'wpk/fix-inline-test-v9_14' into 'v9_14'

tests: add a missing log nextpart in inline test

See merge request isc-projects/bind9!2934

6 years agotests: add a missing log nextpart in inline test
Witold Kręcicki [Tue, 21 Jan 2020 10:56:25 +0000 (11:56 +0100)] 
tests: add a missing log nextpart in inline test

6 years agoMerge branch 'ondrej/lower-the-artifact-expiration-time-to-just-12-hours-v9_14' into...
Ondřej Surý [Tue, 21 Jan 2020 12:11:00 +0000 (12:11 +0000)] 
Merge branch 'ondrej/lower-the-artifact-expiration-time-to-just-12-hours-v9_14' into 'v9_14'

Lower the artifact expiration time to just 1 day

See merge request isc-projects/bind9!2931

6 years agoLower the artifact expiration time to just 1 day
Ondřej Surý [Tue, 21 Jan 2020 11:51:54 +0000 (12:51 +0100)] 
Lower the artifact expiration time to just 1 day

(cherry picked from commit 27a9be3034843886b762601a33a229b88bf465f9)

6 years agoMerge branch 'marka-omit-spurious-newlines-v9_14' into 'v9_14'
Mark Andrews [Tue, 21 Jan 2020 05:49:50 +0000 (05:49 +0000)] 
Merge branch 'marka-omit-spurious-newlines-v9_14' into 'v9_14'

Omit spurious newlines when reporting DNSKEY changes

See merge request isc-projects/bind9!2923

6 years agoOmit spurious newlines when reporting DNSKEY changes
Tony Finch [Thu, 16 Jan 2020 15:54:12 +0000 (15:54 +0000)] 
Omit spurious newlines when reporting DNSKEY changes

These caused blank lines to appear in the logs.

(cherry picked from commit 3b1bd3f48b949ee8dd8e5af8eae52fd1d1554dc3)

6 years agoMerge branch 'marka-document-authors-bind-v9_14' into 'v9_14'
Mark Andrews [Tue, 21 Jan 2020 04:29:24 +0000 (04:29 +0000)] 
Merge branch 'marka-document-authors-bind-v9_14' into 'v9_14'

document that version also controls authors.bind

See merge request isc-projects/bind9!2920

6 years agodocument that version also controls authors.bind
Mark Andrews [Mon, 20 Jan 2020 23:11:24 +0000 (10:11 +1100)] 
document that version also controls authors.bind

(cherry picked from commit 05c6a29c87bbc84f1fbeaf79f3db8a01711e4005)

6 years agoMerge branch '1537-nslookup-manual-page-needs-update-for-default-querytype-a-and...
Mark Andrews [Mon, 20 Jan 2020 02:23:23 +0000 (02:23 +0000)] 
Merge branch '1537-nslookup-manual-page-needs-update-for-default-querytype-a-and-aaaa-v9_14' into 'v9_14'

document that nslookup defaults to A + AAAA lookups

See merge request isc-projects/bind9!2916

6 years agodocument that nslookup defaults to A + AAAA lookups
Mark Andrews [Wed, 15 Jan 2020 02:06:50 +0000 (13:06 +1100)] 
document that nslookup defaults to A + AAAA lookups

(cherry picked from commit 938fc81493727b45e8716e910f9a04160830f3b9)

6 years agoMerge branch 'marka-check-CHANGES-SE-in-CI-v9_14' into 'v9_14'
Mark Andrews [Sun, 19 Jan 2020 23:12:27 +0000 (23:12 +0000)] 
Merge branch 'marka-check-CHANGES-SE-in-CI-v9_14' into 'v9_14'

check that CHANGES.SE entries are correctly ordered and that whitespace is correct

See merge request isc-projects/bind9!2915

6 years agocheck that CHANGES.SE entries are correctly ordered and that whitespace is correct
Mark Andrews [Thu, 16 Jan 2020 22:25:53 +0000 (09:25 +1100)] 
check that CHANGES.SE entries are correctly ordered and that whitespace is correct

(cherry picked from commit 05f2ba973f88cbca0ae8f866b6cf72fcaffb9e64)

6 years agoMerge branch 'prepare-release-notes-for-bind-9-14.10' into 'v9_14'
Matthijs Mekking [Thu, 16 Jan 2020 12:01:29 +0000 (12:01 +0000)] 
Merge branch 'prepare-release-notes-for-bind-9-14.10' into 'v9_14'

Add release notes section for BIND 9.14.10

See merge request isc-projects/bind9!2905

6 years agoAdd release notes section for BIND 9.14.10
Michał Kępień [Tue, 14 Jan 2020 10:31:36 +0000 (11:31 +0100)] 
Add release notes section for BIND 9.14.10

6 years agoMerge branch 'michal/fix-the-dnssec-system-test-on-windows-v9_14' into 'v9_14'
Michał Kępień [Thu, 16 Jan 2020 08:51:23 +0000 (08:51 +0000)] 
Merge branch 'michal/fix-the-dnssec-system-test-on-windows-v9_14' into 'v9_14'

[v9_14] Fix the "dnssec" system test on Windows

See merge request isc-projects/bind9!2903

6 years agoFix the "dnssec" system test on Windows
Michał Kępień [Thu, 16 Jan 2020 08:48:01 +0000 (09:48 +0100)] 
Fix the "dnssec" system test on Windows

Make sure carriage return characters are stripped from awk input to
enable the "dnssec" system test to pass on Windows.

(cherry picked from commit 451484b8703d7bd34dea2a52a90b8f1dfa4cc1bd)

6 years agoMerge branch '1525-inline-system-test-failed-need-to-wait-for-zone-to-be-loaded-v9_14...
Michał Kępień [Tue, 14 Jan 2020 14:14:38 +0000 (14:14 +0000)] 
Merge branch '1525-inline-system-test-failed-need-to-wait-for-zone-to-be-loaded-v9_14' into 'v9_14'

[v9_14] Resolve "inline system test failed, need to wait for zone to be loaded."

See merge request isc-projects/bind9!2890

6 years agoaddress some timing issues in inline system test
Mark Andrews [Tue, 24 Dec 2019 00:15:00 +0000 (11:15 +1100)] 
address some timing issues in inline system test

(cherry picked from commit 2dc4d72fa9a9d1ed554937a07abfe57fab8aa954)

6 years agoMerge branch '1482-autosign-system-test-failed-v9_14' into 'v9_14'
Michał Kępień [Tue, 14 Jan 2020 13:34:54 +0000 (13:34 +0000)] 
Merge branch '1482-autosign-system-test-failed-v9_14' into 'v9_14'

[v9_14] Resolve "autosign system test failed"

See merge request isc-projects/bind9!2887

6 years agoFix autosign system test issues.
Mark Andrews [Fri, 13 Dec 2019 03:45:24 +0000 (14:45 +1100)] 
Fix autosign system test issues.

* report when NSEC3PARAM is not yet present
* allow more time for NSEC3PARAM to become present
* adjust frequency failure message

(cherry picked from commit 17d25dbf4745d698c1b1751f9421b8153e1e198e)

6 years agoMerge branch '1467-xfer-test-suppress-zone-transfer-when-we-are-going-to-retry-v9_14...
Michał Kępień [Tue, 14 Jan 2020 11:52:28 +0000 (11:52 +0000)] 
Merge branch '1467-xfer-test-suppress-zone-transfer-when-we-are-going-to-retry-v9_14' into 'v9_14'

[v9_14] Resolve "xfer test: suppress zone transfer when we are going to retry."

See merge request isc-projects/bind9!2884

6 years agoimprove forensic logs
Mark Andrews [Tue, 10 Dec 2019 03:53:00 +0000 (14:53 +1100)] 
improve forensic logs

improve forensic logs by directing output to per sub-test named
files and reporting the sub-subtest number.

(cherry picked from commit 05aa45c602f564dfe089b091686313f69697fa81)

6 years agosuppress unnecessary zone transfer
Mark Andrews [Tue, 10 Dec 2019 03:53:00 +0000 (14:53 +1100)] 
suppress unnecessary zone transfer

suppressed unnecessary zone transfer in "test mapped zone with
out of zone data" sub-test.

(cherry picked from commit 9bd6720f581e5934c94cf7206c22a158f74c1902)

6 years agoImprove forensic logging in "testing basic zone transfer functionality"
Mark Andrews [Tue, 10 Dec 2019 03:53:00 +0000 (14:53 +1100)] 
Improve forensic logging in "testing basic zone transfer functionality"

Split the "testing basic zone transfer functionality" into primary and
secondary parts to improve forensic logging.

(cherry picked from commit 46982b414b74c30b83d3145bff5005026d25542e)

6 years agoMerge branch '1531-add-calls-to-dns_rdata_additionaldata-to-lib-dns-tests-rdata_test...
Ondřej Surý [Tue, 14 Jan 2020 09:36:33 +0000 (09:36 +0000)] 
Merge branch '1531-add-calls-to-dns_rdata_additionaldata-to-lib-dns-tests-rdata_test-c-v9_14' into 'v9_14'

Resolve "Add calls to dns_rdata_additionaldata to lib/dns/tests/rdata_test.c"

See merge request isc-projects/bind9!2878

6 years agoexercise dns_rdata_checknames
Mark Andrews [Mon, 23 Dec 2019 21:43:45 +0000 (08:43 +1100)] 
exercise dns_rdata_checknames

(cherry picked from commit b3c1b2a869f407a35d0c29162c1005304c5beb40)

6 years agoexercise dns_rdata_additionaldata
Mark Andrews [Mon, 23 Dec 2019 21:19:28 +0000 (08:19 +1100)] 
exercise dns_rdata_additionaldata

(cherry picked from commit 649a34d628b5305dd0f5960389df77aa3808c562)

6 years agocall dns_rdata_towire on valid output from dns_rdata_fromtext and dns_rdata_fromwire
Mark Andrews [Mon, 23 Dec 2019 06:43:15 +0000 (17:43 +1100)] 
call dns_rdata_towire on valid output from dns_rdata_fromtext and dns_rdata_fromwire

(cherry picked from commit 5e74550740a562f835820ebaea22e804c208eada)

6 years agoMerge branch '1443-threadsanitizer-data-race-lib-dns-rbtdb-c-1960-in-decrement_refere...
Ondřej Surý [Tue, 14 Jan 2020 08:05:00 +0000 (08:05 +0000)] 
Merge branch '1443-threadsanitizer-data-race-lib-dns-rbtdb-c-1960-in-decrement_reference-2-v9_14' into 'v9_14'

Resolve "ThreadSanitizer: data race lib/dns/rbtdb.c:1960 in decrement_reference"

See merge request isc-projects/bind9!2873

6 years agoAdd is_leaf and send_to_prune_tree.
Mark Andrews [Thu, 5 Dec 2019 23:08:52 +0000 (10:08 +1100)] 
Add is_leaf and send_to_prune_tree.

Add is_leaf and send_to_prune_tree to make the logic easier
to understand in cleanup_dead_nodes and decrement_reference.

(cherry picked from commit c6efc0e50fd806f48c243baed69b70a7e6473347)

6 years agoTesting node->down requires the tree lock to be held.
Mark Andrews [Wed, 4 Dec 2019 10:41:04 +0000 (21:41 +1100)] 
Testing node->down requires the tree lock to be held.

In decrement_reference only test node->down if the tree lock
is held.  As node->down is not always tested in
decrement_reference we need to test that it is non NULL in
cleanup_dead_nodes prior to removing the node from the rbt
tree.  Additionally it is not always possible to aquire the
node lock and reactivate a node when adding parent nodes.
Reactivate such nodes in cleanup_dead_nodes if required.

(cherry picked from commit 176b23b6cd98e5b58f832902fdbe964ee5f762d0)

6 years agoMerge branch 'u/fanf2/rndc-secroots-newlines-v9_14' into 'v9_14'
Mark Andrews [Mon, 13 Jan 2020 19:51:53 +0000 (19:51 +0000)] 
Merge branch 'u/fanf2/rndc-secroots-newlines-v9_14' into 'v9_14'

Fix line spacing in `rndc secroots`

See merge request isc-projects/bind9!2866

6 years agoFix line spacing in `rndc secroots`
Tony Finch [Mon, 13 Jan 2020 05:48:09 +0000 (05:48 +0000)] 
Fix line spacing in `rndc secroots`

Before this change, there was a missing blank line between the
negative trust anchors for one view, and the heading line for the next
view. This is because dns_ntatable_totext() omits the last newline.
There is an example of the incorrect output below; the fixed output
has a blank line before "Start view auth".

secure roots as of 21-Oct-2019 12:03:23.500:

 Start view rec
   Secure roots:

./RSASHA256/20326 ; managed

   Negative trust anchors:

example.com: expiry 21-Oct-2019 13:03:15.000
 Start view auth
   Secure roots:

./RSASHA256/20326 ; managed

   Negative trust anchors:

example.com: expiry 21-Oct-2019 13:03:07.000

(cherry picked from commit 5b600c2cd806515091a6ee3f818b700fe10147e6)

6 years agoMerge branch 'mnowak/add-openSUSE-Tumblewed-image-v9_14' into 'v9_14'
Michal Nowak [Mon, 13 Jan 2020 16:27:21 +0000 (16:27 +0000)] 
Merge branch 'mnowak/add-openSUSE-Tumblewed-image-v9_14' into 'v9_14'

[v9_14] Add openSUSE Tumbleweed image to the CI

See merge request isc-projects/bind9!2875

6 years agoAdd openSUSE Tumbleweed image to the CI
Michal Nowak [Mon, 13 Jan 2020 16:27:21 +0000 (16:27 +0000)] 
Add openSUSE Tumbleweed image to the CI

Ensure BIND is continuously tested on Tumbleweed, a pure rolling release
version of openSUSE.  This will allow BIND incompatibilities with latest
upstream versions of its dependencies to be caught more quickly.

(cherry picked from commit bd5dd1b58c60edb372bc6fa4eb39e355c5c76de4)

6 years agoMerge branch '1552-properly-detect-mmdb-lookup-failures-v9_14' into 'v9_14'
Michał Kępień [Mon, 13 Jan 2020 14:06:52 +0000 (14:06 +0000)] 
Merge branch '1552-properly-detect-mmdb-lookup-failures-v9_14' into 'v9_14'

[v9_14] Properly detect MMDB lookup failures

See merge request isc-projects/bind9!2871

6 years agoAdd CHANGES entry
Michał Kępień [Mon, 13 Jan 2020 13:32:19 +0000 (14:32 +0100)] 
Add CHANGES entry

5339. [bug] With some libmaxminddb versions, named could erroneously
match an IP address not belonging to any subnet defined
in a given GeoIP2 database to one of the existing
entries in that database. [GL #1552]

(cherry picked from commit aa96ec25c8db58c6d00be4df1adea55165735206)

6 years agoProperly detect MMDB lookup failures
Michał Kępień [Mon, 13 Jan 2020 13:32:19 +0000 (14:32 +0100)] 
Properly detect MMDB lookup failures

Only comparing the value of the integer passed as the last argument to
MMDB_lookup_sockaddr() against MMDB_SUCCESS is not enough to ensure that
an MMDB lookup was successful - the 'found_entry' field of the
MMDB_lookup_result_s structure returned by that function also needs to
be true or else the remaining contents of that structure should be
ignored as the lookup failed.  Extend the relevant logical condition in
get_entry_for() to ensure the latter does not return incorrect MMDB
entries for IP addresses which do not belong to any subnet defined in a
given GeoIP2 database.

(cherry picked from commit ec8334fb743ecd8ae29f2751dab0fd86b7334327)

6 years agoMerge branch 'michal/update-gitlab-ci-to-alpine-linux-3.11-v9_14' into 'v9_14'
Michał Kępień [Fri, 10 Jan 2020 11:43:00 +0000 (11:43 +0000)] 
Merge branch 'michal/update-gitlab-ci-to-alpine-linux-3.11-v9_14' into 'v9_14'

[v9_14] Update GitLab CI to Alpine Linux 3.11

See merge request isc-projects/bind9!2861

6 years agoUpdate GitLab CI to Alpine Linux 3.11
Michał Kępień [Fri, 10 Jan 2020 10:23:56 +0000 (11:23 +0100)] 
Update GitLab CI to Alpine Linux 3.11

Since Alpine Linux 3.11 is the current Alpine Linux release, replace
Alpine Linux 3.10 GitLab CI jobs with their up-to-date counterparts.

(cherry picked from commit bebf353eb5b2e68e3ad3ff6b7be6be111453fc01)

6 years agoMerge branch 'ondrej/run-full-pipeline-on-schedule-v9_14' into 'v9_14'
Michał Kępień [Fri, 10 Jan 2020 10:20:53 +0000 (10:20 +0000)] 
Merge branch 'ondrej/run-full-pipeline-on-schedule-v9_14' into 'v9_14'

[v9_14] Run all jobs on scheduled builds (including OpenBSD and Windows)

See merge request isc-projects/bind9!2859

6 years agoRun all jobs on scheduled builds (including OpenBSD and Windows)
Ondřej Surý [Tue, 10 Dec 2019 08:23:37 +0000 (09:23 +0100)] 
Run all jobs on scheduled builds (including OpenBSD and Windows)

(cherry picked from commit 52773e226a0243d2cf1c8541bb7f1fb0303ee5e3)

6 years agoMerge branch 'ondrej/stop-retrying-system-tests-v9_14' into 'v9_14'
Michał Kępień [Fri, 10 Jan 2020 10:15:02 +0000 (10:15 +0000)] 
Merge branch 'ondrej/stop-retrying-system-tests-v9_14' into 'v9_14'

[v9_14] Stop retrying the system tests; we should fix the tests instead

See merge request isc-projects/bind9!2857

6 years agoStop retrying the system tests; we should fix the tests instead
Ondřej Surý [Tue, 26 Nov 2019 12:00:32 +0000 (13:00 +0100)] 
Stop retrying the system tests; we should fix the tests instead

(cherry picked from commit 8ad67f8b9fc7f001b763c12ade5282298d20e2cc)

6 years agoMerge branch '1431-summary-sanitizer-grep-is-dangerous-v9_14' into 'v9_14'
Michał Kępień [Fri, 10 Jan 2020 10:12:57 +0000 (10:12 +0000)] 
Merge branch '1431-summary-sanitizer-grep-is-dangerous-v9_14' into 'v9_14'

[v9_14] Resolve ""SUMMARY: .*Sanitizer" grep is dangerous"

See merge request isc-projects/bind9!2855

6 years agoreplace grep -r with 'find -type f | xargs'
Mark Andrews [Thu, 28 Nov 2019 23:58:28 +0000 (10:58 +1100)] 
replace grep -r with 'find -type f | xargs'

(cherry picked from commit 36ce99d8a429775d9f219f82497800626a2f8a7c)

6 years agoMerge branch 'ondrej/keep-sanitizer-tainted-system-tests-files-v9_14' into 'v9_14'
Michał Kępień [Fri, 10 Jan 2020 09:50:27 +0000 (09:50 +0000)] 
Merge branch 'ondrej/keep-sanitizer-tainted-system-tests-files-v9_14' into 'v9_14'

[v9_14] Don't clean the system test temporary files if sanitizer reports were found inside

See merge request isc-projects/bind9!2853

6 years agoDon't clean the system test temporary files if sanitizer reports were found inside
Ondřej Surý [Tue, 26 Nov 2019 17:03:33 +0000 (18:03 +0100)] 
Don't clean the system test temporary files if sanitizer reports were found inside

(cherry picked from commit 7489e6e6f9526793fe4da36b77f685911f2cf517)

6 years agoMerge branch 'michal/fix-the-forward-system-test-on-windows-v9_14' into 'v9_14'
Michał Kępień [Fri, 10 Jan 2020 09:45:17 +0000 (09:45 +0000)] 
Merge branch 'michal/fix-the-forward-system-test-on-windows-v9_14' into 'v9_14'

[v9_14] Fix the "forward" system test on Windows

See merge request isc-projects/bind9!2851

6 years agoFix the "forward" system test on Windows
Michał Kępień [Wed, 11 Dec 2019 08:42:09 +0000 (09:42 +0100)] 
Fix the "forward" system test on Windows

Make sure carriage return characters are stripped from sed input to
enable the "forward" system test to pass on Windows.

(cherry picked from commit 075613aea4758ff0e7c2a0666fa493631c5e1371)

6 years agoMerge branch '1479-_wait_for_rcode-adds-extraneous-query-v9_14' into 'v9_14'
Michał Kępień [Fri, 10 Jan 2020 09:42:43 +0000 (09:42 +0000)] 
Merge branch '1479-_wait_for_rcode-adds-extraneous-query-v9_14' into 'v9_14'

[v9_14] Resolve "_wait_for_rcode adds extraneous query"

See merge request isc-projects/bind9!2849

6 years agoconsume all arguments we have processed in shift
Mark Andrews [Tue, 10 Dec 2019 23:23:20 +0000 (10:23 +1100)] 
consume all arguments we have processed in shift

(cherry picked from commit 0ee0580fc9891a571b683997d782b1e906b9eac2)

6 years agoMerge branch '1453-the-zero-system-test-timeouts-intermittently-v9_14' into 'v9_14'
Michał Kępień [Fri, 10 Jan 2020 09:26:53 +0000 (09:26 +0000)] 
Merge branch '1453-the-zero-system-test-timeouts-intermittently-v9_14' into 'v9_14'

[v9_14] Bail-out early if dig fails to finish successfully or takes too long

See merge request isc-projects/bind9!2847

6 years agoBail-out early if dig fails to finish successfully or takes too long
Ondřej Surý [Thu, 5 Dec 2019 17:09:21 +0000 (18:09 +0100)] 
Bail-out early if dig fails to finish successfully or takes too long

Before, the zero system test could get stuck almost infinitely, because
the first test sends > 300 queries with 5 seconds timeout on each in
each pass.  If named crashed early, it would took the test more than 4
hours to properly timeout.

This commit introduces a "watchdog" on the dig commands running in the
background and failing the test on timeout, failing any test if any dig
command fails to return successfully, and making the tests.sh script
shellcheck clean.

(cherry picked from commit 2a65a47f39db732c05c628a6463cdd5c672463b3)

6 years agoMerge branch '1458-intermittent-failure-in-the-forward-system-test-v9_14' into 'v9_14'
Michał Kępień [Fri, 10 Jan 2020 09:03:20 +0000 (09:03 +0000)] 
Merge branch '1458-intermittent-failure-in-the-forward-system-test-v9_14' into 'v9_14'

[v9_14] Resolve "Intermittent failure in the forward system test"

See merge request isc-projects/bind9!2845

6 years agoWait for named to forward the question before testing the validity
Ondřej Surý [Fri, 6 Dec 2019 10:54:54 +0000 (11:54 +0100)] 
Wait for named to forward the question before testing the validity

(cherry picked from commit fb03edacd857ce3a9970837beafe6ea445925e18)

6 years agoMake forward system test shellcheck clean
Ondřej Surý [Fri, 6 Dec 2019 10:17:33 +0000 (11:17 +0100)] 
Make forward system test shellcheck clean

(cherry picked from commit 0e15cbb09254ed9a8b6d9092f70b41503f91e9d5)

6 years agoUse $n to keep diagnostic output of every individual test separate
Ondřej Surý [Fri, 6 Dec 2019 10:07:28 +0000 (11:07 +0100)] 
Use $n to keep diagnostic output of every individual test separate

(cherry picked from commit 10f4cd066fbc3b84ae917f21ef608ed5759159a8)

6 years agoAdd the standard $n to each test
Ondřej Surý [Fri, 6 Dec 2019 10:03:54 +0000 (11:03 +0100)] 
Add the standard $n to each test

(cherry picked from commit 64df488e1ef7fc25eb6c46b5c38cfabc8ad0e0f8)

6 years agoMerge branch '1425-intermittent-failure-in-the-addzone-system-test-v9_14' into 'v9_14'
Michał Kępień [Thu, 9 Jan 2020 16:38:39 +0000 (16:38 +0000)] 
Merge branch '1425-intermittent-failure-in-the-addzone-system-test-v9_14' into 'v9_14'

[v9_14] Resolve "Intermittent failure in the addzone system test"

See merge request isc-projects/bind9!2842

6 years agotests: addzone: retry when checking for things, to allow for timing problems
Witold Kręcicki [Mon, 9 Dec 2019 08:25:40 +0000 (09:25 +0100)] 
tests: addzone: retry when checking for things, to allow for timing problems

(cherry picked from commit 8885fd6966c4166a089ae77174f42a0f6adc640c)

6 years agoloop waiting for the redirect zone to load
Mark Andrews [Fri, 6 Dec 2019 02:30:14 +0000 (13:30 +1100)] 
loop waiting for the redirect zone to load

(cherry picked from commit 9e8cd3ccc53254d562fcfb973736b3e2bdcbf308)

6 years agoMove wait_for_log to conf.sh.common
Matthijs Mekking [Fri, 6 Dec 2019 16:16:45 +0000 (17:16 +0100)] 
Move wait_for_log to conf.sh.common

(cherry picked from cfaa631f65959d11a58ee6a9979c4bd289db4698)

6 years agoMerge branch '1427-intermittent-failure-in-fetchlimit-system-test-v9_14' into 'v9_14'
Michał Kępień [Thu, 9 Jan 2020 13:31:21 +0000 (13:31 +0000)] 
Merge branch '1427-intermittent-failure-in-fetchlimit-system-test-v9_14' into 'v9_14'

[v9_14] Test for the hard fetchlimit instead of soft fetchlimit

See merge request isc-projects/bind9!2841

6 years agoTest for the hard fetchlimit instead of soft fetchlimit
Ondřej Surý [Wed, 4 Dec 2019 23:02:43 +0000 (00:02 +0100)] 
Test for the hard fetchlimit instead of soft fetchlimit

Previously, the fetchlimit tested the recursive-clients soft limit
that's defined as 90% of the hard limit (the actual configured value).
This worked previously because the reaping of the oldest recursive
client was put on the same event queue as the current TCP client, thus
the cleaning has happened before the new TCP client established a new
connection.

With the change in BIND 9.14 that added a multiple event queues the
cleaning of the oldests clients is no longer synchronous and could
happen stochastically making the soft limit testing fail often.  The
situation became even worse with the new networking manager, thus we
change the system test to fail only if the hard limit bound is not
honored.

Changing the accounting of the already reaped TCP clients so the soft
limit testing is possible again is out of the scope for this change.

(cherry picked from commit c35a4e05fa2d0a603120031ab4e7ce0090c5eb3f)

6 years agoMerge branch '1407-intermittent-failure-in-the-mkeys-system-test-v9_14' into 'v9_14'
Michał Kępień [Thu, 9 Jan 2020 12:05:57 +0000 (12:05 +0000)] 
Merge branch '1407-intermittent-failure-in-the-mkeys-system-test-v9_14' into 'v9_14'

[v9_14] Improve the error handling in mkeys test and use retry_quiet()

See merge request isc-projects/bind9!2839