Commit Graph

35299 Commits

Author SHA1 Message Date
Michal Nowak
ab9d43f814 Update sources to Clang 16 formatting 2023-05-11 14:26:14 +02:00
Michal Nowak
1a9d260424 Update clang to version 16
(cherry picked from commit 30aa258107)
2023-05-11 14:24:59 +02:00
Tom Krizek
d21e2ec36e Merge branch 'tkrizek/shutdown-test-exc-handling-9.16' into 'bind-9.16'
[9.16] Ensure named always terminates in the shutdown test

See merge request isc-projects/bind9!7903
2023-05-10 14:15:24 +00:00
Tom Krizek
fd1d359965 Ensure named always terminates in the shutdown test
Previously, if an exception would happen inside the `with` block, the
error handler would wait indefinitely for the process to end. That would
never happen, since the termination signal was never sent to named and
the test would get stuck.

Using the try-finally block ensures that the named process is always
killed and any exception or errors will be handled gracefully.

(cherry picked from commit 836e6ed284)
2023-05-10 13:32:55 +02:00
Tom Krizek
7bbc38da95 Refactor shutdown test into more helper functions
Improve code readability by splitting the test into more functions. Some
could be re-used later on for more general-purpose subprocess handling
or named checks.

(cherry picked from commit 9d64f1c1ed)
2023-05-10 13:32:51 +02:00
Michał Kępień
eba4910923 Merge branch 'michal/set-up-version-and-release-notes-for-bind-9.16.42' into 'bind-9.16'
Set up version and release notes for BIND 9.16.42

See merge request isc-projects/bind9!7901
2023-05-10 08:47:58 +00:00
Michał Kępień
4246799bed Set up release notes for BIND 9.16.42 2023-05-10 10:41:42 +02:00
Michał Kępień
bfb2a0c2a8 Update BIND version to 9.16.42-dev 2023-05-10 10:41:42 +02:00
Mark Andrews
7eb03dc29c Merge branch '2447-rbt_serialize_test-c-runtime-error-member-access-within-misaligned-address' into 'bind-9.16'
Resolve "rbt_serialize_test.c: runtime error: member access within misaligned address"

See merge request isc-projects/bind9!7852
2023-05-05 07:42:04 +00:00
Mark Andrews
300a2fb4ba Check the pointer alignments when deserialising
deserialize_corrupt_test may corrupt the pointers such that they
is no longer properly aligned.  Check that the alignment is consistent
with memory returned from isc_mem before checking the magic value.
2023-05-05 07:04:31 +00:00
Mark Andrews
9b57b81ed0 Merge branch '4027-nsec3-of-removed-empty-non-terminal-remains-in-chain-breaking-validation-tools-bind-9.16' into 'bind-9.16'
[9.16] Resolve "NSEC3 of removed empty-non-terminal remains in chain, breaking validation tools"

