]> git.ipfire.org Git - thirdparty/bind9.git/log
thirdparty/bind9.git
5 years agoMerge branch '2081-data-race-in-zonemgr_test' into 'main'
Mark Andrews [Wed, 2 Sep 2020 01:36:51 +0000 (01:36 +0000)] 
Merge branch '2081-data-race-in-zonemgr_test' into 'main'

Resolve "data race in zonemgr_test"

Closes #2081

See merge request isc-projects/bind9!3989

5 years agoAdd CHANGES note
Mark Andrews [Wed, 19 Aug 2020 08:53:20 +0000 (18:53 +1000)] 
Add CHANGES note

5 years agoisc_ratelimiter needs to hold a reference to its task
Mark Andrews [Wed, 19 Aug 2020 08:45:38 +0000 (18:45 +1000)] 
isc_ratelimiter needs to hold a reference to its task

to prevent the task subsystem shutting down before the
ratelimiter is freed.

5 years agoMerge branch '2111-restore-d-option-to-packet-pl' into 'main'
Mark Andrews [Wed, 2 Sep 2020 00:24:03 +0000 (00:24 +0000)] 
Merge branch '2111-restore-d-option-to-packet-pl' into 'main'

Resolve "Restore '-d' option to packet.pl"

Closes #2111

See merge request isc-projects/bind9!4054

5 years agoDump the returned packet
Mark Andrews [Tue, 1 Sep 2020 23:40:45 +0000 (09:40 +1000)] 
Dump the returned packet

5 years agoMerge branch '2049-cleanup-sock' into 'main'
Mark Andrews [Tue, 1 Sep 2020 22:38:43 +0000 (22:38 +0000)] 
Merge branch '2049-cleanup-sock' into 'main'

Resolve "Compiler warnings identified by Intel C++ Compiler"

See merge request isc-projects/bind9!3924

5 years agoremove unused variable sock
Mark Andrews [Thu, 6 Aug 2020 02:21:50 +0000 (12:21 +1000)] 
remove unused variable sock

5 years agoMerge branch '1847-recursor-has-issues-recursing-ip6-arpa' into 'main'
Diego dos Santos Fronza [Tue, 1 Sep 2020 18:49:23 +0000 (18:49 +0000)] 
Merge branch '1847-recursor-has-issues-recursing-ip6-arpa' into 'main'

Resolve "9.16.* recursor has issues recursing"

Closes #1847

See merge request isc-projects/bind9!4027

5 years agoAdd CHANGES and release note for GL #1847
Diego Fronza [Mon, 31 Aug 2020 16:26:56 +0000 (13:26 -0300)] 
Add CHANGES and release note for GL #1847

5 years agoAdded test for the proposed fix
Diego Fronza [Fri, 28 Aug 2020 21:49:26 +0000 (18:49 -0300)] 
Added test for the proposed fix

The test works as follows:

1. Client wants to resolve unusual ip6.arpa. name:

   test1.test2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.9.0.9.4.1.1.1.1.8.2.6.0.1.0.0.2.ip6.arpa. IN TXT

2. Query is sent to ns7, a qmin enabled resolver.

3. ns7 do the first stage in query minimization for the name and send a new
   query to root (ns1):

  _.1.0.0.2.ip6.arpa.        IN  A

4. ns1 delegates ip6.arpa. to ns2.good.:

    ;; AUTHORITY SECTION:
    ;ip6.arpa.      20  IN  NS  ns2.good.

    ;; ADDITIONAL SECTION:
    ;ns2.good.      20  IN  A   10.53.0.2

5. ns7 do a second round in minimizing the name and send a new query
   to ns2.good. (10.53.0.2):

   _.8.2.6.0.1.0.0.2.ip6.arpa.    IN  A

6. ans2 delegates 8.2.6.0.1.0.0.2.ip6.arpa. to ns3.good.:

    ;; AUTHORITY SECTION:
    ;8.2.6.0.1.0.0.2.ip6.arpa. 60   IN  NS  ns3.good.

    ;; ADDITIONAL SECTION:
    ;ns3.good.      60  IN  A   10.53.0.3

7. ns7 do a third round in minimizing the name and send a new query to
   ns3.good.:

    _.1.1.1.1.8.2.6.0.1.0.0.2.ip6.arpa. IN A

8. ans3 delegates 1.1.1.1.8.2.6.0.1.0.0.2.ip6.arpa. to ns4.good.:

    ;; AUTHORITY SECTION:
    ;1.1.1.1.8.2.6.0.1.0.0.2.ip6.arpa. 60 IN    NS  ns4.good.

    ;; ADDITIONAL SECTION:
    ;ns4.good.      60  IN  A   10.53.0.4

9. ns7 do fourth round in minimizing the name and send a new query to
   ns4.good.:

