Commit Graph

36515 Commits

Author SHA1 Message Date
Mark Andrews
db5eb04f4a inline: use $DEFAULT_ALGORITHM
(cherry picked from commit e3acddefd1)
2022-08-10 17:25:26 +10:00
Mark Andrews
73f2c501a5 dsdigest: use $DEFAULT_ALGORITHM
(cherry picked from commit 49de14cb9e)
2022-08-10 17:25:26 +10:00
Mark Andrews
5aad0a38e8 dnssec: use $DEFAULT_ALGORITHM
(cherry picked from commit d0b0139c90)
2022-08-10 17:25:26 +10:00
Mark Andrews
642d5963d9 dns64: use $DEFAULT_ALGORITHM
(cherry picked from commit 5cbf1e1598)
2022-08-10 17:25:26 +10:00
Mark Andrews
f3658af717 chain: use $DEFAULT_ALGORITHM
(cherry picked from commit 3419178bd2)
2022-08-10 17:25:26 +10:00
Mark Andrews
2cbfb22d2f cds: use $DEFAULT_ALGORITHM
(cherry picked from commit 6cf0b73ede)
2022-08-10 17:25:26 +10:00
Mark Andrews
f970186979 autosign: use $DEFAULT_ALGORITHM
(cherry picked from commit bb810b0ac9)
2022-08-10 17:25:26 +10:00
Mark Andrews
c06815dede Use DEFAULT_HMAC for rndc
(cherry picked from commit ce324ae8ba)
2022-08-10 17:25:26 +10:00
Evan Hunt
55d0fd0a11 Merge branch '3483-memstat-assertion-v9_18' into 'v9_18'
fix overflow error in mem_putstats()

See merge request isc-projects/bind9!6645
2022-08-09 18:42:48 +00:00
Evan Hunt
1843780151 fix overflow error in mem_putstats()
an integer overflow could cause an assertion failure when
freeing memory.

(cherry picked from commit 0401e0867b)
2022-08-09 11:21:35 -07:00
Matthijs Mekking
5d200cb2bd Merge branch '2982-servfail-servestale-duplicate-queries-v9_18' into 'v9_18'
[v9_18] Don't enable serve-stale on duplicate queries

See merge request isc-projects/bind9!6642
2022-08-09 09:02:41 +00:00
Matthijs Mekking
350cc2df28 Add release note and change entry for #2982
News worthy.

(cherry picked from commit 2bd4486766)
2022-08-09 09:36:17 +02:00
Matthijs Mekking
5e908a988f Don't enable serve-stale on duplicate queries
When checking if we should enable serve-stale, add an early out case
when the result is an error signalling a duplicate query or a query
that would be dropped.

(cherry picked from commit 059a4c2f4d)
2022-08-09 09:36:11 +02:00
Arаm Sаrgsyаn
18bdce8477 Merge branch '3478-dig-lookup-reference-counting-bug-v9_18' into 'v9_18'
[v9_18] DiG: fix lookup reference counting bug

