33023 Commits
Author SHA1 Message Date
Tinderbox User 4469e3e626 Merge branch 'prep-release' into v9_16_15-release v9.16.15 2021-04-19 13:45:50 +00:00
Tinderbox User 36d19a73db prep 9.16.15 2021-04-19 13:44:56 +00:00
Michał Kępień d4eb3b8bc5 Merge branch 'michal/prepare-documentation-for-bind-9.16.15' into 'v9_16_15-release'
Prepare documentation for BIND 9.16.15

See merge request isc-private/bind9!288
2021-04-19 13:31:50 +00:00
Michał Kępień 2f957c2d57 Prepare release notes for BIND 9.16.15 2021-04-19 15:05:11 +02:00
Michał Kępień 1be702991d Tweak and reword release notes 2021-04-19 15:05:11 +02:00
Michał Kępień 061d01f7a7 Tweak and reword recent CHANGES entries 2021-04-19 15:05:11 +02:00
Michał Kępień f539317833 Merge branch '2634-fix-handling-undefined-GSS_SPNEGO_MECHANISM-macro-v9_16_15' into v9_16_15-release 2021-04-19 14:53:56 +02:00
Michał Kępień 6cef3f82f3 Add CHANGES entry
(cherry picked from commit 381202629e)
2021-04-19 14:53:27 +02:00
Michał Kępień a49442d6da Fix handling undefined GSS_SPNEGO_MECHANISM macro
BIND 9 attempts to look up GSSAPI OIDs for the Kerberos 5 and SPNEGO
mechanisms in the relevant header files provided by the Kerberos/GSSAPI
library used.  Due to the differences between various Kerberos/GSSAPI
implementations, if any of the expected preprocessor macros
(GSS_KRB5_MECHANISM, GSS_SPNEGO_MECHANISM) is not defined in the header
files provided by the library used, the code in lib/dns/gssapictx.c
defines its own version of each missing macro, so that BIND 9 can
attempt to use the relevant security mechanisms anyway.

Commit a875dcc669, which contains a
partial backport of the changes introduced in commit
978c7b2e89, left a block of code in the
lib/dns/dst_internal.h header which defines the GSS_SPNEGO_MECHANISM
preprocessor macro to NULL if it is not defined by any header file
provided by the Kerberos/GSSAPI library used.  This causes the
gss_add_oid_set_member() call in the mech_oid_set_create() helper
function to always return an error.  This in turn causes the
dst_gssapi_acquirecred() function to also always return an error, which
ultimately prevents any named instance whose configuration includes the
"tkey-gssapi-credential" option from starting.

Remove the offending conditional definition of the GSS_SPNEGO_MECHANISM
preprocessor macro from lib/dns/dst_internal.h, so that a proper GSSAPI
OID is assigned to that macro in lib/dns/gssapictx.c when the
Kerberos/GSSAPI library used does not define it.

(cherry picked from commit 648ef3a2b4)
2021-04-19 14:53:27 +02:00
Michał Kępień 4dcc4ab4d2 Roll back unnecessary libtool updates
Commit a875dcc669 inadvertently included
libtool updates which were unrelated to the removal of custom SPNEGO
code.  Roll these updates back to avoid confusion.

