Commit Graph
29775 Commits
Author SHA1 Message Date
Michal Nowak eba92ada69 Merge branch 'mnowak/537_Add_CI_step_to_test_named_-u-v9_14' into 'v9_14'
[9.14] Verifying that named switches UID

See merge request isc-projects/bind9!2599
2019-11-20 11:01:05 +00:00
Michal Nowak 4c391e0a47 Verifying that named switches UID
This test runs only under root, which is required for the user-switch
`-u` option to work.

Closes #537.

(cherry picked from commit b00360537e)
2019-11-20 11:01:05 +00:00
Ondřej Surý 410eab62ee Merge branch '1341-threadsanitizer-data-race-rbtdb-c-5756-in-add32-v9_14' into 'v9_14'
Resolve "ThreadSanitizer: data race rbtdb.c:5756 in add32"

See merge request isc-projects/bind9!2593
2019-11-19 17:30:39 +00:00
Mark AndrewsandOndřej Surý 6a64f3a84e add CHANGES
(cherry picked from commit 4534fb5ec1)
2019-11-20 01:00:24 +08:00
Mark AndrewsandOndřej Surý 637fb4cdb4 use update_recordsandbytes in rbt_datafixer
(cherry picked from commit 7d4d64340e)
2019-11-20 00:59:12 +08:00
Mark AndrewsandOndřej Surý 83ce99a389 always obtain write lock when updating version->{records,bytes}
(cherry picked from commit 0cda448248)
2019-11-20 00:59:12 +08:00
Michał Kępień 847d6ac7c6 Merge branch '1308-fix-tcp-system-test-v9_14' into 'v9_14'
[v9_14] Fix "tcp" system test

See merge request isc-projects/bind9!2591
2019-11-19 15:17:54 +00:00
Michał Kępień 3d58204f46 Address ShellCheck warnings
Address all outstanding warnings that ShellCheck reports for
bin/tests/system/tcp/tests.sh.

(cherry picked from commit 23ca0ec55b)
2019-11-19 15:39:04 +01:00
Michał Kępień b1294b049c Use "set -e" in the "tcp" system test
Ensure any unexpected failure in the "tcp" system test causes it to be
immediately interrupted with an error to make the aforementioned test
more reliable.  Since the exit code for "expr 0 + 0" is 1, the status
variable needs to be updated using arithmetic expansion.

(cherry picked from commit 9841635b7f)
2019-11-19 15:39:03 +01:00
Michał Kępień 5e818012e5 Ensure all "tcp" system test errors are caught
Ensure any "rndc stats" failure causes the "tcp" system test to fail.
Do not hide "rndc stats" output.

(cherry picked from commit 46df363a0d)
2019-11-19 15:39:03 +01:00
Michał Kępień 1138e158f1 Make all "tcp" system test checks numbered
Ensure all checks in the "tcp" system test are numbered, so that
forensic data is preserved in case of any failure.

(cherry picked from commit 2f4877d11c)
2019-11-19 15:39:03 +01:00
Michał Kępień 8e19e3701b Fix argument order in assert_int_equal()
assert_int_equal() calls in bin/tests/system/tcp/tests.sh pass the found
value as the first argument and the expected value as the second
argument, while the function interprets its arguments the other way
round.  Fix argument handling in assert_int_equal() to make sure the
error messages printed by that function are correct.

(cherry picked from commit 6bd1f68bef)
2019-11-19 15:39:03 +01:00
Michał Kępień 1286db44f1 Allow retries when checking TCP high-water stats
In the TCP high-water checks, "rndc stats" is run after ans6 reports
that it opened the requested number of TCP connections.  However, we
fail to account for the fact that ns5 might not yet have called accept()
for these connections, in which case the counts output by "rndc stats"
will be off.  To prevent intermittent "tcp" system test failures, allow
the relevant connection count checks to be retried (just once, after one
second, as that should be enough for any system to accept() a dozen TCP
connections under any circumstances).

(cherry picked from commit 1e22e052d0)
2019-11-19 15:39:03 +01:00
Mark Andrews d396360b22 Merge branch '1299-parse-commandline-code-should-be-done-in-alphabetical-order-v9_14' into 'v9_14'
alphabetize command line switch

See merge request isc-projects/bind9!2589
2019-11-19 10:47:58 +00:00
Mark Andrews 3f27a0ccb2 alphabetize command line switch
(cherry picked from commit ca83a66618)
2019-11-19 20:44:21 +11:00
Ondřej Surý fa9a406a10 Merge branch 'ondrej/dont-call-dns_adb_endupdfetch-for-TCP-queries-v9_14' into 'v9_14'
lib/dns/resolver.c: Call dns_adb_endudpfetch() only for UDP queries