See merge request isc-projects/bind9!6640
2022-08-08 11:43:13 +00:00
Aram Sargsyan
b83ff9cb20 Add CHANGES note for [GL #3478]
(cherry picked from commit 8eea655053)
2022-08-08 10:48:46 +00:00
Aram Sargsyan
b23d88947a DiG: fix lookup reference counting bug
When DiG finishes its work with a lookup (due to success or error), it
calls the clear_current_lookup() function, which decreases the lookup's
reference count. That decrease action is the counterpart of the initial
creation of the reference counter, so this function was designed in such
a way that it should decrease the reference count only once, when there
are no more active queries in the lookup.

The way it checks whether there are any active queries is by looking
at the queries list of the lookup object - if it's NULL then there are
no active queries. But that is not always true - the cancel_lookup()
function, when canceling the queries one by one, also removes them
from the lookup's list, but in NSSEARCH mode, when the queries are
working in parallel, some of those queries can be still active. And
when their recv_done() callback gets called, it sees that the lookup
has been canceled, calls clear_current_lookup(), which decreases the
reference count every time for each query that was still active
(because ISC_LIST_HEAD(lookup->q) is NULL) and results in a reference
counting error.

Fix the issue by introducing a new "cleared" property for the lookup,
which will ensure that the clear_current_lookup() function does its
job only once per lookup.

(cherry picked from commit 08ba2732e0)
2022-08-08 10:48:38 +00:00
Matthijs Mekking
e8758c0d81 Merge branch '3479-mysql-is-not-ldap-v9_18' into 'v9_18'
[v9_18] Fix mysql bindings

See merge request isc-projects/bind9!6639
2022-08-08 08:47:57 +00:00
Matthijs Mekking
4078990717 Fix mysql bindings
There was a copy paste error in the Makefile of the mysql dlz modules,
instead of setting the MYSQL_LIBS, LDAP_LIBS where set. This caused
the mysql bindings not to be generated.

(cherry picked from commit 38c740053b)
2022-08-08 09:45:49 +02:00
Michał Kępień
5cb75e3c7a Merge branch 'michal/set-up-version-and-release-notes-for-bind-9.18.7' into 'v9_18'
Set up version and release notes for BIND 9.18.7

See merge request isc-projects/bind9!6633
2022-08-05 06:40:36 +00:00
Michał Kępień
3cd90c9a39 Set up release notes for BIND 9.18.7 2022-08-05 06:57:18 +02:00
Michał Kępień
f63ffe40bb Update BIND version to 9.18.7-dev 2022-08-05 06:57:18 +02:00
Artem Boldariev
4552658d1b Merge branch 'tls-fix-readpaused-usage-v9-18' into 'v9_18'
[Backport v9.18] TLS: do not ignore readpaused flag in certain circumstances

See merge request isc-projects/bind9!6629
2022-08-02 16:17:21 +00:00
Artem Boldariev
c2fa72027c TLS: do not ignore readpaused flag in certain circumstances
In some circumstances generic TLS code could have resumed data reading
unexpectedly on the TCP layer code. Due to this, the behaviour of
isc_nm_pauseread() and isc_nm_resumeread() might have been
unexpected. This commit fixes that.

The bug does not seems to have real consequences in the existing code
due to the way the code is used. However, the bug could have lead to
unexpected behaviour and, at any rate, makes the TLS code behave
differently from the TCP code, with which it attempts to be as
compatible as possible.

(cherry picked from commit ec0647d546)
2022-08-02 17:31:15 +03:00
Arаm Sаrgsyаn
097a57e804 Merge branch '3461-fetches-per-zone-final-log-message-v9_18' into 'v9_18'
[v9_18] Resolve "Do a better job of logging when fetches-per-zone is triggered"

See merge request isc-projects/bind9!6625
2022-08-01 14:34:27 +00:00
Aram Sargsyan
0179459d83 Add CHANGES and release notes for [GL #3461]
(cherry picked from commit 0d64f55f5d)
2022-08-01 13:55:03 +00:00
Aram Sargsyan
47e4ef0696 Improve fetch limit logging
When initially hitting the `fetches-per-zone` value, a log message
is being generated for the event of dropping the first fetch, then
any further log events occur only when another fetch is being dropped
and 60 seconds have been passed since the last logged message.

That logic isn't ideal because when the counter of the outstanding
fetches reaches zero, the structure holding the counters' values will
get deleted, and the information about the dropped fetches accumulated
during the last minute will not be logged.

Improve the fcount_logspill() function to makie sure that the final
values are getting logged before the counter object gets destroyed.

(cherry picked from commit 039871ceb7)
2022-08-01 13:54:46 +00:00
Petr Špaček
8801d2668e Merge branch 'ron-tags-3-v9_18' into 'v9_18'
Add tags and short descriptions to all configuration statements [v9_18]

See merge request isc-projects/bind9!6624
2022-08-01 09:00:46 +00:00
Petr Špaček
a2c59b949f Add tags and short description to statements not documented in v9_19 2022-08-01 10:53:25 +02:00
Petr Špaček
67e8e8ff20 Add last missing tags, finishing touches
(cherry picked from commit 43c6a6a48b)
2022-08-01 10:12:13 +02:00
Suzanne Goldlust
c0177bfe4a Add descriptions of each tag
(cherry picked from commit 8d76584090)
2022-08-01 10:12:13 +02:00
Suzanne Goldlust
b2159d42b2 Text edits to Statements and Statements by Tag sections
(cherry picked from commit d4b93c4bd6)
2022-08-01 10:12:13 +02:00
Suzanne Goldlust
17d5e43e71 Reorder Statements and Statements by Tag sections
(cherry picked from commit 2cd32eb06d)
2022-08-01 10:12:13 +02:00
Suzanne Goldlust
ac7d65557b Rephrase parental-agents description
(cherry picked from commit 21c9166abb)
2022-08-01 10:12:12 +02:00
Suzanne Goldlust
7e13992ee7 Add short description for plugin statement
(cherry picked from commit d14828c5a7)
2022-08-01 10:12:12 +02:00
Suzanne Goldlust
16773a53ed Add tag and short description for dyndb statement
(cherry picked from commit 5b90f4caa4)
2022-08-01 10:12:12 +02:00
Suzanne Goldlust
8b0b402ec8 Add tags and short descriptions for dlz and search statements
(cherry picked from commit 93bb1a42f9)
2022-08-01 10:12:12 +02:00
Suzanne Goldlust
c1c0197c9a Add tag and short description for catalog-zones statement
(cherry picked from commit e4f991c1d4)
2022-08-01 10:12:12 +02:00
Suzanne Goldlust
3c45f366a6 Add short descriptions and some tags to statements through line 1766
(cherry picked from commit 21b8988f80)
2022-08-01 10:12:07 +02:00
Arаm Sаrgsyаn
d82f56b972 Merge branch '3471-dig-add-qid-into-usage-summary-v9_18' into 'v9_18'
[v9_18] DiG: document +qid=<num> option in the usage summary

See merge request isc-projects/bind9!6621
2022-07-28 10:16:39 +00:00
Aram Sargsyan
80094e4503 DiG: document +qid=<num> option in the usage summary
The +qid=<num> option, which sets the outgoing query ID, was missing
from the usage summary printed using `dig -h` command.

(cherry picked from commit 4dcc855093)
2022-07-28 09:14:56 +00:00
Mark Andrews
78a14a5f07 Merge branch 'marka-set-suffix-in-ans.py-v9_18' into 'v9_18'
Ensure suffix is always valid in bin/tests/system/qmin/ans4/ans.py [v9_18]

See merge request isc-projects/bind9!6619
2022-07-27 19:07:11 +00:00
Mark Andrews
8fa29c5699 Ensure suffix is always valid in bin/tests/system/qmin/ans4/ans.py
initalise suffix to ""

    170        r.answer.append(
    171            dns.rrset.from_text(
    172                lqname + suffix, 1, IN, NS, "a.bit.longer.ns.name." + suffix
    173            )
    174        )
    175        r.flags |= dns.flags.AA
           15. Condition endswith(lqname, "icky.ptang.zoop.boing."), taking true branch.
    176    elif endswith(lqname, "icky.ptang.zoop.boing."):
           CID 350722 (#7 of 7): Bad use of null-like value (FORWARD_NULL)
           16. invalid_operation: Invalid operation on null-like value suffix.
    177        r.authority.append(
    178            dns.rrset.from_text(
    179                "icky.ptang.zoop.boing." + suffix,
    180                1,
    181                IN,
    182                SOA,
    183                "ns2." + suffix + " hostmaster.arpa. 2018050100 1 1 1 1",
    184            )
    185        )

(cherry picked from commit eb798d0478)
2022-07-27 14:27:18 -04:00
Artem Boldariev
a524cef8af Merge branch 'artem-tls-streamdns-fixes-part2-v9-18' into 'v9_18'
[Backport to v9.18] TLS-related fixes from Stream DNS and Loop Manager branches

See merge request isc-projects/bind9!6617
2022-07-26 13:03:42 +00:00
Artem Boldariev
a957511734 TLS: fix double resumption in isc__nm_tls_resumeread()
This commit fixes an obvious error in isc__nm_tls_resumeread() so that
read cannot be resumed twice.
2022-07-26 15:27:40 +03:00
Artem Boldariev
a165b66fc7 TLS: clear 'errno' when handling SSL status
Sometimes tls_do_bio() might be called when there is no new data to
process (most notably, when resuming reads), in such a case internal
TLS session state will remain untouched and old value in 'errno' will
alter the result of SSL_get_error() call, possibly making it to return
SSL_ERROR_SYSCALL. This value will be treated as an error, and will
lead to closing the connection, which is not what expected.
2022-07-26 15:27:40 +03:00
Mark Andrews
80f777ccfe Merge branch '3469-auto-disable-rsasha1-and-nsec3rsasha1-when-not-supported-by-the-os-v9_18' into 'v9_18'
Check that we can verify a signature at initialisation time [v9_18]

See merge request isc-projects/bind9!6614
2022-07-25 15:51:23 +00:00
Mark Andrews
676a6456e8 Add release note for [GL #3469]
(cherry picked from commit 16b133af40)
2022-07-25 10:59:38 -04:00
Mark Andrews
d0b48df8ea CHANGES note for [GL #3469]
(cherry picked from commit c549249cb9)
2022-07-25 10:59:38 -04:00
Mark Andrews
f3a0dac057 Check that we can verify a signature at initialisation time
Fedora 33 doesn't support RSASHA1 in future mode.  There is no easy
check for this other than by attempting to perform a verification
using known good signatures.  We don't attempt to sign with RSASHA1
as that would not work in FIPS mode.  RSASHA1 is verify only.

The test vectors were generated using OpenSSL 3.0 and
util/gen-rsa-sha-vectors.c.  Rerunning will generate a new set of
test vectors as the private key is not preserved.

e.g.
	cc util/gen-rsa-sha-vectors.c -I /opt/local/include \
		-L /opt/local/lib -lcrypto

(cherry picked from commit cd3f00874f)
2022-07-25 10:59:38 -04:00
Matthijs Mekking
c3ab2a25ef Merge branch '3462-rndc-dumpdb-expired-doesnt-always-work-v9_18' into 'v9_18'
[v9_18] Fix rndc dumpdb -expired for stuck cache contents

See merge request isc-projects/bind9!6612
2022-07-25 14:54:30 +00:00