]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
6 years agoAdd respdiff job
Michal Nowak [Thu, 6 Feb 2020 14:53:36 +0000 (15:53 +0100)] 
Add respdiff job

This job leverages respdiff test from the private bind-qa repo.

(cherry picked from commit 04f8b65a8f280b35ba7a466f5eedc99798d9eafb)

6 years agoMerge branch 'mnowak/pkcs11-test-fix-v9_16' into 'v9_16'
Michal Nowak [Thu, 5 Mar 2020 07:00:51 +0000 (07:00 +0000)] 
Merge branch 'mnowak/pkcs11-test-fix-v9_16' into 'v9_16'

[v9_16] Fix pkcs11 test

See merge request isc-projects/bind9!3160

6 years agoFix "pkcs11" system test
Michal Nowak [Thu, 5 Mar 2020 07:00:50 +0000 (07:00 +0000)] 
Fix "pkcs11" system test

  - Define the SLOT environment variable before starting the test.  This
    variable defaults to 0 and that does not work with SoftHSM 2.

  - The system test expects the PIN environment variable to be set to
    "1234" while bin/tests/prepare-softhsm2.sh sets it to "0000".
    Update bin/tests/prepare-softhsm2.sh so that it sets the PIN to
    "1234".

  - Move contents of bin/tests/system/pkcs11/prereq.sh to
    bin/tests/system/pkcs11/setup.sh as the former was creating a file
    called "supported" that was getting removed by the latter before
    bin/tests/system/pkcs11/tests.sh could access it.

  - Fix typo in "have_ecx".

(cherry picked from commit 100a230e80f01a777b917b135b4bae9a4ac0e8ae)

6 years agoMerge branch '1647-addtrustedkey-dnskey-v9_16' into 'v9_16'
Evan Hunt [Thu, 5 Mar 2020 00:44:08 +0000 (00:44 +0000)] 
Merge branch '1647-addtrustedkey-dnskey-v9_16' into 'v9_16'

Resolve "delv 9.16.0, failed to add trusted key '.': ran out of space"

See merge request isc-projects/bind9!3159

6 years agoCHANGES
Evan Hunt [Wed, 4 Mar 2020 16:54:53 +0000 (08:54 -0800)] 
CHANGES

(cherry picked from commit d805fe821e29cd7914f5641eb564cb071b292911)

6 years agoadd a system test to check that delv loads trust anchors correctly
Evan Hunt [Wed, 4 Mar 2020 16:54:03 +0000 (08:54 -0800)] 
add a system test to check that delv loads trust anchors correctly

(cherry picked from commit a81ae32d8a981f13ce58d72c7d8b75aacc02225f)

6 years agoFix dns_client_addtrustedkey(dns_rdatatype_dnskey)
Tony Finch [Fri, 28 Feb 2020 20:08:04 +0000 (20:08 +0000)] 
Fix dns_client_addtrustedkey(dns_rdatatype_dnskey)

Use a buffer that is big enough for DNSKEY records as well as DS
records.

(cherry picked from commit 689ef89b67e6ce6f9ed2f6b9e839aa75d92e780a)

6 years agoMerge branch 'wpk-use-pthread-rwlock-by-default-v9_16' into 'v9_16'
Witold Krecicki [Wed, 4 Mar 2020 11:36:06 +0000 (11:36 +0000)] 
Merge branch 'wpk-use-pthread-rwlock-by-default-v9_16' into 'v9_16'

Use pthread rwlocks by default

See merge request isc-projects/bind9!3156

6 years agoAdd release notes for pthread rwlocks change
Witold Kręcicki [Thu, 27 Feb 2020 12:21:31 +0000 (13:21 +0100)] 
Add release notes for pthread rwlocks change

(cherry picked from commit 4ca5c02d0e3d1760c40496610d4a1d8a0b5d6161)

6 years agoUse pthread rwlocks by default
Witold Kręcicki [Thu, 27 Feb 2020 12:21:31 +0000 (13:21 +0100)] 
Use pthread rwlocks by default

(cherry picked from commit ad03c22e976411cad743bc02746b803a2f119df7)

6 years agoMerge branch 'wpk/perfwork-7-multilocked-badcache-v9_16' into 'v9_16'
Witold Krecicki [Wed, 4 Mar 2020 10:07:55 +0000 (10:07 +0000)] 
Merge branch 'wpk/perfwork-7-multilocked-badcache-v9_16' into 'v9_16'

Wpk/perfwork 7 multilocked badcache v9 16

See merge request isc-projects/bind9!3155

6 years agoWorkaround for clang static analyzer bug.
Witold Kręcicki [Mon, 2 Mar 2020 13:12:05 +0000 (14:12 +0100)] 
Workaround for clang static analyzer bug.

(cherry picked from commit 6c8f30974576f1f3ec15ebdf74051d0c9b201396)

6 years agoBadcache with multiple locks.
Witold Kręcicki [Mon, 17 Feb 2020 09:37:39 +0000 (10:37 +0100)] 
Badcache with multiple locks.

