]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
6 years agoRename MAKE environment variable to MAKE_COMMAND
Ondřej Surý [Tue, 7 Aug 2018 14:46:53 +0000 (16:46 +0200)] 
Rename MAKE environment variable to MAKE_COMMAND

The environment variable MAKE has been replaced with MAKE_COMMAND,
because overriding MAKE variable also changed the definition of the MAKE
inside the Makefiles, and we want only a single wrapper around the whole
build process.

Previously, setting `MAKE` to `bear make` meant that `bear make` would
be run at every nested make invocation, which messed up the upcoming
automake transition as compile_commands.json would be generated in every
subdirectory instead of just having one central file at the top of the
build tree.

(cherry picked from commit de1a637a696383583545243fdfaebcbda8392a5f)

6 years agoReplace dependencies+needs with needs+artifacts in GitLabCI config
Ondřej Surý [Tue, 7 Aug 2018 14:46:53 +0000 (16:46 +0200)] 
Replace dependencies+needs with needs+artifacts in GitLabCI config

All jobs now use solely the newer needs configuration to declare
dependencies between jobs:

    needs:
      - job: <foo>
        artifacts: true

instead of combination of dependencies and needs which is deprecated.
This change completely unbundles the stages (alas the stages still needs
to stay because the job graph has to stay acyclic between the stages).

(cherry picked from commit 66ba808c1b69e53427d7f0bb40c7134996ca764a)

6 years agoMerge branch '1684-timer-test-build-v9_14' into 'v9_14'
Ondřej Surý [Fri, 20 Mar 2020 15:09:16 +0000 (15:09 +0000)] 
Merge branch '1684-timer-test-build-v9_14' into 'v9_14'

fix a pointer-to-int cast error

See merge request isc-projects/bind9!3272

6 years agofix a pointer-to-int cast error
Evan Hunt [Tue, 17 Mar 2020 18:18:36 +0000 (11:18 -0700)] 
fix a pointer-to-int cast error

(cherry picked from commit 6b766460375e1069bd8510bf6ea77597e421641e)

6 years agoMerge branch 'michal/update-gitlab-ci-to-freebsd-12.1-v9_14' into 'v9_14'
Michał Kępień [Mon, 16 Mar 2020 19:05:31 +0000 (19:05 +0000)] 
Merge branch 'michal/update-gitlab-ci-to-freebsd-12.1-v9_14' into 'v9_14'

[v9_14] Update GitLab CI to FreeBSD 12.1

See merge request isc-projects/bind9!3240

6 years agoMove FreeBSD CI jobs to libvirt-based executors
Michał Kępień [Mon, 16 Mar 2020 10:32:46 +0000 (11:32 +0100)] 
Move FreeBSD CI jobs to libvirt-based executors

To get rid of the currently used FreeBSD-specific executor, move FreeBSD
CI jobs to libvirt-based executors.  Make the necessary tag and variable
adjustments.

(cherry picked from commit 80618b53782f9bdd105b05f17496c86938a6657f)

6 years agoUpdate GitLab CI to FreeBSD 12.1
Michał Kępień [Mon, 16 Mar 2020 10:32:46 +0000 (11:32 +0100)] 
Update GitLab CI to FreeBSD 12.1

Since FreeBSD 12.1 is the current FreeBSD 12.x release, replace FreeBSD
12.0 GitLab CI jobs with their up-to-date counterparts.

(cherry picked from commit 4c68b56246608383fe8acf27c2cc71fb4754ffb0)

6 years agoMerge branch 'michal/do-not-run-openbsd-system-test-jobs-for-tags-v9_14' into 'v9_14'
Michał Kępień [Mon, 9 Mar 2020 13:36:10 +0000 (13:36 +0000)] 
Merge branch 'michal/do-not-run-openbsd-system-test-jobs-for-tags-v9_14' into 'v9_14'

[v9_14] Do not run OpenBSD system test jobs for tags

See merge request isc-projects/bind9!3189

6 years agoDo not run OpenBSD system test jobs for tags
Michał Kępień [Mon, 9 Mar 2020 13:33:04 +0000 (14:33 +0100)] 
Do not run OpenBSD system test jobs for tags

