]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
5 years agoRevert "Initialize checknames field in query_test.c"
Michal Nowak [Mon, 22 Feb 2021 12:40:31 +0000 (13:40 +0100)] 
Revert "Initialize checknames field in query_test.c"

This reverts commit c75484c4dff04698c183b456a6cc85f951264e75.

5 years agoInitialize checknames field in query_test.c
Michal Nowak [Thu, 18 Feb 2021 13:49:23 +0000 (14:49 +0100)] 
Initialize checknames field in query_test.c

'checknames' field of struct dns_view is not initialized by
dns_view_create(). ASAN identified this as runtime error:

    runtime error: load of value 190, which is not a valid value for type '_Bool'

5 years agoMerge branch 'mnowak/alpine-3.13' into 'main'
Michal Nowak [Tue, 23 Feb 2021 14:45:19 +0000 (14:45 +0000)] 
Merge branch 'mnowak/alpine-3.13' into 'main'

Add Alpine Linux 3.13

See merge request isc-projects/bind9!4724

5 years agoAdd Alpine Linux 3.13
Michal Nowak [Mon, 22 Feb 2021 10:59:47 +0000 (11:59 +0100)] 
Add Alpine Linux 3.13

5 years agoMerge branch 'mnowak/pairwise-pict-keep-stderr' into 'main'
Michal Nowak [Tue, 23 Feb 2021 14:25:38 +0000 (14:25 +0000)] 
Merge branch 'mnowak/pairwise-pict-keep-stderr' into 'main'

Do not remove stderr from pict output

See merge request isc-projects/bind9!4727

5 years agoDo not remove stderr from pict output
Michal Nowak [Tue, 23 Feb 2021 10:30:08 +0000 (11:30 +0100)] 
Do not remove stderr from pict output

Removing stderr from the pict tool serves no purpose and drops valuable
information, we might use when debugging failed pairwise CI job, such
as:

    Input Error: A parameter names must be unique

5 years agoMerge branch '2508-cid-320481-null-pointer-dereferences-reverse_inull' into 'main'
Mark Andrews [Tue, 23 Feb 2021 13:04:38 +0000 (13:04 +0000)] 
Merge branch '2508-cid-320481-null-pointer-dereferences-reverse_inull' into 'main'

Resolve "CID 320481:  Null pointer dereferences  (REVERSE_INULL)"

Closes #2508

See merge request isc-projects/bind9!4722

