]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
5 years agoDon't detach self until we're closing wpk-netmgr-refcount
Witold Kręcicki [Tue, 9 Jun 2020 21:26:22 +0000 (23:26 +0200)] 
Don't detach self until we're closing

5 years agoWiP: different refcounting, backtraces
Witold Kręcicki [Tue, 9 Jun 2020 20:04:31 +0000 (22:04 +0200)] 
WiP: different refcounting, backtraces

5 years agoDROP: lots of printfs
Evan Hunt [Sun, 7 Jun 2020 23:20:41 +0000 (16:20 -0700)] 
DROP: lots of printfs

5 years agouse accept_cb field for the accept callback
Evan Hunt [Sun, 7 Jun 2020 23:19:09 +0000 (16:19 -0700)] 
use accept_cb field for the accept callback

5 years agomodify reference counting within netmgr
Evan Hunt [Fri, 5 Jun 2020 06:13:54 +0000 (23:13 -0700)] 
modify reference counting within netmgr

- isc__nmhandle_get() now attaches to the sock in the nmhandle object.
  the caller is responsible for dereferencing the original socket
  pointer when necessary.
- tcpdns listener sockets attach sock->outer to the outer tcp listener
  socket. tcpdns connected sockets attach sock->outerhandle to the handle
  for the tcp connected socket.
- only listener sockets need to be attached/detached directly. connected
  sockets should only be accessed and reference-counted via their
  associated handles.

5 years agomake isc_nmsocket_{attach,detach}{} functions private
Evan Hunt [Thu, 4 Jun 2020 21:54:36 +0000 (14:54 -0700)] 
make isc_nmsocket_{attach,detach}{} functions private

there is no need for a caller to reference-count socket objects.
they need tto be able tto close listener sockets (i.e., those
returned by isc_nm_listen{udp,tcp,tcpdns}), and an isc_nmsocket_close()
function has been added for that. other sockets are only accessed via
handles.

5 years agoMerge branch 'ondrej/switch-the-default-branch-name-to-main' into 'main'
Ondřej Surý [Wed, 17 Jun 2020 12:12:07 +0000 (12:12 +0000)] 
Merge branch 'ondrej/switch-the-default-branch-name-to-main' into 'main'

Adjust the GitLab CI scripts for new default branch name

See merge request isc-projects/bind9!3706

5 years agoAdjust the GitLab CI scripts for new default branch name
Ondřej Surý [Wed, 17 Jun 2020 11:33:31 +0000 (13:33 +0200)] 
Adjust the GitLab CI scripts for new default branch name

5 years agoMerge branch '1950-placeholder' into 'master'
Ondřej Surý [Wed, 17 Jun 2020 10:40:25 +0000 (10:40 +0000)] 
Merge branch '1950-placeholder' into 'master'

Add CHANGES placeholder for #1950

Closes #1950

See merge request isc-projects/bind9!3705

5 years agoAdd CHANGES placeholder for #1950
Ondřej Surý [Wed, 17 Jun 2020 10:39:05 +0000 (12:39 +0200)] 
Add CHANGES placeholder for #1950

5 years agoMerge branch '1943-remove-references-to-blacklist-and-whitelist-in-bind-arm' into...
Ondřej Surý [Tue, 16 Jun 2020 19:57:41 +0000 (19:57 +0000)] 
Merge branch '1943-remove-references-to-blacklist-and-whitelist-in-bind-arm' into 'master'

Resolve "Remove references to "blacklist" and "whitelist" in BIND ARM"

Closes #1943

See merge request isc-projects/bind9!3693

5 years agoUpdate logging-categories.rst and reference.rst
Suzanne Goldlust [Mon, 15 Jun 2020 17:01:37 +0000 (17:01 +0000)] 
Update logging-categories.rst and reference.rst
Remove references to "blacklist" and "whitelist"

5 years agoMerge branch '1932-text-corrections-in-readme-md' into 'master'
Ondřej Surý [Tue, 16 Jun 2020 19:35:44 +0000 (19:35 +0000)] 
Merge branch '1932-text-corrections-in-readme-md' into 'master'

Resolve "Text corrections in README.md"

Closes #1932

See merge request isc-projects/bind9!3686

5 years agoVarious text edits and corrections to README.md
Suzanne Goldlust [Tue, 16 Jun 2020 19:35:44 +0000 (19:35 +0000)] 
Various text edits and corrections to README.md

5 years agoMerge branch '1931-fix-out-of-order-rfcs-in-general-rst-file-of-bind-arm' into 'master'
Ondřej Surý [Tue, 16 Jun 2020 19:30:44 +0000 (19:30 +0000)] 
Merge branch '1931-fix-out-of-order-rfcs-in-general-rst-file-of-bind-arm' into 'master'