See merge request isc-projects/bind9!2585
2019-11-18 20:33:48 +00:00
Ondřej SurýandOndřej Surý dc8eafee57 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.

(cherry picked from commit a5189eefa5)
2019-11-19 03:48:32 +08:00
Ondřej Surý 4cc935b0ff Merge branch 'ondrej/switch-coccinelle-job-to-buster-v9_14' into 'v9_14'
Installing coccinelle on Debian sid is broken, switch to Debian buster

See merge request isc-projects/bind9!2583
2019-11-18 18:05:03 +00:00
Ondřej Surý c1f658c225 Installing coccinelle on Debian sid is broken, switch to Debian buster
(cherry picked from commit 0946db13de)
2019-11-19 02:02:29 +08:00
Mark Andrews db5d4e5618 Merge branch '1327-update-solution-dependencies-host-and-nslookup-depend-on-libirs-v9_14' into 'v9_14'
Add dependancy on libirs to dig, host, and nslookup.

See merge request isc-projects/bind9!2574
2019-11-15 04:01:53 +00:00
Mark Andrews 1cff81e0a6 Add dependancy on libirs to dig, host, and nslookup.
(cherry picked from commit 72ca05c966)
2019-11-15 12:13:36 +11:00
Michał Kępień 284042a54f Merge branch 'fix-url-in-readme-v9_14' into 'v9_14'
[v9_14] updated a broken link for newer release notes.

See merge request isc-projects/bind9!2569
2019-11-13 12:02:27 +00:00
Vicky RiskandMichał Kępień 38f6a686d4 Update broken release notes link
(cherry picked from commit c830a9116d)
2019-11-13 12:59:35 +01:00
Ondřej Surý 3a2522e687 Merge branch 'hurd-v9_14' into 'v9_14'
hurd: Fix build

See merge request isc-projects/bind9!2563
2019-11-12 09:08:19 +00:00
Samuel ThibaultandOndřej Surý 1100d198e4 hurd: Fix build
Move PATH_MAX, NAME_MAX, IOV_MAX default definitions to the common
<isc/platform.h>.

(cherry picked from commit d10fbdec84)
2019-11-12 09:27:19 +01:00
Michał Kępień a604aa25af Merge branch '1206-fix-tcp-high-water-release-note-v9_14' into 'v9_14'
[v9_14] Fix TCP high-water release note

See merge request isc-projects/bind9!2542
2019-11-06 15:36:15 +00:00
Michał Kępień 8e72c1aeb6 Fix TCP high-water release note
Add missing GitLab issue number to the TCP high-water release note and
put it in the "New Features" section where it belongs.

(cherry picked from commit d0a3273d4d)
2019-11-06 16:31:53 +01:00
Michał Kępień afcb1d8f8d Merge branch '1298-do-not-use-sys-sysctl.h-on-linux-v9_14' into 'v9_14'
[v9_14] Do not use <sys/sysctl.h> on Linux

See merge request isc-projects/bind9!2540
2019-11-06 15:14:12 +00:00
Michał Kępień ae933dec2c Do not use <sys/sysctl.h> on Linux
glibc 2.30 deprecated the <sys/sysctl.h> header [1].  However, that
header is still used on other Unix-like systems, so only prevent it from
being used on Linux, in order to prevent compiler warnings from being
triggered.

[1] https://sourceware.org/ml/libc-alpha/2019-08/msg00029.html

(cherry picked from commit 65a8b53bd0)
2019-11-06 16:00:02 +01:00
Michał Kępień d0344e2505 Merge branch '1206-add-assert_int_equal-shell-function-v9_14' into 'v9_14'
[v9_14] Add assert_int_equal() shell function

See merge request isc-projects/bind9!2539
2019-11-06 14:56:48 +00:00
Michał Kępień 0bb075808a Add assert_int_equal() shell function
Add a shell function which is used in the "tcp" system test, but has
been accidentally omitted from !2425.  Make sure the function does not
change the value of "ret" itself, so that the caller can decide what to
do with the function's return value.

(cherry picked from commit 8bb7f1f2a1)
2019-11-06 15:54:52 +01:00
Matthijs Mekking 9d8b4af026 Merge branch '1256-jitter-dynamically-updated-signatures-v9_14' into 'v9_14'
Resolve "Signature Expiration Jitter not working for dynamic NSEC3 zones"

See merge request isc-projects/bind9!2537
2019-11-06 14:53:28 +00:00
Ondřej SurýandMatthijs Mekking 8466be3e91 Add CHANGES
(cherry picked from commit 00569e0dfa)
2019-11-06 15:15:26 +01:00
Matthijs Mekking 75f31d2422 Test jitter distribution
Test jitter distribution in NSEC3 dynamic zone and for a zone that has old
signatures.  In both cases the generated signatures should be spread nicely.