OpenBSD virtual machines seem to affected particularly badly by other
activity happening on the host.  This causes trouble around release
time: when multiple tags are pushed to the repository, a large number of
jobs is started concurrently on all CI runners.  In extreme cases, this
causes the system test suite to run for about an hour (!) on OpenBSD
VMs, with multiple tests failing.  We investigated the test artifacts
for all such cases in the past and the outcome was always the same: test
failures were caused by extremely slow I/O on the guest.  We tried
various tricks to work around this problem, but nothing helped.

Given the above, stop running OpenBSD system test jobs for pending BIND
releases to prevent the results of these jobs from affecting the
assessment of a given release's readiness for publication.  This change
does not affect OpenBSD build jobs.  OpenBSD system test jobs will still
be run for scheduled and web-requested pipelines, to make sure we catch
any severe issues with test code on that platform sooner or later.

(cherry picked from commit 7b002cea83889d69494740a660c88b52990d3259)

6 years agoMerge branch '1628-release-process-failed-to-detect-that-header-file-was-not-installe...
Mark Andrews [Fri, 6 Mar 2020 01:53:16 +0000 (01:53 +0000)] 
Merge branch '1628-release-process-failed-to-detect-that-header-file-was-not-installed-v9_14' into 'v9_14'

test installed header files

See merge request isc-projects/bind9!3176

6 years agotest installed header files
Mark Andrews [Wed, 19 Feb 2020 22:31:05 +0000 (09:31 +1100)] 
test installed header files

(cherry picked from commit a278b6bd84d8e852879521facfb3f38da6b78b7d)

6 years agoMerge branch 'marka-sort-AC_CONFIG_FILES-v9_14' into 'v9_14'
Mark Andrews [Thu, 5 Mar 2020 22:31:50 +0000 (22:31 +0000)] 
Merge branch 'marka-sort-AC_CONFIG_FILES-v9_14' into 'v9_14'

sort AC_CONFIG_FILES

See merge request isc-projects/bind9!3169

6 years agosort AC_CONFIG_FILES
Mark Andrews [Thu, 5 Mar 2020 21:17:06 +0000 (08:17 +1100)] 
sort AC_CONFIG_FILES

(cherry picked from commit fd0d4ba9481bf26e9aef62a2776182b8419a7d88)

6 years agoMerge branch 'mnowak/respdiff-v9_14' into 'v9_14'
Michal Nowak [Thu, 5 Mar 2020 14:48:11 +0000 (14:48 +0000)] 
Merge branch 'mnowak/respdiff-v9_14' into 'v9_14'

[v9_14] Add respdiff job

See merge request isc-projects/bind9!3165

6 years agoAdd respdiff job
Michal Nowak [Thu, 6 Feb 2020 14:53:36 +0000 (15:53 +0100)] 
Add respdiff job

This job leverages respdiff test from the private bind-qa repo.

(cherry picked from commit 04f8b65a8f280b35ba7a466f5eedc99798d9eafb)

6 years agoMerge branch 'marka-check-touched-v9_14' into 'v9_14'
Mark Andrews [Tue, 3 Mar 2020 22:37:45 +0000 (22:37 +0000)] 
Merge branch 'marka-check-touched-v9_14' into 'v9_14'

Marka check touched v9 14

See merge request isc-projects/bind9!3148

6 years agoAdd CHANGES entry
Mark Andrews [Tue, 3 Mar 2020 01:31:55 +0000 (12:31 +1100)] 
Add CHANGES entry

(cherry picked from commit 64474db14e715e4b1a545406acf9fb5be8200f50)

6 years agoRestart zone maintenance if it had been stalled.
Mark Andrews [Mon, 2 Mar 2020 23:50:06 +0000 (10:50 +1100)] 
Restart zone maintenance if it had been stalled.

(cherry picked from commit f171347b5f27c1b0dfe1ef935512b20a820901c9)

6 years agoCheck inline master zones that are touched reload correctly.
Mark Andrews [Mon, 2 Mar 2020 08:38:29 +0000 (19:38 +1100)] 
Check inline master zones that are touched reload correctly.

