Commit graph

35782 commits

Author SHA1 Message Date
Michał Kępień
38dc460f56 Warn if security fixes are not marked for testing
(cherry picked from commit 5e02a007ca)
2024-03-29 10:45:06 +01:00
Petr Špaček
0018f068d1 Warn about release notes without CHANGES entry
(cherry picked from commit 0ba29730f7)
2024-03-29 10:45:06 +01:00
Petr Špaček
6c052a939d Detect change in supported RR types and issue Hazard warning
(cherry picked from commit 82cfb48295)
2024-03-29 10:45:05 +01:00
Michał Kępień
74ad1f305f Merge branch 'michal/extract-changes-checks-to-a-separate-gitlab-ci-job-9.16' into 'bind-9.16'
[9.16] Extract CHANGES checks to a separate GitLab CI job

See merge request isc-projects/bind9!8928
2024-03-29 07:42:58 +00:00
Michał Kępień
765e10fd46 Restore consistency in YAML anchor names
Commit 42b75e7759 added "pipelines" to CI
job trigger lists without updating the names of the YAML anchors
containing those lists accordingly.  Update YAML anchor names so that
they are consistent with their own contents.

(cherry picked from commit a7ece8e0bd)
2024-03-29 08:37:29 +01:00
Michał Kępień
5bf37976b7 Do not check CHANGES in pre-release pipelines
Since pre-release testing is usually carried out for branches in which
CHANGES entries are intentionally malformed to prevent entry numbering
conflicts down the road, do not run the "changes" GitLab CI job in
pipelines that are triggered by a parent pipeline (which can currently
only be a pre-release testing pipeline) to prevent triggering job
failures that would be meaningless anyway.

(cherry picked from commit 8c2503947f)
2024-03-29 08:37:29 +01:00
Michał Kępień
5971e5a604 Extract CHANGES checks to a separate GitLab CI job
Checking the contents of the CHANGES file currently requires invoking
multiple shell scripts.  These invocations are conflated with those for
other test scripts in the "misc" GitLab CI job.  Extract the commands
checking the contents of the CHANGES file to a separate GitLab CI job,
"changes", to improve readability.  Remove similar checks for the
CHANGES.SE file altogether as they are only relevant for BIND -S and
therefore should not be present in an open source branch.

(cherry picked from commit 1335e139f2)
2024-03-29 08:37:29 +01:00
Michał Kępień
cecafbbf98 Merge branch '4334-CVE-2023-5679-test-fix-9.16' into 'bind-9.16'
[9.16] Fix check interaction in the "serve-stale" test

See merge request isc-projects/bind9!8926
2024-03-28 18:35:12 +00:00
Michał Kępień
8f9d662a09 Merge branch '4334-CVE-2023-5679-test-9.16' into 'bind-9.16'
[9.16] [CVE-2023-5679] Check dns64 + server-stale short timeout

See merge request isc-projects/bind9!8924
2024-03-28 17:57:57 +00:00
Michał Kępień
82cc9e88d3 Fix check interaction in the "serve-stale" test
Commit f351c21034 modified the
"serve-stale" system test by adding the ns3/named9.conf.in configuration
file and making the ns3 named instance load that file near the end of
the test.  However, ns3/named9.conf.in changes the
stale-answer-client-timeout setting to a very low value, which affects
all subsequent checks in tests.sh (rather than just the check that needs
the low value to be set) and may cause false positives.  Fix by
reloading configuration from ns3/named8.conf.in as soon as the check
using a very low stale-answer-client-timeout value is finished.

(cherry picked from commit cd64a3747b)
2024-03-28 18:56:35 +01:00
Mark Andrews
f351c21034 Check dns64 + server-stale short timeout
Check that named correctly returns a synthesized DNS64 answer when the
server stale timer triggers for the A lookup.  Use a small value for
stale-answer-client-timeout (2ms) and delay the A response by 1 second.

(cherry picked from commit 2eee1e1761)
2024-03-28 15:28:55 +01:00
Michał Kępień
340910b41e Merge branch '4281-CVE-2023-5517-test-9.16' into 'bind-9.16'
[9.16] [CVE-2023-5517] Checking nxdomain-redirect against built-in RFC-1918 zone

See merge request isc-projects/bind9!8921
2024-03-28 14:12:22 +00:00
Mark Andrews
adad957108 Checking nxdomain-redirect against built-in RFC-1918 zone
Check that RFC 1918 leak detection does not trigger an assertion
when nxdomain redirection is enabled in the server but not for the
RFC 1918 reverse namespace.

(cherry picked from commit 2789906ce4)
2024-03-28 13:15:45 +01:00
Michal Nowak
42e270e0a9 Merge branch 'mnowak/freebsd-use-mit-kerberos5-9.16' into 'bind-9.16'
[9.16] Build FreeBSD with MIT Kerberos5 instead of Heimdal

See merge request isc-projects/bind9!8916
2024-03-27 09:24:12 +00:00
Michal Nowak
1cb0fea669
Build FreeBSD with MIT Kerberos5 instead of Heimdal
tsiggss system tests crash or are unstable with the base FreeBSD
(Heimdal-based) GSS-API.

