Commit Graph

33754 Commits

Author SHA1 Message Date
Michal Nowak
3b95ecbd47 Add Debian 11 (bullseye)
(cherry picked from commit 2b5dfae5de)
2021-10-22 10:35:40 +02:00
Michal Nowak
74d2abdfc3 Merge branch 'mnowak/openbsd-7.0-v9_16' into 'v9_16'
[v9_16] Add OpenBSD 7.0

See merge request isc-projects/bind9!5523
2021-10-22 07:50:17 +00:00
Michal Nowak
85a37ee002 Add OpenBSD 7.0
(cherry picked from commit 75e873ed98)
2021-10-22 09:40:00 +02:00
Ondřej Surý
bbcd772b16 Merge branch 'ondrej/fix-missing-DNS_ZONEFLG_DUMPING-in-setmodtime-v9_16' into 'v9_16'
Add missing DNS_ZONEFLG_DUMPING to setmodtime()

See merge request isc-projects/bind9!5520
2021-10-21 10:52:44 +00:00
Ondřej Surý
40fa423fd3 Add missing DNS_ZONEFLG_DUMPING to setmodtime()
It was found, that the original commit adding the setmodtime() was
incompletely squashed and there was double check for
DNS_ZONEFLG_NEEDDUMP instead of check for DNS_ZONEFLG_NEEDDUMP and
DNS_ZONEFLG_DUMPING.

Change the duplicate check to DNS_ZONEFLG_DUMPING.

(cherry picked from commit 55ac6b7394)
2021-10-21 12:33:24 +02:00
Ondřej Surý
9d47109b2b Merge branch 'ondrej/fix-isc_time_add-overflow-v9_16' into 'v9_16'
Fix isc_time_add() overflow

See merge request isc-projects/bind9!5517
2021-10-21 08:17:22 +00:00
Ondřej Surý
3d4ec2f244 Add isc_time_add and isc_time_subtract unit test
The isc_time_add() and isc_time_subtract() didn't have a unit test, add
the unit test with couple of edge case vectors to check whether overflow
and underflow is correctly handled.

(cherry picked from commit 04511736a0)
2021-10-21 09:51:53 +02:00
Ondřej Surý
b58611a08b Fix isc_time_add() overflow
The isc_time_add() could overflow when t.seconds + i.seconds == UINT_MAX
and t.nanoseconds + i.nanoseconds >= NS_PER_S.

Fix the overflow in isc_time_add(), and simplify the ISC_R_RANGE checks
both in isc_time_add() and isc_time_subtract() functions.

(cherry picked from commit 8c05f12bc8)
2021-10-21 09:51:48 +02:00
Evan Hunt
68ee77ae42 Merge branch 'each-cleanup-qmin-test-v9_16' into 'v9_16'
fix qmin system test

See merge request isc-projects/bind9!5510
2021-10-20 08:56:22 +00:00
Evan Hunt
9456be2225 fix qmin system test
The qmin system test was printing spurious output.  On investigation,
the test case turned out to be both broken and ineffective: its
expectations were wrong, and it was printing the output because its
wrong expectations were not met, and those failed expectations were
not causing a test failure. All of this has been corrected.

(cherry picked from commit ac3eb921fc)
2021-10-20 01:36:53 -07:00
Michał Kępień
c144134532 Merge branch 'compat/main/arm-sphinx-v9_16' into 'v9_16'
[v9_16] Enable building documentation with Sphinx < 2.0.0

See merge request isc-projects/bind9!5507
2021-10-19 11:55:38 +00:00
Petr Mensik
7101192301 Enable building documentation with Sphinx < 2.0.0
The ReferenceRole class is only available in Sphinx >= 2.0.0, which
makes building BIND 9 documentation impossible with older Sphinx
versions:

    Running Sphinx v1.7.6

    Configuration error:
    There is a programable error in your configuration file:

    Traceback (most recent call last):
      File "/usr/lib/python3.6/site-packages/sphinx/config.py", line 161, in __init__
        execfile_(filename, config)
      File "/usr/lib/python3.6/site-packages/sphinx/util/pycompat.py", line 150, in execfile_
        exec_(code, _globals)
      File "conf.py", line 21, in <module>
        from sphinx.util.docutils import ReferenceRole
    ImportError: cannot import name 'ReferenceRole'

Work around the problem by defining a stub version of the ReferenceRole
class if the latter cannot be imported.  This allows documentation
(without GitLab hyperlinks in release notes) to be built with older
Sphinx versions.

(cherry picked from commit 8f8bbae3fc)
2021-10-19 13:47:48 +02:00
Ondřej Surý
b2b4d8117f Merge branch '2873-configuration-issues-on-solaris-v9_16' into 'v9_16'
Use correct compiler version flag in the autoconf script