(cherry picked from commit 50e079d6c3eea1a16b94bdb10d9e19939147bc30)

6 years agoMerge branch '1627-call-set_resigntime-and-zone_settimer-v9_14' into 'v9_14'
Mark Andrews [Tue, 3 Mar 2020 06:15:15 +0000 (06:15 +0000)] 
Merge branch '1627-call-set_resigntime-and-zone_settimer-v9_14' into 'v9_14'

Resolve "inline re-signing stops"

See merge request isc-projects/bind9!3140

6 years agoadd release note entry
Mark Andrews [Tue, 3 Mar 2020 04:37:42 +0000 (15:37 +1100)] 
add release note entry

(cherry picked from commit 23ce0f32e5a770c16a76d19e2a1c9e1322433d69)

6 years agoAdd CHANGES note
Mark Andrews [Tue, 3 Mar 2020 04:30:52 +0000 (15:30 +1100)] 
Add CHANGES note

(cherry picked from commit 905549f061dab784c533287db087d3705cfe0a1d)

6 years agoAdjust lock/unlock in zone_rekey()
Ondřej Surý [Thu, 27 Feb 2020 07:45:10 +0000 (08:45 +0100)] 
Adjust lock/unlock in zone_rekey()

(cherry picked from commit aaaa7e67fa2b0ec618ec4be1af175fd6d73b76a0)

6 years agoEnsure that resigintime and the zone timer are set
Mark Andrews [Fri, 28 Feb 2020 03:01:40 +0000 (14:01 +1100)] 
Ensure that resigintime and the zone timer are set

(cherry picked from commit a6626594aa348209eb02ec1ba8d3539821144aca)

6 years agoAdd more zone locks
Matthijs Mekking [Thu, 27 Feb 2020 10:59:12 +0000 (11:59 +0100)] 
Add more zone locks

Add more zone locks around code that touches zone timer setting
in failure modes.

(cherry picked from commit 143d1c9767e25d35dd939f43f6bae462ee9db477)

6 years agoAlways call set_resigntime with the zone lock held
Mark Andrews [Thu, 27 Feb 2020 06:48:05 +0000 (17:48 +1100)] 
Always call set_resigntime with the zone lock held

(cherry picked from commit 7212961849510f97146f815fa03f1e90de9d3201)

6 years agoAlways call zone_settimer()
Mark Andrews [Thu, 27 Feb 2020 06:43:26 +0000 (17:43 +1100)] 
Always call zone_settimer()

zone_needdump() could potentially not call zone_settimer() so
explitly call zone_settimer() as zone->resigntime could have
gone backward.

(cherry picked from commit 5ec57f31b0cca77f2629bac888c323cd619979ee)

6 years agoCall set_resigntime() in receive_secure_serial()
Mark Andrews [Thu, 27 Feb 2020 06:35:18 +0000 (17:35 +1100)] 
Call set_resigntime() in receive_secure_serial()

With RRSIG records no longer being signed with the full
sig-validity-interval we need to ensure the zone->resigntime
as it may need to be set to a earlier time.

(cherry picked from commit 5d1611afdc61ea8f19ceecc3e88cdb2296ec3914)

6 years agoMerge branch 'marka-fix-signature-test-v9_14' into 'v9_14'
Mark Andrews [Fri, 21 Feb 2020 06:52:15 +0000 (06:52 +0000)] 
Merge branch 'marka-fix-signature-test-v9_14' into 'v9_14'

Fix code to generate the test signatues.

See merge request isc-projects/bind9!3103

6 years agoFix code to generate the test signatues.
Mark Andrews [Fri, 21 Feb 2020 05:40:50 +0000 (21:40 -0800)] 
Fix code to generate the test signatues.

* ctx needs to be destroyed before it is regenerated.
* emit the name of the signature to be replaced.
* cleanup memory before asserting so post longjump doesn't detect a
  memory leak.
* comment code.

(cherry picked from commit 3a8c8a2a3199844bb16232e2f362f67d14181939)

