]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
6 years agoRevert "Increase nodelock count for both cache and regular db." wpk/perftest
Witold Kręcicki [Fri, 14 Feb 2020 14:34:58 +0000 (15:34 +0100)] 
Revert "Increase nodelock count for both cache and regular db."

This reverts commit 31d71bc30ce29786c95f424d5000c9dffcc5270c.

6 years agoMerge branch 'wpk/perfwork-6-bucketed-stats' into wpk/perftest
Witold Kręcicki [Fri, 14 Feb 2020 14:03:12 +0000 (15:03 +0100)] 
Merge branch 'wpk/perfwork-6-bucketed-stats' into wpk/perftest

6 years agoMerge branch 'wpk/perfwork-5-isc-result-rwlock' into wpk/perftest
Witold Kręcicki [Fri, 14 Feb 2020 13:58:40 +0000 (14:58 +0100)] 
Merge branch 'wpk/perfwork-5-isc-result-rwlock' into wpk/perftest

6 years agoMerge branch 'wpk/perfwork-4-compressctx-arena' into wpk/perftest
Witold Kręcicki [Fri, 14 Feb 2020 13:58:32 +0000 (14:58 +0100)] 
Merge branch 'wpk/perfwork-4-compressctx-arena' into wpk/perftest

6 years agoMerge branch 'wpk/perfwork-3-small-nits' into wpk/perftest
Witold Kręcicki [Fri, 14 Feb 2020 13:58:00 +0000 (14:58 +0100)] 
Merge branch 'wpk/perfwork-3-small-nits' into wpk/perftest

6 years agoMerge branch 'wpk/perfork-2-libuv-tuning' into wpk/perftest
Witold Kręcicki [Fri, 14 Feb 2020 13:57:52 +0000 (14:57 +0100)] 
Merge branch 'wpk/perfork-2-libuv-tuning' into wpk/perftest

6 years agofixup! Make nm->recvbuf larger and heap allocated, to allow uv_recvmmsg usage.
Witold Kręcicki [Fri, 14 Feb 2020 13:31:35 +0000 (14:31 +0100)] 
fixup! Make nm->recvbuf larger and heap allocated, to allow uv_recvmmsg usage.

6 years agoUse thread-friendly mctxpool and taskpool in ns_client.
Witold Kręcicki [Tue, 28 Jan 2020 10:05:07 +0000 (11:05 +0100)] 
Use thread-friendly mctxpool and taskpool in ns_client.

Make ns_client mctxpool more thread-friendly by sharding it by
netmgr threadid, use task pool also sharded by thread id to avoid
lock contention.

6 years agoBucketed statistics.
Witold Kręcicki [Thu, 30 Jan 2020 21:34:09 +0000 (22:34 +0100)] 
Bucketed statistics.

Even though statistics are lockless they still use atomics which
might cause contention. Split stats counters into buckets, sharded
by an artificial thread identifier, to increase throughput.

6 years agoUse libuv-provided uv_{export,import} if available
Witold Kręcicki [Fri, 31 Jan 2020 09:10:44 +0000 (10:10 +0100)] 
Use libuv-provided uv_{export,import} if available

6 years agoMake nm->recvbuf larger and heap allocated, to allow uv_recvmmsg usage.
Witold Kręcicki [Wed, 29 Jan 2020 12:16:04 +0000 (13:16 +0100)] 
Make nm->recvbuf larger and heap allocated, to allow uv_recvmmsg usage.

6 years agoDon't define NS_CLIENT_TRACE by default
Witold Kręcicki [Fri, 14 Feb 2020 11:28:03 +0000 (12:28 +0100)] 
Don't define NS_CLIENT_TRACE by default

6 years agoIncrease inactivehandles and inactivereqs size for better reuse.
Witold Kręcicki [Wed, 29 Jan 2020 14:16:02 +0000 (15:16 +0100)] 
Increase inactivehandles and inactivereqs size for better reuse.

