]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
6 years agoimprove calculation of database transfer size
Evan Hunt [Sat, 22 Feb 2020 08:37:05 +0000 (00:37 -0800)] 
improve calculation of database transfer size

- change name of 'bytes' to 'xfrsize' in dns_db_getsize() parameter list
  and related variables; this is a more accurate representation of what
  the function is doing
- change the size calculations in dns_db_getsize() to more accurately
  represent the space needed for a *XFR message or journal file to contain
  the data in the database. previously we returned the sizes of all
  rdataslabs, including header overhead and offset tables, which
  resulted in the database size being reported as much larger than the
  equivalent *XFR or journal.
- map files caused a particular problem here: the fullname can't be
  determined from the node while a file is being deserialized, because
  the uppernode pointers aren't set yet. so we store "full name length"
  in the dns_rbtnode structure while serializing, and clear it after
  deserialization is complete.

6 years agodns_journal_iter_init() can now return the size of the delta
Evan Hunt [Sat, 22 Feb 2020 01:05:04 +0000 (17:05 -0800)] 
dns_journal_iter_init() can now return the size of the delta

the call initailizing a journal iterator can now optionally return
to the caller the size in bytes of an IXFR message (not including
DNS header overhead, signatures etc) containing the differences from
the beginning to the ending serial number.

this is calculated by scanning the journal transaction headers to
calculate the transfer size. since journal file records contain a length
field that is not included in IXFR messages, we subtract out the length
of those fields from the overall transaction length.

this necessitated adding an "RR count" field to the journal transaction
header, so we know how many length fields to subract. NOTE: this will
make existing journal files stop working!

6 years agoadd syntax and setter/getter functions to configure max-ixfr-ratio
Evan Hunt [Fri, 21 Feb 2020 18:53:08 +0000 (10:53 -0800)] 
add syntax and setter/getter functions to configure max-ixfr-ratio

6 years agodocument max-ixfr-ratio
Evan Hunt [Fri, 21 Feb 2020 21:08:49 +0000 (13:08 -0800)] 
document max-ixfr-ratio

6 years agoMerge branch '1628-release-process-failed-to-detect-that-header-file-was-not-installe...
Mark Andrews [Fri, 6 Mar 2020 01:04:07 +0000 (01:04 +0000)] 
Merge branch '1628-release-process-failed-to-detect-that-header-file-was-not-installed' into 'master'

Resolve "Release process failed to detect that header file was not installed."

Closes #1628

See merge request isc-projects/bind9!3089

6 years agotest installed header files
Mark Andrews [Wed, 19 Feb 2020 22:31:05 +0000 (09:31 +1100)] 
test installed header files

6 years agoMerge branch 'marka-install-missing-header-files' into 'master'
Mark Andrews [Thu, 5 Mar 2020 23:10:53 +0000 (23:10 +0000)] 
Merge branch 'marka-install-missing-header-files' into 'master'

Fix lists of installed header files

See merge request isc-projects/bind9!3173

6 years agoFix lists of installed header files
Michał Kępień [Thu, 5 Mar 2020 11:52:11 +0000 (12:52 +0100)] 
Fix lists of installed header files

6 years agoMerge branch 'wpk/only-use-timer-if-initialized' into 'master'
Witold Krecicki [Thu, 5 Mar 2020 23:08:02 +0000 (23:08 +0000)] 
Merge branch 'wpk/only-use-timer-if-initialized' into 'master'

Only use tcpdns timer if it's initialized.

See merge request isc-projects/bind9!3171

6 years agoOnly use tcpdns timer if it's initialized.
Witold Kręcicki [Thu, 5 Mar 2020 21:56:31 +0000 (22:56 +0100)] 
Only use tcpdns timer if it's initialized.

6 years agoMerge branch 'marka-sort-AC_CONFIG_FILES' into 'master'
Mark Andrews [Thu, 5 Mar 2020 21:47:02 +0000 (21:47 +0000)] 
Merge branch 'marka-sort-AC_CONFIG_FILES' into 'master'

sort AC_CONFIG_FILES

See merge request isc-projects/bind9!3167