6 years agoMerge branch 'michal/make-a-sed-script-in-doc-arm-makefile.in-portable-v9_14' into...
Michał Kępień [Thu, 20 Feb 2020 11:28:13 +0000 (11:28 +0000)] 
Merge branch 'michal/make-a-sed-script-in-doc-arm-makefile.in-portable-v9_14' into 'v9_14'

[v9_14] Make a sed script in doc/arm/Makefile.in portable

See merge request isc-projects/bind9!3098

6 years agoMake a sed script in doc/arm/Makefile.in portable
Michał Kępień [Thu, 20 Feb 2020 11:23:36 +0000 (12:23 +0100)] 
Make a sed script in doc/arm/Makefile.in portable

BSD sed does not recognize \s as a whitespace matching token.  Make the
sed script in doc/arm/Makefile.in which ensures GitLab identifiers are
not split across lines portable by replacing \s with [[:space:]].

(cherry picked from commit b25e6b51f6e16c983ab7c0f5cd8187bdd197b8d3)

6 years agoMerge branch 'michal/increase-lifetime-of-docs-sid-amd64-artifacts-v9_14' into 'v9_14'
Michał Kępień [Thu, 20 Feb 2020 10:57:37 +0000 (10:57 +0000)] 
Merge branch 'michal/increase-lifetime-of-docs-sid-amd64-artifacts-v9_14' into 'v9_14'

[v9_14] Increase lifetime of docs:sid:amd64 artifacts

See merge request isc-projects/bind9!3095

6 years agoIncrease lifetime of docs:sid:amd64 artifacts
Michał Kępień [Thu, 20 Feb 2020 10:51:58 +0000 (11:51 +0100)] 
Increase lifetime of docs:sid:amd64 artifacts

Artifacts generated by the docs:sid:amd64 job need to be retained longer
than for other jobs as they are used for building bind.isc.org contents.
If these artifacts are removed too quickly, pipelines in the pages/bind
GitLab project start failing, preventing content updates from being
published.  Increase lifetime of the relevant job artifacts to prevent
this from happening.

(cherry picked from commit 9751ba5a7568a550e62096661515ebc1c2efe3a4)

6 years agoMerge branch 'ondrej/win32-stdatomic-fix-v9_14' into 'v9_14' v9.14.11
Ondřej Surý [Thu, 13 Feb 2020 14:21:40 +0000 (14:21 +0000)] 
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

6 years agoStop requiring same memory ordering in win32 atomic_compare_exchange functions
Ondřej Surý [Thu, 20 Jun 2019 16:51:36 +0000 (18:51 +0200)] 
Stop requiring same memory ordering in win32 atomic_compare_exchange functions

6 years agoMerge branch 'prep-release' into v9_14
Tinderbox User [Wed, 12 Feb 2020 20:08:05 +0000 (20:08 +0000)] 
Merge branch 'prep-release' into v9_14

6 years agoprep v9.14.11
Tinderbox User [Wed, 12 Feb 2020 16:46:55 +0000 (16:46 +0000)] 
prep v9.14.11

6 years agoMerge branch 'mnowak/coverity-disable-web-tag-v9_14' into 'v9_14'
Michal Nowak [Wed, 12 Feb 2020 14:58:10 +0000 (14:58 +0000)] 
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

6 years agoRun Coverity Scan only when specific variables are present
Michal Nowak [Wed, 12 Feb 2020 14:58:10 +0000 (14:58 +0000)] 
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)

6 years agoMerge branch 'michal/prepare-release-notes-for-bind-9.14.11' into 'v9_14'
Michał Kępień [Wed, 12 Feb 2020 13:18:56 +0000 (13:18 +0000)] 
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

6 years agoAdd release notes section for BIND 9.14.11
Michał Kępień [Wed, 12 Feb 2020 12:50:21 +0000 (13:50 +0100)] 
Add release notes section for BIND 9.14.11

6 years agoMerge branch 'michal/minor-README-tweaks-v9_14' into 'v9_14'
Michał Kępień [Wed, 12 Feb 2020 10:38:22 +0000 (10:38 +0000)] 
Merge branch 'michal/minor-README-tweaks-v9_14' into 'v9_14'

