Commit Graph
29639 Commits
Author SHA1 Message Date
Evan HuntandOndřej Surý 20060f8754 reduce the max-recursion-queries default to 32
the number of iterative queries that can be sent to resolve a
name now defaults to 32 rather than 100.

(cherry picked from commit 7e3b425dc2)
(cherry picked from commit a11367ade3)
2024-08-20 17:34:46 +00:00
Evan HuntandOndřej Surý 910f42db8c make "max_restarts" a configurable value
MAX_RESTARTS is no longer hard-coded; ns_server_setmaxrestarts()
and dns_client_setmaxrestarts() can now be used to modify the
max-restarts value at runtime. in both cases, the default is 11.

(cherry picked from commit c5588babaf)
(cherry picked from commit bfbc6a6c84)
2024-08-20 17:34:46 +00:00
Evan HuntandOndřej Surý 6f2090586b reduce MAX_RESTARTS to 11
the number of steps that can be followed in a CNAME chain
before terminating the lookup has been reduced from 16 to 11.
(this is a hard-coded value, but will be made configurable later.)

(cherry picked from commit 05d78671bb)
(cherry picked from commit dd88a4cdfc)
2024-08-20 17:34:46 +00:00
Evan HuntandOndřej Surý 09631e2a9c add debug logging when creating or attaching to a query counter
fctx_create() now logs at debug level 9 when the fctx attaches
to an existing counter or creates a new one.

(cherry picked from commit 825f3d68c5)
(cherry picked from commit 14bce7e275)
2024-08-20 17:34:46 +00:00
Evan HuntandOndřej Surý 9eb6d56b12 apply max-recursion-queries quota to validator queries
previously, validator queries for DNSKEY and DS records were
not counted toward the quota for max-recursion-queries; they
are now.

(cherry picked from commit af7db89513)
(cherry picked from commit 18e39d989f)
2024-08-20 17:34:46 +00:00
Evan HuntandOndřej Surý 37212b6e24 attach query counter to NS fetches
there were cases in resolver.c when queries for NS records were
started without passing a pointer to the parent fetch's query counter;
as a result, the max-recursion-queries quota for those queries started
counting from zero, instead of sharing the limit for the parent fetch,
making the quota ineffective in some cases.

(cherry picked from commit d3b7e92783)
(cherry picked from commit 5ab4cae4ed)
2024-08-20 17:34:46 +00:00
Michal Nowak bd96baa806 [9.11] rem: ci: Drop Oracle Linux 7
See #3729

Backport of MR !9352

Merge branch 'backport-3729-drop-oracle-linux-7-9.11' into 'bind-9.11'

See merge request isc-projects/bind9!9354
2024-08-19 16:13:48 +00:00
Michal Nowak 525159ace6 Drop Oracle Linux 7
(cherry picked from commit 4af28f9ffc)
2024-08-19 18:04:50 +02:00
Ondřej Surý 56f4490ca2 [9.11] chg: test: Drop TSAN jobs, drop bullseye jobs
The new TSAN images, the TSAN-enabled images install libraries to
opt/tsan, this doesn't work, just drop the TSAN jobs.


Additionally, drop Debian bullseye that's EOL now.

Backport of MR !9324

Merge branch 'backport-ondrej/use-staging-tsan-images-9.11' into 'bind-9.11'

See merge request isc-projects/bind9!9328
2024-08-16 08:20:27 +00:00
Ondřej Surý 5b5731c801 Don't bother with TSAN jobs for end-of-life release 2024-08-16 08:45:31 +02:00
Ondřej Surý 18b6a237d9 Add -DOPENSSL_SUPPRESS_DEPRECATED to allow compilation with OpenSSL 3.x 2024-08-16 08:45:31 +02:00
Ondřej Surý 4467114191 Remove Debian bullseye jobs
The Debian bullseye has reached end-of-life, remove it from the CI.

(cherry picked from commit d02d6af2b9)
2024-08-16 08:10:41 +02:00
Ondřej Surý 4fa4f5e07a For TSAN builds, use libraries from /opt/tsan
The new TSAN images, the TSAN-enabled images install libraries to
/opt/tsan, synchronize the configure options and CFLAGS between gcc:tsan
and clang:tsan images and set the PKG_CONFIG_PATH to /opt/tsan/lib.

