Debian Codegraph @

doc/changelog/changelog-9.20.7.rst

raw
1 .. Copyright (C) Internet Systems Consortium, Inc. ("ISC")
2 ..
3 .. SPDX-License-Identifier: MPL-2.0
4 ..
5 .. This Source Code Form is subject to the terms of the Mozilla Public
6 .. License, v. 2.0. If a copy of the MPL was not distributed with this
7 .. file, you can obtain one at https://mozilla.org/MPL/2.0/.
8 ..
9 .. See the COPYRIGHT file distributed with this work for additional
10 .. information regarding copyright ownership.
11
12 BIND 9.20.7
13 -----------
14
15 New Features
16 ~~~~~~~~~~~~
17
18 - Implement the min-transfer-rate-in configuration option.
19 ``4a5a9c8256``
20
21 A new option 'min-transfer-rate-in <bytes> <minutes>' has been added
22 to the view and zone configurations. It can abort incoming zone
23 transfers which run very slowly due to network related issues, for
24 example. The default value is set to 10240 bytes in 5 minutes.
25 :gl:`#3914` :gl:`!10137`
26
27 - Add digest methods for SIG and RRSIG. ``6d8c513986``
28
29 ZONEMD digests RRSIG records and potentially digests SIG record. Add
30 digests methods for both record types. :gl:`#5219` :gl:`!10218`
31
32 - Add HTTPS record query to host command line tool. ``2ddfb57b45``
33
34 The host command was extended to also query for the HTTPS RR type by
35 default. :gl:`!10123`
36
37 Bug Fixes
38 ~~~~~~~~~
39
40 - Prevent a reference leak when using plugins. ``0201e3eacb``
41
42 The `NS_QUERY_DONE_BEGIN` and `NS_QUERY_DONE_SEND` plugin hooks could
43 cause a reference leak if they returned `NS_HOOK_RETURN` without
44 cleaning up the query context properly. :gl:`#2094` :gl:`!10170`
45
46 - Fix isc_quota bug. ``dbc635c148``
47
48 Running jobs which were entered into the isc_quota queue is the
49 responsibility of the isc_quota_release() function, which, when
50 releasing a previously acquired quota, checks whether the queue is
51 empty, and if it's not, it runs a job from the queue without touching
52 the 'quota->used' counter. This mechanism is susceptible to a possible
53 hangup of a newly queued job in case when between the time a decision
54 has been made to queue it (because used >= max) and the time it was
55 actually queued, the last quota was released. Since there is no more
56 quotas to be released (unless arriving in the future), the newly
57 entered job will be stuck in the queue.
58
59 Fix the issue by adding checks in both isc_quota_release() and
60 isc_quota_acquire_cb() to make sure that the described hangup does not
61 happen. Also see code comments. :gl:`#4965` :gl:`!10139`
62
63 - Fix dual-stack-servers configuration option. ``a47dab2c5e``
64
65 The dual-stack-servers configuration option was not working as
66 expected; the specified servers were not being used when they should
67 have been, leading to resolution failures. This has been fixed.
68 :gl:`#5019` :gl:`!10174`
69
70 - Implement sig0key-checks-limit and sig0message-checks-limit.
71 ``95af81b674``
72
73 Previously a hard-coded limitation of maximum two key or message
74 verification checks were introduced when checking the message's SIG(0)
75 signature. It was done in order to protect against possible DoS
76 attacks. The logic behind choosing the number 2 was that more than a
77 single key should only be required during key rotations, and in that
78 case two keys are enough. But later it became apparent that there are
79 other use cases too where even more keys are required, see issue
80 number #5050 in GitLab.
81
82 This change introduces two new configuration options for the views,
83 `sig0key-checks-limit` and `sig0message-checks-limit`, which define
84 how many keys are allowed to be checked to find a matching key, and
85 how many message verifications are allowed to take place once a
86 matching key has been found. The latter protects against expensive
87 cryptographic operations when there are keys with colliding tags and
88 algorithm numbers, with default being 2, and the former protects
89 against a bit less expensive key parsing operations and defaults to
90 16. :gl:`#5050` :gl:`!10141`
91
92 - Fix the data race causing a permanent active client increase.
93 ``20cf51dfc5``
94
95 Previously, a data race could cause a newly created fetch context for
96 a new client to be used before it had been fully initialized, which
97 would cause the query to become stuck; queries for the same data would
98 be either paused indefinitely or dropped because of the
99 `clients-per-query` limit. This has been fixed. :gl:`#5053`
100 :gl:`!10147`
101
102 - Fix deferred validation of unsigned DS and DNSKEY records.
103 ``ba5fe2dd12``
104
105 When processing a query with the "checking disabled" bit set (CD=1),
106 `named` stores the unvalidated result in the cache, marked "pending".
107 When the same query is sent with CD=0, the cached data is validated,
108 and either accepted as an answer, or ejected from the cache as
109 invalid. This deferred validation was not attempted for DS and DNSKEY
110 records if they had no cached signatures, causing spurious validation
111 failures. We now complete the deferred validation in this scenario.
112
113 Also, if deferred validation fails, we now re-query the data to find
114 out whether the zone has been corrected since the invalid data was
115 cached. :gl:`#5066` :gl:`!10105`
116
117 - When recording an rr trace, use libtool. ``17ca2fbbdc``
118
119 When a system test is run with the `USE_RR` environment variable set
120 to 1, an `rr` trace is now correctly generated for each instance of
121 `named`. :gl:`#5079` :gl:`!10207`
122
123 - Do not cache signatures for rejected data. ``9b3e1facf6``
124
125 The cache has been updated so that if new data is rejected - for
126 example, because there was already existing data at a higher trust
127 level - then its covering RRSIG will also be rejected. :gl:`#5132`
128 :gl:`!10134`
129
130 - Fix RPZ race condition during a reconfiguration. ``eca9a3279e``
131
132 With RPZ in use, `named` could terminate unexpectedly because of a
133 race condition when a reconfiguration command was received using
134 `rndc`. This has been fixed. :gl:`#5146` :gl:`!10144`
135
136 - "CNAME and other data check" not applied to all types. ``a68f5dd74b``
137
138 An incorrect optimization caused "CNAME and other data" errors not to
139 be detected if certain types were at the same node as a CNAME. This
140 has been fixed. :gl:`#5150` :gl:`!10100`
141
142 - Relax private DNSKEY and RRSIG constraints. ``455080866c``
143
144 DNSKEY, KEY, RRSIG and SIG constraints have been relaxed to allow
145 empty key and signature material after the algorithm identifier for
146 PRIVATEOID and PRIVATEDNS. It is arguable whether this falls within
147 the expected use of these types as no key material is shared and the
148 signatures are ineffective but these are private algorithms and they
149 can be totally insecure. :gl:`#5167` :gl:`!10173`
150
151 - Delete dead nodes when committing a new version. ``0682684028``
152
153 In the qpzone implementation of `dns_db_closeversion()`, if there are
154 changed nodes that have no remaining data, delete them. :gl:`#5169`
155 :gl:`!10124`
156
157 - Revert "Delete dead nodes when committing a new version"
158 ``d2ec6d1db4``
159
160 This reverts commit 67255da4b376f65138b299dcd5eb6a3b7f9735a9,
161 reversing changes made to 74c9ff384e695d1b27fa365d1fee84576f869d4c.
162 :gl:`#5169` :gl:`!10226`
163
164 - Fix dns_qp_insert() checks in qpzone. ``11cc40ebf6``
165
166 Remove code in the QP zone database to handle failures of
167 `dns_qp_insert()` which can't actually happen. :gl:`#5171`
168 :gl:`!10114`
169
170 - Remove NSEC/DS/NSEC3 RRSIG check from dns_message_parse.
171 ``b752db0c3f``
172
173 Previously, when parsing responses, named incorrectly rejected
174 responses without matching RRSIG records for NSEC/DS/NSEC3 records in
175 the authority section. This rejection, if appropriate, should have
176 been left for the validator to determine and has been fixed.
177 :gl:`#5185` :gl:`!10142`
178
179 - Fix TTL issue with ANY queries processed through RPZ "passthru"
180 ``b1bf17096a``
181
182 Answers to an "ANY" query which were processed by the RPZ "passthru"
183 policy had the response-policy's `max-policy-ttl` value unexpectedly
184 applied. This has been fixed. :gl:`#5187` :gl:`!10180`
185
186 - Dnssec-signzone needs to check for a NULL key when setting offline.
187 ``2d4b4fe15e``
188
189 dnssec-signzone could dereference a NULL key pointer when resigning a
190 zone. This has been fixed. :gl:`#5192` :gl:`!10169`
191
192 - Acquire the database reference before possibly last node release.
193 ``2b5b4e9dd1``
194
195 Acquire the database reference in the detachnode() to prevent the last
196 reference to be release while the NODE_LOCK being locked. The
197 NODE_LOCK is locked/unlocked inside the RCU critical section, thus it
198 is most probably this should not pose a problem as the database uses
199 call_rcu memory reclamation, but this it is still safer to acquire the
200 reference before releasing the node. :gl:`#5194` :gl:`!10156`
201
202 - Fix a logic error in cache_name() ``b8bd65763c``
203
204 A change in 6aba56ae8 (checking whether a rejected RRset was identical
205 to the data it would have replaced, so that we could still cache a
206 signature) inadvertently introduced cases where processing of a
207 response would continue when previously it would have been skipped.
208 :gl:`#5197` :gl:`!10158`
209
210 - Fix a bug in the statistics channel when querying zone transfers
211 information. ``b50d9b601d``
212
213 When querying zone transfers information from the statistics channel
214 there was a rare possibility that `named` could terminate unexpectedly
215 if a zone transfer was in a state when transferring from all the
216 available primary servers had failed earlier. This has been fixed.
217 :gl:`#5198` :gl:`!10194`
218
219 - Fix assertion failure when dumping recursing clients. ``5d913c3383``
220
221 Previously, if a new counter was added to the hashtable while dumping
222 recursing clients via the `rndc recursing` command, and
223 `fetches-per-zone` was enabled, an assertion failure could occur. This
224 has been fixed. :gl:`#5200` :gl:`!10168`
225
226 - Call isc__iterated_hash_initialize in isc__work_cb. ``693a1d41ed``
227
228 isc_iterated_hash didn't work in offloaded threads as the per thread
229 initialisation has not been done. This has been fixed. :gl:`#5214`
230 :gl:`!10210`
231
232 - Fix a bug in get_request_transport_type() ``aa3c6584c6``
233
234 When `dns_remote_done()` is true, calling `dns_remote_curraddr()`
235 asserts. Add a `dns_remote_curraddr()` check before calling
236 `dns_remote_curraddr()`. :gl:`#5215` :gl:`!10223`
237
238 - Dump the active resolver fetches from dns_resolver_dumpfetches()
239 ``b2033b7e4c``
240
241 Previously, active resolver fetches were only dumped when the
242 `fetches-per-zone` configuration option was enabled. Now, active
243 resolver fetches are dumped along with the number of
244 `clients-per-server` counters per resolver fetch. :gl:`!10148`
245
246 - Fix wrong logging severity in do_nsfetch() ``fd623c6ecc``
247
248 :gl:`!10118`
249
250 - Post [CVE-2024-12705] Performance Drop Fixes, Part 2. ``8cc425a5bb``
251
252 This merge request addresses several key performance bottlenecks in
253 the DoH (DNS over HTTPS) implementation by introducing significant
254 optimizations and improvements.
255
256 ### Key Improvements
257
258 1. **Simplification and Optimisation of `http_do_bio()` Function**:
259 - The code flow in the `http_do_bio()` function has been significantly
260 simplified. 2. **Flushing HTTP Write Buffer on Outgoing DNS
261 Messages**: - The buffer is flushed and a send operation is
262 performed when there is an outgoing DNS message. 3. **Bumping Active
263 Streams Processing Limit**: - The total number of active streams
264 has been increased to 60% of the total streams limit.
265
266 These changes collectively enhance the performance and reliability of
267 the DoH implementation, making it more efficient and robust for
268 handling high-load scenarios, particularly noticeable in long runs (>=
269 1h) of `stress:long:rpz:doh+udp:linux:*` tests. It improves perf. for
270 tests for BIND 9.18, but it likely will have a positive but less
271 pronounced effect on newer versions as well.
272
273 In essence, the merge request fixes three bottlenecks stacked upon
274 each other.
275
276 *It is a logical continuation of the merge requests !10109.* !10109,
277 unfortunately, did not completely [address the performance drop in
278 9.18](https://gitlab.isc.org/isc-projects/bind9/-/pipelines/221545)
279 for longer runs of the stress test. This merge request [addresses
280 that](https://gitlab.isc.org/isc-projects/bind9/-/pipelines/223661).
281
282 **P.S.**
283
284 The origin of the fixes is, in fact, the branch in !10193. So this MR
285 is a ... *forward port* of them. :gl:`!10199`
286
287 - Post [CVE-2024-12705] Performance Drop Fixes. ``9d4aa15c1f``
288
289 This merge request fixes a [performance
290 drop](https://gitlab.isc.org/isc-projects/bind9/-/pipelines/216728)
291 after merging the fixes for #4795, in particular in 9.18.
292
293 The MR [fixes the
294 problem](https://gitlab.isc.org/isc-projects/bind9/-/pipelines/219825)
295 without affecting performance for the newer versions, in particular
296 for [the development version](https://gitlab.isc.org/isc-projects/bind
297 9/-/pipelines/220619). :gl:`!10129`
298
299 - Sync the TSAN CC, CFLAGS and LDFLAGS in the respdiff:tsan job.
300 ``ff58e0ed2b``
301
302 :gl:`!10212`
303
304