[v9_14] Minor README tweaks

See merge request isc-projects/bind9!3048

6 years agoMinor CHANGES tweak
Michał Kępień [Wed, 12 Feb 2020 10:23:48 +0000 (11:23 +0100)] 
Minor CHANGES tweak

(cherry picked from commit a0349b18e0049de6fb842219b92e2fb6ed44b2ca)

6 years agoMinor README tweaks
Stephen Morris [Tue, 11 Feb 2020 14:14:50 +0000 (15:14 +0100)] 
Minor README tweaks

(cherry picked from commit bc539d48e7ea2588c9a9353b5212534693116056)

6 years agoMerge branch 'mnowak/coverity2-v9_14' into 'v9_14'
Michal Nowak [Wed, 12 Feb 2020 10:01:35 +0000 (10:01 +0000)] 
Merge branch 'mnowak/coverity2-v9_14' into 'v9_14'

[v9_14] Add Coverity Scan to CI

See merge request isc-projects/bind9!3046

6 years agoAdd Coverity Scan to CI
Michal Nowak [Wed, 12 Feb 2020 10:01:35 +0000 (10:01 +0000)] 
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)

6 years agoMerge branch '1602-rpz-system-test-failed-because-protoype-responses-timed-out-v9_14...
Mark Andrews [Wed, 12 Feb 2020 09:34:23 +0000 (09:34 +0000)] 
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

6 years agospin waiting for prototype dig responses
Mark Andrews [Wed, 12 Feb 2020 02:54:17 +0000 (13:54 +1100)] 
spin waiting for prototype dig responses

(cherry picked from commit c38752b07ce8256488b7c31ec1175ac5c926e456)

6 years agoMerge branch '1616-autosign-not-waiting-long-enough-for-zone-to-be-signed-v9_11-and...
Mark Andrews [Wed, 12 Feb 2020 08:38:55 +0000 (08:38 +0000)] 
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

6 years agowait for apex NSEC3 to be generated
Mark Andrews [Wed, 12 Feb 2020 01:47:09 +0000 (12:47 +1100)] 
wait for apex NSEC3 to be generated

(cherry picked from commit c99ad5c8c7d24f7faa339fe86e8ed1515b4a24ce)

6 years agoMerge branch '1428-possible-data-race-in-rbtdb-happens-occasionally-on-ppc64le-v9_14...
Ondřej Surý [Tue, 11 Feb 2020 11:19:12 +0000 (11:19 +0000)] 
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

6 years agoConvert all atomic operations in isc_rwlock to release-acquire memory ordering
Ondřej Surý [Sat, 1 Feb 2020 09:48:20 +0000 (10:48 +0100)] 
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.

6 years agoMake isc_rwlock.c thread-safe
Ondřej Surý [Mon, 13 May 2019 17:19:11 +0000 (00:19 +0700)] 
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>).

6 years agoMerge branch 'ondrej/remove-OpenSSL-engine-specification-in-label-v9_14' into 'v9_14'
Ondřej Surý [Tue, 11 Feb 2020 10:13:56 +0000 (10:13 +0000)] 
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

6 years agoRemove reference to prepending label with engine in manpage
Ondřej Surý [Mon, 10 Feb 2020 15:29:43 +0000 (07:29 -0800)] 
Remove reference to prepending label with engine in manpage

(cherry picked from commit 33fa3d5eb1fb196739702c9b5131cd9ff4eefe1e)

6 years agoCleanup support for specifying PKCS#11 engine as part of the label
Ondřej Surý [Wed, 22 Jan 2020 09:16:22 +0000 (10:16 +0100)] 
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 a5c87d9d186e155553be0ae153bb50180f54fffd)

6 years agoMerge branch 'ondrej/lgtm-narrow-vs-wider-type-comparison-in-a-loop-v9_14' into ...
Ondřej Surý [Mon, 10 Feb 2020 10:59:40 +0000 (10:59 +0000)] 
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

