]>
git.ipfire.org Git - thirdparty/bind9.git/log
Witold Kręcicki [Tue, 13 Nov 2018 23:03:30 +0000 (23:03 +0000)]
Add an option to have 64-byte (cache line) aligned mutexes.
Mark Andrews [Wed, 14 Nov 2018 00:51:06 +0000 (19:51 -0500)]
Merge branch '584-dig-treats-4-6-m-after-q-argument-as-an-option-but-not-a-domain-name' into 'master'
Resolve "dig treats -4/-6/-m after -q argument as an option but not a domain name"
Closes #584
See merge request isc-projects/bind9!979
Evan Hunt [Wed, 14 Nov 2018 00:41:54 +0000 (16:41 -0800)]
style
Mark Andrews [Wed, 14 Nov 2018 00:30:50 +0000 (11:30 +1100)]
check that delv -q -m works
Mark Andrews [Wed, 14 Nov 2018 00:14:49 +0000 (11:14 +1100)]
check that dig -q -m works
Mark Andrews [Tue, 13 Nov 2018 23:50:34 +0000 (10:50 +1100)]
add -q to dash_opts
Mark Andrews [Tue, 6 Nov 2018 00:59:04 +0000 (11:59 +1100)]
dig and mdig failed to properly preparse dash value pairs when value was a seperate argument and started with a dash.
Evan Hunt [Tue, 13 Nov 2018 19:07:17 +0000 (14:07 -0500)]
Merge branch '587-statistics-channels-xml-v2-is-removed-but-still-documented' into 'master'
Resolve "statistics-channels /xml/v2 is removed but still documented"
Closes #587
See merge request isc-projects/bind9!1035
Mark Andrews [Tue, 13 Nov 2018 04:48:10 +0000 (15:48 +1100)]
remove reference to obsolete xml/v2 schema
Michał Kępień [Tue, 13 Nov 2018 13:52:43 +0000 (08:52 -0500)]
Merge branch '433-restore-localhost-fallback-in-bin-dig-dighost.c' into 'master'
Restore localhost fallback in bin/dig/dighost.c
Closes #433
See merge request isc-projects/bind9!910
Michał Kępień [Tue, 13 Nov 2018 13:31:18 +0000 (14:31 +0100)]
Add CHANGES entry
5089. [bug] Restore localhost fallback in dig and host which is
used when no nameserver addresses present in
/etc/resolv.conf are usable due to the requested
address family restrictions. [GL #433]
Michał Kępień [Tue, 13 Nov 2018 13:31:18 +0000 (14:31 +0100)]
Restore localhost fallback in bin/dig/dighost.c
In BIND 9.11 and earlier, dig and similar tools used liblwres for
parsing /etc/resolv.conf. After getting a list of servers from
liblwres, a tool would check the address family of each server found and
reject those unusable. When the resulting list of usable servers was
empty, localhost addresses were queried as a fallback.
When liblwres was removed in BIND 9.12, dig and similar tools were
updated to parse /etc/resolv.conf using libirs instead. As part of that
process, the localhost fallback was removed from bin/dig/dighost.c since
the localhost fallback built into libirs was deemed to be sufficient.
However, libirs only falls back to localhost if it does not find any
name servers at all; if it does find any valid nameserver entry in
/etc/resolv.conf, it just returns it to the caller because it is
oblivious to whether the caller supports IPv4 and/or IPv6 or not. The
code in bin/dig/dighost.c subsequently filters the returned list of
servers in get_server_list() according to the requested address family
restrictions. This may result in none of the addresses returned by
libirs being usable, in which case a tool will attempt to work with an
empty server list, causing a hang and subsequently a crash upon user
interruption.
Restore the localhost fallback in bin/dig/dighost.c to prevent the
aforementioned hangs and crashes and ensure recent BIND versions behave
identically to the older ones in the circumstances described above.
Michał Kępień [Tue, 13 Nov 2018 13:25:11 +0000 (08:25 -0500)]
Merge branch '599-fix-a-shutdown-race-in-diagnostic-tools' into 'master'
Fix a shutdown race in bin/dig/dighost.c
Closes #599
See merge request isc-projects/bind9!855
Michał Kępień [Tue, 13 Nov 2018 12:50:47 +0000 (13:50 +0100)]
Add CHANGES entry
5088. [bug] dig/host/nslookup could crash when interrupted close to
a query timeout. [GL #599]
Michał Kępień [Tue, 13 Nov 2018 12:50:47 +0000 (13:50 +0100)]
Fix a shutdown race in bin/dig/dighost.c
If a tool using the routines defined in bin/dig/dighost.c is sent an
interruption signal around the time a connection timeout is scheduled to
fire, connect_timeout() may be executed after destroy_libs() detaches
from the global task (setting 'global_task' to NULL), which results in a
crash upon a UDP retry due to bringup_timer() attempting to create a
timer with 'task' set to NULL. Fix by preventing connect_timeout() from
attempting a retry when shutdown is in progress.
Evan Hunt [Tue, 13 Nov 2018 08:23:43 +0000 (03:23 -0500)]
Merge branch 'fix-rules-typo' into 'master'
fix rules.in typo
See merge request isc-projects/bind9!1036
Evan Hunt [Tue, 13 Nov 2018 08:22:44 +0000 (00:22 -0800)]
fix typo
Mark Andrews [Tue, 13 Nov 2018 00:03:14 +0000 (19:03 -0500)]
Merge branch 'autoheader' into 'master'
autoheader
See merge request isc-projects/bind9!1033
Mark Andrews [Mon, 12 Nov 2018 23:31:50 +0000 (10:31 +1100)]
autoheader
Mark Andrews [Mon, 12 Nov 2018 20:45:04 +0000 (15:45 -0500)]
Merge branch 'fix-test-linkages' into 'master'
Fix test linkages
See merge request isc-projects/bind9!1027
Mark Andrews [Mon, 12 Nov 2018 20:23:51 +0000 (07:23 +1100)]
remove lib/isc/tests/result_test as it is now cmocka
Mark Andrews [Mon, 12 Nov 2018 20:26:16 +0000 (07:26 +1100)]
fixup
Mark Andrews [Mon, 12 Nov 2018 20:23:36 +0000 (07:23 +1100)]
link in lib/isccc/tests/Kyuafile
Ondřej Surý [Mon, 12 Nov 2018 15:14:33 +0000 (10:14 -0500)]
Merge branch '687-reduce-the-overall-files-we-consider-copyrightable' into 'master'
Resolve "Reduce the overall files we consider copyrightable"
Closes #687
See merge request isc-projects/bind9!1026
Ondřej Surý [Mon, 12 Nov 2018 15:11:57 +0000 (16:11 +0100)]
Remove support for adding copyright to zone data
Ondřej Surý [Mon, 12 Nov 2018 14:30:40 +0000 (15:30 +0100)]
Exclude configuration files from the copyright mumbo-jumbo
Mark Andrews [Mon, 12 Nov 2018 07:12:04 +0000 (02:12 -0500)]
Merge branch 'remove-duplicate-block' into 'master'
remove duplicate block
See merge request isc-projects/bind9!1022
Mark Andrews [Mon, 12 Nov 2018 06:57:31 +0000 (17:57 +1100)]
remove duplicate block
Mark Andrews [Sun, 11 Nov 2018 23:51:03 +0000 (18:51 -0500)]
Merge branch '676-isc_result_toid-tables-not-complete' into 'master'
Resolve "isc_result_toid tables not complete"
Closes #676
See merge request isc-projects/bind9!1010
Evan Hunt [Sat, 10 Nov 2018 01:40:31 +0000 (17:40 -0800)]
convert result tests to use CMocka instead of ATF
Mark Andrews [Fri, 9 Nov 2018 23:21:44 +0000 (10:21 +1100)]
check result tables are complete
Mark Andrews [Fri, 9 Nov 2018 05:34:27 +0000 (00:34 -0500)]
Merge branch 'placeholder' into 'master'
placeholder
See merge request isc-projects/bind9!1008
Mark Andrews [Fri, 9 Nov 2018 05:33:29 +0000 (16:33 +1100)]
placeholder
Mark Andrews [Fri, 9 Nov 2018 05:18:15 +0000 (00:18 -0500)]
Merge branch '186-bind-9-12-x-potential-bug-with-dig-when-tools-installed-on-windows' into 'master'
Resolve "Bind 9.12.x: Potential bug with Dig when Tools installed on Windows"
Closes #186
See merge request isc-projects/bind9!1004
Mark Andrews [Fri, 9 Nov 2018 05:09:42 +0000 (16:09 +1100)]
add CHANGES note
Mark Andrews [Fri, 9 Nov 2018 00:27:41 +0000 (11:27 +1100)]
look in windows registry for nameservers, domainname and search list
Mark Andrews [Fri, 9 Nov 2018 04:04:30 +0000 (23:04 -0500)]
Merge branch '623-rpz-logging-to-include-qclass-and-qtype' into 'master'
Resolve "RPZ logging to include QCLASS and QTYPE"
Closes #623
See merge request isc-projects/bind9!966
Mark Andrews [Fri, 9 Nov 2018 03:55:52 +0000 (14:55 +1100)]
add CHANGES note
Mark Andrews [Thu, 1 Nov 2018 03:53:51 +0000 (14:53 +1100)]
log RPZ type and class
Mark Andrews [Fri, 9 Nov 2018 01:38:45 +0000 (20:38 -0500)]
Merge branch '673-fix-windows-build-resource-discover' into 'master'
Resolve "fix windows build resource discover"
Closes #673
See merge request isc-projects/bind9!1005
Mark Andrews [Fri, 9 Nov 2018 01:29:36 +0000 (12:29 +1100)]
isc_resource_getlimit under windows only supports isc_resource_openfiles
Ondřej Surý [Thu, 8 Nov 2018 19:55:55 +0000 (14:55 -0500)]
Merge branch '449-isc_stdtime_t-post-stdint-cleanup' into 'master'
Resolve "Follow-up from "Redefine ISC's int and boolean types to use <stdint.h> and <stdbool.h> types""
Closes #449
See merge request isc-projects/bind9!998
Ondřej Surý [Thu, 8 Nov 2018 18:05:51 +0000 (01:05 +0700)]
isc_stdtime_t is always 32-bit now, so remove the always true macro STDTIME_ON_32BITS
Ondřej Surý [Thu, 8 Nov 2018 18:05:45 +0000 (01:05 +0700)]
Print isc_stdtime_t with PRIu32
Ondřej Surý [Thu, 8 Nov 2018 19:02:25 +0000 (14:02 -0500)]
Merge branch '224-remove-isc-hmax-fixup-exe-bnff-from-win32utils-configure' into 'master'
Remove isc-hmac-fixup.exe remains from win32util/Configure
Closes #224
See merge request isc-projects/bind9!1000
Ondřej Surý [Thu, 8 Nov 2018 18:48:52 +0000 (01:48 +0700)]
Remove isc-hmac-fixup.exe remains from win32util/Configure
Ondřej Surý [Thu, 8 Nov 2018 07:03:07 +0000 (02:03 -0500)]
Merge branch '305-misc-fixes' into 'master'
Miscellaneous style fixes - implicit casts to bool and uninitialized variables fixes
Closes #305
See merge request isc-projects/bind9!851
Ondřej Surý [Thu, 8 Nov 2018 05:19:00 +0000 (12:19 +0700)]
Remove dummy ISLOCKED macro
Ondřej Surý [Wed, 7 Nov 2018 08:00:07 +0000 (15:00 +0700)]
Hint the compiler with ISC_UNREACHABLE(); that code after INSIST(0); cannot be reached
Ondřej Surý [Wed, 24 Oct 2018 18:00:46 +0000 (20:00 +0200)]
Modify the dbversion_test.c to detect disabled assertions
Ondřej Surý [Wed, 24 Oct 2018 14:28:55 +0000 (16:28 +0200)]
Add extra return failure after INSIST(0) in default branch
Ondřej Surý [Wed, 24 Oct 2018 14:28:21 +0000 (16:28 +0200)]
Use larger buffers on snprintf buffer overflow false positives
Ondřej Surý [Sat, 13 Oct 2018 10:10:43 +0000 (12:10 +0200)]
Don't assert on failed getrlimit call to allow called to handle this gracefully as it already does, just abort where we need to know the numbers
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