]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
6 years agonetmgr fixes:
Evan Hunt [Fri, 10 Jan 2020 22:25:30 +0000 (14:25 -0800)] 
netmgr fixes:

 - use UV_{TC,UD}P_IPV6ONLY for IPv6 sockets, keeping the pre-netmgr
   behaviour.
 - add a new listening_error bool flag which is set if the child
   listener fails to start listening. This fixes a bug where named would
   hang if, e.g.,  we failed to bind to a TCP socket.

6 years agoUse isc_uv_export() to pass bound TCP listening socket to child listeners.
Witold Kręcicki [Tue, 7 Jan 2020 11:02:41 +0000 (12:02 +0100)] 
Use isc_uv_export() to pass bound TCP listening socket to child listeners.

For multithreaded TCP listening we need to pass a bound socket to all
listening threads. Instead of using uv_pipe handle passing method which
is quite complex (lots of callbacks, each of them with its own error
handling) we now use isc_uv_export() to export the socket, pass it as a
member of the isc__netievent_tcpchildlisten_t structure, and then
isc_uv_import() it in the child thread, simplifying the process
significantly.

6 years agoAdd isc_uv_export()/isc_uv_import() functions to libuv compatibility layer.
Witold Kręcicki [Tue, 7 Jan 2020 10:00:15 +0000 (11:00 +0100)] 
Add isc_uv_export()/isc_uv_import() functions to libuv compatibility layer.

These functions can be used to pass a uv handle between threads in a
safe manner. The other option is to use uv_pipe and pass the uv_handle
via IPC, which is way more complex.  uv_export() and uv_import() functions
existed in libuv at some point but were removed later. This code is
based on the original removed code.

The Windows version of the code uses two functions internal to libuv;
a patch for libuv is attached for exporting these functions.

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

Add openSUSE Tumbleweed image to the CI

Closes #1303

See merge request isc-projects/bind9!2826

