Commit Graph
29752 Commits
Author SHA1 Message Date
Witold KręcickiandMichał Kępień 68012b2c82 libns: Rename ns_tcpconn refs member to clients 2019-11-06 16:37:13 +01:00
Witold KręcickiandMichał Kępień ea5dae9e25 Limit query pipelining within each TCP connection
Previously, there was no limit to the number of concurrently served
queries over one pipelined TCP connection; an unlimited number of
queries sent over a single TCP connection could have potentially
exhausted the server's resources.
2019-11-06 16:37:13 +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
Mark Andrews e700a0a67b Merge branch '1301-geoip2-default-data-path-v9_14' into 'v9_14'
Resolve "geoip2 default data path"

See merge request isc-projects/bind9!2526
2019-11-06 01:43:12 +00:00
Mark Andrews 82458699f9 Add CHANGES note
(cherry picked from commit 7b10faf108)
2019-11-06 12:28:52 +11:00
Mark Andrews dcf958b852 Regenerate configure.
(cherry picked from commit 51fb42edcb)
2019-11-06 12:28:52 +11:00
Mark Andrews 538b455490 Have 'named -V' report geoip-directory
(cherry picked from commit 2eaa75c380)
2019-11-06 12:28:52 +11:00
Mark Andrews ca036f346d The default geoip-directory should be <MAXMINDDB_PREFIX>/share/GeoIP
(cherry picked from commit fcd765a59d)
2019-11-06 11:47:32 +11:00
Mark Andrews 33b1a1ef0f MAXMINDDB_LIBS should end with '/lib' not '/libs'
(cherry picked from commit e0fe33506c)
2019-11-06 11:47:28 +11:00
Ondřej Surý d116a4ea9f Merge branch '664-fetches-per-server-quota-docs-v9_14' into 'v9_14'
Describe the polynomial backoff curve used in the quota adjustment

See merge request isc-projects/bind9!2523
2019-11-05 10:12:48 +00:00
Ondřej Surý 1ab5685d25 Describe the polynomial backoff curve used in the quota adjustment
(cherry picked from commit 56ef09c3a1)
2019-11-05 11:06:04 +01:00
Ondřej Surý d265ce0243 Merge branch '45-integrate-llvm-scan-build-to-gitlab-ci-workflow-v9_14' into 'v9_14'
Resolve "Integrate LLVM scan-build to GitLab CI workflow"

See merge request isc-projects/bind9!2521
2019-11-05 09:19:49 +00:00
Ondřej Surý 027f2c1518 libdns: add missing checks for return values in dnstap unit test
Related scan-build report:

dnstap_test.c:169:2: warning: Value stored to 'result' is never read
        result = dns_test_makeview("test", &view);
        ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dnstap_test.c:193:2: warning: Value stored to 'result' is never read
        result = dns_compress_init(&cctx, -1, dt_mctx);
        ^        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.

(cherry picked from commit e9acad638e)
2019-11-05 09:49:24 +01:00
Ondřej Surý 2d52a05f4f named: remove named_g_defaultdnstap global variable
The named_g_defaultdnstap was never used as the dnstap requires
explicit configuration of the output file.

Related scan-build report:

./server.c:3476:14: warning: Value stored to 'dpath' during its initialization is never read
        const char *dpath = named_g_defaultdnstap;
                    ^~~~~   ~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

(cherry picked from commit 6decd14592)
2019-11-05 09:48:51 +01:00
Ondřej Surý 72f9846be6 libdns: Change check_dnskey_sigs() return type to void to match the reality how the function is used
(cherry picked from commit 64cf5144a6)
2019-11-05 09:48:51 +01:00
Ondřej Surý 7a0019cfa1 tests: Resolve scan-build false positive by adding extra assertion
(cherry picked from commit 309dca417c)
2019-11-05 09:48:51 +01:00
Ondřej Surý 38866cb5c4 dnssec: don't qsort() empty hashlist
(cherry picked from commit 6bbb0b8e42)
2019-11-05 09:48:51 +01:00
Ondřej Surý aaded0efe0 named: Add INSIST() after bindkeysfile configuration load to silence scan-build FP
(cherry picked from commit 6bf364aec8)
2019-11-05 09:48:50 +01:00
Ondřej Surý fcfdd847f4 tests: Workaround scan-build false positive with FD_ZERO/FD_SET
(cherry picked from commit 7aa7f8592c)
2019-11-05 09:48:50 +01:00
Ondřej Surý 1be8170888 libdns: Remove useless checks for ISC_R_MEMORY, which cannot happen now
(cherry picked from commit 80b55d25de)
2019-11-05 09:48:50 +01:00
Ondřej Surý 9bf2ae0e0a ci: Add LLVM/Clang scan-build checks into the GitLab CI
(cherry picked from commit 5f584310bc)
2019-11-05 09:48:50 +01:00
Michal Nowak 742eb50347 Merge branch 'mnowak/1244-extra-quotes-around-TESTSOCK6/9_14' into 'v9_14'
[9.14] digdelv: Extra quotes prevent IPv6 runs

See merge request isc-projects/bind9!2515
2019-10-31 12:32:07 -04:00
Michal Nowak c7a1d051c5 digdelv: Extra quotes prevent IPv6 runs
Portion of the digdelv test are skipped on IPv6 due to extra quotes
around $TESTSOCK6: "I:digdelv:IPv6 unavailable; skipping".

Researched by @michal.

Regressed with 351efd8812.

(cherry picked from commit 1b6419f8a7)
2019-10-31 12:32:06 -04:00
Ondřej Surý cab2929b4f Merge branch '876-documentation-feedback-v9_14' into 'v9_14'
Resolve "Documentation feedback."

See merge request isc-projects/bind9!2513
2019-10-31 10:42:58 -04:00
Ondřej Surý 912040b611 arm: add more text describing interaction between automatic-interface-scan and interface-interval
(cherry picked from commit e0618174b6)
2019-10-31 09:09:06 -05:00
Ondřej Surý 5095ad31b1 arm: Fix the default for the lock-file command, it's 'none'
(cherry picked from commit f7eea400a8)
2019-10-31 09:09:06 -05:00