]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
6 years agoOmit spurious string from unit test debugging efforts enhance_unit_test_debugging
Michal Nowak [Wed, 8 Jan 2020 14:07:43 +0000 (15:07 +0100)] 
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.

6 years agoMerge branch '1525-inline-system-test-failed-need-to-wait-for-zone-to-be-loaded'...
Ondřej Surý [Wed, 8 Jan 2020 07:23:42 +0000 (07:23 +0000)] 
Merge branch '1525-inline-system-test-failed-need-to-wait-for-zone-to-be-loaded' into 'master'

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

Closes #1525

See merge request isc-projects/bind9!2796

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

6 years agoMerge branch '1513-inline-system-test-failed' into 'master'
Ondřej Surý [Wed, 8 Jan 2020 07:17:47 +0000 (07:17 +0000)] 
Merge branch '1513-inline-system-test-failed' into 'master'

Resolve "inline system test failed"

Closes #1513

See merge request isc-projects/bind9!2777

6 years agoAddress timing issues in 'inline' system test.
Mark Andrews [Tue, 17 Dec 2019 03:19:21 +0000 (14:19 +1100)] 
Address timing issues in 'inline' system test.

"rndc signing -serial <value>" could take longer than a second to
complete.  Loop waiting for update to succeed.

For tests where "rndc signing -serial <value>" is supposed to not
succeed, repeatedly test that we don't get the new serial, then
test that we have the old value.  This should prevent false negatives.

6 years agoMerge branch '1467-xfer-test-suppress-zone-transfer-when-we-are-going-to-retry' into...
Ondřej Surý [Tue, 7 Jan 2020 13:56:35 +0000 (13:56 +0000)] 
Merge branch '1467-xfer-test-suppress-zone-transfer-when-we-are-going-to-retry' into 'master'

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

Closes #1467

See merge request isc-projects/bind9!2735

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.

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.

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.

6 years agoMerge branch 'copyrights-2020' into 'master'
Matthijs Mekking [Mon, 6 Jan 2020 17:53:09 +0000 (17:53 +0000)] 
Merge branch 'copyrights-2020' into 'master'

Update copyrights 2020

See merge request isc-projects/bind9!2809

6 years agoUpdate copyrights 2020
Matthijs Mekking [Mon, 6 Jan 2020 13:25:45 +0000 (14:25 +0100)] 
Update copyrights 2020

Happy New Year!

6 years agoMerge branch 'mnowak/get-the-backtraces-out-of-unit-test-coredumps' into 'master'
Michal Nowak [Mon, 6 Jan 2020 11:25:09 +0000 (11:25 +0000)] 
Merge branch 'mnowak/get-the-backtraces-out-of-unit-test-coredumps' into 'master'

Gather debug info on broken unit tests

See merge request isc-projects/bind9!2699

6 years agoGather debug info on broken unit tests
Michal Nowak [Mon, 6 Jan 2020 11:25:09 +0000 (11:25 +0000)] 
Gather debug info on broken unit tests

6 years agoMerge branch 'michal/misc-doc-fixes' into 'master'
Michał Kępień [Fri, 3 Jan 2020 08:24:18 +0000 (08:24 +0000)] 
Merge branch 'michal/misc-doc-fixes' into 'master'

Miscellaneous documentation fixes

See merge request isc-projects/bind9!2800

6 years agoFix minor CHANGES issues
Michał Kępień [Fri, 3 Jan 2020 08:08:09 +0000 (09:08 +0100)] 
Fix minor CHANGES issues

6 years agoFix whitespace and punctuation in release notes
Michał Kępień [Fri, 3 Jan 2020 08:08:09 +0000 (09:08 +0100)] 
Fix whitespace and punctuation in release notes

6 years agoPrevent splitting GitLab identifiers across lines
Michał Kępień [Fri, 3 Jan 2020 08:08:09 +0000 (09:08 +0100)] 
Prevent splitting GitLab identifiers across lines

GitLab issue and merge request numbers placed in release notes (in the
form of "#1234" for issues and "!5678" for merge requests) should not be
split across two lines.  Extend the shell pipeline generating
doc/arm/notes.txt with a sed invocation which prevents such splitting.