Resolve "Fix out-of-order RFCs in general.rst file of BIND ARM"

Closes #1931

See merge request isc-projects/bind9!3685

5 years agoFix two RFCs that were out of numerical order
Suzanne Goldlust [Wed, 10 Jun 2020 19:15:52 +0000 (19:15 +0000)] 
Fix two RFCs that were out of numerical order

5 years agoMerge branch '1945-system-clang-tsan-has-bad-symbolizer' into 'master'
Ondřej Surý [Tue, 16 Jun 2020 08:49:08 +0000 (08:49 +0000)] 
Merge branch '1945-system-clang-tsan-has-bad-symbolizer' into 'master'

Set the TSAN symbolizer path directly, the indirection via env doesn't work

Closes #1945

See merge request isc-projects/bind9!3696

5 years agoSet the TSAN symbolizer path directly, the indirection via env doesn't work
Ondřej Surý [Tue, 16 Jun 2020 07:58:49 +0000 (09:58 +0200)] 
Set the TSAN symbolizer path directly, the indirection via env doesn't work

5 years agoMerge branch '1474-threadsanitizer-data-race-lib-dns-message-c' into 'master'
Ondřej Surý [Tue, 16 Jun 2020 06:57:21 +0000 (06:57 +0000)] 
Merge branch '1474-threadsanitizer-data-race-lib-dns-message-c' into 'master'

Add missing acquire memory barrier in isc_nmhandle_unref

Closes #1474

See merge request isc-projects/bind9!3689

5 years agoAdd missing acquire memory barrier in isc_nmhandle_unref
Ondřej Surý [Thu, 11 Jun 2020 11:01:26 +0000 (13:01 +0200)] 
Add missing acquire memory barrier in isc_nmhandle_unref

The ThreadSanitizer uses system synchronization primitives to check for
data race.  The netmgr handle->references was missing acquire memory
barrier before resetting and reusing the memory occupied by isc_nmhandle_t.

5 years agoMerge branch 'marka-dsset-refs' into 'master'
Mark Andrews [Thu, 11 Jun 2020 06:07:21 +0000 (06:07 +0000)] 
Merge branch 'marka-dsset-refs' into 'master'

The dsset returned by dns_keynode_dsset() was not thread safe

Closes #1926

See merge request isc-projects/bind9!3687