Previously badcache used one single mutex for everything, which
was causing performance issues. Use one global rwlock for the whole
hashtable and per-bucket mutexes.

(cherry picked from commit 47e5f5564cebefcf22877eb7ee55a776e3d7c17e)

6 years agoMerge branch '1656-masterformat-system-test-failed-missing-sleep-1-v9_16' into 'v9_16'
Mark Andrews [Wed, 4 Mar 2020 07:45:38 +0000 (07:45 +0000)] 
Merge branch '1656-masterformat-system-test-failed-missing-sleep-1-v9_16' into 'v9_16'

properly wait for zone to be loaded

See merge request isc-projects/bind9!3153

6 years agoproperly wait for zone to be loaded
Mark Andrews [Wed, 4 Mar 2020 04:39:08 +0000 (15:39 +1100)] 
properly wait for zone to be loaded

(cherry picked from commit 0abcface49789c5fdc28fec062cdf692c43a3e7a)

6 years agoMerge branch 'marka-check-touched-v9_16' into 'v9_16'
Mark Andrews [Tue, 3 Mar 2020 22:34:38 +0000 (22:34 +0000)] 
Merge branch 'marka-check-touched-v9_16' into 'v9_16'

Marka check touched v9 16

See merge request isc-projects/bind9!3147

6 years agoAdd CHANGES entry
Mark Andrews [Tue, 3 Mar 2020 01:31:55 +0000 (12:31 +1100)] 
Add CHANGES entry

(cherry picked from commit 64474db14e715e4b1a545406acf9fb5be8200f50)

6 years agoRestart zone maintenance if it had been stalled.
Mark Andrews [Mon, 2 Mar 2020 23:50:06 +0000 (10:50 +1100)] 
Restart zone maintenance if it had been stalled.

(cherry picked from commit f171347b5f27c1b0dfe1ef935512b20a820901c9)

6 years agoCheck inline master zones that are touched reload correctly.
Mark Andrews [Mon, 2 Mar 2020 08:38:29 +0000 (19:38 +1100)] 
Check inline master zones that are touched reload correctly.

(cherry picked from commit 50e079d6c3eea1a16b94bdb10d9e19939147bc30)

6 years agoMerge branch 'wpk/socket-destroy-race-v9_16' into 'v9_16'
Witold Krecicki [Tue, 3 Mar 2020 09:02:14 +0000 (09:02 +0000)] 
Merge branch 'wpk/socket-destroy-race-v9_16' into 'v9_16'

Fix a race in isc_socket destruction.

See merge request isc-projects/bind9!3144

6 years agoFix a race in isc_socket destruction.
Witold Kręcicki [Wed, 5 Feb 2020 11:35:54 +0000 (12:35 +0100)] 
Fix a race in isc_socket destruction.

There was a very slim chance of a race between isc_socket_detach and
process_fd: isc_socket_detach decrements references to 0, and before it
calls destroy gets preempted. Second thread calls process_fd, increments
socket references temporarily to 1, and then gets preempted, first thread
then hits assertion in destroy() as the reference counter is now 1 and
not 0.

(cherry picked from commit 81ba0fe0e6b33909d0b8bec99f9ea9af072f6f5d)

6 years agoMerge branch '1627-call-set_resigntime-and-zone_settimer-v9_16' into 'v9_16'
Mark Andrews [Tue, 3 Mar 2020 06:13:02 +0000 (06:13 +0000)] 
Merge branch '1627-call-set_resigntime-and-zone_settimer-v9_16' into 'v9_16'

Resolve "inline re-signing stops"

See merge request isc-projects/bind9!3138

6 years agoadd release note entry
Mark Andrews [Tue, 3 Mar 2020 04:37:42 +0000 (15:37 +1100)] 
add release note entry

(cherry picked from commit 23ce0f32e5a770c16a76d19e2a1c9e1322433d69)

6 years agoAdd CHANGES note
Mark Andrews [Tue, 3 Mar 2020 04:30:52 +0000 (15:30 +1100)] 
Add CHANGES note

(cherry picked from commit 905549f061dab784c533287db087d3705cfe0a1d)

6 years agoAdjust lock/unlock in zone_rekey()
Ondřej Surý [Thu, 27 Feb 2020 07:45:10 +0000 (08:45 +0100)] 
Adjust lock/unlock in zone_rekey()

(cherry picked from commit aaaa7e67fa2b0ec618ec4be1af175fd6d73b76a0)

6 years agoEnsure that resigintime and the zone timer are set
Mark Andrews [Fri, 28 Feb 2020 03:01:40 +0000 (14:01 +1100)] 
Ensure that resigintime and the zone timer are set

(cherry picked from commit a6626594aa348209eb02ec1ba8d3539821144aca)

6 years agoAdd more zone locks
Matthijs Mekking [Thu, 27 Feb 2020 10:59:12 +0000 (11:59 +0100)] 
Add more zone locks

Add more zone locks around code that touches zone timer setting
in failure modes.

(cherry picked from commit 143d1c9767e25d35dd939f43f6bae462ee9db477)