_.9.4.1.1.1.1.8.2.6.0.1.0.0.2.ip6.arpa.    IN A

10. ns4.good. doesn't know such name, but answers stating it is authoritative for
    the domai:

;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id:  53815
...
;; AUTHORITY SECTION:
1.1.1.1.8.2.6.0.1.0.0.2.ip6.arpa. 60 IN    SOA ns4.good.  ...

11. ns7 do another minimization on name:
   _.9.0.9.4.1.1.1.1.8.2.6.0.1.0.0.2.ip6.arpa
   sends to ns4.good. and gets the same SOA response stated in item #10

12. ns7 do another minimization on name:
_.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.9.0.9.4.1.1.1.1.8.2.6.0.1.0.0.2.ip6.arpa
sends to ns4.good. and gets the same SOA response stated in item #10.

13. ns7 do the last query minimization name for the ip6.arpa. QNAME.
After all IPv6 labels are exausted the algorithm falls back to the
original QNAME:
test1.test2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.9.0.9.4.1.1.1.1.8.2.6.0.1.0.0.2.ip6.arpa

    ns7 sends a new query with the original QNAME to ans4.

14. Finally ans4 answers with the expected response:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id:  40969
;; flags: qr aa; QUESTION: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 8192
;; QUESTION SECTION:
;test1.test2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.9.0.9.4.1.1.1.1.8.2.6.0.1.0.0.2.ip6.arpa. IN TXT

;; ANSWER SECTION:
;test1.test2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.9.0.9.4.1.1.1.1.8.2.6.0.1.0.0.2.ip6.arpa. 1    IN TXT "long_ip6_name"

5 years agoFix resolution of unusual ip6.arpa names
Diego Fronza [Wed, 26 Aug 2020 17:36:14 +0000 (14:36 -0300)] 
Fix resolution of unusual ip6.arpa names

Before this commit, BIND was unable to resolve ip6.arpa names like
the one reported in issue #1847 when using query minimization.

As reported in the issue, an attempt to resolve a name like
'rec-test-dom-158937817846788.test123.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.3.4.3.5.4.0.8.2.6.0.1.0.0.2.ip6.arpa'
using default settings would fail.

The reason was that query minimization algorithm in 'fctx_minimize_qname'
would divide any ip6.arpa names in increasing number of labels,
7,11, ... up to 35, thus limiting the destination name (minimized) to a number
of 35 labels.

In case the last query minimization attempt (with 35 labels) would fail with
NXDOMAIN, BIND would attempt the query mininimization again with the exact
same QNAME, limited on the 35 labels, and that in turn would fail again.

This fix avoids this fail loop by considering the extra labels that may appear
in the leftmost part of an ip6.arpa name, those after the IPv6 part.

5 years agoMerge branch '2037-deferred-system-test-fix' into 'main'
Ondřej Surý [Tue, 1 Sep 2020 14:17:21 +0000 (14:17 +0000)] 
Merge branch '2037-deferred-system-test-fix' into 'main'

Unhexlify 2037-pk11_numbits-crash-test.pkt file

Closes #2037

See merge request isc-projects/bind9!4047

5 years agoMultiply 1996-alloc_dnsbuf-crash-test.pkt by 300000 via TCP
Ondřej Surý [Tue, 1 Sep 2020 07:37:05 +0000 (09:37 +0200)] 
Multiply 1996-alloc_dnsbuf-crash-test.pkt by 300000 via TCP

The test for assertion failure via large TCP packet needs to be repeated
multiple times (we use 300000).  This commit fixes the input file to be
properly hexlified and uses the new packet.pl -r feature to send it
300000 times via TCP.

5 years agoAdd `-r <repeats>` option to packet.pl
Ondřej Surý [Tue, 1 Sep 2020 07:37:05 +0000 (09:37 +0200)] 
Add `-r <repeats>` option to packet.pl

For some tests, we need to send big data streams (for TCP) or repeated
packets (for UDP), this commits adds `-r` option to packet.pl that sends
the same input <repeats> times using the specified protocol.

5 years agoProperly format 2037-pk11_numbits-crash-test.pkt file
Ondřej Surý [Tue, 1 Sep 2020 07:26:04 +0000 (09:26 +0200)] 
Properly format 2037-pk11_numbits-crash-test.pkt file

5 years agoMerge branch '2096-isc_refcount_decrement-needs-acquire-release-memory-ordering'...
Mark Andrews [Tue, 1 Sep 2020 12:21:25 +0000 (12:21 +0000)] 
Merge branch '2096-isc_refcount_decrement-needs-acquire-release-memory-ordering' into 'main'

Resolve "isc_refcount_decrement  needs acquire release memory ordering."

Closes #2096

See merge request isc-projects/bind9!4010

