30118 Commits
Author SHA1 Message Date
Ondřej Surý 098f68799b Merge branch 'ondrej/win32-stdatomic-fix-v9_14' into 'v9_14'
Stop requiring same memory ordering in win32 atomic_compare_exchange functions

See merge request isc-projects/bind9!3059
v9.14.11
2020-02-13 14:21:40 +00:00
Ondřej SurýandOndřej Surý a377780049 Stop requiring same memory ordering in win32 atomic_compare_exchange functions 2020-02-13 15:16:06 +01:00
Tinderbox User 596b94db38 Merge branch 'prep-release' into v9_14 2020-02-12 20:08:05 +00:00
Tinderbox User d271d444aa prep v9.14.11 2020-02-12 20:07:41 +00:00
Michal Nowak f1afaa80af Merge branch 'mnowak/coverity-disable-web-tag-v9_14' into 'v9_14'
[v9_14] Run Coverity Scan only when specific variables are present

See merge request isc-projects/bind9!3055
2020-02-12 14:58:10 +00:00
Michal Nowak 04a60beb25 Run Coverity Scan only when specific variables are present
Submissions to Coverity Scan should be limited to those originated from
release branches and only from a specific schedule which holds
COVERITY_SCAN_PROJECT_NAME and COVERITY_SCAN_TOKEN variables.

(cherry picked from commit 48530aa21395414b0f9788ea5ab158b2b09ab977)
2020-02-12 14:58:10 +00:00
Michał Kępień 744b819f14 Merge branch 'michal/prepare-release-notes-for-bind-9.14.11' into 'v9_14'
Prepare release notes for BIND 9.14.11

See merge request isc-projects/bind9!3051
2020-02-12 13:18:56 +00:00
Michał Kępień 38f3053694 Add release notes section for BIND 9.14.11 2020-02-12 13:50:21 +01:00
Michał Kępień 69425845c4 Merge branch 'michal/minor-README-tweaks-v9_14' into 'v9_14'
[v9_14] Minor README tweaks

See merge request isc-projects/bind9!3048
2020-02-12 10:38:22 +00:00
Michał Kępień 1aa9f58aba Minor CHANGES tweak
(cherry picked from commit a0349b18e0)
2020-02-12 11:27:28 +01:00
Stephen MorrisandMichał Kępień a5a358df87 Minor README tweaks
(cherry picked from commit bc539d48e7)
2020-02-12 11:26:59 +01:00
Michal Nowak 4bc64ad831 Merge branch 'mnowak/coverity2-v9_14' into 'v9_14'
[v9_14] Add Coverity Scan to CI

See merge request isc-projects/bind9!3046
2020-02-12 10:01:35 +00:00
Michal Nowak 27ff22ff37 Add Coverity Scan to CI
This job requires two CI variables to be set:

  - COVERITY_SCAN_PROJECT_NAME: project name, which is associated with
    the BIND branch for which this job is executed, e.g. "bind-master",

  - COVERITY_SCAN_TOKEN: project token.

(cherry picked from commit e8392e4bb911366b65cdc461ec907d9e1a68bf54)
2020-02-12 10:01:35 +00:00
Mark Andrews dcf3e0684c Merge branch '1602-rpz-system-test-failed-because-protoype-responses-timed-out-v9_14' into 'v9_14'
spin waiting for prototype dig responses

See merge request isc-projects/bind9!3045
2020-02-12 09:34:23 +00:00
Mark Andrews 8bea078674 spin waiting for prototype dig responses
(cherry picked from commit c38752b07c)
2020-02-12 19:48:02 +11:00
Mark Andrews 94ebac1e45 Merge branch '1616-autosign-not-waiting-long-enough-for-zone-to-be-signed-v9_11-and-maybe-others-v9_14' into 'v9_14'
wait for apex NSEC3 to be generated

See merge request isc-projects/bind9!3041
2020-02-12 08:38:55 +00:00
Mark Andrews d3f726cbef wait for apex NSEC3 to be generated
(cherry picked from commit c99ad5c8c7)
2020-02-12 19:12:40 +11:00
Ondřej Surý 12b44788bd Merge branch '1428-possible-data-race-in-rbtdb-happens-occasionally-on-ppc64le-v9_14' into 'v9_14'
Resolve "Possible data race in rbtdb, happens occasionally on ppc64le"

