]>
git.ipfire.org Git - thirdparty/bind9.git/log
Ondřej Surý [Tue, 26 Nov 2019 11:13:07 +0000 (12:13 +0100)]
Revert "Skip the runtime ellipsis test"
This reverts commit
161e02845f548321e5e4bcfdf9d97a86539cbdde .
Evan Hunt [Mon, 25 Nov 2019 18:27:40 +0000 (10:27 -0800)]
fixed a test failure, some other shell cleanup
Ondřej Surý [Fri, 22 Nov 2019 10:52:16 +0000 (11:52 +0100)]
Detect cores on FreeBSD
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ý [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
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}
Michał Kępień [Tue, 19 Nov 2019 14:51:01 +0000 (14:51 +0000)]
Merge branch '1308-fail-the-tcp-system-test-when-ans6-fails' into 'master'
Fail the "tcp" system test when ans6 fails
Closes #1308
See merge request isc-projects/bind9!2566
Michał Kępień [Tue, 19 Nov 2019 14:26:56 +0000 (15:26 +0100)]
Fail the "tcp" system test when ans6 fails
Make the "tcp" system test fail if the Python tool used for establishing
TCP connections (ans6) logs a result different than "OK" after
processing a command sent to it (as that means the tool was unable to
successfully perform the requested action), with the exception of
cleanup errors at the end of the test which can be safely ignored. Note
that the tool not returning any result at all in 10 seconds is still a
fatal error in all cases.
Ondřej Surý [Tue, 19 Nov 2019 10:03:09 +0000 (10:03 +0000)]
Merge branch '1377-threadsanitizer-data-race-astack-c-64-in-isc_astack_pop' into 'master'
Fix missing lock around pos and destroy mutex in isc_astack_destroy
Closes #1377
See merge request isc-projects/bind9!2588
Mark Andrews [Tue, 19 Nov 2019 09:31:52 +0000 (09:31 +0000)]
Merge branch '1299-parse-commandline-code-should-be-done-in-alphabetical-order' into 'master'
Resolve "Parse commandline code should be done in alphabetical order"
Closes #1299
See merge request isc-projects/bind9!2559
Ondřej Surý [Tue, 19 Nov 2019 06:10:07 +0000 (14:10 +0800)]
Fix missing lock around pos and destroy mutex in isc_astack_destroy
Mark Andrews [Mon, 11 Nov 2019 04:58:23 +0000 (15:58 +1100)]
alphabetize command line switch
Mark Andrews [Tue, 19 Nov 2019 08:20:08 +0000 (08:20 +0000)]
Merge branch '1344-threadsanitizer-data-race-rbtdb-c-2987-in-bind_rdataset' into 'master'
Resolve "ThreadSanitizer: data race rbtdb.c:2987 in bind_rdataset"
Closes #1344
See merge request isc-projects/bind9!2587
Mark Andrews [Tue, 19 Nov 2019 06:33:05 +0000 (17:33 +1100)]
add CHANGES
Mark Andrews [Tue, 19 Nov 2019 05:53:36 +0000 (16:53 +1100)]
make header->count atomic
Ondřej Surý [Mon, 18 Nov 2019 19:47:53 +0000 (19:47 +0000)]
Merge branch 'ondrej/dont-call-dns_adb_endupdfetch-for-TCP-queries' into 'master'
lib/dns/resolver.c: Call dns_adb_endudpfetch() only for UDP queries
See merge request isc-projects/bind9!2580
Ondřej Surý [Sun, 13 Oct 2019 14:33:22 +0000 (16:33 +0200)]
lib/dns/resolver.c: Call dns_adb_endudpfetch() only for UDP queries
The dns_adb_beginudpfetch() is called only for UDP queries, but
the dns_adb_endudpfetch() is called for all queries, including
TCP. This messages the quota counting in adb.c.
Ondřej Surý [Mon, 18 Nov 2019 17:58:54 +0000 (17:58 +0000)]
Merge branch 'ondrej/switch-coccinelle-job-to-buster' into 'master'
Switch coccinelle job to buster
See merge request isc-projects/bind9!2582
Ondřej Surý [Mon, 18 Nov 2019 17:07:01 +0000 (01:07 +0800)]
Installing coccinelle on Debian sid is broken, switch to Debian buster
Ondřej Surý [Mon, 18 Nov 2019 07:30:35 +0000 (07:30 +0000)]
Merge branch '1368-threadsanitizer-can-t-handle-more-than-64-mutexes' into 'master'
lib/dns/adb.c:
Closes #1368
See merge request isc-projects/bind9!2579
Witold Kręcicki [Tue, 22 Jan 2019 09:47:18 +0000 (10:47 +0100)]
lib/dns/adb.c: don't use more than 64 lock simultaneously when run under TSAN
- TSAN can't handle more than 64 locks in one thread, lock ADB bucket-by-bucket
in TSAN mode. This means that the dump won't be consistent but it's good
enough for testing
- Use proper order when unlocking adb->namelocks and adb->entrylocks when
dumping ADB.
Tinderbox User [Sun, 17 Nov 2019 07:59:22 +0000 (07:59 +0000)]
Merge branch 'prep-release' into security-master
Evan Hunt [Fri, 15 Nov 2019 23:33:19 +0000 (15:33 -0800)]
Merge branch 'security-client-connection-limit' into security-master
Tinderbox User [Sun, 17 Nov 2019 07:25:57 +0000 (07:25 +0000)]
prep 9.15.6
Evan Hunt [Fri, 8 Nov 2019 02:38:00 +0000 (18:38 -0800)]
CHANGES, release note.
Evan Hunt [Fri, 15 Nov 2019 21:22:13 +0000 (13:22 -0800)]
clean up comments
Witold Kręcicki [Fri, 15 Nov 2019 12:30:04 +0000 (13:30 +0100)]
fix a problem with the mem_test unit test
isc_mem_traceflag_test messes with stdout/stderr, which can cause
problems with subsequent tests (no output, libuv problems). Moving that
test case to the end ensures there are no side effects.
Witold Kręcicki [Fri, 15 Nov 2019 11:15:03 +0000 (12:15 +0100)]
netmgr: close uv_loop properly
close the uv_handle for the worker async channel, and call
uv_loop_close() on shutdown to ensure that the event loop's
internal resources are properly freed.
Witold Kręcicki [Fri, 15 Nov 2019 09:47:08 +0000 (10:47 +0100)]
ensure isc_queue_t is aligned to double-cacheline size
Evan Hunt [Fri, 8 Nov 2019 18:52:49 +0000 (10:52 -0800)]
place a limit on pipelined queries that can be processed simultaneously
when the TCPDNS_CLIENTS_PER_CONN limit has been exceeded for a TCP
DNS connection, switch to sequential mode to ensure that memory cannot
be exhausted by too many simultaneous queries.
Evan Hunt [Mon, 18 Nov 2019 02:59:08 +0000 (02:59 +0000)]
Merge branch 'each-ds-anchor-mirror-zones' into 'master'
add support for DS trust anchors in mirror zone verification
See merge request isc-projects/bind9!2576
Evan Hunt [Sun, 17 Nov 2019 20:14:40 +0000 (12:14 -0800)]
add support for DS trust anchors in mirror zone verification
Evan Hunt [Mon, 18 Nov 2019 01:43:06 +0000 (01:43 +0000)]
Merge branch '1119-make-lib/ns-thread-sanitizer-clean' into 'master'
Make lib/ns Thread Sanitizer clean
See merge request isc-projects/bind9!2366
Ondřej Surý [Thu, 4 Jul 2019 13:45:06 +0000 (15:45 +0200)]
Make lib/ns Thread Sanitizer clean
Evan Hunt [Mon, 18 Nov 2019 01:40:59 +0000 (01:40 +0000)]
Merge branch '1119-tsan-lib/dns/tests/zt_test.c' into 'master'
Use atomic_bool for variables shared among threads to make zt_test.c thread-safe
See merge request isc-projects/bind9!2361
Ondřej Surý [Thu, 4 Jul 2019 09:04:52 +0000 (11:04 +0200)]
Use atomic_bool for variables shared among threads to make zt_test.c thread-safe
Ondřej Surý [Sun, 17 Nov 2019 14:55:24 +0000 (14:55 +0000)]
Merge branch '1119-tsan-lib/isc/tests/socket_test.c' into 'master'
Change the shared completion->done variable to atomic_bool in socket_test.c
See merge request isc-projects/bind9!2362
Ondřej Surý [Thu, 4 Jul 2019 11:51:47 +0000 (13:51 +0200)]
Change the shared completion->done variable to atomic_bool in socket_test.c
Ondřej Surý [Sat, 16 Nov 2019 05:22:05 +0000 (05:22 +0000)]
Merge branch '1313-master-failing-to-build-on-macos-high-sierra' into 'master'
Resolve "master failing to build on MacOS High Sierra"
Closes #1313
See merge request isc-projects/bind9!2562
Mark Andrews [Wed, 13 Nov 2019 23:00:36 +0000 (10:00 +1100)]
conditionally test based on USE_LIBTOOL or LD_WRAP
Mark Andrews [Wed, 13 Nov 2019 02:15:48 +0000 (13:15 +1100)]
specify the install name when building libwrap
Mark Andrews [Tue, 12 Nov 2019 05:24:49 +0000 (16:24 +1100)]
MacOS portability
-Wl,-z,interpose is not supported.
-Wl,rpath=<path> is not supported use -Wl,rpath,<path> instead.
Use @SO@ for loadable extension.
Use -L <path> -l libwrap instead of libwrap.sa.