See merge request isc-projects/bind9!5502
2021-10-18 13:46:44 +00:00
Ondřej Surý
36f97713a1 Use correct compiler version flag in the autoconf script
The autoconf script prints used compiler version at the end of the
configure script.  Solaris native compiler doesn't support --version,
and -V has to be used which in turn isn't supported by Gcc/Clang.
Detect which version flag has to be used and call $CC with it.

(cherry picked from commit 7eb208005f)
2021-10-18 15:27:18 +02:00
Mark Andrews
36d2c5b741 Merge branch '2326-some-of-the-statschannel-system-test-cases-fail-if-i-build-bind-9-16-9-v9_16' into 'v9_16'
Don't tests stats channels that haven't been configured

See merge request isc-projects/bind9!5495
2021-10-14 06:52:24 +00:00
Mark Andrews
981643b19a Don't tests stats channels that haven't been configured
pytest was failing because it was testing features that had
not been configured.  test to see if those features have been
configured before running the tests.

(cherry picked from commit 10c01cba61)
2021-10-14 17:33:01 +11:00
Evan Hunt
9093cd8662 Merge branch 'each-cleanup-ancient-v9_16' into 'v9_16'
cleanup references to ancient named.conf options

See merge request isc-projects/bind9!5492
2021-10-13 16:09:34 +00:00
Evan Hunt
6836e3c071 cleanup references to ancient named.conf options
some removed options were still referenced in config.c or the ARM.

(cherry picked from commit 69e25f41ae)
2021-10-12 23:52:39 -07:00
Ondřej Surý
8522d97433 Merge branch '2933-bump-the-default-clang-version-to-13-v9_16' into 'v9_16'
Change the LLVM tools version to 13

See merge request isc-projects/bind9!5488
2021-10-12 10:00:02 +00:00
Ondřej Surý
093cd31ae2 Update the source code formatting using clang-format-13
clang-format-13 fixed some of the formatting that clang-format-12 got
wrong.  Update the formatting.

(cherry picked from commit ed95f9fba3)
2021-10-12 11:31:55 +02:00
Ondřej Surý
173675bbd0 Change the LLVM tools version to 13
LLVM 13.0.0 was released on 4. October 2021, change the default version
to the current stable.

(cherry picked from commit 16916ab3e3)
2021-10-12 11:31:10 +02:00
Mark Andrews
64786a60b7 Merge branch '2935-cid-339035-1-of-1-explicit-null-dereferenced-forward_null-v9_16' into 'v9_16'
Fix cleanup of signature buffer in dns_dnssec_signmessage