See merge request isc-projects/bind9!3035
2020-02-11 11:19:12 +00:00
Ondřej Surý 3c8a441a0e Convert all atomic operations in isc_rwlock to release-acquire memory ordering
The memory ordering in the rwlock was all wrong, I am copying excerpts
from the https://en.cppreference.com/w/c/atomic/memory_order#Relaxed_ordering
for the convenience of the reader:

  Relaxed ordering

  Atomic operations tagged memory_order_relaxed are not synchronization
  operations; they do not impose an order among concurrent memory
  accesses. They only guarantee atomicity and modification order
  consistency.

  Release-Acquire ordering

  If an atomic store in thread A is tagged memory_order_release and an
  atomic load in thread B from the same variable is tagged
  memory_order_acquire, all memory writes (non-atomic and relaxed atomic)
  that happened-before the atomic store from the point of view of thread
  A, become visible side-effects in thread B. That is, once the atomic
  load is completed, thread B is guaranteed to see everything thread A
  wrote to memory.

  The synchronization is established only between the threads releasing
  and acquiring the same atomic variable. Other threads can see different
  order of memory accesses than either or both of the synchronized
  threads.

Which basically means that we had no or weak synchronization between
threads using the same variables in the rwlock structure.  There should
not be a significant performance drop because the critical sections were
already protected by:

  while(1) {
    if (relaxed_atomic_operation) {
      break;
    }
    LOCK(lock);
    if (!relaxed_atomic_operation) {
      WAIT(sem, lock);
    }
    UNLOCK(lock)l
  }

I would add one more thing to "Don't do your own crypto, folks.":

  - Also don't do your own locking, folks.
