Commit Graph
28753 Commits
Author SHA1 Message Date
Petr MenšíkandMark Andrews 72e4be21f1 Remove few lines in unix socket handling
Reuse the same checks two times, make difference minimal.

(cherry picked from commit 72d81c4768)
2020-07-24 13:59:17 +10:00
Mark Andrews b56e821d17 Merge branch 'dstlib-failure-abort-v9_11' into 'v9_11'
Prevent crash on dst initialization failure

See merge request isc-projects/bind9!3879
2020-07-23 03:00:20 +00:00
Petr MenšíkandMark Andrews 35fbfaa498 Prevent crash on dst initialization failure
server might be created, but not yet fully initialized, when fatal
function is called. Check both server and task before attaching
exclusive task.

(cherry picked from commit c5e7152cf0)
2020-07-23 11:29:57 +10:00
Michal Nowak 0af3892dda Merge branch 'mnowak/try-harder-to-analyze-cores-v9_11' into 'v9_11'
[v9_11] Rationalize backtrace logging

See merge request isc-projects/bind9!3870
2020-07-20 17:10:29 +00:00
Michal Nowak 3745767b2b Check tests for core files regardless of test status
Failed test should be checked for core files et al. and have
backtrace generated.
2020-07-20 17:09:20 +02:00
Michal Nowak 9996811493 Rationalize backtrace logging
GDB backtrace generated via "thread apply all bt full" is too long for
standard output, lets save them to .txt file among other log files.
2020-07-20 17:00:13 +02:00
Evan Hunt c1dd887417 Merge branch 'each-doc-fixes-v9_11' into 'v9_11'
additional text edits to ARM

See merge request isc-projects/bind9!3863
2020-07-16 08:02:34 +00:00
Evan Hunt 86a3af1c78 Various text edits and fixes to the documentation 2020-07-16 01:00:39 -07:00
Michał Kępień eaff8860d7 Merge branch 'v9_11_21-release' into 'v9_11'
Merge 9.11.21 release branch

See merge request isc-projects/bind9!3862
2020-07-15 21:37:33 +00:00
Michał Kępień 80f7459de0 Set up release notes for BIND 9.11.22 2020-07-15 23:33:51 +02:00
Michał Kępień 48a7f7fca8 Bump BIND_BASELINE_VERSION for ABI checks 2020-07-15 23:33:51 +02:00
Tinderbox UserandMichał Kępień c9ab76c95f Merge branch 'prep-release' into v9_11_21-release 2020-07-15 23:24:26 +02:00
Tinderbox UserandMichał Kępień 8345bf5f0e prep 9.11.21 2020-07-15 23:24:25 +02:00
Michał Kępień 8defd0b731 Merge branch 'michal/prepare-release-notes-for-bind-9.11.21' into v9_11_21-release 2020-07-15 23:23:51 +02:00
Michał Kępień dfa63df21e Reorder release notes 2020-07-15 23:23:50 +02:00
Michał Kępień 6d0812b66f Tweak and reword release notes 2020-07-15 23:23:50 +02:00
Michał Kępień 46fc1b23e0 Tweak and reword recent CHANGES entries 2020-07-15 23:23:50 +02:00
Michał Kępień d2b8f9d75c Merge branch 'michal/use-image-key-in-qemu-based-ci-job-templates-v9_11' into 'v9_11'
[v9_11] Use "image" key in QEMU-based CI job templates

See merge request isc-projects/bind9!3857
2020-07-14 08:32:46 +00:00
Michał Kępień 80951ba0b1 Use "image" key in QEMU-based CI job templates
Our GitLab Runner Custom executor scripts now use the "image" key
instead of the job name for determining the QCOW2 image to use for a
given CI job.  Update .gitlab-ci.yml to reflect that change.

(cherry picked from commit 72201badf0)
2020-07-14 10:04:20 +02:00
Mark Andrews 6139af5007 Merge branch '1994-netscope-c-23-50-error-unused-parameter-addr-when-have_if_nametoindex-undefined-on-illumos-v9_11' into 'v9_11'
Mark 'addr' as unused if HAVE_IF_NAMETOINDEX is not defined

See merge request isc-projects/bind9!3851
2020-07-14 01:44:41 +00:00
Mark Andrews 4f25e8ee92 Mark 'addr' as unused if HAVE_IF_NAMETOINDEX is not defined
Also 'zone' should be initialised to zero.