6 years agoMerge branch 'each-copyrights' into 'master'
Evan Hunt [Fri, 3 Jan 2020 05:53:01 +0000 (05:53 +0000)] 
Merge branch 'each-copyrights' into 'master'

update copyright year to 2020

See merge request isc-projects/bind9!2801

6 years agoupdate copyright year to 2020
Evan Hunt [Fri, 3 Jan 2020 05:45:30 +0000 (21:45 -0800)] 
update copyright year to 2020

6 years agoMerge branch '1530-lib-dns-gen-c-29-26-fatal-error-isc-platform-h-no-such-file-or...
Mark Andrews [Sun, 22 Dec 2019 21:18:09 +0000 (21:18 +0000)] 
Merge branch '1530-lib-dns-gen-c-29-26-fatal-error-isc-platform-h-no-such-file-or-directory' into 'master'

Resolve "lib/dns/gen.c:29:26: fatal error: isc/platform.h: No such file or directory"

Closes #1530

See merge request isc-projects/bind9!2792

6 years agoremove duplicate #includes
Mark Andrews [Sun, 22 Dec 2019 20:47:36 +0000 (07:47 +1100)] 
remove duplicate #includes

6 years agorevert d10fbdec for lib/dns/gen.c as it is a build platform executable
Mark Andrews [Sun, 22 Dec 2019 20:37:13 +0000 (07:37 +1100)] 
revert d10fbdec for lib/dns/gen.c as it is a build platform executable

6 years agoMerge branch '1501-summary-threadsanitizer-lock-order-inversion-potential-deadlock...
Mark Andrews [Fri, 20 Dec 2019 10:57:43 +0000 (10:57 +0000)] 
Merge branch '1501-summary-threadsanitizer-lock-order-inversion-potential-deadlock-in-pthread_rwlock_wrlock' into 'master'

Resolve "SUMMARY: ThreadSanitizer: lock-order-inversion (potential deadlock) in pthread_rwlock_wrlock - zone_postload"

See merge request isc-projects/bind9!2776

6 years agoRefactor loop body as copy_non_dnssec_records.
Mark Andrews [Fri, 20 Dec 2019 02:01:49 +0000 (13:01 +1100)] 
Refactor loop body as copy_non_dnssec_records.

6 years agoAdd failure handling when iterators don't end with ISC_R_NOMORE
Ondřej Surý [Wed, 18 Dec 2019 09:54:01 +0000 (10:54 +0100)] 
Add failure handling when iterators don't end with ISC_R_NOMORE

6 years agoRefactor receive_secure_db to make the variables and code flow around the iterator...
Ondřej Surý [Wed, 18 Dec 2019 09:34:29 +0000 (10:34 +0100)] 
Refactor receive_secure_db to make the variables and code flow around the iterator more local

6 years agoCall dns_dbiterator_destroy earlier to prevent potential deadlock.
Mark Andrews [Mon, 16 Dec 2019 07:13:05 +0000 (18:13 +1100)] 
Call dns_dbiterator_destroy earlier to prevent potential deadlock.

6 years agoMerge branch '1523-pkcs11-destroy-s-usage-message-is-misleading' into 'master'
Mark Andrews [Fri, 20 Dec 2019 08:56:11 +0000 (08:56 +0000)] 
Merge branch '1523-pkcs11-destroy-s-usage-message-is-misleading' into 'master'

Resolve "pkcs11-destroy's usage message is misleading"

Closes #1523

See merge request isc-projects/bind9!2785

6 years agoupdate usage message
Mark Andrews [Thu, 19 Dec 2019 02:36:24 +0000 (13:36 +1100)] 
update usage message

6 years agoMerge branch '1418-threadsanitizer-data-race-dig-c-2542-in-main' into 'master'
Mark Andrews [Fri, 20 Dec 2019 05:57:50 +0000 (05:57 +0000)] 
Merge branch '1418-threadsanitizer-data-race-dig-c-2542-in-main' into 'master'