6 years agoFix comparison between type uint16_t and wider type size_t in a loop
Ondřej Surý [Sat, 1 Feb 2020 16:13:45 +0000 (17:13 +0100)] 
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 a9bd6f6ea6a4c68e8897c06ff8d3d935521f41e7)

6 years agoMerge branch '932-doc-query-error-logging-v9_14' into 'v9_14'
Evan Hunt [Sun, 9 Feb 2020 00:08:07 +0000 (00:08 +0000)] 
Merge branch '932-doc-query-error-logging-v9_14' into 'v9_14'

improve documentation of query logging

See merge request isc-projects/bind9!3027

6 years agoimprove documentation of query logging
Evan Hunt [Wed, 29 Jan 2020 23:24:43 +0000 (15:24 -0800)] 
improve documentation of query logging

(cherry picked from commit 21bb9fa77f7999ad4b64eb3245b38cd4927096cc)

6 years agoMerge branch '1560-isc_httpd-and-isc_httpdmgr-structures-are-not-reference-counted...
Ondřej Surý [Sat, 8 Feb 2020 20:23:56 +0000 (20:23 +0000)] 
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

6 years agoClean the ENTER/EXIT/NOTICE debugging from production code
Ondřej Surý [Tue, 21 Jan 2020 07:25:30 +0000 (08:25 +0100)] 
Clean the ENTER/EXIT/NOTICE debugging from production code

(cherry picked from commit 5b448996e51609b2ed9c9a8c3a952f70e695694f)

6 years agoRefactor parts of isc_httpd and isc_httpd for better readability and safety
Ondřej Surý [Mon, 20 Jan 2020 11:37:57 +0000 (12:37 +0100)] 
Refactor parts of isc_httpd and isc_httpd for better readability and safety

(cherry picked from commit 9643a62dd53129208e534e95cbf89f2571ea6122)

6 years agoadd ISC_MAGIC and reference counting to httpd and httpdmgr
Mark Andrews [Fri, 17 Jan 2020 07:24:24 +0000 (18:24 +1100)] 
add ISC_MAGIC and reference counting to httpd and httpdmgr

(cherry picked from commit 7c3f419d6628b2ebfcd86fdd3116b35001950819)

6 years agoMerge branch '1596-echo_ic-should-be-used-for-continuations-v9_14' into 'v9_14'
Mark Andrews [Fri, 7 Feb 2020 22:35:05 +0000 (22:35 +0000)] 
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

6 years agoindent failed: descriptions
Mark Andrews [Thu, 6 Feb 2020 03:18:15 +0000 (14:18 +1100)] 
indent failed: descriptions

(cherry picked from commit 1e4773f121689a917efcb340dd23de4a16f7c30c)

6 years agoindent some test descriptions/continuation
Mark Andrews [Thu, 6 Feb 2020 03:16:30 +0000 (14:16 +1100)] 
indent some test descriptions/continuation

(cherry picked from commit ec95bc6f2c8e0d4c211f9c7feb761a100681d098)

6 years agoremove space before 'failed'
Mark Andrews [Thu, 6 Feb 2020 03:13:02 +0000 (14:13 +1100)] 
remove space before 'failed'

(cherry picked from commit 0d5ec0c7dc68541b8688039acbcaddf4f22f4ae3)

6 years agoident continuation of test descriptions
Mark Andrews [Thu, 6 Feb 2020 03:12:31 +0000 (14:12 +1100)] 
ident continuation of test descriptions

(cherry picked from commit 059b16b9910fa1843f2d837ac6cafee1030fc81d)

6 years agoremove space from before 'failed'; count errors
Mark Andrews [Thu, 6 Feb 2020 03:10:15 +0000 (14:10 +1100)] 
remove space from before 'failed'; count errors

(cherry picked from commit 879c63b5739e8d3423da69e28bddc7b07b04441c)

6 years agoMerge branch '1559-dnssec-system-test-failed-reload-of-root-server-not-completed...
Mark Andrews [Fri, 7 Feb 2020 21:37:03 +0000 (21:37 +0000)] 
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