Move the --without-gssapi ./configure option to Alpine Linux, so the
option is tested somewhere.

(cherry picked from commit d6df757fdc)
2024-03-27 09:54:57 +01:00
Michal Nowak
ed7d604710 Merge branch 'mnowak/replace-IO-Socket-INET6-with-IO-Socket-IP-9.16' into 'bind-9.16'
[9.16] IO::Socket::INET6 has been replaced by IO::Socket::IP

See merge request isc-projects/bind9!8912
2024-03-26 13:12:19 +00:00
Mark Andrews
0f4cdcde03
IO::Socket::INET6 has been replaced by IO::Socket::IP
IO::Socket::INET6 is no longer being maintained and its functionality
has been replaced by IO::Socket::IP.

(cherry picked from commit d1983adc22)
(cherry picked from commit fff8de8430)
2024-03-26 13:43:37 +01:00
Michal Nowak
f28c3d2c62 Merge branch 'mnowak/revert-05b09f2b5bb68a916288f56bf627babad4055b90-9.16' into 'bind-9.16'
[9.16] Revert "Work around a TSAN issue with newer kernels"

See merge request isc-projects/bind9!8909
2024-03-25 14:44:28 +00:00
Michal Nowak
27e6c2ad8f
Revert "Work around a TSAN issue with newer kernels"
This reverts commit 05b09f2b5b.

The workaround has been moved to the AMI image (isc-private/packer!10).

(cherry picked from commit aba16af556)
2024-03-25 15:35:59 +01:00
Tom Krizek
1cf9d6494a Merge branch 'tkrizek/resolver-test-export-home-9.16' into 'bind-9.16'
[9.16] Export variable in resolver system test

See merge request isc-projects/bind9!8899
2024-03-21 14:25:31 +00:00
Tom Krizek
0c50eb1ac3
Export variable in resolver system test
Variable assignment when calling subroutines might not be portable.
Notably, it doesn't work with FreeBSD shell, where the value of HOME
would be ignored in this case.

Since the commands are already executed in a subshell, export the HOME
variable to ensure it is properly handled in all shells.

(cherry picked from commit 86a192cece)
2024-03-21 14:16:16 +01:00
Michał Kępień
7e2af7a871 Merge branch 'michal/add-pipelines-to-ci-job-trigger-lists-9.16' into 'bind-9.16'
[9.16] Add "pipelines" to CI job trigger lists

See merge request isc-projects/bind9!8897
2024-03-21 11:33:00 +00:00
Michał Kępień
42b75e7759 Add "pipelines" to CI job trigger lists
To enable GitLab CI jobs in other projects to trigger pipelines in the
BIND 9 project using their CI_JOB_TOKEN, add "pipelines" to the relevant
GitLab CI job trigger lists.

(cherry picked from commit a4e9ce500a)
2024-03-21 12:31:52 +01:00
Petr Špaček
ca4724044c Merge branch '4649-work-around-a-tsan-issue-with-newer-kernels-9.16' into 'bind-9.16'
[9.16] Work around a TSAN issue with newer kernels

See merge request isc-projects/bind9!8895
2024-03-21 08:40:11 +00:00
Michał Kępień
c69147fb3b Work around a TSAN issue with newer kernels
The ThreadSanitizer version currently available from Fedora 39
repositories is unable to cope with very high ASLR entropy, which is the
default in some recent Linux distributions [1].  This causes all
TSAN-enabled builds to fail on the affected systems with an error like:

    FATAL: ThreadSanitizer: unexpected memory mapping 0x7d00e0772000-0x7d00e0c00000

Work around the problem by reducing ASLR entropy for all TSAN-enabled
builds until the problem is resolved upstream.

[1] https://github.com/google/sanitizers/issues/1716

(cherry picked from commit 05b09f2b5b)
2024-03-21 09:09:26 +01:00
Mark Andrews
f3f7a2fddd Merge branch '4580-add-resolver-arpa-to-the-built-in-empty-zones-bind-9.16' into 'bind-9.16'
[9.16] Resolve "Add resolver.arpa to the built in empty zones"