Resolve "ThreadSanitizer: data race dig.c:2542 in main"

Closes #1418

See merge request isc-projects/bind9!2647

6 years agoFix the concurrent access to batchname in dig.c
Ondřej Surý [Tue, 26 Nov 2019 17:03:33 +0000 (18:03 +0100)] 
Fix the concurrent access to batchname in dig.c

6 years agoMerge branch 'feature/master/maxminddb-version' into 'master'
Mark Andrews [Tue, 17 Dec 2019 23:58:31 +0000 (23:58 +0000)] 
Merge branch 'feature/master/maxminddb-version' into 'master'

Include maxminddb and protobuf version in named -V

See merge request isc-projects/bind9!2686

6 years agoadd CHANGES
Mark Andrews [Tue, 17 Dec 2019 23:57:25 +0000 (10:57 +1100)] 
add CHANGES

6 years agoInclude protobuf-c version
Petr Menšík [Mon, 18 Nov 2019 21:14:20 +0000 (22:14 +0100)] 
Include protobuf-c version

Include used version of protobuf-c in version info, both link time and
runtime version is available.

6 years agoProvide GeoIP2 library version in version
Petr Menšík [Mon, 18 Nov 2019 20:51:36 +0000 (21:51 +0100)] 
Provide GeoIP2 library version in version

Libmaxmind does not provide any version macro for link time version.
Print at least runtime version library used, if linked.

6 years agoMerge branch '1482-autosign-system-test-failed' into 'master'
Mark Andrews [Fri, 13 Dec 2019 08:58:14 +0000 (08:58 +0000)] 
Merge branch '1482-autosign-system-test-failed' into 'master'

Resolve "autosign system test failed"

Closes #1461 and #1482

See merge request isc-projects/bind9!2773

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

6 years agoMerge branch '1414-threadsanitizer-data-race-task-c-367-in-task_shutdown-v9_14+'...
Ondřej Surý [Fri, 13 Dec 2019 07:41:53 +0000 (07:41 +0000)] 
Merge branch '1414-threadsanitizer-data-race-task-c-367-in-task_shutdown-v9_14+' into 'master'

Convert task->flags to C11 atomics

Closes #1414

See merge request isc-projects/bind9!2768

6 years agoConvert task flags to C11 atomics
Ondřej Surý [Thu, 12 Dec 2019 14:22:10 +0000 (15:22 +0100)] 
Convert task flags to C11 atomics

6 years agoMerge branch 'prep-release-v9_15_7' into 'master' v9.15.7
Evan Hunt [Fri, 13 Dec 2019 00:00:45 +0000 (00:00 +0000)] 
Merge branch 'prep-release-v9_15_7' into 'master'

Prep 9.15.7

See merge request isc-projects/bind9!2771

6 years agoMerge branch 'prep-release'
Tinderbox User [Thu, 12 Dec 2019 23:59:51 +0000 (23:59 +0000)] 
Merge branch 'prep-release'

6 years agoprep 9.15.7
Tinderbox User [Thu, 12 Dec 2019 23:36:53 +0000 (23:36 +0000)] 
prep 9.15.7

6 years agoMerge branch '1392-initial-tcp-highwater-wrong' into 'master'
Evan Hunt [Thu, 12 Dec 2019 19:52:36 +0000 (19:52 +0000)] 
Merge branch '1392-initial-tcp-highwater-wrong' into 'master'

Resolve "Initial TCP high-water value is wrong"

Closes #1392

See merge request isc-projects/bind9!2610

6 years agoCHANGES
Evan Hunt [Thu, 12 Dec 2019 19:24:26 +0000 (11:24 -0800)] 
CHANGES

6 years agoAdded tcp-highwater test on initial statistics verification
Diego Fronza [Thu, 12 Dec 2019 19:09:19 +0000 (16:09 -0300)] 
Added tcp-highwater test on initial statistics verification

The initial tcp statistics test was not testing tcp-highwater counter,
but only initial number of current TCP clients, so this missing test was
added to ensure initial tcp-highwater value is correct.