6 years agowait for root server to complete reloading
Mark Andrews [Tue, 14 Jan 2020 06:08:25 +0000 (17:08 +1100)] 
wait for root server to complete reloading

(cherry picked from commit 784e64f238482e4e58ea57ebe84e0e7c96680130)

6 years agoMerge branch '1599-autosign-conversion-from-nsec3-to-nsec-can-take-more-than-2-second...
Mark Andrews [Fri, 7 Feb 2020 15:04:40 +0000 (15:04 +0000)] 
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

6 years agowait a short while for no NSEC3PARAM
Mark Andrews [Wed, 5 Feb 2020 08:42:47 +0000 (19:42 +1100)] 
wait a short while for no NSEC3PARAM

(cherry picked from commit e378241324c7441c8d0b0a251e746d107afcea35)

6 years agoMerge branch 'marka-coverity-dns-db-find-v9_14' into 'v9_14'
Mark Andrews [Fri, 7 Feb 2020 11:16:47 +0000 (11:16 +0000)] 
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

6 years agoSilence unchecked return of dns_db_find()
Mark Andrews [Thu, 6 Feb 2020 00:02:55 +0000 (11:02 +1100)] 
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 e8bf82efc6dfffa7f17117617c6dfe32ce7ac96d)

6 years agoFix indenting.
Mark Andrews [Thu, 6 Feb 2020 00:02:38 +0000 (11:02 +1100)] 
Fix indenting.

(cherry picked from commit 98d5109e82b6b1d64776fe64153a9ff49f68826c)

6 years agoCorrect logged function name.
Mark Andrews [Thu, 6 Feb 2020 00:02:17 +0000 (11:02 +1100)] 
Correct logged function name.

(cherry picked from commit 550bbee42762d8b23a58fe2c995d4593dc4043aa)