6 years agosort AC_CONFIG_FILES
Mark Andrews [Thu, 5 Mar 2020 21:17:06 +0000 (08:17 +1100)] 
sort AC_CONFIG_FILES

6 years agoMerge branch '1643-tcp-connections-accounting' into 'master'
Witold Krecicki [Thu, 5 Mar 2020 20:31:04 +0000 (20:31 +0000)] 
Merge branch '1643-tcp-connections-accounting' into 'master'

Resolve "Problems reported in BIND 9.16.0 after hitting tcp-clients limit"

Closes #1643

See merge request isc-projects/bind9!3163

6 years agoCHANGES note
Witold Kręcicki [Thu, 5 Mar 2020 13:25:04 +0000 (14:25 +0100)] 
CHANGES note

6 years agoFix TCPDNS socket closing issues
Witold Kręcicki [Mon, 2 Mar 2020 11:10:26 +0000 (12:10 +0100)] 
Fix TCPDNS socket closing issues

6 years agoadd a test of normal TCP query behavior before and after high-water test
Evan Hunt [Fri, 28 Feb 2020 22:47:10 +0000 (14:47 -0800)] 
add a test of normal TCP query behavior before and after high-water test

6 years agoLimit TCP connection quota logging to 1/s
Witold Kręcicki [Fri, 28 Feb 2020 12:58:13 +0000 (13:58 +0100)] 
Limit TCP connection quota logging to 1/s

6 years agoProper accounting of active TCP connections
Witold Kręcicki [Fri, 28 Feb 2020 10:57:51 +0000 (11:57 +0100)] 
Proper accounting of active TCP connections

6 years agoMerge branch 'mnowak/respdiff' into 'master'
Michal Nowak [Thu, 5 Mar 2020 14:45:46 +0000 (14:45 +0000)] 
Merge branch 'mnowak/respdiff' into 'master'

Add respdiff test

See merge request isc-projects/bind9!3078

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.

6 years agoMerge branch '1650-fix-race-in-killoldestclient' into 'master'
Witold Krecicki [Thu, 5 Mar 2020 09:02:11 +0000 (09:02 +0000)] 
Merge branch '1650-fix-race-in-killoldestclient' into 'master'

Destroy query in killoldestclient under a lock

Closes #1650

See merge request isc-projects/bind9!3146

6 years agoDestroy query in killoldestquery under a lock.
Witold Kręcicki [Tue, 3 Mar 2020 09:09:17 +0000 (10:09 +0100)] 
Destroy query in killoldestquery under a lock.

Fixes a race between ns_client_killoldestquery and ns_client_endrequest -
killoldestquery takes a client from `recursing` list while endrequest
destroys client object, then killoldestquery works on a destroyed client
object. Prevent it by holding reclist lock while cancelling query.

6 years agoMerge branch '1647-addtrustedkey-dnskey' into 'master'
Evan Hunt [Wed, 4 Mar 2020 23:41:11 +0000 (23:41 +0000)] 
Merge branch '1647-addtrustedkey-dnskey' into 'master'

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

Closes #1647

See merge request isc-projects/bind9!3158

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

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

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.

6 years agoMerge branch 'mnowak/pkcs11-test-fix' into 'master'
Michal Nowak [Wed, 4 Mar 2020 16:06:31 +0000 (16:06 +0000)] 
Merge branch 'mnowak/pkcs11-test-fix' into 'master'

Fix pkcs11 test

Closes #1496

See merge request isc-projects/bind9!3116

