Commit Graph
34567 Commits
Author SHA1 Message Date
Evan Hunt b6d12e3181 Merge branch '3501-dnstap-response-v9_16' into 'v9_16'
dnstap query_message field was erroneously set with responses

See merge request isc-projects/bind9!6716
2022-08-31 23:15:57 +00:00
Evan Hunt 5efac2b4d2 CHANGES for [GL #3501] 2022-08-31 15:50:30 -07:00
Evan Hunt e1fa6cbab8 dnstap query_message field was erroneously set with responses
The dnstap query_message field was in some cases being filled in
with response messages, along with the response_message field.
The query_message field should only be used when logging requests,
and the response_message field only when logging responses.
2022-08-31 15:49:25 -07:00
Mark Andrews af8e0a2ec9 Merge branch '3505-missing-isc_mutex_destroy-v9_16' into 'v9_16'
Call isc_mutex_destroy(&lasttime_mx); [v9_16]

See merge request isc-projects/bind9!6698
2022-08-24 07:42:25 +00:00
Mark Andrews 5a66ca501b Call isc_mutex_destroy(&lasttime_mx);
(cherry picked from commit 8109f495c8b5d7c7f88d581f7905650add0c184e)
2022-08-24 17:05:00 +10:00
Matthijs Mekking e3b4794ee7 Merge branch '3500-nsec3-missing-detach-node-9_16' into 'v9_16'
[v9_16] nsec3.c: Add a missing dns_db_detachnode() call

See merge request isc-projects/bind9!6694
2022-08-23 11:10:41 +00:00
Matthijs Mekking 31ed140863 Add CHANGES entry for #3500
There is no need for a release because this case was nearly impossible
to trigger (except for when 'sig-signing-type' was set to 0).

(cherry picked from commit 545ecb64b043617ea609f4f115d280bb5990e221)
2022-08-23 12:06:06 +02:00
Matthijs Mekking 58d01b821a nsec3.c: Add a missing dns_db_detachnode() call
There is one case in 'dns_nsec3_activex()' where it returns but forgets
to detach the db node. Add the missing 'dns_db_detachnode()' call.

This case only triggers if 'sig-signing-type' (privatetype) is set to 0
(which by default is not), or if the function is called with 'complete'
is set to 'true' (which at this moment do not exist).

(cherry picked from commit 0cf6c18ccb2205a1fc81431f908c8310f6136bbb)
2022-08-23 12:05:38 +02:00
Mark Andrews 9e7c12d3b7 Merge branch 'bug/main/delv-cfg_parser_reset-v9_16' into 'v9_16'
Reset parser before parsing of internal trust anchor [v9_16]

See merge request isc-projects/bind9!6687
2022-08-19 05:40:59 +00:00
Mark Andrews 414b35aabd Add CHANGES entry for [GL !6468]
(cherry picked from commit 23a8c15cb2efd3486a4e7ea41c1581cb2ed07912)
2022-08-19 15:21:24 +10:00
Petr MenšíkandMark Andrews ba9a140e1f Reset parser before parsing of internal trust anchor
It might be reused if /etc/bind.keys exists, but failed correct parsing.
Release traces of previous parsing attempt of different data.

(cherry picked from commit dc07394c4724c1e1235af85dd8c044af70da93ae)
2022-08-19 15:20:59 +10:00
Michal Nowak 4858e4235d Merge branch 'mnowak/freebsd-13.1-v9_16' into 'v9_16'
[v9_16] Add FreeBSD 13.1

See merge request isc-projects/bind9!6684
2022-08-18 15:58:05 +00:00
Michal Nowak 87dc26e494 Add FreeBSD 13.1
(cherry picked from commit bc425be55e1736d4f2ffada5e8d76f96b08c8351)
2022-08-18 17:34:08 +02:00
Michal Nowak 16458122a8 Merge tag 'v9_16_32' into v9_16
BIND 9.16.32
2022-08-18 11:55:55 +02:00
Mark Andrews 1686b34023 Merge branch '3494-dnssec-awk-test-is-not-precise-enough-v9_16' into 'v9_16'
Improve awk tests to prevent false negatives [v9_16]

See merge request isc-projects/bind9!6677
2022-08-18 04:39:13 +00:00
Mark Andrews 69be4d3bdc Improve awk tests to prevent false negatives
The old code could incorrectly match "INSOA" in the RRSIG rdata
when looking for the SOA record.

(cherry picked from commit 2fc5f6fb2831697c79f75c50a769449ac561aad0)
2022-08-18 13:43:47 +10:00
Michal Nowak f59757d0be Merge branch 'mnowak/coverity-scan-2022.06-v9_16' into 'v9_16'
[v9_16] Use Coverity Scan 2022.06

See merge request isc-projects/bind9!6674
2022-08-17 14:04:39 +00:00
Michal Nowak 6bf3d890b5 Use Coverity Scan 2022.06
(cherry picked from commit 3d683c704e271f1c8107a5b108c93db4bde7db7f)
2022-08-17 16:02:27 +02:00
Arаm Sаrgsyаn ee28d4bd32 Merge branch '3492-fix-tkey.c-buildquery-cleanup-v9_16' into 'v9_16'
[v9_16] Fix tkey.c:buildquery() function's error handling

See merge request isc-projects/bind9!6671
2022-08-17 09:10:49 +00:00
Aram Sargsyan 30b1be4e59 Add CHANGES note for [GL #3492]
(cherry picked from commit 8dd12db505892640d885e81dc6701607da1df67f)
2022-08-17 08:46:31 +00:00
Aram Sargsyan eb72c81e6a Fix tkey.c:buildquery() function's error handling
Add the missing cleanup code.

(cherry picked from commit 4237ab9550eeaea7121e3e3392fd14c26b5150f0)
2022-08-17 08:46:31 +00:00
Michal Nowak 1c6dbb5993 Merge branch 'mnowak/openbsd-7.1-v9_16' into 'v9_16'
[v9_16] Add OpenBSD 7.1

See merge request isc-projects/bind9!6667
2022-08-16 15:21:05 +00:00
Michal Nowak 591d58be6e Add OpenBSD 7.1
(cherry picked from commit 7edf8ab47cfd0cc3a633e941b2880ee11d75d6cd)
2022-08-16 17:17:34 +02:00
Michal Nowak 88aa703c75 Merge branch 'mnowak/configure-find-newer-python-versions' into 'v9_16'
Teach configure to find Python 3.9, 3.10, and 3.11

See merge request isc-projects/bind9!6662
2022-08-15 13:50:23 +00:00
Michal Nowak d92b9a02b1 Teach configure to find Python 3.9, 3.10, and 3.11
FreeBSD does not have python3 symlink, and ./configure relies on finding
python3.X binaries instead.
2022-08-15 15:11:27 +02:00
Evan Hunt 80604b856d Merge branch '3488-prevent-adb-dump-race-v9_18-v9_16' into 'v9_16'
Lock the address entry bucket when dumping ADB namehook

See merge request isc-projects/bind9!6658
2022-08-13 00:48:17 +00:00
Evan Hunt 5aa4adc8e5 Lock the address entry bucket when dumping ADB namehook
When dumping an ADB address entry associated with a name,
the name bucket lock was held, but the entry bucket lock was
not; this could cause data races when other threads were updating
address entry info. (These races are probably not operationally
harmful, but they triggered TSAN error reports.)

(cherry picked from commit f841f545b7)
2022-08-12 17:17:43 -07:00
Michal Nowak 1c1c0e3dca Merge branch '3348-move-pkcs11-interface-test-to-debian-v9_16' into 'v9_16'
[v9_16] Move OpenSSL-based PKCS#11 interface job to Debian "bullseye"

See merge request isc-projects/bind9!6654
2022-08-12 06:50:33 +00:00
Michal Nowak b4b865aacd Move OpenSSL-based PKCS#11 interface job to Debian "bullseye"
Fedora 36 uses OpenSSL 3.0.2 by default, but the OpenSSL engine API
which we use for PKCS#11 is deprecated in OpenSSL 3.0.0. For the
keyfromlabel system test to work operating system with OpenSSL 1.1 needs
to be used.

(cherry picked from commit 2eecebdea91868be571e3c7a5fb3324505fbd2ff)
2022-08-12 08:07:22 +02:00
Matthijs Mekking cd43fa723c Merge branch '2982-servfail-servestale-duplicate-queries-v9_16' into 'v9_16'
[v9_16] Don't enable serve-stale on duplicate queries

See merge request isc-projects/bind9!6643
2022-08-09 09:02:31 +00:00
Matthijs Mekking 294431b8f8 Add release note and change entry for #2982
News worthy.

(cherry picked from commit 2bd4486766)
2022-08-09 09:38:23 +02:00
Matthijs Mekking dd7dde5743 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:37:49 +02:00
Michał Kępień 44e0164b6c Merge branch 'michal/set-up-version-and-release-notes-for-bind-9.16.33' into 'v9_16'
Set up version and release notes for BIND 9.16.33

See merge request isc-projects/bind9!6634
2022-08-05 06:40:40 +00:00
Michał Kępień 571a5b7cca Set up release notes for BIND 9.16.33 2022-08-05 06:58:17 +02:00
Michał Kępień 72b16782e6 Update BIND version to 9.16.33-dev 2022-08-05 06:58:17 +02:00
Michał Kępień 56f3439263 Merge branch 'prep-release' into v9_16_32-release v9.16.32 2022-08-05 00:06:08 +02:00
Michał Kępień d4afcf3dfb prep 9.16.32 2022-08-05 00:06:08 +02:00
Michał Kępień 8ff8f2c1ca Merge branch 'michal/prepare-documentation-for-bind-9.16.32' into 'v9_16_32-release'
Prepare documentation for BIND 9.16.32

See merge request isc-private/bind9!420
2022-08-04 22:04:12 +00:00
Michał Kępień c2ca99b710 Tweak and reword release notes 2022-08-04 23:59:36 +02:00
Michał Kępień 814d9f7bc8 Prepare release notes for BIND 9.16.32 2022-08-04 23:59:36 +02:00
Arаm Sаrgsyаn c863061a13 Merge branch '3461-fetches-per-zone-final-log-message-v9_16' into 'v9_16'
[v9_16] Resolve "Do a better job of logging when fetches-per-zone is triggered"

See merge request isc-projects/bind9!6626
2022-08-01 14:46:29 +00:00
Aram Sargsyan 23bf8afbcb Add CHANGES and release notes for [GL #3461]
(cherry picked from commit 0d64f55f5d)
2022-08-01 14:01:37 +00:00
Aram Sargsyan c0db0d7a8e 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 14:01:26 +00:00
Mark Andrews 6a866e30f5 Merge branch 'marka-set-suffix-in-ans.py-v9_16' into 'v9_16'
Ensure suffix is always valid in bin/tests/system/qmin/ans4/ans.py [v9_16]

See merge request isc-projects/bind9!6620
2022-07-27 22:06:10 +00:00
Mark Andrews 19bf98201b 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:26 -04:00
Matthijs Mekking 40c5816814 Merge branch '3462-rndc-dumpdb-expired-doesnt-always-work-v9_16' into 'v9_16'
[v9_16] Fix destination port extraction for client queries

See merge request isc-projects/bind9!6613
2022-07-26 08:43:39 +00:00
Matthijs Mekking 3c2f517415 Add change entry and release note for #3462
News worthy.

(cherry picked from commit 44bbc0175c)
2022-07-26 10:02:26 +02:00
Matthijs Mekking f8ad7501dc Fix rndc dumpdb -expired for stuck cache contents
The command 'rndc dumpdb -expired' will include expired RRsets in the
output, but only for the RBTDB_VIRTUAL time (of 5 minutes). This means
that if there is a cache cleaning problem and contents are not cleaned
up, the rndc command has little diagnostic value. Fix this by including
all RRsets in the dumpdb output if the '-expired' flag is set.

(cherry picked from commit 930ba2c914)
2022-07-26 10:02:15 +02:00
Mark Andrews 24bb1d109c Merge branch '3469-auto-disable-rsasha1-and-nsec3rsasha1-when-not-supported-by-the-os-v9_16' into 'v9_16'
Check that we can verify a signature at initialisation time [v9_16]

See merge request isc-projects/bind9!6615
2022-07-25 15:59:21 +00:00
Mark Andrews 8be8257914 Add release note for [GL #3469]
(cherry picked from commit 16b133af40)
2022-07-25 11:37:49 -04:00