6 years agoIncrease nodelock count for both cache and regular db.
Witold Kręcicki [Tue, 28 Jan 2020 10:53:24 +0000 (11:53 +0100)] 
Increase nodelock count for both cache and regular db.

6 years agoUse RESOLVER_NTASKS_PERCPU - 32 for regular tuning, 8 for small
Witold Kręcicki [Fri, 14 Feb 2020 08:18:48 +0000 (09:18 +0100)] 
Use RESOLVER_NTASKS_PERCPU - 32 for regular tuning, 8 for small

6 years agouse SO_INCOMING_CPU for UDP sockets
Witold Kręcicki [Tue, 11 Feb 2020 13:41:49 +0000 (14:41 +0100)] 
use SO_INCOMING_CPU for UDP sockets

6 years agoRemove some stale fields from ns_client_t; make sendbuf allocated on heap
Witold Kręcicki [Fri, 31 Jan 2020 21:56:32 +0000 (22:56 +0100)] 
Remove some stale fields from ns_client_t; make sendbuf allocated on heap

6 years agoDon't update LRU if the node was recently used.
Witold Kręcicki [Fri, 31 Jan 2020 12:26:34 +0000 (13:26 +0100)] 
Don't update LRU if the node was recently used.

Updating LRU requires write-locking the node, which causes contention.
Update LRU only if time difference is large enough.

6 years agoWe don't need to fill udp local address every time since we are bound to it.
Witold Kręcicki [Wed, 29 Jan 2020 12:33:58 +0000 (13:33 +0100)] 
We don't need to fill udp local address every time since we are bound to it.

6 years agoDon't check if the client is on recursing list (requires locking) if it's not RECURSING
Witold Kręcicki [Tue, 28 Jan 2020 09:31:35 +0000 (10:31 +0100)] 
Don't check if the client is on recursing list (requires locking) if it's not RECURSING

6 years agoUse the original threadid when sending a UDP packet to decrease probability of contex...
Witold Kręcicki [Wed, 29 Jan 2020 08:29:19 +0000 (09:29 +0100)] 
Use the original threadid when sending a UDP packet to decrease probability of context switching

6 years agoAdd an arena to compressctx
Witold Kręcicki [Mon, 3 Feb 2020 10:17:32 +0000 (11:17 +0100)] 
Add an arena to compressctx

6 years agoUse isc_rwlock for isc_result tables
Witold Kręcicki [Tue, 28 Jan 2020 10:27:27 +0000 (11:27 +0100)] 
Use isc_rwlock for isc_result tables

6 years agoMake isc_task_pause/isc_task_unpause thread safe.
Witold Kręcicki [Tue, 28 Jan 2020 08:08:10 +0000 (09:08 +0100)] 
Make isc_task_pause/isc_task_unpause thread safe.

isc_task_pause/unpause were inherently thread-unsafe - a task
could be paused only once by one thread, if the task was running
while we paused it it led to races. Fix it by making sure that
the task will pause if requested to, and by using a 'pause reference
counter' to count task pause requests - a task will be unpaused
iff all threads unpause it.

Don't remove from queue when pausing task - we lock the queue lock
(expensive), while it's unlikely that the task will be running -
and we'll remove it anyway in dispatcher

6 years agoMerge branch '46-enforce-clang-format-rules' into 'master'
Ondřej Surý [Fri, 14 Feb 2020 08:45:45 +0000 (08:45 +0000)] 
Merge branch '46-enforce-clang-format-rules' into 'master'

Start enforcing the clang-format rules on changed files

Closes #46

See merge request isc-projects/bind9!3063

6 years agoDon't enforce copyrights on .clang-format
Ondřej Surý [Fri, 14 Feb 2020 08:34:21 +0000 (09:34 +0100)] 
Don't enforce copyrights on .clang-format

6 years agoReformat using the new rules
Ondřej Surý [Fri, 14 Feb 2020 07:14:03 +0000 (08:14 +0100)] 
Reformat using the new rules