5 years agoUse memory_order_acq_rel in isc_refcount_decrement.
Mark Andrews [Tue, 25 Aug 2020 12:42:27 +0000 (22:42 +1000)] 
Use memory_order_acq_rel in isc_refcount_decrement.

While

if (isc_refcount_decrement() == 1) { // memory_order_release
isc_refcount_destroy(); // memory_order_acquire
...
}

is theoretically the most efficent in practice, using
memory_order_acq_rel produces the same code on x86_64 and doesn't
trigger tsan data races (which use a idealistic model) if
isc_refcount_destroy() is not called immediately.  In fact
isc_refcount_destroy() could be removed if we didn't want
to check for the count being 0 when isc_refcount_destroy() is
called.

https://stackoverflow.com/questions/49112732/memory-order-in-shared-pointer-destructor

5 years agoMerge branch '2075-add-T-maxcachesize-command-line-option' into 'main'
Michał Kępień [Mon, 31 Aug 2020 21:40:28 +0000 (21:40 +0000)] 
Merge branch '2075-add-T-maxcachesize-command-line-option' into 'main'

Add "-T maxcachesize=..." command line option

Closes #2075

See merge request isc-projects/bind9!4043

5 years agoUse "-T maxcachesize=2097152" in all system tests
Michał Kępień [Mon, 31 Aug 2020 11:15:33 +0000 (13:15 +0200)] 
Use "-T maxcachesize=2097152" in all system tests

In order to lower the amount of memory allocated at startup by named
instances used in the BIND system test suite, set the default value of
"max-cache-size" for these to 2 megabytes.  The purpose of this change
is to prevent named instances (or even entire virtual machines) from
getting killed by the operating system on the test host due to excessive
memory use.

Remove all "max-cache-size" statements from named configuration files
used in system tests ("checkconf" notwithstanding) to prevent confusion
as the "-T maxcachesize=..." command line option takes precedence over
configuration files.

5 years agoAdd "-T maxcachesize=..." command line option
Michał Kępień [Mon, 31 Aug 2020 11:15:33 +0000 (13:15 +0200)] 
Add "-T maxcachesize=..." command line option

An implicit default of "max-cache-size 90%;" may cause memory use issues
on hosts which run numerous named instances in parallel (e.g. GitLab CI
runners) due to the cache RBT hash table now being pre-allocated [1] at
startup.  Add a new command line option, "-T maxcachesize=...", to allow
the default value of "max-cache-size" to be overridden at runtime.  When
this new option is in effect, it overrides any other "max-cache-size"
setting in the configuration, either implicit or explicit.  This
approach was chosen because it is arguably the simplest one to
implement.

The following alternative approaches to solving this problem were
considered and ultimately rejected (after it was decided they were not
worth the extra code complexity):

  - adding the same command line option, but making explicit
    configuration statements have priority over it,

  - adding a build-time option that allows the implicit default of
    "max-cache-size 90%;" to be overridden.

[1] see commit e24bc324b455d9cad7b51acd3d5c7b4e40c66187

5 years agoMerge branch '1996-deferred-system-test' into 'main'
Ondřej Surý [Mon, 31 Aug 2020 10:04:42 +0000 (10:04 +0000)] 
Merge branch '1996-deferred-system-test' into 'main'

[CVE-2020-8620] Fix TCP DNS buffer sizes [TEST]

See merge request isc-projects/bind9!4038

5 years agoAdd PoC for assertion failure on large TCP DNS messages
Ondřej Surý [Fri, 31 Jul 2020 08:08:41 +0000 (10:08 +0200)] 
Add PoC for assertion failure on large TCP DNS messages

5 years agoMerge branch '1997-deferred-system-test' into 'main'
Ondřej Surý [Mon, 31 Aug 2020 09:59:01 +0000 (09:59 +0000)] 
Merge branch '1997-deferred-system-test' into 'main'

[CVE-2020-8621] Ensure QNAME minimization is permanently disabled when forwarding [TEST]

See merge request isc-projects/bind9!4039

5 years agotest whether DS chasing works correctly when forwarding
Evan Hunt [Sat, 11 Jul 2020 00:57:23 +0000 (17:57 -0700)] 
test whether DS chasing works correctly when forwarding

5 years agoMerge branch '2037-deferred-system-test' into 'main'
Ondřej Surý [Mon, 31 Aug 2020 08:58:03 +0000 (08:58 +0000)] 
Merge branch '2037-deferred-system-test' into 'main'

Resolve "[CVE-2020-8623] A flaw in native PKCS#11 code can lead to a remotely triggerable assertion failure in pk11.c"

See merge request isc-projects/bind9!4037

5 years agoAdd PoC system test for pk11_numbits() assertion
Ondřej Surý [Tue, 21 Jul 2020 13:56:13 +0000 (15:56 +0200)] 
Add PoC system test for pk11_numbits() assertion