6 years agoMerge branch 'michal/fix-the-dnssec-system-test-on-windows-v9_14' into 'v9_14'
Michał Kępień [Thu, 6 Feb 2020 14:20:54 +0000 (14:20 +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!3012

6 years agoFix the "dnssec" system test on Windows
Michał Kępień [Thu, 6 Feb 2020 14:17:38 +0000 (15:17 +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 2f694f0b779a50918cdd24f05de04ab6bad043e9)

6 years agoMerge branch '914-forwarders-port-documentation-v9_14' into 'v9_14'
Matthijs Mekking [Thu, 6 Feb 2020 09:54:22 +0000 (09:54 +0000)] 
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

6 years agoDocument forwarders config port and dscp param
Matthijs Mekking [Mon, 13 Jan 2020 09:42:21 +0000 (10:42 +0100)] 
Document forwarders config port and dscp param

(cherry picked from commit be3a11029a336f6a3d66bbd89ab72c3eb7b3caa1)

6 years agoMerge branch 'mnowak/windows-raise-port-range-v9_14' into 'v9_14'
Michal Nowak [Wed, 5 Feb 2020 11:07:18 +0000 (11:07 +0000)] 
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

6 years agoWindows: Prevent tools from clashing with named in system tests
Michal Nowak [Wed, 5 Feb 2020 11:07:18 +0000 (11:07 +0000)] 
Windows: Prevent tools from clashing with named in system tests

In system tests on Windows tool's local port can sometimes clash with
'named'. On Unix the system is poked for the minimal local port,
otherwise is set to 32768 as a sane minimum. For Windows we don't
poke but set a hardcoded limit; this change aligns the limit with
Unix and changes it to 32768.

(cherry picked from commit ed7fe5fae3b22d136f0a5a92ea3b67536b10a5ce)

6 years agoMerge branch 'cppcheck-1.90-warnings-v9_14' into 'v9_14'
Matthijs Mekking [Wed, 5 Feb 2020 09:22:11 +0000 (09:22 +0000)] 
Merge branch 'cppcheck-1.90-warnings-v9_14' into 'v9_14'

Cppcheck 1.90 warnings v9 14

See merge request isc-projects/bind9!2997

6 years agomore_frags: check for basic blocks != NULL
Matthijs Mekking [Tue, 4 Feb 2020 14:52:56 +0000 (15:52 +0100)] 
more_frags: check for basic blocks != NULL

6 years agoFix build
Matthijs Mekking [Tue, 4 Feb 2020 14:13:56 +0000 (15:13 +0100)] 
Fix build

Restore cleanup: label in dns_client_startrequest because it still has one
goto for it.

6 years agoAdd a note on memory allocation
Matthijs Mekking [Tue, 4 Feb 2020 10:00:58 +0000 (11:00 +0100)] 
Add a note on memory allocation

isc__memalloc_t must deal with memory allocation failure
and must never return NULL.

(cherry picked from commit b8be29fee61c46170dc087ee72b88a84ef9f8d21)

6 years agoSuppress unknownMacro directive which is currently broken with OpenSSL
Ondřej Surý [Sat, 1 Feb 2020 18:37:54 +0000 (19:37 +0100)] 
Suppress unknownMacro directive which is currently broken with OpenSSL

(cherry picked from commit 2868eafc4612deaa6f45f79afc425f05063ecb04)

6 years agoSuppress cppcheck false positive nullPointerArithmeticRedundantCheck
Ondřej Surý [Sat, 1 Feb 2020 18:35:36 +0000 (19:35 +0100)] 
Suppress cppcheck false positive nullPointerArithmeticRedundantCheck

(cherry picked from commit c00def343f2bd96d9d87b37b53dc7e98a8c91b65)

6 years agoChange pk11_mem_get() so it cannot soft-fail
Ondřej Surý [Sat, 1 Feb 2020 17:24:43 +0000 (18:24 +0100)] 
Change pk11_mem_get() so it cannot soft-fail

(cherry picked from commit 05ae2e48ab1bd4477a4acec11a18c2fdd1694cb9)

6 years agoMake the DbC checks to be consistent and cppcheck clean
Ondřej Surý [Sat, 1 Feb 2020 16:59:19 +0000 (17:59 +0100)] 
Make the DbC checks to be consistent and cppcheck clean

(cherry picked from commit 478e4ac201478e53bb40b70aa37ddc696c0c8872)

6 years agoisc_mem_get cannot fail
Mark Andrews [Thu, 30 Jan 2020 08:41:32 +0000 (19:41 +1100)] 
isc_mem_get cannot fail

(cherry picked from commit bb65e5729725930769e3ee420fec655efe37440c)

6 years agodelay assignment until after REQUIRE
Mark Andrews [Thu, 30 Jan 2020 08:38:47 +0000 (19:38 +1100)] 
delay assignment until after REQUIRE

(cherry picked from commit d6de520bd15b0bf4114a1176240bbdde99002a6a)

6 years agoskip if first is NULL
Mark Andrews [Thu, 30 Jan 2020 07:55:36 +0000 (18:55 +1100)] 
skip if first is NULL

(cherry picked from commit 704b9ee9d08c47740fe2401900b65f188ef07fe2)

6 years agodelay assignment until after REQUIRE
Mark Andrews [Thu, 30 Jan 2020 07:19:11 +0000 (18:19 +1100)] 
delay assignment until after REQUIRE

(cherry picked from commit c65c06301c56860b5b75bbbc42c00f6459a646f8)

6 years agomake expression logical for cppcheck
Mark Andrews [Thu, 30 Jan 2020 06:57:25 +0000 (17:57 +1100)] 
make expression logical for cppcheck

(cherry picked from commit f17b9b8dd141fa59717bee53fcd685d5e42eed5d)

6 years agoremove brackets
Mark Andrews [Thu, 30 Jan 2020 06:49:15 +0000 (17:49 +1100)] 
remove brackets

(cherry picked from commit 7b948c7335f6d2e5c761b190103a8cf18e3cf43d)

6 years agosimplify ISC_LIKELY/ISC_UNLIKELY for CPPCHECK
Mark Andrews [Thu, 30 Jan 2020 06:27:08 +0000 (17:27 +1100)] 
simplify ISC_LIKELY/ISC_UNLIKELY for CPPCHECK

(cherry picked from commit 6c2e138d7aac0e7487b2ba2df6796ba64ccfc26b)