(cherry picked from commit 540b90fd6c)
2019-11-06 15:15:15 +01:00
Witold KręcickiandMatthijs Mekking 662d10cba7 Jitter signatures times when adding dynamic records.
When doing regular signing expiry time is jittered to make sure
that the re-signing times are not clumped together. This expands
this behaviour to expiry times of dynamically added records.

When incrementally re-signing a zone use the full jitter range if
the server appears to have been offline for greater than 5 minutes
otherwise use a small jitter range of 3600 seconds.  This will stop
the signatures becoming more clustered if the server has been off
line for a significant period of time (> 5 minutes).

(cherry picked from commit 6b2fd40269)
2019-11-06 15:14:16 +01:00
Ondřej Surý 6db9d7c279 Merge branch '1206-tcp-high-water-stats-v9_14' into 'v9_14'
Resolve "Customer Feature Request:  Add "high-water" measurement for tcp-clients"

See merge request isc-projects/bind9!2530
2019-11-06 11:31:27 +00:00
Diego FronzaandOndřej Surý f3750b385c Added TCP high-water entry to CHANGES
(cherry picked from commit ba3fe75e65)
2019-11-06 11:29:35 +01:00
Diego FronzaandOndřej Surý 873973959d Added TCP high-water entry to release notes
(cherry picked from commit dd492b64d9)
2019-11-06 11:29:35 +01:00
Ondřej Surý bc760310cd Avoid an extra atomic_load() call 2019-11-06 11:29:35 +01:00
Diego FronzaandOndřej Surý 558d7ff5e5 Added TCP high-water system tests
Note: ans6/ans6.py is a helper script that allows tests.sh to open/close
TCP connections to some BIND instance.

(cherry picked from commit 29be224a04)
2019-11-06 11:26:22 +01:00
Diego FronzaandOndřej Surý d5cc3ed381 Added TCP high-water statistics variable
This variable will report the maximum number of simultaneous tcp clients
that BIND has served while running.

It can be verified by running rndc status, then inspect "tcp high-water:
count", or by generating statistics file, rndc stats, then inspect the
line with "TCP connection high-water" text.

The tcp-highwater variable is atomically updated based on an existing
tcp-quota system handled in ns/client.c.

(cherry picked from commit 66fe8627de)
2019-11-06 11:26:22 +01:00
Diego FronzaandOndřej Surý faf3cbe62d Add functions for collecting high-water counters
Add {isc,ns}_stats_{update_if_greater,get_counter}() functions that
are used to set and collect high-water type of statistics.

(cherry picked from commit a544e2e300)
2019-11-06 11:26:22 +01:00
Diego FronzaandOndřej Surý 733720a3f2 Change the isc_stat_t type to isc__atomic_statcounter_t
The isc_stat_t type was too similar to isc_stats_t type, so the name was
changed to something more distinguishable.

(cherry picked from commit eb5611a770)
2019-11-06 11:26:22 +01:00
Diego FronzaandOndřej Surý 02555bb7a5 Change the isc_statscounter_t type from int to C99 int_fast64_t type
For TCP high-water work, we need to keep the used integer types widths
in sync.

Note: int_fast32_t is used on WIN32 platform
(cherry picked from commit 0fc98ef2d5)
2019-11-06 11:26:22 +01:00
Ondřej Surý a217737764 Merge branch '1285-documentation-update-to-sortlist-feature-bugs-42615-v9_14' into 'v9_14'
arm: Add a sentence about overlaping selectors in sortlist statement

See merge request isc-projects/bind9!2532
2019-11-06 10:09:26 +00:00
Ondřej Surý 28884623fb arm: Add a sentence about overlaping selectors in sortlist statement
(cherry picked from commit ebc61946b2)
2019-11-06 11:08:17 +01:00
Michał Kępień 11f08caa9a Merge branch 'michal/split-release-notes-into-per-version-sections-v9_14' into 'v9_14'
[v9_14] Split release notes into per-version sections

See merge request isc-projects/bind9!2529
2019-11-06 09:13:46 +00:00
Michał Kępień 78d96b8fb9 Rebuild output files 2019-11-06 09:33:59 +01:00
Michał Kępień bb74ec04bb Update URLs used in release notes
Some URLs used in release notes became outdated.  Make sure they point
to currently available resources.
2019-11-06 09:33:59 +01:00
Michał Kępień 920920e68e Split release notes into per-version sections
Intertwining release notes from different BIND releases in a single XML
file has caused confusion in the past due to different (and often
arbitrary) approaches to keeping/removing release notes from older
releases on different BIND branches.  Divide doc/arm/notes.xml into
per-version sections to simplify determining the set of changes
introduced by a given release and to make adding/reviewing release notes
less error-prone.
2019-11-06 09:33:57 +01:00