5 years agoFix relative path to conf.sh in cleanpkcs11.sh
Michał Kępień [Fri, 31 Jul 2020 09:26:31 +0000 (11:26 +0200)] 
Fix relative path to conf.sh in cleanpkcs11.sh

5 years agoMerge branch '2028-deferred-system-test' into 'main'
Ondřej Surý [Mon, 31 Aug 2020 06:24:41 +0000 (06:24 +0000)] 
Merge branch '2028-deferred-system-test' into 'main'

[CVE-2020-8622] Properly handle malformed truncated responses to TSIG queries [TEST]

See merge request isc-projects/bind9!4034

5 years agocheck that a malformed truncated response to a TSIG query is handled
Mark Andrews [Wed, 15 Jul 2020 06:06:07 +0000 (16:06 +1000)] 
check that a malformed truncated response to a TSIG query is handled

5 years agoMerge branch '1928-handle-EPROTO' into 'main'
Ondřej Surý [Fri, 28 Aug 2020 18:47:43 +0000 (18:47 +0000)] 
Merge branch '1928-handle-EPROTO' into 'main'

Resolve "error: socket.c:1540: unexpected error:"

Closes #1928

See merge request isc-projects/bind9!4023

5 years agoAdd CHANGES and release note for GL #1928
Ondřej Surý [Wed, 26 Aug 2020 14:39:46 +0000 (16:39 +0200)] 
Add CHANGES and release note for GL #1928

5 years agoHandle EPROTO errno from recvmsg
Ondřej Surý [Wed, 26 Aug 2020 14:31:13 +0000 (16:31 +0200)] 
Handle EPROTO errno from recvmsg

