Commit Graph
34048 Commits
Author SHA1 Message Date
Ondřej Surý eb2463115f Rename sock->timer to sock->read_timer
Before adding the write timer, we have to remove the generic sock->timer
to sock->read_timer.  We don't touch the function names to limit the
impact of the refactoring.

(cherry picked from commit 45a73c113f)
2022-02-17 09:50:07 +01:00
Ondřej Surý 9b7a0cb778 Merge branch 'ondrej/add-UV_RUNTIME_CHECK-macro-v9_16' into 'v9_16'
Add UV_RUNTIME_CHECK() macro to print uv_strerror()

See merge request isc-projects/bind9!5846
2022-02-16 11:30:07 +00:00
Ondřej Surý cdd725f1db Add semantic patch to keep UV_RUNTIME_CHECK in sync
The UV_RUNTIME_CHECK() macro requires to keep the function name in sync
like this:

    r = func(...);
    UV_RUNTIME_CHECK(func, r);

Add semantic patch to keep the function name and return variable in sync
with the previous line.

(cherry picked from commit 62bd5cb08c)
2022-02-16 11:48:33 +01:00
Ondřej Surý 1c564b808f Use UV_RUNTIME_CHECK() as appropriate
Replace the RUNTIME_CHECK() calls for libuv API calls with
UV_RUNTIME_CHECK() to get more detailed error message when
something fails and should not.

(cherry picked from commit 8715be1e4b)
2022-02-16 11:48:30 +01:00
Ondřej Surý 88751da114 Add UV_RUNTIME_CHECK() macro to print uv_strerror()
When libuv functions fail, they return correct return value that could
be useful for more detailed debugging.  Currently, we usually just check
whether the return value is 0 and invoke assertion error if it doesn't
throwing away the details why the call has failed.  Unfortunately, this
often happen on more exotic platforms.