5 years agoAdd release note for [GL #1926]
Mark Andrews [Thu, 11 Jun 2020 03:10:10 +0000 (13:10 +1000)] 
Add release note for [GL #1926]

5 years agoAdd CHANGES note [GL #1926]
Mark Andrews [Thu, 11 Jun 2020 03:08:07 +0000 (13:08 +1000)] 
Add CHANGES note [GL #1926]

5 years agoval->keynode is no longer needed
Mark Andrews [Thu, 11 Jun 2020 05:01:12 +0000 (15:01 +1000)] 
val->keynode is no longer needed

5 years agoThe dsset returned by dns_keynode_dsset needs to be thread safe.
Mark Andrews [Wed, 10 Jun 2020 07:07:52 +0000 (17:07 +1000)] 
The dsset returned by dns_keynode_dsset needs to be thread safe.

- clone keynode->dsset rather than return a pointer so that thread
  use is independent of each other.
- hold a reference to the dsset (keynode) so it can't be deleted
  while in use.
- create a new keynode when removing DS records so that dangling
  pointers to the deleted records will not occur.
- use a rwlock when accessing the rdatalist to prevent instabilities
  when DS records are added.

5 years agoMerge branch '1930-tcp-race-quota' into 'master'
Evan Hunt [Wed, 10 Jun 2020 18:49:33 +0000 (18:49 +0000)] 
Merge branch '1930-tcp-race-quota' into 'master'

Fix a race in TCP accepting.

Closes #1930

See merge request isc-projects/bind9!3683

5 years agoFix a race in TCP accepting.
Witold Kręcicki [Wed, 10 Jun 2020 14:19:16 +0000 (16:19 +0200)] 
Fix a race in TCP accepting.

There's a possibility of a race in TCP accepting code:
T1 accepts a connection C1
T2 accepts a connection C2
T1 tries to accept a connection C3, but we hit a quota,
   isc_quota_cb_init() sets quota_accept_cb for the socket,
   we return from accept_connection
T2 drops C2, but we race in quota_release with accepting C3 so
   we don't see quota->waiting is > 0, we don't launch the callback
T1 accepts a connection C4, we are able to get the quota we clear
   the quota_accept_cb from sock->quotacb
T1 drops C1, tries to call the callback which is zeroed, sigsegv.

5 years agoDon't clean quota cb cb_func/data, we don't own it
Witold Kręcicki [Wed, 10 Jun 2020 15:51:27 +0000 (17:51 +0200)] 
Don't clean quota cb cb_func/data, we don't own it

5 years agoMerge branch '1867-fix-system-tests-on-windows' into 'master'
Michał Kępień [Tue, 9 Jun 2020 13:38:39 +0000 (13:38 +0000)] 
Merge branch '1867-fix-system-tests-on-windows' into 'master'

Fix system tests on Windows

Closes #1867

See merge request isc-projects/bind9!3680

5 years agoDisable temporarily unsupported tests on Windows
Michał Kępień [Tue, 9 Jun 2020 13:35:54 +0000 (15:35 +0200)] 
Disable temporarily unsupported tests on Windows

Due to the changes introduced by the Automake migration, system tests
requiring Python (chain, pipelined, qmin, tcp), dynamic loading of
shared objects (dlzexternal, dyndb, filter-aaaa), or LMDB (nzd2nzf)
currently do not work on Windows.  Temporarily disable them on that
platform by moving them from the PARALLEL_COMMON list to the
PARALLEL_UNIX list until the situation is rectified.

5 years agoFix SYSTEMTESTTOP on Windows
Michał Kępień [Tue, 9 Jun 2020 13:35:54 +0000 (15:35 +0200)] 
Fix SYSTEMTESTTOP on Windows

Without SYSTEMTESTTOP=.. lines in tests.sh scripts, SYSTEMTESTTOP is
being set to an absolute path.  On Windows, this means that an absolute
Cygwin path gets passed as a command line argument to native Windows
binaries, which cannot work and causes system tests to break.  Fix by
passing SYSTEMTESTTOP through cygpath on Windows, which causes that
variable to be set to an absolute "mixed mode" path (Windows path with
forward slashes).

5 years agoMerge branch '1921-gitlab-ci-release-process-fixes' into 'master'
Michał Kępień [Tue, 9 Jun 2020 12:51:05 +0000 (12:51 +0000)] 
Merge branch '1921-gitlab-ci-release-process-fixes' into 'master'

GitLab CI release process fixes

Closes #1921

See merge request isc-projects/bind9!3670

5 years agoRestore GitLab CI job building release tarballs
Michał Kępień [Tue, 9 Jun 2020 12:47:06 +0000 (14:47 +0200)] 
Restore GitLab CI job building release tarballs

With "make dist" producing usable source tarballs and documentation
building working again, restore the script which allows a release
tarball to be built by a GitLab CI job, only making minimal adjustments
required due to the changes in the documentation building process and
due to dropping the "version" file.

5 years agoMake Sphinx output document naming consistent
Michał Kępień [Tue, 9 Jun 2020 12:47:06 +0000 (14:47 +0200)] 
Make Sphinx output document naming consistent

Ensure the name of the EPUB file produced by Sphinx is consistent with
the name of its PDF counterpart by adjusting Sphinx configuration.

5 years agoFix respdiff job in GitLab CI
Michał Kępień [Tue, 9 Jun 2020 12:47:06 +0000 (14:47 +0200)] 
Fix respdiff job in GitLab CI

As the "configure" script is no longer stored in the Git repository, run
"autoreconf -fi" at the beginning of the respdiff job in GitLab CI in
order to enable that job to work properly.

5 years agoFix source tarball creation job in GitLab CI
Michał Kępień [Tue, 9 Jun 2020 12:47:06 +0000 (14:47 +0200)] 
Fix source tarball creation job in GitLab CI

For the time being, "make all" needs to be run before "make dist" can
succeed as parts of the documentation are generated by programs compiled
during the regular build process.

As only one source tarball is published for each BIND release, make sure
the tarball creation job in GitLab CI only contains one tarball in the
desired format among its artifacts.

Drop the TARBALL_COMPRESSOR .gitlab-ci.yml variable as it is no longer
used in the source tarball creation process.

5 years agoRevise "srcid" file handling
Michał Kępień [Tue, 9 Jun 2020 12:47:06 +0000 (14:47 +0200)] 
Revise "srcid" file handling

The "srcid" file present in each BIND source tarball contains a
shortened hash of the Git commit corresponding to a given BIND release.
This allows a Git reference to be included in an archive that otherwise
lacks any Git information.

Before the move to Automake, if an "srcid" file was present in the root
source directory at the time ./configure was run, its contents were used
as the value of a compile-time constant which was then baked into BIND
binaries; otherwise, "git rev-parse" was used to determine the value of
that constant.

With Automake, a similar approach was attempted that required the
"srcid" file to be present at autoreconf time in order for it to be
used.  However, note that this means that even if that file is present
in a source tarball created using "make dist", its contents are not
going to influence the value of the aforementioned compile-time constant
because autoreconf hardcodes the output of "git rev-parse" into the
configure script at autoreconf time.

To make things more clear, always use "git rev-parse" for determining
the value of the PACKAGE_SRCID compile-time constant when running
autoreconf.  This causes "srcid" to be an empty string in source
tarballs built from other source tarballs, but that is not deemed to be
much of an issue as "make dist" is expected to be run from Git
repository clones.  Remove stderr redirections to /dev/null to ensure
errors caused e.g. by running "make dist" from outside a Git repository
clone are not hidden.  Trim the Git commit hash to 7 characters for
consistency between Unix and Windows systems.

Despite the above, ensure the "srcid" file is present in source tarballs
created using "make dist" as that file is used by the build process on
Windows.

5 years agoMerge branch '1808-race-in-resolver-fetch-fix-restore-client' into 'master'
Ondřej Surý [Sat, 6 Jun 2020 05:02:12 +0000 (05:02 +0000)] 
Merge branch '1808-race-in-resolver-fetch-fix-restore-client' into 'master'

ensure fctx->clientstr is null-terminated

Closes #1808

See merge request isc-projects/bind9!3675

5 years agoensure clientstr is null-terminated
Evan Hunt [Sat, 6 Jun 2020 01:55:22 +0000 (18:55 -0700)] 
ensure clientstr is null-terminated

5 years agoMerge branch '1842-correct-the-bind-arm-to-say-that-the-default-session-key-for-use...
Ondřej Surý [Fri, 5 Jun 2020 14:35:05 +0000 (14:35 +0000)] 
Merge branch '1842-correct-the-bind-arm-to-say-that-the-default-session-key-for-use-with-update-policy-local-is' into 'master'

Resolve "Correct the BIND ARM to say that the default session-key for use with 'update-policy local;' is generated at startup"

Closes #1842

See merge request isc-projects/bind9!3664

5 years agoEdit reference.rst to indicate that the TSIG
Suzanne Goldlust [Thu, 4 Jun 2020 18:06:11 +0000 (18:06 +0000)] 
Edit reference.rst to indicate that the TSIG
session key is automatically created on startup

5 years agoMerge branch '1808-race-in-resolver-fetch' into 'master'
Ondřej Surý [Fri, 5 Jun 2020 14:21:12 +0000 (14:21 +0000)] 
Merge branch '1808-race-in-resolver-fetch' into 'master'

Fix a data access race in resolver.

Closes #1912 and #1808

See merge request isc-projects/bind9!3575

5 years agoAdd release note for #1808
Ondřej Surý [Fri, 5 Jun 2020 10:08:13 +0000 (12:08 +0200)] 
Add release note for #1808

5 years agoAdd CHANGES entry for #1808
Witold Kręcicki [Thu, 21 May 2020 12:31:09 +0000 (14:31 +0200)] 
Add CHANGES entry for #1808

5 years agoFix a data access race in resolver
Witold Kręcicki [Thu, 21 May 2020 12:31:09 +0000 (14:31 +0200)] 
Fix a data access race in resolver

We were passing client address to dns_resolver_createfetch as a pointer
and it was saved as a pointer. The client (with its address) could be
gone before the fetch is finished, and in a very odd scenario
log_formerr would call isc_sockaddr_format() which first checks if the
address family is valid (and at this point it still is), then the
sockaddr is cleared, and then isc_netaddr_fromsockaddr is called which
fails an assertion as the address family is now invalid.

5 years agoMerge branch 'mnowak/1769-ensure-all-necessary-files-are-included-in-the-tarball...
Michał Kępień [Fri, 5 Jun 2020 11:48:55 +0000 (11:48 +0000)] 
Merge branch 'mnowak/1769-ensure-all-necessary-files-are-included-in-the-tarball-produced-by-make-dist' into 'master'

Fix 'make dist'

Closes #1769

See merge request isc-projects/bind9!3527

5 years agoFix "make dist"
Michal Nowak [Thu, 4 Jun 2020 17:02:27 +0000 (19:02 +0200)] 
Fix "make dist"

Make various adjustments necessary to enable "make dist" to build a BIND
source tarball whose contents are complete enough to build binaries, run
unit & system tests, and generate documentation on Unix systems.

Known outstanding issues:

  - "make distcheck" does not work yet.
  - Tests do not work for out-of-tree source-tarball-based builds.
  - Source tarballs are not complete enough for building on Windows.

All of the above will be addressed in due course.

5 years agoGet rid of "helper" *.c files
Michal Nowak [Thu, 4 Jun 2020 16:53:47 +0000 (18:53 +0200)] 
Get rid of "helper" *.c files

Merge lib/isc/unix/ifiter_getifaddrs.c into lib/isc/unix/interfaceiter.c
and lib/isc/xoshiro128starstar.c into lib/isc/random.c.  This avoids the
need for extra Automake directives required to process the "helper" *.c
files properly and makes the code more localized.

5 years agoRefactor lib/isc/fsaccess.c
Michał Kępień [Fri, 5 Jun 2020 11:19:49 +0000 (13:19 +0200)] 
Refactor lib/isc/fsaccess.c

Turn the static check_bad_bits() function used by both Unix and Windows
systems into a "private" function and extract the "private" parts of
lib/isc/fsaccess.c to lib/isc/fsaccess_common_p.h.  Instead of including
lib/isc/fsaccess.c from lib/isc/{unix,win32}/fsaccess.c, make the former
an independent C source file.

Rename lib/isc/fsaccess.c to lib/isc/fsaccess_common.c to prevent build
issues on Windows caused by multiple source files (lib/isc/fsaccess.c,
lib/isc/win32/fsaccess.c) being compiled into the same object file.

These changes improve consistency with the way "private" functions and
macros are treated elsewhere in the source tree.

5 years agoMerge branch 'marka-placeholder' into 'master'
Mark Andrews [Fri, 5 Jun 2020 05:02:23 +0000 (05:02 +0000)] 
Merge branch 'marka-placeholder' into 'master'

placeholder

See merge request isc-projects/bind9!3668

5 years agoplaceholder
Mark Andrews [Fri, 5 Jun 2020 04:58:51 +0000 (14:58 +1000)] 
placeholder

5 years agoMerge branch 'marka-placeholder' into 'master'
Mark Andrews [Fri, 5 Jun 2020 00:39:36 +0000 (00:39 +0000)] 
Merge branch 'marka-placeholder' into 'master'

Add placeholder for [GL #1873]

See merge request isc-projects/bind9!3665

5 years agoAdd placeholder for [GL #1873]
Mark Andrews [Fri, 5 Jun 2020 00:24:01 +0000 (10:24 +1000)] 
Add placeholder for [GL #1873]

5 years agoMerge branch '1835-add-yaml-for-ede' into 'master'
Mark Andrews [Fri, 5 Jun 2020 00:34:31 +0000 (00:34 +0000)] 
Merge branch '1835-add-yaml-for-ede' into 'master'

Resolve "Add the ability to parse and display Extended DNS Error code (EDE)."

Closes #1835

See merge request isc-projects/bind9!3531

5 years agoImprove the behaviour of yamlget.py when run with python2
Mark Andrews [Thu, 4 Jun 2020 22:43:17 +0000 (08:43 +1000)] 
Improve the behaviour of yamlget.py when run with python2

5 years agoAdd +yaml support for EDE
Mark Andrews [Wed, 13 May 2020 04:37:41 +0000 (14:37 +1000)] 
Add +yaml support for EDE

5 years agoMerge branch '1683-check-the-question-section-when-transferring-zones' into 'master'
Ondřej Surý [Thu, 4 Jun 2020 14:14:36 +0000 (14:14 +0000)] 
Merge branch '1683-check-the-question-section-when-transferring-zones' into 'master'

Resolve "Check the question section when transferring zones."

Closes #1683

See merge request isc-projects/bind9!3244

5 years agoAdd CHANGES entry and release note for #1683
Mark Andrews [Tue, 31 Mar 2020 06:27:32 +0000 (17:27 +1100)] 
Add CHANGES entry and release note for #1683

5 years agoAdd a test with an incorrect question in a continuation message
Evan Hunt [Mon, 30 Mar 2020 23:14:55 +0000 (16:14 -0700)] 
Add a test with an incorrect question in a continuation message

5 years agoVerify the question section when transfering in.
Mark Andrews [Tue, 17 Mar 2020 04:25:47 +0000 (15:25 +1100)] 
Verify the question section when transfering in.

There was a case where an primary server sent a response
on the wrong TCP connection and failure to check the question
section resulted in a truncated zone being served.

5 years agoMerge branch '1798-reject-master-zones-with-ds-records-at-the-apex' into 'master'
Ondřej Surý [Thu, 4 Jun 2020 14:01:14 +0000 (14:01 +0000)] 
Merge branch '1798-reject-master-zones-with-ds-records-at-the-apex' into 'master'

Resolve "Reject master zones with DS records at the apex."

Closes #1798

See merge request isc-projects/bind9!3435

5 years agoAdd release note for #1798
Mark Andrews [Tue, 28 Apr 2020 06:03:41 +0000 (16:03 +1000)] 
Add release note for #1798

5 years agoAdd CHANGES entry for #1798
Mark Andrews [Tue, 28 Apr 2020 06:02:00 +0000 (16:02 +1000)] 
Add CHANGES entry for #1798

5 years agoIgnore attempts to add DS records at zone apex
Mark Andrews [Wed, 6 May 2020 23:36:50 +0000 (09:36 +1000)] 
Ignore attempts to add DS records at zone apex

DS records belong in the parent zone at a zone cut and
are not retrievable with modern recursive servers.

5 years agoReject primary zones with an DS record at the zone apex.
Mark Andrews [Tue, 28 Apr 2020 05:37:19 +0000 (15:37 +1000)] 
Reject primary zones with an DS record at the zone apex.

DS records only belong at delegation points and if present
at the zone apex are invariably the result of administrative
errors.  Additionally they can't be queried for with modern
resolvers as the parent servers will be queried.

5 years agoMerge branch '1782-ipv6-docs' into 'master'
Ondřej Surý [Thu, 4 Jun 2020 13:53:17 +0000 (13:53 +0000)] 
Merge branch '1782-ipv6-docs' into 'master'

Documentation update wrt IPv6 listening.

Closes #1782

See merge request isc-projects/bind9!3642

5 years agoAdd release notes for #1782
Witold Kręcicki [Thu, 4 Jun 2020 08:10:21 +0000 (10:10 +0200)] 
Add release notes for #1782

5 years agoDocumentation update wrt IPv6 listening.
Witold Kręcicki [Wed, 3 Jun 2020 15:59:37 +0000 (17:59 +0200)] 
Documentation update wrt IPv6 listening.

With netmgr we're creating separate socket for each IPv6 interface,
just as with IPv4 - update documentation accordingly.

5 years agoMerge branch 'marka-pass-path-in-env' into 'master'
Ondřej Surý [Thu, 4 Jun 2020 13:45:41 +0000 (13:45 +0000)] 
Merge branch 'marka-pass-path-in-env' into 'master'

Preserve PATH when calling make

See merge request isc-projects/bind9!3605

5 years agoPreserve PATH and LD_LIBRARY_PATH when calling make
Mark Andrews [Fri, 29 May 2020 06:12:50 +0000 (16:12 +1000)] 
Preserve PATH and LD_LIBRARY_PATH when calling make

When ./run.sh <test> is invoked, it acts as a wrapper around
`env - TESTS="<test>" make -e check` to preserve the ability to build
files defined only in the `check` target.  Unfortunately, cleaning the
full environment had a side-effect of some tests failing due to missing
binaries and libraries.  We now preserve the two most important
variables - PATH and LD_LIBRARY_PATH.

5 years agoMerge branch '1902-bind-build-problems-on-netbsd-9' into 'master'
Michal Nowak [Thu, 4 Jun 2020 12:33:55 +0000 (12:33 +0000)] 
Merge branch '1902-bind-build-problems-on-netbsd-9' into 'master'

Fix "array subscript is of type 'char'"

Closes #1902

See merge request isc-projects/bind9!3626

5 years agoFix "array subscript is of type 'char'"
Michal Nowak [Tue, 2 Jun 2020 18:32:21 +0000 (20:32 +0200)] 
Fix "array subscript is of type 'char'"

5 years agoMerge branch '1841-test-multiple-softhsm-versions-in-gitlab-ci' into 'master'
Michał Kępień [Thu, 4 Jun 2020 12:12:40 +0000 (12:12 +0000)] 
Merge branch '1841-test-multiple-softhsm-versions-in-gitlab-ci' into 'master'

Test multiple SoftHSM versions in GitLab CI

Closes #1841

See merge request isc-projects/bind9!3533

5 years agoEmbed SoftHSM version in CI job names
Michał Kępień [Thu, 4 Jun 2020 12:11:46 +0000 (14:11 +0200)] 
Embed SoftHSM version in CI job names

To indicate the SoftHSM version used in each CI job while avoiding the
need to add another token to job names, replace "pkcs11" with
"softhsm2.4" and "fedora31:amd64" with "softhsm2.6".

5 years agoMake Fedora CI jobs PKCS#11-enabled
Michał Kępień [Thu, 4 Jun 2020 12:11:46 +0000 (14:11 +0200)] 
Make Fedora CI jobs PKCS#11-enabled

Various SoftHSM versions differ in algorithm support.  Since Fedora
tends to have the latest SoftHSM version available in its stock package
repositories, enable PKCS#11 support in Fedora jobs to test multiple
SoftHSM versions in GitLab CI.

5 years agoFix & unify Debian job comments in .gitlab-ci.yml
Michał Kępień [Thu, 4 Jun 2020 12:11:46 +0000 (14:11 +0200)] 
Fix & unify Debian job comments in .gitlab-ci.yml

5 years agoMerge branch '1877-reduce-default-for-max-stale-ttl-release-notes-update' into 'master'
Ondřej Surý [Thu, 4 Jun 2020 12:07:51 +0000 (12:07 +0000)] 
Merge branch '1877-reduce-default-for-max-stale-ttl-release-notes-update' into 'master'

Update release note for #1877

Closes #1877

See merge request isc-projects/bind9!3653

5 years agoUpdate release note for #1877
Ondřej Surý [Thu, 4 Jun 2020 10:47:10 +0000 (12:47 +0200)] 
Update release note for #1877

5 years agoMerge branch 'mnowak/sbindir' into 'master'
Michal Nowak [Thu, 4 Jun 2020 11:49:03 +0000 (11:49 +0000)] 
Merge branch 'mnowak/sbindir' into 'master'

Revise installation locations for BIND binaries

Closes #1724

See merge request isc-projects/bind9!3592

5 years agoAdd release note for #1724
Michal Nowak [Thu, 4 Jun 2020 10:47:57 +0000 (12:47 +0200)] 
Add release note for #1724

5 years agoAdd CHANGES for #1724
Michal Nowak [Wed, 3 Jun 2020 15:34:18 +0000 (17:34 +0200)] 
Add CHANGES for #1724

5 years agoRevise installation locations for BIND binaries
Michal Nowak [Fri, 22 May 2020 13:44:27 +0000 (15:44 +0200)] 
Revise installation locations for BIND binaries

Move BIND binaries which are neither daemons nor administrative programs
to $bindir.  This results in only the following binaries being left in
$sbindir:

  - ddns-confgen
  - named
  - rndc
  - rndc-confgen
  - tsig-confgen

5 years agoMerge branch '1726-unit-tests-rename-tests-to-something-more-descriptive' into 'master'
Michal Nowak [Thu, 4 Jun 2020 10:58:55 +0000 (10:58 +0000)] 
Merge branch '1726-unit-tests-rename-tests-to-something-more-descriptive' into 'master'

Associate unit test data dir with a more specific variable

Closes #1726

See merge request isc-projects/bind9!3624

5 years agoAssociate unit test data dir with a more specific variable
Michal Nowak [Tue, 2 Jun 2020 16:21:13 +0000 (18:21 +0200)] 
Associate unit test data dir with a more specific variable

Having 'TESTS', the Automake variable and 'TESTS' the unit test data dir
seems confusing, lets rename the latter to to 'TESTS_DIR'.

5 years agoMerge branch 'nsupdate-late-responses' into 'master'
Ondřej Surý [Thu, 4 Jun 2020 09:31:25 +0000 (09:31 +0000)] 
Merge branch 'nsupdate-late-responses' into 'master'

Delay kserver cleanup until all tasks finish

See merge request isc-projects/bind9!3316

5 years agoAdd CHANGES entry for !3316
Ondřej Surý [Thu, 4 Jun 2020 07:26:32 +0000 (09:26 +0200)] 
Add CHANGES entry for !3316

5 years agoDelay kserver cleanup until all tasks finishes
Petr Mensik [Fri, 27 Mar 2020 20:03:40 +0000 (21:03 +0100)] 
Delay kserver cleanup until all tasks finishes

It might be possible some pending task would run when kserver is already
cleaned up. Postpone gsstsig structures cleanup after task and timer
managers are destroyed. No pending threads are possible after it.

Make action in maybeshutdown only if doshutdown was not already called.
Might be called from getinput event.

5 years agoMerge branch '83-cleanup-how-we-build-release-notes' into 'master'
Ondřej Surý [Thu, 4 Jun 2020 09:21:23 +0000 (09:21 +0000)] 
Merge branch '83-cleanup-how-we-build-release-notes' into 'master'

Stop building release notes as a separate sphinx-doc document

Closes #83

See merge request isc-projects/bind9!3649

5 years agoStop building release notes as a separate sphinx-doc document
Ondřej Surý [Thu, 4 Jun 2020 09:09:27 +0000 (11:09 +0200)] 
Stop building release notes as a separate sphinx-doc document

The release notes were previously built as a separate document
(including the PDF version).  It was agreed that this doesn't make much
sense, so the release notes are now included only as an appendix to the
BIND 9 ARM.

5 years agoMerge branch '1914-remove-libdns-documentation' into 'master'
Ondřej Surý [Thu, 4 Jun 2020 08:55:12 +0000 (08:55 +0000)] 
Merge branch '1914-remove-libdns-documentation' into 'master'

Remove libdns section in ARM

Closes #1914

See merge request isc-projects/bind9!3646

5 years agoRemove libdns section in ARM
Ondřej Surý [Thu, 4 Jun 2020 06:52:59 +0000 (08:52 +0200)] 
Remove libdns section in ARM

When we made BIND 9 libraries private to BIND 9, we forgot to remove the
libdns section on "export" libraries from the ARM.

5 years agoMerge branch '1910-text-edits-in-general-rst' into 'master'
Ondřej Surý [Thu, 4 Jun 2020 06:44:23 +0000 (06:44 +0000)] 
Merge branch '1910-text-edits-in-general-rst' into 'master'

Resolve "Text edits in general.rst"

Closes #1910

See merge request isc-projects/bind9!3616

5 years agoContent, clarity, grammar updates to general.rst
Suzanne Goldlust [Mon, 1 Jun 2020 21:54:04 +0000 (21:54 +0000)] 
Content, clarity, grammar updates to general.rst

This includes reorganization of the lists of RFCs supported by BIND 9.

I included all the RFCs and notes from the list identified by Vicky in
any DNS-related RFCs written by current ISC engineers, on the assumption
that BIND would comply with them.

5 years agoMerge branch '1899-fix-tcp-accept-windows' into 'master'
Ondřej Surý [Wed, 3 Jun 2020 21:25:48 +0000 (21:25 +0000)] 
Merge branch '1899-fix-tcp-accept-windows' into 'master'

isc_uv_import wrapper must pass UV__IPC_SOCKET_XFER_TCP_CONNECTION, not SERVER

Closes #1899

See merge request isc-projects/bind9!3618

5 years agoisc_uv_import must pass UV__IPC_SOCKET_XFER_TCP_CONNECTION, not SERVER.
Witold Kręcicki [Tue, 2 Jun 2020 08:39:05 +0000 (10:39 +0200)] 
isc_uv_import must pass UV__IPC_SOCKET_XFER_TCP_CONNECTION, not SERVER.

As a leftover from old TCP accept code isc_uv_import passed TCP_SERVER
flag when importing a socket on Windows.
Since now we're importing/exporting accepted connections it needs to
pass TCP_CONNECTION flag.

6 years agoMerge branch 'michal/misc-danger-tweaks' into 'master'
Michał Kępień [Wed, 3 Jun 2020 13:50:41 +0000 (13:50 +0000)] 
Merge branch 'michal/misc-danger-tweaks' into 'master'

Miscellaneous Danger tweaks

Closes isc-private/bind9#27

See merge request isc-projects/bind9!3621

6 years agoOnly run Danger if DANGER_GITLAB_API_TOKEN is set
Michał Kępień [Wed, 3 Jun 2020 13:45:28 +0000 (15:45 +0200)] 
Only run Danger if DANGER_GITLAB_API_TOKEN is set

Prevent the Danger GitLab CI job from failing when the GitLab API key to
use is not set.

6 years agoPrevent invalid warnings about missing identifiers
Michał Kępień [Wed, 3 Jun 2020 13:45:28 +0000 (15:45 +0200)] 
Prevent invalid warnings about missing identifiers

The Danger script inspects differences between the current version of a
given merge request's target branch and the merge request branch.  If
the latter falls behind the former, the Danger script will wrongly warn
about missing GitLab/RT identifiers because it incorrectly treats the
"+++" diff marker as an indication of the merge request adding new lines
to a file.  Tweak the relevant conditional expression to prevent such
invalid warnings from being raised.

6 years agoMake fetching target branch reliable
Michał Kępień [Wed, 3 Jun 2020 13:45:28 +0000 (15:45 +0200)] 
Make fetching target branch reliable

As GitLab Runner Docker executor caches Git repositories between jobs,
prevent the Danger script from attempting to update local refs to ensure
"git fetch" returns with an exit code of 0.  Use the FETCH_HEAD ref for
determining the differences between the merge request branch and its
target branch.

6 years agoTweak condition for missing log message warning
Michał Kępień [Wed, 3 Jun 2020 13:45:28 +0000 (15:45 +0200)] 
Tweak condition for missing log message warning

Commits adding CHANGES entries and/or release notes do not need a commit
log message.  Do not warn about a missing commit log message for such
commits to make the warning more meaningful.