Debian Codegraph @

doc/changelog/changelog-9.20.1.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.1
13 -----------
14
15 New Features
16 ~~~~~~~~~~~~
17
18 - Tighten 'max-recursion-queries' and add 'max-query-restarts' option.
19 ``42e70b0f0e``
20
21 There were cases in resolver.c when the `max-recursion-queries` quota
22 was ineffective. It was possible to craft zones that would cause a
23 resolver to waste resources by sending excessive queries while
24 attempting to resolve a name. This has been addressed by correcting
25 errors in the implementation of `max-recursion-queries`, and by
26 reducing the default value from 100 to 32.
27
28 In addition, a new `max-query-restarts` option has been added which
29 limits the number of times a recursive server will follow CNAME or
30 DNAME records before terminating resolution. This was previously a
31 hard-coded limit of 16, and now defaults to 11. :gl:`#4741`
32 :gl:`!9282`
33
34 - Implement rndc retransfer -force. ``008bfb6249``
35
36 A new optional argument '-force' has been added to the command channel
37 command 'rndc retransfer'. When it is specified, named aborts the
38 ongoing zone transfer (if there is one), and starts a new transfer.
39 :gl:`#2299` :gl:`!9219`
40
41 - Generate changelog from git log. ``cf60eb2738``
42
43 Use a single source of truth, the git log, to generate the list of
44 CHANGES. Use the .rst format and include it in the ARM for a quick
45 reference with proper gitlab links to issues and merge requests.
46 :gl:`#75` :gl:`!9180`
47
48 Feature Changes
49 ~~~~~~~~~~~~~~~
50
51 - Call rcu_barrier() in the isc_mem_destroy() just once. ``e00b13ac6e``
52
53 The previous work in this area was led by the belief that we might be
54 calling call_rcu() from within call_rcu() callbacks. After carefully
55 checking all the current callback, it became evident that this is not
56 the case and the problem isn't enough rcu_barrier() calls, but
57 something entirely else.
58
59 Call the rcu_barrier() just once as that's enough and the multiple
60 rcu_barrier() calls will not hide the real problem anymore, so we can
61 find it. :gl:`!9247`
62
63 - Don't open route socket if we don't need it. ``4f369af51e``
64
65 When automatic-interface-scan is disabled, the route socket was still
66 being opened. Add new API to connect / disconnect from the route
67 socket only as needed.
68
69 Additionally, move the block that disables periodic interface rescans
70 to a place where it actually have access to the configuration values.
71 Previously, the values were being checked before the configuration was
72 loaded. :gl:`!9239`
73
74 - Allow shorter resolver-query-timeout configuration. ``840e56a979``
75
76 The minimum allowed value of 'resolver-query-timeout' was lowered to
77 301 milliseconds instead of the earlier 10000 milliseconds (which is
78 the default). As earlier, values less than or equal to 300 are
79 converted to seconds before applying the limit. :gl:`#4320`
80 :gl:`!9220`
81
82 - Replace `#define DNS_GETDB_` with struct of bools. ``6d1fdb8505``
83
84 Replace `#define DNS_GETDB_` with struct of bools to make it easier to
85 pretty-print the attributes in a debugger. :gl:`#4559` :gl:`!9205`
86
87 - Fix data race in clean_finds_at_name. ``be1e649974``
88
89 Stop updating `find.result_v4` and `find.result_v4` in
90 `clean_finds_at_name`. The values are supposed to be
91 static. :gl:`#4118` :gl:`!9197`
92
93 Bug Fixes
94 ~~~~~~~~~
95
96 - Reconfigure catz member zones during named reconfiguration.
97 ``9a0c59c89a``
98
99 During a reconfiguration named wasn't reconfiguring catalog zones'
100 member zones. This has been fixed. :gl:`#4733`
101
102 - Disassociate the SSL object from the cached SSL_SESSION.
103 ``54b24fb015``
104
105 When the SSL object was destroyed, it would invalidate all SSL_SESSION
106 objects including the cached, but not yet used, TLS session objects.
107
108 Properly disassociate the SSL object from the SSL_SESSION before we
109 store it in the TLS session cache, so we can later destroy it without
110 invalidating the cached TLS sessions. :gl:`#4834` :gl:`!9274`
111
112 - Attach/detach to the listening child socket when accepting TLS.
113 ``24ac7a7cd2``
114
115 When TLS connection (TLSstream) connection was accepted, the children
116 listening socket was not attached to sock->server and thus it could
117 have been freed before all the accepted connections were actually
118 closed.
119
120 In turn, this would cause us to call isc_tls_free() too soon - causing
121 cascade errors in pending SSL_read_ex() in the accepted connections.
122
123 Properly attach and detach the children listening socket when
124 accepting and closing the server connections. :gl:`#4833` :gl:`!9273`
125
126 - Fix --enable-tracing build on systems without dtrace. ``d8d49c9340``
127
128 Missing file util/dtrace.sh prevented builds on system without dtrace
129 utility. This has been corrected.
130
131 - Make hypothesis optional for system tests. ``c5f1cb8a04``
132
133 Ensure that system tests can be executed without Python hypothesis
134 package. :gl:`#4831` :gl:`!9267`
135
136 - Dig now reports missing query section for opcode QUERY. ``b277a6f1f0``
137
138 Query responses should contain the question section with some
139 exceptions. Dig was not reporting this. :gl:`#4808` :gl:`!9269`
140
141 - Fix assertion failure in the glue cache. ``f8a0c0bed6``
142
143 Fix an assertion failure that could happen as a result of data race
144 between free_gluetable() and addglue() on the same headers.
145 :gl:`#4691` :gl:`!9256`
146
147 - Don't use 'create' flag unnecessarily in findnode() ``4281aaab45``
148
149 when searching the cache for a node so that we can delete an rdataset,
150 it isn't necessary to set the 'create' flag. if the node doesn't exist
151 yet, we won't be able to delete anything from it anyway. :gl:`!9253`
152
153 - Raise the log level of priming failures. ``074c7cc12c``
154
155 When a priming query is complete, it's currently logged at level
156 ISC_LOG_DEBUG(1), regardless of success or failure. We are now raising
157 it to ISC_LOG_NOTICE in the case of failure. [GL #3516] :gl:`#3516`
158 :gl:`!9250`
159
160 - Fix assertion failure when checking named-checkconf version.
161 ``42e84e4b97``
162
163 Checking the version of `named-checkconf` would end with assertion
164 failure. This has been fixed. :gl:`#4827` :gl:`!9246`
165
166 - Valid TSIG signatures with invalid time cause crash. ``2438db2eae``
167
168 An assertion failure triggers when the TSIG has valid cryptographic
169 signature, but the time is invalid. This can happen when the times
170 between the primary and secondary servers are not synchronised.
171 :gl:`#4811` :gl:`!9245`
172
173 - Don't skip the counting if fcount_incr() is called with force==true.
174 ``9cd2880a82``
175
176 The fcount_incr() was incorrectly skipping the accounting for the
177 fetches-per-zone if the force argument was set to true. We want to
178 skip the accounting only when the fetches-per-zone is completely
179 disabled, but for individual names we need to do the accounting even
180 if we are forcing the result to be success. :gl:`#4786` :gl:`!9241`
181
182 - Don't skip the counting if fcount_incr() is called with force==true
183 (v2) ``1db5c6a0d3``
184
185 The fcount_incr() was not increasing counter->count when force was set
186 to true, but fcount_decr() would try to decrease the counter leading
187 to underflow and assertion failure. Swap the order of the arguments
188 in the condition, so the !force is evaluated after incrementing the
189 .count. :gl:`#4846` :gl:`!9299`
190
191
192 - Fix PTHREAD_MUTEX_ADAPTIVE_NP and PTHREAD_MUTEX_ERRORCHECK_NP usage.
193 ``46caf5f4a4``
194
195 The PTHREAD_MUTEX_ADAPTIVE_NP and PTHREAD_MUTEX_ERRORCHECK_NP are
196 usually not defines, but enum values, so simple preprocessor check
197 doesn't work.
198
199 Check for PTHREAD_MUTEX_ADAPTIVE_NP from the autoconf
200 AS_COMPILE_IFELSE block and define HAVE_PTHREAD_MUTEX_ADAPTIVE_NP.
201 This should enable adaptive mutex on Linux and FreeBSD.
202
203 As PTHREAD_MUTEX_ERRORCHECK actually comes from POSIX and Linux glibc
204 does define it when compatibility macros are being set, we can just
205 use PTHREAD_MUTEX_ERRORCHECK instead of PTHREAD_MUTEX_ERRORCHECK_NP.
206 :gl:`!9240`
207
208 - Remove extra newline from yaml output. ``53738634c3``
209
210 I split this into two commits, one for the actual newline removal, and
211 one for issues I found, ruining the yaml output when some errors were
212 outputted.
213
214 - CID 498025 and CID 498031: Overflowed constant INTEGER_OVERFLOW.
215 ``b6298b394e``
216
217 Add INSIST to fail if the multiplication would cause the variables to
218 overflow. :gl:`#4798` :gl:`!9229`
219
220 - Remove unnecessary operations. ``067f87f158``
221
222 Decrementing optlen immediately before calling continue is unneccesary
223 and inconsistent with the rest of dns_message_pseudosectiontoyaml and
224 dns_message_pseudosectiontotext. Coverity was also reporting an
225 impossible false positive overflow of optlen (CID 499061). :gl:`!9223`
226
227 - Fix generation of 6to4-self name expansion from IPv4 address.
228 ``00ce93a69c``
229
230 The period between the most significant nibble of the encoded IPv4
231 address and the 2.0.0.2.IP6.ARPA suffix was missing resulting in the
232 wrong name being checked. Add system test for 6to4-self
233 implementation. :gl:`#4766` :gl:`!9217`
234
235 - Fix false QNAME minimisation error being reported. ``fb07c38697``
236
237 Remove the false positive "success resolving" log message when QNAME
238 minimisation is in effect and the final result is NXDOMAIN.
239 :gl:`#4784` :gl:`!9215`
240
241 - Dig +yaml was producing unexpected and/or invalid YAML output.
242 ``a42afbce2e``
243
244 :gl:`#4796` :gl:`!9213`
245
246 - SVBC alpn text parsing failed to reject zero length alpn.
247 ``1a1413ff59``
248
249 :gl:`#4775` :gl:`!9209`
250
251 - Return SERVFAIL for a too long CNAME chain. ``d7e5f7903d``
252
253 When cutting a long CNAME chain, named was returning NOERROR instead
254 of SERVFAIL (alongside with a partial answer). This has been fixed.
255 :gl:`#4449` :gl:`!9203`
256
257 - Properly calculate the amount of system memory. ``c63b7fad49``
258
259 On 32 bit machines isc_meminfo_totalphys could return an incorrect
260 value. :gl:`#4799` :gl:`!9199`
261
262 - Update key lifetime and metadata after dnssec-policy reconfig.
263 ``a5f554959e``
264
265 Adjust key state and timing metadata if dnssec-policy key lifetime
266 configuration is updated, so that it also affects existing keys.
267 :gl:`#4677` :gl:`!9191`
268