6 years agoAdd separate .clang-format files for headers
Ondřej Surý [Fri, 14 Feb 2020 08:14:28 +0000 (09:14 +0100)] 
Add separate .clang-format files for headers

6 years agoSwitch AlwaysBreakAfterReturnType from TopLevelDefinitions to All
Ondřej Surý [Fri, 14 Feb 2020 07:11:40 +0000 (08:11 +0100)] 
Switch AlwaysBreakAfterReturnType from TopLevelDefinitions to All

The AlwaysBreakAfterReturnType: TopLevelDefinitions was unwrapping
the declarations of the functions in the header files.

6 years agoStart enforcing the clang-format rules on changed files
Ondřej Surý [Fri, 14 Feb 2020 06:10:06 +0000 (07:10 +0100)] 
Start enforcing the clang-format rules on changed files

6 years agoMerge branch 'each-style-tweak' into 'master'
Ondřej Surý [Fri, 14 Feb 2020 05:35:17 +0000 (05:35 +0000)] 
Merge branch 'each-style-tweak' into 'master'

adjust clang-format options to get closer to ISC style

See merge request isc-projects/bind9!3061

6 years agoapply the modified style
Evan Hunt [Thu, 13 Feb 2020 22:44:37 +0000 (14:44 -0800)] 
apply the modified style

6 years agorevise .clang-format and add a C formatting script in util
Evan Hunt [Thu, 13 Feb 2020 18:16:25 +0000 (10:16 -0800)] 
revise .clang-format and add a C formatting script in util

- add util/cformat.sh, which runs clang-format on all C files with
  the default .clang-format, and on all header files with a slightly
  modified version.
- use correct bracing after multi-line control statements
- stop aligning variable declarations to avoid problems with pointer
  alignment, but retain aligned declarations in header files so that
  struct definitions look cleaner.
- static function prototypes in C files can skip the line break after
  the return type, but function prototypes in header files still have
  the line break.
- don't break-before-brace in function definitions. ISC style calls
  for braces on the same line when function parameters fit on a single
  line, and a line break if they don't, but clang-format doesn't yet
  support that distinction. one-line function definitions are about
  four times more common than multi-line, so let's use the option that
  deviates less.

6 years agoMerge branch '46-add-curly-braces' into 'master'
Ondřej Surý [Thu, 13 Feb 2020 21:28:07 +0000 (21:28 +0000)] 
Merge branch '46-add-curly-braces' into 'master'

Add curly braces using uncrustify and then reformat with clang-format back

Closes #46

See merge request isc-projects/bind9!3057

6 years agoUse clang-tidy to add curly braces around one-line statements
Ondřej Surý [Thu, 13 Feb 2020 20:48:23 +0000 (21:48 +0100)] 
Use clang-tidy to add curly braces around one-line statements

The command used to reformat the files in this commit was:

./util/run-clang-tidy \
-clang-tidy-binary clang-tidy-11
-clang-apply-replacements-binary clang-apply-replacements-11 \
-checks=-*,readability-braces-around-statements \
-j 9 \
-fix \
-format \
-style=file \
-quiet
clang-format -i --style=format $(git ls-files '*.c' '*.h')
uncrustify -c .uncrustify.cfg --replace --no-backup $(git ls-files '*.c' '*.h')
clang-format -i --style=format $(git ls-files '*.c' '*.h')

6 years agoAdd copy of run-clang-tidy that can fixup the filepaths
Ondřej Surý [Thu, 13 Feb 2020 17:26:32 +0000 (18:26 +0100)] 
Add copy of run-clang-tidy that can fixup the filepaths

6 years agoUse coccinelle to add braces to nested single line statement
Ondřej Surý [Thu, 13 Feb 2020 17:16:57 +0000 (18:16 +0100)] 
Use coccinelle to add braces to nested single line statement

Both clang-tidy and uncrustify chokes on statement like this:

for (...)
if (...)
break;