It was discovered, that some systems might set EPROTO instead of EACCESS
on recvmsg() call causing spurious syslog messages from the socket
code.  This commit returns soft handling of EPROTO errno code to the
socket code. [GL #1928]

5 years agoMerge branch '2104-fix-off-by-one-error-in-rehash_bits' into 'main'
Ondřej Surý [Fri, 28 Aug 2020 15:42:13 +0000 (15:42 +0000)] 
Merge branch '2104-fix-off-by-one-error-in-rehash_bits' into 'main'

Resolve "Bind 9.16.6 due to assertion failure"

Closes #2104

See merge request isc-projects/bind9!4030

5 years agoAdd CHANGES and release notes for GL #2104
Ondřej Surý [Fri, 28 Aug 2020 07:44:28 +0000 (09:44 +0200)] 
Add CHANGES and release notes for GL #2104

5 years agoFix off-by-one error when calculating new hashtable size
Ondřej Surý [Fri, 28 Aug 2020 07:30:29 +0000 (09:30 +0200)] 
Fix off-by-one error when calculating new hashtable size

When calculating the new hashtable bitsize, there was an off-by-one
error that would allow the new bitsize to be larger than maximum allowed
causing assertion failure in the rehash() function.

5 years agoMerge branch 'mnowak/fix-tarball-test-suite.log-print' into 'main'
Michal Nowak [Fri, 28 Aug 2020 12:38:32 +0000 (12:38 +0000)] 
Merge branch 'mnowak/fix-tarball-test-suite.log-print' into 'main'

Print test-suite.log correctly in tarball system test job

See merge request isc-projects/bind9!3990

5 years agoPrint test-suite.log correctly in tarball system test job
Michal Nowak [Wed, 19 Aug 2020 09:16:11 +0000 (11:16 +0200)] 
Print test-suite.log correctly in tarball system test job

Printing test-suite.log on system test failure does not work for system
test run from tarball because the "after_script" step does not honour
directory change from the "before_script" step and fails with:

    Running after script...
    $ cat bin/tests/system/test-suite.log
    cat: bin/tests/system/test-suite.log: No such file or directory

5 years agoMerge branch '2074-bind-allows-an-empty-cm-value-for-optional-loc-rdata-fields' into...
Ondřej Surý [Wed, 26 Aug 2020 14:28:17 +0000 (14:28 +0000)] 
Merge branch '2074-bind-allows-an-empty-cm-value-for-optional-loc-rdata-fields' into 'main'

Resolve "BIND allows an empty 'cm' value for optional LOC RDATA fields"

Closes #2074

See merge request isc-projects/bind9!3988

5 years agoAdd CHANGES note
Mark Andrews [Wed, 19 Aug 2020 07:54:06 +0000 (17:54 +1000)] 
Add CHANGES note

5 years agoRefactor totext_loc
Mark Andrews [Tue, 25 Aug 2020 01:03:30 +0000 (11:03 +1000)] 
Refactor  totext_loc

5 years agoCorrectly encode LOC records with non integer negative altitudes.
Mark Andrews [Sat, 22 Aug 2020 15:38:17 +0000 (01:38 +1000)] 
Correctly encode LOC records with non integer negative altitudes.

5 years agoCheck LOC's altitude field is properly parsed and encoded.
Mark Andrews [Sat, 22 Aug 2020 15:35:19 +0000 (01:35 +1000)] 
Check LOC's altitude field is properly parsed and encoded.

5 years agoTighten LOC parsing to reject period and/or m as a value.
Mark Andrews [Wed, 19 Aug 2020 08:47:35 +0000 (18:47 +1000)] 
Tighten LOC parsing to reject period and/or m as a value.

5 years agoMerge branch '2080-data-race-in-rdataset_addglue' into 'main'
Mark Andrews [Wed, 26 Aug 2020 11:32:57 +0000 (11:32 +0000)] 
Merge branch '2080-data-race-in-rdataset_addglue' into 'main'

Resolve "data race in rdataset_addglue"

Closes #2080

See merge request isc-projects/bind9!3987

5 years agoAdd CHANGES note
Mark Andrews [Wed, 19 Aug 2020 05:11:06 +0000 (15:11 +1000)] 
Add CHANGES note

5 years agoUse the Fibonacci Hashing for the RBTDB glue table
Ondřej Surý [Mon, 24 Aug 2020 10:30:42 +0000 (12:30 +0200)] 
Use the Fibonacci Hashing for the RBTDB glue table

The rbtdb version glue_table has been refactored similarly to rbt.c hash
table, so it does use 32-bit hash function return values and apply
Fibonacci Hashing to lookup the index to the hash table instead of
modulo.  For more details, see the lib/dns/rbt.c commit log.

5 years agorbtversion->glue_table_size must be read when holding a lock
Mark Andrews [Wed, 19 Aug 2020 04:59:02 +0000 (14:59 +1000)] 
rbtversion->glue_table_size must be read when holding a lock

5 years agoMerge branch 'mnowak/tumbleweed-fix-krb5-config-location' into 'main'
Michal Nowak [Wed, 26 Aug 2020 08:57:20 +0000 (08:57 +0000)] 
Merge branch 'mnowak/tumbleweed-fix-krb5-config-location' into 'main'

Tumbleweed changed location of krb5-config

See merge request isc-projects/bind9!4016

5 years agoTumbleweed changed location of krb5-config
Michal Nowak [Wed, 26 Aug 2020 07:15:43 +0000 (09:15 +0200)] 
Tumbleweed changed location of krb5-config

krb5-config is now in /usr/bin/ and we should detect it automatically.

5 years agoMerge branch '2097-manual-page-tools-need-updating' into 'main'
Ondřej Surý [Wed, 26 Aug 2020 08:51:49 +0000 (08:51 +0000)] 
Merge branch '2097-manual-page-tools-need-updating' into 'main'

Fix generated documentation

Closes #2097

See merge request isc-projects/bind9!4017

5 years agoFix generated documentation
Michal Nowak [Wed, 26 Aug 2020 08:32:15 +0000 (10:32 +0200)] 
Fix generated documentation

With Sphinx 3.2.1 line-leading period should be escaped.

5 years agoMerge branch 'ondrej/copy-wire-test-to-fuzz' into 'main'
Ondřej Surý [Tue, 25 Aug 2020 18:19:02 +0000 (18:19 +0000)] 
Merge branch 'ondrej/copy-wire-test-to-fuzz' into 'main'

Add dns_message_parse() fuzzer

See merge request isc-projects/bind9!4009

5 years agoAdd minimized (cmin-tmin-cmin) corpus for dns_message_parse fuzzer
Ondřej Surý [Tue, 25 Aug 2020 08:04:11 +0000 (10:04 +0200)] 
Add minimized (cmin-tmin-cmin) corpus for dns_message_parse fuzzer

The non-minimized corpus from https://github.com/CZ-NIC/dns-fuzzing was
used as input to afl-cmin, then every case were processed by afl-tmin
and then afl-cmin was used to further minimize the corpus again.

5 years agoAdd dns_message_parse() fuzzer
Ondřej Surý [Tue, 25 Aug 2020 07:51:40 +0000 (09:51 +0200)] 
Add dns_message_parse() fuzzer

Previously, the bin/system/wire_test.c was optionally used as a fuzzer,
this commit extracts the parts relevant to the fuzzing into a
specialized fuzzer that can be used in oss-fuzz project.

The fuzzer parses the input as UDP DNS message, then prints parsed DNS
message, then renders the DNS message and then prints the rendered DNS
message.  No part of the code should cause a assertion failure.

5 years agoMerge branch '2095-shifting-large-rcode-in-dns-message-c-results-in-undefined-behavio...
Ondřej Surý [Tue, 25 Aug 2020 14:11:04 +0000 (14:11 +0000)] 
Merge branch '2095-shifting-large-rcode-in-dns-message-c-results-in-undefined-behaviour' into 'main'

Resolve "Shifting large rcode in dns/message.c results in undefined behaviour"

Closes #2095

See merge request isc-projects/bind9!4011

5 years agoCast the original rcode to (dns_ttl_t) when setting extended rcode
Mark Andrews [Tue, 25 Aug 2020 12:59:35 +0000 (22:59 +1000)] 
Cast the original rcode to (dns_ttl_t) when setting extended rcode

Shifting (signed) integer left could trigger undefined behaviour when
the shifted value would overflow into the sign bit (e.g. 2048).

The issue was found when using AFL++ and UBSAN:

    message.c:2274:33: runtime error: left shift of 2048 by 20 places cannot be represented in type 'int'
    SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior message.c:2274:33 in

5 years agoMerge branch '2053-test-disable-buffer-useinline-in-gitlab-ci' into 'main'
Michal Nowak [Tue, 25 Aug 2020 14:04:47 +0000 (14:04 +0000)] 
Merge branch '2053-test-disable-buffer-useinline-in-gitlab-ci' into 'main'

Resolve "Test --disable-buffer-useinline in GitLab CI"

Closes #2053

See merge request isc-projects/bind9!3983

5 years agoBuild CentOS 8 with --enable-buffer-useinline
Michal Nowak [Tue, 18 Aug 2020 16:30:09 +0000 (18:30 +0200)] 
Build CentOS 8 with --enable-buffer-useinline

5 years agoFix warnings in when build with --enable-buffer-useinline
Michal Nowak [Tue, 18 Aug 2020 16:27:29 +0000 (18:27 +0200)] 
Fix warnings in when build with --enable-buffer-useinline

    sockaddr.c:147:49: error: pointer targets in passing argument 2 of ‘isc__buffer_putmem’ differ in signedness
    rdata.c:1780:30: error: pointer targets in passing argument 2 of ‘isc__buffer_putmem’ differ in signedness

5 years agoMerge branch 'marka-add-missing-isc_mutex_init' into 'main'
Mark Andrews [Mon, 24 Aug 2020 23:54:46 +0000 (23:54 +0000)] 
Merge branch 'marka-add-missing-isc_mutex_init' into 'main'

Add missing isc_mutex_init to manytasks subtest.

See merge request isc-projects/bind9!3996

5 years agoAdd missing isc_mutex_init to manytasks subtest.
Mark Andrews [Fri, 21 Aug 2020 03:29:15 +0000 (13:29 +1000)] 
Add missing isc_mutex_init to manytasks subtest.

5 years agoMerge branch 'ondrej/update-pregenerated-files' into 'main'
Ondřej Surý [Mon, 24 Aug 2020 17:48:14 +0000 (17:48 +0000)] 
Merge branch 'ondrej/update-pregenerated-files' into 'main'

Update pregenerated documentation files

See merge request isc-projects/bind9!4005

5 years agoSync the pregenerated files with their source counterparts
Ondřej Surý [Mon, 24 Aug 2020 12:32:02 +0000 (14:32 +0200)] 
Sync the pregenerated files with their source counterparts

5 years agoMake sure the maintainer files are clean after rebuild
Ondřej Surý [Mon, 24 Aug 2020 12:40:39 +0000 (14:40 +0200)] 
Make sure the maintainer files are clean after rebuild

When updating source files, we might forget to update pre-generated
files (generated by sphinx-build and cfg_gen) and then the extra changes
would get included in the random merge request.

This commit updates the tarball-create job to enable the maintainer
mode, then clean all maintainer files (`make maintainer-clean`) rebuild
all the file from scratch and compare the result which must be a clean
git directory.

5 years agoMerge branch 'ondrej/update-readline-support-fix' into 'main' 49809
Ondřej Surý [Mon, 24 Aug 2020 11:39:18 +0000 (11:39 +0000)] 
Merge branch 'ondrej/update-readline-support-fix' into 'main'

Add missing support for --with-readline=yes

See merge request isc-projects/bind9!3984

5 years agoeditline's pkg-config name is libeditline
Michal Nowak [Wed, 19 Aug 2020 15:12:25 +0000 (17:12 +0200)] 
editline's pkg-config name is libeditline

5 years agoMake sure readline configuration works
Michal Nowak [Wed, 19 Aug 2020 11:07:40 +0000 (13:07 +0200)] 
Make sure readline configuration works

5 years agoAdd missing support for --with-readline=yes
Ondřej Surý [Tue, 18 Aug 2020 14:31:20 +0000 (16:31 +0200)] 
Add missing support for --with-readline=yes

By error, ./configure --with-readline would fail, because 'yes' wasn't
handled properly in the top level case.

5 years agoMerge branch 'ondrej/add-notes-current.rst-to-util-copyright' into 'main'
Ondřej Surý [Mon, 24 Aug 2020 07:10:22 +0000 (07:10 +0000)] 
Merge branch 'ondrej/add-notes-current.rst-to-util-copyright' into 'main'

Update util/copyright to include doc/notes/notes-current.rst

See merge request isc-projects/bind9!4002

5 years agoUpdate util/copyright to include doc/notes/notes-current.rst
Ondřej Surý [Mon, 24 Aug 2020 07:06:13 +0000 (09:06 +0200)] 
Update util/copyright to include doc/notes/notes-current.rst

5 years agoMerge branch 'mnowak/update_BIND_BASELINE_VERSION_to_v9_17_4' into 'main'
Michal Nowak [Fri, 21 Aug 2020 09:22:09 +0000 (09:22 +0000)] 
Merge branch 'mnowak/update_BIND_BASELINE_VERSION_to_v9_17_4' into 'main'

Update BIND_BASELINE_VERSION to v9_17_4

See merge request isc-projects/bind9!3999

5 years agoUpdate BIND_BASELINE_VERSION to v9_17_4
Michal Nowak [Fri, 21 Aug 2020 09:10:36 +0000 (11:10 +0200)] 
Update BIND_BASELINE_VERSION to v9_17_4

5 years agoMerge tag 'v9_17_4' into main
Evan Hunt [Thu, 20 Aug 2020 19:05:01 +0000 (12:05 -0700)] 
Merge tag 'v9_17_4' into main

BIND 9.17.4

5 years agoMerge branch '2077-negative-hook-point-value-in-filter-aaaa-c' into 'main'
Mark Andrews [Wed, 19 Aug 2020 00:17:05 +0000 (00:17 +0000)] 
Merge branch '2077-negative-hook-point-value-in-filter-aaaa-c' into 'main'

Resolve "negative hook point value in filter-aaaa.c"

Closes #2077

See merge request isc-projects/bind9!3985

5 years agoRemove stray '-' from filter-aaaa initialisation
Mark Andrews [Tue, 18 Aug 2020 23:21:59 +0000 (09:21 +1000)] 
Remove stray '-' from filter-aaaa initialisation

5 years agoMerge branch 'ondrej/dns_rdata_fromwire_text-corpus-update' into 'main'
Ondřej Surý [Tue, 18 Aug 2020 15:44:11 +0000 (15:44 +0000)] 
Merge branch 'ondrej/dns_rdata_fromwire_text-corpus-update' into 'main'

Expand, but minimize (tmin, cmin) dns_rdata_fromwire_text corpus

See merge request isc-projects/bind9!3981

5 years agoExpand, but minimize (tmin, cmin) dns_rdata_fromwire_text corpus
Ondřej Surý [Tue, 18 Aug 2020 14:16:38 +0000 (16:16 +0200)] 
Expand, but minimize (tmin, cmin) dns_rdata_fromwire_text corpus

5 years agoMerge branch 'marka-fuzz-consolidated' into 'main'
Ondřej Surý [Tue, 18 Aug 2020 09:07:47 +0000 (09:07 +0000)] 
Merge branch 'marka-fuzz-consolidated' into 'main'

Consolidated fuzz fixes

See merge request isc-projects/bind9!3975

5 years agoMerge branch 'ondrej/update-readline-support' into 'main'
Ondřej Surý [Tue, 18 Aug 2020 09:05:51 +0000 (09:05 +0000)] 
Merge branch 'ondrej/update-readline-support' into 'main'

Update and cleanup the readline library support

See merge request isc-projects/bind9!3942

5 years agoA6: return FORMERR in fromwire if bits are non zero.
Mark Andrews [Sat, 15 Aug 2020 00:12:50 +0000 (10:12 +1000)] 
A6: return FORMERR in fromwire if bits are non zero.

oss_fuzz: Issue 24864: bind9:dns_rdata_fromwire_text_fuzzer: Overwrites-const-input in dns_rdata_fromwire_text_fuzzer

5 years agoRRSIG: reject records with empty SIG section
Mark Andrews [Mon, 17 Aug 2020 01:21:41 +0000 (11:21 +1000)] 
RRSIG: reject records with empty SIG section

5 years agoDisable compression in dns_rdata_fromwire_text()
Mark Andrews [Sat, 15 Aug 2020 08:06:50 +0000 (18:06 +1000)] 
Disable compression in dns_rdata_fromwire_text()

5 years agodns_rdata_fromwire() only accepts input up to 2^16-1 octets.
Mark Andrews [Fri, 14 Aug 2020 22:50:37 +0000 (08:50 +1000)] 
dns_rdata_fromwire() only accepts input up to 2^16-1 octets.

5 years agoPrint out input if dns_rdata_fromtext() fails in debug mode.
Mark Andrews [Mon, 17 Aug 2020 03:03:49 +0000 (13:03 +1000)] 
Print out input if dns_rdata_fromtext() fails in debug mode.

5 years agoAdd the ability to specify an input file
Mark Andrews [Fri, 14 Aug 2020 03:45:44 +0000 (13:45 +1000)] 
Add the ability to specify an input file

5 years agoAdd CHANGES note for GL !3942 3982/head
Ondřej Surý [Wed, 12 Aug 2020 07:23:01 +0000 (09:23 +0200)] 
Add CHANGES note for GL !3942

5 years agoUpdate and cleanup the readline library support
Ondřej Surý [Tue, 11 Aug 2020 14:14:36 +0000 (16:14 +0200)] 
Update and cleanup the readline library support

This commit updates and simplifies the checks for the readline support
in nslookup and nsupdate:

  * Change the autoconf checks to pkg-config only, all supported
    libraries have accompanying .pc files now.
  * Add editline support in addition to libedit and GNU readline
  * Add isc/readline.h shim header that defines dummy readline()
    function when no readline library is available

5 years agoMerge branch 'mnowak/gcovr' into 'main'
Michal Nowak [Mon, 17 Aug 2020 15:21:41 +0000 (15:21 +0000)] 
Merge branch 'mnowak/gcovr' into 'main'

Report coverage with gcovr

Closes isc-private/bind-qa#23

See merge request isc-projects/bind9!3606

5 years agoReport coverage with gcovr
Michal Nowak [Thu, 28 May 2020 10:21:27 +0000 (12:21 +0200)] 
Report coverage with gcovr

5 years agoMerge branch 'mnowak/broaden-abi-check-scope' into 'main'
Michal Nowak [Mon, 17 Aug 2020 13:07:15 +0000 (13:07 +0000)] 
Merge branch 'mnowak/broaden-abi-check-scope' into 'main'

Broaden scope of abi-check

See merge request isc-projects/bind9!3927

5 years agoBroaden scope of abi-check
Michal Nowak [Thu, 6 Aug 2020 12:23:38 +0000 (14:23 +0200)] 
Broaden scope of abi-check

For abi-check we should use as broad 'configure' options as possible.

5 years agoMerge branch 'patch-3' into 'main'
Mark Andrews [Mon, 17 Aug 2020 02:35:33 +0000 (02:35 +0000)] 
Merge branch 'patch-3' into 'main'

Option -s is not supported in tsig-keygen

See merge request isc-projects/bind9!3966

5 years agoOption -s is not supported in tsig-keygen
JP Mens [Sun, 16 Aug 2020 16:23:48 +0000 (16:23 +0000)] 
Option -s is not supported in tsig-keygen

5 years agoMerge branch 'marka-bad-bool-value' into 'main'
Mark Andrews [Fri, 14 Aug 2020 04:42:23 +0000 (04:42 +0000)] 
Merge branch 'marka-bad-bool-value' into 'main'

Ensure that a bool is stored in 'eol'

See merge request isc-projects/bind9!3960

5 years agoEnsure that a bool is stored in 'eol'
Mark Andrews [Thu, 13 Aug 2020 22:26:53 +0000 (08:26 +1000)] 
Ensure that a bool is stored in 'eol'

oss-fuzz: Issue 24875: bind9:isc_lex_getmastertoken_fuzzer: Invalid-bool-value in isc_lex_getmastertoken.c

5 years agoMerge branch 'ondrej/fix-oss-fuzz-debug' into 'main'
Ondřej Surý [Thu, 13 Aug 2020 16:00:08 +0000 (16:00 +0000)] 
Merge branch 'ondrej/fix-oss-fuzz-debug' into 'main'

Move the debug variable from main.c to individual fuzzer

See merge request isc-projects/bind9!3959

5 years agoMove the debug variable from main.c to individual fuzzer
Ondřej Surý [Thu, 13 Aug 2020 15:55:38 +0000 (17:55 +0200)] 
Move the debug variable from main.c to individual fuzzer

The fuzzers needs to be completely independent of the main.c for
OSS-Fuzz to work.

5 years agoMerge branch 'marka-fuzz-fixes' into 'main'
Mark Andrews [Thu, 13 Aug 2020 14:08:50 +0000 (14:08 +0000)] 
Merge branch 'marka-fuzz-fixes' into 'main'

Add issues found by dns_rdata_fromwiretext fuzzer.

See merge request isc-projects/bind9!3953

5 years agoAdd CHANGES note
Mark Andrews [Thu, 13 Aug 2020 05:16:55 +0000 (15:16 +1000)] 
Add CHANGES note

5 years agoAdd previously detected dns_rdata_fromwire_text failures
Mark Andrews [Thu, 13 Aug 2020 13:16:05 +0000 (23:16 +1000)] 
Add previously detected dns_rdata_fromwire_text failures