6 years agoFix "pkcs11" system test
Michal Nowak [Wed, 4 Mar 2020 16:06:31 +0000 (16:06 +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".

6 years agoMerge branch 'wpk-use-pthread-rwlock-by-default' into 'master'
Witold Krecicki [Wed, 4 Mar 2020 09:50:56 +0000 (09:50 +0000)] 
Merge branch 'wpk-use-pthread-rwlock-by-default' into 'master'

Use pthread rwlocks by default

See merge request isc-projects/bind9!3125

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

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

6 years agoMerge branch '1532-nta-validate-except' into 'master'
Evan Hunt [Wed, 4 Mar 2020 09:09:53 +0000 (09:09 +0000)] 
Merge branch '1532-nta-validate-except' into 'master'

list "validate-except" entries in "rndc nta -d" and "rndc secroots"

Closes #1532

See merge request isc-projects/bind9!3152

6 years agolist "validate-except" entries in "rndc nta -d" and "rndc secroots"
Evan Hunt [Wed, 4 Mar 2020 06:46:58 +0000 (22:46 -0800)] 
list "validate-except" entries in "rndc nta -d" and "rndc secroots"

- no longer exclude these entries when dumping the NTA table
- indicate "validate-except" entries with the keyword "permanent" in
  place of an expiry date
- add a test for this feature, and update other tests to account for
  the presence of extra lines in some rndc outputs
- incidentally removed the unused function dns_ntatable_dump()
- CHANGES, release note

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

Resolve "masterformat system test failed - missing "sleep 1""

Closes #1656

See merge request isc-projects/bind9!3151

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

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

Check that inline master zones that are only touched are correctly reloaded.

Closes #1627

See merge request isc-projects/bind9!3135

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

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.

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.

6 years agoMerge branch 'ondrej/fix-notes-9.17.0-xml' into 'master'
Ondřej Surý [Tue, 3 Mar 2020 14:24:17 +0000 (14:24 +0000)] 
Merge branch 'ondrej/fix-notes-9.17.0-xml' into 'master'

fixup the version number in 9.17.0 release notes

See merge request isc-projects/bind9!3145

6 years agofixup the version number in 9.17.0 release notes
Ondřej Surý [Tue, 3 Mar 2020 08:31:34 +0000 (09:31 +0100)] 
fixup the version number in 9.17.0 release notes

6 years agoMerge branch 'wpk/socket-destroy-race' into 'master'
Witold Krecicki [Tue, 3 Mar 2020 08:20:44 +0000 (08:20 +0000)] 
Merge branch 'wpk/socket-destroy-race' into 'master'

Fix a race in isc_socket destruction.

Closes #1651

See merge request isc-projects/bind9!3004

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.

6 years agoMerge branch '1627-call-set_resigntime-and-zone_settimer' into 'master'
Mark Andrews [Tue, 3 Mar 2020 05:07:58 +0000 (05:07 +0000)] 
Merge branch '1627-call-set_resigntime-and-zone_settimer' into 'master'

Call set resigntime and zone settimer

Closes #1627

See merge request isc-projects/bind9!3137

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

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

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()

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

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.

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

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.

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.

6 years agoMerge branch 'wpk/perfwork-7-multilocked-badcache' into 'master'
Witold Krecicki [Mon, 2 Mar 2020 17:18:35 +0000 (17:18 +0000)] 
Merge branch 'wpk/perfwork-7-multilocked-badcache' into 'master'

Badcache with multiple locks.

See merge request isc-projects/bind9!3076

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.

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.

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

Add ZLIB_LIBS to ISCLIBS

Closes #1640

See merge request isc-projects/bind9!3117

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.

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

Perfwork 3/6 - Various small nits and tunables

See merge request isc-projects/bind9!3067

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

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

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.

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.

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

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

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

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.

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.

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

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

6 years agoMerge branch '1638-rrsig-soa-and-re-signing' into 'master'
Mark Andrews [Thu, 27 Feb 2020 22:48:48 +0000 (22:48 +0000)] 
Merge branch '1638-rrsig-soa-and-re-signing' into 'master'

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

Closes #1638

See merge request isc-projects/bind9!3114

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

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

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)

6 years agoMerge branch 'marka-coverity-stop-taint' into 'master'
Mark Andrews [Thu, 27 Feb 2020 20:01:04 +0000 (20:01 +0000)] 
Merge branch 'marka-coverity-stop-taint' into 'master'

Simplify hash computation to prevent pointer being classed as tainted.

See merge request isc-projects/bind9!3081

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);

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

Perfwork 5/6 - Use isc_rwlock for isc_result tables

See merge request isc-projects/bind9!3069

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

6 years agoMerge branch 'each-speedup-serve-stale-test' into 'master'
Evan Hunt [Thu, 27 Feb 2020 06:57:56 +0000 (06:57 +0000)] 
Merge branch 'each-speedup-serve-stale-test' into 'master'