6 years agoFix tcp-highwater stats updating
Diego Fronza [Mon, 25 Nov 2019 21:36:14 +0000 (18:36 -0300)] 
Fix tcp-highwater stats updating

After the network manager rewrite, tcp-higwater stats was only being
updated when a valid DNS query was received over tcp.

It turns out tcp-quota is updated right after a tcp connection is
accepted, before any data is read, so in the event that some client
connect but don't send a valid query, it wouldn't be taken into
account to update tcp-highwater stats, that is wrong.

This commit fix tcp-highwater to update its stats whenever a tcp connection
is established, independent of what happens after (timeout/invalid
request, etc).

6 years agoFix tcp-highwater initial value
Diego Fronza [Fri, 22 Nov 2019 21:34:50 +0000 (18:34 -0300)] 
Fix tcp-highwater initial value

During BIND startup it scans for network interfaces available, in this
process it ensures that for every interface it will bind and listen to,
at least one socket will be always available accepting connections on
that interface, this way avoiding some DOS attacks that could exploit
tcp quota on some interface and make others unavailable.

In the previous network implementation this initial "reserved" tcp-quota
used by BIND was already been added to the tcp-highwater stats, but with
the new network code it was necesary to add this workaround to ensure
tcp-highwater stats reflect the tcp-quota used by BIND after startup.

6 years agoMerge branch '1497-threadsanitizer-data-race-lib-isc-unix-socket-c-1839-2-in-destroy...
Ondřej Surý [Thu, 12 Dec 2019 14:14:45 +0000 (14:14 +0000)] 
Merge branch '1497-threadsanitizer-data-race-lib-isc-unix-socket-c-1839-2-in-destroy' into 'master'

Add missing isc_refcount_destroy and lock the socket ISC_LISTS in destroy()

Closes #1497

See merge request isc-projects/bind9!2767

6 years agoAdditionally lock accessing the ISC_LISTs in free_socket()
Ondřej Surý [Thu, 12 Dec 2019 12:08:34 +0000 (13:08 +0100)] 
Additionally lock accessing the ISC_LISTs in free_socket()

6 years agoAdd missing isc_refcount_destroy and lock the socket ISC_LISTS in destroy()
Ondřej Surý [Thu, 12 Dec 2019 11:59:39 +0000 (12:59 +0100)] 
Add missing isc_refcount_destroy and lock the socket ISC_LISTS in destroy()

6 years agoMerge branch '1486-threadsanitizer-lock-order-inversion-potential-deadlock-dns_resolv...
Mark Andrews [Thu, 12 Dec 2019 09:04:32 +0000 (09:04 +0000)] 
Merge branch '1486-threadsanitizer-lock-order-inversion-potential-deadlock-dns_resolver_createfetch-vs' into 'master'

Resolve "ThreadSanitizer: lock-order-inversion (potential deadlock) - dns_resolver_createfetch vs dns_resolver_shutdown"

Closes #1471 and #1486

See merge request isc-projects/bind9!2760

6 years agomake resolver->zspill atomic to prevent potential deadlock
Mark Andrews [Wed, 11 Dec 2019 23:33:23 +0000 (10:33 +1100)] 
make resolver->zspill atomic to prevent potential deadlock

6 years agoMerge branch '1494-lock-order-inversion-potential-deadlock-nm_thread-vs-nm_destroy...
Mark Andrews [Thu, 12 Dec 2019 08:26:24 +0000 (08:26 +0000)] 
Merge branch '1494-lock-order-inversion-potential-deadlock-nm_thread-vs-nm_destroy' into 'master'

Resolve "lock-order-inversion (potential deadlock) - nm_thread vs nm_destroy"

Closes #1494

See merge request isc-projects/bind9!2763

6 years agoaddress lock order inversion
Mark Andrews [Thu, 12 Dec 2019 06:43:03 +0000 (17:43 +1100)] 
address lock order inversion

6 years agoMerge branch '1423-threadsanitizer-data-race-time-c-170-in-isc_time_nowplusinterval...
Ondřej Surý [Thu, 12 Dec 2019 06:15:20 +0000 (06:15 +0000)] 
Merge branch '1423-threadsanitizer-data-race-time-c-170-in-isc_time_nowplusinterval' into 'master'

