]>
git.ipfire.org Git - thirdparty/bind9.git/log
Witold Kręcicki [Thu, 28 Nov 2019 11:00:27 +0000 (12:00 +0100)]
Use clock_realtime_fast where available
Ondřej Surý [Thu, 28 Nov 2019 11:30:37 +0000 (11:30 +0000)]
Merge branch 'ondrej/use_ATOMIC_VAR_INIT_to_initialize_tid_base_in_isc_hp_API' into 'master'
Use ATOMIC_VAR_INIT to initialize tid_v_base to 0
See merge request isc-projects/bind9!2660
Ondřej Surý [Thu, 28 Nov 2019 11:07:42 +0000 (11:07 +0000)]
Merge branch 'ondrej/lib_isc_counter_improvements' into 'master'
Improve the atomics usage in isc_counter API
See merge request isc-projects/bind9!2658
Ondřej Surý [Thu, 28 Nov 2019 10:31:02 +0000 (11:31 +0100)]
Use ATOMIC_VAR_INIT to initialize tid_v_base to 0
Ondřej Surý [Thu, 28 Nov 2019 09:36:26 +0000 (10:36 +0100)]
Improve the atomics usage in isc_counter API
Ondřej Surý [Thu, 28 Nov 2019 08:37:29 +0000 (08:37 +0000)]
Merge branch '1401-intermittent-failures-in-the-catz-system-test' into 'master'
Resolve "Intermittent failures in the catz system test"
Closes #1401
See merge request isc-projects/bind9!2633
Ondřej Surý [Tue, 26 Nov 2019 10:56:49 +0000 (11:56 +0100)]
Use retry() and nextpart*() to simplify catz test
Witold Kręcicki [Thu, 14 Nov 2019 11:57:18 +0000 (12:57 +0100)]
Fix timing issues in catz test
Make the log checks more precise and use the retry() function for
repeating the checks.
Evan Hunt [Thu, 28 Nov 2019 05:42:28 +0000 (05:42 +0000)]
Merge branch '1376-supported-platforms' into 'master'
update "supported platforms" in release notes
Closes #1376
See merge request isc-projects/bind9!2654
Evan Hunt [Wed, 27 Nov 2019 21:06:13 +0000 (13:06 -0800)]
update "supported platforms" in release notes
also added more information about library dependencies in PLATFORMS.md,
and cleaned up the grammar.
Ondřej Surý [Wed, 27 Nov 2019 17:19:10 +0000 (17:19 +0000)]
Merge branch 'mnowak/runtime-forward-port-softhsm2-setup' into 'master'
Fix the UID switch test to work with PKCS#11 build
See merge request isc-projects/bind9!2652
Michal Nowak [Wed, 27 Nov 2019 17:19:10 +0000 (17:19 +0000)]
Fix the UID switch test to work with PKCS#11 build
Forward port of
32fe9a0051fc76be4657fc2742e71d2be6193011 by Ondřej Surý.
Ondřej Surý [Wed, 27 Nov 2019 12:02:55 +0000 (12:02 +0000)]
Merge branch '1402-multiple-issues-in-the-runtime-system-test' into 'master'
Resolve "Multiple issues in the runtime system test"
Closes #1402
See merge request isc-projects/bind9!2636
Ondřej Surý [Tue, 26 Nov 2019 15:55:08 +0000 (16:55 +0100)]
Fix multiple issues in named setuid check
Evan Hunt [Mon, 25 Nov 2019 18:27:40 +0000 (10:27 -0800)]
fixed a test failure, some other shell cleanup
Ondřej Surý [Sat, 16 Nov 2019 07:14:04 +0000 (15:14 +0800)]
Instead of sleeping for a fixed time, wait for named to log specific message in a loop
Ondřej Surý [Sat, 16 Nov 2019 06:22:20 +0000 (07:22 +0100)]
Use pre-prepared long command line for better portability
Ondřej Surý [Sat, 16 Nov 2019 05:36:23 +0000 (13:36 +0800)]
Make runtime/tests.sh shellcheck and set -e clean
This mostly comprises of:
* using $(...) instead of `...`
* changing the directories in subshell and not ignoring `cd` return code
* handling every error gracefully instead of ignoring the return code
Ondřej Surý [Sat, 16 Nov 2019 05:30:58 +0000 (13:30 +0800)]
Further improve the runtime tests to look for a specific instead of generic error
Ondřej Surý [Sat, 16 Nov 2019 05:16:46 +0000 (13:16 +0800)]
The PATH_MAX on macOS is 1024, we can't override conffile path to test for ellipsis
Ondřej Surý [Sat, 16 Nov 2019 05:15:56 +0000 (13:15 +0800)]
Fix couple of no-op tests to actually test something (configuration files were missing)
Ondřej Surý [Sat, 16 Nov 2019 04:56:12 +0000 (12:56 +0800)]
Skip the runtime ellipsis test
Ondřej Surý [Sat, 16 Nov 2019 04:55:05 +0000 (12:55 +0800)]
runtime test: make the pidfiles match the names of configuration files
Ondřej Surý [Sat, 16 Nov 2019 08:33:47 +0000 (16:33 +0800)]
runtime test: use helper function that kills named and waits for the finish
Mark Andrews [Wed, 27 Nov 2019 10:47:04 +0000 (10:47 +0000)]
Merge branch '1350-threadsanitizer-data-race-rbt-c-1312-in-dns_rbt_addnode' into 'master'
Resolve "ThreadSanitizer: data race rbt.c:1312 in dns_rbt_addnode"
Closes #1350
See merge request isc-projects/bind9!2648
Mark Andrews [Wed, 27 Nov 2019 09:00:26 +0000 (20:00 +1100)]
add comments 'tree_lock(write) must be held'
Mark Andrews [Wed, 27 Nov 2019 08:09:14 +0000 (19:09 +1100)]
rbtnode->nsec needs to be read while holding the tree lock
Evan Hunt [Tue, 26 Nov 2019 19:15:18 +0000 (19:15 +0000)]
Merge branch '1399-recursive-limit-stat' into 'master'
Resolve "recursive-client limit should have a stat counter"
Closes #1399
See merge request isc-projects/bind9!2629
Evan Hunt [Tue, 26 Nov 2019 05:28:10 +0000 (21:28 -0800)]
add a stats counter for clients dropped due to recursive-clients limit
Ondřej Surý [Tue, 26 Nov 2019 17:32:31 +0000 (17:32 +0000)]
Merge branch '1336-1404-netmgr-destroy-tsan-fixes' into 'master'
Fix minor shutdown issues detected by TSAN
Closes #1404 and #1336
See merge request isc-projects/bind9!2639
Witold Kręcicki [Tue, 26 Nov 2019 14:21:25 +0000 (15:21 +0100)]
- Access netmgr worker->finished under worker lock only
- Join network worker thread to silence tsan
Ondřej Surý [Tue, 26 Nov 2019 13:00:01 +0000 (13:00 +0000)]
Merge branch '1354-threadsanitizer-data-race-message-c-3283-in-dns_message_sectiontotext' into 'master'
Resolve "ThreadSanitizer: data race message.c:3283 in dns_message_sectiontotext"
Closes #1354
See merge request isc-projects/bind9!2578
Mark Andrews [Mon, 25 Nov 2019 04:28:51 +0000 (15:28 +1100)]
provide default yaml indent
Mark Andrews [Mon, 18 Nov 2019 09:46:58 +0000 (20:46 +1100)]
dns_master_indent and dns_master_indentstr must not be global
The indentation for dumping the master zone was driven by two
global variables dns_master_indent and dns_master_indentstr. In
threaded mode, this becomes prone to data access races, so this commit
converts the global variables into a local per-context tuple that
consist of count and string.
Ondřej Surý [Tue, 26 Nov 2019 12:16:59 +0000 (12:16 +0000)]
Merge branch '1360-threadsanitizer-data-race-adb-c-2790-in-dns_adb_detach' into 'master'
Resolve "ThreadSanitizer: data race adb.c:2790 in dns_adb_detach"
Closes #1360
See merge request isc-projects/bind9!2595
Ondřej Surý [Tue, 19 Nov 2019 05:49:28 +0000 (13:49 +0800)]
Fix missing adb->{e,i}refcnt locking
Witold Kręcicki [Tue, 22 Jan 2019 09:47:18 +0000 (10:47 +0100)]
lib/dns/adb.c: Use atomics for adb quota values and reference counting
Ondřej Surý [Mon, 30 Sep 2019 11:45:40 +0000 (13:45 +0200)]
Use integer fast type for mutexatomic shim type
Ondřej Surý [Tue, 26 Nov 2019 11:59:32 +0000 (11:59 +0000)]
Merge branch '1383-kasp-test-fails-with-unexpected-cds-record' into 'master'
kasp: Fix the reading of CDS keys to use stricter awk
Closes #1383
See merge request isc-projects/bind9!2608
Ondřej Surý [Thu, 21 Nov 2019 07:35:43 +0000 (15:35 +0800)]
kasp: Employ awk to make CDS checks stricter
Ondřej Surý [Tue, 26 Nov 2019 11:51:02 +0000 (11:51 +0000)]
Merge branch '1403-when-configuration-loading-fails-named-could-assert' into 'master'
Request exclusive access when crashing via fatal()
Closes #1403
See merge request isc-projects/bind9!2635
Ondřej Surý [Fri, 22 Nov 2019 10:39:57 +0000 (11:39 +0100)]
Request exclusive access when crashing via fatal()
When loading the configuration fails, there might be already other tasks
running and calling OpenSSL library functions. The OpenSSL on_exit
handler is called when exiting the main process and there's a timing
race between the on_exit function that destroys OpenSSL allocated
resources (threads, locks, ...) and other tasks accessing the very same
resources leading to a crash in the system threading library. Therefore,
the fatal() function needs to request exlusive access to the task
manager to finish the already running tasks and exit only when no other
tasks are running.
Ondřej Surý [Tue, 26 Nov 2019 11:44:22 +0000 (11:44 +0000)]
Merge branch 'ondrej/detect-cores-in-system-tests-on-FreeBSD' into 'master'
Detect cores on FreeBSD
See merge request isc-projects/bind9!2634
Ondřej Surý [Fri, 22 Nov 2019 10:52:16 +0000 (11:52 +0100)]
Detect cores on FreeBSD
Ondřej Surý [Tue, 26 Nov 2019 11:41:48 +0000 (11:41 +0000)]
Merge branch '1380-autosign-jitter-test-fails-with-no-nsec3param-found-in-axfr' into 'master'
Tune the performance of the autosign test
Closes #1385, #1384, and #1380
See merge request isc-projects/bind9!2601
Ondřej Surý [Thu, 21 Nov 2019 06:45:41 +0000 (14:45 +0800)]
Reduce the minimal numbers of days in jitter test to 5
Ondřej Surý [Thu, 21 Nov 2019 06:33:56 +0000 (14:33 +0800)]
Tune the performance of CDS/CDNSKEY deletion test
Ondřej Surý [Wed, 20 Nov 2019 19:43:35 +0000 (03:43 +0800)]
Tune the performance of oldsigs test
The oldsigs test was checking only for the validity of the A
a.oldsigs.example. resource record and associated DNSSEC signature while
the zone might not have been fully signed yet leading to validation
failures because of bogus signatures on the validation path.
This commit changes the test to test that all old signatures in the
oldsigs.example. zone were replaced and the zone is fully resigned
before running the main check.
Ondřej Surý [Wed, 20 Nov 2019 16:05:58 +0000 (00:05 +0800)]
Tune the performance of the jitter test
Ondřej Surý [Tue, 26 Nov 2019 08:19:07 +0000 (08:19 +0000)]
Merge branch 'ondrej/add-retry_quiet-function-to-conf.sh.common' into 'master'
Add retry_quiet() function to retry quietly for an event to occur
See merge request isc-projects/bind9!2630
Ondřej Surý [Wed, 20 Nov 2019 16:05:58 +0000 (00:05 +0800)]
Add retry_quiet() function to retry quietly for an event to occur
Mark Andrews [Tue, 26 Nov 2019 00:48:31 +0000 (00:48 +0000)]
Merge branch '1367-threadsanitizer-data-race-dispatch-c-901-in-free_buffer' into 'master'
Resolve "ThreadSanitizer: data race dispatch.c:901 in free_buffer"
Closes #1367
See merge request isc-projects/bind9!2613
Mark Andrews [Mon, 25 Nov 2019 00:38:09 +0000 (11:38 +1100)]
move maxbuffers test to allocate_udp_buffer
Mark Andrews [Fri, 22 Nov 2019 01:55:03 +0000 (12:55 +1100)]
Lock dispatch manager buffer_lock before accessing buffers;
Only test buffers for UDP dispatches.
Mark Andrews [Fri, 22 Nov 2019 00:55:47 +0000 (11:55 +1100)]
lock disp->mgr before reading disp->mgr->buffers
Mark Andrews [Mon, 25 Nov 2019 23:00:47 +0000 (23:00 +0000)]
Merge branch '1397-install-isc-python-module' into 'master'
Resolve "Install ISC python module"
Closes #1397
See merge request isc-projects/bind9!2620
Mark Andrews [Mon, 25 Nov 2019 22:53:19 +0000 (09:53 +1100)]
add CHANGES and note in README.md
Mark Andrews [Mon, 25 Nov 2019 07:05:22 +0000 (18:05 +1100)]
check for 'distutils.core setup'
Evan Hunt [Mon, 25 Nov 2019 21:18:51 +0000 (21:18 +0000)]
Merge branch 'each-notes' into 'master'
cleanup release notes text
See merge request isc-projects/bind9!2622
Evan Hunt [Mon, 25 Nov 2019 21:17:35 +0000 (13:17 -0800)]
cleanup release notes text
Ondřej Surý [Mon, 25 Nov 2019 08:13:31 +0000 (08:13 +0000)]
Merge branch 'ondrej/add-missing-header-guards' into 'master'
Add missing header guard to new header files
See merge request isc-projects/bind9!2621
Ondřej Surý [Mon, 25 Nov 2019 08:10:29 +0000 (09:10 +0100)]
Add missing header guard to new header files
Mark Andrews [Mon, 25 Nov 2019 05:46:55 +0000 (05:46 +0000)]
Merge branch '1373-threadsanitizer-data-race-rbtdb-c-5193-in-detachnode' into 'master'
Resolve "ThreadSanitizer: data race rbtdb.c:5193 in detachnode"
Closes #1373
See merge request isc-projects/bind9!2598
Mark Andrews [Mon, 25 Nov 2019 00:03:10 +0000 (11:03 +1100)]
remove DNS_RBT_REFLENGTH as it is no longer needed
Mark Andrews [Wed, 20 Nov 2019 07:04:01 +0000 (18:04 +1100)]
Split access to wild and dirty from locknum to silence TSAN warnings.
Evan Hunt [Sat, 23 Nov 2019 01:47:18 +0000 (01:47 +0000)]
Merge branch '1312-netmgr-tcp-fixes' into 'master'
Resolve "netmgr hangs on shutdown when TCP connections are still active"
Closes #1312
See merge request isc-projects/bind9!2617
Evan Hunt [Fri, 22 Nov 2019 20:26:42 +0000 (12:26 -0800)]
CHANGES
Evan Hunt [Fri, 22 Nov 2019 20:27:23 +0000 (12:27 -0800)]
improve system tests
- increase prefetch test timing tolerance.
- remove five-second pause and explicit connection closing in tcp test
as they are no longer necessary.
Evan Hunt [Fri, 22 Nov 2019 23:57:42 +0000 (15:57 -0800)]
netmgr: add shutdown function
- new function isc_nm_shutdown() shuts down all active TCP connections,
but does not destroy the netmgr.
Witold Kręcicki [Fri, 22 Nov 2019 13:13:19 +0000 (14:13 +0100)]
netmgr: actively close all sockets when shutting down server
without this change, named could sometimes lag for a while on shutdown
while it waited for open TCP connections to time out.
Witold Kręcicki [Fri, 22 Nov 2019 12:19:45 +0000 (13:19 +0100)]
netmgr: fix TCP backlog and client quota count
- add support for TCP backlog, using the value provided by config.
- don't attach to TCP client quota for listening sockets, only
connected sockets.
Evan Hunt [Fri, 22 Nov 2019 02:38:04 +0000 (18:38 -0800)]
netmgr: log TCP connection errors
Evan Hunt [Fri, 22 Nov 2019 01:08:06 +0000 (17:08 -0800)]
netmgr: performance improvement
- use memory pools for ievent and uvreq objects.
Evan Hunt [Wed, 20 Nov 2019 21:33:35 +0000 (22:33 +0100)]
netmgr: make TCP timeouts configurable
- restore support for tcp-initial-timeout, tcp-idle-timeout,
tcp-keepalive-timeout and tcp-advertised-timeout configuration
options, which were ineffective previously.
Witold Kręcicki [Tue, 19 Nov 2019 10:56:00 +0000 (11:56 +0100)]
netmgr: TCP improvements
- add timeout support for TCP and TCPDNS connections to protect against
slowloris style attacks. currently, all timeouts are hard-coded.
- rework and simplify the TCPDNS state machine.
Mark Andrews [Fri, 22 Nov 2019 21:23:10 +0000 (21:23 +0000)]
Merge branch '1334-threadsanitizer-data-race-dispatch-c-1339-in-tcp_recv' into 'master'
Resolve "ThreadSanitizer: data race dispatch.c:1339 in tcp_recv"
Closes #1334
See merge request isc-projects/bind9!2612
Mark Andrews [Thu, 21 Nov 2019 23:49:40 +0000 (10:49 +1100)]
lock dispatch before reporting state
Mark Andrews [Fri, 22 Nov 2019 19:37:51 +0000 (19:37 +0000)]
Merge branch '1394-incoming-zone-transfer-messages-logged-to-wrong-category' into 'master'
Resolve "Incoming zone transfer messages logged to wrong category"
Closes #1394
See merge request isc-projects/bind9!2611
Mark Andrews [Thu, 21 Nov 2019 23:30:43 +0000 (10:30 +1100)]
add CHANGES
Mark Andrews [Thu, 21 Nov 2019 23:25:44 +0000 (10:25 +1100)]
change log category of some messages to DNS_LOGCATEGORY_XFER_IN
Mark Andrews [Fri, 22 Nov 2019 13:13:05 +0000 (13:13 +0000)]
Merge branch '1315-yaml-is-not-listed-in-the-man-page-or-the-h-listing-for-either-dig-or-delv' into 'master'
Resolve "+yaml is not listed in the man page or the -h listing for either dig or delv"
Closes #1315
See merge request isc-projects/bind9!2560
Mark Andrews [Mon, 11 Nov 2019 23:04:33 +0000 (10:04 +1100)]
add +[no]yaml to usage()
Mark Andrews [Fri, 22 Nov 2019 13:00:14 +0000 (13:00 +0000)]
Merge branch '1317-alphabetise-delv-s-usage' into 'master'
Resolve "alphabetise delv's usage."
Closes #1317
See merge request isc-projects/bind9!2561
Mark Andrews [Mon, 11 Nov 2019 23:14:50 +0000 (10:14 +1100)]
alphabetise delv's usage.
Witold Krecicki [Thu, 21 Nov 2019 19:13:55 +0000 (19:13 +0000)]
Merge branch 'wpk/fix-mkeys-bug' into 'master'
Fix a bug in trust anchors verification.
See merge request isc-projects/bind9!2609
Witold Kręcicki [Thu, 21 Nov 2019 17:43:47 +0000 (18:43 +0100)]
CHANGES note
Witold Kręcicki [Thu, 21 Nov 2019 17:18:56 +0000 (18:18 +0100)]
Fix a bug in trust anchors verification.
We were not reseting the keynode value when iterating over DNSKEYs in
RRSET, so we weren't checking all DNSKEYs against all trust anchors. This
commit fixes the issue by resetting keynode with every loop.
Evan Hunt [Wed, 20 Nov 2019 21:37:26 +0000 (21:37 +0000)]
Merge branch 'merge-v9_15_6' into 'master'
merge 9.15.6 into master branch
See merge request isc-projects/bind9!2604
Evan Hunt [Wed, 20 Nov 2019 21:34:25 +0000 (13:34 -0800)]
Merge tag 'v9_15_6' into merge-v9_15_6
Ondřej Surý [Wed, 20 Nov 2019 19:04:02 +0000 (19:04 +0000)]
Merge branch 'ondrej/get-the-backtraces-out-of-system-test-coredumps' into 'master'
Get the backtraces out of system test coredumps
See merge request isc-projects/bind9!2602
Ondřej Surý [Mon, 18 Nov 2019 18:29:12 +0000 (02:29 +0800)]
Get better stack traces
Ondřej Surý [Mon, 18 Nov 2019 15:17:37 +0000 (23:17 +0800)]
Dump the backtrace to stdout when core is found in systest directory
Michal Nowak [Wed, 20 Nov 2019 10:37:24 +0000 (10:37 +0000)]
Merge branch 'mnowak/537_Add_CI_step_to_test_named_-u' into 'master'
Verifying that named switches UID
Closes #537
See merge request isc-projects/bind9!2374
Michal Nowak [Thu, 17 Oct 2019 10:11:43 +0000 (12:11 +0200)]
Verifying that named switches UID
This test runs only under root, which is required for the user-switch
`-u` option to work.
Closes #537.
Mark Andrews [Wed, 20 Nov 2019 01:03:37 +0000 (01:03 +0000)]
Merge branch 'marka-placeholder' into 'master'
placeholder
See merge request isc-projects/bind9!2597
Mark Andrews [Wed, 20 Nov 2019 00:57:54 +0000 (11:57 +1100)]
placeholder
Ondřej Surý [Tue, 19 Nov 2019 16:54:50 +0000 (16:54 +0000)]
Merge branch '1341-threadsanitizer-data-race-rbtdb-c-5756-in-add32' into 'master'
Resolve "ThreadSanitizer: data race rbtdb.c:5756 in add32"
Closes #1341
See merge request isc-projects/bind9!2577
Mark Andrews [Tue, 19 Nov 2019 08:28:17 +0000 (19:28 +1100)]
add CHANGES
Mark Andrews [Tue, 19 Nov 2019 03:46:08 +0000 (14:46 +1100)]
use update_recordsandbytes in rbt_datafixer
Mark Andrews [Mon, 18 Nov 2019 03:07:18 +0000 (14:07 +1100)]
always obtain write lock when updating version->{records,bytes}