This commit uses a very simple semantic patch (below) to add braces around such
statements.

Semantic patch used:

@@
statement S;
expression E;
@@

while (...)
- if (E) S
+ { if (E) { S } }

@@
statement S;
expression E;
@@

for (...;...;...)
- if (E) S
+ { if (E) { S } }

@@
statement S;
expression E;
@@

if (...)
- if (E) S
+ { if (E) { S } }

6 years agoMerge branch 'mnowak/coverity-disable-web-tag' into 'master'
Michal Nowak [Wed, 12 Feb 2020 14:44:56 +0000 (14:44 +0000)] 
Merge branch 'mnowak/coverity-disable-web-tag' into 'master'

Run Coverity Scan only when specific variables are present

See merge request isc-projects/bind9!3050

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

6 years agoMerge branch '46-just-use-clang-format-to-reformat-sources' into 'master'
Ondřej Surý [Wed, 12 Feb 2020 14:33:32 +0000 (14:33 +0000)] 
Merge branch '46-just-use-clang-format-to-reformat-sources' into 'master'

Reformat source code with clang-format

Closes #46

See merge request isc-projects/bind9!2156

6 years agoRemove tkey_test (which is no-op anyway)
Ondřej Surý [Wed, 12 Feb 2020 13:15:10 +0000 (14:15 +0100)] 
Remove tkey_test (which is no-op anyway)

6 years agoUpdate the definition files for Windows
Ondřej Surý [Tue, 16 Jul 2019 20:33:15 +0000 (22:33 +0200)] 
Update the definition files for Windows

6 years agoUse clang-format to reformat the source files
Ondřej Surý [Wed, 12 Feb 2020 12:59:18 +0000 (13:59 +0100)] 
Use clang-format to reformat the source files

6 years agoImport Linux kernel .clang-format with small modifications
Ondřej Surý [Tue, 16 Jul 2019 20:23:06 +0000 (22:23 +0200)] 
Import Linux kernel .clang-format with small modifications

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

Minor README tweaks

See merge request isc-projects/bind9!3036

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

6 years agoMerge branch '1616-autosign-not-waiting-long-enough-for-zone-to-be-signed-v9_11-and...
Mark Andrews [Wed, 12 Feb 2020 10:07:27 +0000 (10:07 +0000)] 
Merge branch '1616-autosign-not-waiting-long-enough-for-zone-to-be-signed-v9_11-and-maybe-others-master' into 'master'

wait for apex NSEC3 to be generated

Closes #1616

See merge request isc-projects/bind9!3043

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 'mnowak/coverity2' into 'master'
Michal Nowak [Wed, 12 Feb 2020 09:45:27 +0000 (09:45 +0000)] 
Merge branch 'mnowak/coverity2' into 'master'

Add Coverity Scan to CI

See merge request isc-projects/bind9!2979