Ensure all zone_settimer() calls are done on locked zone

Closes #1423

See merge request isc-projects/bind9!2738

6 years agoEnsure all zone_settimer() calls are done on locked zone
Ondřej Surý [Tue, 10 Dec 2019 09:02:09 +0000 (10:02 +0100)] 
Ensure all zone_settimer() calls are done on locked zone

6 years agoMerge branch 'michal/prepare-release-notes-for-bind-9.15.7' into 'master'
Evan Hunt [Wed, 11 Dec 2019 22:15:04 +0000 (22:15 +0000)] 
Merge branch 'michal/prepare-release-notes-for-bind-9.15.7' into 'master'

Prepare release notes for BIND 9.15.7

See merge request isc-projects/bind9!2753

6 years agoPrepare release notes for BIND 9.15.7
Michał Kępień [Wed, 11 Dec 2019 12:41:14 +0000 (13:41 +0100)] 
Prepare release notes for BIND 9.15.7

  - Add a GitLab merge request number to the "trust-anchors" release
    note and slightly rephrase its second half.

  - Replace tabs with spaces in doc/arm/notes-9.15.7.xml to retain
    consistency with other XML files containing release notes.

  - Move the "Security Fixes" section for BIND 9.15.6 higher up, for
    consistency with release notes for other versions.

6 years agoMerge branch '1119-enable-thread-sanitizer-in-the-gitlab-ci' into 'master'
Ondřej Surý [Wed, 11 Dec 2019 17:03:58 +0000 (17:03 +0000)] 
Merge branch '1119-enable-thread-sanitizer-in-the-gitlab-ci' into 'master'

Enable ThreadSanitizer enabled build and unit tests

See merge request isc-projects/bind9!2367

6 years agoEnable ThreadSanitizer enabled build, system and unit tests
Ondřej Surý [Mon, 8 Jul 2019 15:25:46 +0000 (17:25 +0200)] 
Enable ThreadSanitizer enabled build, system and unit tests

6 years agoMerge branch 'mnowak/fedora31' into 'master'
Michal Nowak [Wed, 11 Dec 2019 15:25:17 +0000 (15:25 +0000)] 
Merge branch 'mnowak/fedora31' into 'master'

Update GitLab CI to Fedora 31

See merge request isc-projects/bind9!2662

6 years agoUpdate GitLab CI to Fedora 31
Michal Nowak [Wed, 11 Dec 2019 15:25:17 +0000 (15:25 +0000)] 
Update GitLab CI to Fedora 31

Since Fedora 31 is the current Fedora release, replace Fedora 30 GitLab
CI jobs with their up-to-date counterparts.

6 years agoMerge branch 'michal/update-release-checklist' into 'master'
Michał Kępień [Wed, 11 Dec 2019 14:47:55 +0000 (14:47 +0000)] 
Merge branch 'michal/update-release-checklist' into 'master'

Update release checklist

See merge request isc-projects/bind9!2751

6 years agoUpdate release checklist
Michał Kępień [Wed, 11 Dec 2019 14:45:22 +0000 (15:45 +0100)] 
Update release checklist

Apply tweaks necessary to make the release checklist consistent with the
security incident handling checklist.

6 years agoMerge branch 'michal/fix-release-notes-for-bind-9.15.6' into 'master'
Michał Kępień [Wed, 11 Dec 2019 12:12:13 +0000 (12:12 +0000)] 
Merge branch 'michal/fix-release-notes-for-bind-9.15.6' into 'master'

Fix release notes for BIND 9.15.6

See merge request isc-projects/bind9!2607

6 years agoFix release notes for BIND 9.15.6
Michał Kępień [Wed, 11 Dec 2019 12:11:22 +0000 (13:11 +0100)] 
Fix release notes for BIND 9.15.6

  - Add a missing release note for TCP high-water.  That feature was not
    yet merged when the initial version of !2524 was prepared and its
    release note was missed when that merge request was later rebased.

  - Rephrase the release note for CVE-2019-6477 so that it uses the same
    text as its corresponding notes in all other releases.

  - Unify whitespace in doc/arm/notes-9.15.6.xml.