6 years agoAlways call set_resigntime with the zone lock held
Mark Andrews [Thu, 27 Feb 2020 06:48:05 +0000 (17:48 +1100)] 
Always call set_resigntime with the zone lock held

(cherry picked from commit 7212961849510f97146f815fa03f1e90de9d3201)

6 years agoAlways call zone_settimer()
Mark Andrews [Thu, 27 Feb 2020 06:43:26 +0000 (17:43 +1100)] 
Always call zone_settimer()

zone_needdump() could potentially not call zone_settimer() so
explitly call zone_settimer() as zone->resigntime could have
gone backward.

(cherry picked from commit 5ec57f31b0cca77f2629bac888c323cd619979ee)

6 years agoCall set_resigntime() in receive_secure_serial()
Mark Andrews [Thu, 27 Feb 2020 06:35:18 +0000 (17:35 +1100)] 
Call set_resigntime() in receive_secure_serial()

With RRSIG records no longer being signed with the full
sig-validity-interval we need to ensure the zone->resigntime
as it may need to be set to a earlier time.

(cherry picked from commit 5d1611afdc61ea8f19ceecc3e88cdb2296ec3914)

6 years agoMerge branch '1640-add-ZLIB_LIBS-to-ISCLIBS-v9_16' into 'v9_16'
Michał Kępień [Fri, 28 Feb 2020 14:39:02 +0000 (14:39 +0000)] 
Merge branch '1640-add-ZLIB_LIBS-to-ISCLIBS-v9_16' into 'v9_16'

[v9_16] Add ZLIB_LIBS to ISCLIBS

See merge request isc-projects/bind9!3131

6 years agoAdd ZLIB_LIBS to ISCLIBS
Michał Kępień [Fri, 28 Feb 2020 14:22:29 +0000 (15:22 +0100)] 
Add ZLIB_LIBS to ISCLIBS