6 years agoAdd Coverity Scan to CI
Michal Nowak [Wed, 12 Feb 2020 09:45:27 +0000 (09:45 +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.

6 years agoMerge branch '1602-rpz-system-test-failed-because-protoype-responses-timed-out' into...
Mark Andrews [Wed, 12 Feb 2020 08:32:54 +0000 (08:32 +0000)] 
Merge branch '1602-rpz-system-test-failed-because-protoype-responses-timed-out' into 'master'

Resolve "rpz system test failed because protoype responses timed out."

Closes #1602

See merge request isc-projects/bind9!3040

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

6 years agoMerge branch 'wpk/netmgr-pools-unlimited' into 'master'
Witold Krecicki [Wed, 12 Feb 2020 08:10:31 +0000 (08:10 +0000)] 
Merge branch 'wpk/netmgr-pools-unlimited' into 'master'

Don't limit the size of uvreq/nmhandle pool artificially.

See merge request isc-projects/bind9!3031

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

6 years agoDon't limit the size of uvreq/nmhandle pool artificially.
Witold Kręcicki [Mon, 10 Feb 2020 13:00:36 +0000 (14:00 +0100)] 
Don't limit the size of uvreq/nmhandle pool artificially.

There was a hard limit set on number of uvreq and nmhandles
that can be allocated by a pool, but we don't handle a situation
where we can't get an uvreq. Don't limit the number at all,
let the OS deal with it.

6 years agoMerge branch '1428-possible-data-race-in-rbtdb-happens-occasionally-on-ppc64le' into...
Ondřej Surý [Tue, 11 Feb 2020 10:42:52 +0000 (10:42 +0000)] 
Merge branch '1428-possible-data-race-in-rbtdb-happens-occasionally-on-ppc64le' into 'master'

Convert all atomic operations in isc_rwlock to release-acquire memory ordering

Closes #1428

See merge request isc-projects/bind9!2985

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 agoMerge branch '1598-dnssec-policy-doc' into 'master'
Evan Hunt [Tue, 11 Feb 2020 09:01:36 +0000 (09:01 +0000)] 
Merge branch '1598-dnssec-policy-doc' into 'master'

Resolve "Improve dnssec-policy documentation"

Closes #1598

See merge request isc-projects/bind9!3023

6 years agorevise dnssec-policy documentation
Evan Hunt [Sat, 8 Feb 2020 07:41:18 +0000 (23:41 -0800)] 
revise dnssec-policy documentation

6 years agoMerge branch 'ondrej/remove-OpenSSL-engine-specification-in-label' into 'master'
Ondřej Surý [Mon, 10 Feb 2020 16:02:23 +0000 (16:02 +0000)] 
Merge branch 'ondrej/remove-OpenSSL-engine-specification-in-label' into 'master'

Cleanup support for specifying PKCS#11 engine as part of the label

See merge request isc-projects/bind9!2943

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

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.

6 years agoMerge branch 'ondrej/null-the-destroyed-pointer-early' into 'master'
Ondřej Surý [Mon, 10 Feb 2020 05:23:38 +0000 (05:23 +0000)] 
Merge branch 'ondrej/null-the-destroyed-pointer-early' into 'master'

NULL the destroyed pointer early

See merge request isc-projects/bind9!3026

6 years agoClear the pointer to destroyed object early using the semantic patch
Ondřej Surý [Sat, 8 Feb 2020 12:37:54 +0000 (04:37 -0800)] 
Clear the pointer to destroyed object early using the semantic patch

Also disable the semantic patch as the code needs tweaks here and there because
some destroy functions might not destroy the object and return early if the
object is still in use.

6 years agoAdd semantic patch to NULL the destroyed pointer early
Ondřej Surý [Sat, 8 Feb 2020 12:31:51 +0000 (04:31 -0800)] 
Add semantic patch to NULL the destroyed pointer early

Our destroy functions usually look like this:

    void
    foo_destroy(foo_t **foop) {
        foo_t foo = *foop;
        ...destroy the contents of foo...
        *foop = NULL;
    }

nulling the pointer should be done as soon as possible which is
not always the case.  This commit adds simple semantic patch that
changes the example function to:

    void
    foo_destroy(foo_t **foop) {
        foo_t foo = *foop;
        *foop = NULL;
        ...destroy the contents of foo...
    }

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

improve documentation of query logging

Closes #932

See merge request isc-projects/bind9!2976

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

6 years agoMerge branch 'michal/fix-the-pipelined-system-test-on-openbsd' into 'master'
Ondřej Surý [Sat, 8 Feb 2020 22:46:26 +0000 (22:46 +0000)] 
Merge branch 'michal/fix-the-pipelined-system-test-on-openbsd' into 'master'

Fix the "pipelined" system test on OpenBSD

See merge request isc-projects/bind9!3011

6 years agoFix the "pipelined" system test on OpenBSD
Michał Kępień [Thu, 6 Feb 2020 12:36:32 +0000 (13:36 +0100)] 
Fix the "pipelined" system test on OpenBSD

On OpenBSD, the bin/tests/system/pipelined/ans5/ans.py script does not
shut down when it is sent the SIGTERM signal.  What seems to be
happening is that starting the UDP listening thread somehow makes the
accept() calls in the script's main thread uninterruptible and thus the
SIGTERM signal sent to the main thread does not get processed until a
TCP connection is established with the script's TCP socket.  Work around
the issue by setting a timeout for operations performed on the script's
TCP socket, so that each accept() call in the main thread's infinite
loop returns after at most 1 second, allowing termination signals sent
to the script to be processed.

6 years agoMerge branch 'wpk/fix-atomics-usage' into 'master'
Ondřej Surý [Sat, 8 Feb 2020 21:46:37 +0000 (21:46 +0000)] 
Merge branch 'wpk/fix-atomics-usage' into 'master'

Fix atomics usage for mutexatomics

See merge request isc-projects/bind9!2967

6 years agoAdd mutexatomics system and unit test jobs
Witold Kręcicki [Tue, 28 Jan 2020 09:00:48 +0000 (10:00 +0100)] 
Add mutexatomics system and unit test jobs

6 years agoFix atomics usage for mutexatomics
Witold Kręcicki [Tue, 28 Jan 2020 08:43:55 +0000 (09:43 +0100)] 
Fix atomics usage for mutexatomics

6 years agoMerge branch 'ondrej/coccinelle-improvements' into 'master'
Ondřej Surý [Sat, 8 Feb 2020 11:47:42 +0000 (11:47 +0000)] 
Merge branch 'ondrej/coccinelle-improvements' into 'master'

Variaous little coccinelle improvements

See merge request isc-projects/bind9!3025

6 years agoFormatting issues found by local coccinelle run
Ondřej Surý [Sat, 8 Feb 2020 10:49:47 +0000 (02:49 -0800)] 
Formatting issues found by local coccinelle run

6 years agoReplace isc_mem_put()+isc_mem_detach() with isc_mem_putanddetach() in contrib/
Ondřej Surý [Sat, 8 Feb 2020 10:46:25 +0000 (02:46 -0800)] 
Replace isc_mem_put()+isc_mem_detach() with isc_mem_putanddetach() in contrib/

6 years agoRun the check-cocci on the whole tree, allow passing extra arguments
Ondřej Surý [Sat, 8 Feb 2020 10:33:58 +0000 (02:33 -0800)] 
Run the check-cocci on the whole tree, allow passing extra arguments

6 years agoRemove #include <config.h> from netmgr.h
Ondřej Surý [Sat, 8 Feb 2020 10:33:27 +0000 (02:33 -0800)] 
Remove #include <config.h> from netmgr.h

6 years agoMerge branch '1596-echo_ic-should-be-used-for-continuations' into 'master'
Mark Andrews [Fri, 7 Feb 2020 21:35:28 +0000 (21:35 +0000)] 
Merge branch '1596-echo_ic-should-be-used-for-continuations' into 'master'

Resolve "echo_ic should be used for continuations."

Closes #1596

See merge request isc-projects/bind9!2991

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

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

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

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

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

6 years agoMerge branch 'each-max-zone-ttl' into 'master'
Matthijs Mekking [Fri, 7 Feb 2020 19:28:41 +0000 (19:28 +0000)] 
Merge branch 'each-max-zone-ttl' into 'master'

dnssec-policy neater configuration

See merge request isc-projects/bind9!3006

6 years agoupdate CHANGES
Matthijs Mekking [Thu, 6 Feb 2020 16:59:14 +0000 (17:59 +0100)] 
update CHANGES

6 years agomake ISO8601 duration parsing case-insensitive for robustness
Evan Hunt [Thu, 6 Feb 2020 20:51:24 +0000 (12:51 -0800)] 
make ISO8601 duration parsing case-insensitive for robustness

6 years agovarious style cleanups
Evan Hunt [Thu, 6 Feb 2020 18:28:53 +0000 (10:28 -0800)] 
various style cleanups

6 years agoadd support for key algorithm mnemonics in dnssec-policy
Evan Hunt [Thu, 6 Feb 2020 20:13:20 +0000 (12:13 -0800)] 
add support for key algorithm mnemonics in dnssec-policy

6 years agoWarn if key lengths are out of range/predefined
Matthijs Mekking [Thu, 6 Feb 2020 16:43:54 +0000 (17:43 +0100)] 
Warn if key lengths are out of range/predefined

6 years agoMake key-directory optional
Matthijs Mekking [Thu, 6 Feb 2020 14:56:58 +0000 (15:56 +0100)] 
Make key-directory optional

The key-directory keyword actually does nothing right now but may
be useful in the future if we want to differentiate between key
directories or HSM keys, or if we want to speficy different
directories for different keys or policies.  Make it optional for
the time being.

6 years agoAllow for key lifetime unlimited
Matthijs Mekking [Thu, 6 Feb 2020 14:41:47 +0000 (15:41 +0100)] 
Allow for key lifetime unlimited

The keyword 'unlimited' can be used instead of PT0S which means the
same but is more comprehensible for users.

Also fix some redundant "none" parameters in the kasp test.

6 years agorename 'zone-max-ttl' to 'max-zone-ttl' for consistency
Evan Hunt [Thu, 6 Feb 2020 06:09:48 +0000 (22:09 -0800)] 
rename 'zone-max-ttl' to 'max-zone-ttl' for consistency

6 years agoMerge branch '1589-intermittent-kasp-failure-keyid-0' into 'master'
Matthijs Mekking [Fri, 7 Feb 2020 15:09:58 +0000 (15:09 +0000)] 
Merge branch '1589-intermittent-kasp-failure-keyid-0' into 'master'

kasp test: Fix key id 0000 lookup

Closes #1589

See merge request isc-projects/bind9!2968

6 years agowhitespace: line out settime calls nicely
Matthijs Mekking [Fri, 7 Feb 2020 09:55:25 +0000 (10:55 +0100)] 
whitespace: line out settime calls nicely

6 years agokasp test: Fix key id 0000 lookup
Matthijs Mekking [Tue, 28 Jan 2020 14:52:08 +0000 (15:52 +0100)] 
kasp test: Fix key id 0000 lookup

When checking keys we search for keys by key id. The kasp test used key id
0 as an indicator that a key was not yet found. Use "no" instead.

6 years agoMerge branch '1599-autosign-conversion-from-nsec3-to-nsec-can-take-more-than-2-second...
Mark Andrews [Fri, 7 Feb 2020 12:37:35 +0000 (12:37 +0000)] 
Merge branch '1599-autosign-conversion-from-nsec3-to-nsec-can-take-more-than-2-seconds' into 'master'

Resolve "autosign conversion from NSEC3 to NSEC can take more than 2 seconds."

Closes #1599

See merge request isc-projects/bind9!3000

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

6 years agoMerge branch 'wpk/disable-openssl-siphash' into 'master'
Witold Krecicki [Fri, 7 Feb 2020 12:15:51 +0000 (12:15 +0000)] 
Merge branch 'wpk/disable-openssl-siphash' into 'master'

Disable OpenSSL siphash.

See merge request isc-projects/bind9!2965

6 years agoDisable OpenSSL siphash.
Witold Kręcicki [Tue, 28 Jan 2020 07:46:52 +0000 (08:46 +0100)] 
Disable OpenSSL siphash.

Creation of EVP_MD_CTX and EVP_PKEY is quite expensive, until
we fix the code to reuse the context and key we'll use our own
implementation of siphash.

6 years agoMerge branch 'marka-coverity-dns-db-find' into 'master'
Mark Andrews [Fri, 7 Feb 2020 09:43:50 +0000 (09:43 +0000)] 
Merge branch 'marka-coverity-dns-db-find' into 'master'

Silence unchecked return reported by coverity.

See merge request isc-projects/bind9!3005