2020-02-11 11:50:04 +01:00
Ondřej SurýandOndřej Surý 1da0994ea4 Make isc_rwlock.c thread-safe
The ThreadSanitizer found several possible data races in our rwlock
implementation.  This commit changes all the unprotected variables to atomic and
also changes the explicit memory ordering (atomic_<foo>_explicit(..., <order>)
functions to use our convenience macros (atomic_<foo>_<order>).
2020-02-11 11:49:01 +01:00
Ondřej Surý 50058a4bc8 Merge branch 'ondrej/remove-OpenSSL-engine-specification-in-label-v9_14' into 'v9_14'
[v9_14] Cleanup support for specifying PKCS#11 engine as part of the label

See merge request isc-projects/bind9!3033
2020-02-11 10:13:56 +00:00
Ondřej SurýandMichał Kępień f172ecabda Remove reference to prepending label with engine in manpage
(cherry picked from commit 33fa3d5eb1)
2020-02-11 10:32:12 +01:00
Ondřej SurýandMichał Kępień 95130a379c Cleanup support for specifying PKCS#11 engine as part of the label
The code for specifying OpenSSL PKCS#11 engine as part of the label
(e.g. -l "pkcs11:token=..." instead of -E pkcs11 -l "token=...")
was non-functional.  This commit just cleans the related code.

(cherry picked from commit a5c87d9d18)
2020-02-11 10:32:11 +01:00
Ondřej Surý e834548376 Merge branch 'ondrej/lgtm-narrow-vs-wider-type-comparison-in-a-loop-v9_14' into 'v9_14'
Fix comparison between type uint16_t and  wider type size_t in a loop

See merge request isc-projects/bind9!3030
2020-02-10 10:59:40 +00:00
Ondřej Surý bffdf9c58d Fix comparison between type uint16_t and wider type size_t in a loop
Found by LGTM.com (see below for description), and while it should not
happen as EDNS OPT RDLEN is uint16_t, the fix is easy.  A little bit
of cleanup is included too.

> In a loop condition, comparison of a value of a narrow type with a value
> of a wide type may result in unexpected behavior if the wider value is
> sufficiently large (or small). This is because the narrower value may
> overflow. This can lead to an infinite loop.

(cherry picked from commit a9bd6f6ea6)
2020-02-10 02:42:50 -08:00
Evan Hunt 018e366f6b Merge branch '932-doc-query-error-logging-v9_14' into 'v9_14'
improve documentation of query logging

See merge request isc-projects/bind9!3027
2020-02-09 00:08:07 +00:00
Evan Hunt d3c6e5d89c improve documentation of query logging
(cherry picked from commit 21bb9fa77f)
2020-02-08 16:07:01 -08:00
Ondřej Surý ce202f4d17 Merge branch '1560-isc_httpd-and-isc_httpdmgr-structures-are-not-reference-counted-and-magic-v9_14' into 'v9_14'
Resolve "isc_httpd and isc_httpdmgr structures are not reference counted and magic"

See merge request isc-projects/bind9!2939
2020-02-08 20:23:56 +00:00
Ondřej Surý 3828d4e3e9 Clean the ENTER/EXIT/NOTICE debugging from production code
(cherry picked from commit 5b448996e5)
2020-02-08 11:37:42 -08:00
Ondřej Surý 5391187fd4 Refactor parts of isc_httpd and isc_httpd for better readability and safety
(cherry picked from commit 9643a62dd5)
2020-02-08 11:37:42 -08:00
Mark AndrewsandOndřej Surý f5be6c8877 add ISC_MAGIC and reference counting to httpd and httpdmgr
(cherry picked from commit 7c3f419d66)
2020-02-08 11:37:42 -08:00
Mark Andrews 5f0314c467 Merge branch '1596-echo_ic-should-be-used-for-continuations-v9_14' into 'v9_14'
Resolve "echo_ic should be used for continuations."

See merge request isc-projects/bind9!3021
2020-02-07 22:35:05 +00:00
Mark Andrews 4db05004ef indent failed: descriptions
(cherry picked from commit 1e4773f121)
2020-02-07 21:48:46 +00:00
Mark Andrews cf40f76703 indent some test descriptions/continuation
(cherry picked from commit ec95bc6f2c)
2020-02-07 21:48:46 +00:00
Mark Andrews 1264cbc9b8 remove space before 'failed'
(cherry picked from commit 0d5ec0c7dc)
2020-02-07 21:48:46 +00:00
Mark Andrews 1df2df5706 ident continuation of test descriptions
(cherry picked from commit 059b16b991)
2020-02-07 21:48:46 +00:00
Mark Andrews 9804cdb5f2 remove space from before 'failed'; count errors
(cherry picked from commit 879c63b573)
2020-02-07 21:48:46 +00:00
Mark Andrews def0570453 Merge branch '1559-dnssec-system-test-failed-reload-of-root-server-not-completed-in-time-v9_14' into 'v9_14'
wait for root server to complete reloading

See merge request isc-projects/bind9!3018
2020-02-07 21:37:03 +00:00
Mark Andrews 85d2a2c633 wait for root server to complete reloading
(cherry picked from commit 784e64f238)
2020-02-07 21:09:30 +00:00
Mark Andrews 75972ebdf3 Merge branch '1599-autosign-conversion-from-nsec3-to-nsec-can-take-more-than-2-seconds-v9_14' into 'v9_14'
wait a short while for no NSEC3PARAM

See merge request isc-projects/bind9!3016
2020-02-07 15:04:40 +00:00
Mark Andrews 5a559c3fcf wait a short while for no NSEC3PARAM
(cherry picked from commit e378241324)
2020-02-08 00:43:06 +11:00
Mark Andrews f8f2b192a7 Merge branch 'marka-coverity-dns-db-find-v9_14' into 'v9_14'
Marka coverity dns db find v9 14

See merge request isc-projects/bind9!3014
2020-02-07 11:16:47 +00:00
Mark Andrews 76df419b27 Silence unchecked return of dns_db_find()
190        dns_rdataset_init(&rdataset);
   	3. Condition r == 0, taking true branch.
   	4. Condition result, taking false branch.

	CID 1452691 (#1 of 1): Unchecked return value (CHECKED_RETURN)
	5. check_return: Calling dns_db_find without checking return
	value (as is done elsewhere 39 out of 45 times).

191        check_assertion(dns_db_find(db1, dns_rootname, v2,
192                                    dns_rdatatype_soa, 0, 0, NULL,
193                                    name, &rdataset, NULL));

(cherry picked from commit e8bf82efc6)
2020-02-07 21:43:26 +11:00
Mark Andrews a6f09283cd Fix indenting.
(cherry picked from commit 98d5109e82)
2020-02-07 21:43:26 +11:00
Mark Andrews f015929d35 Correct logged function name.
(cherry picked from commit 550bbee427)
2020-02-07 21:43:26 +11:00
Michał Kępień 39701467a9 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!3012
2020-02-06 14:20:54 +00:00
Michał Kępień 6c5295ca09 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 2f694f0b77)
2020-02-06 15:17:51 +01:00
Matthijs Mekking eed59f521b Merge branch '914-forwarders-port-documentation-v9_14' into 'v9_14'
Document forwarders config port and dscp param

See merge request isc-projects/bind9!3008
2020-02-06 09:54:22 +00:00
Matthijs Mekking 5e1f3ae518 Document forwarders config port and dscp param
(cherry picked from commit be3a11029a)
2020-02-06 10:06:22 +01:00
Michal Nowak 64f6e8597b Merge branch 'mnowak/windows-raise-port-range-v9_14' into 'v9_14'
[v9_14] Windows: Prevent tools from clashing with named in system tests

See merge request isc-projects/bind9!3002
2020-02-05 11:07:18 +00:00