6 years agoAdd openSUSE Tumbleweed image to the CI
Michal Nowak [Mon, 13 Jan 2020 16:26:05 +0000 (16:26 +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.

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

Properly detect MMDB lookup failures

Closes #1552

See merge request isc-projects/bind9!2864

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]

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.

6 years agoMerge branch '1507-warning-threadsanitizer-data-race-lib-isc-tests-socket_test-simple...
Ondřej Surý [Mon, 13 Jan 2020 11:11:11 +0000 (11:11 +0000)] 
Merge branch '1507-warning-threadsanitizer-data-race-lib-isc-tests-socket_test-simple' into 'master'

Address dns_zt_asyncload races by properly using isc_reference_*.

Closes #1507

See merge request isc-projects/bind9!2870

6 years agoAddress dns_zt_asyncload races by properly using isc_reference_*.
Mark Andrews [Fri, 13 Dec 2019 02:58:47 +0000 (13:58 +1100)] 
Address dns_zt_asyncload races by properly using isc_reference_*.

6 years agoMerge branch 'doc-binaryflesh' into 'master'
Ondřej Surý [Mon, 13 Jan 2020 10:32:51 +0000 (10:32 +0000)] 
Merge branch 'doc-binaryflesh' into 'master'

Update documentation pertaining to platform support

See merge request isc-projects/bind9!2786

6 years agoupdate windows versions supported
Logan Campos [Fri, 20 Dec 2019 22:02:09 +0000 (16:02 -0600)] 
update windows versions supported

6 years agomake commit-arm executable
Logan Campos [Fri, 20 Dec 2019 20:52:08 +0000 (14:52 -0600)] 
make commit-arm executable

6 years agoUpdate copyrights
Ondřej Surý [Fri, 20 Dec 2019 07:40:09 +0000 (07:40 +0000)] 
Update copyrights

6 years agomake git aware XML docbooks are only asset ARM needs to track
Logan Campos [Fri, 20 Dec 2019 03:21:31 +0000 (21:21 -0600)] 
make git aware XML docbooks are only asset ARM needs to track

6 years agoupdate platform compatiblity documentation
Logan Campos [Fri, 20 Dec 2019 02:53:54 +0000 (20:53 -0600)] 
update platform compatiblity documentation

6 years agochange context of WWW to HTTP
Logan Campos [Thu, 19 Dec 2019 23:11:35 +0000 (17:11 -0600)] 
change context of WWW to HTTP

6 years agoUpdate dated platform compatibility documentation.
Logan Campos [Thu, 19 Dec 2019 22:46:54 +0000 (16:46 -0600)] 
Update dated platform compatibility documentation.

6 years agoMerge branch '1555-code-with-pthread-specific-semantics-is-not-portable' into 'master'
Ondřej Surý [Mon, 13 Jan 2020 08:54:54 +0000 (08:54 +0000)] 
Merge branch '1555-code-with-pthread-specific-semantics-is-not-portable' into 'master'

Resolve "Code with pthread specific semantics is not portable"

Closes #1555

See merge request isc-projects/bind9!2868

6 years agoRemove use of PTHREAD_MUTEX_INITIALIZER in tests
Ondřej Surý [Wed, 4 Dec 2019 09:41:40 +0000 (10:41 +0100)] 
Remove use of PTHREAD_MUTEX_INITIALIZER in tests

Remove the pthread specific static initializer in favor of dynamic
initialization.

6 years agoUse isc_threadresult_t instead of pthread specific void * return type
Ondřej Surý [Wed, 4 Dec 2019 09:41:40 +0000 (10:41 +0100)] 
Use isc_threadresult_t instead of pthread specific void * return type

The ISC thread API already defines isc_threadresult_t type,
but we are using a pthread specific return type (void *).

6 years agoMerge branch 'u/fanf2/rndc-secroots-newlines' into 'master'
Mark Andrews [Mon, 13 Jan 2020 05:48:09 +0000 (05:48 +0000)] 
Merge branch 'u/fanf2/rndc-secroots-newlines' into 'master'

Fix line spacing in `rndc secroots`

See merge request isc-projects/bind9!2478

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

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

Update GitLab CI to Alpine Linux 3.11

See merge request isc-projects/bind9!2799

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.

6 years agoMerge branch 'michal/bind-to-random-port-numbers-in-unit-tests' into 'master'
Michał Kępień [Thu, 9 Jan 2020 09:32:36 +0000 (09:32 +0000)] 
Merge branch 'michal/bind-to-random-port-numbers-in-unit-tests' into 'master'

Bind to random port numbers in unit tests

See merge request isc-projects/bind9!2831

6 years agoBind to random port numbers in unit tests
Michał Kępień [Wed, 8 Jan 2020 17:30:54 +0000 (18:30 +0100)] 
Bind to random port numbers in unit tests

Some unit tests need various managers to be created before they are run.
The interface manager spawned during libns tests listens on a fixed port
number, which causes intermittent issues when multiple tests using an
interface manager are run concurrently.  Make the interface manager
listen on a randomized port number to greatly reduce the risk of
multiple unit tests using the same port concurrently.

6 years agoMerge branch 'mnowak/1546-Add-out-of-tree-build-to-CI' into 'master'
Michal Nowak [Thu, 9 Jan 2020 09:24:38 +0000 (09:24 +0000)] 
Merge branch 'mnowak/1546-Add-out-of-tree-build-to-CI' into 'master'

Out-of-tree build: build job and a fix

Closes #1547 and #1546

See merge request isc-projects/bind9!2810

6 years agoAdd out-of-tree build to the CI
Michal Nowak [Tue, 7 Jan 2020 09:50:07 +0000 (10:50 +0100)] 
Add out-of-tree build to the CI

Fixes #1546.

6 years agoMerge branch '1476-threadsanitizer-data-race-lib-isc-log-multiple-issues-lock' into...
Ondřej Surý [Wed, 8 Jan 2020 11:50:41 +0000 (11:50 +0000)] 
Merge branch '1476-threadsanitizer-data-race-lib-isc-log-multiple-issues-lock' into 'master'

Resolve "ThreadSanitizer: data race lib/isc/log.c - multiple issues"

Closes #1476

See merge request isc-projects/bind9!2823

6 years agoRemove unused isc_log_get() function
Ondřej Surý [Wed, 8 Jan 2020 08:20:22 +0000 (09:20 +0100)] 
Remove unused isc_log_get() function

6 years agoAdd missing locks to isc_logconfig_get and disable thread sanitizer for isc_log_wouldlog
Ondřej Surý [Wed, 8 Jan 2020 07:57:21 +0000 (08:57 +0100)] 
Add missing locks to isc_logconfig_get and disable thread sanitizer for isc_log_wouldlog

6 years agoAdd conditional ISC_NO_SANITIZE macro to disable TSAN for function
Ondřej Surý [Wed, 8 Jan 2020 07:56:52 +0000 (08:56 +0100)] 
Add conditional ISC_NO_SANITIZE macro to disable TSAN for function

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.