Debian Codegraph @

doc/changelog/changelog-9.20.2.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.2
13 -----------
14
15 New Features
16 ~~~~~~~~~~~~
17
18 - Support for Offline KSK implemented. ``3555094a686``
19
20 Add a new configuration option `offline-ksk` to enable Offline KSK key
21 management. Signed Key Response (SKR) files created with `dnssec-ksr`
22 (or other program) can now be imported into `named` with the new `rndc
23 skr -import` command. Rather than creating new DNSKEY, CDS and CDNSKEY
24 records and generating signatures covering these types, these records
25 are loaded from the currently active bundle from the imported SKR.
26
27 The implementation is loosely based on:
28 https://web.archive.org/web/20250121040252/https://www.iana.org/dnssec/archive/files/draft-icann-dnssec-keymgmt-01.txt
29 :gl:`#1128` :gl:`!9119`
30
31 - Print the full path of the working directory in startup log messages.
32 ``1c8eeafffb0``
33
34 named now prints its initial working directory during startup and the
35 changed working directory when loading or reloading its configuration
36 file if it has a valid 'directory' option defined. :gl:`#4731`
37 :gl:`!9372`
38
39 - Support restricted key tag range when generating new keys.
40 ``d0899632635``
41
42 It is useful when multiple signers are being used to sign a zone to
43 able to specify a restricted range of range of key tags that will be
44 used by an operator to sign the zone. This adds controls to named
45 (dnssec-policy), dnssec-signzone, dnssec-keyfromlabel and dnssec-ksr
46 (dnssec-policy) to specify such ranges. :gl:`#4830` :gl:`!9396`
47
48 Feature Changes
49 ~~~~~~~~~~~~~~~
50
51 - Exempt prefetches from the fetches-per-zone and fetches-per-server
52 quotas. ``5e78cade523``
53
54 Fetches generated automatically as a result of 'prefetch' are now
55 exempt from the 'fetches-per-zone' and 'fetches-per-server' quotas.
56 This should help in maintaining the cache from which query responses
57 can be given. :gl:`#4219` :gl:`!9420`
58
59 - Restore the ability to select individual unit tests. ``cfac05cc966``
60
61 This adds the command line arguments: `-d` (debug), `-l` (list tests)
62 and `-t test` (run this test) to the unit tests, e.g.:
63
64 .. code::
65
66 % ./rdata_test -t zonemd
67 [==========] selected:
68 Running 1 test(s).
69 [ RUN ] zonemd
70 [ OK ] zonemd
71 [==========] selected: 1 test(s) run.
72 [ PASSED ] 1 test(s).
73 %
74
75 :gl:`#4579` :gl:`!9385`
76
77 - Process also the ISC_R_CANCELED result code in rpz_rewrite()
78 ``eb2e0991e1a``
79
80 Log canceled resolver queries (e.g. when shutting down a hung fetch)
81 in DEBUG3 level instead of DEBUG1 which is used for the "unrecognized"
82 result codes. :gl:`#4797` :gl:`!9347`
83
84 - Remove code to read and parse /proc/net/if_inet6 on Linux.
85 ``e3cc5034ab0``
86
87 The getifaddr() works fine for years, so we don't have to keep the
88 callback to parse /proc/net/if_inet6 anymore. :gl:`#4852` :gl:`!9341`
89
90 - Use seteuid()/setegid() instead of setreseuid()/setresgid()
91 ``1127b2b3d16``
92
93 It looks like that all supported systems now have support for
94 _POSIX_SAVED_IDS, so it's safe to use setegid() and setegid() because
95 those will not change saved used/group IDs. :gl:`#4862` :gl:`!9371`
96
97 - Follow the number of CPU set by taskset/cpuset. ``ce3209b1dcf``
98
99 Administrators may wish to constrain the set of cores that BIND 9 runs
100 on via the 'taskset', 'cpuset' or 'numactl' programs (or equivalent on
101 other O/S).
102
103 If the admin has used taskset, the `named` will now follow to
104 automatically use the given number of CPUs rather than the system wide
105 count. :gl:`#4884` :gl:`!9442`
106
107 - Double the number of threadpool threads. ``cfdded46676``
108
109 Introduce this temporary workaround to reduce the impact of long-
110 running tasks in offload threads which can block the resolution of
111 queries. :gl:`#4898`
112
113 Bug Fixes
114 ~~~~~~~~~
115
116 - Delay release of root privileges until after configuring controls.
117 ``0b7eb9d7a90``
118
119 Delay relinquishing root privileges until the control channel has been
120 configured, for the benefit of systems that require root to use
121 privileged port numbers. This mostly affects systems without fine-
122 grained privilege systems (i.e., other than Linux). :gl:`#4793`
123 :gl:`!9444`
124
125 - Fix the assertion failure in the isc_hashmap iterator. ``92e54fa9b7f``
126
127 When the round robin hashing reorders the map entries on deletion, we
128 were adjusting the iterator table size only when the reordering was
129 happening at the internal table boundary. The iterator table size had
130 to be reduced by one to prevent seeing the entry that resized on
131 position [0] twice because it migrated to [iter->size - 1] position.
132
133 However, the same thing could happen when the same entry migrates a
134 second time from [iter->size - 1] to [iter->size - 2] position (and so
135 on) because the check that we are manipulating the entry just in the
136 [0] position was insufficient. Instead of checking the position [pos
137 == 0], we now check that the [pos % iter->size == 0], thus ignoring
138 all the entries that might have moved back to the end of the internal
139 table. :gl:`#4838` :gl:`!9310`
140
141 - Add -Wno-psabi to CFLAGS for x86 (32-bit) builds. ``9f2061e31eb``
142
143 GCC 11.1+ emits a note during compilation when there are 64-bit atomic
144 fields in a structure, because it fixed a compiler bug by changing the
145 alignment of such fields, which caused ABI change.
146
147 Add -Wno-psabi to CFLAGS for such builds in order to silence the
148 warning. That shouldn't be a problem since we don't expose our
149 structures to the outside. :gl:`#4841` :gl:`!9322`
150
151 - Check if logconfig is NULL before using it in isc_log_doit()
152 ``11cb3767256``
153
154 Check if 'lctx->logconfig' is NULL before using it in isc_log_doit(),
155 because it's possible that isc_log_destroy() was already called, e.g.
156 when a 'call_rcu' function wants to log a message during shutdown.
157 :gl:`#4842` :gl:`!9323`
158
159 - Change the NS_PER_SEC (and friends) from enum to static const.
160 ``91cecebf4c6``
161
162 New version of clang (19) has introduced a stricter checks when mixing
163 integer (and float types) with enums. In this case, we used enum {}
164 as C17 doesn't have constexpr yet. Change the time conversion
165 constants to be static const unsigned int instead of enum values.
166 :gl:`#4845` :gl:`!9339`
167
168 - Check the result of dirfd() before calling unlinkat() ``335796f32a1``
169
170 Instead of directly using the result of dirfd() in the unlinkat()
171 call, check whether the returned file descriptor is actually valid.
172 That doesn't really change the logic as the unlinkat() would fail with
173 invalid descriptor anyway, but this is cleaner and will report the
174 right error returned directly by dirfd() instead of EBADF from
175 unlinkat(). :gl:`#4853` :gl:`!9343`
176
177 - Fix rare assertion failure when shutting down incoming transfer.
178 ``02d4755cc31``
179
180 A very rare assertion failure can be triggered when the incoming
181 transfer is either forcefully shut down or it is finished during
182 printing the details about the statistics channel. This has been
183 fixed. :gl:`#4860` :gl:`!9377`
184
185 - Fix the resesuid() shim implementation for NetBSD. ``d959c035e89``
186
187 The shim implementation of setresuid() was wrong - there was a copy
188 and paste error and it was calling setresgid() instead. This only
189 affects NetBSD because Linux, FreeBSD and OpenBSD have setresuid() and
190 setresgid() implementation available from the system library.
191 :gl:`#4862` :gl:`!9361`
192
193 - Fix algoritm rollover bug when there are two keys with the same
194 keytag. ``2f2003c55d4``
195
196 If there is an algorithm rollover and two keys of different algorithm
197 share the same keytags, then there is a possibility that if we check
198 that a key matches a specific state, we are checking against the wrong
199 key. This has been fixed by not only checking for matching key tag but
200 also key algorithm. :gl:`#4878` :gl:`!9393`
201
202 - Stop using malloc_usable_size and malloc_size. ``1b7fa52d8ff``
203
204 The `malloc_usable_size()` can return size larger than originally
205 allocated and when these sizes disagree the fortifier enabled by
206 `_FORTIFY_SOURCE=3` detects overflow and stops the `named` execution
207 abruptly. Stop using these convenience functions as they are primary
208 used for introspection-only. :gl:`#4880` :gl:`!9418`
209
210 - Preserve statement tag order in documentation. ``57a9e3da00c``
211
212 This supports bit-for-bit reproducibility of built documentation.
213 :gl:`#4886` :gl:`!9408`
214
215 - Fix an assertion failure in validate_dnskey_dsset_done()
216 ``870f0be27eb``
217
218 Under rare circumstances, named could terminate unexpectedly when
219 validating a DNSKEY resource record if the validation was canceled in
220 the meantime. This has been fixed. :gl:`#4911`
221
222 - Silence all warnings that stem from the default config.
223 ``dde38470476``
224
225 As we now setup the logging very early, parsing the default config
226 would always print warnings about experimental (and possibly
227 deprecated) options in the default config. This would even mess with
228 commands like `named -V` and it is also wrong to warn users about
229 using experimental options in the default config, because they can't
230 do anything about this. Add CFG_PCTX_NODEPRECATED and
231 CFG_PCTX_NOEXPERIMENTAL options that we can pass to cfg parser and
232 silence the early warnings caused by using experimental options in the
233 default config. :gl:`!9305`
234