See merge request isc-projects/bind9!8891
2024-03-21 00:51:23 +00:00
Mark Andrews
adfe4e8b86 Add release note for [GL #4580]
(cherry picked from commit ecb043fc7b)
2024-03-21 11:23:39 +11:00
Mark Andrews
db5f356111 Add CHANGES entry for [GL #4580]
(cherry picked from commit d12c238750)
2024-03-21 11:23:37 +11:00
Mark Andrews
32d295e1dd Add RESOLVER.ARPA to the built in empty zones
RFC 9462 adds RESOLVER.ARPA to the list of built in empty zones.

(cherry picked from commit 49561277de)
2024-03-21 11:23:05 +11:00
Michał Kępień
c340f9d6e4 Merge tag 'v9.16.49' into bind-9.16 2024-03-20 14:37:45 +01:00
Michal Nowak
a3476f77f2 Merge branch 'mnowak/freebsd-13.3-9.16' into 'bind-9.16'
[9.16] Add FreeBSD 13.3

See merge request isc-projects/bind9!8877
2024-03-18 16:04:08 +00:00
Michal Nowak
99998fe220
Add FreeBSD 13.3
(cherry picked from commit 9019985d2d)
2024-03-18 16:05:03 +01:00
Michal Nowak
9baa7c3a79 Merge branch 'mnowak/move-stress-tests-to-freebsd-13-9.16' into 'bind-9.16'
[9.16] FreeBSD "stress" tests now run on FreeBSD 13.2

See merge request isc-projects/bind9!8873
2024-03-15 11:20:32 +00:00
Michal Nowak
0be7521f63
FreeBSD "stress" tests now run on FreeBSD 13.2
(cherry picked from commit 176bf877e1)
2024-03-15 12:17:04 +01:00
Matthijs Mekking
69ea55bcb4 Merge branch 'matthijs-add-rfc-9460-to-arm-v9.16' into 'bind-9.16'
[9.16] Add RFC 9460 to list of supported RFCs

See merge request isc-projects/bind9!8866
2024-03-14 13:29:27 +00:00
Matthijs Mekking
f59ed64cd8 Add RFC 9460 to list of supported RFCs
The specification was implemented (#1132) when it was a draft. Now that
it is RFC, add the RFC to the list of supported RFCs.

(cherry picked from commit 5b5f43babc)
2024-03-14 13:57:42 +01:00
Mark Andrews
23d8f148b3 Merge branch '4633-undefined-behaviour-in-rdataslab-c-bind-9.16' into 'bind-9.16'
[9.16] Resolve "Undefined behaviour in rdataslab.c"

See merge request isc-projects/bind9!8861
2024-03-14 00:50:22 +00:00
Mark Andrews
3bcd6385d4 Only call memmove if the rdata length is non zero
This avoids undefined behaviour on zero length rdata where the
data pointer is NULL.

(cherry picked from commit 228cc557fe)
2024-03-14 11:06:25 +11:00
Michał Kępień
93b877527c Merge branch 'michal/set-up-version-and-release-notes-for-bind-9.16.50' into 'bind-9.16'
Set up version and release notes for BIND 9.16.50

See merge request isc-projects/bind9!8858
2024-03-13 08:59:32 +00:00
Michał Kępień
ab5c429349
Set up release notes for BIND 9.16.50 2024-03-13 09:56:26 +01:00
Michał Kępień
0c2b5b41b5
Update BIND version to 9.16.50-dev 2024-03-13 09:56:26 +01:00
Matthijs Mekking
a1ac1e7cf2 Merge branch '4625-broken-trust-chain-on-corner-case-secure-chain-fixup-keytrap-test-only-v9_16' into 'bind-9.16'
[9.16] Test secure chain that includes inactive KSK

See merge request isc-projects/bind9!8851
2024-03-12 12:48:58 +00:00
Matthijs Mekking
0040947ae7 Test secure chain that includes inactive KSK
Add a regression test case for the scenario where a secure chain of
trust includes an inactive KSK, that is a KSK that is not signing the
DNSKEY RRset.

(cherry picked from commit f0bfd276e0)
2024-03-12 11:50:08 +01:00
Michał Kępień
d5b3d64b8b
Merge branch 'prep-release' into v9.16.49-release 2024-03-12 09:43:03 +01:00
Michał Kępień
6aae6e2fb0
prep 9.16.49 2024-03-12 09:42:34 +01:00
Michał Kępień
4fd6f0cac2 Merge branch 'pspacek/prepare-documentation-for-bind-9.16.49' into 'v9.16.49-release'
Prepare documentation for BIND 9.16.49

See merge request isc-private/bind9!672
2024-03-12 08:41:23 +00:00
Petr Špaček
5f6ab3d5e1
Prepare release notes for BIND 9.16.49 2024-03-12 09:40:29 +01:00
Petr Špaček
30c63061af Merge branch '4621-account-for-changes-to-struct-dns_rbtnode-9.16.49' into 'v9.16.49-release'
[9.16.49] Account for changes to struct dns_rbtnode

See merge request isc-projects/bind9!8841
2024-03-07 09:24:06 +00:00
Michał Kępień
95e0ccf683 Merge branch '4621-account-for-changes-to-struct-dns_rbtnode' into 'bind-9.16'
Account for changes to struct dns_rbtnode

See merge request isc-projects/bind9!8840
2024-03-07 09:02:45 +00:00
Michał Kępień
b138931fc0
Account for changes to struct dns_rbtnode
Commit eba7fb5f9f modified the definition
of struct dns_rbtnode.  Doing that changes the layout of map-format zone
files.  Bump MAPAPI and update the offsets used in map-format zone file
checks in the "masterformat" system test, as these changes were
inadvertently omitted from the aforementioned change.

(cherry picked from commit 52fe0b6be7)
2024-03-07 09:57:48 +01:00