Ondřej Surý
651a9fe4db
Merge branch '1997-deferred-system-test-v9_16' into 'v9_16'
...
[CVE-2020-8621] Ensure QNAME minimization is permanently disabled when forwarding [TEST] [v9.16]
See merge request isc-projects/bind9!4042
2020-08-31 10:33:26 +00:00
Evan Hunt and Ondřej Surý
544ea41224
test whether DS chasing works correctly when forwarding
...
(cherry picked from commit dd8db89525 )
2020-08-31 12:00:13 +02:00
Ondřej Surý
22b0af0cf2
Merge branch '2037-deferred-system-test-v9_16' into 'v9_16'
...
[CVE-2020-8623]: Fix crash in pk11_numbits() with crafted packet when native-pkcs11 is used [TEST] [v9.16]
See merge request isc-projects/bind9!4040
2020-08-31 09:50:37 +00:00
Ondřej Surý and Ondřej Surý
f195c192a6
Add PoC system test for pk11_numbits() assertion
...
(cherry picked from commit a69433ba40 )
2020-08-31 10:58:56 +02:00
Ondřej Surý
e7dca64cf7
Merge branch '2028-deferred-system-test-v9_16' into 'v9_16'
...
[CVE-2020-8622] Properly handle malformed truncated responses to TSIG queries [TEST] [v9.16]
See merge request isc-projects/bind9!4035
2020-08-31 07:24:41 +00:00
Mark Andrews and Ondřej Surý
6acd6ae943
check that a malformed truncated response to a TSIG query is handled
...
(cherry picked from commit 8bbf3eb5f3 )
2020-08-31 08:35:30 +02:00
Ondřej Surý
d723209185
Merge branch '1928-handle-EPROTO-v9_16' into 'v9_16'
...
Resolve "error: socket.c:1540: unexpected error:"
See merge request isc-projects/bind9!4032
2020-08-28 18:50:38 +00:00
Ondřej Surý
cc07b3f78a
Add CHANGES and release note for GL #1928
...
(cherry picked from commit 4722196b13 )
2020-08-28 20:49:02 +02:00
Ondřej Surý
9b9fee13fa
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 ]
(cherry picked from commit e0380d437d )
2020-08-28 20:49:01 +02:00
Ondřej Surý
3751e24e9e
Merge branch '2104-fix-off-by-one-error-in-rehash_bits-v9_16' into 'v9_16'
...
Resolve "Bind 9.16.6 due to assertion failure"
See merge request isc-projects/bind9!4031
2020-08-28 18:48:41 +00:00
Ondřej Surý and Ondřej Surý
be46c49300
Add CHANGES and release notes for GL #2104
...
(cherry picked from commit d47d2b3fe0 )
2020-08-28 20:43:39 +02:00
Ondřej Surý and Ondřej Surý
2b08ff879a
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.
(cherry picked from commit 78543ad5a7 )
2020-08-28 20:43:38 +02:00
Michal Nowak
0d964dfc4b
Merge branch '2097-manual-page-tools-need-updating-v9_16' into 'v9_16'
...
[v9_16] Resolve "manual page tools need updating."
See merge request isc-projects/bind9!4022
2020-08-26 16:31:25 +00:00
Michal Nowak
5082d60105
Fix generated documentation
2020-08-26 16:30:04 +00:00
Michal Nowak
934c470b54
Add pandoc and w3m
...
pandoc and w3m are needed to generate some files.
2020-08-26 16:30:04 +00:00
Ondřej Surý
cd38e92c48
Merge branch '2074-bind-allows-an-empty-cm-value-for-optional-loc-rdata-fields-v9_16' into 'v9_16'
...
Resolve "BIND allows an empty 'cm' value for optional LOC RDATA fields"
See merge request isc-projects/bind9!4024
2020-08-26 15:31:38 +00:00
Mark Andrews and Ondřej Surý
d8cb5ac0db
Add CHANGES note
...
(cherry picked from commit d9594cffab )
2020-08-26 16:44:01 +02:00
Mark Andrews and Ondřej Surý
c2ee9eea3a
Refactor totext_loc
...
(cherry picked from commit 2ca4d35037 )
2020-08-26 16:44:01 +02:00
Mark Andrews and Ondřej Surý
baf93342d0
Correctly encode LOC records with non integer negative altitudes.
...
(cherry picked from commit 337cc878fa )
2020-08-26 16:44:01 +02:00
Mark Andrews and Ondřej Surý
06b76b2b16
Check LOC's altitude field is properly parsed and encoded.
...
(cherry picked from commit 888dfd78c7 )
2020-08-26 16:44:00 +02:00
Mark Andrews and Ondřej Surý
7eb5d61703
Tighten LOC parsing to reject period and/or m as a value.
...
(cherry picked from commit 9225c67835 )
2020-08-26 16:44:00 +02:00
Mark Andrews
92a13be6a0
Merge branch '2080-data-race-in-rdataset_addglue-v9_16' into 'v9_16'
...
Resolve "data race in rdataset_addglue"
See merge request isc-projects/bind9!4020
2020-08-26 12:18:35 +00:00
Mark Andrews
c37fd4ac56
Add CHANGES note
...
(cherry picked from commit 48973c3ec6 )
2020-08-26 21:51:33 +10:00
Ondřej Surý and Mark Andrews
5674f76590
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.
(cherry picked from commit 01684cc219 )
2020-08-26 21:49:59 +10:00
Mark Andrews
511747307f
rbtversion->glue_table_size must be read when holding a lock
...
(cherry picked from commit 33d0e8d168 )
2020-08-26 21:49:59 +10:00
Michal Nowak
b1526940f4
Merge branch 'mnowak/tumbleweed-fix-krb5-config-location-v9_16' into 'v9_16'
...
[v9_16] Tumbleweed changed location of krb5-config
See merge request isc-projects/bind9!4018
2020-08-26 09:04:45 +00:00
Michal Nowak
9a305e0d47
Tumbleweed changed location of krb5-config
...
krb5-config is now in /usr/bin/ and we should detect it automatically.
(cherry picked from commit 6095811461 )
2020-08-26 10:59:29 +02:00
Ondřej Surý
48c757eb79
Merge branch '2095-shifting-large-rcode-in-dns-message-c-results-in-undefined-behaviour-v9_16' into 'v9_16'
...
Cast the original rcode to (dns_ttl_t) when setting extended rcode
See merge request isc-projects/bind9!4014
2020-08-25 19:00:50 +00:00
Mark Andrews and Ondřej Surý
3fce53b0e3
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
(cherry picked from commit a347641782 )
2020-08-25 16:40:42 +02:00
Michal Nowak
fbcff0ab14
Merge branch '2053-test-disable-buffer-useinline-in-gitlab-ci-v9_16' into 'v9_16'
...
[v9_16] Resolve "Test --disable-buffer-useinline in GitLab CI"
See merge request isc-projects/bind9!4012
2020-08-25 14:28:35 +00:00
Michal Nowak
a0e55857c7
Build CentOS 8 with --enable-buffer-useinline
...
(cherry picked from commit f34df4ef90 )
2020-08-25 16:08:47 +02:00
Michal Nowak
79e8f1076a
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
(cherry picked from commit dd425254a7 )
2020-08-25 16:08:44 +02:00
Mark Andrews
92d4a23f28
Merge branch 'marka-add-missing-isc_mutex_init-v9_16' into 'v9_16'
...
Add missing isc_mutex_init to manytasks subtest.
See merge request isc-projects/bind9!4007
2020-08-25 00:21:27 +00:00
Mark Andrews
dd5be2940c
add missing copyright entry
2020-08-25 10:01:28 +10:00
Mark Andrews
da4f189ea8
Add missing isc_mutex_init to manytasks subtest.
...
(cherry picked from commit 2eb5c29c83 )
2020-08-25 09:58:30 +10:00
Michal Nowak
38fc4b11e2
Merge branch 'mnowak/update_BIND_BASELINE_VERSION_to_v9_16_6' into 'v9_16'
...
Update BIND_BASELINE_VERSION to v9_16_6
See merge request isc-projects/bind9!4000
2020-08-21 09:30:06 +00:00
Michal Nowak
e9d9c88747
Update BIND_BASELINE_VERSION to v9_16_6
2020-08-21 11:23:59 +02:00
Evan Hunt
1c7e3c8515
Merge tag 'v9_16_6' into v9_16
...
BIND 9.16.6
2020-08-20 12:08:57 -07:00
Mark Andrews
845bd649ed
Merge branch '2077-negative-hook-point-value-in-filter-aaaa-c-v9_16' into 'v9_16'
...
Remove stray '-' from filter-aaaa initialisation
See merge request isc-projects/bind9!3986
2020-08-19 00:40:53 +00:00
Mark Andrews
590328178c
Remove stray '-' from filter-aaaa initialisation
...
(cherry picked from commit 2fd5ba6507 )
2020-08-19 10:18:47 +10:00
Michal Nowak
56e24987ee
Merge branch 'mnowak/add-missing-only-schedules-v9_16' into 'v9_16'
...
[v9_16] Add missing 'only:schedules' to tarball-create job
See merge request isc-projects/bind9!3978
2020-08-18 09:36:16 +00:00
Michal Nowak
816a72889a
Add missing 'only:schedules' to tarball-create job
...
Missing 'only:schedules' prevents schedule jobs to run.
Regressed in 2b5007ef1a .
(cherry picked from commit b3c80fafe0 )
2020-08-18 11:35:05 +02:00
Ondřej Surý
6f9487c51b
Merge branch 'marka-fuzz-consolidated-v9_16' into 'v9_16'
...
Consolidated fuzz fixes (v9.16)
See merge request isc-projects/bind9!3976
2020-08-18 09:32:01 +00:00
Mark Andrews and Ondřej Surý
d8a57d32b1
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
(cherry picked from commit 8452404bd7 )
2020-08-18 11:11:40 +02:00
Mark Andrews and Ondřej Surý
6b1675a62c
RRSIG: reject records with empty SIG section
...
(cherry picked from commit f6d7b8c20d )
2020-08-18 11:11:40 +02:00
Mark Andrews and Ondřej Surý
f6d64fb2c8
Disable compression in dns_rdata_fromwire_text()
...
(cherry picked from commit 3e743da1bd )
2020-08-18 11:11:39 +02:00
Mark Andrews and Ondřej Surý
8ed9da7324
dns_rdata_fromwire() only accepts input up to 2^16-1 octets.
...
(cherry picked from commit aa811801cb )
2020-08-18 11:11:36 +02:00
Mark Andrews and Ondřej Surý
6aa46945ff
Print out input if dns_rdata_fromtext() fails in debug mode.
...
(cherry picked from commit e4d30cb007 )
2020-08-18 11:11:10 +02:00
Michal Nowak
0421ea1259
Merge branch 'mnowak/gcovr-v9_16' into 'v9_16'
...
[v9_16] Report coverage with gcovr
See merge request isc-projects/bind9!3973
2020-08-17 15:27:29 +00:00
Michal Nowak
764087eb19
Report coverage with gcovr
2020-08-17 16:55:26 +02:00