(cherry picked from commit e7662c4c63)
2020-07-14 10:55:17 +10:00
Evan Hunt f34bab4145 Merge branch 'each-lmdb-lock-fix-v9_11' into 'v9_11'
ensure new_zone_lock is released after count_newzones()

See merge request isc-projects/bind9!3846
2020-07-13 20:18:49 +00:00
Evan Hunt 0f7f6201e3 make sure new_zone_lock is locked before unlocking it
it was possible for the count_newzones() function to try to
unlock view->new_zone_lock on return before locking it, which
caused a crash on shutdown.

(cherry picked from commit ed37c63e2b)
2020-07-13 12:32:51 -07:00
Mark Andrews 2120268f7f Merge branch '1235-system-tests-fail-with-new-etc-bind-keys-installed-v9_11' into 'v9_11'
Fallback to built in trust-anchors, managed-keys, or trusted-keys

See merge request isc-projects/bind9!3844
2020-07-13 06:49:33 +00:00
Mark Andrews 55f567ab35 Fallback to built in trust-anchors, managed-keys, or trusted-keys
if the bind.keys file cannot be parsed.

(cherry picked from commit d02a14c795)
2020-07-13 15:55:59 +10:00
Mark Andrews db8690167d Merge branch '2012-add-assertion-check-to-silence-dereference-before-null-check-in-tsig_test-c-v9_11-v9_11' into 'v9_11'
Assert tsigout is non-NULL

See merge request isc-projects/bind9!3840
2020-07-13 03:59:52 +00:00
Mark Andrews a4c16515de Assert tsigout is non-NULL
(cherry picked from commit 827746e89b)
2020-07-13 13:10:19 +10:00
Mark Andrews d9c3c2ca24 Merge branch '2013-unchecked-returns-of-inet_pton-in-geoip_test-c-v9_11' into 'v9_11'
check returns from inet_pton()

See merge request isc-projects/bind9!3838
2020-07-13 02:44:42 +00:00
Mark Andrews d953381d75 check returns from inet_pton()
(cherry picked from commit 9499adeb5e)
2020-07-13 11:45:09 +10:00
Mark Andrews d792ed7aea Merge branch '2010-potential-null-pointer-dereference-9-11-in-dnstap-c' into 'v9_11'
Resolve "Potential NULL pointer dereference (9.11) in dnstap.c"

See merge request isc-projects/bind9!3813
2020-07-13 01:08:19 +00:00
Mark Andrews ffe1a54d8f Add CHANGES note 2020-07-13 10:23:51 +10:00
Mark Andrews 040eb8f07f Check that handle is non-NULL before dereferencing it 2020-07-13 10:16:47 +10:00
Michał Kępień ce18373d1c Merge branch '1976-fix-locking-for-lmdb-0.9.26-v9_11' into 'v9_11'
[v9_11] Fix locking for LMDB 0.9.26

See merge request isc-projects/bind9!3832
2020-07-10 10:17:36 +00:00
Michał Kępień 24973401f9 Add CHANGES for GL #1976
(cherry picked from commit 7fffa5abba)
2020-07-10 11:31:53 +02:00
Michał Kępień 25818ac81f Fix locking for LMDB 0.9.26
When "rndc reconfig" is run, named first configures a fresh set of views
and then tears down the old views.  Consider what happens for a single
view with LMDB enabled; "envA" is the pointer to the LMDB environment
used by the original/old version of the view, "envB" is the pointer to
the same LMDB environment used by the new version of that view:

 1. mdb_env_open(envA) is called when the view is first created.
 2. "rndc reconfig" is called.
 3. mdb_env_open(envB) is called for the new instance of the view.
 4. mdb_env_close(envA) is called for the old instance of the view.

This seems to have worked so far.  However, an upstream change [1] in
LMDB which will be part of its 0.9.26 release prevents the above
sequence of calls from working as intended because the locktable mutexes
will now get destroyed by the mdb_env_close() call in step 4 above,
causing any subsequent mdb_txn_begin() calls to fail (because all of the
above steps are happening within a single named process).

Preventing the above scenario from happening would require either
redesigning the way we use LMDB in BIND, which is not something we can
easily backport, or redesigning the way BIND carries out its
reconfiguration process, which would be an even more severe change.