6 years agoMerge branch 'michal/create-release-tarballs-in-gitlab-ci' into 'master'
Michał Kępień [Wed, 11 Dec 2019 11:04:45 +0000 (11:04 +0000)] 
Merge branch 'michal/create-release-tarballs-in-gitlab-ci' into 'master'

Create release tarballs in GitLab CI

See merge request isc-projects/bind9!2745

6 years agoDrop Jenkins mentions from release issue template
Michał Kępień [Wed, 11 Dec 2019 11:04:29 +0000 (12:04 +0100)] 
Drop Jenkins mentions from release issue template

Update the release issue template to account for the fact that Jenkins
is no longer needed for creating BIND release tarballs.

6 years agoAdd a job creating a release tarball to GitLab CI
Michał Kępień [Wed, 11 Dec 2019 11:04:29 +0000 (12:04 +0100)] 
Add a job creating a release tarball to GitLab CI

Add a GitLab CI job (which is run only if all other jobs in a pipeline
succeed) that builds a BIND release tarball, i.e. fetches the source
tarball from the tarball building job, creates Windows zips, puts
certain parts of BIND documentation into the appropriate places, and
packs it all up into a single tarball whose contents can be subsequently
signed and published.

6 years agoAdd a Windows debug system test job to GitLab CI
Michał Kępień [Wed, 11 Dec 2019 11:04:29 +0000 (12:04 +0100)] 
Add a Windows debug system test job to GitLab CI

Add a system test job for binaries created by Visual Studio in the
"Debug" build configuration to GitLab CI so that they can be tested
along their "Release" counterparts when necessary.

6 years agoAdd a Windows debug build job to GitLab CI
Michał Kępień [Wed, 11 Dec 2019 11:04:29 +0000 (12:04 +0100)] 
Add a Windows debug build job to GitLab CI

Add a Visual Studio build job using the "Debug" build configuration to
GitLab CI without enabling it for every pipeline as it takes about twice
as long to complete as its "Release" counterpart.

6 years agoCreate and test BIND source tarballs in GitLab CI
Michał Kępień [Wed, 11 Dec 2019 11:04:29 +0000 (12:04 +0100)] 
Create and test BIND source tarballs in GitLab CI

Add a set of jobs to GitLab CI that create a BIND source tarball and
then build and test its contents.  Run those extra jobs only when a tag
is pushed to the Git repository as they are only meant to be sanity
checks of BIND source tarball contents.

6 years agoInclude prepare-softhsm2.sh in source tarballs
Michał Kępień [Wed, 11 Dec 2019 11:04:29 +0000 (12:04 +0100)] 
Include prepare-softhsm2.sh in source tarballs

The util/prepare-softhsm2.sh script is useful for initializing a working
SoftHSM environment which can be used by unit tests and system tests.
However, since it is a test-specific script, it does not really belong
in the util/ subdirectory which is mostly pruned during the BIND source
tarball creation process.  Move the prepare-softhsm2.sh script to
bin/tests/ so that its location is more appropriate for its purpose and
also so that it does not get removed during the BIND source tarball
creation process, allowing it to be used for setting up test
environments for tarball-based builds.

6 years agoList paths which should be excluded from tarballs
Michał Kępień [Wed, 11 Dec 2019 11:04:29 +0000 (12:04 +0100)] 
List paths which should be excluded from tarballs

Convert the logic (currently present in the form of "rm -rf" calls in
util/kit.sh) for removing files and directories which are tracked by Git
but redundant in release tarballs into a set of .gitattributes rules
which allow the same effect to be achieved using "git archive".

6 years agoMerge branch 'michal/fix-the-forward-system-test-on-windows' into 'master'
Michał Kępień [Wed, 11 Dec 2019 09:37:35 +0000 (09:37 +0000)] 
Merge branch 'michal/fix-the-forward-system-test-on-windows' into 'master'

Fix the "forward" system test on Windows