See merge request isc-projects/bind9!7868
2023-04-25 07:05:25 +00:00
Mark Andrews
96ebc38cd2 Add CHANGES note for [GL #4027]
(cherry picked from commit 7dbb2b877b)
2023-04-25 06:52:44 +01:00
Mark Andrews
aa73fda9bf Check removal of ENT when subdomains are removed
Empty-non-terminal NSEC records where not always removed when the
delegations generating them where removed via update. Check that
they now are.

(cherry picked from commit ad91a70d15)
2023-04-25 06:51:11 +01:00
Mark Andrews
3d8a223256 Cleanup orphaned empty-non-terminal NSEC3
When OPTOUT was in use we didn't ensure that NSEC3 records
for orphaned empty-non-terminals where removed.  Check if
there are orphaned empty-non-terminal NSEC3 even if there
wasn't an NSEC3 RRset to be removed in dns_nsec3_delnsec3.

(cherry picked from commit 27160c137f)
2023-04-25 06:46:17 +01:00
Michał Kępień
d94f2550fb Merge tag 'v9.16.40' into bind-9.16
BIND 9.16.40
2023-04-20 13:03:54 +02:00
Petr Špaček
cd086728ad Merge branch 'pspacek/set-up-version-and-release-notes-for-bind-9.16.41' into 'bind-9.16'
Set up release notes for BIND 9.16.41

See merge request isc-projects/bind9!7829
2023-04-14 08:48:25 +00:00
Petr Špaček
c3d9c2b08e Set up release notes for BIND 9.16.41 2023-04-13 10:02:03 +02:00
Petr Špaček
64de9b2f40 Update BIND version to 9.16.41-dev 2023-04-13 09:55:51 +02:00
Petr Špaček
113a865465 prep 9.16.40 v9.16.40 2023-04-11 18:57:00 +02:00
Petr Špaček
16c1b7c273 Merge branch 'pspacek/prepare-documentation-for-bind-9.16.40' into 'v9.16.40-release'
Prepare documentation for BIND 9.16.40

See merge request isc-private/bind9!511
2023-04-11 16:53:16 +00:00
Petr Špaček
6281e82cc6 Tweak and reword release notes
The fix is incomplete as mentioned in #3991, but it is not a new issue
so let's not add separate Known Issue entry for it.
2023-04-11 18:50:35 +02:00
Petr Špaček
4b8c034b14 Prepare release notes for BIND 9.16.40 2023-04-06 19:09:47 +02:00
Michal Nowak
2e2b49dbc9 Merge branch '3916-legacy-test-no-retries-in-resolution_fails-9.16' into 'bind-9.16'
[9.16] Do not retry in resolution_fails() on timeout

See merge request isc-projects/bind9!7817
2023-04-06 10:22:49 +00:00
Michal Nowak
6d5249c50c Do not retry in resolution_fails() on timeout
At the time of test number (19), there were 10 "sending packet to
10.53.0.7" lines in the "legacy/ns1/named.run" file; usually, only seven
are present:

    I:legacy:checking recursive lookup to edns 512 + no tcp server does not cause query loops (19)
    I:legacy:ns1 sent 10 queries to ns7, expected less than 10
    I:legacy:failed

Those three can be attributed to tests "8", "10", and "18", where the
dig of "resolution_fails()" retried after a timeout to succeed with
"status: SERVFAIL" subsequently, as seen in each of
dig.out.test{8,10,18} files.

    ;; communications error to 10.53.0.1#13093: timed out

    ; <<>> DiG 9.19.12-dev <<>> -p 13093 +tcp @10.53.0.1 edns512-notcp. TXT
    ; (1 server found)
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 5368
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

This retry is unnecessary because "resolution_fails()" considers timeout
a positive result.

(cherry picked from commit e05460c813)
2023-04-06 11:46:57 +02:00
Petr Špaček
ed260e6007 Merge branch 'pspacek/log-roll-doc-nits-9.16' into 'bind-9.16'
[9.16] Log rotation doc improvements

See merge request isc-projects/bind9!7808
2023-04-05 14:13:30 +00:00
Petr Špaček
f8e094bab8 Make rndc dnstap -roll docs easier to read
(cherry picked from commit 2897a45644)
2023-04-05 16:10:20 +02:00
Petr Špaček
0a401f3f8f Merge branch 'bug/main/rndc-dnstap-roll-9.16' into 'bind-9.16'
[9.16] Document that rndc dnstap -roll number is optional

See merge request isc-projects/bind9!7802
2023-04-05 12:11:35 +00:00
Petr Menšík
f316f581fd Make it obvious -roll number is optional
Manual page were updated to indicate it, but rndc -h still displays it
as required parameter. Make it look like optional.

(cherry picked from commit 0627214568)
2023-04-05 14:06:26 +02:00
Petr Špaček
4a6681ce97 Merge branch '3981-reduce-dnssec-verify-calls-9.16' into 'bind-9.16'
[9.16] Reduce dns_dnssec_verify calls made checking for revoked trust anchor

See merge request isc-projects/bind9!7778
2023-04-04 07:33:47 +00:00
Petr Špaček
dc6a888ea3 Export dns_view_istrusted() on Windows 2023-04-03 18:18:43 +02:00
Petr Špaček
1fd45928a3 Add release note for [GL #3981]
(cherry picked from commit 705a9ced01)
2023-04-03 17:50:16 +02:00
Mark Andrews
2e3588e550 Add CHANGES for [GL #3981]
(cherry picked from commit 5de552d545)
2023-04-03 17:49:28 +02:00
Mark Andrews
489cba33bb dns_view_untrust modifies dnskey->flags when it shouldn't
Copy the structure and declare dnskey as const.

(cherry picked from commit 21d828241b)
2023-04-03 17:48:31 +02:00
Mark Andrews
f708172d87 Handle dns_rdata_fromstruct failure dns_keytable_deletekey
dns_rdata_fromstruct in dns_keytable_deletekey can potentially
fail with ISC_R_NOSPACE.  Handle the error condition.

(cherry picked from commit b5df9b8591)
2023-04-03 17:48:31 +02:00
Mark Andrews
3cb366b1e0 Reduce the number of verifiations required
In selfsigned_dnskey only call dns_dnssec_verify if the signature's
key id matches a revoked key, the trust is pending and the key
matches a trust anchor.  Previously named was calling dns_dnssec_verify
unconditionally resulted in busy work.

(cherry picked from commit e68fecbdaa)
2023-04-03 17:48:31 +02:00
Mark Andrews
19f8033840 Add new view method dns_view_istrusted
dns_view_istrusted determines if the given key is treated as
being trusted by the view.

(cherry picked from commit 7278fff579)
2023-04-03 17:48:31 +02:00
Ondřej Surý
5c68a45af1 Merge branch '3710-properly-document-DF-flag-on-outbound-UDP--9.16' into 'bind-9.16'
Clarify the documentation about DF-flag

See merge request isc-projects/bind9!7772
2023-04-03 10:34:54 +00:00
Ondřej Surý
3b6f5ae784 Add CHANGES note for [GL #3710]
(cherry picked from commit d5921fafed)
2023-04-03 12:31:06 +02:00
Ondřej Surý
f768190acb Clarify the documentation about DF-flag
Remove the reference to setting the DF-flag as we don't do that right
now.  Rephrase the paragraph that the default value should not be
causing fragmentation.

(cherry picked from commit 61f276d5a4)
2023-04-03 12:30:46 +02:00
Matthijs Mekking
58b2b8be93 Merge branch 'matthijs-checkconf-kasp-test-bug-9.16' into 'bind-9.16'
[9.16] Fix kasp system test bug

See merge request isc-projects/bind9!7765
2023-03-31 14:00:45 +00:00
Matthijs Mekking
9e702807cb Fix kasp system test bug
This test was succeeding for the wrong reason (policy not found, rather
than bad key length).

(cherry picked from commit 106497b011)
2023-03-31 10:34:49 +02:00
Matthijs Mekking
8561c0ff4b Merge branch '3967-linkfix-dnssec-guide-9.16' into 'bind-9.16'
[9.18] linkfix in dnssec-guide/validation.rst

See merge request isc-projects/bind9!7747
2023-03-29 15:41:25 +00:00
Matthijs Mekking
c154fe7fb7 Add CHANGES for #3967
(cherry picked from commit 5a879028fe)
2023-03-29 17:10:22 +02:00
Matthijs Mekking
06ae5374fa Remove dead link to resolver test
The doc file doc/dnssec-guide/validation.rst points to a resolver test
site that is now down. Remove the dead link.

(cherry picked from commit 8e78f8fc0f)
2023-03-29 17:09:50 +02:00
Matthijs Mekking
db02eec371 Merge branch '3965-source-never-read-master.c-v9_16' into 'bind-9.16'
[9.16] Fix scan-build issue: initialized value never read

See merge request isc-projects/bind9!7739
2023-03-29 15:09:21 +00:00
Matthijs Mekking
56a7daf334 Add CHANGES entry for #3965
(cherry picked from commit 357b27b04f)
2023-03-29 15:08:36 +00:00
Matthijs Mekking
89c000f356 Fix scan-build issue: initialized value never read
Value stored to 'source' during its initialization is never read.

(cherry picked from commit 4c33277446)
2023-03-29 15:08:36 +00:00
Michal Nowak
d0096dbb72 Merge branch 'mnowak/drop-unit-and-system-test-jobs-9.16' into 'bind-9.16'
[9.16] Drop unit and system tests on amd64cross32

See merge request isc-projects/bind9!7741
2023-03-28 14:47:04 +00:00
Michal Nowak
75d656d9b8 Drop "unstable" Debian "bullseye" unit and system jobs
"Unstable" Debian "bullseye" unit and system jobs differ from unit and
system jobs on the Debian "bullseye" image by running a few more tests
enabled by the CI_ENABLE_ALL_TESTS environmental variable.  These tests
are no less stable than the rest, and thus to have distinct jobs for
them wastes resources.

Run "unstable" unit and system tests as part of stock Debian "bullseye"
jobs.

(cherry picked from commit 2b9111b435)
2023-03-28 16:41:03 +02:00
Michal Nowak
8ed6f0a075 Drop unit and system tests on amd64cross32
amd64cross32 jobs run a cross-compiled 32-bit BIND 9 on the 64-bit
platform. This approach brings no build issues, and it is a good way to
catch 32-bit issues in BIND 9 code-base and ensure cross-compilation
keeps working.

Unfortunately, running unit and system tests is a problem:

- #3269 - doth-ns1 frequently failed to start
- #3316 - quota_test sometimes fails to create new thread
- #3956 - tcp-ns1 sometimes fails to allocate memory

There's little value in running unit and system tests on the
amd64cross32 platform, and it only means the effort spent by QA by
looking into what turns out to be 32-bit limitations.

(cherry picked from commit f86d4f3bd8)
2023-03-28 16:41:01 +02:00