To work around the problem, set MDB_NOLOCK when calling mdb_env_open()
to stop LMDB from controlling concurrent access to the database and do
the necessary locking in named instead.  Reuse the view->new_zone_lock
mutex for this purpose to prevent the need for modifying struct dns_view
(which would necessitate library API version bumps).  Drop use of
MDB_NOTLS as it is made redundant by MDB_NOLOCK: MDB_NOTLS only affects
where LMDB reader locktable slots are stored while MDB_NOLOCK prevents
the reader locktable from being used altogether.

[1] https://git.openldap.org/openldap/openldap/-/commit/2fd44e325195ae81664eb5dc36e7d265927c5ebc

(cherry picked from commit 53120279b5)
2020-07-10 11:31:43 +02:00
Mark Andrews f5c59b2f79 Merge branch '2011-off-by-one-error-in-dns_rdatatype_attributes-v9_11' into 'v9_11'
Adjust range limit of unknown meta types

See merge request isc-projects/bind9!3824
2020-07-08 04:27:38 +00:00
Mark Andrews 902c1292c9 Adjust range limit of unknown meta types
(cherry picked from commit 092a159dcd)
2020-07-08 13:42:03 +10:00
Mark Andrews 0af23f7052 Merge branch '2009-update-isc-logo-in-documentation-v9_11' into 'v9_11'
Resolve "Update ISC logo in documentation"

See merge request isc-projects/bind9!3812
2020-07-08 01:08:07 +00:00
Mark Andrews 7aff93bdc3 Update BIND 9 logo 2020-07-07 14:40:11 +10:00
Michał Kępień 94e43cf220 Merge branch '1627-add-changes-entry-v9_11' into 'v9_11'
[v9_11] Add CHANGES entry for #1627

See merge request isc-projects/bind9!3798
2020-07-02 09:25:57 +00:00
Michał Kępień e690fff4ba Add CHANGES entry for #1627
(cherry picked from commit dee2b3c7c8)
2020-07-02 11:23:29 +02:00
Ondřej Surý 4051b88180 Merge branch '1968-cleanup-dead-nodes-fix-v9_11' into 'v9_11'
Resolve "Again: BIND | rbtdb.c:2162: INSIST with bind with 9.11.20  (see #1718)"

See merge request isc-projects/bind9!3783
2020-07-01 14:26:34 +00:00
Ondřej Surý 6d9919fb86 Add CHANGES and release note for #1968
(cherry picked from commit 4c12709da4)
2020-07-01 15:38:51 +02:00
Witold KręcickiandOndřej Surý e73702e821 rbtdb: cleanup_dead_nodes should ignore alive nodes on the deadlist
(cherry picked from commit c8f2d55acf)
2020-07-01 15:37:01 +02:00
Mark Andrews b9024e06b7 Merge branch 'marka-silence-pyyaml-warning-v9_11' into 'v9_11'
Silence PyYAML warning

See merge request isc-projects/bind9!3770
2020-06-30 02:19:00 +00:00
Michał KępieńandMark Andrews 74a738428c Silence PyYAML warning
Make yaml.load_all() use yaml.SafeLoader to address a warning currently
emitted when bin/tests/system/dnstap/ydump.py is run:

    ydump.py:28: YAMLLoadWarning: calling yaml.load_all() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
      for l in yaml.load_all(f.stdout):

(cherry picked from commit 62f631f798)
2020-06-30 11:43:35 +10:00
Mark Andrews 66c9390775 Merge branch 'u/fanf2/dnstap-roll-v9_11' into 'v9_11'
U/fanf2/dnstap roll v9 11

See merge request isc-projects/bind9!3755
2020-06-30 00:16:01 +00:00
Mark Andrews 686ee5bd12 Check that 'rndc dnstap -roll <value>' works
(cherry picked from commit a289a57c7f)
2020-06-30 08:39:19 +10:00
Michał Kępień e2ff063c8c Merge branch 'mnowak/add-new-releases-v9_11' into 'v9_11'
[v9_11] Add Ubuntu 20.04, Fedora 32, Alpine 3.12, OpenBSD 6.7, and FreeBSD 11.4

See merge request isc-projects/bind9!3763
2020-06-29 11:08:26 +00:00
Michał Kępień e5a72ed3a5 Fix build-time GSSAPI detection on Tumbleweed
The "krb5-devel" package on openSUSE Tumbleweed installs the
"krb5-config" binary into a custom prefix, which prevents BIND's
"configure" script from autodetecting it.  Fix by specifying the path to
the "krb5-config" binary using --with-gssapi.

(cherry picked from commit 1be15f5900)
2020-06-29 12:49:35 +02:00