See merge request isc-projects/bind9!2750

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.

6 years agoMerge branch '1479-_wait_for_rcode-adds-extraneous-query' into 'master'
Mark Andrews [Wed, 11 Dec 2019 00:25:07 +0000 (00:25 +0000)] 
Merge branch '1479-_wait_for_rcode-adds-extraneous-query' into 'master'

Resolve "_wait_for_rcode adds extraneous query"

Closes #1479

See merge request isc-projects/bind9!2747

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

6 years agoMerge branch '1411-threadsanitizer-data-race-resolver-c-2153-in-fctx_query' into...
Mark Andrews [Tue, 10 Dec 2019 23:53:13 +0000 (23:53 +0000)] 
Merge branch '1411-threadsanitizer-data-race-resolver-c-2153-in-fctx_query' into 'master'

Resolve "ThreadSanitizer: data race resolver.c:2153 in fctx_query"

Closes #1411

See merge request isc-projects/bind9!2675

6 years agoNote bucket lock requirements and move REQUIRE inside locked section.
Mark Andrews [Thu, 5 Dec 2019 04:25:21 +0000 (15:25 +1100)] 
Note bucket lock requirements and move REQUIRE inside locked section.

6 years agolock access to fctx->nqueries
Mark Andrews [Mon, 2 Dec 2019 05:58:57 +0000 (16:58 +1100)] 
lock access to fctx->nqueries

6 years agoMerge branch '1473-threadsanitizer-data-race-home-ondrej-projects-bind9-lib-isc-netmg...
Ondřej Surý [Tue, 10 Dec 2019 13:00:17 +0000 (13:00 +0000)] 
Merge branch '1473-threadsanitizer-data-race-home-ondrej-projects-bind9-lib-isc-netmgr-netmgr-c-1027-in' into 'master'

Resolve "ThreadSanitizer: data race /home/ondrej/Projects/bind9/lib/isc/netmgr/netmgr.c:1027 in nmhandle_free"

Closes #1473

See merge request isc-projects/bind9!2739

6 years agoAdd isc_refcount_destroy() call to nm_handle_free()
Ondřej Surý [Tue, 10 Dec 2019 10:09:56 +0000 (11:09 +0100)] 
Add isc_refcount_destroy() call to nm_handle_free()

6 years agoAdd isc_refcount_destroy() call to nm_destroy()
Ondřej Surý [Tue, 10 Dec 2019 09:47:08 +0000 (10:47 +0100)] 
Add isc_refcount_destroy() call to nm_destroy()

6 years agoCorrect the DbC check order in isc__nm_async_tcpchildstop()
Ondřej Surý [Tue, 10 Dec 2019 09:46:49 +0000 (10:46 +0100)] 
Correct the DbC check order in isc__nm_async_tcpchildstop()

6 years agoMerge branch '1441-threadsanitizer-lock-order-inversion-potential-deadlock-usr-lib...
Mark Andrews [Tue, 10 Dec 2019 12:35:20 +0000 (12:35 +0000)] 
Merge branch '1441-threadsanitizer-lock-order-inversion-potential-deadlock-usr-lib-x86_64-linux-gnu-libtsan-so-0' into 'master'

Resolve "ThreadSanitizer: lock-order-inversion (potential deadlock) (/usr/lib/x86_64-linux-gnu/libtsan.so.0+0x2cf99) in pthread_rwlock_rdlock"

Closes #1441

See merge request isc-projects/bind9!2734

6 years agoaddress deadlock introduced in cd2469d3cdbc211ecf8a82c76c1a0a1c4a545fec
Mark Andrews [Tue, 10 Dec 2019 02:16:58 +0000 (13:16 +1100)] 
address deadlock introduced in cd2469d3cdbc211ecf8a82c76c1a0a1c4a545fec

6 years agoMerge branch '1465-fix-idna-system-test' into 'master'
Michał Kępień [Tue, 10 Dec 2019 10:57:02 +0000 (10:57 +0000)] 
Merge branch '1465-fix-idna-system-test' into 'master'

Fix the "idna" system test

See merge request isc-projects/bind9!2740