See merge request isc-projects/bind9!5483
2021-10-12 00:09:22 +00:00
Mark Andrews
8a962622f2 Add CHANGES for [GL #2935]
(cherry picked from commit c48ca52851)
2021-10-12 10:19:49 +11:00
Mark Andrews
187787c723 Fix cleanup of signature buffer in dns_dnssec_signmessage
A NULL pointer could be freed if error handling occured.

(cherry picked from commit 0378c05ba0)
2021-10-12 10:19:08 +11:00
Mark Andrews
5f07ee0da3 Merge branch '2901-large-number-of-small-zones-in-map-format-cannot-be-loaded' into 'v9_16'
Resolve "Large number of small zones in `map` format cannot be loaded"

See merge request isc-projects/bind9!5398
2021-10-06 23:41:35 +00:00
Mark Andrews
f6e66e94f0 document 'masterfile-format map' vs 'vm.max_map_count' 2021-10-06 23:22:10 +00:00
Arаm Sаrgsyаn
092284b2a8 Merge branch '2818-catz-arm-primaries-masters-fix-v9_16' into 'v9_16'
[v9_16] Fix catalog zones configuration syntax in the ARM

See merge request isc-projects/bind9!5459
2021-10-05 13:11:27 +00:00
Aram Sargsyan
72d12aff56 Fix catalog zones configuration syntax in the ARM
The 55636ab5 commit made some changes in the reference manual
regarding catalog zones which do not actually correspond to reality
for the v9_16 branch.

This commit reverts those changes.
2021-10-05 12:46:57 +00:00
Mark Andrews
b16d52c13c Merge branch '2900-listenlist_test-notify_test-and-query_test-failing-v9_16' into 'v9_16'
Increase the number of file descriptors available

See merge request isc-projects/bind9!5462
2021-10-05 09:54:32 +00:00
Mark Andrews
050e6e757a Increase the number of file descriptors available
The 'listenlist_test', 'notify_test', and 'query_test' tests failed
when the descriptor limit was 256 on MacOS 11.6 with 8 cpus. On the
test platform the limit needed to be increased to ~400.  Increase
the limit to at least 1024 to give some head room.

(cherry picked from commit 877f52b772)
2021-10-05 17:46:56 +11:00
Arаm Sаrgsyаn
9298caddf4 Merge branch '2308-catz-reload-when-missing-a-zone-v9_16' into 'v9_16'
[v9_16] Handle a missing zone when reloading a catalog zone

See merge request isc-projects/bind9!5454
2021-09-30 20:43:24 +00:00
Aram Sargsyan
b85e92f82f Add CHANGES and release notes for [GL #2308]
(cherry picked from commit 3edaa0bde6)
2021-09-30 20:16:25 +00:00
Aram Sargsyan
311074f51e Handle a missing zone when reloading a catalog zone
Previously a missing/deleted zone which was referenced by a catalog
zone was causing a crash when doing a reload.

This commit will make `named` to ignore the fact that the zone is
missing, and make sure to restore it later on.

(cherry picked from commit 94a5712801)
2021-09-30 20:15:19 +00:00
Ondřej Surý
a6741da4af Merge branch '2908-rwlock-with-reader-and-writer-both-waiting-v9_16' into 'v9_16'
Pause the dbiterator before calling dns_db_find

See merge request isc-projects/bind9!5450
2021-09-29 16:23:31 +00:00
Mark Andrews
85fd9821e5 Add CHANGES note for [GL #2908]
(cherry picked from commit c04bce278f)
2021-09-29 18:04:14 +02:00
Mark Andrews
21771f5295 Pause the dbiterator before calling dns_db_find
zone.c:integrity_checks() acquires a read lock while iterating the
zone database, and calls zone_check_mx() which acquires another
read lock. If another thread tries to acquire a write lock in the
meantime, it can deadlock. Calling dns_dbiterator_pause() to release
the first read lock prevents this.

(cherry picked from commit 4e1faa35d5)
2021-09-29 18:04:14 +02:00
Mark Andrews
b166563e06 Merge branch '2911-9-16-21-regression-legacy-check-names-configuration-does-not-work-anymore-v9_16' into 'v9_16'
Fix "check-names master" and "check-names slave"

See merge request isc-projects/bind9!5448
2021-09-29 10:11:56 +00:00
Mark Andrews
190f71f93a Add CHANGES note for [GL #2911]
(cherry picked from commit 14249ce9fe)
2021-09-29 19:52:31 +10:00
Mark Andrews
0a6ed417b5 Check that 'check-names {secondary|slave} ignore;' works
(cherry picked from commit 0b0d400d7c)
2021-09-29 19:51:53 +10:00
Mark Andrews
f72946794f Check that 'check-names master ignore;' works
(cherry picked from commit 9107c8caeb)
2021-09-29 19:51:53 +10:00
Mark Andrews
7aa30aae38 Fix "check-names master" and "check-names slave"
check for type "master" / "slave" at the same time as checking
for "primary" / "secondary" as we step through the maps.

Checking "primary" then "master" or "master" then "primary" does
not work as the synomym is not checked for to stop the search.
Similarly with "secondary" and "slave".

(cherry picked from commit a3c6516a75)
2021-09-29 19:51:53 +10:00
Mark Andrews
617d786713 Merge branch '2909-pointers-used-before-validation-v9_16' into 'v9_16'
Address use before NULL check warning of uvreq

See merge request isc-projects/bind9!5445
2021-09-29 02:02:50 +00:00
Mark Andrews
74353330cd Address use before NULL check warning of obj
move deference of obj to after NULL check

(cherry picked from commit 06a69e03ac)
2021-09-29 11:43:14 +10:00
Mark Andrews
5dff412a08 Address use before NULL check warning of ievent->sock
Reorder REQUIRE checks to ensure ievent->sock is checked earlier

(cherry picked from commit 8fc9bb8e8e)
2021-09-29 11:43:14 +10:00
Mark Andrews
addd580b0a Address use before NULL check warning of uvreq
move dereference of uvreq until the after NULL check.

(cherry picked from commit 7079829b84)
2021-09-29 11:43:14 +10:00
Mark Andrews
3859fea828 Merge branch '2910-unknown-system-test-doesn-t-leave-forensics-v9_16' into 'v9_16'
Preserve dig results in case of test failure

See merge request isc-projects/bind9!5441
2021-09-24 04:19:03 +00:00
Mark Andrews
3295339391 Preserve dig results in case of test failure
(cherry picked from commit 96b7421f8c)
2021-09-24 13:37:43 +10:00
Matthijs Mekking
dd1454bc67 Merge branch 'matthijs-fix-arm-typos-v9_16' into 'v9_16'
The s stands for security (9.16)

See merge request isc-projects/bind9!5439
2021-09-23 09:56:21 +00:00
Matthijs Mekking
dff495a0d0 Remove copy paste error on zone-max-ttl
The "zone-max-ttl" option inside a "dnssec-policy" is not used to cap
the TTLs in a zone, only yo calculate key rollover timings.

(cherry picked from commit 4e3ba81696)
2021-09-23 09:53:01 +02:00
Matthijs Mekking
cc8391943c Add a note about salt length
Apparently it is confusing that you don't specify a specific salt,
but a salt length.

(cherry picked from commit 9ddc23b2bf)
2021-09-23 09:52:55 +02:00