]>
git.ipfire.org Git - thirdparty/bind9.git/log
Ondřej Surý [Sat, 13 Oct 2018 09:52:08 +0000 (11:52 +0200)]
When ISC assertions are disabled, still execute the condition to prevent unused variable warnings/errors from the compiler
Ondřej Surý [Sat, 13 Oct 2018 09:39:55 +0000 (11:39 +0200)]
Add a GitLab CI job that runs with all assertions disabled
Ondřej Surý [Thu, 11 Oct 2018 09:57:57 +0000 (11:57 +0200)]
Turn (int & flag) into (int & flag) != 0 when implicitly typed to bool
Ondřej Surý [Mon, 4 Jun 2018 11:41:09 +0000 (13:41 +0200)]
Add small tweaks to the code to fix compilation when ISC assertions are disabled
While implementing the new unit testing framework cmocka, it was found that the
BIND 9 code doesn't compile when assertions are disabled or replaced with any
function (such as mock_assert() from cmocka unit testing framework) that's not
directly recognized as assertion by the compiler.
This made the compiler to complain about blocks of code that was recognized as
unreachable before, but now it isn't.
The changes in this commit include:
* assigns default values to couple of local variables,
* moves some return statements around INSIST assertions,
* adds __builtin_unreachable(); annotations after some INSIST assertions,
* fixes one broken assertion (= instead of ==)
Mark Andrews [Thu, 8 Nov 2018 00:41:30 +0000 (19:41 -0500)]
Merge branch 'wpk-get-rid-of-bashism-in-CDS-test' into 'master'
Small system tests fixes for Solaris
See merge request isc-projects/bind9!988
Witold Krecicki [Wed, 7 Nov 2018 23:07:00 +0000 (00:07 +0100)]
Remove unnecessary sed from autosign test
Witold Krecicki [Wed, 7 Nov 2018 22:15:06 +0000 (23:15 +0100)]
Use 'local' variable in echo functions in tests
Witold Kręcicki [Tue, 6 Nov 2018 13:43:09 +0000 (13:43 +0000)]
Get rid of bashism in CDS test
Ondřej Surý [Wed, 7 Nov 2018 20:03:44 +0000 (15:03 -0500)]
Merge branch '4-add-ac_posix_shell-m4-macro' into 'master'
Add AX_POSIX_SHELL autoconf macro to have POSIX-compatible shell in $SHELL
See merge request isc-projects/bind9!986
Ondřej Surý [Tue, 6 Nov 2018 10:13:09 +0000 (17:13 +0700)]
Add CHANGES entry for AX_POSIX_SHELL
Ondřej Surý [Tue, 6 Nov 2018 10:12:53 +0000 (17:12 +0700)]
Remove m4/ files from copyright check
Ondřej Surý [Tue, 6 Nov 2018 10:09:08 +0000 (17:09 +0700)]
Add and use AX_POSIX_SHELL autoconf macro, so we can rely on POSIX shell features
Ondřej Surý [Wed, 7 Nov 2018 19:40:08 +0000 (14:40 -0500)]
Merge branch 'wpk-fix-typo-thread-c' into 'master'
Fix a typo in lib/isc/unix/thread.c
See merge request isc-projects/bind9!990
Witold Kręcicki [Wed, 7 Nov 2018 19:31:06 +0000 (19:31 +0000)]
Fix a typo in lib/isc/unix/thread.c
Witold Krecicki [Wed, 7 Nov 2018 18:04:13 +0000 (13:04 -0500)]
Merge branch '650-fix-race-in-dig' into 'master'
Add some DBC checks in dighost; fix race between clear_query and send_done in dighost
Closes #650
See merge request isc-projects/bind9!965
Witold Krecicki [Wed, 7 Nov 2018 18:04:13 +0000 (13:04 -0500)]
Add some DBC checks in dighost; fix race between clear_query and send_done in dighost
Witold Krecicki [Tue, 6 Nov 2018 09:44:34 +0000 (04:44 -0500)]
Merge branch 'wpk-multiple-task-queues' into 'master'
Multiple task queues
See merge request isc-projects/bind9!878
Witold Kręcicki [Tue, 6 Nov 2018 08:17:33 +0000 (08:17 +0000)]
CHANGES note
Witold Kręcicki [Tue, 30 Oct 2018 15:07:25 +0000 (15:07 +0000)]
Use larger quantum for network tasks
Witold Kręcicki [Thu, 25 Oct 2018 15:01:25 +0000 (15:01 +0000)]
Use a single wake_all_queues() function to wake all queues
Witold Kręcicki [Thu, 25 Oct 2018 12:41:59 +0000 (12:41 +0000)]
Switch from privileged to un-privileged mode under lock
Witold Kręcicki [Thu, 25 Oct 2018 06:31:53 +0000 (06:31 +0000)]
Document isc_task_sendto properly, make sure that cpu we're sending to is always sane
Witold Kręcicki [Thu, 25 Oct 2018 06:27:24 +0000 (06:27 +0000)]
Use proper memory ordering for tasks_running/tasks_ready
Witold Kręcicki [Tue, 23 Oct 2018 09:39:56 +0000 (09:39 +0000)]
Comment about taskmgr exclusive mode, fix a REQUIRE.
Witold Kręcicki [Tue, 23 Oct 2018 09:03:31 +0000 (09:03 +0000)]
Allow slight over-quota in'checking lame server clients are dropped at the soft limit' test
Witold Kręcicki [Tue, 23 Oct 2018 08:47:44 +0000 (08:47 +0000)]
Saner exclusive task handling in taskmgr
Witold Kręcicki [Tue, 23 Oct 2018 08:20:17 +0000 (08:20 +0000)]
Formatting
Witold Kręcicki [Mon, 22 Oct 2018 11:18:45 +0000 (11:18 +0000)]
Get rid of isc_taskmgr_setmode, we only use it to set privileged mode
Witold Kręcicki [Mon, 22 Oct 2018 10:57:05 +0000 (10:57 +0000)]
Make sure all priority tasks are done before entering normal execution
Witold Kręcicki [Mon, 22 Oct 2018 12:26:27 +0000 (12:26 +0000)]
Post shutting down tasks always to manager 0
Witold Kręcicki [Mon, 22 Oct 2018 09:37:17 +0000 (09:37 +0000)]
Separate structure for each thread/queue; 2-phase-locking for exclusive tasks
Witold Kręcicki [Fri, 19 Oct 2018 10:13:20 +0000 (10:13 +0000)]
Always restart dispatchers on empty readyq
Witold Kręcicki [Thu, 18 Oct 2018 18:16:25 +0000 (18:16 +0000)]
Taskmgr shutdown fixes
Witold Kręcicki [Thu, 11 Oct 2018 13:39:04 +0000 (13:39 +0000)]
Multiple worker queues
Witold Krecicki [Wed, 3 Oct 2018 21:20:22 +0000 (23:20 +0200)]
isc_thread_setaffinity()
Evan Hunt [Tue, 6 Nov 2018 06:18:32 +0000 (01:18 -0500)]
Merge branch 'rndc-nta-preen' into 'master'
Fixes for `rndc nta` user interface
See merge request isc-projects/bind9!845
Evan Hunt [Thu, 4 Oct 2018 20:39:48 +0000 (13:39 -0700)]
CHANGES, release note
Tony Finch [Tue, 6 Dec 2016 14:32:47 +0000 (14:32 +0000)]
Fixes for `rndc nta` user interface
Tell the user explicitly about their mistakes:
* Unknown options, e.g. -list instead of -dump
or -delete instead of -remove.
* Unknown view names.
* Excess arguments.
Include the view name in `rndc nta -dump` output, for consistency with
the NTA add and remove actions.
When removing an NTA from all views, do not abort with an error if the
NTA was not found in one of the views.
Mark Andrews [Tue, 6 Nov 2018 05:58:22 +0000 (00:58 -0500)]
Merge branch '653-idnout-only-on-tty' into 'master'
Enable idnout output only on tty, disable it when the stdout is not a tty
Closes #653
See merge request isc-projects/bind9!973
Ondřej Surý [Tue, 6 Nov 2018 04:55:57 +0000 (11:55 +0700)]
Add CHANGES entry for GL #653
Ondřej Surý [Tue, 6 Nov 2018 04:53:31 +0000 (11:53 +0700)]
Add release notes for IDN processing update
Ondřej Surý [Tue, 6 Nov 2018 04:46:25 +0000 (11:46 +0700)]
Update the IDN documentation for nslookup
Ondřej Surý [Tue, 6 Nov 2018 04:45:13 +0000 (11:45 +0700)]
Change the dig documentation
Ondřej Surý [Sat, 3 Nov 2018 19:41:33 +0000 (02:41 +0700)]
Update the idna tests for the new non-tty defaults
Ondřej Surý [Sat, 3 Nov 2018 19:20:41 +0000 (02:20 +0700)]
Enable IDN processing (both idnin and idnout) only on tty, disable it when the stdout is not a tty
Mark Andrews [Tue, 6 Nov 2018 05:38:06 +0000 (00:38 -0500)]
Merge branch '601-build-option-with-python-should-default-to-yes' into 'master'
Resolve "Build option --with-python should default to yes"
Closes #601
See merge request isc-projects/bind9!980
Mark Andrews [Tue, 6 Nov 2018 04:35:02 +0000 (15:35 +1100)]
require python to be explicitly disabled
Mark Andrews [Tue, 6 Nov 2018 00:29:23 +0000 (19:29 -0500)]
Merge branch 'u/fanf2/deprecate-ip6-int' into 'master'
Abolish ip6.int support in `dig` and `mdig`
See merge request isc-projects/bind9!969
Mark Andrews [Tue, 6 Nov 2018 00:19:03 +0000 (11:19 +1100)]
add CHANGES note
Tony Finch [Fri, 2 Nov 2018 14:23:01 +0000 (14:23 +0000)]
Abolish ip6.int support in `dig` and `mdig`
Mark Andrews [Mon, 5 Nov 2018 23:18:37 +0000 (18:18 -0500)]
Merge branch '617-if-rrl-is-configured-the-require-server-cookie-yes-is-ignored' into 'master'
Resolve "If RRL is configured the "require-server-cookie yes;" is ignored."
Closes #617
See merge request isc-projects/bind9!974
Mark Andrews [Mon, 5 Nov 2018 05:01:40 +0000 (16:01 +1100)]
add CHANGES note
Mark Andrews [Mon, 5 Nov 2018 04:55:19 +0000 (15:55 +1100)]
test require-server-cookie with rate-limit
Mark Andrews [Mon, 5 Nov 2018 01:33:54 +0000 (12:33 +1100)]
check requireservercookie even if rrl is configured
Mark Andrews [Mon, 5 Nov 2018 23:03:05 +0000 (18:03 -0500)]
Merge branch '634-unchecked-returns-in-resolver-c' into 'master'
Resolve "Unchecked returns in resolver.c"
Closes #634
See merge request isc-projects/bind9!929
Mark Andrews [Mon, 29 Oct 2018 07:04:54 +0000 (18:04 +1100)]
two dns_name_dup calls were not checked
Ondřej Surý [Mon, 5 Nov 2018 20:05:48 +0000 (15:05 -0500)]
Merge branch '645-fix-missing-buffer-init' into 'master'
dighost.c: after invalidating buffer we need to reinit it
Closes #645
See merge request isc-projects/bind9!976
Witold Kręcicki [Mon, 5 Nov 2018 18:59:44 +0000 (18:59 +0000)]
dighost.c: after invalidating buffer we need to reinit it
Witold Krecicki [Mon, 5 Nov 2018 10:06:32 +0000 (05:06 -0500)]
Merge branch '16-cleanup-finds-before-sending-final-query' into 'master'
Cleanup fctx->finds before sending 'final' query after qname minimization.
Closes #16
See merge request isc-projects/bind9!962
Witold Kręcicki [Wed, 31 Oct 2018 11:23:57 +0000 (11:23 +0000)]
Cleanup fctx->finds before sending 'final' query after qname minimization.
At the beginning of qname minimization we get fctx->finds filled with what's
in the cache at this point, in worst case root servers. After doing full
run querying for NSes at different levels we need to clean it and refill
it with proper values from cache.
Evan Hunt [Fri, 2 Nov 2018 18:35:54 +0000 (14:35 -0400)]
Merge branch 'fix-dnstap-test' into 'master'
disable QNAME minimization in the dnstap test so packet counts will be correct
See merge request isc-projects/bind9!971
Evan Hunt [Fri, 2 Nov 2018 18:34:27 +0000 (11:34 -0700)]
disable QNAME minimization in the dnstap test so packet counts will be correct
Evan Hunt [Fri, 2 Nov 2018 18:00:12 +0000 (14:00 -0400)]
Merge branch 'wpk-qmin-intermittent-fixes' into 'master'
Avoid a race in qmin test
See merge request isc-projects/bind9!954
Witold Kręcicki [Tue, 30 Oct 2018 14:51:33 +0000 (14:51 +0000)]
Avoid a race in qmin test
Mark Andrews [Fri, 2 Nov 2018 02:26:46 +0000 (22:26 -0400)]
Merge branch 'u/fanf2/configure-backtrace' into 'master'
Correctly report backtrace support when `configure` finishes
See merge request isc-projects/bind9!967
Mark Andrews [Fri, 2 Nov 2018 02:09:04 +0000 (13:09 +1100)]
regen
Tony Finch [Thu, 1 Nov 2018 13:43:44 +0000 (13:43 +0000)]
Correctly report backtrace support when `configure` finishes
Michał Kępień [Wed, 31 Oct 2018 13:26:42 +0000 (09:26 -0400)]
Merge branch '611-extend-serve-stale-tests' into 'master'
Extend serve-stale tests
Closes #611
See merge request isc-projects/bind9!963
Michał Kępień [Mon, 22 Oct 2018 13:26:45 +0000 (15:26 +0200)]
Check serve-stale behavior with a cold cache
Ensure that serve-stale works as expected when returning stale answers
is enabled, the authoritative server does not respond, and there is no
cached answer available.
Michał Kępień [Mon, 22 Oct 2018 13:26:45 +0000 (15:26 +0200)]
Check TTL of stale answers
Make sure that stale answers returned when the serve-stale feature is
enabled have a TTL matching the value of the stale-answer-ttl setting.
Witold Krecicki [Wed, 31 Oct 2018 12:57:08 +0000 (08:57 -0400)]
Merge branch 'wpk-get-rid-of-socket-v-functions' into 'master'
Get rid of socket *v functions
See merge request isc-projects/bind9!932
Michał Kępień [Wed, 31 Oct 2018 12:46:52 +0000 (13:46 +0100)]
[squash] Rework code preparing a HTTP response for sending in lib/isc/httpd.c
Witold Kręcicki [Tue, 30 Oct 2018 14:27:08 +0000 (14:27 +0000)]
CHANGES entry
Witold Kręcicki [Fri, 26 Oct 2018 19:07:24 +0000 (19:07 +0000)]
Remove vector socket functions from Unix socket code and library headers
Remove the following functions in order to simplify socket code:
- isc_socket_recvv()
- isc_socket_sendtov()
- isc_socket_sendtov2()
- isc_socket_sendv()
Witold Kręcicki [Mon, 29 Oct 2018 09:16:26 +0000 (09:16 +0000)]
Remove vector socket functions from Windows socket code
Remove the following functions in order to simplify socket code:
- isc_socket_recvv()
- isc_socket_sendtov()
- isc_socket_sendtov2()
- isc_socket_sendv()
Witold Kręcicki [Mon, 29 Oct 2018 09:15:42 +0000 (09:15 +0000)]
Do not use vector socket functions in diagnostic tools
Refactor diagnostic tools code to no longer use:
- isc_socket_recvv()
- isc_socket_sendtov2()
- isc_socket_sendv()
as these functions will be removed shortly.
Witold Kręcicki [Fri, 26 Oct 2018 19:07:41 +0000 (19:07 +0000)]
Do not use vector socket functions in HTTP server code
Refactor code in lib/isc/httpd.c to no longer use isc_socket_sendv() as
this function will be removed shortly.
Mark Andrews [Wed, 31 Oct 2018 05:28:46 +0000 (01:28 -0400)]
Merge branch '649-resolver-test-failing' into 'master'
Resolve "resolver test failing"
Closes #649
See merge request isc-projects/bind9!959
Mark Andrews [Wed, 31 Oct 2018 05:14:43 +0000 (16:14 +1100)]
use new packet for response; rename variable to request and response
Witold Krecicki [Tue, 30 Oct 2018 19:17:02 +0000 (15:17 -0400)]
Merge branch 'wpk-fix-catz-test-race' into 'master'
catz test: wait for dom8.example to be transferred before checking its availability
See merge request isc-projects/bind9!946
Witold Kręcicki [Tue, 30 Oct 2018 12:15:19 +0000 (13:15 +0100)]
Fix style in catz test
Witold Kręcicki [Tue, 30 Oct 2018 10:52:27 +0000 (11:52 +0100)]
catz test: wait for dom8.example to be transferred before checking its availability
Evan Hunt [Tue, 30 Oct 2018 17:51:13 +0000 (13:51 -0400)]
Merge branch '647-config-h' into 'master'
remove config.h references
Closes #647
See merge request isc-projects/bind9!958
Evan Hunt [Tue, 30 Oct 2018 17:42:41 +0000 (10:42 -0700)]
remove config.h references
Evan Hunt [Tue, 30 Oct 2018 15:07:53 +0000 (11:07 -0400)]
Merge branch 'silence-warning' into 'master'
silence warning from missing print.h
See merge request isc-projects/bind9!955
Evan Hunt [Tue, 30 Oct 2018 15:06:34 +0000 (08:06 -0700)]
silence warning from missing print.h
Ondřej Surý [Tue, 30 Oct 2018 13:02:02 +0000 (09:02 -0400)]
Merge branch '84-destroy-task-first-when-destroying-rpzs' into 'master'
Destroy updater task first when destroying rpzs.
Closes #84
See merge request isc-projects/bind9!944
Witold Kręcicki [Tue, 30 Oct 2018 07:14:57 +0000 (07:14 +0000)]
CHANGES entry
Ondřej Surý [Tue, 30 Oct 2018 12:41:07 +0000 (13:41 +0100)]
Destroy task first when destroying catzs.
When freeing catzs structures we need to kill the updater task first.
Otherwise we might race with the updater and there might be a crash
on shutdown.
Witold Kręcicki [Tue, 30 Oct 2018 07:09:58 +0000 (07:09 +0000)]
Destroy task first when destroying rpzs.
When freeing rpzs structures we need to kill the updater task first.
Otherwise we might race with the updater and there might be a crash
on shutdown.
Michał Kępień [Tue, 30 Oct 2018 12:52:25 +0000 (08:52 -0400)]
Merge branch '644-fix-isc_buffer_copyregion-for-auto-reallocated-buffers' into 'master'
Fix isc_buffer_copyregion() for auto-reallocated buffers
Closes #644
See merge request isc-projects/bind9!949
Michał Kępień [Tue, 30 Oct 2018 12:33:25 +0000 (13:33 +0100)]
Add CHANGES entry
5072. [bug] Add unit tests for isc_buffer_copyregion() and fix its
behavior for auto-reallocated buffers. [GL #644]
Michał Kępień [Tue, 30 Oct 2018 12:33:25 +0000 (13:33 +0100)]
Fix isc_buffer_copyregion() for auto-reallocated buffers
While isc_buffer_copyregion() calls isc_buffer_reserve() to ensure the
target buffer will have enough available space to append the contents of
the source region to it, the variables used for subsequently checking
available space are not updated accordingly after that call. This
prevents isc_buffer_copyregion() from working as expected for
auto-reallocated buffers: ISC_R_NOSPACE will be returned if enough space
is not already available in the target buffer before it is reallocated.
Fix by calling isc_buffer_used() and isc_buffer_availablelength()
directly instead of assigning their return values to local variables.
Michał Kępień [Tue, 30 Oct 2018 12:33:25 +0000 (13:33 +0100)]
Add unit tests for isc_buffer_copyregion()
Add some basic checks for isc_buffer_copyregion() to ensure it behaves
as expected for both fixed-size buffers and buffers which can be
automatically reallocated. Adjust the list of headers included by
lib/isc/tests/buffer_test.c so that it matches what that test program
really uses.
Ondřej Surý [Tue, 30 Oct 2018 11:56:51 +0000 (07:56 -0400)]
Merge branch 'ondrej/cleanup-leftover-fatal' into 'master'
Remove double result check leftover
See merge request isc-projects/bind9!945
Ondřej Surý [Tue, 30 Oct 2018 10:30:40 +0000 (10:30 +0000)]
Remove double result check leftover
Mark Andrews [Tue, 30 Oct 2018 03:59:52 +0000 (23:59 -0400)]
Merge branch '631-dns_rdata_compare-for-nxt-performs-case-sensitive-name-comparison' into 'master'
Resolve "dns_rdata_compare() for NXT performs case sensitive name comparison"
Closes #631
See merge request isc-projects/bind9!917
Mark Andrews [Fri, 26 Oct 2018 06:28:09 +0000 (17:28 +1100)]
add CHANGES note
Mark Andrews [Fri, 26 Oct 2018 06:23:22 +0000 (17:23 +1100)]
compare_nxt compared records with identical next fields case insensitively
Mark Andrews [Tue, 30 Oct 2018 00:11:22 +0000 (20:11 -0400)]
Merge branch '638-record-types-with-empty-rdata-fields-were-not-being-handled-correctly' into 'master'
Resolve "Record types with empty rdata fields were not being handled correctly."
Closes #638
See merge request isc-projects/bind9!919