]>
git.ipfire.org Git - thirdparty/bind9.git/log
Witold Kręcicki [Sun, 24 Mar 2019 08:59:19 +0000 (09:59 +0100)]
Remove all cookie algorithms but AES, which was used as a default, for legacy purposes.
Ondřej Surý [Tue, 16 Jul 2019 16:55:01 +0000 (12:55 -0400)]
Merge branch 'ondrej/fix-leaked-memory-in-geoip_test.c' into 'master'
Fix leaked memory in geoip_test.c
See merge request isc-projects/bind9!2154
Ondřej Surý [Tue, 16 Jul 2019 13:28:20 +0000 (15:28 +0200)]
Fix the memory leaks in GeoIP unit test
Each individual test opened GeoIP databased but the database handles were never
closed. This commit moves the open/close from the individual unit tests into
the _setup and _teardown methods where they really belong.
Ondřej Surý [Fri, 12 Jul 2019 14:07:20 +0000 (10:07 -0400)]
Merge branch 'ondrej/remove-mutexatomics-tests' into 'master'
Disable the mutexatomics tests from the regular CI (we could enable them on...
See merge request isc-projects/bind9!2150
Ondřej Surý [Fri, 12 Jul 2019 14:01:01 +0000 (16:01 +0200)]
Disable the mutexatomics tests from the regular CI (we could enable them on trigger or schedule in the future)
Ondřej Surý [Fri, 12 Jul 2019 13:59:25 +0000 (09:59 -0400)]
Merge branch 'ondrej/add-memcpy.spatch-and-fix-check-cocci-script' into 'master'
Add memcpy.spatch and fixup check-cocci script
See merge request isc-projects/bind9!2149
Ondřej Surý [Fri, 12 Jul 2019 13:45:07 +0000 (15:45 +0200)]
Don't cover the .spatch files with copyright
Ondřej Surý [Fri, 12 Jul 2019 13:38:48 +0000 (15:38 +0200)]
Make util/check-cocci modify the files in place and be more verbose
Ondřej Surý [Fri, 12 Jul 2019 13:28:58 +0000 (15:28 +0200)]
Remove #include <config.h> usage from siphash.c and siphash_test.c
Ondřej Surý [Fri, 12 Jul 2019 13:28:00 +0000 (15:28 +0200)]
Replace the only memcpy usage with memmove
Ondřej Surý [Fri, 12 Jul 2019 13:27:06 +0000 (15:27 +0200)]
Add spatch to replace memcpy usage with memmove
Ondřej Surý [Fri, 12 Jul 2019 13:26:48 +0000 (15:26 +0200)]
Fix the check-cocci script to scan bin lib fuzz dirs individually, as it was using only the last one
Tinderbox User [Wed, 10 Jul 2019 15:00:29 +0000 (15:00 +0000)]
Merge branch 'prep-release'
Tinderbox User [Wed, 10 Jul 2019 14:51:09 +0000 (14:51 +0000)]
prep 9.15.2
Witold Krecicki [Wed, 10 Jul 2019 13:18:23 +0000 (09:18 -0400)]
Merge branch '1139-1952-breaks-windows-build' into 'master'
Resolve "!1952 Breaks Windows Build"
Closes #1139
See merge request isc-projects/bind9!2145
Witold Kręcicki [Wed, 10 Jul 2019 10:31:17 +0000 (12:31 +0200)]
Fix Windows compilation issues with !1952, contributed by Thomas Jach
Witold Krecicki [Tue, 9 Jul 2019 17:19:56 +0000 (13:19 -0400)]
Merge branch 'wpk-fix-compilation-error-statschannel' into 'master'
statschannel.c: declare dnssecsignstat_dump only if it's used (LIBXML2 or LIBJSON is available)
See merge request isc-projects/bind9!2143
Witold Kręcicki [Tue, 9 Jul 2019 16:08:49 +0000 (18:08 +0200)]
statschannel.c: declare dnssecsignstat_dump only if it's used (LIBXML2 or LIBJSON is available)
Witold Krecicki [Tue, 9 Jul 2019 15:14:49 +0000 (11:14 -0400)]
Merge branch '1038-proper-atomics-use' into 'master'
Resolve "Make proper use of the atomics"
Closes #1038
See merge request isc-projects/bind9!1952
Witold Kręcicki [Mon, 8 Jul 2019 13:54:26 +0000 (15:54 +0200)]
CHANGES
Witold Kręcicki [Mon, 8 Jul 2019 15:32:09 +0000 (17:32 +0200)]
Add --enable-mutex-atomics build to CI
Witold Kręcicki [Mon, 8 Jul 2019 15:30:06 +0000 (17:30 +0200)]
Fix a few broken atomics initializations
Ondřej Surý [Mon, 20 May 2019 15:03:34 +0000 (17:03 +0200)]
lib/ns/stats.c: use isc_refcount_t
Ondřej Surý [Mon, 20 May 2019 15:01:29 +0000 (17:01 +0200)]
lib/isc/win32/socket.c: use isc_refcount_t
Ondřej Surý [Mon, 20 May 2019 15:00:22 +0000 (17:00 +0200)]
lib/isc/task.c: use isc_refcount_t
Ondřej Surý [Mon, 20 May 2019 14:59:48 +0000 (16:59 +0200)]
lib/isc/stats.c: Use ->references instead of ->refs
Ondřej Surý [Mon, 20 May 2019 14:59:11 +0000 (16:59 +0200)]
lib/isc/quota.c: use proper acquire/release/relaxed memory order semantics
Ondřej Surý [Mon, 20 May 2019 14:58:08 +0000 (16:58 +0200)]
lib/isc/counter.c: use isc_refcount_t
Ondřej Surý [Mon, 20 May 2019 14:56:12 +0000 (16:56 +0200)]
lib/dns/zt.c: use isc_refcount_t and atomics
Ondřej Surý [Mon, 20 May 2019 14:55:42 +0000 (16:55 +0200)]
lib/dns/tsig.c: use isc_refcount_t
Ondřej Surý [Mon, 20 May 2019 14:54:46 +0000 (16:54 +0200)]
lib/dns/ssu.c: use isc_refcount_t
Ondřej Surý [Mon, 20 May 2019 14:54:13 +0000 (16:54 +0200)]
lib/dns/sdlz.c:
- use isc_refcount_t
- properly detach from nodes so that we don't destroy objects
that have non-zero references count
Ondřej Surý [Mon, 20 May 2019 14:53:47 +0000 (16:53 +0200)]
lib/dns/sdb.c: use isc_refcount_t
Ondřej Surý [Mon, 20 May 2019 14:52:59 +0000 (16:52 +0200)]
lib/dns/resolver.c: use isc_refcount_t and atomics
Ondřej Surý [Mon, 20 May 2019 14:44:19 +0000 (16:44 +0200)]
lib/dns/masterdump.c: use isc_refcount_t and atomics
Ondřej Surý [Mon, 20 May 2019 14:43:32 +0000 (16:43 +0200)]
lib/dns/master.c: use isc_refcount_t and atomics
Ondřej Surý [Mon, 20 May 2019 14:41:36 +0000 (16:41 +0200)]
lib/dns/lib.c: use isc_refcount_t
Ondřej Surý [Mon, 20 May 2019 14:41:24 +0000 (16:41 +0200)]
lib/dns/nta.c: use isc_refcount_t
Ondřej Surý [Mon, 20 May 2019 14:35:17 +0000 (16:35 +0200)]
lib/dns/ecdb.c: use isc_refcount_t
Ondřej Surý [Mon, 20 May 2019 14:22:15 +0000 (16:22 +0200)]
lib/dns/dbtable.c: use isc_refcount_t
Witold Kręcicki [Fri, 17 May 2019 11:47:00 +0000 (13:47 +0200)]
lib/dns/cache.c: use isc_refcount_t
Witold Kręcicki [Fri, 17 May 2019 11:35:51 +0000 (13:35 +0200)]
dns/stats.c: use isc_refcount_t
Witold Kręcicki [Fri, 17 May 2019 11:33:30 +0000 (13:33 +0200)]
lib/ns/client: use refcount_t for reference counting
Witold Kręcicki [Fri, 17 May 2019 11:25:48 +0000 (13:25 +0200)]
lib/ns/lib.c: use isc_refcount_t for reference counting
Witold Kręcicki [Fri, 17 May 2019 09:35:35 +0000 (11:35 +0200)]
Special, for-tests-only, mode with atomics emulated by a mutex-locked variable - useful for finding atomics congestions
Witold Kręcicki [Fri, 17 May 2019 08:47:28 +0000 (10:47 +0200)]
Properly initialize all atomic variables
Witold Kręcicki [Thu, 16 May 2019 17:27:01 +0000 (19:27 +0200)]
isc/stats: use isc_refcount_t
Witold Kręcicki [Thu, 16 May 2019 16:53:33 +0000 (18:53 +0200)]
isc/timer: use isc_refcount_t
Witold Kręcicki [Thu, 16 May 2019 16:51:39 +0000 (18:51 +0200)]
lib/isc/task: use isc_refcount_t
Witold Kręcicki [Thu, 16 May 2019 16:46:29 +0000 (18:46 +0200)]
dns/zt.c: use isc_refcount_t for reference counting
Witold Kręcicki [Thu, 16 May 2019 16:43:06 +0000 (18:43 +0200)]
interfacemgr: use isc_refcount_t for reference counting
Witold Kręcicki [Thu, 16 May 2019 16:28:53 +0000 (18:28 +0200)]
Make portentry->refs an isc_refcount_t
Ondřej Surý [Tue, 9 Jul 2019 12:20:45 +0000 (08:20 -0400)]
Merge branch 'ondrej/missing-ax_restore_flags-geoip2' into 'master'
Add missing AX_RESTORE_FLAGS([geoip2]) to configure.ac
See merge request isc-projects/bind9!2140
Ondřej Surý [Tue, 9 Jul 2019 11:35:39 +0000 (13:35 +0200)]
Add missing AX_RESTORE_FLAGS([geoip2]) to configure.ac
Ondřej Surý [Mon, 8 Jul 2019 13:36:28 +0000 (09:36 -0400)]
Merge branch 'ondrej-disable-freebsd-again' into 'master'
Disable FreeBSD Runner in the CI
See merge request isc-projects/bind9!2138
Ondřej Surý [Mon, 8 Jul 2019 13:28:28 +0000 (15:28 +0200)]
Disable FreeBSD Runner in the CI; it's broken again.
Evan Hunt [Thu, 4 Jul 2019 16:38:26 +0000 (12:38 -0400)]
Merge branch '1112-remove-legacy-geoip' into 'master'
Resolve "Remove legacy GeoIP support in 9.15 after GeoIP2 is merged"
Closes #1112
See merge request isc-projects/bind9!2102
Ondřej Surý [Thu, 4 Jul 2019 09:17:16 +0000 (11:17 +0200)]
Get rid of DNS_GEOIP_DATABASE_INIT explicit initializer for geoip dbs
Instead of the explicit struct initializer with all member, rely on the fact
that static variables are explicitly initialized to 0 if not explicitly
initialized.
Evan Hunt [Tue, 2 Jul 2019 23:33:00 +0000 (16:33 -0700)]
remove --with-geoip and change --without-geoip2 to --disable-geoip in CI
Thomas Jach [Tue, 2 Jul 2019 23:27:42 +0000 (16:27 -0700)]
convert geoip to geoip2 in win32utils/Configure
Evan Hunt [Fri, 28 Jun 2019 04:19:30 +0000 (21:19 -0700)]
use configure --enable-geoip to turn on GeoIP2
- instead of --with-geoip2, use --enable-geoip to turn on the GeoIP
feature
- --with-maxminddb can be used to set the prefix for maxminddb
Evan Hunt [Fri, 28 Jun 2019 04:11:45 +0000 (21:11 -0700)]
add CHANGES note; remove references to legacy GeoIP from documentation
Evan Hunt [Fri, 28 Jun 2019 04:08:20 +0000 (21:08 -0700)]
remove all support for legacy GeoIP
Matthijs Mekking [Thu, 4 Jul 2019 12:51:32 +0000 (08:51 -0400)]
Merge branch '7-matthijs-deprecate-dnssec-lookaside' into 'master'
Deprecate dnssec-lookaside option
Closes #7
See merge request isc-projects/bind9!2104
Evan Hunt [Tue, 2 Jul 2019 19:59:42 +0000 (12:59 -0700)]
remove spurious commas from docbook
Matthijs Mekking [Fri, 28 Jun 2019 09:52:08 +0000 (11:52 +0200)]
Deprecate dnssec-lookaside option
Add the CFG_CLAUSEFLAG_DEPRECATED flag to the option so that people are
discouraged from using DLV.
Ondřej Surý [Wed, 3 Jul 2019 17:17:25 +0000 (13:17 -0400)]
Merge branch 'ondrej/kyua.result-location' into 'master'
Use $KYUA_RESULT in kyua report-html invocation for unified file location
See merge request isc-projects/bind9!2127
Ondřej Surý [Wed, 3 Jul 2019 17:00:18 +0000 (19:00 +0200)]
Set number of parallel jobs in .gitlab-ci.yml
Ondřej Surý [Wed, 3 Jul 2019 16:03:11 +0000 (18:03 +0200)]
Use $KYUA_RESULT in kyua report-html invocation for unified file location
Evan Hunt [Wed, 3 Jul 2019 16:53:18 +0000 (12:53 -0400)]
Merge branch '1114-windows-build-broken' into 'master'
fix broken windows build
Closes #1114
See merge request isc-projects/bind9!2110
Evan Hunt [Fri, 28 Jun 2019 19:45:26 +0000 (12:45 -0700)]
fix broken windows build
The MSVS C compiler requires every struct to have at least one member.
The dns_geoip_databases_t structure had one set of members for
HAVE_GEOIP and a different set for HAVE_GEOIP2, and none when neither
API is in use.
This commit silences the compiler error by moving the declaration of
dns_geoip_databases_t to types.h as an opaque reference, and commenting
out the contents of geoip.h when neither version of GeoIP is enabled.
Ondřej Surý [Wed, 3 Jul 2019 15:58:34 +0000 (11:58 -0400)]
Merge branch 'michal/define-ATOMIC_VAR_INIT-on-windows' into 'master'
Define ATOMIC_VAR_INIT() on Windows
See merge request isc-projects/bind9!2125
Michał Kępień [Wed, 3 Jul 2019 12:25:11 +0000 (14:25 +0200)]
Define ATOMIC_VAR_INIT() on Windows
Commit
b104a9bc503033b4c3174f088e2c5bdbc5d8bb51 introduced unconditional
use of the ATOMIC_VAR_INIT() macro in bin/dnssec/dnssec-signzone.c even
though that macro is only defined on Unix platforms. Define it on
Windows systems as well in order to prevent build failures.
Ondřej Surý [Wed, 3 Jul 2019 04:20:57 +0000 (00:20 -0400)]
Merge branch '1026-make-dnssec-signzone-thread-sanitizer-clean' into 'master'
Resolve "Make dnssec-signzone ThreadSanitizer clean"
Closes #1026
See merge request isc-projects/bind9!1938
Ondřej Surý [Mon, 13 May 2019 17:59:36 +0000 (00:59 +0700)]
Protect global init_count variable in rbtdb.c by making it atomic
Ondřej Surý [Mon, 13 May 2019 17:36:02 +0000 (00:36 +0700)]
bin/dnssec/dnssec-signzone.c: Protect global variables by making them atomic
Both global shuttingdown and finished bool variables were prone to data race
(as reported by ThreadSanitizer). The commit makes them both atomic.
Ondřej Surý [Mon, 13 May 2019 17:19:11 +0000 (00:19 +0700)]
Make isc_rwlock.c thread-safe
The ThreadSanitizer found several possible data races in our rwlock
implementation. This commit changes all the unprotected variables to atomic and
also changes the explicit memory ordering (atomic_<foo>_explicit(..., <order>)
functions to use our convenience macros (atomic_<foo>_<order>).
Mark Andrews [Fri, 24 May 2019 21:48:12 +0000 (07:48 +1000)]
Define ATOMIC_VAR_INIT in isc/stdatomic.h shim
Ondřej Surý [Mon, 13 May 2019 17:39:37 +0000 (00:39 +0700)]
Add atomic_compare_exchange_strong_relaxed convenience macro
Ondřej Surý [Tue, 2 Jul 2019 19:08:47 +0000 (15:08 -0400)]
Merge branch 'ondrej/with-or-without-geoip' into 'master'
Enable GeoIP2 for all builds and enable old GeoIP only for Debian amd64 stretch build
See merge request isc-projects/bind9!2120
Ondřej Surý [Tue, 2 Jul 2019 17:56:32 +0000 (19:56 +0200)]
Enable GeoIP2 for all builds and enable old GeoIP only for Debian jessie and Ubuntu xenial builds
Ondřej Surý [Tue, 2 Jul 2019 18:22:55 +0000 (14:22 -0400)]
Merge branch 'ondrej/missing-dot-in-job' into 'master'
Add missing dot in .autoconf job template that caused duplicate job
See merge request isc-projects/bind9!2121
Ondřej Surý [Tue, 2 Jul 2019 18:00:25 +0000 (20:00 +0200)]
Add missing dot in .autoconf job template that caused duplicate job
Ondřej Surý [Tue, 2 Jul 2019 17:39:49 +0000 (13:39 -0400)]
Merge branch 'ondrej/restore-freebsd-runner' into 'master'
Restore the FreeBSD Runner
See merge request isc-projects/bind9!2117
Ondřej Surý [Tue, 2 Jul 2019 10:51:49 +0000 (12:51 +0200)]
Use $(pwd) instead of $CI_PROJECT_DIR to always get absolute path
Ondřej Surý [Tue, 2 Jul 2019 10:23:56 +0000 (12:23 +0200)]
Use sudo to setup the interfaces when CI job is not running as root
Evan Hunt [Wed, 11 Apr 2018 03:24:03 +0000 (20:24 -0700)]
Add FreeBSD 11 GitLab CI Runner
Ondřej Surý [Tue, 2 Jul 2019 10:58:27 +0000 (06:58 -0400)]
Merge branch 'ondrej/fix-freebsd-make' into 'master'
Add rules to make sure subdirs are always built before testdirs
See merge request isc-projects/bind9!2116
Ondřej Surý [Tue, 2 Jul 2019 10:16:30 +0000 (12:16 +0200)]
Add rules to make sure subdirs are always built before testdirs
Ondřej Surý [Mon, 1 Jul 2019 15:12:47 +0000 (11:12 -0400)]
Merge branch '1120-remove-so_bsdcompat-usage' into 'master'
Resolve "Remove SO_BSDCOMPAT usage"
Closes #1120
See merge request isc-projects/bind9!2113
Ondřej Surý [Mon, 1 Jul 2019 14:19:01 +0000 (16:19 +0200)]
Add CHANGES note:
5261. [cleanup] Remove SO_BSDCOMPAT socket option usage.
Ondřej Surý [Mon, 1 Jul 2019 14:16:40 +0000 (16:16 +0200)]
Remove SO_BSDCOMPAT usage, it's ignore since Linux 2.4
The SO_BSDCOMPAT socket option is no-op since Linux 2.4, see the manpage:
SO_BSDCOMPAT
Enable BSD bug-to-bug compatibility. This is used by the UDP protocol
module in Linux 2.0 and 2.2. If enabled, ICMP errors received for a UDP
socket will not be passed to the user program. In later kernel
versions, support for this option has been phased out: Linux 2.4
silently ignores it, and Linux 2.6 generates a kernel warning (printk())
if a program uses this option. Linux 2.0 also enabled BSD bug-to-bug
compatibility options (random header changing, skipping of the broadcast
flag) for raw sockets with this option, but that was removed in Linux
2.2.
Matthijs Mekking [Mon, 1 Jul 2019 08:53:16 +0000 (04:53 -0400)]
Merge branch 'managed-keys-is-deprecated' into 'master'
Mark some managed-keys instances deprecated
See merge request isc-projects/bind9!2105
Matthijs Mekking [Fri, 28 Jun 2019 10:19:13 +0000 (12:19 +0200)]
Mark some managed-keys instances deprecated
The 'managed-keys' (and 'trusted-keys') options have been deprecated
by 'dnssec-keys'. Some documentation references to 'managed-keys'
had not yet been marked or noted as such.
Michał Kępień [Fri, 28 Jun 2019 12:33:29 +0000 (08:33 -0400)]
Merge branch 'michal/add-and-use-keyfile_to_key_id-helper-function' into 'master'
Add and use keyfile_to_key_id() helper function
See merge request isc-projects/bind9!2087
Michał Kępień [Fri, 28 Jun 2019 11:11:26 +0000 (13:11 +0200)]
Add and use keyfile_to_key_id() helper function
When trying to extract the key ID from a key file name, some test code
incorrectly attempts to strip all leading zeros. This breaks tests when
keys with ID 0 are generated. Add a new helper shell function,
keyfile_to_key_id(), which properly handles keys with ID 0 and use it in
test code whenever a key ID needs to be extracted from a key file name.
Michał Kępień [Fri, 28 Jun 2019 11:08:35 +0000 (07:08 -0400)]
Merge branch '1093-dnstap-read-clear-buffer-before-expanding-it' into 'master'
dnstap-read: clear buffer before expanding it
Closes #1093
See merge request isc-projects/bind9!2049
Michał Kępień [Fri, 28 Jun 2019 10:12:46 +0000 (12:12 +0200)]
Add CHANGES entry
5260. [bug] dnstap-read was producing malformed output for large
packets. [GL #1093]
Michał Kępień [Fri, 28 Jun 2019 10:12:46 +0000 (12:12 +0200)]
dnstap-read: clear buffer before expanding it
When printing a packet, dnstap-read checks whether its text form takes
up more than the 2048 bytes allocated for the output buffer by default.
If that is the case, the output buffer is automatically expanded, but
the truncated output is left in the buffer, resulting in malformed data
being printed. Clear the output buffer before expanding it to prevent
this issue from occurring.
Matthijs Mekking [Fri, 28 Jun 2019 09:50:40 +0000 (05:50 -0400)]
Merge branch '1101-matthijs-checkconf-i' into 'master'
named-checkconf -i: ignore deprecate warnings
Closes #1101
See merge request isc-projects/bind9!2079