6 years agoOnly use LC_ALL=C where intended
Michał Kępień [Tue, 10 Dec 2019 09:31:33 +0000 (10:31 +0100)] 
Only use LC_ALL=C where intended

The LC_ALL=C assignments in the "idna" system test, which were only
meant to affect a certain subset of checks, in fact persist throughout
all the subsequent checks in that system test.  That affects the test's
behavior and is misleading.

When the "VARIABLE=value command ..." syntax is used in a shell script,
in order for the variable assignment to only apply to "command", the
latter must be an external binary; otherwise, the VARIABLE=value
assignment persists for all subsequent commands in a script:

    $ cat foo.sh
    #!/bin/sh

    foo() {
        /bin/sh bar.sh
    }

    BAR="baz0"
    BAR="baz1" /bin/sh bar.sh
    echo "foo: BAR=${BAR}"
    BAR="baz2" foo
    echo "foo: BAR=${BAR}"

    $ cat bar.sh
    #!/bin/sh

    echo "bar: BAR=${BAR}"

    $ /bin/sh foo.sh
    bar: BAR=baz1
    foo: BAR=baz0
    bar: BAR=baz2
    foo: BAR=baz2
    $

Fix by saving the value of LC_ALL before the relevant set of checks in
the "idna" system test, restoring it afterwards, and dropping the
"LC_ALL=C command ..." syntax.

6 years agoMerge branch 'ondrej/run-full-pipeline-on-schedule' into 'master'
Ondřej Surý [Tue, 10 Dec 2019 09:30:26 +0000 (09:30 +0000)] 
Merge branch 'ondrej/run-full-pipeline-on-schedule' into 'master'

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

See merge request isc-projects/bind9!2736

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)

6 years agoMerge branch '1469-lock-order-inversion-tcp-listening' into 'master'
Witold Krecicki [Tue, 10 Dec 2019 09:21:03 +0000 (09:21 +0000)] 
Merge branch '1469-lock-order-inversion-tcp-listening' into 'master'

Fix a potential lock-order-inversion in tcp listening code

Closes #1469

See merge request isc-projects/bind9!2737

6 years agoFix a potential lock-order-inversion in tcp listening code
Witold Kręcicki [Tue, 10 Dec 2019 09:05:15 +0000 (10:05 +0100)] 
Fix a potential lock-order-inversion in tcp listening code

6 years agoMerge branch 'wpk/tcp-multithreaded' into 'master'
Witold Krecicki [Mon, 9 Dec 2019 21:20:40 +0000 (21:20 +0000)] 
Merge branch 'wpk/tcp-multithreaded' into 'master'

netmgr: make tcp listening multithreaded.

See merge request isc-projects/bind9!2659

6 years agoCHANGES entry
Witold Kręcicki [Mon, 9 Dec 2019 12:18:05 +0000 (13:18 +0100)] 
CHANGES entry

6 years agoshorten some names
Evan Hunt [Mon, 9 Dec 2019 20:24:46 +0000 (12:24 -0800)] 
shorten some names

reduce line breaks and general unwieldiness by changing some
function, type, and parameter names.

6 years agostyle nits
Evan Hunt [Mon, 9 Dec 2019 18:49:37 +0000 (10:49 -0800)] 
style nits

6 years agounittest: Allow for 32 (not 16) mock nmhandles in ns tests
Witold Kręcicki [Mon, 9 Dec 2019 13:39:38 +0000 (14:39 +0100)] 
unittest: Allow for 32 (not 16) mock nmhandles in ns tests

6 years agoRemove read callback before detaching from inner socket in tcpdns
Witold Kręcicki [Sun, 8 Dec 2019 22:09:16 +0000 (23:09 +0100)] 
Remove read callback before detaching from inner socket in tcpdns

6 years agoFix a race in socket destruction - we need to remove handle from socket in async...
Witold Kręcicki [Sun, 8 Dec 2019 21:44:08 +0000 (22:44 +0100)] 
Fix a race in socket destruction - we need to remove handle from socket in async close callback or we might race between destruction in the callback and in the original nmhandle_unref