Speed up serve-stale test

See merge request isc-projects/bind9!3090

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.

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.

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

6 years agoMerge branch '1623-assertion-failure-ns-client-endrequest' into 'master'
Witold Krecicki [Wed, 26 Feb 2020 12:35:19 +0000 (12:35 +0000)] 
Merge branch '1623-assertion-failure-ns-client-endrequest' into 'master'

Don't issue ns_client_endrequest on a NS_CLIENTSTATE_READY client.

Closes #1623

See merge request isc-projects/bind9!3077

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.

6 years agoMerge branch 'wpk/perfwork-4-compressctx-arena' into 'master'
Witold Krecicki [Wed, 26 Feb 2020 08:17:28 +0000 (08:17 +0000)] 
Merge branch 'wpk/perfwork-4-compressctx-arena' into 'master'

Perfwork 4/6 - add an arena to compressctx

See merge request isc-projects/bind9!3068

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

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

minor cosmetic fixes

See merge request isc-projects/bind9!3085

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.

6 years agoMerge branch '103-include-multiple-files' into 'master'
Matthijs Mekking [Tue, 25 Feb 2020 12:17:33 +0000 (12:17 +0000)] 
Merge branch '103-include-multiple-files' into 'master'

Resolve "[RT#43439 'include' a whole directory when creating BIND zone file"

Closes #103

See merge request isc-projects/bind9!2296

6 years agoMake clang-format happy
Matthijs Mekking [Tue, 25 Feb 2020 08:07:45 +0000 (09:07 +0100)] 
Make clang-format happy

6 years agoUpdate copyrights
Diego Fronza [Mon, 24 Feb 2020 16:53:32 +0000 (13:53 -0300)] 
Update copyrights

6 years agoAdd test for checkconf glob include
Matthijs Mekking [Mon, 10 Feb 2020 10:24:28 +0000 (11:24 +0100)] 
Add test for checkconf glob include

6 years agoUpdate configure to handle glob.h
Diego Fronza [Thu, 30 Jan 2020 17:39:30 +0000 (14:39 -0300)] 
Update configure to handle glob.h

6 years agoAdded a isc_glob() function that wraps glob() calls for POSIX systems
Diego Fronza [Wed, 23 Oct 2019 19:25:06 +0000 (16:25 -0300)] 
Added a isc_glob() function that wraps glob() calls for POSIX systems
and implement a custom glob() function on Windows systems.

6 years agoAdded test to verify that both include glob-expression and include
Diego Fronza [Tue, 22 Oct 2019 13:43:24 +0000 (10:43 -0300)] 
Added test to verify that both include glob-expression and include
non-glob-expression works.

6 years agoAdded tests for include directive + glob expressions.
Diego dos Santos Fronza [Mon, 16 Sep 2019 15:03:10 +0000 (12:03 -0300)] 
Added tests for include directive + glob expressions.

6 years agoAllowing include directive to use glob expressions, e.g. include
Diego dos Santos Fronza [Fri, 13 Sep 2019 15:08:56 +0000 (12:08 -0300)] 
Allowing include directive to use glob expressions, e.g. include
"/opt/named.conf/*.conf".

6 years agoMerge branch 'michal/misc-9.17-preparations' into 'master'
Michał Kępień [Mon, 24 Feb 2020 10:03:07 +0000 (10:03 +0000)] 
Merge branch 'michal/misc-9.17-preparations' into 'master'

Miscellaneous BIND 9.17 preparations

See merge request isc-projects/bind9!3108

6 years agoRebuild documentation
Evan Hunt [Mon, 24 Feb 2020 04:48:55 +0000 (20:48 -0800)] 
Rebuild documentation

6 years agoBump version to 9.17.0
Michał Kępień [Mon, 24 Feb 2020 09:56:47 +0000 (10:56 +0100)] 
Bump version to 9.17.0

6 years agoBump library API versions for BIND 9.17
Michał Kępień [Mon, 24 Feb 2020 09:56:47 +0000 (10:56 +0100)] 
Bump library API versions for BIND 9.17