When --with-zlib is passed to ./configure (or when the latter
autodetects zlib's presence), libisc uses certain zlib functions and
thus libisc's users should be linked against zlib in that case.  Adjust
Makefile variables appropriately to prevent shared build failures caused
by underlinking.

(cherry picked from commit fc967ba0925fe0795ec0bcac1ea4e0fe143632d7)

6 years agoMerge branch 'wpk/perfwork-3-small-nits-v9_16' into 'v9_16'
Witold Krecicki [Fri, 28 Feb 2020 09:36:49 +0000 (09:36 +0000)] 
Merge branch 'wpk/perfwork-3-small-nits-v9_16' into 'v9_16'

Wpk/perfwork 3 small nits v9 16

See merge request isc-projects/bind9!3130

6 years agocomments
Evan Hunt [Tue, 18 Feb 2020 21:38:41 +0000 (13:38 -0800)] 
comments

(cherry picked from commit 0b76d8a490ef97946f79980b6074ab78b8966c85)

6 years agoDon't define NS_CLIENT_TRACE by default
Witold Kręcicki [Fri, 14 Feb 2020 11:28:03 +0000 (12:28 +0100)] 
Don't define NS_CLIENT_TRACE by default

(cherry picked from commit 4b6a064972ea4ce8f08909f4743a74fbf7855e93)

6 years agoIncrease inactivehandles and inactivereqs size for better reuse.
Witold Kręcicki [Wed, 29 Jan 2020 14:16:02 +0000 (15:16 +0100)] 
Increase inactivehandles and inactivereqs size for better reuse.

(cherry picked from commit 4791263def9cbc17efd6f95574e746e03605b084)

6 years agoIncrease nodelock count for both cache and regular db.
Witold Kręcicki [Tue, 28 Jan 2020 10:53:24 +0000 (11:53 +0100)] 
Increase nodelock count for both cache and regular db.

(cherry picked from commit 03446843856a3efbaaec41409b5eea5542501118)

6 years agoUse RESOLVER_NTASKS_PERCPU - 32 for regular tuning, 8 for small
Witold Kręcicki [Fri, 14 Feb 2020 08:18:48 +0000 (09:18 +0100)] 
Use RESOLVER_NTASKS_PERCPU - 32 for regular tuning, 8 for small

(cherry picked from commit 0d80266f7e39072460a91ebec4a5abd0dc577043)

6 years agouse SO_INCOMING_CPU for UDP sockets
Witold Kręcicki [Tue, 11 Feb 2020 13:41:49 +0000 (14:41 +0100)] 
use SO_INCOMING_CPU for UDP sockets

(cherry picked from commit 517e6eccdf6adbcc1307bec0913b5f74a336a37a)

6 years agoRemove some stale fields from ns_client_t; make sendbuf allocated on heap
Witold Kręcicki [Fri, 31 Jan 2020 21:56:32 +0000 (22:56 +0100)] 
Remove some stale fields from ns_client_t; make sendbuf allocated on heap

(cherry picked from commit 8c6c07286fe5ef28418ad207bce4169010f6b607)

6 years agoDon't update LRU if the node was recently used.
Witold Kręcicki [Fri, 31 Jan 2020 12:26:34 +0000 (13:26 +0100)] 
Don't update LRU if the node was recently used.

Updating LRU requires write-locking the node, which causes contention.
Update LRU only if time difference is large enough.

(cherry picked from commit fe584c01cc97bb1b757f78841257af978a79f435)

6 years agoWe don't need to fill udp local address every time since we are bound to it.
Witold Kręcicki [Wed, 29 Jan 2020 12:33:58 +0000 (13:33 +0100)] 
We don't need to fill udp local address every time since we are bound to it.

(cherry picked from commit a658f7976cd092bf68a1f2adecdf8d0e5f339758)

6 years agoDon't check if the client is on recursing list (requires locking) if it's not RECURSING
Witold Kręcicki [Tue, 28 Jan 2020 09:31:35 +0000 (10:31 +0100)] 
Don't check if the client is on recursing list (requires locking) if it's not RECURSING

(cherry picked from commit 938b61405b550a31337e39415669bd3a1b8e7a25)

6 years agoUse the original threadid when sending a UDP packet to decrease probability of contex...
Witold Kręcicki [Wed, 29 Jan 2020 08:29:19 +0000 (09:29 +0100)] 
Use the original threadid when sending a UDP packet to decrease probability of context switching

(cherry picked from commit eb874608c1929df6b2fa81ec31b64b3901e85c16)

6 years agoMerge branch '1638-rrsig-soa-and-re-signing-v9_16' into 'v9_16'
Mark Andrews [Fri, 28 Feb 2020 00:27:20 +0000 (00:27 +0000)] 
Merge branch '1638-rrsig-soa-and-re-signing-v9_16' into 'v9_16'

Resolve "RRSIG(SOA) and re-signing."

See merge request isc-projects/bind9!3128

6 years agocapture named-journalprint output
Mark Andrews [Tue, 25 Feb 2020 01:17:11 +0000 (12:17 +1100)] 
capture named-journalprint output

(cherry picked from commit 88c828cb9ff876319f01ce37d26ad4a052201ec5)

6 years agosort RRSIG(SOA) to be last of RRSIGs with a common re-resign time
Mark Andrews [Tue, 25 Feb 2020 01:11:27 +0000 (12:11 +1100)] 
sort RRSIG(SOA) to be last of RRSIGs with a common re-resign time

(cherry picked from commit a24fd55836775a717efaedd3c0e080a991dc6b73)

6 years agouse the full sig-validity-interval for RRSIG(SOA)
Mark Andrews [Tue, 25 Feb 2020 01:09:13 +0000 (12:09 +1100)] 
use the full sig-validity-interval for RRSIG(SOA)

(cherry picked from commit 660dc3eba75b2d0ba21e5a697387acb615293140)

6 years agoMerge branch 'marka-coverity-stop-taint-v9_16' into 'v9_16'
Mark Andrews [Thu, 27 Feb 2020 22:27:23 +0000 (22:27 +0000)] 
Merge branch 'marka-coverity-stop-taint-v9_16' into 'v9_16'

Simplify hash computation to prevent pointer being classed as tainted.

See merge request isc-projects/bind9!3127

6 years agoSimplify hash computation to prevent pointer being classed as tainted.
Mark Andrews [Mon, 17 Feb 2020 22:40:21 +0000 (09:40 +1100)] 
Simplify hash computation to prevent pointer being classed as tainted.

mem.c:add_trace_entry() -> isc_hash_function() -> isc_siphash24()

129        for (; in != end; in += 8) {

6. byte_swapping: Performing a byte swapping operation on
in implies that it came from an external source, and is
therefore tainted.

130                uint64_t m = U8TO64_LE(in);

(cherry picked from commit 8c983a7ebd562f9e45a2b8ca623167b179bfd98f)

6 years agoMerge branch '1623-assertion-failure-ns-client-endrequest-v9_16' into 'v9_16'
Witold Krecicki [Thu, 27 Feb 2020 12:41:48 +0000 (12:41 +0000)] 
Merge branch '1623-assertion-failure-ns-client-endrequest-v9_16' into 'v9_16'

Don't issue ns_client_endrequest on a NS_CLIENTSTATE_READY client.

See merge request isc-projects/bind9!3123

6 years agoDon't issue ns_client_endrequest on a NS_CLIENTSTATE_READY client.
Witold Kręcicki [Mon, 17 Feb 2020 14:52:09 +0000 (15:52 +0100)] 
Don't issue ns_client_endrequest on a NS_CLIENTSTATE_READY client.

Fix a potential assertion failure on shutdown in ns__client_endrequest.
Scenario:
1. We are shutting down, interface->clientmgr is gone.
2. We receive a packet, it gets through ns__client_request
3. mgr == NULL, return
4. isc_nmhandle_detach calls ns_client_reset_cb
5. ns_client_reset_cb calls ns_client_endrequest
6. INSIST(client->state == NS_CLIENTSTATE_WORKING ||
          client->state == NS_CLIENTSTATE_RECURSING) is not met
   - we haven't started processing this packet so
   client->state == NS_CLIENTSTATE_READY.
As a solution - don't do anything in ns_client_reset_cb if the client
is still in READY state.

(cherry picked from commit b0888ff0398687793c83a46a7ce64eea1ca24899)

6 years agoMerge branch 'wpk/perfwork-5-isc-result-rwlock-v9_16' into 'v9_16'
Witold Krecicki [Thu, 27 Feb 2020 11:39:43 +0000 (11:39 +0000)] 
Merge branch 'wpk/perfwork-5-isc-result-rwlock-v9_16' into 'v9_16'

Use isc_rwlock for isc_result tables

See merge request isc-projects/bind9!3124

6 years agoUse isc_rwlock for isc_result tables
Witold Kręcicki [Tue, 28 Jan 2020 10:27:27 +0000 (11:27 +0100)] 
Use isc_rwlock for isc_result tables

(cherry picked from commit 00f21462659af3100cdb66984d458cbde6642a61)

6 years agoMerge branch 'wpk/perfwork-4-compressctx-arena-v9_16' into 'v9_16'
Witold Krecicki [Thu, 27 Feb 2020 09:12:39 +0000 (09:12 +0000)] 
Merge branch 'wpk/perfwork-4-compressctx-arena-v9_16' into 'v9_16'

Add an arena to compressctx

See merge request isc-projects/bind9!3122

6 years agoAdd an arena to compressctx
Witold Kręcicki [Mon, 3 Feb 2020 10:17:32 +0000 (11:17 +0100)] 
Add an arena to compressctx

(cherry picked from commit 3a3b5f557a4019f46c1a6500d7e20e9359d159b5)

6 years agoMerge branch 'each-speedup-serve-stale-test-v9_16' into 'v9_16'
Evan Hunt [Thu, 27 Feb 2020 07:28:55 +0000 (07:28 +0000)] 
Merge branch 'each-speedup-serve-stale-test-v9_16' into 'v9_16'

Speed up serve-stale test

See merge request isc-projects/bind9!3121

6 years agosend bursts of queries in parallel to reduce test runtime
Evan Hunt [Thu, 20 Feb 2020 02:26:48 +0000 (18:26 -0800)] 
send bursts of queries in parallel to reduce test runtime

sending each group of queries simultaneously, and then checking the
output after the last one finishes, reduces the runtime of the
serve-stale test by about six minutes.

(cherry picked from commit 195d25b2229244fb5ffbc485f8ca05bf6e08d282)

6 years agostop testing 'serve-stale yes' and 'serve-fail no' alternate syntax
Evan Hunt [Wed, 19 Feb 2020 23:46:26 +0000 (15:46 -0800)] 
stop testing 'serve-stale yes' and 'serve-fail no' alternate syntax

"yes" and "no" are permissible synonyms for "on" and "off", which
use exactly the same code paths. making sure they work isn't a good
use of 80 seconds of test time.

(cherry picked from commit 027601cd3efc24da348c8555beea61ca61712e4d)

6 years agouse "on|off" in rndc -h output to match the man page
Evan Hunt [Wed, 19 Feb 2020 23:40:50 +0000 (15:40 -0800)] 
use "on|off" in rndc -h output to match the man page

(cherry picked from commit 770bf4980ff416ff5c5c22705020d1d93045a283)

6 years agoMerge branch 'each-cosmetic-fixes-v9_16' into 'v9_16'
Evan Hunt [Tue, 25 Feb 2020 19:55:11 +0000 (19:55 +0000)] 
Merge branch 'each-cosmetic-fixes-v9_16' into 'v9_16'

minor cosmetic fixes

See merge request isc-projects/bind9!3119

6 years agominor cosmetic fixes
Evan Hunt [Wed, 19 Feb 2020 08:17:03 +0000 (00:17 -0800)] 
minor cosmetic fixes

- the configuration summary reported zlib compression was not
  supported even when it was.
- when bind.keys.h was regenerated it violated clang-format style.

(cherry picked from commit beda680f9072ebc35f94e7b4e21ec485c4d6ff3d)

6 years agoMerge branch '1632-spelling-take2-v9_16' into 'v9_16'
Evan Hunt [Fri, 21 Feb 2020 22:17:54 +0000 (22:17 +0000)] 
Merge branch '1632-spelling-take2-v9_16' into 'v9_16'

some Fossies-reported spelling errors were accidentally left unfixed

See merge request isc-projects/bind9!3111

6 years agosome Fossies-reported spelling errors were accidentally left unfixed
Evan Hunt [Fri, 21 Feb 2020 22:12:42 +0000 (14:12 -0800)] 
some Fossies-reported spelling errors were accidentally left unfixed

(cherry picked from commit a2aa29ed4f19e146c8195cdc553919febb172141)

6 years agoMerge branch 'each-dlz-build-v9_16' into 'v9_16'
Evan Hunt [Fri, 21 Feb 2020 17:22:24 +0000 (17:22 +0000)] 
Merge branch 'each-dlz-build-v9_16' into 'v9_16'

fix build errors in DLZ modules

See merge request isc-projects/bind9!3109

6 years agofix build errors in DLZ modules
Evan Hunt [Thu, 20 Feb 2020 05:53:30 +0000 (21:53 -0800)] 
fix build errors in DLZ modules

(cherry picked from commit a06620fe59290c9aea99d26d03fb9ff804795af5)

6 years agoMerge branch 'michal/clean-up-with-tuning-large-remnants-v9_16' into 'v9_16'
Michał Kępień [Fri, 21 Feb 2020 13:30:17 +0000 (13:30 +0000)] 
Merge branch 'michal/clean-up-with-tuning-large-remnants-v9_16' into 'v9_16'

[v9_16] Clean up --with-tuning=large remnants

See merge request isc-projects/bind9!3107

6 years agoClean up --with-tuning=large remnants
Michał Kępień [Fri, 21 Feb 2020 11:51:49 +0000 (12:51 +0100)] 
Clean up --with-tuning=large remnants

The change introduced by commit be159f556568abb9a5dbc494f8441eefdd304a7f
was not fully complete.  Adjust ./configure summary so that it reflects
the new way the --with-tuning switch works, fixing the Autoconf variable
used for determining the value of that switch.  Fix win32utils/Configure
so that it behaves the same way as its Unix counterpart.

(cherry picked from commit a5fc3a63648668762e368d2995569e87b4950ca8)

6 years agoMerge branch '1632-spelling-v9_16' into 'v9_16'
Evan Hunt [Fri, 21 Feb 2020 07:49:44 +0000 (07:49 +0000)] 
Merge branch '1632-spelling-v9_16' into 'v9_16'

fix spelling errors reported by Fossies.

See merge request isc-projects/bind9!3105

6 years agoupdate signatures
Mark Andrews [Fri, 21 Feb 2020 03:54:45 +0000 (14:54 +1100)] 
update signatures

(cherry picked from commit 40fc5809cd8b6a25f98c9b5a8f17902e1ed9d59b)

6 years agofix spelling errors reported by Fossies.
Evan Hunt [Thu, 20 Feb 2020 22:49:36 +0000 (14:49 -0800)] 
fix spelling errors reported by Fossies.

(cherry picked from commit ba0313e649b9de3d746cc8a748cd02da75f258bd)

6 years agoMerge branch 'marka-fix-signature-test-v9_16' into 'v9_16'
Mark Andrews [Fri, 21 Feb 2020 06:51:32 +0000 (06:51 +0000)] 
Merge branch 'marka-fix-signature-test-v9_16' into 'v9_16'

Fix code to generate the test signatues.

See merge request isc-projects/bind9!3104

6 years agoFix code to generate the test signatues.
Mark Andrews [Fri, 21 Feb 2020 05:40:50 +0000 (21:40 -0800)] 
Fix code to generate the test signatues.

* ctx needs to be destroyed before it is regenerated.
* emit the name of the signature to be replaced.
* cleanup memory before asserting so post longjump doesn't detect a
  memory leak.
* comment code.

(cherry picked from commit 3a8c8a2a3199844bb16232e2f362f67d14181939)

6 years agoMerge branch 'cherry-pick-e4671ef2' into 'v9_16'
Ondřej Surý [Thu, 20 Feb 2020 19:57:09 +0000 (19:57 +0000)] 
Merge branch 'cherry-pick-e4671ef2' into 'v9_16'

Merge branch 'ondrej/fix-crash-on-arm64-from-weak-cmpxchg' into 'master'

See merge request isc-projects/bind9!3100

6 years agoMerge branch 'ondrej/fix-crash-on-arm64-from-weak-cmpxchg' into 'master'
Ondřej Surý [Sun, 16 Feb 2020 17:41:30 +0000 (17:41 +0000)] 
Merge branch 'ondrej/fix-crash-on-arm64-from-weak-cmpxchg' into 'master'

Fix crash on arm64 from using atomic_compare_exchange_weak outside of the loop

See merge request isc-projects/bind9!3042

(cherry picked from commit e4671ef2fa4f9764ddc11e95ed5f1bfa56a9e0d7)

fa68a0d8 Added atomic_compare_exchange_strong_acq_rel macro
4cf275ba Replace non-loop usage of atomic_compare_exchange_weak with strong variant
4ff887db Add arm64 to GitLab CI

6 years agoMerge branch 'michal/make-a-sed-script-in-doc-arm-makefile.in-portable-v9_16' into...
Michał Kępień [Thu, 20 Feb 2020 11:27:44 +0000 (11:27 +0000)] 
Merge branch 'michal/make-a-sed-script-in-doc-arm-makefile.in-portable-v9_16' into 'v9_16'

[v9_16] Make a sed script in doc/arm/Makefile.in portable

See merge request isc-projects/bind9!3097

6 years agoMake a sed script in doc/arm/Makefile.in portable
Michał Kępień [Thu, 20 Feb 2020 11:23:36 +0000 (12:23 +0100)] 
Make a sed script in doc/arm/Makefile.in portable

BSD sed does not recognize \s as a whitespace matching token.  Make the
sed script in doc/arm/Makefile.in which ensures GitLab identifiers are
not split across lines portable by replacing \s with [[:space:]].

(cherry picked from commit b25e6b51f6e16c983ab7c0f5cd8187bdd197b8d3)

6 years agoMerge branch 'michal/increase-lifetime-of-docs-sid-amd64-artifacts-v9_16' into 'v9_16'
Michał Kępień [Thu, 20 Feb 2020 10:57:37 +0000 (10:57 +0000)] 
Merge branch 'michal/increase-lifetime-of-docs-sid-amd64-artifacts-v9_16' into 'v9_16'

[v9_16] Increase lifetime of docs:sid:amd64 artifacts

See merge request isc-projects/bind9!3096

6 years agoIncrease lifetime of docs:sid:amd64 artifacts
Michał Kępień [Thu, 20 Feb 2020 10:51:58 +0000 (11:51 +0100)] 
Increase lifetime of docs:sid:amd64 artifacts

Artifacts generated by the docs:sid:amd64 job need to be retained longer
than for other jobs as they are used for building bind.isc.org contents.
If these artifacts are removed too quickly, pipelines in the pages/bind
GitLab project start failing, preventing content updates from being
published.  Increase lifetime of the relevant job artifacts to prevent
this from happening.

(cherry picked from commit 9751ba5a7568a550e62096661515ebc1c2efe3a4)

6 years agoMerge branch 'michal/fix-lib-isc-tests-socket_test-hangs-v9_16' into 'v9_16'
Michał Kępień [Thu, 20 Feb 2020 10:49:48 +0000 (10:49 +0000)] 
Merge branch 'michal/fix-lib-isc-tests-socket_test-hangs-v9_16' into 'v9_16'

[v9_16] Fix lib/isc/tests/socket_test hangs

See merge request isc-projects/bind9!3093

6 years agoFix lib/isc/tests/socket_test hangs
Witold Krecicki [Thu, 20 Feb 2020 10:39:15 +0000 (11:39 +0100)] 
Fix lib/isc/tests/socket_test hangs

(cherry picked from commit 0fe149b2fa7ad86cf026087c5ab42c5bb6e2ae36)

6 years agoMerge branch 'wpk/perfork-2-libuv-tuning-v9_16' into 'v9_16'
Witold Krecicki [Tue, 18 Feb 2020 14:02:47 +0000 (14:02 +0000)] 
Merge branch 'wpk/perfork-2-libuv-tuning-v9_16' into 'v9_16'

Perfwork 2/6 - libuv tuning - support for uv_{recv/send}mmsg, use of libuv-provided uv_export/import

See merge request isc-projects/bind9!3084

6 years agoUse libuv-provided uv_{export,import} if available.
Witold Kręcicki [Fri, 31 Jan 2020 09:10:44 +0000 (10:10 +0100)] 
Use libuv-provided uv_{export,import} if available.

We were using our own versions of isc_uv_{export,import} functions
for multithreaded TCP listeners. Upcoming libuv version will
contain proper uv_{export,import} functions - use them if they're
available.

6 years agoMake nm->recvbuf larger and heap allocated, to allow uv_recvmmsg usage.
Witold Kręcicki [Wed, 29 Jan 2020 12:16:04 +0000 (13:16 +0100)] 
Make nm->recvbuf larger and heap allocated, to allow uv_recvmmsg usage.

Upcoming version of libuv will suport uv_recvmmsg and uv_sendmmsg. To
use uv_recvmmsg we need to provide a larger buffer and be able to
properly free it.

6 years agoMerge branch 'wpk/perfwork-1-client-mctxpool-taskpool-v9_16' into 'v9_16'
Witold Krecicki [Tue, 18 Feb 2020 11:38:42 +0000 (11:38 +0000)] 
Merge branch 'wpk/perfwork-1-client-mctxpool-taskpool-v9_16' into 'v9_16'

Perfwork 1/6 - Use thread-sharded mctxpool and taskpool in ns_client

See merge request isc-projects/bind9!3083

6 years agoUse thread-friendly mctxpool and taskpool in ns_client.
Witold Kręcicki [Tue, 28 Jan 2020 10:05:07 +0000 (11:05 +0100)] 
Use thread-friendly mctxpool and taskpool in ns_client.

Make ns_client mctxpool more thread-friendly by sharding it by
netmgr threadid, use task pool also sharded by thread id to avoid
lock contention.

6 years agoMake isc_task_pause/isc_task_unpause thread safe.
Witold Kręcicki [Tue, 28 Jan 2020 08:08:10 +0000 (09:08 +0100)] 
Make isc_task_pause/isc_task_unpause thread safe.

isc_task_pause/unpause were inherently thread-unsafe - a task
could be paused only once by one thread, if the task was running
while we paused it it led to races. Fix it by making sure that
the task will pause if requested to, and by using a 'pause reference
counter' to count task pause requests - a task will be unpaused
iff all threads unpause it.

Don't remove from queue when pausing task - we lock the queue lock
(expensive), while it's unlikely that the task will be running -
and we'll remove it anyway in dispatcher

6 years agoMerge branch 'each-tweak-penalty-v9_16' into 'v9_16'
Evan Hunt [Mon, 17 Feb 2020 23:04:29 +0000 (23:04 +0000)] 
Merge branch 'each-tweak-penalty-v9_16' into 'v9_16'

adjust the clang-format penalties to reduce string breaking

See merge request isc-projects/bind9!3080

6 years agoadjust the clang-format penalties to reduce string breaking
Evan Hunt [Mon, 17 Feb 2020 20:05:39 +0000 (12:05 -0800)] 
adjust the clang-format penalties to reduce string breaking

this corrects some style glitches such as:
```
        long_function_call(arg, arg2, arg3, arg4, arg5, "str"
                                                        "ing");
```
...by adjusting the penalties for breaking strings and call
parameter lists.

(cherry picked from commit 0002377dca22d6072508bd3c1b31a6ace82283fd)

6 years agoMerge branch 'ondrej/clang-format-fixups-v9_16' into 'v9_16'
Ondřej Surý [Sun, 16 Feb 2020 17:40:51 +0000 (17:40 +0000)] 
Merge branch 'ondrej/clang-format-fixups-v9_16' into 'v9_16'

clang-format fixups v9_16

See merge request isc-projects/bind9!3074

6 years agoFixup the missing clang-format bits
Ondřej Surý [Sun, 16 Feb 2020 16:34:24 +0000 (17:34 +0100)] 
Fixup the missing clang-format bits

(cherry picked from commit 3832e3ecc9854d83d65efe8fa49b258b4ce744e5)

6 years agoSwitch to clang-format-10 that's more accessible on more platforms
Ondřej Surý [Sun, 16 Feb 2020 16:34:05 +0000 (17:34 +0100)] 
Switch to clang-format-10 that's more accessible on more platforms

(cherry picked from commit cbb127eb43ed37c10da8e80870dd37c61daf3755)

6 years agoMerge branch 'cherry-pick-a04cdde4' into 'v9_16'
Ondřej Surý [Fri, 14 Feb 2020 08:46:35 +0000 (08:46 +0000)] 
Merge branch 'cherry-pick-a04cdde4' into 'v9_16'

Merge branch '46-enforce-clang-format-rules' into 'master'

See merge request isc-projects/bind9!3064

6 years agoMerge branch '46-enforce-clang-format-rules' into 'master'
Ondřej Surý [Fri, 14 Feb 2020 08:45:45 +0000 (08:45 +0000)] 
Merge branch '46-enforce-clang-format-rules' into 'master'

Start enforcing the clang-format rules on changed files

Closes #46

See merge request isc-projects/bind9!3063

(cherry picked from commit a04cdde45d96db15be1b4d1d8ceda3662d5854ad)

d2b5853b Start enforcing the clang-format rules on changed files
618947c6 Switch AlwaysBreakAfterReturnType from TopLevelDefinitions to All
654927c8 Add separate .clang-format files for headers
5777c44a Reformat using the new rules
60d29f69 Don't enforce copyrights on .clang-format

6 years agoMerge branch 'cherry-pick-d3b49b66' into 'v9_16'
Ondřej Surý [Fri, 14 Feb 2020 05:57:37 +0000 (05:57 +0000)] 
Merge branch 'cherry-pick-d3b49b66' into 'v9_16'

Merge branch 'each-style-tweak' into 'master'

See merge request isc-projects/bind9!3062

6 years agoMerge branch 'each-style-tweak' into 'master'
Ondřej Surý [Fri, 14 Feb 2020 05:35:17 +0000 (05:35 +0000)] 
Merge branch 'each-style-tweak' into 'master'

adjust clang-format options to get closer to ISC style

See merge request isc-projects/bind9!3061

(cherry picked from commit d3b49b6675a2fdb07e98639abc6a889365bc7ccb)

0255a974 revise .clang-format and add a C formatting script in util
e851ed0b apply the modified style

6 years agoMerge branch 'cherry-pick-67b68e06' into 'v9_16'
Ondřej Surý [Thu, 13 Feb 2020 22:44:02 +0000 (22:44 +0000)] 
Merge branch 'cherry-pick-67b68e06' into 'v9_16'

Merge branch '46-add-curly-braces' into 'master'

See merge request isc-projects/bind9!3060

6 years agoMerge branch '46-add-curly-braces' into 'master'
Ondřej Surý [Thu, 13 Feb 2020 21:28:07 +0000 (21:28 +0000)] 
Merge branch '46-add-curly-braces' into 'master'

Add curly braces using uncrustify and then reformat with clang-format back

Closes #46

See merge request isc-projects/bind9!3057

(cherry picked from commit 67b68e06ad6f3799872cd79de999276df1e1e872)

36c6105e Use coccinelle to add braces to nested single line statement
d14bb713 Add copy of run-clang-tidy that can fixup the filepaths
056e133c Use clang-tidy to add curly braces around one-line statements

6 years agoMerge branch 'prep-release' into v9_16 v9.16.0
Tinderbox User [Wed, 12 Feb 2020 20:03:44 +0000 (20:03 +0000)] 
Merge branch 'prep-release' into v9_16

6 years agoprep v9.16.0
Tinderbox User [Wed, 12 Feb 2020 18:11:56 +0000 (18:11 +0000)] 
prep v9.16.0