Add a UV_RUNTIME_CHECK() macro that can be used to print more detailed
error message (via uv_strerror() before ending the execution of the
program abruptly with the assertion.

(cherry picked from commit 62e15bb06d)
2022-02-16 11:46:10 +01:00
Matthijs Mekking cff0d3fbd0 Merge branch 'matthijs-document-dnssec-policy-keys-algorithm-match-v9_16' into 'v9_16'
Update documentation wrt key algorithms (9.16)

See merge request isc-projects/bind9!5843
2022-02-16 10:11:21 +00:00
Matthijs Mekking 483beec0fd Update documentation wrt key algorithms
Add a note to the DNSSEC guide and to the ARM reference that A ZSK/KSK
pair used for signing your zone should have the same algorithm.

This commit also updates the 'dnssec-policy/keys' example to use the
slightly more modern 'rsasha256' algorithm.

(cherry picked from commit 7365400610)
2022-02-16 10:25:30 +01:00
Michal Nowak 6917b32d6c Merge branch 'mnowak/make-cocci-parallel-v9_16' into 'v9_16'
[v9_16] Run spatch jobs in parallel

See merge request isc-projects/bind9!5833
2022-02-14 19:10:57 +00:00
Michal Nowak 2823885e1b Run spatch jobs in parallel
Also make the script more verbose to identify which patch is being
processed and check for failures in spatch standard error output.

(cherry picked from commit 48c44fe6d4)
2022-02-14 20:01:43 +01:00
Michal Nowak fb0aaa3c10 Merge branch 'mnowak/coverity-scan-2021.12-v9_16' into 'v9_16'
[v9_16] Update Coverity Scan CI job to 2021.12.1

See merge request isc-projects/bind9!5830
2022-02-14 17:59:01 +00:00
Michal Nowak d73143af51 Update Coverity Scan CI job to 2021.12.1
(cherry picked from commit f0edf07fbc)
2022-02-14 18:46:08 +01:00
Petr Špaček b1c7a94dc9 Merge branch 'pspacek/rfc-nits-v9_16' into 'v9_16'
Update and deduplicate list of RFCs in documentation [v9_16]

See merge request isc-projects/bind9!5828
2022-02-14 11:48:57 +00:00
Petr Špaček 3637ce9c7c Remove rfc-compliance list in plaintext - ARM deduplication
The plaintext version is now fully replaced by the doc/arm/general.rst.

(cherry picked from commit 63989e98ac)
2022-02-14 12:23:39 +01:00
Petr Špaček a2ebd90f30 Reorder list of supported RFCs in more user-oriented manner
For users it's not really important if a RFC is Internet Standard,
Proposed Standard, or Experimental. RFCs are now regrouped by
"Protocol", Best Current Practice, and "catch all" category FYI.

(cherry picked from commit 7fd61f9403)
2022-02-14 12:23:31 +01:00
Petr Špaček 636ea2d5bc Replace obsolete RFC2845 reference with RFC8945 (TSIG)
(cherry picked from commit 4dbad65bfd)
2022-02-14 12:21:27 +01:00
Petr Špaček f0d5e029bd Remove special chapter about IPv6 address formats from ARM
In 2022, IPv6 is not anything unusual, and it was really odd
to have it in a separate section next to a huge list of RFCs.

Fixes: #1918
(cherry picked from commit 2774b497a6)
2022-02-14 12:21:15 +01:00
Petr Špaček 519660c84a Replace obsolete RFC6944 reference with RFC8624 (DNSSEC algorithm status)
(cherry picked from commit 3c83a9d503)
2022-02-14 12:21:15 +01:00
Petr Špaček ee5d716ca7 Replace obsolete RFC5966 reference with RFC7766 (TCP)
(cherry picked from commit bd3b310eae)
2022-02-14 12:21:15 +01:00
Petr Špaček 717d218935 Replace obsolete RFC4408 reference with RFC7208 (SPF)
(cherry picked from commit f8cb0ac141)
2022-02-14 12:21:13 +01:00
Petr Špaček bc41ef8687 Replace obsolete RFC2915 reference with RFC3403 (NAPTR)
(cherry picked from commit 16dec1ff58)
2022-02-14 12:20:41 +01:00
Petr Špaček 09f562eb0d Add link to RFC8749 (DLV is historic)
(cherry picked from commit f7225db822)
2022-02-14 12:20:39 +01:00
Petr Špaček eef6134587 Add newer version of IDNA RFC to docs
(cherry picked from commit 09d6cf89df)
2022-02-14 12:20:14 +01:00
Petr Špaček d16197fe62 Remove obsolete RFCs from documentation
There is little point of listing all of the obsolete RFCs. I think it is
more likely confuse people than to do anything useful.

(cherry picked from commit 9437ea08e1)
2022-02-14 12:20:14 +01:00
Petr Špaček 8925fb2e56 Replace obsolete RFC6488 reference with RFC8659 (CAA)
(cherry picked from commit 2b5b777c07)
2022-02-14 12:20:11 +01:00
Petr Špaček d1ee57b4bd Remove obsolete book reference from ARM
(cherry picked from commit b686b5c161)
2022-02-14 12:19:29 +01:00
Petr Špaček d7ca8c4c9b Use Sphinx footnotes for DNS Reference Information
It limits risk of errors while doing updates, which are next in the
pipeline.

(cherry picked from commit f713984886)
2022-02-14 12:19:24 +01:00
Ondřej Surý 0456213334 Merge branch 'ondrej/change-bug-reporting-address-v9_16' into 'v9_16'
Change the bug reporting address from email to gitlab URI

See merge request isc-projects/bind9!5822
2022-02-11 08:26:17 +00:00
Ondřej Surý 13cc8e3109 Change the bug reporting address from email to gitlab URI
In autoconf, the AC_INIT() accepts bugreport address for reporting
issues (f.e. when the test suite fails).  Instead of providing generic
emails address, change this to the address where to report with the
default Bug template applied.

(cherry picked from commit bb60622250)
2022-02-11 08:55:17 +01:00
Ondřej Surý 5af0b34f1c Merge branch '3137-create-new-log-messages-when-entering-and-exiting-exlusive-task-mode-v9_16' into 'v9_16'
Log when starting and ending task exclusive mode

See merge request isc-projects/bind9!5820
2022-02-10 21:01:38 +00:00
Ondřej Surý 2889492865 Add CHANGES and release note for [GL #3137]
(cherry picked from commit 44aa8ef997)
2022-02-10 21:28:48 +01:00
Ondřej Surý 6b2d9dcfd9 Log when starting and ending task exclusive mode
The task exclusive mode stops all processing (tasks and networking IO)
except the designated exclusive task events.  This has impact on the
operation of the server.  Add log messages indicating when we start the
exclusive mode, and when we end exclusive task mode.

(cherry picked from commit b9cb29076f)
2022-02-10 21:22:46 +01:00
Ondřej Surý bb9cde6fb6 Merge branch '3130-cleanup-pthread-api-usage-v9_16' into 'v9_16'
Remove unused functions from isc_thread API

See merge request isc-projects/bind9!5809
2022-02-09 17:46:36 +00:00
Ondřej Surý ad5869ac6c Remove unused functions from isc_thread API
The isc_thread_setaffinity call was removed in !5265 and we are not
going to restore it because it was proven that the performance is better
without it.  Additionally, remove the already disabled cpu system test.

The isc_thread_setconcurrency function is unused and also calling
pthread_setconcurrency() on Linux has no meaning, formerly it was
added because of Solaris in 2001 and it was removed when taskmgr was
refactored to run on top of netmgr in !4918.

(cherry picked from commit 0500345513)
2022-02-09 18:09:48 +01:00
Michal Nowak 2c200922bb Merge branch '2599-run-less-stable-unit-tests-in-aws-v9_16' into 'v9_16'
[v9_16] Run unstable unit tests in CI

See merge request isc-projects/bind9!5807
2022-02-09 12:22:25 +00:00
Michal Nowak 14b0041474 Run unstable unit tests in CI
Running unstable unit tests in CI should help with making sure they
don't fail permanently without the fact being noticed in daily
pipelines.

(cherry picked from commit 1d8788464e)
2022-02-09 13:08:00 +01:00
Evan Hunt 826f744e16 Merge branch 'each-missing-relnotes-v9_16' into 'v9_16'
Release notes for [GL #3082] and [GL #3111]

See merge request isc-projects/bind9!5798
2022-02-02 20:06:30 +00:00
Evan Hunt 556f4d8870 Release notes for [GL #3082] and [GL #3111]
(cherry picked from commit d45f0e1d9e)
2022-02-02 12:04:48 -08:00
Petr Špaček e75ab60804 Merge branch '2974-improve-directory-documentation-v9_16' into 'v9_16'
Clarify effect of "directory" configuration option [v9_16]

See merge request isc-projects/bind9!5794
2022-02-02 11:39:20 +00:00
Ondřej SurýandPetr Špaček 774d82bde1 Clarify effect of "directory" configuration option
The "directory" configuration options affects the configuration listed
after the directive but not before which may affect ``include``
directive with relative file paths.

(cherry picked from commit 00ba6967b1)
2022-02-02 12:34:08 +01:00
Ondřej Surý 6107a5a932 Merge branch '3125-log-hard-quota-when-not-accepting-the-connection-v9_16' into 'v9_16'
Add log message when hard quota is reached in TCP accept

See merge request isc-projects/bind9!5790
2022-02-01 21:47:47 +00:00
Ondřej Surý 4f6f74015f Add CHANGES and release notes for [GL #3125]
(cherry picked from commit 932fc7b826703f8b0f30ed11c496f94a02e6ebbb)
2022-02-01 21:16:27 +01:00
Ondřej Surý 00e8bfcdfc Add log message when hard quota is reached in TCP accept
When isc_quota_attach_cb() API returns ISC_R_QUOTA (meaning hard quota
was reached) the accept_connection() would return without logging a
message about quota reached.

Change the connection callback to log the quota reached message.

(cherry picked from commit 2ae84702ad)
2022-02-01 21:06:43 +01:00
Petr Špaček d7d0289dd6 Merge branch '3120-recent-editions-9-17-22-onwards-of-arm-have-many-empty-grammar-descriptions-v9_16' into 'v9_16'
Fix empty grammar descriptions in the ARM [v9_16]

See merge request isc-projects/bind9!5787
2022-02-01 18:05:37 +00:00
Petr Špaček 3819f88c66 Rename parental-agents grammar file
For consistency with rest of the system, the grammar file and
the link anchors were renamed from "parentals" to "parental-agents".

Technically this is fixup for commit
90ef2b9c81.

Related: !5239
(reimplementation of commit 34a3b35b08)
2022-02-01 18:59:41 +01:00
Petr Špaček 2fd265eebe Regenerate .rst files with grammars after changes to rst generators
$ make -C doc/misc rst

(reimplementation of commit e97c35b3bc)
2022-02-01 18:59:31 +01:00
Mark AndrewsandPetr Špaček f6aa69889f Fix grammar generators to produce renderable include files in rst format
The missing `::` in the .rst files caused grammar section in docs to
render empty.

The `::` was accidentally removed in an unrelated commit
58bd26b6cf which was supposed to update
only copyright headers.

Fixes: #3120
(cherry picked from commit d975e6630f)
2022-02-01 18:29:23 +01:00
Mark AndrewsandPetr Špaček 8acbf77da0 Add missing rst-grammars.pl dependecy to config grammar build
(reimplementation of commit f5c66f311a)
2022-02-01 18:29:03 +01:00
Evan Hunt b9584ef68a Merge branch 'each-dns-clientinfo-v9_16' into 'v9_16'
allow dns_clientinfo to store client ECS data

See merge request isc-projects/bind9!5776
2022-01-28 00:31:02 +00:00
Evan Hunt 9219bc187f CHANGES for [GL #3082]
(cherry picked from commit e42f7d2722)
2022-01-27 16:20:55 -08:00
Evan Hunt ef20d189ab test ECS information is passed in dlzexternal
the dlzexternal test driver now includes ECS, if present in the
query, in the TXT record returned for QNAME "source-addr".

(cherry picked from commit 79ddedabf8)
2022-01-27 16:20:55 -08:00