(cherry picked from commit 2a46396f29)
2024-08-16 08:08:51 +02:00
Nicki Křížek 8151fb96ae [9.11] chg: Remove danger checks for release notes and CHANGES
Since 9.21.0-dev, the release notes and changelog process has been
changed. Backport to the EoL branch are no longer expected to have
either CHANGES or release notes, as we aren't going to release any more
versions anyway.

Related #75

Merge branch '75-gitchangelog-9.11' into 'bind-9.11'

See merge request isc-projects/bind9!9183
2024-08-05 15:56:02 +00:00
Nicki Křížek d547a6ff52 Remove danger checks for release notes and CHANGES
Since 9.21.0-dev, the release notes and changelog process has been
changed. Backport to the EoL branch are no longer expected to have
either CHANGES or release notes, as we aren't going to release any more
versions anyway.

Related #75
2024-08-05 16:52:56 +02:00
Nicki Křížek 0f2c4ef778 [9.11] chg: Retry job in case of AWS Spot Instance interruption
Closes #4777

Backport of MR !9107

Merge branch '4777-retry-job-aws-spot-instance-interruption-event-9.11' into 'bind-9.11'

See merge request isc-projects/bind9!9187
2024-07-29 14:54:15 +00:00
Emanuel PetrandNicki Křížek 011420406e Retry job in case of AWS Spot Instance interruption
(cherry picked from commit bbcce1bfc1)
2024-07-29 15:37:33 +02:00
Nicki Křížek 225f286192 [9.11] [CVE-2024-1975] Remove support for SIG(0) message verification
Backport of isc-private/bind9!690 

Fixes: isc-projects/bind9#4480

Merge branch '4480-drop-sig0-support-bind-9.11' into 'bind-9.11'