(cherry picked from commit 87f1db2ce4)
2021-04-19 14:53:27 +02:00
Michał Kępień 265cdec21c Merge branch '2623-9-16-13-overwrites-master-files-if-old-format-jnl-files-are-present-v9_16_15' into v9_16_15-release 2021-04-19 14:02:46 +02:00
Mark AndrewsandMichał Kępień e775561483 Add CHANGES and release note for [GL #2623]
(cherry picked from commit 382f915175)
2021-04-19 14:01:16 +02:00
Ondřej SurýandMichał Kępień 9ebf2ae8be Refactor dns_journal_rollforward() to work over opened journal
Too much logic was cramped inside the dns_journal_rollforward() that
made it harder to follow.  The dns_journal_rollforward() was refactored
to work over already opened journal and some of the previous logic was
moved to new static zone_journal_rollforward() that separates the
journal "rollforward" logic from the "zone" logic.

(cherry picked from commit 83c79a0b1e)
2021-04-19 14:01:16 +02:00
Mark AndrewsandMichał Kępień a8c11b8787 Fixing a recoverable journal should not result in the zone being written
when dns_journal_rollforward returned ISC_R_RECOVERABLE the distintion
between 'up to date' and 'success' was lost, as a consequence
zone_needdump() was called writing out the zone file when it shouldn't
have been.   This change restores that distintion.  Adjust system
test to reflect visible changes.

(cherry picked from commit 875366565c)
2021-04-19 14:01:16 +02:00
Tinderbox User 0ebacc6327 Merge branch 'prep-release' into v9_16_14-release 2021-04-12 12:12:04 +00:00
Tinderbox User 266568b44a prep 9.16.14 2021-04-12 12:11:47 +00:00
Michał Kępień e29082288a Merge branch 'michal/prepare-documentation-for-bind-9.16.14' into 'security-v9_16'
Prepare documentation for BIND 9.16.14

See merge request isc-private/bind9!285
2021-04-12 11:59:20 +00:00
Michał Kępień e83a6c6e90 Prepare release notes for BIND 9.16.14 2021-04-12 13:54:22 +02:00
Michał Kępień 27c3f356b6 Add release note for GL #2623 2021-04-12 13:54:22 +02:00
Michał Kępień 882d710ebc Add release note for GL #2490 2021-04-12 13:54:22 +02:00
Michał Kępień 5090696c9b Reorder release notes 2021-04-12 13:54:22 +02:00
Michał Kępień b608572636 Tweak and reword release notes 2021-04-12 13:54:22 +02:00
Michał Kępień 76408fdbdf Tweak and reword recent CHANGES entries 2021-04-12 13:54:22 +02:00
Michał Kępień ec5fe84762 Merge branch '2604-confidential-issue-spnego' into 'security-v9_16'
[CVE-2021-25216] Documentation for ZDI-CAN-13347: ISC BIND TKEY Query Integer Overflow Remote Code Execution Vulnerability

See merge request isc-private/bind9!283
2021-04-12 11:18:06 +00:00
Michał Kępień bbf019e231 Add release note for [GL #2604] 2021-04-12 13:13:15 +02:00
Michał Kępień fdad255334 Add CHANGES entry for [GL #2604] 2021-04-12 13:13:15 +02:00
Michał Kępień 835624faab Merge branch '2540-confidential-issue-existing-dname-v9_16' into 'security-v9_16'
[CVE-2021-25215] [v9_16] Properly answer queries for DNAME records that require the DNAME to be processed to resolve itself

See merge request isc-private/bind9!281
2021-04-12 11:03:22 +00:00
Mark AndrewsandMichał Kępień a5db030a6c Add Release Notes entry for [GL #2540] 2021-04-12 13:01:14 +02:00
Mark AndrewsandMichał Kępień 7f1d445dd7 Add CHANGES entry for [GL #2540] 2021-04-12 13:01:14 +02:00
Mark AndrewsandMichał Kępień dde958717c Handle DNAME lookup via itself
When answering a query, named should never attempt to add the same RRset
to the ANSWER section more than once.  However, such a situation may
arise when chasing DNAME records: one of the DNAME records placed in the
ANSWER section may turn out to be the final answer to a client query,
but there is no way to know that in advance.  Tweak the relevant INSIST
assertion in query_respond() so that it handles this case properly.
qctx->rdataset is freed later anyway, so there is no need to clean it up
in query_respond().
2021-04-12 13:01:14 +02:00
Michał Kępień 41bd5f9104 Merge branch '2467-confidential-issue-ixfr-checks-v9_16' into 'security-v9_16'
[CVE-2021-25214] [v9_16] Prevent malformed incoming zone transfers from producing a zone without an SOA record

See merge request isc-private/bind9!262
2021-04-12 11:00:37 +00:00
Mark AndrewsandMichał Kępień 7881215efe Add release note for [GL #2467] 2021-04-08 13:23:01 +02:00
Mark AndrewsandMichał Kępień 08d8a08449 Add CHANGES entry for [GL #2467] 2021-04-08 13:23:01 +02:00
Mark AndrewsandMichał Kępień 01a916abac Unload a zone if a transfer breaks its SOA record
If a zone transfer results in a zone not having any NS records, named
stops serving it because such a zone is broken.  Do the same if an
incoming zone transfer results in a zone lacking an SOA record at the
apex or containing more than one SOA record.
2021-04-08 13:23:01 +02:00
Mark AndrewsandMichał Kępień f092fcee10 Address inconsistencies in checking added RRsets
loading_addrdataset() rejects SOA RRsets which are not at top of zone.
addrdataset() should similarly reject such RRsets.
2021-04-08 13:23:01 +02:00
Mark AndrewsandMichał Kępień f68d4cba33 Check SOA owner names in zone transfers
An IXFR containing SOA records with owner names different than the
transferred zone's origin can result in named serving a version of that
zone without an SOA record at the apex.  This causes a RUNTIME_CHECK
assertion failure the next time such a zone is refreshed.  Fix by
immediately rejecting a zone transfer (either an incremental or
non-incremental one) upon detecting an SOA record not placed at the apex
of the transferred zone.
2021-04-08 13:23:01 +02:00
Michal Nowak b3bebad281 Merge branch 'mnowak/gdb-for-killed-named-v9_16' into 'v9_16'
Run GDB for crashed named servers

See merge request isc-projects/bind9!4848
2021-04-08 10:28:19 +00:00
Michal Nowak 45bb2ae5f6 Run GDB for crashed named servers
When a core file was generated after named crashed during a system test
on 9.16, it wasn't processed by GDB, and no backtrace report was
created. This is now fixed. There are also a few white-space changes.
2021-04-08 11:53:32 +02:00
Michal Nowak e00b69d2ee Merge branch 'mnowak/fix-missing-fromhex.pl-in-out-of-tree-v9_16' into 'v9_16'
[v9_16] Move fromhex.pl script to bin/tests/system/

See merge request isc-projects/bind9!4877
2021-04-08 09:51:14 +00:00
Michal Nowak 98d91e3024 Move fromhex.pl script to bin/tests/system/
The fromhex.pl script needs to be copied from the source directory to
the build directory before any test is run, otherwise the out-of-tree
fails to find it. Given that the script is used only in system test,
move it to bin/tests/system/.

(cherry picked from commit cd0a34df1b)
2021-04-08 11:11:23 +02:00
Michał Kępień e02df06d8e Merge branch '2620-free-resources-when-gss_accept_sec_context-fails-v9_16' into 'v9_16'
[v9_16] Free resources when gss_accept_sec_context() fails

See merge request isc-projects/bind9!4874
2021-04-08 09:04:09 +00:00
Michał Kępień ef4460949f Add CHANGES entry
(cherry picked from commit 7eb87270a4)
2021-04-08 10:41:09 +02:00
Michał Kępień 363902ce2c Free resources when gss_accept_sec_context() fails
Even if a call to gss_accept_sec_context() fails, it might still cause a
GSS-API response token to be allocated and left for the caller to
release.  Make sure the token is released before an early return from
dst_gssapi_acceptctx().

(cherry picked from commit d954e152d9)
2021-04-08 10:41:08 +02:00
Michał Kępień 21b0eac026 Merge branch 'michal/fix-triggering-rules-for-the-tarball-create-job' into 'v9_16'
Fix triggering rules for the "tarball-create" job

See merge request isc-projects/bind9!4871
2021-04-07 20:34:01 +00:00
Michał Kępień 233294d750 Fix triggering rules for the "tarball-create" job
Commit fd8ce68189 (a backport of commit
4d5d3b75da) did not account for the fact
that the "tarball-create" GitLab CI job is not created for manually
triggered pipelines.  This prevents manual pipeline creation from
succeeding as it causes the "gcc:tarball" job to have unsatisfied
dependencies.  Make sure the "tarball-create" job is created for
manually triggered pipelines to allow such pipelines to be started
again.
2021-04-07 22:31:09 +02:00
Ondřej Surý 66e243e64d Merge branch '2600-general-error-managed-keys-zone-dns_journal_compact-failed-no-more-v9_16' into 'v9_16'
Resolve "general: error: managed-keys-zone: dns_journal_compact failed: no more" (v9.16)

See merge request isc-projects/bind9!4870
2021-04-07 20:00:32 +00:00
Mark AndrewsandOndřej Surý 2840fca4c5 Add CHANGES and release note for [GL #2600]
(cherry picked from commit 0174098aca)
2021-04-07 21:30:01 +02:00
Mark AndrewsandOndřej Surý dd2c7a3c8e Check that upgrade of managed-keys.bind.jnl succeeded
Update the system to include a recoverable managed.keys journal created
with <size,serial0,serial1,0> transactions and test that it has been
updated as part of the start up process.

(cherry picked from commit bb6f0faeed)
2021-04-07 21:29:07 +02:00
Mark AndrewsandOndřej Surý 7b93ff93d6 Rewrite managed-key journal immediately
Both managed keys and regular zone journals need to be updated
immediately when a recoverable error is discovered.

(cherry picked from commit 0fbdf189c7)
2021-04-07 21:29:07 +02:00
Mark AndrewsandOndřej Surý 511ea2d3f3 Update dns_journal_compact() to handle bad transaction headers
Previously, dns_journal_begin_transaction() could reserve the wrong
amount of space.  We now check that the transaction is internally
consistent when upgrading / downgrading a journal and we also handle the
bad transaction headers.

(cherry picked from commit 83310ffd92)
2021-04-07 21:29:06 +02:00