Debian Codegraph @

doc/changelog/changelog-9.20.3.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.3
13 -----------
14
15 New Features
16 ~~~~~~~~~~~~
17
18 - Log query response status to the query log. ``cee11c8610f``
19
20 Log a query response summary using the new category `responses`.
21 Logging can be controlled by the option `responselog` and `rndc
22 responselog`. :gl:`#459` :gl:`!9526`
23
24 - Added WALLET type. ``dad3fafe9eb``
25
26 Add the new record type WALLET (262). This provides a mapping from a
27 domain name to a cryptographic currency wallet. Multiple mappings can
28 exist if multiple records exist. :gl:`#4947` :gl:`!9554`
29
30 Feature Changes
31 ~~~~~~~~~~~~~~~
32
33 - Set logging category for notify/xfer-in related messages.
34 ``1f553c61f76``
35
36 Some 'notify' and 'xfer-in' related log messages were logged at the
37 'general' category instead of their own category. This has been fixed.
38 :gl:`#2730` :gl:`!9514`
39
40 - Restore the number of threadpool threads back to original value.
41 ``a0eada53883``
42
43 The issue of long-running operations potentially blocking query
44 resolution has been fixed. Revert this temporary workaround and
45 restore the number of threadpool threads. :gl:`#4898` :gl:`!9532`
46
47 - Allow IXFR-to-AXFR fallback on DNS_R_TOOMANYRECORDS. ``30c4cbd4035``
48
49 This change allows fallback from an IXFR failure to AXFR when the
50 reason is `DNS_R_TOOMANYRECORDS`. This is because this error condition
51 could be temporary only in an intermediate version of IXFR
52 transactions and it's possible that the latest version of the zone
53 doesn't have that condition. In such a case, the secondary would never
54 be able to update the zone (even if it could) without this fallback.
55
56 This fallback behavior is particularly useful with the recently
57 introduced `max-records-per-type` and `max-types-per-name` options:
58 the primary may not have these limitations and may temporarily
59 introduce "too many" records, breaking IXFR. If the primary side
60 subsequently deletes these records, this fallback will help recover
61 the zone transfer failure automatically; without it, the secondary
62 side would first need to increase the limit, which requires more
63 operational overhead and has its own adverse effect. :gl:`#4928`
64 :gl:`!9471`
65
66 - Remove statslock from dnssec-signzone. ``12eb16186ff``
67
68 Silence Coverity CID 468757 and 468767 (DATA RACE read not locked) by
69 converting dnssec-signzone to use atomics for statistics counters
70 rather than using a lock. :gl:`#4939` :gl:`!9500`
71
72 - Use release memory ordering when incrementing reference counter.
73 ``19e3cd0cd2c``
74
75 As the relaxed memory ordering doesn't ensure any memory
76 synchronization, it is possible that the increment will succeed even
77 in the case when it should not - there is a race between
78 atomic_fetch_sub(..., acq_rel) and atomic_fetch_add(..., relaxed).
79 Only the result is consistent, but the previous value for both calls
80 could be same when both calls are executed at the same time.
81 :gl:`!9567`
82
83 Bug Fixes
84 ~~~~~~~~~
85
86 - Fix a statistics channel counter bug when 'forward only' zones are
87 used. ``2287dc0ac0d``
88
89 When resolving a zone with a 'forward only' policy, and finding out
90 that all the forwarders are marked as "bad", the 'ServerQuota' counter
91 of the statistics channel was incorrectly increased. This has been
92 fixed. :gl:`#1793` :gl:`!9502`
93
94 - Fix a bug in the static-stub implementation. ``72626cf9405``
95
96 Static-stub addresses and addresses from other sources were being
97 mixed together, resulting in static-stub queries going to addresses
98 not specified in the configuration, or alternatively, static-stub
99 addresses being used instead of the correct server addresses.
100 :gl:`#4850` :gl:`!9571`
101
102 - Don't allow statistics-channel if libxml2 and libjson-c are
103 unsupported. ``02822b70eee``
104
105 When the libxml2 and libjson-c libraries are not supported, the
106 statistics channel can't return anything useful, so it is now
107 disabled. Use of `statistics-channel` in `named.conf` is a fatal
108 error. :gl:`#4895` :gl:`!9486`
109
110 - Separate DNSSEC validation from the long-running tasks.
111 ``c0022f68025``
112
113 As part of the KeyTrap \[CVE-2023-50387\] mitigation, the DNSSEC CPU-
114 intensive operations were offloaded to a separate threadpool that we
115 use to run other tasks that could affect the networking latency.
116
117 If that threadpool is running some long-running tasks like RPZ,
118 catalog zone processing, or zone file operations, it would delay
119 DNSSEC validations to a point where the resolving signed DNS records
120 would fail.
121
122 Split the CPU-intensive and long-running tasks into separate
123 threadpools in a way that the long-running tasks don't block the CPU-
124 intensive operations. :gl:`#4898` :gl:`!9495`
125
126 - Fix assertion failure when processing access control lists.
127 ``a15d975dbe2``
128
129 The named process could terminate unexpectedly when processing access
130 control lists (ACLs). This has been fixed. :gl:`#4908` :gl:`!9466`
131
132 - Fix bug in Offline KSK that is using ZSK with unlimited lifetime.
133 ``3f115d3cdae``
134
135 If the ZSK has unlimited lifetime, the timing metadata "Inactive" and
136 "Delete" cannot be found and is treated as an error, preventing the
137 zone to be signed. This has been fixed. :gl:`#4914` :gl:`!9453`
138
139 - Fix data race in offloaded dns_message_checksig() ``3b5c4f94d70``
140
141 When verifying a message in an offloaded thread there is a race with
142 the worker thread which writes to the same buffer. Clone the message
143 buffer before offloading. :gl:`#4929` :gl:`!9490`
144
145 - Limit the outgoing UDP send queue size. ``251b90c25e0``
146
147 If the operating system UDP queue gets full and the outgoing UDP
148 sending starts to be delayed, BIND 9 could exhibit memory spikes as it
149 tries to enqueue all the outgoing UDP messages. Try a bit harder to
150 deliver the outgoing UDP messages synchronously and if that fails,
151 drop the outgoing DNS message that would get queued up and then
152 timeout on the client side. :gl:`#4930` :gl:`!9511`
153
154 - Do not set SO_INCOMING_CPU. ``6c9f3d0d1ed``
155
156 We currently set SO_INCOMING_CPU incorrectly, and testing by Ondrej
157 shows that fixing the issue by setting affinities is worse than
158 letting the kernel schedule threads without constraints. So we should
159 not set SO_INCOMING_CPU anymore. :gl:`#4936` :gl:`!9504`
160
161 - Fix the 'rndc dumpdb' command's error reporting. ``d35f654d674``
162
163 The 'rndc dumpdb' command wasn't reporting errors which occurred when
164 starting up the database dump process by named, like, for example, a
165 permission denied error for the 'dump-file' file. This has been fixed.
166 Note, however, that 'rndc dumpdb' performs asynchronous writes, so
167 errors can also occur during the dumping process, which will not be
168 reported back to 'rndc', but which will still be logged by named.
169 :gl:`#4944` :gl:`!9553`
170
171 - Fix long-running incoming transfers. ``c5cadd29d87``
172
173 Incoming transfers that took longer than 30 seconds would stop reading
174 from the TCP stream and the incoming transfer would be indefinitely
175 stuck causing BIND 9 to hang during shutdown.
176
177 This has been fixed and the `max-transfer-time-in` and `max-transfer-
178 idle-in` timeouts are now honoured. :gl:`#4949` :gl:`!9536`
179
180 - Fix assertion failure when receiving DNS responses over TCP.
181 ``e2058ab4619``
182
183 When matching the received Query ID in the TCP connection, an invalid
184 received Query ID can very rarely cause assertion failure. :gl:`#4952`
185 :gl:`!9582`
186
187 - Don't ignore the local port number in dns_dispatch_add() for TCP.
188 ``97fad455d73``
189
190 The dns_dispatch_add() function registers the 'resp' entry in
191 'disp->mgr->qids' hash table with 'resp->port' being 0, but in
192 tcp_recv_success(), when looking up an entry in the hash table after a
193 successfully received data the port is used, so if the local port was
194 set (i.e. it was not 0) it fails to find the entry and results in an
195 unexpected error.
196
197 Set the 'resp->port' to the given local port value extracted from
198 'disp->local'. :gl:`#4969` :gl:`!9581`
199
200 - Add a missing rcu_read_unlock() call on exit path. ``5db2ec07395``
201
202 An exit path in the dns_dispatch_add() function fails to get out of
203 the RCU critical section when returning early. Add the missing
204 rcu_read_unlock() call. :gl:`!9564`
205
206 - Don't enable REUSEADDR on outgoing UDP sockets. ``a6692e793c3``
207
208 The outgoing UDP sockets enabled `SO_REUSEADDR` that allows sharing of
209 the UDP sockets, but with one big caveat - the socket that was opened
210 the last would get all traffic. The dispatch code would ignore the
211 invalid responses in the dns_dispatch, but this could lead to
212 unexpected results. :gl:`!9583`
213
214