See merge request isc-projects/bind9!9173
2024-07-24 11:14:16 +00:00
Petr ŠpačekandNicki Křížek df27b977fe Add CHANGES note for [GL #4480]
(cherry picked from commit 6eda4f465aa75eb6d66a27f2d7a3dfae7611ecf9)
2024-07-24 12:15:23 +02:00
Aram SargsyanandNicki Křížek cd9b8b9552 Adapt the upforwd test to the SIG(0) removal
Change the check so that update with SIG(0) is expected to fail.

(cherry picked from commit 5f7558f6dbb0527c08caf281299245ab8de268cd)
2024-07-24 12:15:23 +02:00
Petr ŠpačekandNicki Křížek a2f3590ceb Adapt the tsiggss test to the SIG(0) removal
Test that SIG(0) signer is NOT sent to the external socket for
authorization. It MUST NOT be considered a valid signature by
any chance.

Also check that the signer's name does not appear in authsock.pl
output.

(cherry picked from commit cf8838085905171fbc00747eb210e8b8284ca0e1)
2024-07-24 12:15:23 +02:00
Aram SargsyanandNicki Křížek daa96442c4 Enable stdout autoflush in authsock.pl
With enabled buffering the output gets lost when the process
receives a TERM signal. Disable the buffering.

(cherry picked from commit a0311dfb6e2a51f89dfa8b200b96a0f4675fb654)
2024-07-24 12:15:22 +02:00
Petr ŠpačekandNicki Křížek 9dc5c3709f Remove support for SIG(0) message verification
(cherry picked from commit 857fd5c346e3309ee8e280c29174b46579af5a13)
2024-07-24 12:15:21 +02:00
Nicki Křížek f8e5f90aad [9.11][CVE-2024-1737 (part 2)] Be smarter about refusing to add many RR types to the database
Add HTTPS, SVCB, SRV, PTR, NAPTR, DNSKEY and TXT records to the list of
the priority types that are put at the beginning of the slabheader list
for faster access and to avoid eviction when there are more types than
the max-types-per-name limit.

(cherry picked from commit b27c6bcce8)

---

Backport of MR https://gitlab.isc.org/isc-private/bind9/-/merge_requests/712

Related https://gitlab.isc.org/isc-projects/bind9/-/issues/3405

Merge branch '3405-limit-the-number-of-resource-records-in-rrset-nxdomain-9.11' into 'bind-9.11'

See merge request isc-projects/bind9!9171
2024-07-24 10:10:27 +00:00
Ondřej SurýandNicki Křížek e4d7ce686b Be smarter about refusing to add many RR types to the database
Instead of outright refusing to add new RR types to the cache, be a bit
smarter:

1. If the new header type is in our priority list, we always add either
   positive or negative entry at the beginning of the list.

2. If the new header type is negative entry, and we are over the limit,
   we mark it as ancient immediately, so it gets evicted from the cache
   as soon as possible.

3. Otherwise add the new header after the priority headers (or at the
   head of the list).

4. If we are over the limit, evict the last entry on the normal header
   list.

(cherry picked from commit 57cd34441a)
2024-07-24 11:06:03 +02:00
Ondřej SurýandNicki Křížek 3e0a67e4bd Expand the list of the priority types
Add HTTPS, SVCB, SRV, PTR, NAPTR, DNSKEY and TXT records to the list of
the priority types that are put at the beginning of the slabheader list
for faster access and to avoid eviction when there are more types than
the max-types-per-name limit.

(cherry picked from commit b27c6bcce8)
2024-07-24 11:06:03 +02:00
Nicki Křížek 5f25fd9462 [9.11][CVE-2024-1737] Add a limit to the number of RRs in RRSets
Previously, the number of RRs in the RRSets were internally unlimited.
As the data structure that holds the RRs is just a linked list, and
there are places where we just walk through all of the RRs, adding an
RRSet with huge number of RRs inside would slow down processing of said
RRSets.

The fix for end-of-life branches make the limit compile-time only for
simplicity and the limit can be changed at the compile time by adding
following define to CFLAGS:

    -DDNS_RDATASET_MAX_RECORDS=<limit>

Backport of https://gitlab.isc.org/isc-private/bind9/-/merge_requests/698

See isc-projects/bind9#3405

Merge branch '3405-limit-the-number-of-resource-records-in-rrset-9.11' into 'bind-9.11'

See merge request isc-projects/bind9!9169
2024-07-24 08:55:54 +00:00
Ondřej Surý 3f10d6eff0 Add a limit to the number of RR types for single name
Previously, the number of RR types for a single owner name was limited
only by the maximum number of the types (64k).  As the data structure
that holds the RR types for the database node is just a linked list, and
there are places where we just walk through the whole list (again and
again), adding a large number of RR types for a single owner named with
would slow down processing of such name (database node).

Add a hard-coded limit (100) to cap the number of the RR types for a single
owner.  The limit can be changed at the compile time by adding following
define to CFLAGS:

    -DDNS_RBTDB_MAX_RTYPES=<limit>

(cherry picked from commit 538b843d84f49ba5125ff545e3d0cf1c8434a8f2)
2024-06-05 09:02:14 +02:00
Ondřej Surý b9b5485b22 Add a limit to the number of RRs in RRSets
Previously, the number of RRs in the RRSets were internally unlimited.
As the data structure that holds the RRs is just a linked list, and
there are places where we just walk through all of the RRs, adding an
RRSet with huge number of RRs inside would slow down processing of said
RRSets.

The fix for end-of-life branches make the limit compile-time only for
simplicity and the limit can be changed at the compile time by adding
following define to CFLAGS:

    -DDNS_RDATASET_MAX_RECORDS=<limit>

(cherry picked from commit c5c4d00c38530390c9e1ae4c98b65fbbadfe9e5e)
(cherry picked from commit 7f705778af729ada7fec36ac4b456c73329bd996)
2024-06-05 09:02:14 +02:00
Michal Nowak 93c9df4659 Merge branch 'mnowak/drop-broken-jobs' into 'bind-9.11'
[9.11] Drop "stress" tests and pairwise jobs

See merge request isc-projects/bind9!9081
2024-05-31 10:35:37 +00:00
Michal Nowak 6b31e3a64c Drop "stress" tests
In non-EoL branches these jobs were ported to AWS, older configurations
won't work.
2024-05-31 10:06:08 +02:00
Michal Nowak a68218692e Drop pairwise job
Just porting the job to Debian "bookworm" won't work:

    ../../../lib/dns/openssl_link.c:246:9: error: 'ENGINE_load_builtin_engines' is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
      246 |         ENGINE_load_builtin_engines();
          |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-05-31 10:04:13 +02:00
Nicki Křížek c5c25044a6 Merge branch 'nicki/use-bind-team-gitlab-tokens-9.11' into 'bind-9.11'
[9.11] Use bind-team tokens for CI gitlab access

See merge request isc-projects/bind9!9070
2024-05-27 11:37:19 +00:00
Nicki Křížek 223741db81 Use BIND_TEAM_API_TOKEN for danger bot
This is done to unify the token usage across our repositories to
simplify token maintenance.

(cherry picked from commit 6767172bc0)
2024-05-27 11:28:16 +00:00
Michal Nowak c9d7e61b51 Merge branch 'mnowak/update-urls-and-paths-for-the-bind-9-qa-repository-9.11' into 'bind-9.11'
[9.11] Update URLs and paths for the BIND 9 QA repository

See merge request isc-projects/bind9!8993
2024-04-29 13:21:56 +00:00
Michał KępieńandMichal Nowak 0d6fbb18c8 Update URLs and paths for the BIND 9 QA repository
Since the BIND 9 QA repository has been made public, adjust the relevant
URLs and paths used in .gitlab-ci.yml so that they work with the public
version of that repository.

(cherry picked from commit 25ec1d79e4)
2024-04-29 13:25:58 +02:00
Michał Kępień d21b6fe29c Merge branch 'michal/extract-changes-checks-to-a-separate-gitlab-ci-job-9.11' into 'bind-9.11'
[9.11] Extract CHANGES checks to a separate GitLab CI job

See merge request isc-projects/bind9!8930
2024-03-29 08:00:35 +00:00
Michał Kępień e189749d2a 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:55:45 +01:00
Michał Kępień 175b4af118 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:55:45 +01:00
Michał Kępień f412d4f851 Merge branch 'michal/add-pipelines-to-ci-job-trigger-lists-9.11' into 'bind-9.11'
[9.11] Add "pipelines" to CI job trigger lists

See merge request isc-projects/bind9!8929
2024-03-29 07:54:32 +00:00
Michał Kępień c864ed2e0e 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.
2024-03-29 08:52:51 +01:00
Michal Nowak 96284dc1c3 Merge branch 'mnowak/disable-dnstap-in-ci' into 'bind-9.11'
[9.11] Disable dnstap testing globally

See merge request isc-projects/bind9!8917
2024-03-28 10:21:13 +00:00
Michal Nowak 29798de0e9 Disable dnstap testing globally
The dnstap system test fails permanently. Given that we don't have the
resources to investigate and fix the issue in this EoL branch, turn off
dnstap globally.

    I:dnstap:checking that named-checkconf detects no error in good-fstrm-set-reopen-interval.conf
    I:dnstap:wait for servers to finish loading
    I:dnstap:checking initial message counts
    I:dnstap:checking UDP message counts
    I:dnstap:ns3        3 expected 4
    I:dnstap:failed
    I:dnstap:checking TCP message counts
    I:dnstap:checking AUTH_QUERY message counts
    I:dnstap:checking AUTH_RESPONSE message counts
    I:dnstap:checking CLIENT_QUERY message counts
    I:dnstap:checking CLIENT_RESPONSE message counts
    I:dnstap:ns3        1 expected 2
    I:dnstap:failed

But enable dnstap in Debian "stretch" CI jobs to ensure it builds and
gets at least minimal testing.
2024-03-27 10:37:52 +01:00
Michal Nowak b8dbe274eb Merge branch 'mnowak/replace-IO-Socket-INET6-with-IO-Socket-IP-9.11' into 'bind-9.11'
[9.11] IO::Socket::INET6 has been replaced by IO::Socket::IP

See merge request isc-projects/bind9!8913
2024-03-26 16:46:21 +00:00
Mark AndrewsandMichal Nowak bd96046b8c 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 14:06:13 +01:00
Ondřej Surý 4634f25cc2 Merge branch 'bug/9.11/4424-nothread-fixes-2' into 'bind-9.11'
Additional fixes to non-thread version

See merge request isc-projects/bind9!8792
2024-02-28 14:19:36 +00:00
Petr Menšík 53fcfb8b8f Additional fixes to non-thread version
Correct some errors in previous non-threaded changes. With these changes
unit tests in non-threaded versions pass again.

Related to [GL #4424] and [GL #4459], fixup of !8786.
2024-02-28 14:13:46 +01:00
Ondřej Surý 6db15e8b68 Merge branch 'bug/9.11/4424-nothread-fixes' into 'bind-9.11'
Add normal task queue also to non-thread version

See merge request isc-projects/bind9!8786
2024-02-26 21:31:34 +00:00
Petr Menšík 74b170bf3c Add normal task queue also to non-thread version
Non-thread builds are used by us for dhcp package. Make it working
again.

Related to [GL #4424] and [GL #4459].
2024-02-26 21:36:10 +01:00
Ondřej Surý f6ae189614 Merge branch '4595-fix-expire-lru-headers-race-9.11' into 'bind-9.11'
[9.11] Do not use header_prev in expire_lru_headers

See merge request isc-projects/bind9!8778
2024-02-23 14:51:44 +00:00