5 years agoSilence CID 320481: Null pointer dereferences
Mark Andrews [Sun, 21 Feb 2021 22:28:37 +0000 (09:28 +1100)] 
Silence CID 320481: Null pointer dereferences

    *** CID 320481:  Null pointer dereferences  (REVERSE_INULL)
    /bin/tests/wire_test.c: 261 in main()
    255      process_message(input);
    256      }
    257      } else {
    258      process_message(input);
    259      }
    260
       CID 320481:  Null pointer dereferences  (REVERSE_INULL)
       Null-checking "input" suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
    261      if (input != NULL) {
    262      isc_buffer_free(&input);
    263      }
    264
    265      if (printmemstats) {
    266      isc_mem_stats(mctx, stdout);

5 years agoMerge branch '2493-cid-281450-dereference-before-null-check-reverse_inull' into ...
Mark Andrews [Tue, 23 Feb 2021 12:40:56 +0000 (12:40 +0000)] 
Merge branch '2493-cid-281450-dereference-before-null-check-reverse_inull' into 'main'

Resolve "CID 281450: Dereference before null check (REVERSE_INULL)"

Closes #2493

See merge request isc-projects/bind9!4684

5 years agoSilence CID 281450: Dereference before null check
Mark Andrews [Tue, 16 Feb 2021 05:15:25 +0000 (16:15 +1100)] 
Silence CID 281450: Dereference before null check

remove redundant 'inst != NULL' test

    162cleanup:

    CID 281450 (#1 of 1): Dereference before null check (REVERSE_INULL)
    check_after_deref: Null-checking inst suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
    163        if (result != ISC_R_SUCCESS && inst != NULL) {
    164                plugin_destroy((void **)&inst);
    165        }

5 years agoMerge branch '2492-304936-dereference-before-null-check' into 'main'
Mark Andrews [Tue, 23 Feb 2021 11:57:29 +0000 (11:57 +0000)] 
Merge branch '2492-304936-dereference-before-null-check' into 'main'

Resolve "CID 304936: Dereference before null check"

Closes #2492

See merge request isc-projects/bind9!4683

5 years agoSilence CID 304936 Dereference before null check
Mark Andrews [Tue, 16 Feb 2021 05:05:56 +0000 (16:05 +1100)] 
Silence CID 304936 Dereference before null check

Removed redundant 'listener != NULL' check.

    1191cleanup:

    CID 304936 (#1 of 1): Dereference before null check (REVERSE_INULL)
    check_after_deref: Null-checking listener suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
    1192        if (listener != NULL) {
    1193                isc_refcount_decrement(&listener->refs);
    1194                listener->exiting = true;
    1195                free_listener(listener);
    1196        }

5 years agoMerge branch '2408-dnssec-policy-purge-keys' into 'main'
Matthijs Mekking [Tue, 23 Feb 2021 09:37:56 +0000 (09:37 +0000)] 
Merge branch '2408-dnssec-policy-purge-keys' into 'main'

Resolve "kasp: Purge deleted keys"

Closes #2408

See merge request isc-projects/bind9!4665

5 years agoAdd changes and notes for [#2408]
Matthijs Mekking [Tue, 9 Feb 2021 13:42:05 +0000 (14:42 +0100)] 
Add changes and notes for [#2408]

5 years agoMinor kasp test fixes
Matthijs Mekking [Tue, 9 Feb 2021 13:35:46 +0000 (14:35 +0100)] 
Minor kasp test fixes

Two minor fixes in the kasp system test:

1. A wrong comment in ns3/setup.sh (we are subtracting 2 hours, not
   adding them).
2. 'get_keyids' used bad parameters "$1" "$2" when 'check_numkeys'
   failed. Also, 'check_numkeys' can use $DIR, $ZONE, and $NUMKEYS
   directly, no need to pass them.

5 years agoTest purge-keys option
Matthijs Mekking [Tue, 9 Feb 2021 13:33:44 +0000 (14:33 +0100)] 
Test purge-keys option

Add some more zones to the kasp system test to test the 'purge-keys'
option. Three zones test that the predecessor key files are removed
after the purge keys interval, one test checks that the key files
are retained if 'purge-keys' is disabled. For that, we change the
times to 90 days in the past (the default value for 'purge-keys').

5 years agoPurge keys implementation
Matthijs Mekking [Mon, 8 Feb 2021 14:15:57 +0000 (15:15 +0100)] 
Purge keys implementation

On each keymgr run, we now also check if key files can be removed.
The 'purge-keys' interval determines how long keys should be retained
after they have become completely hidden.

Key files should not be removed if it has a state that is set to
something else then HIDDEN, if purge-keys is 0 (disabled), if
the key goal is set to OMNIPRESENT, or if the key is unused (a key is
unused if no timing metadata set, and no states are set or if set,
they are set to HIDDEN).

If the last changed timing metadata plus the purge-keys interval is
in the past, the key files may be removed.

Add a dst_key_t variable 'purge' to signal that the key file should
not be written to file again.

5 years agoAdd purge-keys config option
Matthijs Mekking [Mon, 8 Feb 2021 11:02:19 +0000 (12:02 +0100)] 
Add purge-keys config option

Add a new option 'purge-keys' to 'dnssec-policy' that will purge key
files for deleted keys. The option determines how long key files
should be retained prior to removing the corresponding files from
disk.

If set to 0, the option is disabled and 'named' will not remove key
files from disk.

5 years agoMerge branch '2509-cid-281489-resource-leaks-resource_leak' into 'main'
Mark Andrews [Mon, 22 Feb 2021 22:39:23 +0000 (22:39 +0000)] 
Merge branch '2509-cid-281489-resource-leaks-resource_leak' into 'main'

Resolve "CID 281489:  Resource leaks  (RESOURCE_LEAK)"

Closes #2509

See merge request isc-projects/bind9!4723

5 years agoAddress theoretical resource leak in dns_dt_open()
Mark Andrews [Sun, 21 Feb 2021 22:44:56 +0000 (09:44 +1100)] 
Address theoretical resource leak in dns_dt_open()

dns_dt_open() is not currently called with mode dns_dtmode_unix.

    *** CID 281489:  Resource leaks  (RESOURCE_LEAK)
    /lib/dns/dnstap.c: 983 in dns_dt_open()
    977
    978      if (!dnstap_file(handle->reader)) {
    979      CHECK(DNS_R_BADDNSTAP);
    980      }
    981      break;
    982      case dns_dtmode_unix:
       CID 281489:  Resource leaks  (RESOURCE_LEAK)
       Variable "handle" going out of scope leaks the storage it points to.
    983      return (ISC_R_NOTIMPLEMENTED);
    984      default:
    985      INSIST(0);
    986      ISC_UNREACHABLE();
    987      }
    988

5 years agoMerge branch 'ondrej/add-tls_p.h-to-Makefile.am' into 'main'
Ondřej Surý [Fri, 19 Feb 2021 12:30:50 +0000 (12:30 +0000)] 
Merge branch 'ondrej/add-tls_p.h-to-Makefile.am' into 'main'

Include lib/isc/tls_p.h in release tarballs

See merge request isc-projects/bind9!4716

5 years agoInclude lib/isc/tls_p.h in release tarballs
Ondřej Surý [Fri, 19 Feb 2021 11:53:36 +0000 (12:53 +0100)] 
Include lib/isc/tls_p.h in release tarballs

The addition of lib/isc/tls_p.h to the source tree was not accounted for
in the relevant variable in lib/isc/Makefile.am and thus the former file
is not being included in release tarballs prepared using "make dist".
Fix by tweaking the libisc_la_SOURCES list in lib/isc/Makefile.am
accordingly.

5 years agoMerge branch '2504-do-not-require-libtool-in-PATH-at-build-time' into 'main'
Michał Kępień [Fri, 19 Feb 2021 12:09:48 +0000 (12:09 +0000)] 
Merge branch '2504-do-not-require-libtool-in-PATH-at-build-time' into 'main'

Do not require libtool in PATH at build time

Closes #2504

See merge request isc-projects/bind9!4715

5 years agoAdd CHANGES entry
Michał Kępień [Fri, 19 Feb 2021 10:52:56 +0000 (11:52 +0100)] 
Add CHANGES entry

5 years agoDo not require libtool in PATH at build time
Michał Kępień [Fri, 19 Feb 2021 10:52:56 +0000 (11:52 +0100)] 
Do not require libtool in PATH at build time

The build-time requirement for libtool was introduced inadvertently:

 1. Commit 1628f5865acb2d472ce4adf71fc78ac99094fa1c added a check to
    configure.ac which claims to test whether the libtool script is
    available.  There are two problems with that check:

      - it is effectively a no-op as the AC_PROG_LIBTOOL() macro always
        sets the LIBTOOL variable [1],

      - this check was intended to be performed before autoreconf is
        run, not when ./configure is run; the libtool script is supposed
        to be dynamically generated by ./configure on the build host and
        thus there is no need for a standalone libtool script to be
        installed system-wide on every host attempting to build BIND 9
        e.g. from a tarball produced by "make dist".

 2. Commit a7982d14dddb864420deb49e735f782022d1fa07 was based on the
    incorrect assumption that the AC_PROG_LIBTOOL() macro looks for the
    libtool binary in PATH and sets the LIBTOOL variable accordingly,
    which is what other AC_PROG_*() macros do.  Meanwhile, the
    AC_PROG_LIBTOOL() macro only initializes libtool for use with
    Automake.  It is not necessary for a standalone libtool script to be
    available in PATH on the build host when ./configure is run.

Do not look for libtool in PATH at build time as it prevents hosts
without a libtool script available system-wide from building BIND 9 from
source tarballs prepared using "make dist".  Note that libtool m4
macros, utilities, etc. still need to be present on a given host if
autoreconf is to be run on it.

[1] https://git.savannah.gnu.org/cgit/libtool.git/tree/m4/libtool.m4?h=v2.4.6#n89

5 years agoMerge branch '2499-a-loc-record-with-a-invalid-direction-field-triggers-an-insist...
Mark Andrews [Thu, 18 Feb 2021 22:37:41 +0000 (22:37 +0000)] 
Merge branch '2499-a-loc-record-with-a-invalid-direction-field-triggers-an-insist' into 'main'

Resolve "A LOC record with a invalid direction field triggers an INSIST"

Closes #2499

See merge request isc-projects/bind9!4704

5 years agoAdd release note for [GL #2499]
Mark Andrews [Thu, 18 Feb 2021 06:02:27 +0000 (17:02 +1100)] 
Add release note for [GL #2499]

5 years agoAdd CHANGES for [GL #2499]
Mark Andrews [Thu, 18 Feb 2021 05:59:57 +0000 (16:59 +1100)] 
Add CHANGES for [GL #2499]

5 years agoCorrectly detect when get_direction failed
Mark Andrews [Thu, 18 Feb 2021 05:57:28 +0000 (16:57 +1100)] 
Correctly detect when get_direction failed

5 years agoTest a LOC record with an invalid direction field
Mark Andrews [Thu, 18 Feb 2021 05:56:51 +0000 (16:56 +1100)] 
Test a LOC record with an invalid direction field

5 years agoMerge branch '2433-improve-memory-contention' into 'main'
Ondřej Surý [Thu, 18 Feb 2021 20:08:09 +0000 (20:08 +0000)] 
Merge branch '2433-improve-memory-contention' into 'main'

Resolve "investigate and improve lock contention around mctx"

Closes #2433

See merge request isc-projects/bind9!4659

5 years agoAdd CHANGES note for GL #2433
Ondřej Surý [Fri, 5 Feb 2021 12:39:38 +0000 (13:39 +0100)] 
Add CHANGES note for GL #2433

5 years agoUse library constructor/destructor to initialize OpenSSL
Ondřej Surý [Tue, 9 Feb 2021 16:44:40 +0000 (17:44 +0100)] 
Use library constructor/destructor to initialize OpenSSL

Instead of calling isc_tls_initialize()/isc_tls_destroy() explicitly use
gcc/clang attributes on POSIX and DLLMain on Windows to initialize and
shutdown OpenSSL library.

This resolves the issue when isc_nm_create() / isc_nm_destroy() was
called multiple times and it would call OpenSSL library destructors from
isc_nm_destroy().

At the same time, since we now have introduced the ctor/dtor for libisc,
this commit moves the isc_mem API initialization (the list of the
contexts) and changes the isc_mem_checkdestroyed() to schedule the
checking of memory context on library unload instead of executing the
code immediately.

5 years agoDisable calling DllMain() on thread creation/destruction
Ondřej Surý [Tue, 14 Jul 2020 08:52:02 +0000 (10:52 +0200)] 
Disable calling DllMain() on thread creation/destruction

Disables the DLL_THREAD_ATTACH and DLL_THREAD_DETACH notifications for
the specified dynamic-link library (DLL).  This can reduce the size of
the working set for some applications.

5 years agoFix the invalid condition variable
Ondřej Surý [Tue, 9 Feb 2021 12:25:52 +0000 (13:25 +0100)] 
Fix the invalid condition variable

Although harmless, the memmove() in tlsdns and tcpdns was guarded by a
current message length variable that was always bigger than 0 instead of
correct current buffer length remainder variable.

5 years agoMove most of the OpenSSL initialization to isc_tls
Ondřej Surý [Tue, 9 Feb 2021 12:25:46 +0000 (13:25 +0100)] 
Move most of the OpenSSL initialization to isc_tls

Since we now require both libcrypto and libssl to be initialized for
netmgr, we move all the OpenSSL initialization code except the engine
initialization to isc_tls API.

The isc_tls_initialize() and isc_tls_destroy() has been made idempotent,
so they could be called multiple time.  However when isc_tls_destroy()
has been called, the isc_tls_initialize() could not be called again.

5 years agoRemove overrun checking code from memory allocator
Ondřej Surý [Fri, 5 Feb 2021 16:18:28 +0000 (17:18 +0100)] 
Remove overrun checking code from memory allocator

The ISC_MEM_CHECKOVERRUN would add canary byte at the end of every
allocations and check whether the canary byte hasn't been changed at the
free time.  The AddressSanitizer and valgrind memory checks surpases
simple checks like this, so there's no need to actually keep the code
inside the allocator.

5 years agoModify the way we benchmark mem_{get,put}
Ondřej Surý [Fri, 5 Feb 2021 09:25:07 +0000 (10:25 +0100)] 
Modify the way we benchmark mem_{get,put}

Previously, the mem_{get,put} benchmark would pass the allocation size
as thread_create argument.  This has been now changed, so the allocation
size is stored and decremented (divided) in atomic variable and the
thread create routing is given a memory context.  This will allow to
write tests where each thread is given different memory context and do
the same for mempool benchmarking.

5 years agoDisable memory debugging features in non-developer build
Ondřej Surý [Fri, 5 Feb 2021 09:25:07 +0000 (10:25 +0100)] 
Disable memory debugging features in non-developer build

The two memory debugging features: ISC_MEM_DEFAULTFILL
(ISC_MEMFLAG_FILL) and ISC_MEM_TRACKLINES were always enabled in all
builds and the former was only disabled in `named`.

This commits disables those two features in non-developer build to make
the memory allocator significantly faster.

5 years agoMake the mempool names unconditional
Ondřej Surý [Thu, 4 Feb 2021 22:10:39 +0000 (23:10 +0100)] 
Make the mempool names unconditional

The named memory pools were default and always compiled-in.  Remove the
extra complexity by removing the #define and #ifdefs around the code.

5 years agoMake the memory and mempool counters to be stdatomic types
Ondřej Surý [Thu, 4 Feb 2021 20:56:49 +0000 (21:56 +0100)] 
Make the memory and mempool counters to be stdatomic types

This is yet another step into unlocking some parts of the memory
contexts.  All the regularly updated variables has been turned into
atomic types, so we can later remove the locks when updating various
counters.

Also unlock as much code as possible without breaking anything.

5 years agoBump the maximum number of hazard pointers in tests
Ondřej Surý [Tue, 14 Jul 2020 12:24:10 +0000 (14:24 +0200)] 
Bump the maximum number of hazard pointers in tests

On 24-core machine, the tests would crash because we would run out of
the hazard pointers.  We now adjust the number of hazard pointers to be
in the <128,256> interval based on the number of available cores.

Note: This is just a band-aid and needs a proper fix.

5 years agoRemove the extra level of indirection via isc_memmethods_t
Ondřej Surý [Thu, 4 Feb 2021 19:19:09 +0000 (20:19 +0100)] 
Remove the extra level of indirection via isc_memmethods_t

Previously, the applications using libisc would be able to override the
internal memory methods with own implementation.  This was no longer
possible, but the extra level of indirection was not removed.  This
commit removes the extra level of indirection for the memory methods and
the default_memalloc() and default_memfree().

5 years agoRemove the internal memory allocator
Ondřej Surý [Thu, 4 Feb 2021 19:11:20 +0000 (20:11 +0100)] 
Remove the internal memory allocator

The internal memory allocator had an extra code to keep a list of blocks
for small size allocation.  This would help to reduce the interactions
with the system malloc as the memory would be already allocated from the
system, but there's an extra cost associated with that - all the
allocations/deallocations must be locked, effectively eliminating any
optimizations in the system allocator targeted at multi-threaded
applications. While the isc_mem API is still using locks pretty heavily,
this is a first step into reducing the memory allocation/deallocation
contention.

5 years agoMerge branch 'mnowak/fix-feature-test-tool-location' into 'main'
Michal Nowak [Thu, 18 Feb 2021 14:43:29 +0000 (14:43 +0000)] 
Merge branch 'mnowak/fix-feature-test-tool-location' into 'main'

Use FEATURETEST variable instead of a path

See merge request isc-projects/bind9!4694

5 years agoUse FEATURETEST variable instead of a path
Michal Nowak [Wed, 17 Feb 2021 08:20:25 +0000 (09:20 +0100)] 
Use FEATURETEST variable instead of a path

feature-test tool location needs to be determined by its associated
variable; otherwise, the tool is not found on Windows:

    setup.sh: line 22: ../feature-test: No such file or directory

5 years agoMerge branch 'michal/add-a-checklist-for-handling-cves' into 'main'
Michał Kępień [Thu, 18 Feb 2021 10:16:57 +0000 (10:16 +0000)] 
Merge branch 'michal/add-a-checklist-for-handling-cves' into 'main'

Add a checklist for handling security issues

See merge request isc-projects/bind9!3950

5 years agoAdd a checklist for handling security issues
Michał Kępień [Thu, 18 Feb 2021 10:11:40 +0000 (11:11 +0100)] 
Add a checklist for handling security issues

5 years agoMerge branch 'v9_17_10-release' into 'main'
Michał Kępień [Wed, 17 Feb 2021 21:29:03 +0000 (21:29 +0000)] 
Merge branch 'v9_17_10-release' into 'main'

Merge 9.17.10 release branch

See merge request isc-projects/bind9!4699

5 years agoSet up release notes for BIND 9.17.11
Michał Kępień [Wed, 17 Feb 2021 21:25:26 +0000 (22:25 +0100)] 
Set up release notes for BIND 9.17.11

5 years agoUpdate BIND version to 9.17.10
Michał Kępień [Thu, 4 Feb 2021 09:50:11 +0000 (10:50 +0100)] 
Update BIND version to 9.17.10

5 years agoAdd a CHANGES marker
Michał Kępień [Thu, 4 Feb 2021 09:50:11 +0000 (10:50 +0100)] 
Add a CHANGES marker

5 years agoMerge branch 'michal/prepare-documentation-for-bind-9.17.10' into 'v9_17_10-release'
Michał Kępień [Thu, 4 Feb 2021 09:48:53 +0000 (09:48 +0000)] 
Merge branch 'michal/prepare-documentation-for-bind-9.17.10' into 'v9_17_10-release'

Prepare documentation for BIND 9.17.10

See merge request isc-private/bind9!237

5 years agoPrepare release notes for BIND 9.17.10
Michał Kępień [Thu, 4 Feb 2021 09:40:25 +0000 (10:40 +0100)] 
Prepare release notes for BIND 9.17.10

5 years agoAdd release note for GL #2073
Michał Kępień [Thu, 4 Feb 2021 09:40:25 +0000 (10:40 +0100)] 
Add release note for GL #2073

5 years agoReorder release notes
Michał Kępień [Thu, 4 Feb 2021 09:40:25 +0000 (10:40 +0100)] 
Reorder release notes

5 years agoTweak and reword release notes
Michał Kępień [Thu, 4 Feb 2021 09:40:25 +0000 (10:40 +0100)] 
Tweak and reword release notes

5 years agoTweak and reword recent CHANGES entries
Michał Kępień [Thu, 4 Feb 2021 09:40:25 +0000 (10:40 +0100)] 
Tweak and reword recent CHANGES entries

5 years agoUse :rfc:`<number>` references in release notes
Michał Kępień [Thu, 4 Feb 2021 09:40:25 +0000 (10:40 +0100)] 
Use :rfc:`<number>` references in release notes

5 years agoDocument the build-time requirement for nghttp2
Michał Kępień [Thu, 4 Feb 2021 09:40:25 +0000 (10:40 +0100)] 
Document the build-time requirement for nghttp2

5 years agoMerge branch 'mnowak/system-test-check-for-file-not-removed' into 'main'
Michal Nowak [Wed, 17 Feb 2021 16:08:26 +0000 (16:08 +0000)] 
Merge branch 'mnowak/system-test-check-for-file-not-removed' into 'main'

Check for "file not removed" in system test output

See merge request isc-projects/bind9!4680

5 years agoPrevent Git to expand $systest
Michal Nowak [Tue, 16 Feb 2021 10:33:58 +0000 (11:33 +0100)] 
Prevent Git to expand $systest

CentOS 8 "git status" unexpectedly expands search directory "tsig" to
also search in the "tsiggss" directory, thus incorrectly identifying
files as "not removed" in the "tsig" directory:

$ git status -su --ignored tsig
$ touch tsiggss/ns1/{named.run,named.memstats}
$ git status -su --ignored tsig
!! tsiggss/ns1/named.memstats
!! tsiggss/ns1/named.run

5 years agoClean omitted files from system tests
Michal Nowak [Mon, 15 Feb 2021 11:48:54 +0000 (12:48 +0100)] 
Clean omitted files from system tests

Any CI job:
- I:dnssec:file dnssec/ns1/trusted.keys not removed
- I:rpzrecurse:file rpzrecurse/ns3/named.run.prev not removed

system:clang:freebsd11:amd64:
- I:tkey:file tkey/ns1/named.conf-e not removed

system:gcc:sid:amd64:
- I:mirror:file mirror/ns3/_default.nzf not removed

system:gcc:xenial:amd64:
- I:rpzextra:file rpzextra/.cache/v/cache/lastfailed not removed
- I:rpzrecurse:file rpzrecurse/ns3/named.run.prev not removed
- I:shutdown:file shutdown/.cache/v/cache/lastfailed not removed

5 years agoCopy testcrypto.sh to out-of-tree directory
Michal Nowak [Mon, 15 Feb 2021 12:31:37 +0000 (13:31 +0100)] 
Copy testcrypto.sh to out-of-tree directory

System tests run in out-of-tree directory fail to find testcrypto.sh and
produce:

    /bin/bash: ../testcrypto.sh: No such file or directory

5 years agoCheck for "file not removed" in system test output
Michal Nowak [Mon, 15 Feb 2021 10:59:33 +0000 (11:59 +0100)] 
Check for "file not removed" in system test output

Run this check only when in Git repository, because the run.sh function
which produces the "file not removed" warning is run only when build
directory is the same as the source directory, that is only for in-tree
builds.

5 years agoAdd system test name to "file not removed" info
Michal Nowak [Mon, 15 Feb 2021 11:03:52 +0000 (12:03 +0100)] 
Add system test name to "file not removed" info

5 years agoMerge branch 'mnowak/enable-dh-unit-test-to-run-under-pkcs11' into 'main'
Michal Nowak [Wed, 17 Feb 2021 11:44:39 +0000 (11:44 +0000)] 
Merge branch 'mnowak/enable-dh-unit-test-to-run-under-pkcs11' into 'main'

Drop USE_OPENSSL constraint from dh_test

See merge request isc-projects/bind9!4621

5 years agoDrop USE_OPENSSL constraint from dh_test
Michal Nowak [Tue, 26 Jan 2021 17:01:41 +0000 (18:01 +0100)] 
Drop USE_OPENSSL constraint from dh_test

The USE_OPENSSL constraint in dh_test does not seems to be necessary
anymore, the test runs with PKCS#11 as well.

5 years agoMerge branch '2487-rollback-setting-dontfrag-option' into 'main'
Ondřej Surý [Wed, 17 Feb 2021 08:02:08 +0000 (08:02 +0000)] 
Merge branch '2487-rollback-setting-dontfrag-option' into 'main'

Rollback setting IP_DONTFRAG option on the UDP sockets

Closes #2466 and #2487

See merge request isc-projects/bind9!4668

5 years agoAdd CHANGES and release notes for GL #2487
Ondřej Surý [Thu, 11 Feb 2021 07:43:51 +0000 (08:43 +0100)] 
Add CHANGES and release notes for GL #2487

5 years agoRollback setting IP_DONTFRAG option on the UDP sockets
Ondřej Surý [Thu, 11 Feb 2021 07:37:52 +0000 (08:37 +0100)] 
Rollback setting IP_DONTFRAG option on the UDP sockets

In DNS Flag Day 2020, the development branch started setting the
IP_DONTFRAG option on the UDP sockets.  It turned out, that this
code was incomplete leading to dropping the outgoing UDP packets.
Henceforth this commit rolls back this setting until we have a
proper fix that would send back empty response with TC flag set.

5 years agoMerge branch 'each-note-cleanup' into 'main'
Evan Hunt [Wed, 17 Feb 2021 00:59:01 +0000 (00:59 +0000)] 
Merge branch 'each-note-cleanup' into 'main'

some release note corrections

See merge request isc-projects/bind9!4690

5 years agosome release note corrections
Evan Hunt [Tue, 16 Feb 2021 22:28:05 +0000 (14:28 -0800)] 
some release note corrections

5 years agoMerge branch '2472-tls-none' into 'main'
Evan Hunt [Wed, 17 Feb 2021 00:55:33 +0000 (00:55 +0000)] 
Merge branch '2472-tls-none' into 'main'

Resolve "too easy to configure unencrypted DoH"

Closes #2472

See merge request isc-projects/bind9!4653

5 years agoCHANGES
Evan Hunt [Wed, 3 Feb 2021 21:21:04 +0000 (13:21 -0800)] 
CHANGES

5 years agoallow configuration of "default" http endpoint
Evan Hunt [Sat, 13 Feb 2021 02:17:09 +0000 (18:17 -0800)] 
allow configuration of "default" http endpoint

specifying "http default" in a listen-on statement sets up
the default "/dns-query" endpoint. tests and documentation
have been updated.

5 years agomove listen-on correctness checks into check.c
Evan Hunt [Wed, 3 Feb 2021 21:13:41 +0000 (13:13 -0800)] 
move listen-on correctness checks into check.c

errors in listen-on and listen-on-v6 can now be detected
by named-checkconf.

5 years agoenable listen-on parameters to be specified in any order
Evan Hunt [Wed, 3 Feb 2021 19:36:33 +0000 (11:36 -0800)] 
enable listen-on parameters to be specified in any order

updated the parser to allow the "port", "tls" and "http"
paramters to "listen-on" and "listen-on-v6" to be specified in any
order. previously the parser would throw an error if any other order
was used than port, tls, http.

5 years agorequire "tls none" for unencrypted HTTP listeners
Evan Hunt [Wed, 3 Feb 2021 18:58:46 +0000 (10:58 -0800)] 
require "tls none" for unencrypted HTTP listeners

unencrypted DoH connections may be used in some operational
environments where encryption is handled by a reverse proxy,
but it's going to be relatively rare, so we shouldn't make it
easy to do by mistake.  this commit changes the syntax for
listen-on and listen-on-v6 so that if "http" is specified, "tls"
must also be specified; for unencrypted listeners, "tls none"
can be used.

5 years agoMerge branch '2402-bind-9-16-11-build-fails-with-static-openssl-library' into 'main'
Mark Andrews [Tue, 16 Feb 2021 23:29:53 +0000 (23:29 +0000)] 
Merge branch '2402-bind-9-16-11-build-fails-with-static-openssl-library' into 'main'

Resolve "BIND 9.16.11 build fails with static OpenSSL library"

Closes #2402

See merge request isc-projects/bind9!4591

5 years agoAdd CHANGES for [GL #2402]
Mark Andrews [Fri, 22 Jan 2021 05:04:33 +0000 (16:04 +1100)] 
Add CHANGES for [GL #2402]

5 years agoFix linking order for OpenSSL libraries
Mark Andrews [Fri, 22 Jan 2021 04:59:03 +0000 (15:59 +1100)] 
Fix linking order for OpenSSL libraries

As libssl depends on libcrypto, -lssl needs to precede -lcrypto in
linker invocations or else the build will fail with static OpenSSL
libraries.  Adjust m4/ax_check_openssl.m4 to prevent this issue from
getting triggered when pkg-config files for OpenSSL are not available.

5 years agoMerge branch '2484-nghttp2-version' into 'main'
Evan Hunt [Tue, 16 Feb 2021 22:45:52 +0000 (22:45 +0000)] 
Merge branch '2484-nghttp2-version' into 'main'

report libnghttp2 version in 'named -V'

Closes #2484

See merge request isc-projects/bind9!4689

5 years agoreport libnghttp2 version in 'named -V'
Evan Hunt [Tue, 16 Feb 2021 22:13:18 +0000 (14:13 -0800)] 
report libnghttp2 version in 'named -V'

add lines indicating the versions of the nghttp2 library
against which named was compiled and to which it is linked.

5 years agoMerge branch 'mnowak/consistent-use-of-SKIPPED_TEST_EXIT_CODE' into 'main'
Michal Nowak [Tue, 16 Feb 2021 13:56:18 +0000 (13:56 +0000)] 
Merge branch 'mnowak/consistent-use-of-SKIPPED_TEST_EXIT_CODE' into 'main'

Use SKIPPED_TEST_EXIT_CODE consistently in unit tests

See merge request isc-projects/bind9!4685

5 years agoUse SKIPPED_TEST_EXIT_CODE consistently
Michal Nowak [Mon, 15 Feb 2021 16:20:50 +0000 (17:20 +0100)] 
Use SKIPPED_TEST_EXIT_CODE consistently

Commit fa505bfb0e7623d7cfc94ae15a0246ae71000904 omitted two unit tests
while introducing the SKIP_TEST_EXIT_CODE preprocessor macro.  Fix the
outliers to make use of SKIP_TEST_EXIT_CODE consistent across all unit
tests.  Also make sure lib/dns/tests/dnstap_test returns an exit code
that indicates a skipped test when dnstap is not enabled.

5 years agoMerge branch '2357-cleanup-public-headers' into 'main'
Ondřej Surý [Tue, 16 Feb 2021 12:17:30 +0000 (12:17 +0000)] 
Merge branch '2357-cleanup-public-headers' into 'main'

Resolve "Cannot compile current versions on macOS "Catalina""

Closes #2357

See merge request isc-projects/bind9!4670

5 years agoStop including gssapi.h from dst/gssapi.h header
Ondřej Surý [Thu, 11 Feb 2021 13:40:59 +0000 (14:40 +0100)] 
Stop including gssapi.h from dst/gssapi.h header

The only reason for including the gssapi.h from the dst/gssapi.h header
was to get the typedefs of gss_cred_id_t and gss_ctx_id_t.  Instead of
using those types directly this commit introduces dns_gss_cred_id_t and
dns_gss_ctx_id_t types that are being used in the public API and
privately retyped to their counterparts when we actually call the gss
api.

This also conceals the gssapi headers, so users of the libdns library
doesn't have to add GSSAPI_CFLAGS to the Makefile when including libdns
dst API.

5 years agoStop including dnstap headers from <dns/dnstap.h>
Ondřej Surý [Thu, 11 Feb 2021 13:25:58 +0000 (14:25 +0100)] 
Stop including dnstap headers from <dns/dnstap.h>

The <fstrm.h> and <protobuf-c/protobuf-c.h> headers are only directly
included where used and we stopped exposing those headers from libdns
headers.

5 years agoStop including lmdb.h from <dns/view.h>
Ondřej Surý [Thu, 11 Feb 2021 13:15:38 +0000 (14:15 +0100)] 
Stop including lmdb.h from <dns/view.h>

The lmdb.h doesn't have to be included from the dns/view.h header as it
is separately included where used.  This stops exposing the inclusion of
lmdb.h from the libdns headers.

5 years agoMove the <isc/readline.h> header to bin/dig/readline.h
Ondřej Surý [Thu, 11 Feb 2021 13:13:27 +0000 (14:13 +0100)] 
Move the <isc/readline.h> header to bin/dig/readline.h

The <isc/readline.h> header provided a compatibility shim to use when
other non-GNU readline libraries are in use.  The two places where
readline library is being used is nslookup and nsupdate, so the header
file has been moved to bin/dig directory and it's directly included from
bin/nsupdate.

This also conceals any readline headers exposed from the libisc headers.

5 years agoRemove the extra CFLAGS from libisc_CFLAGS and libdns_CFLAGS
Ondřej Surý [Thu, 11 Feb 2021 13:07:26 +0000 (14:07 +0100)] 
Remove the extra CFLAGS from libisc_CFLAGS and libdns_CFLAGS

The extra library CFLAGS were causing the headers to be included in
wrong order possibly pulling header files from previously installed
BIND 9 version.

This commit cleans up the extra <foo>_CFLAGS from the includes in favor
of not exposing 3rd party headers in our own header files.

5 years agoMerge branch '2041-bug-reconfig-auto-dnssec-high-thread-number-leak-resources-and...
Diego dos Santos Fronza [Mon, 15 Feb 2021 18:12:17 +0000 (18:12 +0000)] 
Merge branch '2041-bug-reconfig-auto-dnssec-high-thread-number-leak-resources-and-crash-named' into 'main'

Resolve "BUG reconfig+auto-dnssec+high thread number leak resources and crash named"

Closes #2041

See merge request isc-projects/bind9!4669

5 years agoAdd CHANGES note for [GL #2041]
Diego Fronza [Thu, 11 Feb 2021 15:22:00 +0000 (12:22 -0300)] 
Add CHANGES note for [GL #2041]

5 years agoTest reconfig after adding inline signed zones won't crash named
Diego Fronza [Fri, 12 Feb 2021 19:53:34 +0000 (16:53 -0300)] 
Test reconfig after adding inline signed zones won't crash named

This test ensures that named won't crash after many inline-signed zones
are added to configurarion, followed by a rndc reconfig.

5 years agoFix dangling references to outdated views after reconfig
Diego Fronza [Thu, 11 Feb 2021 14:32:20 +0000 (11:32 -0300)] 
Fix dangling references to outdated views after reconfig

This commit fix a leak which was happening every time an inline-signed
zone was added to the configuration, followed by a rndc reconfig.

During the reconfig process, the secure version of every inline-signed
zone was "moved" to a new view upon a reconfig and it "took the raw
version along", but only once the secure version was freed (at shutdown)
was prev_view for the raw version detached from, causing the old view to
be released as well.

This caused dangling references to be kept for the previous view, thus
keeping all resources used by that view in memory.

5 years agoMerge branch 'mnowak/merge-skipped-and-untested-system-test-results' into 'main'
Michal Nowak [Mon, 15 Feb 2021 11:52:46 +0000 (11:52 +0000)] 
Merge branch 'mnowak/merge-skipped-and-untested-system-test-results' into 'main'

Merge UNTESTED and SKIPPED system test results

See merge request isc-projects/bind9!4517

5 years agoAdd CHANGES note for [GL !4517]
Michal Nowak [Wed, 30 Dec 2020 13:15:23 +0000 (14:15 +0100)] 
Add CHANGES note for [GL !4517]

5 years agoDo not build geoip_test when GeoIP is not available
Michal Nowak [Fri, 12 Feb 2021 17:19:01 +0000 (18:19 +0100)] 
Do not build geoip_test when GeoIP is not available

5 years agoRecord skipped unit test as skipped in Automake framework
Michal Nowak [Mon, 18 Jan 2021 18:15:44 +0000 (19:15 +0100)] 
Record skipped unit test as skipped in Automake framework