Extend info argument updates for non-ntorv3 cases
[tor.git] / ChangeLog
blob26b733547fa9ac60343c510445149a3102f7700e
1 Changes in version 0.4.6.10 - 2022-02-04
2   This version contains minor bugfixes but one in particular is that relays
3   don't advertise onion service v2 support at the protocol version level.
5   o Minor features (fallbackdir):
6     - Regenerate fallback directories generated on February 04, 2022.
8   o Minor features (geoip data):
9     - Update the geoip files to match the IPFire Location Database, as
10       retrieved on 2022/02/04.
12   o Minor bugfix (logging):
13     - Update a log notice dead URL to a working one. Fixes bug 40544;
14       bugfix on 0.3.5.1-alpha.
16   o Minor bugfix (relay):
17     - Remove the HSDir and HSIntro onion service v2 protocol versions so
18       relay stop advertising that they support them. Fixes bug 40509;
19       bugfix on 0.3.5.17.
21   o Minor bugfixes (MetricsPort, Prometheus):
22     - Add double quotes to the label values of the onion service
23       metrics. Fixes bug 40552; bugfix on 0.4.5.1-alpha.
26 Changes in version 0.4.5.12 - 2022-02-04
27   This version contains mostly minor bugfixes for which you can find the
28   details below. The previous release (0.4.5.11) was suppose to update the
29   GeoIP and fallbackdir lists but a problem in our release pipeline prevented
30   those files to be updated correctly. Thus, this release regenerates up to
31   date lists. Furthermore, another fix to highlight is that relays don't
32   advertise onion service v2 support at the protocol version level.
34   o Minor feature (reproducible build):
35     - The repository can now build reproducible tarballs which adds the
36       build command "make dist-reprod" for that purpose. Closes
37       ticket 26299.
39   o Minor features (compilation):
40     - Give an error message if trying to build with a version of
41       LibreSSL known not to work with Tor. (There's an incompatibility
42       with LibreSSL versions 3.2.1 through 3.4.0 inclusive because of
43       their incompatibility with OpenSSL 1.1.1's TLSv1.3 APIs.) Closes
44       ticket 40511.
46   o Minor features (fallbackdir):
47     - Regenerate fallback directories generated on February 04, 2022.
49   o Minor features (geoip data):
50     - Update the geoip files to match the IPFire Location Database, as
51       retrieved on 2022/02/04.
53   o Minor bugfix (logging):
54     - Update a log notice dead URL to a working one. Fixes bug 40544;
55       bugfix on 0.3.5.1-alpha.
57   o Minor bugfix (relay):
58     - Remove the HSDir and HSIntro onion service v2 protocol versions so
59       relay stop advertising that they support them. Fixes bug 40509;
60       bugfix on 0.3.5.17.
62   o Minor bugfixes (compilation):
63     - Fix a compilation error when trying to build Tor with a compiler
64       that does not support expanding statitically initialized const
65       values in macro's. Fixes bug 40410; bugfix on 0.4.5.1-alpha
66     - Fix our configuration logic to detect whether we had OpenSSL 3:
67       previously, our logic was reversed. This has no other effect than
68       to change whether we suppress deprecated API warnings. Fixes bug
69       40429; bugfix on 0.3.5.13.
71   o Minor bugfixes (MetricsPort, Prometheus):
72     - Add double quotes to the label values of the onion service
73       metrics. Fixes bug 40552; bugfix on 0.4.5.1-alpha.
75   o Minor bugfixes (relay):
76     - Reject IPv6-only DirPorts. Our reachability self-test forces
77       DirPorts to be IPv4, but our configuration parser allowed them to
78       be IPv6-only, which led to an assertion failure. Fixes bug 40494;
79       bugfix on 0.4.5.1-alpha.
81 Changes in version 0.4.7.3-alpha - 2021-12-15
82   This third alpha release of the 0.4.7.x series fixes several bugs including
83   two major ones affecting Bridges and Relays (see below). If you are running
84   an earlier 0.4.7.x version, you should upgrade to this version.
86   o Major bugfixes (bridges):
87     - Make Tor work reliably again when you have multiple bridges
88       configured and one or more of them are unreachable. The problem
89       came because we require that we have bridge descriptors for both
90       of our first two bridges (else we refuse to try to connect), but
91       in some cases we would wait three hours before trying to fetch
92       these missing descriptors, and/or never recover when we do try to
93       fetch them. Fixes bugs 40396 and 40495; bugfix on 0.3.0.5-rc
94       and 0.3.2.1-alpha.
96   o Major bugfixes (relay, overload):
97     - Change the MetricsPort DNS "timeout" label to be "tor_timeout" in
98       order to indicate that this was a DNS timeout from tor perspective
99       and not the DNS server itself.
100     - Deprecate overload_dns_timeout_period_secs and
101       overload_dns_timeout_scale_percent consensus parameters as well.
102       They were used to assess the overload state which is no more now.
103     - Don't make Tor DNS timeout trigger an overload general state.
104       These timeouts are different from DNS server timeout. They have to
105       be seen as timeout related to UX and not because of a network
106       problem. Fixes bug 40527; bugfix on 0.4.6.1-alpha.
108   o Minor feature (reproducible build):
109     - The repository can now build reproducible tarballs which adds the
110       build command "make dist-reprod" for that purpose. Closes
111       ticket 26299.
113   o Minor features (compilation):
114     - Give an error message if trying to build with a version of
115       LibreSSL known not to work with Tor. (There's an incompatibility
116       with LibreSSL versions 3.2.1 through 3.4.0 inclusive because of
117       their incompatibility with OpenSSL 1.1.1's TLSv1.3 APIs.) Closes
118       ticket 40511.
120   o Minor features (fallbackdir):
121     - Regenerate fallback directories generated on December 15, 2021.
123   o Minor features (geoip data):
124     - Update the geoip files to match the IPFire Location Database, as
125       retrieved on 2021/12/15.
127   o Minor features (portability):
128     - Try to prevent a compiler warning about printf arguments that
129       could sometimes occur on MSYS2 depending on the configuration.
130       Closes ticket 40355.
132   o Minor bugfix (pluggable transport):
133     - Do not kill a managed proxy if one of its transport configurations
134       emits a method error. Instead log a warning and continue processing
135       method arguments. Fixes bug 7362; bugfix on 0.2.3.6-alpha.
137   o Minor bugfixes (bridges):
138     - When we don't yet have a descriptor for one of our bridges,
139       disable the entry guard retry schedule on that bridge. The entry
140       guard retry schedule and the bridge descriptor retry schedule can
141       conflict, e.g. where we mark a bridge as "maybe up" yet we don't
142       try to fetch its descriptor yet, leading Tor to wait (refusing to
143       do anything) until it becomes time to fetch the descriptor. Fixes
144       bug 40497; bugfix on 0.3.0.3-alpha.
146   o Minor bugfixes (compilation):
147     - Fix our configuration logic to detect whether we had OpenSSL 3:
148       previously, our logic was reversed. This has no other effect than
149       to change whether we suppress deprecated API warnings. Fixes bug
150       40429; bugfix on 0.3.5.13.
152   o Minor bugfixes (controller, path bias):
153     - When a circuit's path is specified, in full or in part, from the
154       controller API, do not count that circuit towards our path-bias
155       calculations. (Doing so was incorrect, since we cannot tell
156       whether the controller is selecting relays randomly.) Resolves a
157       "Bug" warning. Fixes bug 40515; bugfix on 0.2.4.10-alpha.
159   o Minor bugfixes (logging):
160     - When we no longer have enough directory information to use the
161       network, we would log a notice-level message -- but we would not
162       reliably log a message when we recovered and resumed using the
163       network. Now make sure there is always a corresponding message
164       about recovering. Fixes bug 40496; bugfix on 0.3.5.1-alpha.
166   o Minor bugfixes (performance, DoS):
167     - Fix one case of a not-especially viable denial-of-service attack
168       found by OSS-Fuzz in our consensus-diff parsing code. This attack
169       causes a lot small of memory allocations and then immediately
170       frees them: this is only slow when running with all the sanitizers
171       enabled. Fixes one case of bug 40472; bugfix on 0.3.1.1-alpha.
173   o Minor bugfixes (relay):
174     - Reject IPv6-only DirPorts. Our reachability self-test forces
175       DirPorts to be IPv4, but our configuration parser allowed them to
176       be IPv6-only, which led to an assertion failure. Fixes bug 40494;
177       bugfix on 0.4.5.1-alpha.
179   o Minor bugfixes (sandbox):
180     - Fix the sandbox on i386 by modifying it to allow the
181       "clock_gettime64" and "statx" system calls and to filter the
182       "chown32" and "stat64" system calls in place of "chown" and
183       "stat", respectively. Fixes bug 40505; bugfix on 0.2.5.4-alpha.
185   o Documentation (man, relay):
186     - Missing "OverloadStatistics" in tor.1 manpage. Fixes bug 40504;
187       bugfix on 0.4.6.1-alpha.
189 Changes in version 0.4.6.9 - 2021-12-15
190   This version fixes several bugs from earlier versions of Tor. One important
191   piece is the removal of DNS timeout metric from the overload general signal.
192   See below for more details.
194   o Major bugfixes (relay, overload):
195     - Don't make Tor DNS timeout trigger an overload general state.
196       These timeouts are different from DNS server timeout. They have to
197       be seen as timeout related to UX and not because of a network
198       problem. Fixes bug 40527; bugfix on 0.4.6.1-alpha.
200   o Minor feature (reproducible build):
201     - The repository can now build reproducible tarballs which adds the
202       build command "make dist-reprod" for that purpose. Closes
203       ticket 26299.
205   o Minor features (compilation):
206     - Give an error message if trying to build with a version of
207       LibreSSL known not to work with Tor. (There's an incompatibility
208       with LibreSSL versions 3.2.1 through 3.4.0 inclusive because of
209       their incompatibility with OpenSSL 1.1.1's TLSv1.3 APIs.) Closes
210       ticket 40511.
212   o Minor features (fallbackdir):
213     - Regenerate fallback directories generated on December 15, 2021.
215   o Minor features (geoip data):
216     - Update the geoip files to match the IPFire Location Database, as
217       retrieved on 2021/12/15.
219   o Minor bugfixes (compilation):
220     - Fix our configuration logic to detect whether we had OpenSSL 3:
221       previously, our logic was reversed. This has no other effect than
222       to change whether we suppress deprecated API warnings. Fixes bug
223       40429; bugfix on 0.3.5.13.
225   o Minor bugfixes (relay):
226     - Reject IPv6-only DirPorts. Our reachability self-test forces
227       DirPorts to be IPv4, but our configuration parser allowed them to
228       be IPv6-only, which led to an assertion failure. Fixes bug 40494;
229       bugfix on 0.4.5.1-alpha.
231   o Documentation (man, relay):
232     - Missing "OverloadStatistics" in tor.1 manpage. Fixes bug 40504;
233       bugfix on 0.4.6.1-alpha.
236 Changes in version 0.4.7.2-alpha - 2021-10-26
237   This second alpha release of the 0.4.7.x series adds two major
238   features: congestion control (prop324) for network performance, and
239   the MiddleOnly flag (prop335) voted by the authorities to pin relays
240   to the middle position for various network health reasons. This
241   release also fixes numerous bugs.
243   The congestion control feature, detailed in proposal 324, still needs
244   more work before we can enable it by default. It is currently in its
245   testing and tuning phase which means that you should expect more
246   0.4.7.x alphas as congestion control gets stabilized and tuned for
247   optimal performance. And so, at this release, it can not be used
248   without a custom patch.
250   o Major features (congestion control):
251     - Implement support for flow control over congestion controlled
252       circuits. This work comes from proposal 324. Closes ticket 40450.
254   o Major features (directory authority):
255     - Add a new consensus method to handle MiddleOnly specially. When
256       enough authorities are using this method, then any relay tagged
257       with the MiddleOnly flag will have its Exit, Guard, HSDir, and
258       V2Dir flags automatically cleared, and will have its BadExit flag
259       automatically set. Implements part of proposal 335.
260     - Authorities can now be configured to label relays as "MiddleOnly".
261       When voting for this flag, authorities automatically vote against
262       Exit, Guard, HSDir, and V2Dir; and in favor of BadExit. Implements
263       part of proposal 335. Based on a patch from Neel Chauhan.
265   o Major bugfix (relay, metrics):
266     - On the MetricsPort, the DNS error statistics are not reported by
267       record type ("record=...") anymore due to a libevent bug
268       (https://github.com/libevent/libevent/issues/1219). Fixes bug
269       40490; bugfix on 0.4.7.1-alpha.
271   o Major bugfixes (relay, overload state):
272     - Relays report the general overload state for DNS timeout errors
273       only if X% of all DNS queries over Y seconds are errors. Before
274       that, it only took 1 timeout to report the overload state which
275       was just too low of a threshold. The X and Y values are 1% and 10
276       minutes respectively but they are also controlled by consensus
277       parameters. Fixes bug 40491; bugfix on 0.4.6.1-alpha.
279   o Minor feature (authority, relay):
280     - Reject End-Of-Life relays running version 0.4.2.x, 0.4.3.x,
281       0.4.4.x and 0.4.5 alphas/rc. Closes ticket 40480.
283   o Minor feature (onion service v2):
284     - Onion service v2 addresses are now not recognized anymore by tor
285       meaning a bad hostname is returned when attempting to pass it on a
286       SOCKS connection. No more deprecation log is emitted client side.
287       Closes ticket 40476.
288     - See https://blog.torproject.org/v2-deprecation-timeline for
289       details on how to transition from v2 to v3.
291   o Minor features (fallbackdir):
292     - Regenerate fallback directories for October 2021. Closes
293       ticket 40493.
295   o Minor features (logging, heartbeat):
296     - When a relay receives a cell that isn't encrypted properly for it,
297       but the relay is the last hop on the circuit, the relay now counts
298       how many cells of this kind it receives, on how many circuits, and
299       reports this information in the log. Previously, we'd log each
300       cell at PROTOCOL_WARN level, which is far too verbose to be
301       useful. Fixes part of ticket 40400.
303   o Minor features (testing):
304     - We now have separate fuzzers for the inner layers of v3 onion
305       service descriptors, to prevent future bugs like 40392. Closes
306       ticket 40488.
308   o Minor bugfixes (compilation):
309     - Fix compilation error when __NR_time is not defined. Fixes bug
310       40465; bugfix on 0.2.5.5-alpha. Patch by Daniel Pinto.
312   o Minor bugfixes (dirauth, bandwidth scanner):
313     - Add the AuthDirDontVoteOnDirAuthBandwidth dirauth config parameter
314       to avoid voting on bandwidth scanner weights to v3 directory
315       authorities. Fixes bug 40471; bugfix on 0.2.2.1-alpha. Patch by
316       Neel Chauhan.
318   o Minor bugfixes (fragile-hardening, sandbox):
319     - When building with --enable-fragile-hardening, add or relax Linux
320       seccomp rules to allow AddressSanitizer to execute normally if the
321       process terminates with the sandbox active. This has the side
322       effect of disabling the filtering of file- and directory-open
323       requests on most systems and dilutes the effectiveness of the
324       sandbox overall, as a wider range of system calls must be
325       permitted. Fixes bug 11477; bugfix on 0.2.5.4-alpha.
327   o Minor bugfixes (logging):
328     - If a channel has never received or transmitted a cell, or seen a
329       client, do not calculate time diffs against 1/1/1970 but log a
330       better prettier message. Fixes bug 40182; bugfix on 0.2.4.4.
332   o Minor bugfixes (onion service):
333     - Fix a warning BUG that would occur often on heavily loaded onion
334       service leading to filling the logs with useless warnings. Fixes
335       bug 34083; bugfix on 0.3.2.1-alpha.
337   o Minor bugfix (CI, onion service):
338     - Exclude onion service version 2 Stem tests in our CI. Fixes bug 40500;
339       bugfix on 0.3.2.1-alpha.
341   o Minor bugfixes (onion service, config):
342     - Fix a memory leak for a small config line string that could occur
343       if the onion service failed to be configured from file properly.
344       Fixes bug 40484; bugfix on 0.3.2.1-alpha.
346   o Minor bugfixes (onion service, TROVE-2021-008):
347     - Only log v2 access attempts once total, in order to not pollute
348       the logs with warnings and to avoid recording the times on disk
349       when v2 access was attempted. Note that the onion address was
350       _never_ logged. This counts as a Low-severity security issue.
351       Fixes bug 40474; bugfix on 0.4.5.8.
352     - Note that due to #40476 which removes v2 support entirely, this
353       log line is not emitted anymore. We still mention this in the
354       changelog because it is a Low-severity TROVE.
356   o Minor bugfixes (usability):
357     - Do not log "RENDEZVOUS1 cell with unrecognized rendezvous cookie"
358       at LOG_PROTOCOL_WARN; instead log it at DEBUG. This warning can
359       happen naturally if a client gives up on a rendezvous circuit
360       after sending INTRODUCE1. Fixes part of bug 40400; bugfix
361       on 0.1.1.13-alpha.
362     - Do not log "circuit_receive_relay_cell failed" at
363       LOG_PROTOCOL_WARN; instead log it at DEBUG. In every case where we
364       would want to log this as a protocol warning, we are already
365       logging another warning from inside circuit_receive_relay_cell.
366       Fixes part of bug 40400; bugfix on 0.1.1.9-alpha.
368   o Code simplification and refactoring:
369     - Lower the official maximum for "guard-extreme-restriction-percent"
370       to 100. This has no effect on when the guard code will generate a
371       warning, but it makes the intent of the option clearer. Fixes bug
372       40486; bugfix on 0.3.0.1-alpha.
374   o Testing:
375     - Add unit tests for the Linux seccomp sandbox. Resolves
376       issue 16803.
378   o Code simplification and refactoring (rust):
379     - Remove Rust support and its associated code. It is unsupported and
380       Rust focus should be shifted to arti. Closes ticket 40469.
382   o Testing (CI, chutney):
383     - Bump the data size that chutney transmits to 5MBytes in order to
384       trigger the flow control and congestion window code. Closes
385       ticket 40485.
388 Changes in version 0.4.6.8 - 2021-10-26
389   This version fixes several bugs from earlier versions of Tor. One
390   highlight is a fix on how we track DNS timeouts to report general
391   relay overload.
393   o Major bugfixes (relay, overload state):
394     - Relays report the general overload state for DNS timeout errors
395       only if X% of all DNS queries over Y seconds are errors. Before
396       that, it only took 1 timeout to report the overload state which
397       was just too low of a threshold. The X and Y values are 1% and 10
398       minutes respectively but they are also controlled by consensus
399       parameters. Fixes bug 40491; bugfix on 0.4.6.1-alpha.
401   o Minor features (fallbackdir):
402     - Regenerate fallback directories for October 2021. Closes
403       ticket 40493.
405   o Minor features (testing):
406     - On a testing network, relays can now use the
407       TestingMinTimeToReportBandwidth option to change the smallest
408       amount of time over which they're willing to report their observed
409       maximum bandwidth. Previously, this was fixed at 1 day. For
410       safety, values under 2 hours are only supported on testing
411       networks. Part of a fix for ticket 40337.
412     - Relays on testing networks no longer rate-limit how frequently
413       they are willing to report new bandwidth measurements. Part of a
414       fix for ticket 40337.
415     - Relays on testing networks now report their observed bandwidths
416       immediately from startup. Previously, they waited until they had
417       been running for a full day. Closes ticket 40337.
419   o Minor bugfix (onion service):
420     - Do not flag an HSDir as non-running in case the descriptor upload
421       or fetch fails. An onion service closes pending directory
422       connections before uploading a new descriptor which can thus lead
423       to wrongly flagging many relays and thus affecting circuit building
424       path selection. Fixes bug 40434; bugfix on 0.2.0.13-alpha.
425     - Improve logging when a bad HS version is given. Fixes bug 40476;
426       bugfix on 0.4.6.1-alpha.
428   o Minor bugfix (CI, onion service):
429     - Exclude onion service version 2 Stem tests in our CI. Fixes bug 40500;
430       bugfix on 0.3.2.1-alpha.
432   o Minor bugfixes (compatibility):
433     - Fix compatibility with the most recent Libevent versions, which no
434       longer have an evdns_set_random_bytes() function. Because this
435       function has been a no-op since Libevent 2.0.4-alpha, it is safe
436       for us to just stop calling it. Fixes bug 40371; bugfix
437       on 0.2.1.7-alpha.
439   o Minor bugfixes (onion service, TROVE-2021-008):
440     - Only log v2 access attempts once total, in order to not pollute
441       the logs with warnings and to avoid recording the times on disk
442       when v2 access was attempted. Note that the onion address was
443       _never_ logged. This counts as a Low-severity security issue.
444       Fixes bug 40474; bugfix on 0.4.5.8.
447 Changes in version 0.4.5.11 - 2021-10-26
448   The major change in this version is that v2 onion services are now
449   disabled at the client, service, and relay: any Tor nodes running this
450   version and onward will stop supporting v2 onion services. This is the
451   last step in the long deprecation process of v2 onion services.
452   Everyone running an earlier version, whether as a client, a relay, or
453   an onion service, should upgrade to Tor 0.3.5.17, 0.4.5.11,
454   or 0.4.6.8.
456   o Major feature (onion service v2):
457     - See https://blog.torproject.org/v2-deprecation-timeline for
458       details on how to transition from v2 to v3.
459     - The control port commands HSFETCH and HSPOST no longer allow
460       version 2, and it is no longer possible to create a v2 service
461       with ADD_ONION.
462     - Tor no longer allows creating v2 services, or connecting as a
463       client to a v2 service. Relays will decline to be a v2 HSDir or
464       introduction point. This effectively disables onion service
465       version 2 Tor-wide. Closes ticket 40476.
467   o Minor features (bridge, backport from 0.4.6.8):
468     - We now announce the URL to Tor's new bridge status at
469       https://bridges.torproject.org/ when Tor is configured to run as a
470       bridge relay. Closes ticket 30477.
472   o Minor features (fallbackdir):
473     - Regenerate fallback directories for October 2021. Closes
474       ticket 40493.
476   o Minor features (logging, diagnostic, backport from 0.4.6.5):
477     - Log decompression failures at a higher severity level, since they
478       can help provide missing context for other warning messages. We
479       rate-limit these messages, to avoid flooding the logs if they
480       begin to occur frequently. Closes ticket 40175.
482   o Minor features (testing, backport from 0.4.6.8):
483     - On a testing network, relays can now use the
484       TestingMinTimeToReportBandwidth option to change the smallest
485       amount of time over which they're willing to report their observed
486       maximum bandwidth. Previously, this was fixed at 1 day. For
487       safety, values under 2 hours are only supported on testing
488       networks. Part of a fix for ticket 40337.
489     - Relays on testing networks no longer rate-limit how frequently
490       they are willing to report new bandwidth measurements. Part of a
491       fix for ticket 40337.
492     - Relays on testing networks now report their observed bandwidths
493       immediately from startup. Previously, they waited until they had
494       been running for a full day. Closes ticket 40337.
496   o Minor bugfix (CI, onion service):
497     - Exclude onion service version 2 Stem tests in our CI. Fixes bug 40500;
498       bugfix on 0.3.2.1-alpha.
500   o Minor bugfix (onion service, backport from 0.4.6.8):
501     - Do not flag an HSDir as non-running in case the descriptor upload
502       or fetch fails. An onion service closes pending directory
503       connections before uploading a new descriptor which can thus lead
504       to wrongly flagging many relays and thus affecting circuit building
505       path selection. Fixes bug 40434; bugfix on 0.2.0.13-alpha.
507   o Minor bugfixes (compatibility, backport from 0.4.6.8):
508     - Fix compatibility with the most recent Libevent versions, which no
509       longer have an evdns_set_random_bytes() function. Because this
510       function has been a no-op since Libevent 2.0.4-alpha, it is safe
511       for us to just stop calling it. Fixes bug 40371; bugfix
512       on 0.2.1.7-alpha.
514   o Minor bugfixes (consensus handling, backport from 0.4.6.4-rc):
515     - Avoid a set of bugs that could be caused by inconsistently
516       preferring an out-of-date consensus stored in a stale directory
517       cache over a more recent one stored on disk as the latest
518       consensus. Fixes bug 40375; bugfix on 0.3.1.1-alpha.
520   o Minor bugfixes (onion service, TROVE-2021-008, backport from 0.4.6.8):
521     - Only log v2 access attempts once total, in order to not pollute
522       the logs with warnings and to avoid recording the times on disk
523       when v2 access was attempted. Note that the onion address was
524       _never_ logged. This counts as a Low-severity security issue.
525       Fixes bug 40474; bugfix on 0.4.5.8.
528 Changes in version 0.3.5.17 - 2021-10-26
529   The major change in this version is that v2 onion services are now
530   disabled at the client, service, and relay: any Tor nodes running this
531   version and onward will stop supporting v2 onion services. This is the
532   last step in the long deprecation process of v2 onion services.
533   Everyone running an earlier version, whether as a client, a relay, or
534   an onion service, should upgrade to Tor 0.3.5.17, 0.4.5.11,
535   or 0.4.6.8.
537   o Major feature (onion service v2, backport from 0.4.5.11):
538     - See https://blog.torproject.org/v2-deprecation-timeline for
539       details on how to transition from v2 to v3.
540     - The control port commands HSFETCH and HSPOST no longer allow
541       version 2, and it is no longer possible to create a v2 service
542       with ADD_ONION.
543     - Tor no longer allows creating v2 services, or connecting as a
544       client to a v2 service. Relays will decline to be a v2 HSDir or
545       introduction point. This effectively disables onion service
546       version 2 Tor-wide. Closes ticket 40476.
548   o Minor features (bridge, backport from 0.4.6.8):
549     - We now announce the URL to Tor's new bridge status at
550       https://bridges.torproject.org/ when Tor is configured to run as a
551       bridge relay. Closes ticket 30477.
553   o Minor features (fallbackdir):
554     - Regenerate fallback directories for October 2021. Closes
555       ticket 40493.
557   o Minor bugfixes (compatibility, backport from 0.4.6.8):
558     - Fix compatibility with the most recent Libevent versions, which no
559       longer have an evdns_set_random_bytes() function. Because this
560       function has been a no-op since Libevent 2.0.4-alpha, it is safe
561       for us to just stop calling it. Fixes bug 40371; bugfix
562       on 0.2.1.7-alpha.
565 Changes in version 0.4.7.1-alpha - 2021-09-17
566   This version is the first alpha release of the 0.4.7.x series. One
567   major feature is Vanguards Lite, from proposal 333, to help mitigate
568   guard discovery attacks against onion services. It also includes
569   numerous bugfixes.
571   o Major features (Proposal 332, onion services, guard selection algorithm):
572     - Clients and onion services now choose four long-lived "layer 2"
573       guard relays for use as the middle hop in all onion circuits.
574       These relays are kept in place for a randomized duration averaging
575       1 week. This mitigates guard discovery attacks against clients and
576       short-lived onion services such as OnionShare. Long-lived onion
577       services that need high security should still use the Vanguards
578       addon (https://github.com/mikeperry-tor/vanguards). Closes ticket
579       40363; implements proposal 333.
581   o Minor features (bridge testing support):
582     - Let external bridge reachability testing tools discard cached
583       bridge descriptors when setting new bridges, so they can be sure
584       to get a clean reachability test. Implements ticket 40209.
586   o Minor features (fuzzing):
587     - When building with --enable-libfuzzer, use a set of compiler flags
588       that works with more recent versions of the library. Previously we
589       were using a set of flags from 2017. Closes ticket 40407.
591   o Minor features (testing configuration):
592     - When TestingTorNetwork is enabled, skip the permissions check on
593       hidden service directories. Closes ticket 40338.
594     - On a testing network, relays can now use the
595       TestingMinTimeToReportBandwidth option to change the smallest
596       amount of time over which they're willing to report their observed
597       maximum bandwidth. Previously, this was fixed at 1 day. For
598       safety, values under 2 hours are only supported on testing
599       networks. Part of a fix for ticket 40337.
600     - Relays on testing networks no longer rate-limit how frequently
601       they are willing to report new bandwidth measurements. Part of a
602       fix for ticket 40337.
603     - Relays on testing networks now report their observed bandwidths
604       immediately from startup. Previously, they waited until they had
605       been running for a full day. Closes ticket 40337.
607   o Minor bugfixes (circuit padding):
608     - Don't send STOP circuit padding cells when the other side has
609       already shut down the corresponding padding machine. Fixes bug
610       40435; bugfix on 0.4.0.1-alpha.
612   o Minor bugfixes (compatibility):
613     - Fix compatibility with the most recent Libevent versions, which no
614       longer have an evdns_set_random_bytes() function. Because this
615       function has been a no-op since Libevent 2.0.4-alpha, it is safe
616       for us to just stop calling it. Fixes bug 40371; bugfix
617       on 0.2.1.7-alpha.
619   o Minor bugfixes (control, sandbox):
620     - Allows the control command SAVECONF to succeed when the seccomp
621       sandbox is enabled. Makes SAVECONF keep only one backup file, to
622       simplify implementation. Fixes bug 40317; bugfix on 0.2.5.4-alpha.
623       Patch by Daniel Pinto.
625   o Minor bugfixes (heartbeat):
626     - Adjust the heartbeat log message about distinct clients to
627       consider the HeartbeatPeriod rather than a flat 6-hour delay.
628       Fixes bug 40330; bugfix on 0.2.6.3-alpha.
630   o Minor bugfixes (logging, relay):
631     - Add spaces between the "and" when logging the "Your server has not
632       managed to confirm reachability for its" on dual-stack relays.
633       Fixes bug 40453; bugfix on 0.4.5.1-alpha. Patch by Neel Chauhan.
635   o Minor bugfixes (onion service):
636     - Do not flag an HSDir as non-running in case the descriptor upload
637       or fetch fails. An onion service closes pending directory
638       connections before uploading a new descriptor which leads to
639       wrongly flagging many relays and thus affecting circuit path
640       selection. Fixes bug 40434; bugfix on 0.2.0.13-alpha.
642   o Minor bugfixes (statistics):
643     - Fix a fencepost issue when we check stability_last_downrated where
644       we called rep_hist_downrate_old_runs() twice. Fixes bug 40394;
645       bugfix on 0.2.0.5-alpha. Patch by Neel Chauhan.
647   o Minor bugfixes (tests):
648     - Fix a bug that prevented some tests from running with the correct
649       names. Fixes bug 40365; bugfix on 0.4.3.1-alpha.
651   o Documentation:
652     - Add links to original tor design paper and anonbib to
653       docs/HACKING/README.1st.md. Closes ticket 33742. Patch from
654       Emily Bones.
655     - Describe the "fingerprint-ed25519" file in the tor.1 man page.
656       Fixes bug 40467; bugfix on 0.4.3.1-alpha. Patch by Neel Chauhan.
659 Changes in version 0.4.6.7 - 2021-08-16
660   This version fixes several bugs from earlier versions of Tor,
661   including one that could lead to a denial-of-service attack. Everyone
662   running an earlier version, whether as a client, a relay, or an onion
663   service, should upgrade to Tor 0.3.5.16, 0.4.5.10, or 0.4.6.7.
665   o Major bugfixes (cryptography, security):
666     - Resolve an assertion failure caused by a behavior mismatch between
667       our batch-signature verification code and our single-signature
668       verification code. This assertion failure could be triggered
669       remotely, leading to a denial of service attack. We fix this issue
670       by disabling batch verification. Fixes bug 40078; bugfix on
671       0.2.6.1-alpha. This issue is also tracked as TROVE-2021-007 and
672       CVE-2021-38385. Found by Henry de Valence.
674   o Minor feature (fallbackdir):
675     - Regenerate fallback directories list. Close ticket 40447.
677   o Minor features (geoip data):
678     - Update the geoip files to match the IPFire Location Database, as
679       retrieved on 2021/08/12.
681   o Minor bugfix (crypto):
682     - Disable the unused batch verification feature of ed25519-donna.
683       Fixes bug 40078; bugfix on 0.2.6.1-alpha. Found by Henry
684       de Valence.
686   o Minor bugfixes (onion service):
687     - Send back the extended SOCKS error 0xF6 (Onion Service Invalid
688       Address) for a v2 onion address. Fixes bug 40421; bugfix
689       on 0.4.6.2-alpha.
691   o Minor bugfixes (relay):
692     - Reduce the compression level for data streaming from HIGH to LOW
693       in order to reduce CPU load on the directory relays. Fixes bug
694       40301; bugfix on 0.3.5.1-alpha.
696   o Minor bugfixes (timekeeping):
697     - Calculate the time of day correctly on systems where the time_t
698       type includes leap seconds. (This is not the case on most
699       operating systems, but on those where it occurs, our tor_timegm
700       function did not correctly invert the system's gmtime function,
701       which could result in assertion failures when calculating voting
702       schedules.) Fixes bug 40383; bugfix on 0.2.0.3-alpha.
705 Changes in version 0.4.5.10 - 2021-08-16
706   This version fixes several bugs from earlier versions of Tor,
707   including one that could lead to a denial-of-service attack. Everyone
708   running an earlier version, whether as a client, a relay, or an onion
709   service, should upgrade to Tor 0.3.5.16, 0.4.5.10, or 0.4.6.7.
711   o Major bugfixes (cryptography, security):
712     - Resolve an assertion failure caused by a behavior mismatch between
713       our batch-signature verification code and our single-signature
714       verification code. This assertion failure could be triggered
715       remotely, leading to a denial of service attack. We fix this issue
716       by disabling batch verification. Fixes bug 40078; bugfix on
717       0.2.6.1-alpha. This issue is also tracked as TROVE-2021-007 and
718       CVE-2021-38385. Found by Henry de Valence.
720   o Minor feature (fallbackdir):
721     - Regenerate fallback directories list. Close ticket 40447.
723   o Minor features (geoip data):
724     - Update the geoip files to match the IPFire Location Database, as
725       retrieved on 2021/08/12.
727   o Minor features (testing):
728     - Enable the deterministic RNG for unit tests that covers the
729       address set bloomfilter-based API's. Fixes bug 40419; bugfix
730       on 0.3.3.2-alpha.
732   o Minor bugfix (crypto, backport from 0.4.6.7):
733     - Disable the unused batch verification feature of ed25519-donna.
734       Fixes bug 40078; bugfix on 0.2.6.1-alpha. Found by Henry
735       de Valence.
737   o Minor bugfixes (relay, backport from 0.4.6.7):
738     - Reduce the compression level for data streaming from HIGH to LOW.
739       Fixes bug 40301; bugfix on 0.3.5.1-alpha.
741   o Minor bugfixes (timekeeping, backport from 0.4.6.7):
742     - Calculate the time of day correctly on systems where the time_t
743       type includes leap seconds. (This is not the case on most
744       operating systems, but on those where it occurs, our tor_timegm
745       function did not correctly invert the system's gmtime function,
746       which could result in assertion failures when calculating voting
747       schedules.) Fixes bug 40383; bugfix on 0.2.0.3-alpha.
749   o Minor bugfixes (warnings, portability, backport from 0.4.6.6):
750     - Suppress a strict-prototype warning when building with some
751       versions of NSS. Fixes bug 40409; bugfix on 0.3.5.1-alpha.
754 Changes in version 0.3.5.16 - 2021-08-16
755   This version fixes several bugs from earlier versions of Tor,
756   including one that could lead to a denial-of-service attack. Everyone
757   running an earlier version, whether as a client, a relay, or an onion
758   service, should upgrade to Tor 0.3.5.16, 0.4.5.10, or 0.4.6.7.
760   o Major bugfixes (cryptography, security):
761     - Resolve an assertion failure caused by a behavior mismatch between
762       our batch-signature verification code and our single-signature
763       verification code. This assertion failure could be triggered
764       remotely, leading to a denial of service attack. We fix this issue
765       by disabling batch verification. Fixes bug 40078; bugfix on
766       0.2.6.1-alpha. This issue is also tracked as TROVE-2021-007 and
767       CVE-2021-38385. Found by Henry de Valence.
769   o Minor feature (fallbackdir):
770     - Regenerate fallback directories list. Close ticket 40447.
772   o Minor features (geoip data):
773     - Update the geoip files to match the IPFire Location Database, as
774       retrieved on 2021/08/12.
776   o Minor bugfix (crypto, backport from 0.4.6.7):
777     - Disable the unused batch verification feature of ed25519-donna.
778       Fixes bug 40078; bugfix on 0.2.6.1-alpha. Found by Henry
779       de Valence.
781   o Minor bugfixes (relay, backport from 0.4.6.7):
782     - Reduce the compression level for data streaming from HIGH to LOW.
783       Fixes bug 40301; bugfix on 0.3.5.1-alpha.
786 Changes in version 0.4.6.6 - 2021-06-30
787   Tor 0.4.6.6 makes several small fixes on 0.4.6.5, including one that
788   allows Tor to build correctly on older versions of GCC. You should
789   upgrade to this version if you were having trouble building Tor
790   0.4.6.5; otherwise, there is probably no need.
792   o Minor bugfixes (compilation):
793     - Fix a compilation error when trying to build Tor with a compiler
794       that does not support const variables in static initializers.
795       Fixes bug 40410; bugfix on 0.4.6.5.
796     - Suppress a strict-prototype warning when building with some
797       versions of NSS. Fixes bug 40409; bugfix on 0.3.5.1-alpha.
799   o Minor bugfixes (testing):
800     - Enable the deterministic RNG for unit tests that covers the
801       address set bloomfilter-based API's. Fixes bug 40419; bugfix
802       on 0.3.3.2-alpha.
805 Changes in version 0.4.5.9 - 2021-06-14
806   Tor 0.4.5.9 fixes several security issues, including a
807   denial-of-service attack against onion service clients, and another
808   denial-of-service attack against relays. Everybody should upgrade to
809   one of 0.3.5.15, 0.4.4.9, 0.4.5.9, or 0.4.6.5.
811   o Major bugfixes (security, backport from 0.4.6.5):
812     - Don't allow relays to spoof RELAY_END or RELAY_RESOLVED cell on
813       half-closed streams. Previously, clients failed to validate which
814       hop sent these cells: this would allow a relay on a circuit to end
815       a stream that wasn't actually built with it. Fixes bug 40389;
816       bugfix on 0.3.5.1-alpha. This issue is also tracked as TROVE-2021-
817       003 and CVE-2021-34548.
819   o Major bugfixes (security, defense-in-depth, backport from 0.4.6.5):
820     - Detect more failure conditions from the OpenSSL RNG code.
821       Previously, we would detect errors from a missing RNG
822       implementation, but not failures from the RNG code itself.
823       Fortunately, it appears those failures do not happen in practice
824       when Tor is using OpenSSL's default RNG implementation. Fixes bug
825       40390; bugfix on 0.2.8.1-alpha. This issue is also tracked as
826       TROVE-2021-004. Reported by Jann Horn at Google's Project Zero.
828   o Major bugfixes (security, denial of service, backport from 0.4.6.5):
829     - Resist a hashtable-based CPU denial-of-service attack against
830       relays. Previously we used a naive unkeyed hash function to look
831       up circuits in a circuitmux object. An attacker could exploit this
832       to construct circuits with chosen circuit IDs, to create
833       collisions and make the hash table inefficient. Now we use a
834       SipHash construction here instead. Fixes bug 40391; bugfix on
835       0.2.4.4-alpha. This issue is also tracked as TROVE-2021-005 and
836       CVE-2021-34549. Reported by Jann Horn from Google's Project Zero.
837     - Fix an out-of-bounds memory access in v3 onion service descriptor
838       parsing. An attacker could exploit this bug by crafting an onion
839       service descriptor that would crash any client that tried to visit
840       it. Fixes bug 40392; bugfix on 0.3.0.1-alpha. This issue is also
841       tracked as TROVE-2021-006 and CVE-2021-34550. Reported by Sergei
842       Glazunov from Google's Project Zero.
844   o Minor features (compatibility, backport from 0.4.6.4-rc):
845     - Remove an assertion function related to TLS renegotiation. It was
846       used nowhere outside the unit tests, and it was breaking
847       compilation with recent alpha releases of OpenSSL 3.0.0. Closes
848       ticket 40399.
850   o Minor features (geoip data):
851     - Update the geoip files to match the IPFire Location Database, as
852       retrieved on 2021/06/10.
854   o Minor bugfixes (control, sandbox, backport from 0.4.6.4-rc):
855     - Allow the control command SAVECONF to succeed when the seccomp
856       sandbox is enabled, and make SAVECONF keep only one backup file to
857       simplify implementation. Previously SAVECONF allowed a large
858       number of backup files, which made it incompatible with the
859       sandbox. Fixes bug 40317; bugfix on 0.2.5.4-alpha. Patch by
860       Daniel Pinto.
862   o Minor bugfixes (metrics port, backport from 0.4.6.4-rc):
863     - Fix a bug that made tor try to re-bind() on an already open
864       MetricsPort every 60 seconds. Fixes bug 40370; bugfix
865       on 0.4.5.1-alpha.
868 Changes in version 0.4.4.9 - 2021-06-14
869   Tor 0.4.4.9 fixes several security issues, including a
870   denial-of-service attack against onion service clients, and another
871   denial-of-service attack against relays. Everybody should upgrade to
872   one of 0.3.5.15, 0.4.4.9, 0.4.5.9, or 0.4.6.5.
874   Note that the scheduled end-of-life date for the Tor 0.4.4.x series is
875   June 15. This is therefore the last release in its series. Everybody
876   still running 0.4.4.x should plan to upgrade to 0.4.5.x or later.
878   o Major bugfixes (security, backport from 0.4.6.5):
879     - Don't allow relays to spoof RELAY_END or RELAY_RESOLVED cell on
880       half-closed streams. Previously, clients failed to validate which
881       hop sent these cells: this would allow a relay on a circuit to end
882       a stream that wasn't actually built with it. Fixes bug 40389;
883       bugfix on 0.3.5.1-alpha. This issue is also tracked as TROVE-2021-
884       003 and CVE-2021-34548.
886   o Major bugfixes (security, defense-in-depth, backport from 0.4.6.5):
887     - Detect more failure conditions from the OpenSSL RNG code.
888       Previously, we would detect errors from a missing RNG
889       implementation, but not failures from the RNG code itself.
890       Fortunately, it appears those failures do not happen in practice
891       when Tor is using OpenSSL's default RNG implementation. Fixes bug
892       40390; bugfix on 0.2.8.1-alpha. This issue is also tracked as
893       TROVE-2021-004. Reported by Jann Horn at Google's Project Zero.
895   o Major bugfixes (security, denial of service, backport from 0.4.6.5):
896     - Resist a hashtable-based CPU denial-of-service attack against
897       relays. Previously we used a naive unkeyed hash function to look
898       up circuits in a circuitmux object. An attacker could exploit this
899       to construct circuits with chosen circuit IDs, to create
900       collisions and make the hash table inefficient. Now we use a
901       SipHash construction here instead. Fixes bug 40391; bugfix on
902       0.2.4.4-alpha. This issue is also tracked as TROVE-2021-005 and
903       CVE-2021-34549. Reported by Jann Horn from Google's Project Zero.
904     - Fix an out-of-bounds memory access in v3 onion service descriptor
905       parsing. An attacker could exploit this bug by crafting an onion
906       service descriptor that would crash any client that tried to visit
907       it. Fixes bug 40392; bugfix on 0.3.0.1-alpha. This issue is also
908       tracked as TROVE-2021-006 and CVE-2021-34550. Reported by Sergei
909       Glazunov from Google's Project Zero.
911   o Minor features (compatibility, backport from 0.4.6.4-rc):
912     - Remove an assertion function related to TLS renegotiation. It was
913       used nowhere outside the unit tests, and it was breaking
914       compilation with recent alpha releases of OpenSSL 3.0.0. Closes
915       ticket 40399.
917   o Minor features (fallback directory list, backport from 0.4.6.2-alpha):
918     - Regenerate the list of fallback directories to contain a new set
919       of 200 relays. Closes ticket 40265.
921   o Minor features (geoip data):
922     - Update the geoip files to match the IPFire Location Database, as
923       retrieved on 2021/06/10.
925   o Minor bugfixes (channel, DoS, backport from 0.4.6.2-alpha):
926     - Fix a non-fatal BUG() message due to a too-early free of a string,
927       when listing a client connection from the DoS defenses subsystem.
928       Fixes bug 40345; bugfix on 0.4.3.4-rc.
930   o Minor bugfixes (compiler warnings, backport from 0.4.6.3-rc):
931     - Fix an indentation problem that led to a warning from GCC 11.1.1.
932       Fixes bug 40380; bugfix on 0.3.0.1-alpha.
935 Changes in version 0.3.5.15 - 2021-06-14
936   Tor 0.3.5.15 fixes several security issues, including a
937   denial-of-service attack against onion service clients, and another
938   denial-of-service attack against relays. Everybody should upgrade to
939   one of 0.3.5.15, 0.4.4.9, 0.4.5.9, or 0.4.6.5.
941   o Major bugfixes (security, backport from 0.4.6.5):
942     - Don't allow relays to spoof RELAY_END or RELAY_RESOLVED cell on
943       half-closed streams. Previously, clients failed to validate which
944       hop sent these cells: this would allow a relay on a circuit to end
945       a stream that wasn't actually built with it. Fixes bug 40389;
946       bugfix on 0.3.5.1-alpha. This issue is also tracked as TROVE-2021-
947       003 and CVE-2021-34548.
949   o Major bugfixes (security, defense-in-depth, backport from 0.4.6.5):
950     - Detect more failure conditions from the OpenSSL RNG code.
951       Previously, we would detect errors from a missing RNG
952       implementation, but not failures from the RNG code itself.
953       Fortunately, it appears those failures do not happen in practice
954       when Tor is using OpenSSL's default RNG implementation. Fixes bug
955       40390; bugfix on 0.2.8.1-alpha. This issue is also tracked as
956       TROVE-2021-004. Reported by Jann Horn at Google's Project Zero.
958   o Major bugfixes (security, denial of service, backport from 0.4.6.5):
959     - Resist a hashtable-based CPU denial-of-service attack against
960       relays. Previously we used a naive unkeyed hash function to look
961       up circuits in a circuitmux object. An attacker could exploit this
962       to construct circuits with chosen circuit IDs, to create
963       collisions and make the hash table inefficient. Now we use a
964       SipHash construction here instead. Fixes bug 40391; bugfix on
965       0.2.4.4-alpha. This issue is also tracked as TROVE-2021-005 and
966       CVE-2021-34549. Reported by Jann Horn from Google's Project Zero.
967     - Fix an out-of-bounds memory access in v3 onion service descriptor
968       parsing. An attacker could exploit this bug by crafting an onion
969       service descriptor that would crash any client that tried to visit
970       it. Fixes bug 40392; bugfix on 0.3.0.1-alpha. This issue is also
971       tracked as TROVE-2021-006 and CVE-2021-34550. Reported by Sergei
972       Glazunov from Google's Project Zero.
974   o Minor bugfixes (compiler warnings, backport from 0.4.6.3-rc):
975     - Fix an indentation problem that led to a warning from GCC 11.1.1.
976       Fixes bug 40380; bugfix on 0.3.0.1-alpha.
978   o Minor features (compatibility, backport from 0.4.6.4-rc):
979     - Remove an assertion function related to TLS renegotiation. It was
980       used nowhere outside the unit tests, and it was breaking
981       compilation with recent alpha releases of OpenSSL 3.0.0. Closes
982       ticket 40399.
984   o Minor features (fallback directory list, backport from 0.4.6.2-alpha):
985     - Regenerate the list of fallback directories to contain a new set
986       of 200 relays. Closes ticket 40265.
988   o Minor features (geoip data):
989     - Update the geoip files to match the IPFire Location Database, as
990       retrieved on 2021/06/10.
993 Changes in version 0.4.6.5 - 2021-06-14
994   Tor 0.4.6.5 is the first stable release in its series. The 0.4.6.x
995   series includes numerous features and bugfixes, including a significant
996   improvement to our circuit timeout algorithm that should improve
997   observed client performance, and a way for relays to report when they are
998   overloaded.
1000   This release also includes security fixes for several security issues,
1001   including a denial-of-service attack against onion service clients,
1002   and another denial-of-service attack against relays. Everybody should
1003   upgrade to one of 0.3.5.15, 0.4.4.9, 0.4.5.9, or 0.4.6.5.
1005   Below are the changes since 0.4.6.4-rc. For a complete list of changes
1006   since 0.4.5.8, see the ReleaseNotes file.
1008   o Major bugfixes (security):
1009     - Don't allow relays to spoof RELAY_END or RELAY_RESOLVED cell on
1010       half-closed streams. Previously, clients failed to validate which
1011       hop sent these cells: this would allow a relay on a circuit to end
1012       a stream that wasn't actually built with it. Fixes bug 40389;
1013       bugfix on 0.3.5.1-alpha. This issue is also tracked as TROVE-2021-
1014       003 and CVE-2021-34548.
1016   o Major bugfixes (security, defense-in-depth):
1017     - Detect more failure conditions from the OpenSSL RNG code.
1018       Previously, we would detect errors from a missing RNG
1019       implementation, but not failures from the RNG code itself.
1020       Fortunately, it appears those failures do not happen in practice
1021       when Tor is using OpenSSL's default RNG implementation. Fixes bug
1022       40390; bugfix on 0.2.8.1-alpha. This issue is also tracked as
1023       TROVE-2021-004. Reported by Jann Horn at Google's Project Zero.
1025   o Major bugfixes (security, denial of service):
1026     - Resist a hashtable-based CPU denial-of-service attack against
1027       relays. Previously we used a naive unkeyed hash function to look
1028       up circuits in a circuitmux object. An attacker could exploit this
1029       to construct circuits with chosen circuit IDs, to create
1030       collisions and make the hash table inefficient. Now we use a
1031       SipHash construction here instead. Fixes bug 40391; bugfix on
1032       0.2.4.4-alpha. This issue is also tracked as TROVE-2021-005 and
1033       CVE-2021-34549. Reported by Jann Horn from Google's Project Zero.
1034     - Fix an out-of-bounds memory access in v3 onion service descriptor
1035       parsing. An attacker could exploit this bug by crafting an onion
1036       service descriptor that would crash any client that tried to visit
1037       it. Fixes bug 40392; bugfix on 0.3.0.1-alpha. This issue is also
1038       tracked as TROVE-2021-006 and CVE-2021-34550. Reported by Sergei
1039       Glazunov from Google's Project Zero.
1041   o Minor features (geoip data):
1042     - Update the geoip files to match the IPFire Location Database, as
1043       retrieved on 2021/06/10.
1045   o Minor features (logging, diagnostic):
1046     - Log decompression failures at a higher severity level, since they
1047       can help provide missing context for other warning messages. We
1048       rate-limit these messages, to avoid flooding the logs if they
1049       begin to occur frequently. Closes ticket 40175.
1052 Changes in version 0.4.6.4-rc - 2021-05-28
1053   Tor 0.4.6.4-rc fixes a few bugs from previous releases. This, we hope,
1054   the final release candidate in its series: unless major new issues are
1055   found, the next release will be stable.
1057   o Minor features (compatibility):
1058     - Remove an assertion function related to TLS renegotiation. It was
1059       used nowhere outside the unit tests, and it was breaking
1060       compilation with recent alpha releases of OpenSSL 3.0.0. Closes
1061       ticket 40399.
1063   o Minor bugfixes (consensus handling):
1064     - Avoid a set of bugs that could be caused by inconsistently
1065       preferring an out-of-date consensus stored in a stale directory
1066       cache over a more recent one stored on disk as the latest
1067       consensus. Fixes bug 40375; bugfix on 0.3.1.1-alpha.
1069   o Minor bugfixes (control, sandbox):
1070     - Allow the control command SAVECONF to succeed when the seccomp
1071       sandbox is enabled, and make SAVECONF keep only one backup file to
1072       simplify implementation. Previously SAVECONF allowed a large
1073       number of backup files, which made it incompatible with the
1074       sandbox. Fixes bug 40317; bugfix on 0.2.5.4-alpha. Patch by
1075       Daniel Pinto.
1077   o Minor bugfixes (metrics port):
1078     - Fix a bug that made tor try to re-bind() on an already open
1079       MetricsPort every 60 seconds. Fixes bug 40370; bugfix
1080       on 0.4.5.1-alpha.
1082   o Removed features:
1083     - Remove unneeded code for parsing private keys in directory
1084       documents. This code was only used for client authentication in v2
1085       onion services, which are now unsupported. Closes ticket 40374.
1088 Changes in version 0.4.5.8 - 2021-05-10
1089   Tor 0.4.5.8 fixes several bugs in earlier version, backporting fixes
1090   from the 0.4.6.x series.
1092   o Minor features (compatibility, Linux seccomp sandbox, backport from 0.4.6.3-rc):
1093     - Add a workaround to enable the Linux sandbox to work correctly
1094       with Glibc 2.33. This version of Glibc has started using the
1095       fstatat() system call, which previously our sandbox did not allow.
1096       Closes ticket 40382; see the ticket for a discussion of trade-offs.
1098   o Minor features (compilation, backport from 0.4.6.3-rc):
1099     - Make the autoconf script build correctly with autoconf versions
1100       2.70 and later. Closes part of ticket 40335.
1102   o Minor features (fallback directory list, backport from 0.4.6.2-alpha):
1103     - Regenerate the list of fallback directories to contain a new set
1104       of 200 relays. Closes ticket 40265.
1106   o Minor features (geoip data):
1107     - Update the geoip files to match the IPFire Location Database, as
1108       retrieved on 2021/05/07.
1110   o Minor features (onion services):
1111     - Add warning message when connecting to now deprecated v2 onion
1112       services. As announced, Tor 0.4.5.x is the last series that will
1113       support v2 onions. Closes ticket 40373.
1115   o Minor bugfixes (bridge, pluggable transport, backport from 0.4.6.2-alpha):
1116     - Fix a regression that made it impossible start Tor using a bridge
1117       line with a transport name and no fingerprint. Fixes bug 40360;
1118       bugfix on 0.4.5.4-rc.
1120   o Minor bugfixes (build, cross-compilation, backport from 0.4.6.3-rc):
1121     - Allow a custom "ar" for cross-compilation. Our previous build
1122       script had used the $AR environment variable in most places, but
1123       it missed one. Fixes bug 40369; bugfix on 0.4.5.1-alpha.
1125   o Minor bugfixes (channel, DoS, backport from 0.4.6.2-alpha):
1126     - Fix a non-fatal BUG() message due to a too-early free of a string,
1127       when listing a client connection from the DoS defenses subsystem.
1128       Fixes bug 40345; bugfix on 0.4.3.4-rc.
1130   o Minor bugfixes (compiler warnings, backport from 0.4.6.3-rc):
1131     - Fix an indentation problem that led to a warning from GCC 11.1.1.
1132       Fixes bug 40380; bugfix on 0.3.0.1-alpha.
1134   o Minor bugfixes (controller, backport from 0.4.6.1-alpha):
1135     - Fix a "BUG" warning that would appear when a controller chooses
1136       the first hop for a circuit, and that circuit completes. Fixes bug
1137       40285; bugfix on 0.3.2.1-alpha.
1139   o Minor bugfixes (onion service, client, memory leak, backport from 0.4.6.3-rc):
1140     - Fix a bug where an expired cached descriptor could get overwritten
1141       with a new one without freeing it, leading to a memory leak. Fixes
1142       bug 40356; bugfix on 0.3.5.1-alpha.
1144   o Minor bugfixes (testing, BSD, backport from 0.4.6.2-alpha):
1145     - Fix pattern-matching errors when patterns expand to invalid paths
1146       on BSD systems. Fixes bug 40318; bugfix on 0.4.5.1-alpha. Patch by
1147       Daniel Pinto.
1150 Changes in version 0.4.6.3-rc - 2021-05-10
1151   Tor 0.4.6.3-rc is the first release candidate in its series. It fixes
1152   a few small bugs from previous versions, and adds a better error
1153   message when trying to use (no longer supported) v2 onion services.
1155   Though we anticipate that we'll be doing a bit more clean-up between
1156   now and the stable release, we expect that our remaining changes will
1157   be fairly simple. There will likely be at least one more release
1158   candidate before 0.4.6.x is stable.
1160   o Major bugfixes (onion service, control port):
1161     - Make the ADD_ONION command properly configure client authorization.
1162       Before this fix, the created onion failed to add the client(s).
1163       Fixes bug 40378; bugfix on 0.4.6.1-alpha.
1165   o Minor features (compatibility, Linux seccomp sandbox):
1166     - Add a workaround to enable the Linux sandbox to work correctly
1167       with Glibc 2.33. This version of Glibc has started using the
1168       fstatat() system call, which previously our sandbox did not allow.
1169       Closes ticket 40382; see the ticket for a discussion of trade-offs.
1171   o Minor features (compilation):
1172     - Make the autoconf script build correctly with autoconf versions
1173       2.70 and later. Closes part of ticket 40335.
1175   o Minor features (geoip data):
1176     - Update the geoip files to match the IPFire Location Database, as
1177       retrieved on 2021/05/07.
1179   o Minor features (onion services):
1180     - Add a warning message when trying to connect to (no longer
1181       supported) v2 onion services. Closes ticket 40373.
1183   o Minor bugfixes (build, cross-compilation):
1184     - Allow a custom "ar" for cross-compilation. Our previous build
1185       script had used the $AR environment variable in most places, but
1186       it missed one. Fixes bug 40369; bugfix on 0.4.5.1-alpha.
1188   o Minor bugfixes (compiler warnings):
1189     - Fix an indentation problem that led to a warning from GCC 11.1.1.
1190       Fixes bug 40380; bugfix on 0.3.0.1-alpha.
1192   o Minor bugfixes (logging, relay):
1193     - Emit a warning if an Address is found to be internal and tor can't
1194       use it. Fixes bug 40290; bugfix on 0.4.5.1-alpha.
1196   o Minor bugfixes (onion service, client, memory leak):
1197     - Fix a bug where an expired cached descriptor could get overwritten
1198       with a new one without freeing it, leading to a memory leak. Fixes
1199       bug 40356; bugfix on 0.3.5.1-alpha.
1202 Changes in version 0.4.6.2-alpha - 2021-04-15
1203   Tor 0.4.6.2-alpha is the second alpha in its series. It fixes several
1204   small bugs in previous releases, and solves other issues that had
1205   enabled denial-of-service attacks and affected integration with
1206   other tools.
1208   o Minor features (client):
1209     - Clients now check whether their streams are attempting to re-enter
1210       the Tor network (i.e. to send Tor traffic over Tor), and close
1211       them preemptively if they think exit relays will refuse them for
1212       this reason. See ticket 2667 for details. Closes ticket 40271.
1214   o Minor features (command line):
1215     - Add long format name "--torrc-file" equivalent to the existing
1216       command-line option "-f". Closes ticket 40324. Patch by
1217       Daniel Pinto.
1219   o Minor features (dormant mode):
1220     - Add a new 'DormantTimeoutEnabled' option to allow coarse-grained
1221       control over whether the client ever becomes dormant from
1222       inactivity. Most people won't need this. Closes ticket 40228.
1224   o Minor features (fallback directory list):
1225     - Regenerate the list of fallback directories to contain a new set
1226       of 200 relays. Closes ticket 40265.
1228   o Minor features (geoip data):
1229     - Update the geoip files to match the IPFire Location Database, as
1230       retrieved on 2021/04/13.
1232   o Minor features (logging):
1233     - Edit heartbeat log messages so that more of them begin with the
1234       string "Heartbeat: ". Closes ticket 40322; patch
1235       from 'cypherpunks'.
1237   o Minor bugfixes (bridge, pluggable transport):
1238     - Fix a regression that made it impossible start Tor using a bridge
1239       line with a transport name and no fingerprint. Fixes bug 40360;
1240       bugfix on 0.4.5.4-rc.
1242   o Minor bugfixes (channel, DoS):
1243     - Fix a non-fatal BUG() message due to a too-early free of a string,
1244       when listing a client connection from the DoS defenses subsystem.
1245       Fixes bug 40345; bugfix on 0.4.3.4-rc.
1247   o Minor bugfixes (compilation):
1248     - Fix a compilation warning about unused functions when building
1249       with a libc that lacks the GLOB_ALTDIRFUNC constant. Fixes bug
1250       40354; bugfix on 0.4.5.1-alpha. Patch by Daniel Pinto.
1252   o Minor bugfixes (configuration):
1253     - Fix pattern-matching for directories on all platforms when using
1254       %include options in configuration files. This patch also fixes
1255       compilation on musl libc based systems. Fixes bug 40141; bugfix
1256       on 0.4.5.1-alpha.
1258   o Minor bugfixes (relay):
1259     - Move the "overload-general" line from extrainfo to the server
1260       descriptor. Fixes bug 40364; bugfix on 0.4.6.1-alpha.
1262   o Minor bugfixes (testing, BSD):
1263     - Fix pattern-matching errors when patterns expand to invalid paths
1264       on BSD systems. Fixes bug 40318; bugfix on 0.4.5.1-alpha. Patch by
1265       Daniel Pinto.
1267   o Documentation (manual):
1268     - Move the ServerTransport* options to the "SERVER OPTIONS" section.
1269       Closes issue 40331.
1270     - Indicate that the HiddenServiceStatistics option also applies to
1271       bridges. Closes ticket 40346.
1272     - Move the description of BridgeRecordUsageByCountry to the section
1273       "STATISTICS OPTIONS". Closes ticket 40323.
1276 Changes in version 0.4.6.1-alpha - 2021-03-18
1277   Tor 0.4.6.1-alpha is the first alpha release in the 0.4.6.x series. It
1278   improves client circuit performance, adds missing features, and
1279   improves some of our DoS handling and statistics reporting. It also
1280   includes numerous smaller bugfixes.
1282   Below are the changes since 0.4.5.7. (Note that this release DOES
1283   include the fixes for the security bugs already fixed in 0.4.5.7.)
1285   o Major features (control port, onion services):
1286     - Add controller support for creating version 3 onion services with
1287       client authorization. Previously, only v2 onion services could be
1288       created with client authorization. Closes ticket 40084. Patch by
1289       Neel Chauhan.
1291   o Major features (directory authority):
1292     - When voting on a relay with a Sybil-like appearance, add the Sybil
1293       flag when clearing out the other flags. This lets a relay operator
1294       know why their relay hasn't been included in the consensus. Closes
1295       ticket 40255. Patch by Neel Chauhan.
1297   o Major features (metrics):
1298     - Relays now report how overloaded they are in their extrainfo
1299       documents. This information is controlled with the
1300       OverloadStatistics torrc option, and it will be used to improve
1301       decisions about the network's load balancing. Implements proposal
1302       328; closes ticket 40222.
1304   o Major features (relay, denial of service):
1305     - Add a new DoS subsystem feature to control the rate of client
1306       connections for relays. Closes ticket 40253.
1308   o Major features (statistics):
1309     - Relays now publish statistics about the number of v3 onion
1310       services and volume of v3 onion service traffic, in the same
1311       manner they already do for v2 onions. Closes ticket 23126.
1313   o Major bugfixes (circuit build timeout):
1314     - Improve the accuracy of our circuit build timeout calculation for
1315       60%, 70%, and 80% build rates for various guard choices. We now
1316       use a maximum likelihood estimator for Pareto parameters of the
1317       circuit build time distribution, instead of a "right-censored
1318       estimator". This causes clients to ignore circuits that never
1319       finish building in their timeout calculations. Previously, clients
1320       were counting such unfinished circuits as having the highest
1321       possible build time value, when in reality these circuits most
1322       likely just contain relays that are offline. We also now wait a
1323       bit longer to let circuits complete for measurement purposes,
1324       lower the minimum possible effective timeout from 1.5 seconds to
1325       10ms, and increase the resolution of the circuit build time
1326       histogram from 50ms bin widths to 10ms bin widths. Additionally,
1327       we alter our estimate Xm by taking the maximum of the top 10 most
1328       common build time values of the 10ms histogram, and compute Xm as
1329       the average of these. Fixes bug 40168; bugfix on 0.2.2.14-alpha.
1330     - Remove max_time calculation and associated warning from circuit
1331       build timeout 'alpha' parameter estimation, as this is no longer
1332       needed by our new estimator from 40168. Fixes bug 34088; bugfix
1333       on 0.2.2.9-alpha.
1335   o Major bugfixes (signing key):
1336     - In the tor-gencert utility, give an informative error message if
1337       the passphrase given in `--create-identity-key` is too short.
1338       Fixes bug 40189; bugfix on 0.2.0.1-alpha. Patch by Neel Chauhan.
1340   o Minor features (bridge):
1341     - We now announce the URL to Tor's new bridge status at
1342       https://bridges.torproject.org/ when Tor is configured to run as a
1343       bridge relay. Closes ticket 30477.
1345   o Minor features (build system):
1346     - New "make lsp" command to auto generate the compile_commands.json
1347       file used by the ccls server. The "bear" program is needed for
1348       this. Closes ticket 40227.
1350   o Minor features (command-line interface):
1351     - Add build informations to `tor --version` in order to ease
1352       reproducible builds. Closes ticket 32102.
1353     - When parsing command-line flags that take an optional argument,
1354       treat the argument as absent if it would start with a '-'
1355       character. Arguments in that form are not intelligible for any of
1356       our optional-argument flags. Closes ticket 40223.
1357     - Allow a relay operator to list the ed25519 keys on the command
1358       line by adding the `rsa` and `ed25519` arguments to the
1359       --list-fingerprint flag to show the respective RSA and ed25519
1360       relay fingerprint. Closes ticket 33632. Patch by Neel Chauhan.
1362   o Minor features (control port, stream handling):
1363     - Add the stream ID to the event line in the ADDRMAP control event.
1364       Closes ticket 40249. Patch by Neel Chauhan.
1366   o Minor features (dormant mode):
1367     - Add a new 'DormantTimeoutEnabled' option for coarse-grained
1368       control over whether the client can become dormant from
1369       inactivity. Most people won't need this. Closes ticket 40228.
1371   o Minor features (logging):
1372     - Change the DoS subsystem heartbeat line format to be more clear on
1373       what has been detected/rejected, and which option is disabled (if
1374       any). Closes ticket 40308.
1375     - In src/core/mainloop/mainloop.c and src/core/mainloop/connection.c,
1376       put brackets around IPv6 addresses in log messages. Closes ticket
1377       40232. Patch by Neel Chauhan.
1379   o Minor features (performance, windows):
1380     - Use SRWLocks to implement locking on Windows. Replaces the
1381       "critical section" locking implementation with the faster
1382       SRWLocks, available since Windows Vista. Closes ticket 17927.
1383       Patch by Daniel Pinto.
1385   o Minor features (protocol, proxy support, defense in depth):
1386     - Close HAProxy connections if they somehow manage to send us data
1387       before we start reading. Closes another case of ticket 40017.
1389   o Minor features (tests, portability):
1390     - Port the hs_build_address.py test script to work with recent
1391       versions of python. Closes ticket 40213. Patch from
1392       Samanta Navarro.
1394   o Minor features (vote document):
1395     - Add a "stats" line to directory authority votes, to report various
1396       statistics that authorities compute about the relays. This will
1397       help us diagnose the network better. Closes ticket 40314.
1399   o Minor bugfixes (build):
1400     - The configure script now shows whether or not lzma and zstd have
1401       been used, not just if the enable flag was passed in. Fixes bug
1402       40236; bugfix on 0.4.3.1-alpha.
1404   o Minor bugfixes (compatibility):
1405     - Fix a failure in the test cases when running on the "hppa"
1406       architecture, along with a related test that might fail on other
1407       architectures in the future. Fixes bug 40274; bugfix
1408       on 0.2.5.1-alpha.
1410   o Minor bugfixes (controller):
1411     - Fix a "BUG" warning that would appear when a controller chooses
1412       the first hop for a circuit, and that circuit completes. Fixes bug
1413       40285; bugfix on 0.3.2.1-alpha.
1415   o Minor bugfixes (directory authorities, voting):
1416     - Add a new consensus method (31) to support any future changes that
1417       authorities decide to make to the value of bwweightscale or
1418       maxunmeasuredbw. Previously, there was a bug that prevented the
1419       authorities from parsing these consensus parameters correctly under
1420       most circumstances. Fixes bug 19011; bugfix on 0.2.2.10-alpha.
1422   o Minor bugfixes (ipv6):
1423     - Allow non-SOCKSPorts to disable IPv4, IPv6, and PreferIPv4. Some
1424       rare configurations might break, but in this case you can disable
1425       NoIPv4Traffic and NoIPv6Traffic as needed. Fixes bug 33607; bugfix
1426       on 0.4.1.1-alpha. Patch by Neel Chauhan.
1428   o Minor bugfixes (key generation):
1429     - Do not require a valid torrc when using the `--keygen` argument to
1430       generate a signing key. This allows us to generate keys on systems
1431       or users which may not run Tor. Fixes bug 40235; bugfix on
1432       0.2.7.2-alpha. Patch by Neel Chauhan.
1434   o Minor bugfixes (onion services, logging):
1435     - Downgrade the severity of a few rendezvous circuit-related
1436       warnings from warning to info. Fixes bug 40207; bugfix on
1437       0.3.2.1-alpha. Patch by Neel Chauhan.
1439   o Minor bugfixes (relay):
1440     - Reduce the compression level for data streaming from HIGH to LOW.
1441       This should reduce the CPU and memory burden for directory caches.
1442       Fixes bug 40301; bugfix on 0.3.5.1-alpha.
1444   o Code simplification and refactoring:
1445     - Remove the orconn_ext_or_id_map structure and related functions.
1446       (Nothing outside of unit tests used them.) Closes ticket 33383.
1447       Patch by Neel Chauhan.
1449   o Removed features:
1450     - As of this release, Tor no longer supports the old v2 onion
1451       services. They were deprecated last July for security, and support
1452       will be removed entirely later this year. We strongly encourage
1453       everybody to migrate to v3 onion services. For more information,
1454       see https://blog.torproject.org/v2-deprecation-timeline . Closes
1455       ticket 40266. (NOTE: We accidentally released an earlier version
1456       of the 0.4.6.1-alpha changelog without this entry. Sorry for
1457       the confusion!)
1459   o Code simplification and refactoring (metrics, DoS):
1460     - Move the DoS subsystem into the subsys manager, including its
1461       configuration options. Closes ticket 40261.
1463   o Removed features (relay):
1464     - Because DirPorts are only used on authorities, relays no longer
1465       advertise them. Similarly, self-testing for DirPorts has been
1466       disabled, since an unreachable DirPort is no reason for a relay
1467       not to advertise itself. (Configuring a DirPort will still work,
1468       for now.) Closes ticket 40282.
1471 Changes in version 0.3.5.14 - 2021-03-16
1472   Tor 0.3.5.14 backports fixes for two important denial-of-service bugs
1473   in earlier versions of Tor.
1475   One of these vulnerabilities (TROVE-2021-001) would allow an attacker
1476   who can send directory data to a Tor instance to force that Tor
1477   instance to consume huge amounts of CPU. This is easiest to exploit
1478   against authorities, since anybody can upload to them, but directory
1479   caches could also exploit this vulnerability against relays or clients
1480   when they download. The other vulnerability (TROVE-2021-002) only
1481   affects directory authorities, and would allow an attacker to remotely
1482   crash the authority with an assertion failure. Patches have already
1483   been provided to the authority operators, to help ensure
1484   network stability.
1486   We recommend that everybody upgrade to one of the releases that fixes
1487   these issues (0.3.5.14, 0.4.4.8, or 0.4.5.7) as they become available
1488   to you.
1490   This release also updates our GeoIP data source, and fixes a
1491   compatibility issue.
1493   o Major bugfixes (security, denial of service, backport from 0.4.5.7):
1494     - Disable the dump_desc() function that we used to dump unparseable
1495       information to disk. It was called incorrectly in several places,
1496       in a way that could lead to excessive CPU usage. Fixes bug 40286;
1497       bugfix on 0.2.2.1-alpha. This bug is also tracked as TROVE-2021-
1498       001 and CVE-2021-28089.
1499     - Fix a bug in appending detached signatures to a pending consensus
1500       document that could be used to crash a directory authority. Fixes
1501       bug 40316; bugfix on 0.2.2.6-alpha. Tracked as TROVE-2021-002
1502       and CVE-2021-28090.
1504   o Minor features (geoip data, backport from 0.4.5.7):
1505     - We have switched geoip data sources. Previously we shipped IP-to-
1506       country mappings from Maxmind's GeoLite2, but in 2019 they changed
1507       their licensing terms, so we were unable to update them after that
1508       point. We now ship geoip files based on the IPFire Location
1509       Database instead. (See https://location.ipfire.org/ for more
1510       information). This release updates our geoip files to match the
1511       IPFire Location Database as retrieved on 2021/03/12. Closes
1512       ticket 40224.
1514   o Removed features (mallinfo deprecated, backport from 0.4.5.7):
1515     - Remove mallinfo() usage entirely. Libc 2.33+ now deprecates it.
1516       Closes ticket 40309.
1519 Changes in version 0.4.4.8 - 2021-03-16
1520   Tor 0.4.4.8 backports fixes for two important denial-of-service bugs
1521   in earlier versions of Tor.
1523   One of these vulnerabilities (TROVE-2021-001) would allow an attacker
1524   who can send directory data to a Tor instance to force that Tor
1525   instance to consume huge amounts of CPU. This is easiest to exploit
1526   against authorities, since anybody can upload to them, but directory
1527   caches could also exploit this vulnerability against relays or clients
1528   when they download. The other vulnerability (TROVE-2021-002) only
1529   affects directory authorities, and would allow an attacker to remotely
1530   crash the authority with an assertion failure. Patches have already
1531   been provided to the authority operators, to help ensure
1532   network stability.
1534   We recommend that everybody upgrade to one of the releases that fixes
1535   these issues (0.3.5.14, 0.4.4.8, or 0.4.5.7) as they become available
1536   to you.
1538   This release also updates our GeoIP data source, and fixes a
1539   compatibility issue.
1541   o Major bugfixes (security, denial of service, backport from 0.4.5.7):
1542     - Disable the dump_desc() function that we used to dump unparseable
1543       information to disk. It was called incorrectly in several places,
1544       in a way that could lead to excessive CPU usage. Fixes bug 40286;
1545       bugfix on 0.2.2.1-alpha. This bug is also tracked as TROVE-2021-
1546       001 and CVE-2021-28089.
1547     - Fix a bug in appending detached signatures to a pending consensus
1548       document that could be used to crash a directory authority. Fixes
1549       bug 40316; bugfix on 0.2.2.6-alpha. Tracked as TROVE-2021-002
1550       and CVE-2021-28090.
1552   o Minor features (geoip data, backport from 0.4.5.7):
1553     - We have switched geoip data sources. Previously we shipped IP-to-
1554       country mappings from Maxmind's GeoLite2, but in 2019 they changed
1555       their licensing terms, so we were unable to update them after that
1556       point. We now ship geoip files based on the IPFire Location
1557       Database instead. (See https://location.ipfire.org/ for more
1558       information). This release updates our geoip files to match the
1559       IPFire Location Database as retrieved on 2021/03/12. Closes
1560       ticket 40224.
1562   o Removed features (mallinfo deprecated, backport from 0.4.5.7):
1563     - Remove mallinfo() usage entirely. Libc 2.33+ now deprecates it.
1564       Closes ticket 40309.
1567 Changes in version 0.4.5.7 - 2021-03-16
1568   Tor 0.4.5.7 fixes two important denial-of-service bugs in earlier
1569   versions of Tor.
1571   One of these vulnerabilities (TROVE-2021-001) would allow an attacker
1572   who can send directory data to a Tor instance to force that Tor
1573   instance to consume huge amounts of CPU. This is easiest to exploit
1574   against authorities, since anybody can upload to them, but directory
1575   caches could also exploit this vulnerability against relays or clients
1576   when they download. The other vulnerability (TROVE-2021-002) only
1577   affects directory authorities, and would allow an attacker to remotely
1578   crash the authority with an assertion failure. Patches have already
1579   been provided to the authority operators, to help ensure
1580   network stability.
1582   We recommend that everybody upgrade to one of the releases that fixes
1583   these issues (0.3.5.14, 0.4.4.8, or 0.4.5.7) as they become available
1584   to you.
1586   This release also updates our GeoIP data source, and fixes a few
1587   smaller bugs in earlier releases.
1589   o Major bugfixes (security, denial of service):
1590     - Disable the dump_desc() function that we used to dump unparseable
1591       information to disk. It was called incorrectly in several places,
1592       in a way that could lead to excessive CPU usage. Fixes bug 40286;
1593       bugfix on 0.2.2.1-alpha. This bug is also tracked as TROVE-2021-
1594       001 and CVE-2021-28089.
1595     - Fix a bug in appending detached signatures to a pending consensus
1596       document that could be used to crash a directory authority. Fixes
1597       bug 40316; bugfix on 0.2.2.6-alpha. Tracked as TROVE-2021-002
1598       and CVE-2021-28090.
1600   o Minor features (geoip data):
1601     - We have switched geoip data sources. Previously we shipped IP-to-
1602       country mappings from Maxmind's GeoLite2, but in 2019 they changed
1603       their licensing terms, so we were unable to update them after that
1604       point. We now ship geoip files based on the IPFire Location
1605       Database instead. (See https://location.ipfire.org/ for more
1606       information). This release updates our geoip files to match the
1607       IPFire Location Database as retrieved on 2021/03/12. Closes
1608       ticket 40224.
1610   o Minor bugfixes (directory authority):
1611     - Now that exit relays don't allow exit connections to directory
1612       authority DirPorts (to prevent network reentry), disable
1613       authorities' reachability self test on the DirPort. Fixes bug
1614       40287; bugfix on 0.4.5.5-rc.
1616   o Minor bugfixes (documentation):
1617     - Fix a formatting error in the documentation for
1618       VirtualAddrNetworkIPv6. Fixes bug 40256; bugfix on 0.2.9.4-alpha.
1620   o Minor bugfixes (Linux, relay):
1621     - Fix a bug in determining total available system memory that would
1622       have been triggered if the format of Linux's /proc/meminfo file
1623       had ever changed to include "MemTotal:" in the middle of a line.
1624       Fixes bug 40315; bugfix on 0.2.5.4-alpha.
1626   o Minor bugfixes (metrics port):
1627     - Fix a BUG() warning on the MetricsPort for an internal missing
1628       handler. Fixes bug 40295; bugfix on 0.4.5.1-alpha.
1630   o Minor bugfixes (onion service):
1631     - Remove a harmless BUG() warning when reloading tor configured with
1632       onion services. Fixes bug 40334; bugfix on 0.4.5.1-alpha.
1634   o Minor bugfixes (portability):
1635     - Fix a non-portable usage of "==" with "test" in the configure
1636       script. Fixes bug 40298; bugfix on 0.4.5.1-alpha.
1638   o Minor bugfixes (relay):
1639     - Remove a spammy log notice falsely claiming that the IPv4/v6
1640       address was missing. Fixes bug 40300; bugfix on 0.4.5.1-alpha.
1641     - Do not query the address cache early in the boot process when
1642       deciding if a relay needs to fetch early directory information
1643       from an authority. This bug resulted in a relay falsely believing
1644       it didn't have an address and thus triggering an authority fetch
1645       at each boot. Related to our fix for 40300.
1647   o Removed features (mallinfo deprecated):
1648     - Remove mallinfo() usage entirely. Libc 2.33+ now deprecates it.
1649       Closes ticket 40309.
1652 Changes in version 0.4.5.6 - 2021-02-15
1653   The Tor 0.4.5.x release series is dedicated to the memory of Karsten
1654   Loesing (1979-2020), Tor developer, cypherpunk, husband, and father.
1655   Karsten is best known for creating the Tor metrics portal and leading
1656   the metrics team, but he was involved in Tor from the early days. For
1657   example, while he was still a student he invented and implemented the
1658   v2 onion service directory design, and he also served as an ambassador
1659   to the many German researchers working in the anonymity field. We
1660   loved him and respected him for his patience, his consistency, and his
1661   welcoming approach to growing our community.
1663   This release series introduces significant improvements in relay IPv6
1664   address discovery, a new "MetricsPort" mechanism for relay operators
1665   to measure performance, LTTng support, build system improvements to
1666   help when using Tor as a static library, and significant bugfixes
1667   related to Windows relay performance. It also includes numerous
1668   smaller features and bugfixes.
1670   Below are the changes since 0.4.4.4-rc. For a complete list of changes
1671   since 0.4.4.7, see the ReleaseNotes file.
1673   o Major bugfixes (IPv6, relay):
1674     - Fix a bug that prevented a relay from publishing its descriptor if
1675       an auto-discovered IPv6 that was found unreachable. Fixes bug
1676       40279; bugfix on 0.4.5.1-alpha.
1678   o Minor features (protocol versions):
1679     - Stop claiming to support the "DirCache=1" subprotocol version.
1680       Technically, we stopped supporting this subprotocol back in
1681       0.4.5.1-alpha, but we needed to wait for the authorities to stop
1682       listing it as "required" before we could drop it from the list.
1683       Closes ticket 40221.
1685   o Minor bugfixes (logging):
1686     - Avoid a spurious log message about missing subprotocol versions,
1687       when the consensus that we're reading from is older than the
1688       current release. Previously we had made this message nonfatal, but
1689       in practice, it is never relevant when the consensus is older than
1690       the current release. Fixes bug 40281; bugfix on 0.4.0.1-alpha.
1692   o Minor bugfixes (metrics port):
1693     - Fix a bug warning when a metrics port socket was unexpectedly
1694       closed. Fixes bug 40257; bugfix on 0.4.5.1-alpha
1696   o Minor bugfixes (relay):
1697     - Allow relays to have a RFC1918 address if PublishServerDescriptor
1698       is set to 0 and AssumeReachable is set to 1. This is to support
1699       the use case of a bridge on a local network, exposed via a
1700       pluggable transport. Fixes bug 40208; bugfix on 0.4.5.1-alpha.
1702   o Minor bugfixes (relay, config):
1703     - Fix a problem in the removal of duplicate ORPorts from the
1704       internal port list when loading the config file. We were removing
1705       the wrong ports, breaking valid torrc uses cases for multiple
1706       ORPorts of the same address family. Fixes bug 40289; bugfix
1707       on 0.4.5.1-alpha.
1710 Changes in version 0.4.4.7 - 2021-02-03
1711   Tor 0.4.4.7 backports numerous bugfixes from later releases,
1712   including one that made v3 onion services more susceptible to
1713   denial-of-service attacks, and a feature that makes some kinds of
1714   DoS attacks harder to perform.
1716   o Major bugfixes (onion service v3, backport from 0.4.5.3-rc):
1717     - Stop requiring a live consensus for v3 clients and services, and
1718       allow a "reasonably live" consensus instead. This allows v3 onion
1719       services to work even if the authorities fail to generate a
1720       consensus for more than 2 hours in a row. Fixes bug 40237; bugfix
1721       on 0.3.5.1-alpha.
1723   o Major feature (exit, backport from 0.4.5.5-rc):
1724     - Re-entry into the network is now denied at the Exit level to all
1725       relays' ORPorts and authorities' ORPorts and DirPorts. This change
1726       should help mitgate a set of denial-of-service attacks. Closes
1727       ticket 2667.
1729   o Minor feature (build system, backport from 0.4.5.4-rc):
1730     - New "make lsp" command to generate the compile_commands.json file
1731       used by the ccls language server. The "bear" program is needed for
1732       this. Closes ticket 40227.
1734   o Minor features (compilation, backport from 0.4.5.2-rc):
1735     - Disable deprecation warnings when building with OpenSSL 3.0.0 or
1736       later. There are a number of APIs newly deprecated in OpenSSL
1737       3.0.0 that Tor still requires. (A later version of Tor will try to
1738       stop depending on these APIs.) Closes ticket 40165.
1740   o Minor features (crypto, backport from 0.4.5.3-rc):
1741     - Fix undefined behavior on our Keccak library. The bug only
1742       appeared on platforms with 32-byte CPU cache lines (e.g. armv5tel)
1743       and would result in wrong digests. Fixes bug 40210; bugfix on
1744       0.2.8.1-alpha. Thanks to Bernhard Übelacker, Arnd Bergmann and
1745       weasel for diagnosing this.
1747   o Minor bugfixes (compatibility, backport from 0.4.5.1-rc):
1748     - Strip '\r' characters when reading text files on Unix platforms.
1749       This should resolve an issue where a relay operator migrates a
1750       relay from Windows to Unix, but does not change the line ending of
1751       Tor's various state files to match the platform, and the CRLF line
1752       endings from Windows end up leaking into other files such as the
1753       extra-info document. Fixes bug 33781; bugfix on 0.0.9pre5.
1755   o Minor bugfixes (compilation, backport from 0.4.5.3-rc):
1756     - Fix a compilation warning about unreachable fallthrough
1757       annotations when building with "--enable-all-bugs-are-fatal" on
1758       some compilers. Fixes bug 40241; bugfix on 0.3.5.4-alpha.
1760   o Minor bugfixes (SOCKS5, backport from 0.4.5.3-rc):
1761     - Handle partial SOCKS5 messages correctly. Previously, our code
1762       would send an incorrect error message if it got a SOCKS5 request
1763       that wasn't complete. Fixes bug 40190; bugfix on 0.3.5.1-alpha.
1765   o Minor bugfixes (testing, backport from 0.4.5.2-alpha):
1766     - Fix the `config/parse_tcp_proxy_line` test so that it works
1767       correctly on systems where the DNS provider hijacks invalid
1768       queries. Fixes part of bug 40179; bugfix on 0.4.3.1-alpha.
1769     - Fix our Python reference-implementation for the v3 onion service
1770       handshake so that it works correctly with the version of hashlib
1771       provided by Python 3.9. Fixes part of bug 40179; bugfix
1772       on 0.3.1.6-rc.
1773     - Fix the `tortls/openssl/log_one_error` test to work with OpenSSL
1774       3.0.0. Fixes bug 40170; bugfix on 0.2.8.1-alpha.
1777 Changes in version 0.4.3.8 - 2021-02-03
1778   Tor 0.4.3.8 backports numerous bugfixes from later releases,
1779   including one that made v3 onion services more susceptible to
1780   denial-of-service attacks, and a feature that makes some kinds of
1781   DoS attacks harder to perform.
1783   Note that this is, in all likelihood, the last release of Tor 0.4.3.x,
1784   which will reach end-of-life on 15 Feb 2021.
1786   o Major bugfixes (onion service v3, backport from 0.4.5.3-rc):
1787     - Stop requiring a live consensus for v3 clients and services, and
1788       allow a "reasonably live" consensus instead. This allows v3 onion
1789       services to work even if the authorities fail to generate a
1790       consensus for more than 2 hours in a row. Fixes bug 40237; bugfix
1791       on 0.3.5.1-alpha.
1793   o Major bugfixes (stats, onion services, backport from 0.4.4.5):
1794     - Fix a bug where we were undercounting the Tor network's total
1795       onion service traffic, by ignoring any traffic originating from
1796       clients. Now we count traffic from both clients and services.
1797       Fixes bug 40117; bugfix on 0.2.6.2-alpha.
1799   o Major feature (exit, backport from 0.4.5.5-rc):
1800     - Re-entry into the network is now denied at the Exit level to all
1801       relays' ORPorts and authorities' ORPorts and DirPorts. This change
1802       should help mitgate a set of denial-of-service attacks. Closes
1803       ticket 2667.
1805   o Minor feature (build system, backport from 0.4.5.4-rc):
1806     - New "make lsp" command to generate the compile_commands.json file
1807       used by the ccls language server. The "bear" program is needed for
1808       this. Closes ticket 40227.
1810   o Minor features (compilation, backport from 0.4.5.2-rc):
1811     - Disable deprecation warnings when building with OpenSSL 3.0.0 or
1812       later. There are a number of APIs newly deprecated in OpenSSL
1813       3.0.0 that Tor still requires. (A later version of Tor will try to
1814       stop depending on these APIs.) Closes ticket 40165.
1816   o Minor features (crypto, backport from 0.4.5.3-rc):
1817     - Fix undefined behavior on our Keccak library. The bug only
1818       appeared on platforms with 32-byte CPU cache lines (e.g. armv5tel)
1819       and would result in wrong digests. Fixes bug 40210; bugfix on
1820       0.2.8.1-alpha. Thanks to Bernhard Übelacker, Arnd Bergmann and
1821       weasel for diagnosing this.
1823   o Minor bugfixes (compatibility, backport from 0.4.5.1-rc):
1824     - Strip '\r' characters when reading text files on Unix platforms.
1825       This should resolve an issue where a relay operator migrates a
1826       relay from Windows to Unix, but does not change the line ending of
1827       Tor's various state files to match the platform, and the CRLF line
1828       endings from Windows end up leaking into other files such as the
1829       extra-info document. Fixes bug 33781; bugfix on 0.0.9pre5.
1831   o Minor bugfixes (compilation, backport from 0.4.5.1-rc):
1832     - Resolve a compilation warning that could occur in
1833       test_connection.c. Fixes bug 40113; bugfix on 0.2.9.3-alpha.
1835   o Minor bugfixes (compilation, backport from 0.4.5.3-rc):
1836     - Fix a compilation warning about unreachable fallthrough
1837       annotations when building with "--enable-all-bugs-are-fatal" on
1838       some compilers. Fixes bug 40241; bugfix on 0.3.5.4-alpha.
1840   o Minor bugfixes (SOCKS5, backport from 0.4.5.3-rc):
1841     - Handle partial SOCKS5 messages correctly. Previously, our code
1842       would send an incorrect error message if it got a SOCKS5 request
1843       that wasn't complete. Fixes bug 40190; bugfix on 0.3.5.1-alpha.
1845   o Minor bugfixes (testing, backport from 0.4.5.2-alpha):
1846     - Fix the `config/parse_tcp_proxy_line` test so that it works
1847       correctly on systems where the DNS provider hijacks invalid
1848       queries. Fixes part of bug 40179; bugfix on 0.4.3.1-alpha.
1849     - Fix our Python reference-implementation for the v3 onion service
1850       handshake so that it works correctly with the version of hashlib
1851       provided by Python 3.9. Fixes part of bug 40179; bugfix
1852       on 0.3.1.6-rc.
1853     - Fix the `tortls/openssl/log_one_error` test to work with OpenSSL
1854       3.0.0. Fixes bug 40170; bugfix on 0.2.8.1-alpha.
1857 Changes in version 0.3.5.13 - 2020-02-03
1858   Tor 0.3.5.13 backports numerous bugfixes from later releases,
1859   including one that made v3 onion services more susceptible to
1860   denial-of-service attacks, and a feature that makes some kinds of
1861   DoS attacks harder to perform.
1863   o Major bugfixes (onion service v3, backport from 0.4.5.3-rc):
1864     - Stop requiring a live consensus for v3 clients and services, and
1865       allow a "reasonably live" consensus instead. This allows v3 onion
1866       services to work even if the authorities fail to generate a
1867       consensus for more than 2 hours in a row. Fixes bug 40237; bugfix
1868       on 0.3.5.1-alpha.
1870   o Major bugfixes (stats, onion services, backport from 0.4.4.5):
1871     - Fix a bug where we were undercounting the Tor network's total
1872       onion service traffic, by ignoring any traffic originating from
1873       clients. Now we count traffic from both clients and services.
1874       Fixes bug 40117; bugfix on 0.2.6.2-alpha.
1876   o Major feature (exit, backport from 0.4.5.5-rc):
1877     - Re-entry into the network is now denied at the Exit level to all
1878       relays' ORPorts and authorities' ORPorts and DirPorts. This change
1879       should help mitgate a set of denial-of-service attacks. Closes
1880       ticket 2667.
1882   o Minor feature (build system, backport from 0.4.5.4-rc):
1883     - New "make lsp" command to generate the compile_commands.json file
1884       used by the ccls language server. The "bear" program is needed for
1885       this. Closes ticket 40227.
1887   o Minor features (compilation, backport from 0.4.5.2-rc):
1888     - Disable deprecation warnings when building with OpenSSL 3.0.0 or
1889       later. There are a number of APIs newly deprecated in OpenSSL
1890       3.0.0 that Tor still requires. (A later version of Tor will try to
1891       stop depending on these APIs.) Closes ticket 40165.
1893   o Minor features (crypto, backport from 0.4.5.3-rc):
1894     - Fix undefined behavior on our Keccak library. The bug only
1895       appeared on platforms with 32-byte CPU cache lines (e.g. armv5tel)
1896       and would result in wrong digests. Fixes bug 40210; bugfix on
1897       0.2.8.1-alpha. Thanks to Bernhard Übelacker, Arnd Bergmann and
1898       weasel for diagnosing this.
1900   o Minor bugfixes (compatibility, backport from 0.4.5.1-rc):
1901     - Strip '\r' characters when reading text files on Unix platforms.
1902       This should resolve an issue where a relay operator migrates a
1903       relay from Windows to Unix, but does not change the line ending of
1904       Tor's various state files to match the platform, and the CRLF line
1905       endings from Windows end up leaking into other files such as the
1906       extra-info document. Fixes bug 33781; bugfix on 0.0.9pre5.
1908   o Minor bugfixes (compilation, backport from 0.4.5.1-rc):
1909     - Resolve a compilation warning that could occur in
1910       test_connection.c. Fixes bug 40113; bugfix on 0.2.9.3-alpha.
1912   o Minor bugfixes (compilation, backport from 0.4.5.3-rc):
1913     - Fix a compilation warning about unreachable fallthrough
1914       annotations when building with "--enable-all-bugs-are-fatal" on
1915       some compilers. Fixes bug 40241; bugfix on 0.3.5.4-alpha.
1917   o Minor bugfixes (SOCKS5, backport from 0.4.5.3-rc):
1918     - Handle partial SOCKS5 messages correctly. Previously, our code
1919       would send an incorrect error message if it got a SOCKS5 request
1920       that wasn't complete. Fixes bug 40190; bugfix on 0.3.5.1-alpha.
1922   o Minor bugfixes (testing, backport from 0.4.5.2-alpha):
1923     - Fix our Python reference-implementation for the v3 onion service
1924       handshake so that it works correctly with the version of hashlib
1925       provided by Python 3.9. Fixes part of bug 40179; bugfix
1926       on 0.3.1.6-rc.
1927     - Fix the `tortls/openssl/log_one_error` test to work with OpenSSL
1928       3.0.0. Fixes bug 40170; bugfix on 0.2.8.1-alpha.
1931 Changes in version 0.4.5.5-rc - 2021-02-01
1932   Tor 0.4.5.5-rc is the third release candidate in its series. We're
1933   coming closer and closer to a stable release series. This release
1934   fixes an annoyance with address detection code, and somewhat mitigates
1935   an ongoing denial-of-service attack.
1937   We anticipate no more code changes between this and the stable
1938   release, though of course that could change.
1940   o Major feature (exit):
1941     - Re-entry into the network is now denied at the Exit level to all
1942       relays' ORPorts and authorities' ORPorts and DirPorts. This change
1943       should help mitgate a set of denial-of-service attacks. Closes
1944       ticket 2667.
1946   o Minor bugfixes (relay, configuration):
1947     - Don't attempt to discover our address (IPv4 or IPv6) if no ORPort
1948       for it can be found in the configuration. Fixes bug 40254; bugfix
1949       on 0.4.5.1-alpha.
1952 Changes in version 0.4.5.4-rc - 2021-01-22
1953   Tor 0.4.5.4-rc is the second release candidate in its series. It fixes
1954   several bugs present in previous releases.
1956   We expect that the stable release will be the same, or almost the
1957   same, as this release candidate, unless serious bugs are found.
1959   o Major bugfixes (authority, IPv6):
1960     - Do not consider multiple relays in the same IPv6 /64 network to be
1961       sybils. Fixes bug 40243; bugfix on 0.4.5.1-alpha.
1963   o Major bugfixes (directory cache, performance, windows):
1964     - Limit the number of items in the consensus diff cache to 64 on
1965       Windows. We hope this will mitigate an issue where Windows relay
1966       operators reported Tor using 100% CPU, while we investigate better
1967       solutions. Fixes bug 24857; bugfix on 0.3.1.1-alpha.
1969   o Minor feature (build system):
1970     - New "make lsp" command to generate the compile_commands.json file
1971       used by the ccls language server. The "bear" program is needed for
1972       this. Closes ticket 40227.
1974   o Minor features (authority, logging):
1975     - Log more information for directory authority operators during the
1976       consensus voting process, and while processing relay descriptors.
1977       Closes ticket 40245.
1978     - Reject obsolete router/extrainfo descriptors earlier and more
1979       quietly, to avoid spamming the logs. Fixes bug 40238; bugfix
1980       on 0.4.5.1-alpha.
1982   o Minor bugfixes (compilation):
1983     - Fix another warning about unreachable fallthrough annotations when
1984       building with "--enable-all-bugs-are-fatal" on some compilers.
1985       Fixes bug 40241; bugfix on 0.4.5.3-rc.
1986     - Change the linker flag ordering in our library search code so that
1987       it works for compilers that need the libraries to be listed in the
1988       right order. Fixes bug 33624; bugfix on 0.1.1.0-alpha.
1990   o Minor bugfixes (config, bridge):
1991     - Don't initiate a connection to a bridge configured to use a
1992       missing transport. This change reverts an earlier fix that would
1993       try to avoid such situations during configuration chcecking, but
1994       which doesn't work with DisableNetwork. Fixes bug 40106; bugfix
1995       on 0.4.5.1-alpha.
1997   o Minor bugfixes (onion services):
1998     - Avoid a non-fatal assertion in certain edge-cases when
1999       establishing a circuit to an onion service. Fixes bug 32666;
2000       bugfix on 0.3.0.3-alpha.
2002   o Minor bugfixes (relay):
2003     - If we were unable to build our descriptor, don't mark it as having
2004       been advertised. Also remove an harmless BUG(). Fixes bug 40231;
2005       bugfix on 0.4.5.1-alpha.
2008 Changes in version 0.4.5.3-rc - 2021-01-12
2009   Tor 0.4.5.3-rc is the first release candidate in its series. It fixes
2010   several bugs, including one that broke onion services on certain older
2011   ARM CPUs, and another that made v3 onion services less reliable.
2013   Though we anticipate that we'll be doing a bit more clean-up between
2014   now and the stable release, we expect that our remaining changes will
2015   be fairly simple. There will be at least one more release candidate
2016   before 0.4.5.x is stable.
2018   o Major bugfixes (onion service v3):
2019     - Stop requiring a live consensus for v3 clients and services, and
2020       allow a "reasonably live" consensus instead. This allows v3 onion
2021       services to work even if the authorities fail to generate a
2022       consensus for more than 2 hours in a row. Fixes bug 40237; bugfix
2023       on 0.3.5.1-alpha.
2025   o Minor features (crypto):
2026     - Fix undefined behavior on our Keccak library. The bug only
2027       appeared on platforms with 32-byte CPU cache lines (e.g. armv5tel)
2028       and would result in wrong digests. Fixes bug 40210; bugfix on
2029       0.2.8.1-alpha. Thanks to Bernhard Übelacker, Arnd Bergmann and
2030       weasel for diagnosing this.
2032   o Minor features (documentation):
2033     - Mention the "!badexit" directive that can appear in an authority's
2034       approved-routers file, and update the description of the
2035       "!invalid" directive. Closes ticket 40188.
2037   o Minor bugfixes (compilation):
2038     - Fix a compilation warning about unreachable fallthrough
2039       annotations when building with "--enable-all-bugs-are-fatal" on
2040       some compilers. Fixes bug 40241; bugfix on 0.3.5.4-alpha.
2041     - Fix the "--enable-static-tor" switch to properly set the "-static"
2042       compile option onto the tor binary only. Fixes bug 40111; bugfix
2043       on 0.2.3.1-alpha.
2045   o Minor bugfixes (config, bridge):
2046     - Really fix the case where torrc has a missing ClientTransportPlugin
2047       but is configured with a Bridge line and UseBridges. Previously,
2048       we didn't look at the managed proxy list and thus would fail for
2049       the "exec" case. Fixes bug 40106; bugfix on 0.4.5.1-alpha.
2051   o Minor bugfixes (logging, relay):
2052     - Log our address as reported by the directory authorities, if none
2053       was configured or detected before. Fixes bug 40201; bugfix
2054       on 0.4.5.1-alpha.
2055     - When a launching bandwidth testing circuit, don't incorrectly call
2056       it a reachability test, or trigger a "CHECKING_REACHABILITY"
2057       control event. Fixes bug 40205; bugfix on 0.4.5.1-alpha.
2059   o Minor bugfixes (relay, statistics):
2060     - Report the correct connection statistics in our extrainfo
2061       documents. Previously there was a problem in the file loading
2062       function which would wrongly truncate a state file, causing the
2063       wrong information to be reported. Fixes bug 40226; bugfix
2064       on 0.4.5.1-alpha.
2066   o Minor bugfixes (SOCKS5):
2067     - Handle partial SOCKS5 messages correctly. Previously, our code
2068       would send an incorrect error message if it got a SOCKS5 request
2069       that wasn't complete. Fixes bug 40190; bugfix on 0.3.5.1-alpha.
2072 Changes in version 0.4.5.2-alpha - 2020-11-23
2073   Tor 0.4.5.2-alpha is the second alpha release in the 0.4.5.x series.
2074   It fixes several bugs present in earlier releases, including one that
2075   made it impractical to run relays on Windows. It also adds a few small
2076   safety features to improve Tor's behavior in the presence of strange
2077   compile-time options, misbehaving proxies, and future versions
2078   of OpenSSL.
2080   o Major bugfixes (relay, windows):
2081     - Fix a bug in our implementation of condition variables on Windows.
2082       Previously, a relay on Windows would use 100% CPU after running
2083       for some time. Because of this change, Tor now require Windows
2084       Vista or later to build and run. Fixes bug 30187; bugfix on
2085       0.2.6.3-alpha. (This bug became more serious in 0.3.1.1-alpha with
2086       the introduction of consensus diffs.) Patch by Daniel Pinto.
2088   o Minor features (compilation):
2089     - Disable deprecation warnings when building with OpenSSL 3.0.0 or
2090       later. There are a number of APIs newly deprecated in OpenSSL
2091       3.0.0 that Tor still requires. (A later version of Tor will try to
2092       stop depending on these APIs.) Closes ticket 40165.
2094   o Minor features (protocol, proxy support, defense in depth):
2095     - Respond more deliberately to misbehaving proxies that leave
2096       leftover data on their connections, so as to make Tor even less
2097       likely to allow the proxies to pass their data off as having come
2098       from a relay. Closes ticket 40017.
2100   o Minor features (safety):
2101     - Log a warning at startup if Tor is built with compile-time options
2102       that are likely to make it less stable or reliable. Closes
2103       ticket 18888.
2105   o Minor bugfixes (circuit, handshake):
2106     - In the v3 handshaking code, use connection_or_change_state() to
2107       change the state. Previously, we changed the state directly, but
2108       this did not pass the state change to the pubsub or channel
2109       objects, potentially leading to bugs. Fixes bug 32880; bugfix on
2110       0.2.3.6-alpha. Patch by Neel Chauhan.
2112   o Minor bugfixes (compilation):
2113     - Use the correct 'ranlib' program when building libtor.a.
2114       Previously we used the default ranlib, which broke some kinds of
2115       cross-compilation. Fixes bug 40172; bugfix on 0.4.5.1-alpha.
2116     - Remove a duplicate typedef in metrics_store.c. Fixes bug 40177;
2117       bugfix on 0.4.5.1-alpha.
2118     - When USDT tracing is enabled, and STAP_PROBEV() is missing, don't
2119       attempt to build. Linux supports that macro but not the BSDs.
2120       Fixes bug 40174; bugfix on 0.4.5.1-alpha.
2122   o Minor bugfixes (configuration):
2123     - Exit Tor on a misconfiguration when the Bridge line is configured
2124       to use a transport but no corresponding ClientTransportPlugin can
2125       be found. Prior to this fix, Tor would attempt to connect to the
2126       bridge directly without using the transport, making it easier for
2127       adversaries to notice the bridge. Fixes bug 25528; bugfix
2128       on 0.2.6.1-alpha.
2129     - Fix an issue where an ORPort was compared with other kinds of
2130       ports, when it should have been only checked against other
2131       ORPorts. This bug would lead to "DirPort auto" getting ignored.
2132       Fixes bug 40195; bugfix on 0.4.5.1-alpha.
2133     - Fix a bug where a second non-ORPort with a variant family (ex:
2134       SocksPort [::1]:9050) would be ignored due to a configuration
2135       parsing error. Fixes bug 40183; bugfix on 0.4.5.1-alpha.
2137   o Minor bugfixes (crash, relay, signing key):
2138     - Avoid assertion failures when we run Tor from the command line
2139       with `--key-expiration sign`, but an ORPort is not set. Fixes bug
2140       40015; bugfix on 0.3.2.1-alpha. Patch by Neel Chauhan.
2142   o Minor bugfixes (logging):
2143     - Remove trailing whitespace from control event log messages. Fixes
2144       bug 32178; bugfix on 0.1.1.1-alpha. Based on a patch by
2145       Amadeusz Pawlik.
2146     - Turn warning-level log message about SENDME failure into a debug-
2147       level message. (This event can happen naturally, and is no reason
2148       for concern). Fixes bug 40142; bugfix on 0.4.1.1-alpha.
2150   o Minor bugfixes (relay, address discovery):
2151     - Don't trigger an IP change when no new valid IP can be found.
2152       Fixes bug 40071; bugfix on 0.4.5.1-alpha.
2153     - When attempting to discover our IP, use a simple test circuit,
2154       rather than a descriptor fetch: the same address information is
2155       present in NETINFO cells, and is better authenticated there. Fixes
2156       bug 40071; bugfix on 0.4.5.1-alpha.
2158   o Minor bugfixes (testing):
2159     - Fix the `config/parse_tcp_proxy_line` test so that it works
2160       correctly on systems where the DNS provider hijacks invalid
2161       queries. Fixes part of bug 40179; bugfix on 0.4.3.1-alpha.
2162     - Fix unit tests that used newly generated list of routers so that
2163       they check them with respect to the date when they were generated,
2164       not with respect to the current time. Fixes bug 40187; bugfix
2165       on 0.4.5.1-alpha.
2166     - Fix our Python reference-implementation for the v3 onion service
2167       handshake so that it works correctly with the version of hashlib
2168       provided by Python 3.9. Fixes part of bug 40179; bugfix
2169       on 0.3.1.6-rc.
2170     - Fix the `tortls/openssl/log_one_error` test to work with OpenSSL
2171       3.0.0. Fixes bug 40170; bugfix on 0.2.8.1-alpha.
2173   o Removed features (controller):
2174     - Remove the "GETINFO network-status" controller command. It has
2175       been deprecated since 0.3.1.1-alpha. Closes ticket 22473.
2178 Changes in version 0.4.4.6 - 2020-11-12
2179   Tor 0.4.4.6 is the second stable release in the 0.4.4.x series. It
2180   backports fixes from later releases, including a fix for TROVE-2020-
2181   005, a security issue that could be used, under certain cases, by an
2182   adversary to observe traffic patterns on a limited number of circuits
2183   intended for a different relay.
2185   o Major bugfixes (security, backport from 0.4.5.1-alpha):
2186     - When completing a channel, relays now check more thoroughly to
2187       make sure that it matches any pending circuits before attaching
2188       those circuits. Previously, address correctness and Ed25519
2189       identities were not checked in this case, but only when extending
2190       circuits on an existing channel. Fixes bug 40080; bugfix on
2191       0.2.7.2-alpha. Resolves TROVE-2020-005.
2193   o Minor features (directory authorities, backport from 0.4.5.1-alpha):
2194     - Authorities now list a different set of protocols as required and
2195       recommended. These lists have been chosen so that only truly
2196       recommended and/or required protocols are included, and so that
2197       clients using 0.2.9 or later will continue to work (even though
2198       they are not supported), whereas only relays running 0.3.5 or
2199       later will meet the requirements. Closes ticket 40162.
2200     - Make it possible to specify multiple ConsensusParams torrc lines.
2201       Now directory authority operators can for example put the main
2202       ConsensusParams config in one torrc file and then add to it from a
2203       different torrc file. Closes ticket 40164.
2205   o Minor features (subprotocol versions, backport from 0.4.5.1-alpha):
2206     - Tor no longer allows subprotocol versions larger than 63.
2207       Previously version numbers up to UINT32_MAX were allowed, which
2208       significantly complicated our code. Implements proposal 318;
2209       closes ticket 40133.
2211   o Minor features (tests, v2 onion services, backport from 0.4.5.1-alpha):
2212     - Fix a rendezvous cache unit test that was triggering an underflow
2213       on the global rend cache allocation. Fixes bug 40125; bugfix
2214       on 0.2.8.1-alpha.
2215     - Fix another rendezvous cache unit test that was triggering an
2216       underflow on the global rend cache allocation. Fixes bug 40126;
2217       bugfix on 0.2.8.1-alpha.
2219   o Minor bugfixes (compilation, backport from 0.4.5.1-alpha):
2220     - Fix compiler warnings that would occur when building with
2221       "--enable-all-bugs-are-fatal" and "--disable-module-relay" at the
2222       same time. Fixes bug 40129; bugfix on 0.4.4.1-alpha.
2223     - Resolve a compilation warning that could occur in
2224       test_connection.c. Fixes bug 40113; bugfix on 0.2.9.3-alpha.
2226   o Minor bugfixes (logging, backport from 0.4.5.1-alpha):
2227     - Remove a debug logging statement that uselessly spammed the logs.
2228       Fixes bug 40135; bugfix on 0.3.5.0-alpha.
2230   o Minor bugfixes (relay configuration, crash, backport from 0.4.5.1-alpha):
2231     - Avoid a fatal assert() when failing to create a listener
2232       connection for an address that was in use. Fixes bug 40073; bugfix
2233       on 0.3.5.1-alpha.
2235   o Minor bugfixes (v2 onion services, backport from 0.4.5.1-alpha):
2236     - For HSFETCH commands on v2 onion services addresses, check the
2237       length of bytes decoded, not the base32 length. Fixes bug 34400;
2238       bugfix on 0.4.1.1-alpha. Patch by Neel Chauhan.
2241 Changes in version 0.4.3.7 - 2020-11-12
2242   Tor 0.4.3.7 backports several bugfixes from later releases. It
2243   includes a fix for TROVE-2020-005, a security issue that could be
2244   used, under certain cases, by an adversary to observe traffic patterns
2245   on a limited number of circuits intended for a different relay.
2247   Please be aware that support for the 0.4.3.x series will end on 15
2248   February 2021. Please upgrade to 0.4.4.x or 0.4.5.x before then, or
2249   downgrade to 0.3.5.x, which will be supported until at least 1
2250   February 2022.
2252   o Major features (fallback directory list, backport form 0.4.4.3-alpha):
2253     - Replace the 148 fallback directories originally included in Tor
2254       0.4.1.4-rc (of which around 105 are still functional) with a list
2255       of 144 fallbacks generated in July 2020. Closes ticket 40061.
2257   o Major bugfixes (security, backport from 0.4.5.1-alpha):
2258     - When completing a channel, relays now check more thoroughly to
2259       make sure that it matches any pending circuits before attaching
2260       those circuits. Previously, address correctness and Ed25519
2261       identities were not checked in this case, but only when extending
2262       circuits on an existing channel. Fixes bug 40080; bugfix on
2263       0.2.7.2-alpha. Resolves TROVE-2020-005.
2265   o Major bugfixes (NSS, backport from 0.4.4.3-alpha):
2266     - When running with NSS enabled, make sure that NSS knows to expect
2267       nonblocking sockets. Previously, we set our TCP sockets as
2268       nonblocking, but did not tell NSS, which in turn could lead to
2269       unexpected blocking behavior. Fixes bug 40035; bugfix
2270       on 0.3.5.1-alpha.
2272   o Minor features (security, backport from 0.4.4.4-rc):
2273     - Channels using obsolete versions of the Tor link protocol are no
2274       longer allowed to circumvent address-canonicity checks. (This is
2275       only a minor issue, since such channels have no way to set ed25519
2276       keys, and therefore should always be rejected for circuits that
2277       specify ed25519 identities.) Closes ticket 40081.
2279   o Minor features (subprotocol versions, backport from 0.4.5.1-alpha):
2280     - Tor no longer allows subprotocol versions larger than 63.
2281       Previously version numbers up to UINT32_MAX were allowed, which
2282       significantly complicated our code. Implements proposal 318;
2283       closes ticket 40133.
2285   o Minor features (tests, backport from 0.4.4.5):
2286     - Our "make check" target now runs the unit tests in 8 parallel
2287       chunks. Doing this speeds up hardened CI builds by more than a
2288       factor of two. Closes ticket 40098.
2290   o Minor features (tests, v2 onion services, backport from 0.4.5.1-alpha):
2291     - Fix a rendezvous cache unit test that was triggering an underflow
2292       on the global rend cache allocation. Fixes bug 40125; bugfix
2293       on 0.2.8.1-alpha.
2294     - Fix another rendezvous cache unit test that was triggering an
2295       underflow on the global rend cache allocation. Fixes bug 40126;
2296       bugfix on 0.2.8.1-alpha.
2298   o Minor bugfixes (correctness, buffers, backport from 0.4.4.4-rc):
2299     - Fix a correctness bug that could cause an assertion failure if we
2300       ever tried using the buf_move_all() function with an empty input
2301       buffer. As far as we know, no released versions of Tor do this.
2302       Fixes bug 40076; bugfix on 0.3.3.1-alpha.
2304   o Minor bugfixes (logging, backport from 0.4.5.1-alpha):
2305     - Remove a debug logging statement that uselessly spammed the logs.
2306       Fixes bug 40135; bugfix on 0.3.5.0-alpha.
2308   o Minor bugfixes (rate limiting, bridges, pluggable transports, backport from 0.4.4.4-rc):
2309     - On a bridge, treat all connections from an ExtORPort as remote by
2310       default for the purposes of rate-limiting. Previously, bridges
2311       would treat the connection as local unless they explicitly
2312       received a "USERADDR" command. ExtORPort connections still count
2313       as local if there is a USERADDR command with an explicit local
2314       address. Fixes bug 33747; bugfix on 0.2.5.1-alpha.
2316   o Minor bugfixes (relay configuration, crash, backport from 0.4.5.1-alpha):
2317     - Avoid a fatal assert() when failing to create a listener
2318       connection for an address that was in use. Fixes bug 40073; bugfix
2319       on 0.3.5.1-alpha.
2321   o Minor bugfixes (relay, usability, backport from 0.4.4.3-alpha):
2322     - Adjust the rules for when to warn about having too many
2323       connections to other relays. Previously we'd tolerate up to 1.5
2324       connections per relay on average. Now we tolerate more connections
2325       for directory authorities, and raise the number of total
2326       connections we need to see before we warn. Fixes bug 33880; bugfix
2327       on 0.3.1.1-alpha.
2329   o Minor bugfixes (tests, 0.4.4.5):
2330     - Fix the behavior of the rend_cache/clean_v2_descs_as_dir when run
2331       on its own. Previously, it would exit with an error. Fixes bug
2332       40099; bugfix on 0.2.8.1-alpha.
2334   o Minor bugfixes (v2 onion services, backport from 0.4.5.1-alpha):
2335     - For HSFETCH commands on v2 onion services addresses, check the
2336       length of bytes decoded, not the base32 length. Fixes bug 34400;
2337       bugfix on 0.4.1.1-alpha. Patch by Neel Chauhan.
2339   o Minor bugfixes (windows, backport from 0.4.4.4-rc):
2340     - Fix a bug that prevented Tor from starting if its log file grew
2341       above 2GB. Fixes bug 31036; bugfix on 0.2.1.8-alpha.
2343   o Deprecated features (onion service v2, backport form 0.4.4.2-alpha):
2344     - Add a deprecation warning for version 2 onion services. Closes
2345       ticket 40003.
2347   o Removed features (backport from 0.4.4.3-alpha):
2348     - Our "check-local" test target no longer tries to use the
2349       Coccinelle semantic patching tool parse all the C files. While it
2350       is a good idea to try to make sure Coccinelle works on our C
2351       before we run a Coccinelle patch, doing so on every test run has
2352       proven to be disruptive. You can still run this tool manually with
2353       "make check-cocci". Closes ticket 40030. ticket 40030.
2356 Changes in version 0.3.5.12 - 2020-11-12
2357   Tor 0.4.3.7 backports several bugfixes from later releases. It
2358   includes a fix for TROVE-2020-005, a security issue that could be
2359   used, under certain cases, by an adversary to observe traffic patterns
2360   on a limited number of circuits intended for a different relay.
2362   o Major features (fallback directory list, backport form 0.4.4.3-alpha):
2363     - Replace the 148 fallback directories originally included in Tor
2364       0.4.1.4-rc (of which around 105 are still functional) with a list
2365       of 144 fallbacks generated in July 2020. Closes ticket 40061.
2367   o Major bugfixes (security, backport from 0.4.5.1-alpha):
2368     - When completing a channel, relays now check more thoroughly to
2369       make sure that it matches any pending circuits before attaching
2370       those circuits. Previously, address correctness and Ed25519
2371       identities were not checked in this case, but only when extending
2372       circuits on an existing channel. Fixes bug 40080; bugfix on
2373       0.2.7.2-alpha. Resolves TROVE-2020-005.
2375   o Major bugfixes (NSS, backport from 0.4.4.3-alpha):
2376     - When running with NSS enabled, make sure that NSS knows to expect
2377       nonblocking sockets. Previously, we set our TCP sockets as
2378       nonblocking, but did not tell NSS, which in turn could lead to
2379       unexpected blocking behavior. Fixes bug 40035; bugfix
2380       on 0.3.5.1-alpha.
2382   o Minor features (security, backport from 0.4.4.4-rc):
2383     - Channels using obsolete versions of the Tor link protocol are no
2384       longer allowed to circumvent address-canonicity checks. (This is
2385       only a minor issue, since such channels have no way to set ed25519
2386       keys, and therefore should always be rejected for circuits that
2387       specify ed25519 identities.) Closes ticket 40081.
2389   o Minor features (debugging, directory system):
2390     - Don't crash when we find a non-guard with a guard-fraction value
2391       set. Instead, log a bug warning, in an attempt to figure out how
2392       this happened. Diagnostic for ticket 32868.
2394   o Minor features (subprotocol versions, backport from 0.4.5.1-alpha):
2395     - Tor no longer allows subprotocol versions larger than 63.
2396       Previously version numbers up to UINT32_MAX were allowed, which
2397       significantly complicated our code. Implements proposal 318;
2398       closes ticket 40133.
2400   o Minor features (tests, backport from 0.4.4.5):
2401     - Our "make check" target now runs the unit tests in 8 parallel
2402       chunks. Doing this speeds up hardened CI builds by more than a
2403       factor of two. Closes ticket 40098.
2405   o Minor features (tests, v2 onion services, backport from 0.4.5.1-alpha):
2406     - Fix a rendezvous cache unit test that was triggering an underflow
2407       on the global rend cache allocation. Fixes bug 40125; bugfix
2408       on 0.2.8.1-alpha.
2409     - Fix another rendezvous cache unit test that was triggering an
2410       underflow on the global rend cache allocation. Fixes bug 40126;
2411       bugfix on 0.2.8.1-alpha.
2413   o Minor bugfixes (correctness, buffers, backport from 0.4.4.4-rc):
2414     - Fix a correctness bug that could cause an assertion failure if we
2415       ever tried using the buf_move_all() function with an empty input
2416       buffer. As far as we know, no released versions of Tor do this.
2417       Fixes bug 40076; bugfix on 0.3.3.1-alpha.
2419   o Minor bugfixes (logging, backport from 0.4.5.1-alpha):
2420     - Remove a debug logging statement that uselessly spammed the logs.
2421       Fixes bug 40135; bugfix on 0.3.5.0-alpha.
2423   o Minor bugfixes (rate limiting, bridges, pluggable transports, backport from 0.4.4.4-rc):
2424     - On a bridge, treat all connections from an ExtORPort as remote by
2425       default for the purposes of rate-limiting. Previously, bridges
2426       would treat the connection as local unless they explicitly
2427       received a "USERADDR" command. ExtORPort connections still count
2428       as local if there is a USERADDR command with an explicit local
2429       address. Fixes bug 33747; bugfix on 0.2.5.1-alpha.
2431   o Minor bugfixes (relay configuration, crash, backport from 0.4.5.1-alpha):
2432     - Avoid a fatal assert() when failing to create a listener
2433       connection for an address that was in use. Fixes bug 40073; bugfix
2434       on 0.3.5.1-alpha.
2436   o Minor bugfixes (relay, usability, backport from 0.4.4.3-alpha):
2437     - Adjust the rules for when to warn about having too many
2438       connections to other relays. Previously we'd tolerate up to 1.5
2439       connections per relay on average. Now we tolerate more connections
2440       for directory authorities, and raise the number of total
2441       connections we need to see before we warn. Fixes bug 33880; bugfix
2442       on 0.3.1.1-alpha.
2444   o Minor bugfixes (relays, backport from 0.4.4.1-alpha):
2445     - Stop advertising incorrect IPv6 ORPorts in relay and bridge
2446       descriptors, when the IPv6 port was configured as "auto". Fixes
2447       bug 32588; bugfix on 0.2.3.9-alpha.
2449   o Minor bugfixes (tests, 0.4.4.5):
2450     - Fix the behavior of the rend_cache/clean_v2_descs_as_dir when run
2451       on its own. Previously, it would exit with an error. Fixes bug
2452       40099; bugfix on 0.2.8.1-alpha.
2454   o Minor bugfixes (windows, backport from 0.4.4.4-rc):
2455     - Fix a bug that prevented Tor from starting if its log file grew
2456       above 2GB. Fixes bug 31036; bugfix on 0.2.1.8-alpha.
2458   o Deprecated features (onion service v2, backport form 0.4.4.2-alpha):
2459     - Add a deprecation warning for version 2 onion services. Closes
2460       ticket 40003.
2463 Changes in version 0.4.5.1-alpha - 2020-11-01
2464   Tor 0.4.5.1-alpha is the first alpha release in the 0.4.5.x series. It
2465   improves support for IPv6, address discovery and self-testing, code
2466   metrics and tracing.
2468   This release also fixes TROVE-2020-005, a security issue that could be
2469   used, under certain cases, by an adversary to observe traffic patterns
2470   on a limited number of circuits intended for a different relay. To
2471   mount this attack, the adversary would need to actively extend
2472   circuits to an incorrect address, as well as compromise a relay's
2473   legacy RSA-1024 key. We'll be backporting this fix to other release
2474   series soon, after it has had some testing.
2476   Here are the changes since 0.4.4.5.
2478   o Major features (build):
2479     - When building Tor, first link all object files into a single
2480       static library. This may help with embedding Tor in other
2481       programs. Note that most Tor functions do not constitute a part of
2482       a stable or supported API: only those functions in tor_api.h
2483       should be used if embedding Tor. Closes ticket 40127.
2485   o Major features (metrics):
2486     - Introduce a new MetricsPort which exposes, through an HTTP
2487       interface, a series of metrics that tor collects at runtime. At
2488       the moment, the only supported output format is Prometheus data
2489       model. Closes ticket 40063. See the manual page for more
2490       information and security considerations.
2491   o Major features (relay, IPv6):
2492     - The torrc option Address now supports IPv6. This unifies our
2493       address discovery interface to support IPv4, IPv6, and hostnames.
2494       Closes ticket 33233.
2495     - Launch IPv4 and IPv6 ORPort self-test circuits on relays and
2496       bridges. Closes ticket 33222.
2497     - Relays now automatically bind on IPv6 for their ORPort, unless
2498       specified otherwise with the IPv4Only flag. Closes ticket 33246.
2499     - When a relay with IPv6 support is told to open a connection to
2500       another relay, and the extend cell lists both IPv4 and IPv6
2501       addresses, the first relay now picks randomly which address to
2502       use. Closes ticket 33220.
2503     - Relays now track their IPv6 ORPort reachability separately from
2504       the reachability of their IPv4 ORPort. They will not publish a
2505       descriptor unless _both_ ports appear to be externally reachable.
2506       Closes ticket 34067.
2508   o Major features (tracing):
2509     - Add event-tracing library support for USDT and LTTng-UST, and a
2510       few tracepoints in the circuit subsystem. More will come
2511       incrementally. This feature is compiled out by default: it needs
2512       to be enabled at configure time. See documentation in
2513       doc/HACKING/Tracing.md. Closes ticket 32910.
2515   o Major bugfixes (security):
2516     - When completing a channel, relays now check more thoroughly to
2517       make sure that it matches any pending circuits before attaching
2518       those circuits. Previously, address correctness and Ed25519
2519       identities were not checked in this case, but only when extending
2520       circuits on an existing channel. Fixes bug 40080; bugfix on
2521       0.2.7.2-alpha. Resolves TROVE-2020-005.
2523   o Major bugfixes (TLS, buffer):
2524     - When attempting to read N bytes on a TLS connection, really try to
2525       read all N bytes. Previously, Tor would stop reading after the
2526       first TLS record, which can be smaller than the N bytes requested,
2527       and not check for more data until the next mainloop event. Fixes
2528       bug 40006; bugfix on 0.1.0.5-rc.
2530   o Minor features (address discovery):
2531     - If no Address statements are found, relays now prioritize guessing
2532       their address by looking at the local interface instead of the
2533       local hostname. If the interface address can't be found, the local
2534       hostname is used. Closes ticket 33238.
2536   o Minor features (admin tools):
2537     - Add a new --format argument to -key-expiration option to allow
2538       specifying the time format of the expiration date. Adds Unix
2539       timestamp format support. Patch by Daniel Pinto. Closes
2540       ticket 30045.
2542   o Minor features (bootstrap reporting):
2543     - When reporting bootstrapping status on a relay, do not consider
2544       connections that have never been the target of an origin circuit.
2545       Previously, all connection failures were treated as potential
2546       bootstrapping failures, including connections that had been opened
2547       because of client requests. Closes ticket 25061.
2549   o Minor features (build):
2550     - When running the configure script, try to detect version
2551       mismatches between the OpenSSL headers and libraries, and suggest
2552       that the user should try "--with-openssl-dir". Closes 40138.
2553     - If the configure script has given any warnings, remind the user
2554       about them at the end of the script. Related to 40138.
2556   o Minor features (configuration):
2557     - Allow using wildcards (* and ?) with the %include option on
2558       configuration files. Closes ticket 25140. Patch by Daniel Pinto.
2559     - Allow the configuration options EntryNodes, ExcludeNodes,
2560       ExcludeExitNodes, ExitNodes, MiddleNodes, HSLayer2Nodes and
2561       HSLayer3Nodes to be specified multiple times. Closes ticket 28361.
2562       Patch by Daniel Pinto.
2564   o Minor features (control port):
2565     - Add a DROPTIMEOUTS command to drop circuit build timeout history
2566       and reset the current timeout. Closes ticket 40002.
2567     - When a stream enters the AP_CONN_STATE_CONTROLLER_WAIT status,
2568       send a control port event. Closes ticket 32190. Patch by
2569       Neel Chauhan.
2570     - Introduce GETINFO "stats/ntor/{assigned/requested}" and
2571       "stats/tap/{assigned/requested}" to get the NTor and TAP circuit
2572       onion handshake counts respectively. Closes ticket 28279. Patch by
2573       Neel Chauhan.
2575   o Minor features (control port, IPv6):
2576     - Tor relays now try to report to the controller when they are
2577       launching an IPv6 self-test. Closes ticket 34068.
2578     - Introduce "GETINFO address/v4" and "GETINFO address/v6" in the
2579       control port to fetch the Tor host's respective IPv4 or IPv6
2580       address. We keep "GETINFO address" for backwards-compatibility.
2581       Closes ticket 40039. Patch by Neel Chauhan.
2583   o Minor features (directory authorities):
2584     - Authorities now list a different set of protocols as required and
2585       recommended. These lists have been chosen so that only truly
2586       recommended and/or required protocols are included, and so that
2587       clients using 0.2.9 or later will continue to work (even though
2588       they are not supported), whereas only relays running 0.3.5 or
2589       later will meet the requirements. Closes ticket 40162.
2590     - Add a new consensus method 30 that removes the unnecessary "="
2591       padding from ntor-onion-key. Closes ticket 7869. Patch by
2592       Daniel Pinto.
2593     - Directory authorities now reject descriptors from relays running
2594       Tor versions from the obsolete 0.4.1 series. Resolves ticket
2595       34357. Patch by Neel Chauhan.
2596     - Make it possible to specify multiple ConsensusParams torrc lines.
2597       Now directory authority operators can for example put the main
2598       ConsensusParams config in one torrc file and then add to it from a
2599       different torrc file. Closes ticket 40164.
2600     - The AssumeReachable option no longer stops directory authorities
2601       from checking whether other relays are running. A new
2602       AuthDirTestReachability option can be used to disable these
2603       checks. Closes ticket 34445.
2604     - When looking for possible Sybil attacks, also consider IPv6
2605       addresses. Two routers are considered to have "the same" address
2606       by this metric if they are in the same /64 network. Patch from
2607       Maurice Pibouin. Closes ticket 7193.
2609   o Minor features (directory authorities, IPv6):
2610     - Make authorities add their IPv6 ORPort (if any) to the trusted
2611       servers list. Authorities previously added only their IPv4
2612       addresses. Closes ticket 32822.
2614   o Minor features (ed25519, relay):
2615     - Save a relay's base64-encoded ed25519 identity key to the data
2616       directory in a file named fingerprint-ed25519. Closes ticket
2617       30642. Patch by Neel Chauhan.
2619   o Minor features (heartbeat):
2620     - Include the total number of inbound and outbound IPv4 and IPv6
2621       connections in the heartbeat message. Closes ticket 29113.
2623   o Minor features (IPv6, ExcludeNodes):
2624     - Handle IPv6 addresses in ExcludeNodes; previously they were
2625       ignored. Closes ticket 34065. Patch by Neel Chauhan.
2627   o Minor features (logging):
2628     - Add the running glibc version to the log, and the compiled glibc
2629       version to the library list returned when using --library-versions.
2630       Patch from Daniel Pinto. Closes ticket 40047.
2631     - Consider an HTTP 301 response to be an error (like a 404) when
2632       processing a directory response. Closes ticket 40053.
2633     - Log directory fetch statistics as a single line. Closes
2634       ticket 40159.
2635     - Provide more complete descriptions of our connections when logging
2636       about them. Closes ticket 40041.
2637     - When describing a relay in the logs, we now include its ed25519
2638       identity. Closes ticket 22668.
2640   o Minor features (onion services):
2641     - Only overwrite an onion service's existing hostname file if its
2642       contents are wrong. This enables read-only onion-service
2643       directories. Resolves ticket 40062. Patch by Neel Chauhan.
2645   o Minor features (pluggable transports):
2646     - Add an OutboundBindAddressPT option to allow users to specify
2647       which IPv4 and IPv6 address pluggable transports should use for
2648       outgoing IP packets. Tor does not have a way to enforce that the
2649       pluggable transport honors this option, so each pluggable transport
2650       needs to implement support on its own. Closes ticket 5304.
2652   o Minor features (relay address tracking):
2653     - We now store relay addresses for OR connections in a more logical
2654       way. Previously we would sometimes overwrite the actual address of
2655       a connection with a "canonical address", and then store the "real
2656       address" elsewhere to remember it. We now track the "canonical
2657       address" elsewhere for the cases where we need it, and leave the
2658       connection's address alone. Closes ticket 33898.
2660   o Minor features (relay):
2661     - If a relay is unable to discover its address, attempt to learn it
2662       from the NETINFO cell. Closes ticket 40022.
2663     - Log immediately when launching a relay self-check. Previously we
2664       would try to log before launching checks, or approximately when we
2665       intended to launch checks, but this tended to be error-prone.
2666       Closes ticket 34137.
2668   o Minor features (relay, address discovery):
2669     - If Address option is not found in torrc, attempt to learn our
2670       address with the configured ORPort address if any. Closes
2671       ticket 33236.
2673   o Minor features (relay, IPv6):
2674     - Add an AssumeReachableIPv6 option to disable self-checking IPv6
2675       reachability. Closes part of ticket 33224.
2676     - Add new "assume-reachable" and "assume-reachable-ipv6" consensus
2677       parameters to be used in an emergency to tell relays that they
2678       should publish even if they cannot complete their ORPort self-
2679       checks. Closes ticket 34064 and part of 33224.
2680     - Allow relays to send IPv6-only extend cells. Closes ticket 33222.
2681     - Declare support for the Relay=3 subprotocol version. Closes
2682       ticket 33226.
2683     - When launching IPv6 ORPort self-test circuits, make sure that the
2684       second-last hop can initiate an IPv6 extend. Closes ticket 33222.
2686   o Minor features (specification update):
2687     - Several fields in microdescriptors, router descriptors, and
2688       consensus documents that were formerly optional are now required.
2689       Implements proposal 315; closes ticket 40132.
2691   o Minor features (state management):
2692     - When loading the state file, remove entries from the statefile
2693       that have been obsolete for a long time. Ordinarily Tor preserves
2694       unrecognized entries in order to keep forward-compatibility, but
2695       these entries have not actually been used in any release since
2696       before 0.3.5.x. Closes ticket 40137.
2698   o Minor features (statistics, ipv6):
2699     - Relays now publish IPv6-specific counts of single-direction versus
2700       bidirectional relay connections. Closes ticket 33264.
2701     - Relays now publish their IPv6 read and write statistics over time,
2702       if statistics are enabled. Closes ticket 33263.
2704   o Minor features (subprotocol versions):
2705     - Tor no longer allows subprotocol versions larger than 63.
2706       Previously version numbers up to UINT32_MAX were allowed, which
2707       significantly complicated our code. Implements proposal 318;
2708       closes ticket 40133.
2709     - Use the new limitations on subprotocol versions due to proposal
2710       318 to simplify our implementation. Part of ticket 40133.
2712   o Minor features (testing configuration):
2713     - The TestingTorNetwork option no longer implicitly sets
2714       AssumeReachable to 1. This change allows us to test relays' self-
2715       testing mechanisms, and to test authorities' relay-testing
2716       functionality. Closes ticket 34446.
2718   o Minor features (testing):
2719     - Added unit tests for channel_matches_target_addr_for_extend().
2720       Closes Ticket 33919. Patch by MrSquanchee.
2722   o Minor features (tests, v2 onion services):
2723     - Fix a rendezvous cache unit test that was triggering an underflow
2724       on the global rend cache allocation. Fixes bug 40125; bugfix
2725       on 0.2.8.1-alpha.
2726     - Fix another rendezvous cache unit test that was triggering an
2727       underflow on the global rend cache allocation. Fixes bug 40126;
2728       bugfix on 0.2.8.1-alpha.
2730   o Minor bugfixes (circuit padding):
2731     - When circpad_send_padding_cell_for_callback is called,
2732       `is_padding_timer_scheduled` flag was not reset. Now it is set to
2733       0 at the top of that function. Fixes bug 32671; bugfix
2734       on 0.4.0.1-alpha.
2735     - Add a per-circuit padding machine instance counter, so we can
2736       differentiate between shutdown requests for old machines on a
2737       circuit. Fixes bug 30992; bugfix on 0.4.1.1-alpha.
2738     - Add the ability to keep circuit padding machines if they match a
2739       set of circuit states or purposes. This allows us to have machines
2740       that start up under some conditions but don't shut down under
2741       others. We now use this mask to avoid starting up introduction
2742       circuit padding again after the machines have already completed.
2743       Fixes bug 32040; bugfix on 0.4.1.1-alpha.
2745   o Minor bugfixes (compatibility):
2746     - Strip '\r' characters when reading text files on Unix platforms.
2747       This should resolve an issue where a relay operator migrates a
2748       relay from Windows to Unix, but does not change the line ending of
2749       Tor's various state files to match the platform, and the CRLF line
2750       endings from Windows end up leaking into other files such as the
2751       extra-info document. Fixes bug 33781; bugfix on 0.0.9pre5.
2753   o Minor bugfixes (compilation):
2754     - Fix compiler warnings that would occur when building with
2755       "--enable-all-bugs-are-fatal" and "--disable-module-relay" at the
2756       same time. Fixes bug 40129; bugfix on 0.4.4.1-alpha.
2757     - Resolve a compilation warning that could occur in
2758       test_connection.c. Fixes bug 40113; bugfix on 0.2.9.3-alpha.
2760   o Minor bugfixes (configuration):
2761     - Fix bug where %including a pattern ending with */ would include
2762       files and folders (instead of folders only) in versions of glibc <
2763       2.19. Fixes bug 40141; bugfix on 0.4.5.0-alpha-dev. Patch by
2764       Daniel Pinto.
2766   o Minor bugfixes (control port):
2767     - Make sure we send the SOCKS request address in relay begin cells
2768       when a stream is attached with the purpose
2769       CIRCUIT_PURPOSE_CONTROLLER. Fixes bug 33124; bugfix on 0.0.5.
2770       Patch by Neel Chauhan.
2772   o Minor bugfixes (logging):
2773     - Remove a debug logging statement that uselessly spammed the logs.
2774       Fixes bug 40135; bugfix on 0.3.5.0-alpha.
2775     - When logging a rate-limited message about how many messages have
2776       been suppressed in the last N seconds, give an accurate value for
2777       N, rounded up to the nearest minute. Previously we would report
2778       the size of the rate-limiting interval, regardless of when the
2779       messages started to occur. Fixes bug 19431; bugfix
2780       on 0.2.2.16-alpha.
2782   o Minor bugfixes (relay configuration, crash):
2783     - Avoid a fatal assert() when failing to create a listener
2784       connection for an address that was in use. Fixes bug 40073; bugfix
2785       on 0.3.5.1-alpha.
2787   o Minor bugfixes (rust, protocol versions):
2788     - Declare support for the onion service introduction point denial of
2789       service extensions when building with Rust. Fixes bug 34248;
2790       bugfix on 0.4.2.1-alpha.
2791     - Make Rust protocol version support checks consistent with the
2792       undocumented error behavior of the corresponding C code. Fixes bug
2793       34251; bugfix on 0.3.3.5-rc.
2795   o Minor bugfixes (self-testing):
2796     - When receiving an incoming circuit, only accept it as evidence
2797       that we are reachable if the declared address of its channel is
2798       the same address we think that we have. Otherwise, it could be
2799       evidence that we're reachable on some other address. Fixes bug
2800       20165; bugfix on 0.1.0.1-rc.
2802   o Minor bugfixes (spec conformance):
2803     - Use the correct key type when generating signing->link
2804       certificates. Fixes bug 40124; bugfix on 0.2.7.2-alpha.
2806   o Minor bugfixes (subprotocol versions):
2807     - Consistently reject extra commas, instead of only rejecting
2808       leading commas. Fixes bug 27194; bugfix on 0.2.9.4-alpha.
2809     - In summarize_protover_flags(), treat empty strings the same as
2810       NULL. This prevents protocols_known from being set. Previously, we
2811       treated empty strings as normal strings, which led to
2812       protocols_known being set. Fixes bug 34232; bugfix on
2813       0.3.3.2-alpha. Patch by Neel Chauhan.
2815   o Minor bugfixes (v2 onion services):
2816     - For HSFETCH commands on v2 onion services addresses, check the
2817       length of bytes decoded, not the base32 length. Fixes bug 34400;
2818       bugfix on 0.4.1.1-alpha. Patch by Neel Chauhan.
2820   o Code simplification and refactoring:
2821     - Add and use a set of functions to perform down-casts on constant
2822       connection and channel pointers. Closes ticket 40046.
2823     - Refactor our code that logs descriptions of connections, channels,
2824       and the peers on them, to use a single call path. This change
2825       enables us to refactor the data types that they use, and eliminates
2826       many confusing usages of those types. Closes ticket 40041.
2827     - Refactor some common node selection code into a single function.
2828       Closes ticket 34200.
2829     - Remove the now-redundant 'outbuf_flushlen' field from our
2830       connection type. It was previously used for an older version of
2831       our rate-limiting logic. Closes ticket 33097.
2832     - Rename "fascist_firewall_*" identifiers to "reachable_addr_*"
2833       instead, for consistency with other code. Closes ticket 18106.
2834     - Rename functions about "advertised" ports which are not in fact
2835       guaranteed to return the ports that have been advertised. Closes
2836       ticket 40055.
2837     - Split implementation of several command line options from
2838       options_init_from_torrc into smaller isolated functions. Patch by
2839       Daniel Pinto. Closes ticket 40102.
2840     - When an extend cell is missing an IPv4 or IPv6 address, fill in
2841       the address from the extend info. This is similar to what was done
2842       in ticket 33633 for ed25519 keys. Closes ticket 33816. Patch by
2843       Neel Chauhan.
2845   o Deprecated features:
2846     - The "non-builtin" argument to the "--dump-config" command is now
2847       deprecated. When it works, it behaves the same as "short", which
2848       you should use instead. Closes ticket 33398.
2850   o Documentation:
2851     - Replace URLs from our old bugtracker so that they refer to the new
2852       bugtracker and wiki. Closes ticket 40101.
2854   o Removed features:
2855     - We no longer ship or build a "tor.service" file for use with
2856       systemd. No distribution included this script unmodified, and we
2857       don't have the expertise ourselves to maintain this in a way that
2858       all the various systemd-based distributions can use. Closes
2859       ticket 30797.
2860     - We no longer ship support for the Android logging API. Modern
2861       versions of Android can use the syslog API instead. Closes
2862       ticket 32181.
2863     - The "optimistic data" feature is now always on; there is no longer
2864       an option to disable it from the torrc file or from the consensus
2865       directory. Closes part of 40139.
2866     - The "usecreatefast" network parameter is now removed; there is no
2867       longer an option for authorities to turn it off. Closes part
2868       of 40139.
2870   o Testing:
2871     - Add unit tests for bandwidth statistics manipulation functions.
2872       Closes ticket 33812. Patch by MrSquanchee.
2874   o Code simplification and refactoring (autoconf):
2875     - Remove autoconf checks for unused funcs and headers. Closes ticket
2876       31699; Patch by @bduszel
2878   o Code simplification and refactoring (maintainer scripts):
2879     - Disable by default the pre-commit hook. Use the environment
2880       variable TOR_EXTRA_PRE_COMMIT_CHECKS in order to run it.
2881       Furthermore, stop running practracker in the pre-commit hook and
2882       make check-local. Closes ticket 40019.
2884   o Code simplification and refactoring (relay address):
2885     - Most of IPv4 representation was using "uint32_t". It has now been
2886       moved to use the internal "tor_addr_t" interface instead. This is
2887       so we can properly integrate IPv6 along IPv4 with common
2888       interfaces. Closes ticket 40043.
2890   o Documentation (manual page):
2891     - Move them from doc/ to doc/man/. Closes ticket 40044.
2892     - Describe the status of the "Sandbox" option more accurately. It is
2893       no longer "experimental", but it _is_ dependent on kernel and libc
2894       versions. Closes ticket 23378.
2896   o Documentation (tracing):
2897     - Document in depth the circuit subsystem trace events in the new
2898       doc/tracing/EventsCircuit.md. Closes ticket 40036.
2901 Changes in version 0.4.4.5 - 2020-09-15
2902   Tor 0.4.4.5 is the first stable release in the 0.4.4.x series. This
2903   series improves our guard selection algorithms, adds v3 onion balance
2904   support, improves the amount of code that can be disabled when running
2905   without relay support, and includes numerous small bugfixes and
2906   enhancements. It also lays the ground for some IPv6 features that
2907   we'll be developing more in the next (0.4.5) series.
2909   Per our support policy, we support each stable release series for nine
2910   months after its first stable release, or three months after the first
2911   stable release of the next series: whichever is longer. This means
2912   that 0.4.4.x will be supported until around June 2021--or later, if
2913   0.4.5.x is later than anticipated.
2915   Note also that support for 0.4.2.x has just ended; support for 0.4.3
2916   will continue until Feb 15, 2021. We still plan to continue supporting
2917   0.3.5.x, our long-term stable series, until Feb 2022.
2919   Below are the changes since 0.4.4.4-rc. For a complete list of changes
2920   since 0.4.3.6, see the ReleaseNotes file.
2922   o Major bugfixes (onion services, DoS):
2923     - Correct handling of parameters for the onion service DoS defense.
2924       Previously, the consensus parameters for the onion service DoS
2925       defenses were overwriting the parameters set by the service
2926       operator using HiddenServiceEnableIntroDoSDefense. Fixes bug
2927       40109; bugfix on 0.4.2.1-alpha.
2929   o Major bugfixes (stats, onion services):
2930     - Fix a bug where we were undercounting the Tor network's total
2931       onion service traffic, by ignoring any traffic originating from
2932       clients. Now we count traffic from both clients and services.
2933       Fixes bug 40117; bugfix on 0.2.6.2-alpha.
2935   o Minor features (control port):
2936     - If a ClientName was specified in ONION_CLIENT_AUTH_ADD for an
2937       onion service, display it when we use ONION_CLIENT_AUTH_VIEW.
2938       Closes ticket 40089. Patch by Neel Chauhan.
2940   o Minor features (denial-of-service memory limiter):
2941     - Allow the user to configure even lower values for the
2942       MaxMemInQueues parameter. Relays now enforce a minimum of 64 MB,
2943       when previously the minimum was 256 MB. On clients, there is no
2944       minimum. Relays and clients will both warn if the value is set so
2945       low that Tor is likely to stop working. Closes ticket 24308.
2947   o Minor features (tests):
2948     - Our "make check" target now runs the unit tests in 8 parallel
2949       chunks. Doing this speeds up hardened CI builds by more than a
2950       factor of two. Closes ticket 40098.
2952   o Minor bugfixes (guard selection algorithm):
2953     - Avoid needless guard-related warning when upgrading from 0.4.3 to
2954       0.4.4. Fixes bug 40105; bugfix on 0.4.4.1-alpha.
2956   o Minor bugfixes (tests):
2957     - Fix the behavior of the rend_cache/clean_v2_descs_as_dir when run
2958       on its own. Previously, it would exit with an error. Fixes bug
2959       40099; bugfix on 0.2.8.1-alpha.
2962 Changes in version 0.4.4.3-alpha - 2020-07-27
2963   Tor 0.4.4.3-alpha fixes several annoyances in previous versions,
2964   including one affecting NSS users, and several affecting the Linux
2965   seccomp2 sandbox.
2967   o Major features (fallback directory list):
2968     - Replace the 148 fallback directories originally included in Tor
2969       0.4.1.4-rc (of which around 105 are still functional) with a list
2970       of 144 fallbacks generated in July 2020. Closes ticket 40061.
2972   o Major bugfixes (NSS):
2973     - When running with NSS enabled, make sure that NSS knows to expect
2974       nonblocking sockets. Previously, we set our TCP sockets as
2975       nonblocking, but did not tell NSS, which in turn could lead to
2976       unexpected blocking behavior. Fixes bug 40035; bugfix
2977       on 0.3.5.1-alpha.
2979   o Minor bugfixes (linux seccomp2 sandbox):
2980     - Fix a regression on sandboxing rules for the openat() syscall. The
2981       fix for bug 25440 fixed the problem on systems with glibc >= 2.27
2982       but broke with versions of glibc. We now choose a rule based on
2983       the glibc version. Patch from Daniel Pinto. Fixes bug 27315;
2984       bugfix on 0.3.5.11.
2985     - Makes the seccomp sandbox allow the correct syscall for opendir
2986       according to the running glibc version. This fixes crashes when
2987       reloading torrc with sandbox enabled when running on glibc 2.15 to
2988       2.21 and 2.26. Patch from Daniel Pinto. Fixes bug 40020; bugfix
2989       on 0.3.5.11.
2991   o Minor bugfixes (relay, usability):
2992     - Adjust the rules for when to warn about having too many
2993       connections to other relays. Previously we'd tolerate up to 1.5
2994       connections per relay on average. Now we tolerate more connections
2995       for directory authorities, and raise the number of total
2996       connections we need to see before we warn. Fixes bug 33880; bugfix
2997       on 0.3.1.1-alpha.
2999   o Documentation:
3000     - Replace most http:// URLs in our code and documentation with
3001       https:// URLs. (We have left unchanged the code in src/ext/, and
3002       the text in LICENSE.) Closes ticket 31812. Patch from Jeremy Rand.
3004   o Removed features:
3005     - Our "check-local" test target no longer tries to use the
3006       Coccinelle semantic patching tool parse all the C files. While it
3007       is a good idea to try to make sure Coccinelle works on our C
3008       before we run a Coccinelle patch, doing so on every test run has
3009       proven to be disruptive. You can still run this tool manually with
3010       "make check-cocci". Closes ticket 40030.
3013 Changes in version 0.3.5.11 - 2020-07-09
3014   Tor 0.3.5.11 backports fixes from later tor releases, including several
3015   usability, portability, and reliability fixes.
3017   This release also fixes TROVE-2020-001, a medium-severity denial of
3018   service vulnerability affecting all versions of Tor when compiled with
3019   the NSS encryption library. (This is not the default configuration.)
3020   Using this vulnerability, an attacker could cause an affected Tor
3021   instance to crash remotely. This issue is also tracked as CVE-2020-
3022   15572. Anybody running a version of Tor built with the NSS library
3023   should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha
3024   or later.
3026   o Major bugfixes (NSS, security, backport from 0.4.4.2-alpha):
3027     - Fix a crash due to an out-of-bound memory access when Tor is
3028       compiled with NSS support. Fixes bug 33119; bugfix on
3029       0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001
3030       and CVE-2020-15572.
3032   o Major bugfixes (DoS defenses, bridges, pluggable transport, backport from 0.4.3.4-rc):
3033     - Fix a bug that was preventing DoS defenses from running on bridges
3034       with a pluggable transport. Previously, the DoS subsystem was not
3035       given the transport name of the client connection, thus failed to
3036       find the GeoIP cache entry for that client address. Fixes bug
3037       33491; bugfix on 0.3.3.2-alpha.
3039   o Minor features (testing, backport from 0.4.3.4-rc):
3040     - The unit tests now support a "TOR_SKIP_TESTCASES" environment
3041       variable to specify a list of space-separated test cases that
3042       should not be executed. We will use this to disable certain tests
3043       that are failing on Appveyor because of mismatched OpenSSL
3044       libraries. Part of ticket 33643.
3046   o Minor bugfix (CI, Windows, backport from 0.4.4.2-alpha):
3047     - Use the correct 64-bit printf format when compiling with MINGW on
3048       Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha.
3050   o Minor bugfix (relay, configuration, backport from 0.4.3.3-alpha):
3051     - Warn if the ContactInfo field is not set, and tell the relay
3052       operator that not having a ContactInfo field set might cause their
3053       relay to get rejected in the future. Fixes bug 33361; bugfix
3054       on 0.1.1.10-alpha.
3056   o Minor bugfixes (client performance, backport from 0.4.4.1-alpha):
3057     - Resume use of preemptively-built circuits when UseEntryGuards is set
3058       to 0. We accidentally disabled this feature with that config
3059       setting, leading to slower load times. Fixes bug 34303; bugfix
3060       on 0.3.3.2-alpha.
3062   o Minor bugfixes (compiler compatibility, backport from 0.4.3.5):
3063     - Avoid compiler warnings from Clang 10 related to the use of GCC-
3064       style "/* falls through */" comments. Both Clang and GCC allow
3065       __attribute__((fallthrough)) instead, so that's what we're using
3066       now. Fixes bug 34078; bugfix on 0.3.1.3-alpha.
3068   o Minor bugfixes (compiler warnings, backport from 0.4.4.2-alpha):
3069     - Fix a compiler warning on platforms with 32-bit time_t values.
3070       Fixes bug 40028; bugfix on 0.3.2.8-rc.
3072   o Minor bugfixes (embedded Tor, backport from 0.4.3.1-alpha):
3073     - When starting Tor any time after the first time in a process,
3074       register the thread in which it is running as the main thread.
3075       Previously, we only did this on Windows, which could lead to bugs
3076       like 23081 on non-Windows platforms. Fixes bug 32884; bugfix
3077       on 0.3.3.1-alpha.
3079   o Minor bugfixes (key portability, backport from 0.4.3.4-rc):
3080     - When reading PEM-encoded key data, tolerate CRLF line-endings even
3081       if we are not running on Windows. Previously, non-Windows hosts
3082       would reject these line-endings in certain positions, making
3083       certain key files hard to move from one host to another. Fixes bug
3084       33032; bugfix on 0.3.5.1-alpha.
3086   o Minor bugfixes (logging, backport from 0.4.4.2-alpha):
3087     - Downgrade a noisy log message that could occur naturally when
3088       receiving an extrainfo document that we no longer want. Fixes bug
3089       16016; bugfix on 0.2.6.3-alpha.
3091   o Minor bugfixes (onion service v3, client, backport from 0.4.3.3-alpha):
3092     - Remove a BUG() warning that would cause a stack trace if an onion
3093       service descriptor was freed while we were waiting for a
3094       rendezvous circuit to complete. Fixes bug 28992; bugfix
3095       on 0.3.2.1-alpha.
3097   o Testing (CI, backport from 0.4.3.4-rc):
3098     - In our Appveyor Windows CI, copy required DLLs to test and app
3099       directories, before running tor's tests. This ensures that tor.exe
3100       and test*.exe use the correct version of each DLL. This fix is not
3101       required, but we hope it will avoid DLL search issues in future.
3102       Fixes bug 33673; bugfix on 0.3.4.2-alpha.
3103     - On Appveyor, skip the crypto/openssl_version test, which is
3104       failing because of a mismatched library installation. Fix
3105       for 33643.
3108 Changes in version 0.4.2.8 - 2020-07-09
3109   Tor 0.4.2.8 backports various fixes from later releases, including
3110   several that affect usability and portability.
3112   This release also fixes TROVE-2020-001, a medium-severity denial of
3113   service vulnerability affecting all versions of Tor when compiled with
3114   the NSS encryption library. (This is not the default configuration.)
3115   Using this vulnerability, an attacker could cause an affected Tor
3116   instance to crash remotely. This issue is also tracked as CVE-2020-
3117   15572. Anybody running a version of Tor built with the NSS library
3118   should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha
3119   or later.
3121   o Major bugfixes (NSS, security, backport from 0.4.4.2-alpha):
3122     - Fix a crash due to an out-of-bound memory access when Tor is
3123       compiled with NSS support. Fixes bug 33119; bugfix on
3124       0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001
3125       and CVE-2020-15572.
3127   o Major bugfixes (DoS defenses, bridges, pluggable transport, backport from 0.4.3.4-rc):
3128     - Fix a bug that was preventing DoS defenses from running on bridges
3129       with a pluggable transport. Previously, the DoS subsystem was not
3130       given the transport name of the client connection, thus failed to
3131       find the GeoIP cache entry for that client address. Fixes bug
3132       33491; bugfix on 0.3.3.2-alpha.
3134   o Minor feature (sendme, flow control, backport form 0.4.3.4-rc):
3135     - Default to sending SENDME version 1 cells. (Clients are already
3136       sending these, because of a consensus parameter telling them to do
3137       so: this change only affects what clients would do if the
3138       consensus didn't contain a recommendation.) Closes ticket 33623.
3140   o Minor features (diagnostic, backport from 0.4.3.3-alpha):
3141     - Improve assertions and add some memory-poisoning code to try to
3142       track down possible causes of a rare crash (32564) in the EWMA
3143       code. Closes ticket 33290.
3145   o Minor features (testing, backport from 0.4.3.4-rc):
3146     - The unit tests now support a "TOR_SKIP_TESTCASES" environment
3147       variable to specify a list of space-separated test cases that
3148       should not be executed. We will use this to disable certain tests
3149       that are failing on Appveyor because of mismatched OpenSSL
3150       libraries. Part of ticket 33643.
3152   o Minor bugfix (CI, Windows, backport from 0.4.4.2-alpha):
3153     - Use the correct 64-bit printf format when compiling with MINGW on
3154       Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha.
3156   o Minor bugfix (relay, configuration, backport from 0.4.3.3-alpha):
3157     - Warn if the ContactInfo field is not set, and tell the relay
3158       operator that not having a ContactInfo field set might cause their
3159       relay to get rejected in the future. Fixes bug 33361; bugfix
3160       on 0.1.1.10-alpha.
3162   o Minor bugfixes (client performance, backport from 0.4.4.1-alpha):
3163     - Resume use of preemptively-built circuits when UseEntryGuards is set
3164       to 0. We accidentally disabled this feature with that config
3165       setting, leading to slower load times. Fixes bug 34303; bugfix
3166       on 0.3.3.2-alpha.
3168   o Minor bugfixes (compiler compatibility, backport from 0.4.3.5):
3169     - Avoid compiler warnings from Clang 10 related to the use of GCC-
3170       style "/* falls through */" comments. Both Clang and GCC allow
3171       __attribute__((fallthrough)) instead, so that's what we're using
3172       now. Fixes bug 34078; bugfix on 0.3.1.3-alpha.
3173     - Fix compilation warnings with GCC 10.0.1. Fixes bug 34077; bugfix
3174       on 0.4.0.3-alpha.
3176   o Minor bugfixes (compiler warnings, backport from 0.4.4.2-alpha):
3177     - Fix a compiler warning on platforms with 32-bit time_t values.
3178       Fixes bug 40028; bugfix on 0.3.2.8-rc.
3180   o Minor bugfixes (controller protocol, backport from 0.4.3.2-alpha):
3181     - When receiving "ACTIVE" or "DORMANT" signals on the control port,
3182       report them as SIGNAL events. Previously we would log a bug
3183       warning. Fixes bug 33104; bugfix on 0.4.0.1-alpha.
3185   o Minor bugfixes (embedded Tor, backport from 0.4.3.1-alpha):
3186     - When starting Tor any time after the first time in a process,
3187       register the thread in which it is running as the main thread.
3188       Previously, we only did this on Windows, which could lead to bugs
3189       like 23081 on non-Windows platforms. Fixes bug 32884; bugfix
3190       on 0.3.3.1-alpha.
3192   o Minor bugfixes (key portability, backport from 0.4.3.4-rc):
3193     - When reading PEM-encoded key data, tolerate CRLF line-endings even
3194       if we are not running on Windows. Previously, non-Windows hosts
3195       would reject these line-endings in certain positions, making
3196       certain key files hard to move from one host to another. Fixes bug
3197       33032; bugfix on 0.3.5.1-alpha.
3199   o Minor bugfixes (logging, backport from 0.4.3.2-rc):
3200     - When logging a bug, do not say "Future instances of this warning
3201       will be silenced" unless we are actually going to silence them.
3202       Previously we would say this whenever a BUG() check failed in the
3203       code. Fixes bug 33095; bugfix on 0.4.1.1-alpha.
3205   o Minor bugfixes (logging, backport from 0.4.3.4-rc):
3206     - Flush stderr, stdout, and file logs during shutdown, if supported
3207       by the OS. This change helps make sure that any final logs are
3208       recorded. Fixes bug 33087; bugfix on 0.4.1.6.
3210   o Minor bugfixes (logging, backport from 0.4.4.2-alpha):
3211     - Downgrade a noisy log message that could occur naturally when
3212       receiving an extrainfo document that we no longer want. Fixes bug
3213       16016; bugfix on 0.2.6.3-alpha.
3215   o Minor bugfixes (onion service v3, client, backport from 0.4.3.3-alpha):
3216     - Remove a BUG() warning that would cause a stack trace if an onion
3217       service descriptor was freed while we were waiting for a
3218       rendezvous circuit to complete. Fixes bug 28992; bugfix
3219       on 0.3.2.1-alpha.
3221   o Testing (CI, backport from 0.4.3.4-rc):
3222     - In our Appveyor Windows CI, copy required DLLs to test and app
3223       directories, before running tor's tests. This ensures that tor.exe
3224       and test*.exe use the correct version of each DLL. This fix is not
3225       required, but we hope it will avoid DLL search issues in future.
3226       Fixes bug 33673; bugfix on 0.3.4.2-alpha.
3227     - On Appveyor, skip the crypto/openssl_version test, which is
3228       failing because of a mismatched library installation. Fix
3229       for 33643.
3232 Changes in version 0.4.3.6 - 2020-07-09
3233   Tor 0.4.3.6 backports several bugfixes from later releases, including
3234   some affecting usability.
3236   This release also fixes TROVE-2020-001, a medium-severity denial of
3237   service vulnerability affecting all versions of Tor when compiled with
3238   the NSS encryption library. (This is not the default configuration.)
3239   Using this vulnerability, an attacker could cause an affected Tor
3240   instance to crash remotely. This issue is also tracked as CVE-2020-
3241   15572. Anybody running a version of Tor built with the NSS library
3242   should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha
3243   or later.
3245   o Major bugfixes (NSS, security, backport from 0.4.4.2-alpha):
3246     - Fix a crash due to an out-of-bound memory access when Tor is
3247       compiled with NSS support. Fixes bug 33119; bugfix on
3248       0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001
3249       and CVE-2020-15572.
3251   o Minor bugfix (CI, Windows, backport from 0.4.4.2-alpha):
3252     - Use the correct 64-bit printf format when compiling with MINGW on
3253       Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha.
3255   o Minor bugfixes (client performance, backport from 0.4.4.1-alpha):
3256     - Resume use of preemptively-built circuits when UseEntryGuards is set
3257       to 0. We accidentally disabled this feature with that config
3258       setting, leading to slower load times. Fixes bug 34303; bugfix
3259       on 0.3.3.2-alpha.
3261   o Minor bugfixes (compiler warnings, backport from 0.4.4.2-alpha):
3262     - Fix a compiler warning on platforms with 32-bit time_t values.
3263       Fixes bug 40028; bugfix on 0.3.2.8-rc.
3265   o Minor bugfixes (linux seccomp sandbox, nss, backport from 0.4.4.1-alpha):
3266     - Fix a startup crash when tor is compiled with --enable-nss and
3267       sandbox support is enabled. Fixes bug 34130; bugfix on
3268       0.3.5.1-alpha. Patch by Daniel Pinto.
3270   o Minor bugfixes (logging, backport from 0.4.4.2-alpha):
3271     - Downgrade a noisy log message that could occur naturally when
3272       receiving an extrainfo document that we no longer want. Fixes bug
3273       16016; bugfix on 0.2.6.3-alpha.
3275   o Minor bugfixes (manual page, backport from 0.4.4.1-alpha):
3276     - Update the man page to reflect that MinUptimeHidServDirectoryV2
3277       defaults to 96 hours. Fixes bug 34299; bugfix on 0.2.6.3-alpha.
3279   o Minor bugfixes (onion service v3, backport from 0.4.4.1-alpha):
3280     - Prevent an assert() that would occur when cleaning the client
3281       descriptor cache, and attempting to close circuits for a non-
3282       decrypted descriptor (lacking client authorization). Fixes bug
3283       33458; bugfix on 0.4.2.1-alpha.
3285   o Minor bugfixes (portability, backport from 0.4.4.1-alpha):
3286     - Fix a portability error in the configure script, where we were
3287       using "==" instead of "=". Fixes bug 34233; bugfix on 0.4.3.5.
3289   o Minor bugfixes (relays, backport from 0.4.4.1-alpha):
3290     - Stop advertising incorrect IPv6 ORPorts in relay and bridge
3291       descriptors, when the IPv6 port was configured as "auto". Fixes
3292       bug 32588; bugfix on 0.2.3.9-alpha.
3294   o Documentation (backport from 0.4.4.1-alpha):
3295     - Fix several doxygen warnings related to imbalanced groups. Closes
3296       ticket 34255.
3299 Changes in version 0.4.4.2-alpha - 2020-07-09
3300   This is the second alpha release in the 0.4.4.x series. It fixes a few
3301   bugs in the previous release, and solves a few usability,
3302   compatibility, and portability issues.
3304   This release also fixes TROVE-2020-001, a medium-severity denial of
3305   service vulnerability affecting all versions of Tor when compiled with
3306   the NSS encryption library. (This is not the default configuration.)
3307   Using this vulnerability, an attacker could cause an affected Tor
3308   instance to crash remotely. This issue is also tracked as CVE-2020-
3309   15572. Anybody running a version of Tor built with the NSS library
3310   should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha
3311   or later.
3313   o Major bugfixes (NSS, security):
3314     - Fix a crash due to an out-of-bound memory access when Tor is
3315       compiled with NSS support. Fixes bug 33119; bugfix on
3316       0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001
3317       and CVE-2020-15572.
3319   o Minor features (bootstrap reporting):
3320     - Report more detailed reasons for bootstrap failure when the
3321       failure happens due to a TLS error. Previously we would just call
3322       these errors "MISC" when they happened during read, and "DONE"
3323       when they happened during any other TLS operation. Closes
3324       ticket 32622.
3326   o Minor features (directory authority):
3327     - Authorities now recommend the protocol versions that are supported
3328       by Tor 0.3.5 and later. (Earlier versions of Tor have been
3329       deprecated since January of this year.) This recommendation will
3330       cause older clients and relays to give a warning on startup, or
3331       when they download a consensus directory. Closes ticket 32696.
3333   o Minor features (entry guards):
3334     - Reinstate support for GUARD NEW/UP/DOWN control port events.
3335       Closes ticket 40001.
3337   o Minor features (linux seccomp2 sandbox, portability):
3338     - Allow Tor to build on platforms where it doesn't know how to
3339       report which syscall caused the linux seccomp2 sandbox to fail.
3340       This change should make the sandbox code more portable to less
3341       common Linux architectures. Closes ticket 34382.
3342     - Permit the unlinkat() syscall, which some Libc implementations use
3343       to implement unlink(). Closes ticket 33346.
3345   o Minor bugfix (CI, Windows):
3346     - Use the correct 64-bit printf format when compiling with MINGW on
3347       Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha.
3349   o Minor bugfix (onion service v3 client):
3350     - Remove a BUG() warning that could occur naturally. Fixes bug
3351       34087; bugfix on 0.3.2.1-alpha.
3353   o Minor bugfix (SOCKS, onion service client):
3354     - Detect v3 onion service addresses of the wrong length when
3355       returning the F6 ExtendedErrors code. Fixes bug 33873; bugfix
3356       on 0.4.3.1-alpha.
3358   o Minor bugfixes (compiler warnings):
3359     - Fix a compiler warning on platforms with 32-bit time_t values.
3360       Fixes bug 40028; bugfix on 0.3.2.8-rc.
3362   o Minor bugfixes (control port, onion service):
3363     - Consistently use 'address' in "Invalid v3 address" response to
3364       ONION_CLIENT_AUTH commands. Previously, we would sometimes say
3365       'addr'. Fixes bug 40005; bugfix on 0.4.3.1-alpha.
3367   o Minor bugfixes (logging):
3368     - Downgrade a noisy log message that could occur naturally when
3369       receiving an extrainfo document that we no longer want. Fixes bug
3370       16016; bugfix on 0.2.6.3-alpha.
3372   o Minor bugfixes (onion services v3):
3373     - Avoid a non-fatal assertion failure in certain edge-cases when
3374       opening an intro circuit as a client. Fixes bug 34084; bugfix
3375       on 0.3.2.1-alpha.
3377   o Deprecated features (onion service v2):
3378     - Add a deprecation warning for version 2 onion services. Closes
3379       ticket 40003.
3381   o Removed features (IPv6, revert):
3382     - Revert the change in the default value of ClientPreferIPv6OrPort:
3383       it breaks the torsocks use case. The SOCKS resolve command has no
3384       mechanism to ask for a specific address family (v4 or v6), and so
3385       prioritizing IPv6 when an IPv4 address is requested on the SOCKS
3386       interface resulted in a failure. Tor Browser explicitly sets
3387       PreferIPv6, so this should not affect the majority of our users.
3388       Closes ticket 33796; bugfix on 0.4.4.1-alpha.
3391 Changes in version 0.4.4.1-alpha - 2020-06-16
3392   This is the first alpha release in the 0.4.4.x series.  It improves
3393   our guard selection algorithms, improves the amount of code that
3394   can be disabled when running without relay support, and includes numerous
3395   small bugfixes and enhancements.  It also lays the ground for some IPv6
3396   features that we'll be developing more in the next (0.4.5) series.
3398   Here are the changes since 0.4.3.5.
3400   o Major features (Proposal 310, performance + security):
3401     - Implements Proposal 310, "Bandaid on guard selection". Proposal
3402       310 solves load-balancing issues with older versions of the guard
3403       selection algorithm, and improves its security. Under this new
3404       algorithm, a newly selected guard never becomes Primary unless all
3405       previously sampled guards are unreachable. Implements
3406       recommendation from 32088. (Proposal 310 is linked to the CLAPS
3407       project researching optimal client location-aware path selections.
3408       This project is a collaboration between the UCLouvain Crypto Group,
3409       the U.S. Naval Research Laboratory, and Princeton University.)
3411   o Major features (IPv6, relay):
3412     - Consider IPv6-only EXTEND2 cells valid on relays. Log a protocol
3413       warning if the IPv4 or IPv6 address is an internal address, and
3414       internal addresses are not allowed. But continue to use the other
3415       address, if it is valid. Closes ticket 33817.
3416     - If a relay can extend over IPv4 and IPv6, and both addresses are
3417       provided, it chooses between them uniformly at random. Closes
3418       ticket 33817.
3419     - Re-use existing IPv6 connections for circuit extends. Closes
3420       ticket 33817.
3421     - Relays may extend circuits over IPv6, if the relay has an IPv6
3422       ORPort, and the client supplies the other relay's IPv6 ORPort in
3423       the EXTEND2 cell. IPv6 extends will be used by the relay IPv6
3424       ORPort self-tests in 33222. Closes ticket 33817.
3426   o Major features (v3 onion services):
3427     - Allow v3 onion services to act as OnionBalance backend instances,
3428       by using the HiddenServiceOnionBalanceInstance torrc option.
3429       Closes ticket 32709.
3431   o Minor feature (developer tools):
3432     - Add a script to help check the alphabetical ordering of option
3433       names in the manual page. Closes ticket 33339.
3435   o Minor feature (onion service client, SOCKS5):
3436     - Add 3 new SocksPort ExtendedErrors (F2, F3, F7) that reports back
3437       new type of onion service connection failures. The semantics of
3438       these error codes are documented in proposal 309. Closes
3439       ticket 32542.
3441   o Minor feature (onion service v3):
3442     - If a service cannot upload its descriptor(s), log why at INFO
3443       level. Closes ticket 33400; bugfix on 0.3.2.1-alpha.
3445   o Minor feature (python scripts):
3446     - Stop assuming that /usr/bin/python exists. Instead of using a
3447       hardcoded path in scripts that still use Python 2, use
3448       /usr/bin/env, similarly to the scripts that use Python 3. Fixes
3449       bug 33192; bugfix on 0.4.2.
3451   o Minor features (client-only compilation):
3452     - Disable more code related to the ext_orport protocol when
3453       compiling without support for relay mode. Closes ticket 33368.
3454     - Disable more of our self-testing code when support for relay mode
3455       is disabled. Closes ticket 33370.
3457   o Minor features (code safety):
3458     - Check for failures of tor_inet_ntop() and tor_inet_ntoa()
3459       functions in DNS and IP address processing code, and adjust
3460       codepaths to make them less likely to crash entire Tor instances.
3461       Resolves issue 33788.
3463   o Minor features (compilation size):
3464     - Most server-side DNS code is now disabled when building without
3465       support for relay mode. Closes ticket 33366.
3467   o Minor features (continuous integration):
3468     - Run unit-test and integration test (Stem, Chutney) jobs with
3469       ALL_BUGS_ARE_FATAL macro being enabled on Travis and Appveyor.
3470       Resolves ticket 32143.
3472   o Minor features (control port):
3473     - Return a descriptive error message from the 'GETINFO status/fresh-
3474       relay-descs' command on the control port. Previously, we returned
3475       a generic error of "Error generating descriptor". Closes ticket
3476       32873. Patch by Neel Chauhan.
3478   o Minor features (developer tooling):
3479     - Refrain from listing all .a files that are generated by the Tor
3480       build in .gitignore. Add a single wildcard *.a entry that covers
3481       all of them for present and future. Closes ticket 33642.
3482     - Add a script ("git-install-tools.sh") to install git hooks and
3483       helper scripts. Closes ticket 33451.
3485   o Minor features (directory authority, shared random):
3486     - Refactor more authority-only parts of the shared-random scheduling
3487       code to reside in the dirauth module, and to be disabled when
3488       compiling with --disable-module-dirauth. Closes ticket 33436.
3490   o Minor features (directory):
3491     - Remember the number of bytes we have downloaded for each directory
3492       purpose while bootstrapping, and while fully bootstrapped. Log
3493       this information as part of the heartbeat message. Closes
3494       ticket 32720.
3496   o Minor features (IPv6 support):
3497     - Adds IPv6 support to tor_addr_is_valid(). Adds tests for the above
3498       changes and tor_addr_is_null(). Closes ticket 33679. Patch
3499       by MrSquanchee.
3500     - Allow clients and relays to send dual-stack and IPv6-only EXTEND2
3501       cells. Parse dual-stack and IPv6-only EXTEND2 cells on relays.
3502       Closes ticket 33901.
3504   o Minor features (logging):
3505     - When trying to find our own address, add debug-level logging to
3506       report the sources of candidate addresses. Closes ticket 32888.
3508   o Minor features (testing, architecture):
3509     - Our test scripts now double-check that subsystem initialization
3510       order is consistent with the inter-module dependencies established
3511       by our .may_include files. Implements ticket 31634.
3512     - Initialize all subsystems at the beginning of our unit test
3513       harness, to avoid crashes due to uninitialized subsystems. Follow-
3514       up from ticket 33316.
3516   o Minor features (v3 onion services):
3517     - Add v3 onion service status to the dumpstats() call which is
3518       triggered by a SIGUSR1 signal. Previously, we only did v2 onion
3519       services. Closes ticket 24844. Patch by Neel Chauhan.
3521   o Minor features (windows):
3522     - Add support for console control signals like Ctrl+C in Windows.
3523       Closes ticket 34211. Patch from Damon Harris (TheDcoder).
3525   o Minor bugfix (onion service v3):
3526     - Prevent an assert() that would occur when cleaning the client
3527       descriptor cache, and attempting to close circuits for a non-
3528       decrypted descriptor (lacking client authorization). Fixes bug
3529       33458; bugfix on 0.4.2.1-alpha.
3531   o Minor bugfix (refactoring):
3532     - Lift circuit_build_times_disabled() out of the
3533       circuit_expire_building() loop, to save CPU time when there are
3534       many circuits open. Fixes bug 33977; bugfix on 0.3.5.9.
3536   o Minor bugfixes (client performance):
3537     - Resume use of preemptively-built circuits when UseEntryGuards is set
3538       to 0. We accidentally disabled this feature with that config
3539       setting, leading to slower load times. Fixes bug 34303; bugfix
3540       on 0.3.3.2-alpha.
3542   o Minor bugfixes (directory authorities):
3543     - Directory authorities now reject votes that arrive too late. In
3544       particular, once an authority has started fetching missing votes,
3545       it no longer accepts new votes posted by other authorities. This
3546       change helps prevent a consensus split, where only some authorities
3547       have the late vote. Fixes bug 4631; bugfix on 0.2.0.5-alpha.
3549   o Minor bugfixes (git scripts):
3550     - Stop executing the checked-out pre-commit hook from the pre-push
3551       hook. Instead, execute the copy in the user's git directory. Fixes
3552       bug 33284; bugfix on 0.4.1.1-alpha.
3554   o Minor bugfixes (initialization):
3555     - Initialize the subsystems in our code in an order more closely
3556       corresponding to their dependencies, so that every system is
3557       initialized before the ones that (theoretically) depend on it.
3558       Fixes bug 33316; bugfix on 0.4.0.1-alpha.
3560   o Minor bugfixes (IPv4, relay):
3561     - Check for invalid zero IPv4 addresses and ports when sending and
3562       receiving extend cells. Fixes bug 33900; bugfix on 0.2.4.8-alpha.
3564   o Minor bugfixes (IPv6, relay):
3565     - Consider IPv6 addresses when checking if a connection is
3566       canonical. In 17604, relays assumed that a remote relay could
3567       consider an IPv6 connection canonical, but did not set the
3568       canonical flag on their side of the connection. Fixes bug 33899;
3569       bugfix on 0.3.1.1-alpha.
3570     - Log IPv6 addresses on connections where this relay is the
3571       responder. Previously, responding relays would replace the remote
3572       IPv6 address with the IPv4 address from the consensus. Fixes bug
3573       33899; bugfix on 0.3.1.1-alpha.
3575   o Minor bugfixes (linux seccomp sandbox nss):
3576     - Fix a startup crash when tor is compiled with --enable-nss and
3577       sandbox support is enabled. Fixes bug 34130; bugfix on
3578       0.3.5.1-alpha. Patch by Daniel Pinto.
3580   o Minor bugfixes (logging, testing):
3581     - Make all of tor's assertion macros support the ALL_BUGS_ARE_FATAL
3582       and DISABLE_ASSERTS_IN_UNIT_TESTS debugging modes. (IF_BUG_ONCE()
3583       used to log a non-fatal warning, regardless of the debugging
3584       mode.) Fixes bug 33917; bugfix on 0.2.9.1-alpha.
3586   o Minor bugfixes (logs):
3587     - Remove surprising empty line in the INFO-level log about circuit
3588       build timeout. Fixes bug 33531; bugfix on 0.3.3.1-alpha.
3590   o Minor bugfixes (mainloop):
3591     - Better guard against growing a buffer past its maximum 2GB in
3592       size. Fixes bug 33131; bugfix on 0.3.0.4-rc.
3594   o Minor bugfixes (manual page):
3595     - Update the man page to reflect that MinUptimeHidServDirectoryV2
3596       defaults to 96 hours. Fixes bug 34299; bugfix on 0.2.6.3-alpha.
3598   o Minor bugfixes (onion service v3, client):
3599     - Remove a BUG() that was causing a stacktrace when a descriptor
3600       changed at an unexpected time. Fixes bug 28992; bugfix
3601       on 0.3.2.1-alpha.
3603   o Minor bugfixes (onion service, logging):
3604     - Fix a typo in a log message PublishHidServDescriptors is set to 0.
3605       Fixes bug 33779; bugfix on 0.3.2.1-alpha.
3607   o Minor bugfixes (portability):
3608     - Fix a portability error in the configure script, where we were
3609       using "==" instead of "=". Fixes bug 34233; bugfix on 0.4.3.5.
3611   o Minor bugfixes (protocol versions):
3612     - Sort tor's supported protocol version lists, as recommended by the
3613       tor directory specification. Fixes bug 33285; bugfix
3614       on 0.4.0.1-alpha.
3616   o Minor bugfixes (relays):
3617     - Stop advertising incorrect IPv6 ORPorts in relay and bridge
3618       descriptors, when the IPv6 port was configured as "auto". Fixes
3619       bug 32588; bugfix on 0.2.3.9-alpha.
3621   o Code simplification and refactoring:
3622     - Define and use a new constant TOR_ADDRPORT_BUF_LEN which is like
3623       TOR_ADDR_BUF_LEN but includes enough space for an IP address,
3624       brackets, separating colon, and port number. Closes ticket 33956.
3625       Patch by Neel Chauhan.
3626     - Merge the orconn and ocirc events into the "core" subsystem, which
3627       manages or connections and origin circuits. Previously they were
3628       isolated in subsystems of their own.
3629     - Move LOG_PROTOCOL_WARN to app/config. Resolves a dependency
3630       inversion. Closes ticket 33633.
3631     - Move the circuit extend code to the relay module. Split the
3632       circuit extend function into smaller functions. Closes
3633       ticket 33633.
3634     - Rewrite port_parse_config() to use the default port flags from
3635       port_cfg_new(). Closes ticket 32994. Patch by MrSquanchee.
3636     - Updated comments in 'scheduler.c' to reflect old code changes, and
3637       simplified the scheduler channel state change code. Closes
3638       ticket 33349.
3640   o Documentation:
3641     - Document the limitations of using %include on config files with
3642       seccomp sandbox enabled. Fixes documentation bug 34133; bugfix on
3643       0.3.1.1-alpha. Patch by Daniel Pinto.
3644     - Fix several doxygen warnings related to imbalanced groups. Closes
3645       ticket 34255.
3647   o Removed features:
3648     - Remove the ClientAutoIPv6ORPort option. This option attempted to
3649       randomly choose between IPv4 and IPv6 for client connections, and
3650       wasn't a true implementation of Happy Eyeballs. Often, this option
3651       failed on IPv4-only or IPv6-only connections. Closes ticket 32905.
3652       Patch by Neel Chauhan.
3653     - Stop shipping contrib/dist/rc.subr file, as it is not being used
3654       on FreeBSD anymore. Closes issue 31576.
3656   o Testing:
3657     - Add a basic IPv6 test to "make test-network". This test only runs
3658       when the local machine has an IPv6 stack. Closes ticket 33300.
3659     - Add test-network-ipv4 and test-network-ipv6 jobs to the Makefile.
3660       These jobs run the IPv4-only and dual-stack chutney flavours from
3661       test-network-all. Closes ticket 33280.
3662     - Remove a redundant distcheck job. Closes ticket 33194.
3663     - Run the test-network-ipv6 Makefile target in the Travis CI IPv6
3664       chutney job. This job runs on macOS, so it's a bit slow. Closes
3665       ticket 33303.
3666     - Sort the Travis jobs in order of speed. Putting the slowest jobs
3667       first takes full advantage of Travis job concurrency. Closes
3668       ticket 33194.
3669     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
3670       previously configured to fast_finish (which requires
3671       allow_failure), to speed up the build. Closes ticket 33195.
3672     - Test v3 onion services to tor's mixed IPv4 chutney network. And
3673       add a mixed IPv6 chutney network. These networks are used in the
3674       test-network-all, test-network-ipv4, and test-network-ipv6 make
3675       targets. Closes ticket 33334.
3676     - Use the "bridges+hs-v23" chutney network flavour in "make test-
3677       network". This test requires a recent version of chutney (mid-
3678       February 2020). Closes ticket 28208.
3679     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
3680       tool to produce detailed diagnostic output. Closes ticket 32792.
3682   o Code simplification and refactoring (onion service):
3683     - Refactor configuration parsing to use the new config subsystem
3684       code. Closes ticket 33014.
3686   o Code simplification and refactoring (relay address):
3687     - Move a series of functions related to address resolving into their
3688       own files. Closes ticket 33789.
3690   o Documentation (manual page):
3691     - Add cross reference links and a table of contents to the HTML tor
3692       manual page. Closes ticket 33369. Work by Swati Thacker as part of
3693       Google Season of Docs.
3694     - Alphabetize the Denial of Service Mitigation Options, Directory
3695       Authority Server Options, Hidden Service Options, and Testing
3696       Network Options sections of the tor(1) manual page. Closes ticket
3697       33275. Work by Swati Thacker as part of Google Season of Docs.
3698     - Refrain from mentioning nicknames in manpage section for MyFamily
3699       torrc option. Resolves issue 33417.
3700     - Updated the options set by TestingTorNetwork in the manual page.
3701       Closes ticket 33778.
3704 Changes in version 0.4.3.5 - 2020-05-15
3705   Tor 0.4.3.5 is the first stable release in the 0.4.3.x series. This
3706   series adds support for building without relay code enabled, and
3707   implements functionality needed for OnionBalance with v3 onion
3708   services. It includes significant refactoring of our configuration and
3709   controller functionality, and fixes numerous smaller bugs and
3710   performance issues.
3712   Per our support policy, we support each stable release series for nine
3713   months after its first stable release, or three months after the first
3714   stable release of the next series: whichever is longer. This means
3715   that 0.4.3.x will be supported until around February 2021--later, if
3716   0.4.4.x is later than anticipated.
3718   Note also that support for 0.4.1.x is about to end on May 20 of this
3719   year; 0.4.2.x will be supported until September 15. We still plan to
3720   continue supporting 0.3.5.x, our long-term stable series, until
3721   Feb 2022.
3723   Below are the changes since 0.4.3.4-rc. For a complete list of changes
3724   since 0.4.2.6, see the ReleaseNotes file.
3726   o Minor bugfixes (compiler compatibility):
3727     - Avoid compiler warnings from Clang 10 related to the use of GCC-
3728       style "/* falls through */" comments. Both Clang and GCC allow
3729       __attribute__((fallthrough)) instead, so that's what we're using
3730       now. Fixes bug 34078; bugfix on 0.3.1.3-alpha.
3731     - Fix compilation warnings with GCC 10.0.1. Fixes bug 34077; bugfix
3732       on 0.4.0.3-alpha.
3734   o Minor bugfixes (logging):
3735     - Stop truncating IPv6 addresses and ports in channel and connection
3736       logs. Fixes bug 33918; bugfix on 0.2.4.4-alpha.
3737     - Fix a logic error in a log message about whether an address was
3738       invalid. Previously, the code would never report that onion
3739       addresses were onion addresses. Fixes bug 34131; bugfix
3740       on 0.4.3.1-alpha.
3743 Changes in version 0.4.3.4-rc - 2020-04-13
3744   Tor 0.4.3.4-rc is the first release candidate in its series. It fixes
3745   several bugs from earlier versions, including one affecting DoS
3746   defenses on bridges using pluggable transports.
3748   o Major bugfixes (DoS defenses, bridges, pluggable transport):
3749     - Fix a bug that was preventing DoS defenses from running on bridges
3750       with a pluggable transport. Previously, the DoS subsystem was not
3751       given the transport name of the client connection, thus failed to
3752       find the GeoIP cache entry for that client address. Fixes bug
3753       33491; bugfix on 0.3.3.2-alpha.
3755   o Minor feature (sendme, flow control):
3756     - Default to sending SENDME version 1 cells. (Clients are already
3757       sending these, because of a consensus parameter telling them to do
3758       so: this change only affects what clients would do if the
3759       consensus didn't contain a recommendation.) Closes ticket 33623.
3761   o Minor features (testing):
3762     - The unit tests now support a "TOR_SKIP_TESTCASES" environment
3763       variable to specify a list of space-separated test cases that
3764       should not be executed. We will use this to disable certain tests
3765       that are failing on Appveyor because of mismatched OpenSSL
3766       libraries. Part of ticket 33643.
3768   o Minor bugfixes (--disable-module-relay):
3769     - Fix an assertion failure when Tor is built without the relay
3770       module, and then invoked with the "User" option. Fixes bug 33668;
3771       bugfix on 0.4.3.1-alpha.
3773   o Minor bugfixes (--disable-module-relay,--disable-module-dirauth):
3774     - Set some output arguments in the relay and dirauth module stubs,
3775       to guard against future stub argument handling bugs like 33668.
3776       Fixes bug 33674; bugfix on 0.4.3.1-alpha.
3778   o Minor bugfixes (build system):
3779     - Correctly output the enabled module in the configure summary.
3780       Before that, the list shown was just plain wrong. Fixes bug 33646;
3781       bugfix on 0.4.3.2-alpha.
3783   o Minor bugfixes (client, IPv6):
3784     - Stop forcing all non-SocksPorts to prefer IPv6 exit connections.
3785       Instead, prefer IPv6 connections by default, but allow users to
3786       change their configs using the "NoPreferIPv6" port flag. Fixes bug
3787       33608; bugfix on 0.4.3.1-alpha.
3788     - Revert PreferIPv6 set by default on the SocksPort because it broke
3789       the torsocks use case. Tor doesn't have a way for an application
3790       to request the hostname to be resolved for a specific IP version,
3791       but torsocks requires that. Up until now, IPv4 was used by default
3792       so torsocks is expecting that, and can't handle a possible IPv6
3793       being returned. Fixes bug 33804; bugfix on 0.4.3.1-alpha.
3795   o Minor bugfixes (key portability):
3796     - When reading PEM-encoded key data, tolerate CRLF line-endings even
3797       if we are not running on Windows. Previously, non-Windows hosts
3798       would reject these line-endings in certain positions, making
3799       certain key files hard to move from one host to another. Fixes bug
3800       33032; bugfix on 0.3.5.1-alpha.
3802   o Minor bugfixes (logging):
3803     - Flush stderr, stdout, and file logs during shutdown, if supported
3804       by the OS. This change helps make sure that any final logs are
3805       recorded. Fixes bug 33087; bugfix on 0.4.1.6.
3806     - Stop closing stderr and stdout during shutdown. Closing these file
3807       descriptors can hide sanitiser logs. Fixes bug 33087; bugfix
3808       on 0.4.1.6.
3810   o Minor bugfixes (onion services v3):
3811     - Relax severity of a log message that can appear naturally when
3812       decoding onion service descriptors as a relay. Also add some
3813       diagnostics to debug any future bugs in that area. Fixes bug
3814       31669; bugfix on 0.3.0.1-alpha.
3815     - Block a client-side assertion by disallowing the registration of
3816       an x25519 client auth key that's all zeroes. Fixes bug 33545;
3817       bugfix on 0.4.3.1-alpha. Based on patch from "cypherpunks".
3819   o Code simplification and refactoring:
3820     - Disable our coding standards best practices tracker in our git
3821       hooks. (0.4.3 branches only.) Closes ticket 33678.
3823   o Testing:
3824     - Avoid conflicts between the fake sockets in tor's unit tests, and
3825       real file descriptors. Resolves issues running unit tests with
3826       GitHub Actions, where the process that embeds or launches the
3827       tests has already opened a large number of file descriptors. Fixes
3828       bug 33782; bugfix on 0.2.8.1-alpha. Found and fixed by
3829       Putta Khunchalee.
3831   o Testing (CI):
3832     - In our Appveyor Windows CI, copy required DLLs to test and app
3833       directories, before running tor's tests. This ensures that tor.exe
3834       and test*.exe use the correct version of each DLL. This fix is not
3835       required, but we hope it will avoid DLL search issues in future.
3836       Fixes bug 33673; bugfix on 0.3.4.2-alpha.
3837     - On Appveyor, skip the crypto/openssl_version test, which is
3838       failing because of a mismatched library installation. Fix
3839       for 33643.
3842 Changes in version 0.4.3.3-alpha - 2020-03-18
3843   Tor 0.4.3.3-alpha fixes several bugs in previous releases, including
3844   TROVE-2020-002, a major denial-of-service vulnerability that affected
3845   all released Tor instances since 0.2.1.5-alpha. Using this
3846   vulnerability, an attacker could cause Tor instances to consume a huge
3847   amount of CPU, disrupting their operations for several seconds or
3848   minutes. This attack could be launched by anybody against a relay, or
3849   by a directory cache against any client that had connected to it. The
3850   attacker could launch this attack as much as they wanted, thereby
3851   disrupting service or creating patterns that could aid in traffic
3852   analysis. This issue was found by OSS-Fuzz, and is also tracked
3853   as CVE-2020-10592.
3855   We do not have reason to believe that this attack is currently being
3856   exploited in the wild, but nonetheless we advise everyone to upgrade
3857   as soon as packages are available.
3859   o Major bugfixes (security, denial-of-service):
3860     - Fix a denial-of-service bug that could be used by anyone to
3861       consume a bunch of CPU on any Tor relay or authority, or by
3862       directories to consume a bunch of CPU on clients or hidden
3863       services. Because of the potential for CPU consumption to
3864       introduce observable timing patterns, we are treating this as a
3865       high-severity security issue. Fixes bug 33119; bugfix on
3866       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
3867       as TROVE-2020-002 and CVE-2020-10592.
3869   o Major bugfixes (circuit padding, memory leak):
3870     - Avoid a remotely triggered memory leak in the case that a circuit
3871       padding machine is somehow negotiated twice on the same circuit.
3872       Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls.
3873       This is also tracked as TROVE-2020-004 and CVE-2020-10593.
3875   o Major bugfixes (directory authority):
3876     - Directory authorities will now send a 503 (not enough bandwidth)
3877       code to clients when under bandwidth pressure. Known relays and
3878       other authorities will always be answered regardless of the
3879       bandwidth situation. Fixes bug 33029; bugfix on 0.1.2.5-alpha.
3881   o Minor features (diagnostic):
3882     - Improve assertions and add some memory-poisoning code to try to
3883       track down possible causes of a rare crash (32564) in the EWMA
3884       code. Closes ticket 33290.
3886   o Minor features (directory authorities):
3887     - Directory authorities now reject descriptors from relays running
3888       Tor versions from the 0.2.9 and 0.4.0 series. The 0.3.5 series is
3889       still allowed. Resolves ticket 32672. Patch by Neel Chauhan.
3891   o Minor features (usability):
3892     - Include more information when failing to parse a configuration
3893       value. This should make it easier to tell what's going wrong when
3894       a configuration file doesn't parse. Closes ticket 33460.
3896   o Minor bugfix (relay, configuration):
3897     - Warn if the ContactInfo field is not set, and tell the relay
3898       operator that not having a ContactInfo field set might cause their
3899       relay to get rejected in the future. Fixes bug 33361; bugfix
3900       on 0.1.1.10-alpha.
3902   o Minor bugfixes (coding best practices checks):
3903     - Allow the "practracker" script to read unicode files when using
3904       Python 2. We made the script use unicode literals in 0.4.3.1-alpha,
3905       but didn't change the codec for opening files. Fixes bug 33374;
3906       bugfix on 0.4.3.1-alpha.
3908   o Minor bugfixes (continuous integration):
3909     - Remove the buggy and unused mirroring job. Fixes bug 33213; bugfix
3910       on 0.3.2.2-alpha.
3912   o Minor bugfixes (onion service v3, client):
3913     - Remove a BUG() warning that would cause a stack trace if an onion
3914       service descriptor was freed while we were waiting for a
3915       rendezvous circuit to complete. Fixes bug 28992; bugfix
3916       on 0.3.2.1-alpha.
3918   o Minor bugfixes (onion services v3):
3919     - Fix an assertion failure that could result from a corrupted
3920       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
3921       bugfix on 0.3.3.1-alpha. This issue is also tracked
3922       as TROVE-2020-003.
3924   o Documentation (manpage):
3925     - Alphabetize the Server and Directory server sections of the tor
3926       manpage. Also split Statistics options into their own section of
3927       the manpage. Closes ticket 33188. Work by Swati Thacker as part of
3928       Google Season of Docs.
3929     - Document the __OwningControllerProcess torrc option and specify
3930       its polling interval. Resolves issue 32971.
3932   o Testing (Travis CI):
3933     - Remove a redundant distcheck job. Closes ticket 33194.
3934     - Sort the Travis jobs in order of speed: putting the slowest jobs
3935       first takes full advantage of Travis job concurrency. Closes
3936       ticket 33194.
3937     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
3938       previously configured to fast_finish (which requires
3939       allow_failure), to speed up the build. Closes ticket 33195.
3940     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
3941       tool to produce detailed diagnostic output. Closes ticket 32792.
3944 Changes in version 0.4.2.7 - 2020-03-18
3945   This is the third stable release in the 0.4.2.x series. It backports
3946   numerous fixes from later releases, including a fix for TROVE-2020-
3947   002, a major denial-of-service vulnerability that affected all
3948   released Tor instances since 0.2.1.5-alpha. Using this vulnerability,
3949   an attacker could cause Tor instances to consume a huge amount of CPU,
3950   disrupting their operations for several seconds or minutes. This
3951   attack could be launched by anybody against a relay, or by a directory
3952   cache against any client that had connected to it. The attacker could
3953   launch this attack as much as they wanted, thereby disrupting service
3954   or creating patterns that could aid in traffic analysis. This issue
3955   was found by OSS-Fuzz, and is also tracked as CVE-2020-10592.
3957   We do not have reason to believe that this attack is currently being
3958   exploited in the wild, but nonetheless we advise everyone to upgrade
3959   as soon as packages are available.
3961   o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha):
3962     - Fix a denial-of-service bug that could be used by anyone to
3963       consume a bunch of CPU on any Tor relay or authority, or by
3964       directories to consume a bunch of CPU on clients or hidden
3965       services. Because of the potential for CPU consumption to
3966       introduce observable timing patterns, we are treating this as a
3967       high-severity security issue. Fixes bug 33119; bugfix on
3968       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
3969       as TROVE-2020-002 and CVE-2020-10592.
3971   o Major bugfixes (circuit padding, memory leak, backport from 0.4.3.3-alpha):
3972     - Avoid a remotely triggered memory leak in the case that a circuit
3973       padding machine is somehow negotiated twice on the same circuit.
3974       Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls.
3975       This is also tracked as TROVE-2020-004 and CVE-2020-10593.
3977   o Major bugfixes (directory authority, backport from 0.4.3.3-alpha):
3978     - Directory authorities will now send a 503 (not enough bandwidth)
3979       code to clients when under bandwidth pressure. Known relays and
3980       other authorities will always be answered regardless of the
3981       bandwidth situation. Fixes bug 33029; bugfix on 0.1.2.5-alpha.
3983   o Minor features (continuous integration, backport from 0.4.3.2-alpha):
3984     - Stop allowing failures on the Travis CI stem tests job. It looks
3985       like all the stem hangs we were seeing before are now fixed.
3986       Closes ticket 33075.
3988   o Minor bugfixes (bridges, backport from 0.4.3.1-alpha):
3989     - Lowercase the configured value of BridgeDistribution before adding
3990       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
3992   o Minor bugfixes (logging, backport from 0.4.3.2-alpha):
3993     - If we encounter a bug when flushing a buffer to a TLS connection,
3994       only log the bug once per invocation of the Tor process.
3995       Previously we would log with every occurrence, which could cause
3996       us to run out of disk space. Fixes bug 33093; bugfix
3997       on 0.3.2.2-alpha.
3999   o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha):
4000     - Fix an assertion failure that could result from a corrupted
4001       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
4002       bugfix on 0.3.3.1-alpha. This issue is also tracked
4003       as TROVE-2020-003.
4005   o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha):
4006     - Fix a syntax warning given by newer versions of Rust that was
4007       creating problems for our continuous integration. Fixes bug 33212;
4008       bugfix on 0.3.5.1-alpha.
4010   o Testing (Travis CI, backport from 0.4.3.3-alpha):
4011     - Remove a redundant distcheck job. Closes ticket 33194.
4012     - Sort the Travis jobs in order of speed: putting the slowest jobs
4013       first takes full advantage of Travis job concurrency. Closes
4014       ticket 33194.
4015     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
4016       previously configured to fast_finish (which requires
4017       allow_failure), to speed up the build. Closes ticket 33195.
4018     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
4019       tool to produce detailed diagnostic output. Closes ticket 32792.
4022 Changes in version 0.4.1.9 - 2020-03-18
4023   Tor 0.4.1.9 backports important fixes from later Tor releases,
4024   including a fix for TROVE-2020-002, a major denial-of-service
4025   vulnerability that affected all released Tor instances since
4026   0.2.1.5-alpha. Using this vulnerability, an attacker could cause Tor
4027   instances to consume a huge amount of CPU, disrupting their operations
4028   for several seconds or minutes. This attack could be launched by
4029   anybody against a relay, or by a directory cache against any client
4030   that had connected to it. The attacker could launch this attack as
4031   much as they wanted, thereby disrupting service or creating patterns
4032   that could aid in traffic analysis. This issue was found by OSS-Fuzz,
4033   and is also tracked as CVE-2020-10592.
4035   We do not have reason to believe that this attack is currently being
4036   exploited in the wild, but nonetheless we advise everyone to upgrade
4037   as soon as packages are available.
4039   o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha):
4040     - Fix a denial-of-service bug that could be used by anyone to
4041       consume a bunch of CPU on any Tor relay or authority, or by
4042       directories to consume a bunch of CPU on clients or hidden
4043       services. Because of the potential for CPU consumption to
4044       introduce observable timing patterns, we are treating this as a
4045       high-severity security issue. Fixes bug 33119; bugfix on
4046       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
4047       as TROVE-2020-002 and CVE-2020-10592.
4049   o Major bugfixes (circuit padding, memory leak, backport from 0.4.3.3-alpha):
4050     - Avoid a remotely triggered memory leak in the case that a circuit
4051       padding machine is somehow negotiated twice on the same circuit.
4052       Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls.
4053       This is also tracked as TROVE-2020-004 and CVE-2020-10593.
4055   o Minor bugfixes (bridges, backport from 0.4.3.1-alpha):
4056     - Lowercase the configured value of BridgeDistribution before adding
4057       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
4059   o Minor bugfixes (logging, backport from 0.4.3.2-alpha):
4060     - If we encounter a bug when flushing a buffer to a TLS connection,
4061       only log the bug once per invocation of the Tor process.
4062       Previously we would log with every occurrence, which could cause
4063       us to run out of disk space. Fixes bug 33093; bugfix
4064       on 0.3.2.2-alpha.
4066   o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha):
4067     - Fix an assertion failure that could result from a corrupted
4068       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
4069       bugfix on 0.3.3.1-alpha. This issue is also tracked
4070       as TROVE-2020-003.
4072   o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha):
4073     - Fix a syntax warning given by newer versions of Rust that was
4074       creating problems for our continuous integration. Fixes bug 33212;
4075       bugfix on 0.3.5.1-alpha.
4077   o Testing (Travis CI, backport from 0.4.3.3-alpha):
4078     - Remove a redundant distcheck job. Closes ticket 33194.
4079     - Sort the Travis jobs in order of speed: putting the slowest jobs
4080       first takes full advantage of Travis job concurrency. Closes
4081       ticket 33194.
4082     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
4083       previously configured to fast_finish (which requires
4084       allow_failure), to speed up the build. Closes ticket 33195.
4085     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
4086       tool to produce detailed diagnostic output. Closes ticket 32792.
4089 Changes in version 0.3.5.10 - 2020-03-18
4090   Tor 0.3.5.10 backports many fixes from later Tor releases, including a
4091   fix for TROVE-2020-002, a major denial-of-service vulnerability that
4092   affected all released Tor instances since 0.2.1.5-alpha. Using this
4093   vulnerability, an attacker could cause Tor instances to consume a huge
4094   amount of CPU, disrupting their operations for several seconds or
4095   minutes. This attack could be launched by anybody against a relay, or
4096   by a directory cache against any client that had connected to it. The
4097   attacker could launch this attack as much as they wanted, thereby
4098   disrupting service or creating patterns that could aid in traffic
4099   analysis. This issue was found by OSS-Fuzz, and is also tracked
4100   as CVE-2020-10592.
4102   We do not have reason to believe that this attack is currently being
4103   exploited in the wild, but nonetheless we advise everyone to upgrade
4104   as soon as packages are available.
4106   o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha):
4107     - Fix a denial-of-service bug that could be used by anyone to
4108       consume a bunch of CPU on any Tor relay or authority, or by
4109       directories to consume a bunch of CPU on clients or hidden
4110       services. Because of the potential for CPU consumption to
4111       introduce observable timing patterns, we are treating this as a
4112       high-severity security issue. Fixes bug 33119; bugfix on
4113       0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue
4114       as TROVE-2020-002 and CVE-2020-10592.
4116   o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha):
4117     - Correct how we use libseccomp. Particularly, stop assuming that
4118       rules are applied in a particular order or that more rules are
4119       processed after the first match. Neither is the case! In
4120       libseccomp <2.4.0 this lead to some rules having no effect.
4121       libseccomp 2.4.0 changed how rules are generated, leading to a
4122       different ordering, which in turn led to a fatal crash during
4123       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
4124       Peter Gerber.
4126   o Minor features (continuous integration, backport from 0.4.3.2-alpha):
4127     - Stop allowing failures on the Travis CI stem tests job. It looks
4128       like all the stem hangs we were seeing before are now fixed.
4129       Closes ticket 33075.
4131   o Minor bugfixes (bridges, backport from 0.4.3.1-alpha):
4132     - Lowercase the configured value of BridgeDistribution before adding
4133       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
4135   o Minor bugfixes (crash, backport from 0.4.2.4-rc):
4136     - When running Tor with an option like --verify-config or
4137       --dump-config that does not start the event loop, avoid crashing
4138       if we try to exit early because of an error. Fixes bug 32407;
4139       bugfix on 0.3.3.1-alpha.
4141   o Minor bugfixes (logging, backport from 0.4.3.2-alpha):
4142     - If we encounter a bug when flushing a buffer to a TLS connection,
4143       only log the bug once per invocation of the Tor process.
4144       Previously we would log with every occurrence, which could cause
4145       us to run out of disk space. Fixes bug 33093; bugfix
4146       on 0.3.2.2-alpha.
4148   o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha):
4149     - Fix an assertion failure that could result from a corrupted
4150       ADD_ONION control port command. Found by Saibato. Fixes bug 33137;
4151       bugfix on 0.3.3.1-alpha. This issue is also tracked
4152       as TROVE-2020-003.
4154   o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha):
4155     - Fix a syntax warning given by newer versions of Rust that was
4156       creating problems for our continuous integration. Fixes bug 33212;
4157       bugfix on 0.3.5.1-alpha.
4159   o Testing (backport from 0.4.3.1-alpha):
4160     - Re-enable the Travis CI macOS Chutney build, but don't let it
4161       prevent the Travis job from finishing. (The Travis macOS jobs are
4162       slow, so we don't want to have it delay the whole CI process.)
4163       Closes ticket 32629.
4164     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
4165       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
4166       fix the sandbox errors in 32722. Closes ticket 32240.
4168   o Testing (continuous integration, backport from 0.4.3.1-alpha):
4169     - Use zstd in our Travis Linux builds. Closes ticket 32242.
4171   o Testing (Travis CI, backport from 0.4.3.3-alpha):
4172     - Remove a redundant distcheck job. Closes ticket 33194.
4173     - Sort the Travis jobs in order of speed: putting the slowest jobs
4174       first takes full advantage of Travis job concurrency. Closes
4175       ticket 33194.
4176     - Stop allowing the Chutney IPv6 Travis job to fail. This job was
4177       previously configured to fast_finish (which requires
4178     - When a Travis chutney job fails, use chutney's new "diagnostics.sh"
4179       tool to produce detailed diagnostic output. Closes ticket 32792.
4182 Changes in version 0.4.3.2-alpha - 2020-02-10
4183   This is the second stable alpha release in the Tor 0.4.3.x series. It
4184   fixes several bugs present in the previous alpha release. Anybody
4185   running the previous alpha should upgrade, and look for bugs in this
4186   one instead.
4188   o Major bugfixes (onion service client, authorization):
4189     - On a NEWNYM signal, purge entries from the ephemeral client
4190       authorization cache. The permanent ones are kept. Fixes bug 33139;
4191       bugfix on 0.4.3.1-alpha.
4193   o Minor features (best practices tracker):
4194     - Practracker now supports a --regen-overbroad option to regenerate
4195       the exceptions file, but only to revise exceptions to be _less_
4196       tolerant of best-practices violations. Closes ticket 32372.
4198   o Minor features (continuous integration):
4199     - Run Doxygen Makefile target on Travis, so we can learn about
4200       regressions in our internal documentation. Closes ticket 32455.
4201     - Stop allowing failures on the Travis CI stem tests job. It looks
4202       like all the stem hangs we were seeing before are now fixed.
4203       Closes ticket 33075.
4205   o Minor bugfixes (build system):
4206     - Revise configure options that were either missing or incorrect in
4207       the configure summary. Fixes bug 32230; bugfix on 0.4.3.1-alpha.
4209   o Minor bugfixes (controller protocol):
4210     - Fix a memory leak introduced by refactoring of control reply
4211       formatting code. Fixes bug 33039; bugfix on 0.4.3.1-alpha.
4212     - Fix a memory leak in GETINFO responses. Fixes bug 33103; bugfix
4213       on 0.4.3.1-alpha.
4214     - When receiving "ACTIVE" or "DORMANT" signals on the control port,
4215       report them as SIGNAL events. Previously we would log a bug
4216       warning. Fixes bug 33104; bugfix on 0.4.0.1-alpha.
4218   o Minor bugfixes (logging):
4219     - If we encounter a bug when flushing a buffer to a TLS connection,
4220       only log the bug once per invocation of the Tor process.
4221       Previously we would log with every occurrence, which could cause
4222       us to run out of disk space. Fixes bug 33093; bugfix
4223       on 0.3.2.2-alpha.
4224     - When logging a bug, do not say "Future instances of this warning
4225       will be silenced" unless we are actually going to silence them.
4226       Previously we would say this whenever a BUG() check failed in the
4227       code. Fixes bug 33095; bugfix on 0.4.1.1-alpha.
4229   o Minor bugfixes (onion service v2):
4230     - Move a series of v2 onion service warnings to protocol-warning
4231       level because they can all be triggered remotely by a malformed
4232       request. Fixes bug 32706; bugfix on 0.1.1.14-alpha.
4234   o Minor bugfixes (onion service v3, client authorization):
4235     - When removing client authorization credentials using the control
4236       port, also remove the associated descriptor, so the onion service
4237       can no longer be contacted. Fixes bug 33148; bugfix
4238       on 0.4.3.1-alpha.
4240   o Minor bugfixes (pluggable transports):
4241     - When receiving a message on standard error from a pluggable
4242       transport, log it at info level, rather than as a warning. Fixes
4243       bug 33005; bugfix on 0.4.0.1-alpha.
4245   o Minor bugfixes (rust, build):
4246     - Fix a syntax warning given by newer versions of Rust that was
4247       creating problems for our continuous integration. Fixes bug 33212;
4248       bugfix on 0.3.5.1-alpha.
4250   o Minor bugfixes (TLS bug handling):
4251     - When encountering a bug in buf_read_from_tls(), return a "MISC"
4252       error code rather than "WANTWRITE". This change might help avoid
4253       some CPU-wasting loops if the bug is ever triggered. Bug reported
4254       by opara. Fixes bug 32673; bugfix on 0.3.0.4-alpha.
4256   o Code simplification and refactoring (mainloop):
4257     - Simplify the ip_address_changed() function by removing redundant
4258       checks. Closes ticket 33091.
4260   o Documentation (manpage):
4261     - Split "Circuit Timeout" options and "Node Selection" options into
4262       their own sections of the tor manpage. Closes tickets 32928 and
4263       32929. Work by Swati Thacker as part of Google Season of Docs.
4266 Changes in version 0.4.2.6 - 2020-01-30
4267   This is the second stable release in the 0.4.2.x series. It backports
4268   several bugfixes from 0.4.3.1-alpha, including some that had affected
4269   the Linux seccomp2 sandbox or Windows services. If you're running with
4270   one of those configurations, you'll probably want to upgrade;
4271   otherwise, you should be fine with 0.4.2.5.
4273   o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha):
4274     - Correct how we use libseccomp. Particularly, stop assuming that
4275       rules are applied in a particular order or that more rules are
4276       processed after the first match. Neither is the case! In
4277       libseccomp <2.4.0 this led to some rules having no effect.
4278       libseccomp 2.4.0 changed how rules are generated, leading to a
4279       different ordering, which in turn led to a fatal crash during
4280       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
4281       Peter Gerber.
4282     - Fix crash when reloading logging configuration while the
4283       experimental sandbox is enabled. Fixes bug 32841; bugfix on
4284       0.4.1.7. Patch by Peter Gerber.
4286   o Minor bugfixes (correctness checks, backport from 0.4.3.1-alpha):
4287     - Use GCC/Clang's printf-checking feature to make sure that
4288       tor_assertf() arguments are correctly typed. Fixes bug 32765;
4289       bugfix on 0.4.1.1-alpha.
4291   o Minor bugfixes (logging, crash, backport from 0.4.3.1-alpha):
4292     - Avoid a possible crash when trying to log a (fatal) assertion
4293       failure about mismatched magic numbers in configuration objects.
4294       Fixes bug 32771; bugfix on 0.4.2.1-alpha.
4296   o Minor bugfixes (testing, backport from 0.4.3.1-alpha):
4297     - When TOR_DISABLE_PRACTRACKER is set, do not apply it to the
4298       test_practracker.sh script. Doing so caused a test failure. Fixes
4299       bug 32705; bugfix on 0.4.2.1-alpha.
4300     - When TOR_DISABLE_PRACTRACKER is set, log a notice to stderr when
4301       skipping practracker checks. Fixes bug 32705; bugfix
4302       on 0.4.2.1-alpha.
4304   o Minor bugfixes (windows service, backport from 0.4.3.1-alpha):
4305     - Initialize the publish/subscribe system when running as a windows
4306       service. Fixes bug 32778; bugfix on 0.4.1.1-alpha.
4308   o Testing (backport from 0.4.3.1-alpha):
4309     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
4310       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
4311       fix the sandbox errors in 32722. Closes ticket 32240.
4312     - Re-enable the Travis CI macOS Chutney build, but don't let it
4313       prevent the Travis job from finishing. (The Travis macOS jobs are
4314       slow, so we don't want to have it delay the whole CI process.)
4315       Closes ticket 32629.
4317   o Testing (continuous integration, backport from 0.4.3.1-alpha):
4318     - Use zstd in our Travis Linux builds. Closes ticket 32242.
4321 Changes in version 0.4.1.8 - 2020-01-30
4322   This release backports several bugfixes from later release series,
4323   including some that had affected the Linux seccomp2 sandbox or Windows
4324   services. If you're running with one of those configurations, you'll
4325   probably want to upgrade; otherwise, you should be fine with your
4326   current version of 0.4.1.x.
4328   o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha):
4329     - Correct how we use libseccomp. Particularly, stop assuming that
4330       rules are applied in a particular order or that more rules are
4331       processed after the first match. Neither is the case! In
4332       libseccomp <2.4.0 this led to some rules having no effect.
4333       libseccomp 2.4.0 changed how rules are generated, leading to a
4334       different ordering, which in turn led to a fatal crash during
4335       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
4336       Peter Gerber.
4337     - Fix crash when reloading logging configuration while the
4338       experimental sandbox is enabled. Fixes bug 32841; bugfix on
4339       0.4.1.7. Patch by Peter Gerber.
4341   o Minor bugfixes (crash, backport form 0.4.2.4-rc):
4342     - When running Tor with an option like --verify-config or
4343       --dump-config that does not start the event loop, avoid crashing
4344       if we try to exit early because of an error. Fixes bug 32407;
4345       bugfix on 0.3.3.1-alpha.
4347   o Minor bugfixes (windows service, backport from 0.4.3.1-alpha):
4348     - Initialize the publish/subscribe system when running as a windows
4349       service. Fixes bug 32778; bugfix on 0.4.1.1-alpha.
4351   o Testing (backport from 0.4.3.1-alpha):
4352     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
4353       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
4354       fix the sandbox errors in 32722. Closes ticket 32240.
4355     - Re-enable the Travis CI macOS Chutney build, but don't let it
4356       prevent the Travis job from finishing. (The Travis macOS jobs are
4357       slow, so we don't want to have it delay the whole CI process.)
4358       Closes ticket 32629.
4360   o Testing (continuous integration, backport from 0.4.3.1-alpha):
4361     - Use zstd in our Travis Linux builds. Closes ticket 32242.
4364 Changes in version 0.4.3.1-alpha - 2020-01-22
4365   This is the first alpha release in the 0.4.3.x series. It includes
4366   improved support for application integration of onion services, support
4367   for building in a client-only mode, and newly improved internal
4368   documentation (online at https://src-ref.docs.torproject.org/tor/). It
4369   also has numerous other small bugfixes and features, as well as
4370   improvements to our code's internal organization that should help us
4371   write better code in the future.
4373   o New system requirements:
4374     - When building Tor, you now need to have Python 3 in order to run
4375       the integration tests. (Python 2 is officially unsupported
4376       upstream, as of 1 Jan 2020.) Closes ticket 32608.
4378   o Major features (build system):
4379     - The relay code can now be disabled using the --disable-module-relay
4380       configure option. When this option is set, we also disable the
4381       dirauth module. Closes ticket 32123.
4382     - When Tor is compiled --disable-module-relay, we also omit the code
4383       used to act as a directory cache. Closes ticket 32487.
4385   o Major features (directory authority, ed25519):
4386     - Add support for banning a relay's ed25519 keys in the approved-
4387       routers file. This will help us migrate away from RSA keys in the
4388       future. Previously, only RSA keys could be banned in approved-
4389       routers. Resolves ticket 22029. Patch by Neel Chauhan.
4391   o Major features (onion service, controller):
4392     - New control port commands to manage client-side onion service
4393       authorization credentials. The ONION_CLIENT_AUTH_ADD command adds
4394       a credential, ONION_CLIENT_AUTH_REMOVE deletes a credential, and
4395       ONION_CLIENT_AUTH_VIEW lists the credentials. Closes ticket 30381.
4397   o Major features (onion service, SOCKS5):
4398     - Introduce a new SocksPort flag, ExtendedErrors, to support more
4399       detailed error codes in information for applications that support
4400       them. Closes ticket 30382; implements proposal 304.
4402   o Major features (proxy):
4403     - In addition to its current supported proxy types (HTTP CONNECT,
4404       SOCKS4, and SOCKS5), Tor can now make its OR connections through a
4405       HAProxy server. A new torrc option was added to specify the
4406       address/port of the server: TCPProxy <protocol> <host>:<port>.
4407       Currently the only supported protocol for the option is haproxy.
4408       Closes ticket 31518. Patch done by Suphanat Chunhapanya (haxxpop).
4410   o Major bugfixes (linux seccomp sandbox):
4411     - Correct how we use libseccomp. Particularly, stop assuming that
4412       rules are applied in a particular order or that more rules are
4413       processed after the first match. Neither is the case! In
4414       libseccomp <2.4.0 this led to some rules having no effect.
4415       libseccomp 2.4.0 changed how rules are generated, leading to a
4416       different ordering, which in turn led to a fatal crash during
4417       startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by
4418       Peter Gerber.
4419     - Fix crash when reloading logging configuration while the
4420       experimental sandbox is enabled. Fixes bug 32841; bugfix on
4421       0.4.1.7. Patch by Peter Gerber.
4423   o Major bugfixes (networking):
4424     - Correctly handle IPv6 addresses in SOCKS5 RESOLVE_PTR requests,
4425       and accept strings as well as binary addresses. Fixes bug 32315;
4426       bugfix on 0.3.5.1-alpha.
4428   o Major bugfixes (onion service):
4429     - Report HS circuit failure back into the HS subsystem so we take
4430       appropriate action with regards to the client introduction point
4431       failure cache. This improves reachability of onion services, since
4432       now clients notice failing introduction circuits properly. Fixes
4433       bug 32020; bugfix on 0.3.2.1-alpha.
4435   o Minor feature (configure, build system):
4436     - Output a list of enabled/disabled features at the end of the
4437       configure process in a pleasing way. Closes ticket 31373.
4439   o Minor feature (heartbeat, onion service):
4440     - Add the DoS INTRODUCE2 defenses counter to the heartbeat DoS
4441       message. Closes ticket 31371.
4443   o Minor features (configuration validation):
4444     - Configuration validation can now be done by per-module callbacks,
4445       rather than a global validation function. This will let us reduce
4446       the size of config.c and some of its more cumbersome functions.
4447       Closes ticket 31241.
4449   o Minor features (configuration):
4450     - If a configured hardware crypto accelerator in AccelName is
4451       prefixed with "!", Tor now exits when it cannot be found. Closes
4452       ticket 32406.
4453     - We now use flag-driven logic to warn about obsolete configuration
4454       fields, so that we can include their names. In 0.4.2, we used a
4455       special type, which prevented us from generating good warnings.
4456       Implements ticket 32404.
4458   o Minor features (controller):
4459     - Add stream isolation data to STREAM event. Closes ticket 19859.
4460     - Implement a new GETINFO command to fetch microdescriptor
4461       consensus. Closes ticket 31684.
4463   o Minor features (debugging, directory system):
4464     - Don't crash when we find a non-guard with a guard-fraction value
4465       set. Instead, log a bug warning, in an attempt to figure out how
4466       this happened. Diagnostic for ticket 32868.
4468   o Minor features (defense in depth):
4469     - Add additional checks around tor_vasprintf() usage, in case the
4470       function returns an error. Patch by Tobias Stoeckmann. Fixes
4471       ticket 31147.
4473   o Minor features (developer tooling):
4474     - Remove the 0.2.9.x series branches from git scripts (git-merge-
4475       forward.sh, git-pull-all.sh, git-push-all.sh, git-setup-dirs.sh).
4476       Closes ticket 32772.
4478   o Minor features (developer tools):
4479     - Add a check_cocci_parse.sh script that checks that new code is
4480       parseable by Coccinelle. Add an exceptions file for unparseable
4481       files, and run the script from travis CI. Closes ticket 31919.
4482     - Call the check_cocci_parse.sh script from a 'check-cocci' Makefile
4483       target. Closes ticket 31919.
4484     - Add a rename_c_identifiers.py tool to rename a bunch of C
4485       identifiers at once, and generate a well-formed commit message
4486       describing the change. This should help with refactoring. Closes
4487       ticket 32237.
4488     - Add some scripts in "scripts/coccinelle" to invoke the Coccinelle
4489       semantic patching tool with the correct flags. These flags are
4490       fairly easy to forget, and these scripts should help us use
4491       Coccinelle more effectively in the future. Closes ticket 31705.
4493   o Minor features (Doxygen):
4494     - Update Doxygen configuration file to a more recent template (from
4495       1.8.15). Closes ticket 32110.
4496     - "make doxygen" now works with out-of-tree builds. Closes
4497       ticket 32113.
4498     - Make sure that doxygen outputs documentation for all of our C
4499       files. Previously, some were missing @file declarations, causing
4500       them to be ignored. Closes ticket 32307.
4501     - Our "make doxygen" target now respects --enable-fatal-warnings by
4502       default, and does not warn about items that are missing
4503       documentation. To warn about missing documentation, run configure
4504       with the "--enable-missing-doc-warnings" flag: doing so suspends
4505       fatal warnings for doxygen. Closes ticket 32385.
4507   o Minor features (git scripts):
4508     - Add TOR_EXTRA_CLONE_ARGS to git-setup-dirs.sh for git clone
4509       customisation. Closes ticket 32347.
4510     - Add git-setup-dirs.sh, which sets up an upstream git repository
4511       and worktrees for tor maintainers. Closes ticket 29603.
4512     - Add TOR_EXTRA_REMOTE_* to git-setup-dirs.sh for a custom extra
4513       remote. Closes ticket 32347.
4514     - Call the check_cocci_parse.sh script from the git commit and push
4515       hooks. Closes ticket 31919.
4516     - Make git-push-all.sh skip unchanged branches when pushing to
4517       upstream. The script already skipped unchanged test branches.
4518       Closes ticket 32216.
4519     - Make git-setup-dirs.sh create a master symlink in the worktree
4520       directory. Closes ticket 32347.
4521     - Skip unmodified source files when doing some existing git hook
4522       checks. Related to ticket 31919.
4524   o Minor features (IPv6, client):
4525     - Make Tor clients tell dual-stack exits that they prefer IPv6
4526       connections. This change is equivalent to setting the PreferIPv6
4527       flag on SOCKSPorts (and most other listener ports). Tor Browser
4528       has been setting this flag for some time, and we want to remove a
4529       client distinguisher at exits. Closes ticket 32637.
4531   o Minor features (portability, android):
4532     - When building for Android, disable some tests that depend on $HOME
4533       and/or pwdb, which Android doesn't have. Closes ticket 32825.
4534       Patch from Hans-Christoph Steiner.
4536   o Minor features (relay modularity):
4537     - Split the relay and server pluggable transport config code into
4538       separate files in the relay module. Disable this code when the
4539       relay module is disabled. Closes part of ticket 32213.
4540     - When the relay module is disabled, reject attempts to set the
4541       ORPort, DirPort, DirCache, BridgeRelay, ExtORPort, or
4542       ServerTransport* options, rather than ignoring the values of these
4543       options. Closes part of ticket 32213.
4545   o Minor features (relay):
4546     - When the relay module is disabled, change the default config so
4547       that DirCache is 0, and ClientOnly is 1. Closes ticket 32410.
4549   o Minor features (release tools):
4550     - Port our ChangeLog formatting and sorting tools to Python 3.
4551       Closes ticket 32704.
4553   o Minor features (testing):
4554     - Detect some common failure cases for test_parseconf.sh in
4555       src/test/conf_failures. Closes ticket 32451.
4556     - Allow test_parseconf.sh to test expected log outputs for successful
4557       configs, as well as failed configs. Closes ticket 32451.
4558     - The test_parseconf.sh script now supports result variants for any
4559       combination of the optional libraries lzma, nss, and zstd. Closes
4560       ticket 32397.
4562   o Minor features (tests, Android):
4563     - When running the unit tests on Android, create temporary files in
4564       a subdirectory of /data/local/tmp. Closes ticket 32172. Based on a
4565       patch from Hans-Christoph Steiner.
4567   o Minor bugfixes (bridges):
4568     - Lowercase the configured value of BridgeDistribution before adding
4569       it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha.
4571   o Minor bugfixes (build system):
4572     - Fix "make autostyle" for out-of-tree builds. Fixes bug 32370;
4573       bugfix on 0.4.1.2-alpha.
4575   o Minor bugfixes (configuration handling):
4576     - Make control_event_conf_changed() take in a config_line_t instead
4577       of a smartlist of alternating key/value entries. Fixes bug 31531;
4578       bugfix on 0.2.3.3-alpha. Patch by Neel Chauhan.
4580   o Minor bugfixes (configuration):
4581     - Check for multiplication overflow when parsing memory units inside
4582       configuration. Fixes bug 30920; bugfix on 0.0.9rc1.
4583     - When dumping the configuration, stop adding a trailing space after
4584       the option name when there is no option value. This issue only
4585       affects options that accept an empty value or list. (Most options
4586       reject empty values, or delete the entire line from the dumped
4587       options.) Fixes bug 32352; bugfix on 0.0.9pre6.
4588     - Avoid changing the user's value of HardwareAccel as stored by
4589       SAVECONF, when AccelName is set but HardwareAccel is not. Fixes
4590       bug 32382; bugfix on 0.2.2.1-alpha.
4591     - When creating a KeyDirectory with the same location as the
4592       DataDirectory (not recommended), respect the DataDirectory's
4593       group-readable setting if one has not been set for the
4594       KeyDirectory. Fixes bug 27992; bugfix on 0.3.3.1-alpha.
4596   o Minor bugfixes (controller):
4597     - In routerstatus_has_changed(), check all the fields that are
4598       output over the control port. Fixes bug 20218; bugfix
4599       on 0.1.1.11-alpha
4601   o Minor bugfixes (correctness checks):
4602     - Use GCC/Clang's printf-checking feature to make sure that
4603       tor_assertf() arguments are correctly typed. Fixes bug 32765;
4604       bugfix on 0.4.1.1-alpha.
4606   o Minor bugfixes (developer tools):
4607     - Allow paths starting with ./ in scripts/add_c_file.py. Fixes bug
4608       31336; bugfix on 0.4.1.2-alpha.
4610   o Minor bugfixes (dirauth module):
4611     - Split the dirauth config code into a separate file in the dirauth
4612       module. Disable this code when the dirauth module is disabled.
4613       Closes ticket 32213.
4614     - When the dirauth module is disabled, reject attempts to set the
4615       AuthoritativeDir option, rather than ignoring the value of the
4616       option. Fixes bug 32213; bugfix on 0.3.4.1-alpha.
4618   o Minor bugfixes (embedded Tor):
4619     - When starting Tor any time after the first time in a process,
4620       register the thread in which it is running as the main thread.
4621       Previously, we only did this on Windows, which could lead to bugs
4622       like 23081 on non-Windows platforms. Fixes bug 32884; bugfix
4623       on 0.3.3.1-alpha.
4625   o Minor bugfixes (git scripts):
4626     - Avoid sleeping before the last push in git-push-all.sh. Closes
4627       ticket 32216.
4628     - Forward all unrecognised arguments in git-push-all.sh to git push.
4629       Closes ticket 32216.
4631   o Minor bugfixes (hidden service v3):
4632     - Do not rely on a "circuit established" flag for intro circuits but
4633       instead always query the HS circuit map. This is to avoid sync
4634       issue with that flag and the map. Fixes bug 32094; bugfix
4635       on 0.3.2.1-alpha.
4637   o Minor bugfixes (logging, crash):
4638     - Avoid a possible crash when trying to log a (fatal) assertion
4639       failure about mismatched magic numbers in configuration objects.
4640       Fixes bug 32771; bugfix on 0.4.2.1-alpha.
4642   o Minor bugfixes (onion service v2):
4643     - When sending the INTRO cell for a v2 Onion Service, look at the
4644       failure cache alongside timeout values to check if the intro point
4645       is marked as failed. Previously, we only looked at the relay
4646       timeout values. Fixes bug 25568; bugfix on 0.2.7.3-rc. Patch by
4647       Neel Chauhan.
4649   o Minor bugfixes (onion services v3, client):
4650     - Properly handle the client rendezvous circuit timeout. Previously
4651       Tor would sometimes timeout a rendezvous circuit awaiting the
4652       introduction ACK, and find itself unable to re-establish all
4653       circuits because the rendezvous circuit timed out too early. Fixes
4654       bug 32021; bugfix on 0.3.2.1-alpha.
4656   o Minor bugfixes (onion services):
4657     - In cancel_descriptor_fetches(), use
4658       connection_list_by_type_purpose() instead of
4659       connection_list_by_type_state(). Fixes bug 32639; bugfix on
4660       0.3.2.1-alpha. Patch by Neel Chauhan.
4662   o Minor bugfixes (scripts):
4663     - Fix update_versions.py for out-of-tree builds. Fixes bug 32371;
4664       bugfix on 0.4.0.1-alpha.
4666   o Minor bugfixes (test):
4667     - Use the same code to find the tor binary in all of our test
4668       scripts. This change makes sure we are always using the coverage
4669       binary when coverage is enabled. Fixes bug 32368; bugfix
4670       on 0.2.7.3-rc.
4672   o Minor bugfixes (testing):
4673     - Stop ignoring "tor --dump-config" errors in test_parseconf.sh.
4674       Fixes bug 32468; bugfix on 0.4.2.1-alpha.
4675     - When TOR_DISABLE_PRACTRACKER is set, do not apply it to the
4676       test_practracker.sh script. Doing so caused a test failure. Fixes
4677       bug 32705; bugfix on 0.4.2.1-alpha.
4678     - When TOR_DISABLE_PRACTRACKER is set, log a notice to stderr when
4679       skipping practracker checks. Fixes bug 32705; bugfix
4680       on 0.4.2.1-alpha.
4682   o Minor bugfixes (tests):
4683     - Our option-validation tests no longer depend on specially
4684       configured non-default, non-passing sets of options. Previously,
4685       the tests had been written to assume that options would _not_ be
4686       set to their defaults, which led to needless complexity and
4687       verbosity. Fixes bug 32175; bugfix on 0.2.8.1-alpha.
4689   o Minor bugfixes (windows service):
4690     - Initialize the publish/subscribe system when running as a windows
4691       service. Fixes bug 32778; bugfix on 0.4.1.1-alpha.
4693   o Deprecated features:
4694     - Deprecate the ClientAutoIPv6ORPort option. This option was not
4695       true "Happy Eyeballs", and often failed on connections that
4696       weren't reliably dual-stack. Closes ticket 32942. Patch by
4697       Neel Chauhan.
4699   o Documentation:
4700     - Provide a quickstart guide for a Circuit Padding Framework, and
4701       documentation for researchers to implement and study circuit
4702       padding machines. Closes ticket 28804.
4703     - Add documentation in 'HelpfulTools.md' to describe how to build a
4704       tag file. Closes ticket 32779.
4705     - Create a high-level description of the long-term software
4706       architecture goals. Closes ticket 32206.
4707     - Describe the --dump-config command in the manual page. Closes
4708       ticket 32467.
4709     - Unite coding advice from this_not_that.md in torguts repo into our
4710       coding standards document. Resolves ticket 31853.
4712   o Removed features:
4713     - Our Doxygen configuration no longer generates LaTeX output. The
4714       reference manual produced by doing this was over 4000 pages long,
4715       and generally unusable. Closes ticket 32099.
4716     - The option "TestingEstimatedDescriptorPropagationTime" is now
4717       marked as obsolete. It has had no effect since 0.3.0.7, when
4718       clients stopped rejecting consensuses "from the future". Closes
4719       ticket 32807.
4720     - We no longer support consensus methods before method 28; these
4721       methods were only used by authorities running versions of Tor that
4722       are now at end-of-life. In effect, this means that clients,
4723       relays, and authorities now assume that authorities will be
4724       running version 0.3.5.x or later. Closes ticket 32695.
4726   o Testing:
4727     - Add more test cases for tor's UTF-8 validation function. Also,
4728       check the arguments passed to the function for consistency. Closes
4729       ticket 32845.
4730     - Improve test coverage for relay and dirauth config code, focusing
4731       on option validation and normalization. Closes ticket 32213.
4732     - Improve the consistency of test_parseconf.sh output, and run all
4733       the tests, even if one fails. Closes ticket 32213.
4734     - Re-enable the Travis CI macOS Chutney build, but don't let it
4735       prevent the Travis job from finishing. (The Travis macOS jobs are
4736       slow, so we don't want to have it delay the whole CI process.)
4737       Closes ticket 32629.
4738     - Run the practracker unit tests in the pre-commit git hook. Closes
4739       ticket 32609.
4740     - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on
4741       Ubuntu Bionic. Turning off the Sandbox is a work-around, until we
4742       fix the sandbox errors in 32722. Closes ticket 32240.
4744   o Code simplification and refactoring (channel):
4745     - Channel layer had a variable length cell handler that was not used
4746       and thus removed. Closes ticket 32892.
4748   o Code simplification and refactoring (configuration):
4749     - Immutability is now implemented as a flag on individual
4750       configuration options rather than as part of the option-transition
4751       checking code. Closes ticket 32344.
4752     - Instead of keeping a list of configuration options to check for
4753       relative paths, check all the options whose type is "FILENAME".
4754       Solves part of ticket 32339.
4755     - Our default log (which ordinarily sends NOTICE-level messages to
4756       standard output) is now handled in a more logical manner.
4757       Previously, we replaced the configured log options if they were
4758       empty. Now, we interpret an empty set of log options as meaning
4759       "use the default log". Closes ticket 31999.
4760     - Remove some unused arguments from the options_validate() function,
4761       to simplify our code and tests. Closes ticket 32187.
4762     - Simplify the options_validate() code so that it looks at the
4763       default options directly, rather than taking default options as an
4764       argument. This change lets us simplify its interface. Closes
4765       ticket 32185.
4766     - Use our new configuration architecture to move most authority-
4767       related options to the directory authority module. Closes
4768       ticket 32806.
4769     - When parsing the command line, handle options that determine our
4770       "quiet level" and our mode of operation (e.g., --dump-config and
4771       so on) all in one table. Closes ticket 32003.
4773   o Code simplification and refactoring (controller):
4774     - Create a new abstraction for formatting control protocol reply
4775       lines based on key-value pairs. Refactor some existing control
4776       protocol code to take advantage of this. Closes ticket 30984.
4777     - Create a helper function that can fetch network status or
4778       microdesc consensuses. Closes ticket 31684.
4780   o Code simplification and refactoring (dirauth modularization):
4781     - Remove the last remaining HAVE_MODULE_DIRAUTH inside a function.
4782       Closes ticket 32163.
4783     - Replace some confusing identifiers in process_descs.c. Closes
4784       ticket 29826.
4785     - Simplify some relay and dirauth config code. Closes ticket 32213.
4787   o Code simplification and refactoring (misc):
4788     - Make all the structs we declare follow the same naming convention
4789       of ending with "_t". Closes ticket 32415.
4790     - Move and rename some configuration-related code for clarity.
4791       Closes ticket 32304.
4792     - Our include.am files are now broken up by subdirectory.
4793       Previously, src/core/include.am covered all of the subdirectories
4794       in "core", "feature", and "app". Closes ticket 32137.
4795     - Remove underused NS*() macros from test code: they make our tests
4796       more confusing, especially for code-formatting tools. Closes
4797       ticket 32887.
4799   o Code simplification and refactoring (relay modularization):
4800     - Disable relay_periodic when the relay module is disabled. Closes
4801       ticket 32244.
4802     - Disable relay_sys when the relay module is disabled. Closes
4803       ticket 32245.
4805   o Code simplification and refactoring (tool support):
4806     - Add numerous missing dependencies to our include files, so that
4807       they can be included in different reasonable orders and still
4808       compile. Addresses part of ticket 32764.
4809     - Fix some parts of our code that were difficult for Coccinelle to
4810       parse. Related to ticket 31705.
4811     - Fix some small issues in our code that prevented automatic
4812       formatting tools from working. Addresses part of ticket 32764.
4814   o Documentation (manpage):
4815     - Alphabetize the Client Options section of the tor manpage. Closes
4816       ticket 32846.
4817     - Alphabetize the General Options section of the tor manpage. Closes
4818       ticket 32708.
4819     - In the tor(1) manpage, reword and improve formatting of the
4820       COMMAND-LINE OPTIONS and DESCRIPTION sections. Closes ticket
4821       32277. Based on work by Swati Thacker as part of Google Season
4822       of Docs.
4823     - In the tor(1) manpage, reword and improve formatting of the FILES,
4824       SEE ALSO, and BUGS sections. Closes ticket 32176. Based on work by
4825       Swati Thacker as part of Google Season of Docs.
4827   o Testing (circuit, EWMA):
4828     - Add unit tests for circuitmux and EWMA subsystems. Closes
4829       ticket 32196.
4831   o Testing (continuous integration):
4832     - Use zstd in our Travis Linux builds. Closes ticket 32242.
4835 Changes in version 0.4.2.5 - 2019-12-09
4836   This is the first stable release in the 0.4.2.x series. This series
4837   improves reliability and stability, and includes several stability and
4838   correctness improvements for onion services. It also fixes many smaller
4839   bugs present in previous series.
4841   Per our support policy, we will support the 0.4.2.x series for nine
4842   months, or until three months after the release of a stable 0.4.3.x:
4843   whichever is longer. If you need longer-term support, please stick
4844   with 0.3.5.x, which will we plan to support until Feb 2022.
4846   Per our support policy, we will support the 0.4.2.x series for nine
4847   months, or until three months after the release of a stable 0.4.3.x:
4848   whichever is longer. If you need longer-term support, please stick
4849   with 0.3.5.x, which will we plan to support until Feb 2022.
4851   Below are the changes since 0.4.1.4-rc. For a complete list of changes
4852   since 0.4.1.5, see the ReleaseNotes file.
4854   o Minor features (geoip):
4855     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
4856       Country database. Closes ticket 32685.
4858   o Testing:
4859     - Require C99 standards-conforming code in Travis CI, but allow GNU
4860       gcc extensions. Also activates clang's -Wtypedef-redefinition
4861       warnings. Build some jobs with -std=gnu99, and some jobs without.
4862       Closes ticket 32500.
4865 Changes in version 0.4.1.7 - 2019-12-09
4866   This release backports several bugfixes to improve stability and
4867   correctness.  Anyone experiencing build problems or crashes with 0.4.1.6,
4868   including all relays relying on AccountingMax, should upgrade.
4870   o Major features (directory authorities, backport from 0.4.2.2-alpha):
4871     - Directory authorities now reject relays running all currently
4872       deprecated release series. The currently supported release series
4873       are: 0.2.9, 0.3.5, 0.4.0, 0.4.1, and 0.4.2. Closes ticket 31549.
4875   o Major bugfixes (embedded Tor, backport from 0.4.2.2-alpha):
4876     - Avoid a possible crash when restarting Tor in embedded mode and
4877       enabling a different set of publish/subscribe messages. Fixes bug
4878       31898; bugfix on 0.4.1.1-alpha.
4880   o Major bugfixes (relay, backport from 0.4.2.3-alpha):
4881     - Relays now respect their AccountingMax bandwidth again. When
4882       relays entered "soft" hibernation (which typically starts when
4883       we've hit 90% of our AccountingMax), we had stopped checking
4884       whether we should enter hard hibernation. Soft hibernation refuses
4885       new connections and new circuits, but the existing circuits can
4886       continue, meaning that relays could have exceeded their configured
4887       AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha.
4889   o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha):
4890     - Stop ignoring torrc options after an %include directive, when the
4891       included directory ends with a file that does not contain any
4892       config options (but does contain comments or whitespace). Fixes
4893       bug 31408; bugfix on 0.3.1.1-alpha.
4895   o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha):
4896     - Onion services now always use the exact number of intro points
4897       configured with the HiddenServiceNumIntroductionPoints option (or
4898       fewer if nodes are excluded). Before, a service could sometimes
4899       pick more intro points than configured. Fixes bug 31548; bugfix
4900       on 0.3.2.1-alpha.
4902   o Minor features (continuous integration, backport from 0.4.2.2-alpha):
4903     - When building on Appveyor and Travis, pass the "-k" flag to make,
4904       so that we are informed of all compilation failures, not just the
4905       first one or two. Closes ticket 31372.
4907   o Minor features (geoip, backport from 0.4.2.5):
4908     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
4909       Country database. Closes ticket 32685.
4911   o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha):
4912     - Avoid spurious errors when Appveyor CI fails before the install step.
4913       Fixes bug 31884; bugfix on 0.3.4.2-alpha.
4915   o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc):
4916     - Fix a BUG() assertion that occurs within a very small race window
4917       between when a client intro circuit opens and when its descriptor
4918       gets cleaned up from the cache. The circuit is now closed early,
4919       which will trigger a re-fetch of the descriptor and continue the
4920       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
4922   o Minor bugfixes (connections, backport from 0.4.2.3-rc):
4923     - Avoid trying to read data from closed connections, which can cause
4924       needless loops in Libevent and infinite loops in Shadow. Fixes bug
4925       30344; bugfix on 0.1.1.1-alpha.
4927   o Minor bugfixes (error handling, backport from 0.4.2.1-alpha):
4928     - On abort, try harder to flush the output buffers of log messages.
4929       On some platforms (macOS), log messages could be discarded when
4930       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
4931     - Report the tor version whenever an assertion fails. Previously, we
4932       only reported the Tor version on some crashes, and some non-fatal
4933       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
4934     - When tor aborts due to an error, close log file descriptors before
4935       aborting. Closing the logs makes some OSes flush log file buffers,
4936       rather than deleting buffered log lines. Fixes bug 31594; bugfix
4937       on 0.2.5.2-alpha.
4939   o Minor bugfixes (logging, backport from 0.4.2.2-alpha):
4940     - Add a missing check for HAVE_PTHREAD_H, because the backtrace code
4941       uses mutexes. Fixes bug 31614; bugfix on 0.2.5.2-alpha.
4942     - Disable backtrace signal handlers when shutting down tor. Fixes
4943       bug 31614; bugfix on 0.2.5.2-alpha.
4944     - Rate-limit our the logging message about the obsolete .exit
4945       notation. Previously, there was no limit on this warning, which
4946       could potentially be triggered many times by a hostile website.
4947       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
4949   o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha):
4950     - Do not log a nonfatal assertion failure when receiving a VERSIONS
4951       cell on a connection using the obsolete v1 link protocol. Log a
4952       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
4954   o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha):
4955     - Reset the periodic events' "enabled" flag when Tor is shut down
4956       cleanly. Previously, this flag was left on, which caused periodic
4957       events not to be re-enabled when Tor was relaunched in-process
4958       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
4959       on 0.3.3.1-alpha.
4961   o Minor bugfixes (multithreading, backport from 0.4.2.2-alpha):
4962     - Avoid some undefined behaviour when freeing mutexes. Fixes bug
4963       31736; bugfix on 0.0.7.
4965   o Minor bugfixes (process management, backport from 0.4.2.3-alpha):
4966     - Remove overly strict assertions that triggered when a pluggable
4967       transport failed to launch. Fixes bug 31091; bugfix
4968       on 0.4.0.1-alpha.
4969     - Remove an assertion in the Unix process backend. This assertion
4970       would trigger when we failed to find the executable for a child
4971       process. Fixes bug 31810; bugfix on 0.4.0.1-alpha.
4973   o Minor bugfixes (relay, backport from 0.4.2.2-alpha):
4974     - Avoid crashing when starting with a corrupt keys directory where
4975       the old ntor key and the new ntor key are identical. Fixes bug
4976       30916; bugfix on 0.2.4.8-alpha.
4978   o Minor bugfixes (testing, backport from 0.4.2.3-alpha):
4979     - When testing port rebinding, don't busy-wait for tor to log.
4980       Instead, actually sleep for a short time before polling again.
4981       Also improve the formatting of control commands and log messages.
4982       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
4984   o Minor bugfixes (tests, SunOS, backport from 0.4.2.2-alpha):
4985     - Avoid a map_anon_nofork test failure due to a signed/unsigned
4986       integer comparison. Fixes bug 31897; bugfix on 0.4.1.1-alpha.
4988   o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha):
4989     - Log bugs about the TLS read buffer's length only once, rather than
4990       filling the logs with similar warnings. Fixes bug 31939; bugfix
4991       on 0.3.0.4-rc.
4993   o Documentation (backport from 0.4.2.2-alpha):
4994     - Explain why we can't destroy the backtrace buffer mutex. Explain
4995       why we don't need to destroy the log mutex. Closes ticket 31736.
4997   o Testing (continuous integration, backport from 0.4.2.3-alpha):
4998     - Disable all but one Travis CI macOS build, to mitigate slow
4999       scheduling of Travis macOS jobs. Closes ticket 32177.
5000     - Run the chutney IPv6 networks as part of Travis CI. Closes
5001       ticket 30860.
5002     - Simplify the Travis CI build matrix, and optimise for build time.
5003       Closes ticket 31859.
5004     - Use Windows Server 2019 instead of Windows Server 2016 in our
5005       Appveyor builds. Closes ticket 32086.
5007   o Testing (continuous integration, backport from 0.4.2.4-rc):
5008     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
5009     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
5010       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
5011       until we can fix some Bionic permissions issues (see ticket
5012       32240). Related to ticket 31919.
5013     - Install the mingw OpenSSL package in Appveyor. This makes sure
5014       that the OpenSSL headers and libraries match in Tor's Appveyor
5015       builds. (This bug was triggered by an Appveyor image update.)
5016       Fixes bug 32449; bugfix on 0.3.5.6-rc.
5018   o Testing (continuous integration, backport from 0.4.2.5):
5019     - Require C99 standards-conforming code in Travis CI, but allow GNU gcc
5020       extensions. Also activates clang's -Wtypedef-redefinition warnings.
5021       Build some jobs with -std=gnu99, and some jobs without.
5022       Closes ticket 32500.
5025 Changes in version 0.4.0.6 - 2019-12-09
5026   This is the second stable release in the 0.4.0.x series. This release
5027   backports several bugfixes to improve stability and correctness.  Anyone
5028   experiencing build problems or crashes with 0.4.0.5, including all relays
5029   relying on AccountingMax, should upgrade.
5031   Note that, per our support policy, support for the 0.4.0.x series will end
5032   on 2 Feb 2020.  Anyone still running 0.4.0.x should plan to upgrade to the
5033   latest stable release, or downgrade to 0.3.5.x, which will get long-term
5034   support until 1 Feb 2022.
5036   o Directory authority changes (backport from 0.4.1.5):
5037     - The directory authority "dizum" has a new IP address. Closes
5038       ticket 31406.
5040   o Major bugfixes (bridges, backport from 0.4.1.2-alpha):
5041     - Consider our directory information to have changed when our list
5042       of bridges changes. Previously, Tor would not re-compute the
5043       status of its directory information when bridges changed, and
5044       therefore would not realize that it was no longer able to build
5045       circuits. Fixes part of bug 29875.
5046     - Do not count previously configured working bridges towards our
5047       total of working bridges. Previously, when Tor's list of bridges
5048       changed, it would think that the old bridges were still usable,
5049       and delay fetching router descriptors for the new ones. Fixes part
5050       of bug 29875; bugfix on 0.3.0.1-alpha.
5052   o Major bugfixes (circuit build, guard, backport from 0.4.1.4-rc):
5053     - When considering upgrading circuits from "waiting for guard" to
5054       "open", always ignore circuits that are marked for close. Otherwise,
5055       we can end up in the situation where a subsystem is notified that
5056       a closing circuit has just opened, leading to undesirable
5057       behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha.
5059   o Major bugfixes (Onion service reachability, backport from 0.4.1.3-alpha):
5060     - Properly clean up the introduction point map when circuits change
5061       purpose from onion service circuits to pathbias, measurement, or
5062       other circuit types. This should fix some service-side instances
5063       of introduction point failure. Fixes bug 29034; bugfix
5064       on 0.3.2.1-alpha.
5066   o Major bugfixes (onion service v3, backport from 0.4.1.1-alpha):
5067     - Fix an unreachable bug in which an introduction point could try to
5068       send an INTRODUCE_ACK with a status code that Trunnel would refuse
5069       to encode, leading the relay to assert(). We've consolidated the
5070       ABI values into Trunnel now. Fixes bug 30454; bugfix
5071       on 0.3.0.1-alpha.
5072     - Clients can now handle unknown status codes from INTRODUCE_ACK
5073       cells. (The NACK behavior will stay the same.) This will allow us
5074       to extend status codes in the future without breaking the normal
5075       client behavior. Fixes another part of bug 30454; bugfix
5076       on 0.3.0.1-alpha.
5078   o Major bugfixes (relay, backport from 0.4.2.3-alpha):
5079     - Relays now respect their AccountingMax bandwidth again. When
5080       relays entered "soft" hibernation (which typically starts when
5081       we've hit 90% of our AccountingMax), we had stopped checking
5082       whether we should enter hard hibernation. Soft hibernation refuses
5083       new connections and new circuits, but the existing circuits can
5084       continue, meaning that relays could have exceeded their configured
5085       AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha.
5087   o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha):
5088     - Stop ignoring torrc options after an %include directive, when the
5089       included directory ends with a file that does not contain any
5090       config options (but does contain comments or whitespace). Fixes
5091       bug 31408; bugfix on 0.3.1.1-alpha.
5093   o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha):
5094     - Onion services now always use the exact number of intro points
5095       configured with the HiddenServiceNumIntroductionPoints option (or
5096       fewer if nodes are excluded). Before, a service could sometimes
5097       pick more intro points than configured. Fixes bug 31548; bugfix
5098       on 0.3.2.1-alpha.
5100   o Minor features (compile-time modules, backport from version 0.4.1.1-alpha):
5101     - Add a "--list-modules" command to print a list of which compile-
5102       time modules are enabled. Closes ticket 30452.
5104   o Minor features (continuous integration, backport from 0.4.1.1-alpha):
5105     - Remove sudo configuration lines from .travis.yml as they are no
5106       longer needed with current Travis build environment. Resolves
5107       issue 30213.
5109   o Minor features (continuous integration, backport from 0.4.1.4-rc):
5110     - Our Travis configuration now uses Chutney to run some network
5111       integration tests automatically. Closes ticket 29280.
5113   o Minor features (continuous integration, backport from 0.4.2.2-alpha):
5114     - When building on Appveyor and Travis, pass the "-k" flag to make,
5115       so that we are informed of all compilation failures, not just the
5116       first one or two. Closes ticket 31372.
5118   o Minor features (fallback directory list, backport from 0.4.1.4-rc):
5119     - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc
5120       in December 2018 (of which ~122 were still functional), with a
5121       list of 148 fallbacks (70 new, 78 existing, 79 removed) generated
5122       in June 2019. Closes ticket 28795.
5124   o Minor features (geoip, backport from 0.4.2.5):
5125     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
5126       Country database. Closes ticket 32685.
5128   o Minor features (stem tests, backport from 0.4.2.1-alpha):
5129     - Change "make test-stem" so it only runs the stem tests that use
5130       tor. This change makes test-stem faster and more reliable. Closes
5131       ticket 31554.
5133   o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha):
5134     - Avoid spurious errors when Appveyor CI fails before the install step.
5135       Fixes bug 31884; bugfix on 0.3.4.2-alpha.
5137   o Minor bugfixes (build system, backport form 0.4.2.1-alpha):
5138     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
5139       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
5141   o Minor bugfixes (circuit isolation, backport from 0.4.1.3-alpha):
5142     - Fix a logic error that prevented the SessionGroup sub-option from
5143       being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha.
5145   o Minor bugfixes (circuit padding, backport from 0.4.1.4-rc):
5146     - On relays, properly check that a padding machine is absent before
5147       logging a warning about it being absent. Fixes bug 30649; bugfix
5148       on 0.4.0.1-alpha.
5150   o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc):
5151     - Fix a BUG() assertion that occurs within a very small race window
5152       between when a client intro circuit opens and when its descriptor
5153       gets cleaned up from the cache. The circuit is now closed early,
5154       which will trigger a re-fetch of the descriptor and continue the
5155       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
5157   o Minor bugfixes (clock skew detection, backport from 0.4.1.5):
5158     - Don't believe clock skew results from NETINFO cells that appear to
5159       arrive before we sent the VERSIONS cells they are responding to.
5160       Previously, we would accept them up to 3 minutes "in the past".
5161       Fixes bug 31343; bugfix on 0.2.4.4-alpha.
5163   o Minor bugfixes (compilation warning, backport from 0.4.1.5):
5164     - Fix a compilation warning on Windows about casting a function
5165       pointer for GetTickCount64(). Fixes bug 31374; bugfix
5166       on 0.2.9.1-alpha.
5168   o Minor bugfixes (compilation, backport from 0.4.1.5):
5169     - Avoid using labs() on time_t, which can cause compilation warnings
5170       on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha.
5172   o Minor bugfixes (compilation, backport from 0.4.2.1-alpha):
5173     - Suppress spurious float-conversion warnings from GCC when calling
5174       floating-point classifier functions on FreeBSD. Fixes part of bug
5175       31687; bugfix on 0.3.1.5-alpha.
5177   o Minor bugfixes (compilation, unusual configurations, backport from 0.4.1.1-alpha):
5178     - Avoid failures when building with the ALL_BUGS_ARE_FATAL option
5179       due to missing declarations of abort(), and prevent other such
5180       failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha.
5182   o Minor bugfixes (configuration, proxies, backport from 0.4.1.2-alpha):
5183     - Fix a bug that prevented us from supporting SOCKS5 proxies that
5184       want authentication along with configured (but unused!)
5185       ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha.
5187   o Minor bugfixes (connections, backport from 0.4.2.3-rc):
5188     - Avoid trying to read data from closed connections, which can cause
5189       needless loops in Libevent and infinite loops in Shadow. Fixes bug
5190       30344; bugfix on 0.1.1.1-alpha.
5192   o Minor bugfixes (continuous integration, backport from 0.4.1.3-alpha):
5193     - Allow the test-stem job to fail in Travis, because it sometimes
5194       hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha.
5195     - Skip test_rebind on macOS in Travis, because it is unreliable on
5196       macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
5197     - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment
5198       variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
5200   o Minor bugfixes (crash on exit, backport from 0.4.1.4-rc):
5201     - Avoid a set of possible code paths that could try to use freed
5202       memory in routerlist_free() while Tor was exiting. Fixes bug
5203       31003; bugfix on 0.1.2.2-alpha.
5205   o Minor bugfixes (directory authorities, backport from 0.4.1.3-alpha):
5206     - Stop crashing after parsing an unknown descriptor purpose
5207       annotation. We think this bug can only be triggered by modifying a
5208       local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha.
5210   o Minor bugfixes (directory authority, backport from 0.4.1.2-alpha):
5211     - Move the "bandwidth-file-headers" line in directory authority
5212       votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix
5213       on 0.3.5.1-alpha.
5215   o Minor bugfixes (error handling, backport from 0.4.2.1-alpha):
5216     - On abort, try harder to flush the output buffers of log messages.
5217       On some platforms (macOS), log messages could be discarded when
5218       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
5219     - Report the tor version whenever an assertion fails. Previously, we
5220       only reported the Tor version on some crashes, and some non-fatal
5221       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
5223   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha):
5224     - When extracting an IPv6 address from a PF-based proxy, verify that
5225       we are actually configured to receive an IPv6 address, and log an
5226       internal error if not. Fixes part of bug 31687; bugfix
5227       on 0.2.3.4-alpha.
5229   o Minor bugfixes (guards, backport from 0.4.2.1-alpha):
5230     - When tor is missing descriptors for some primary entry guards,
5231       make the log message less alarming. It's normal for descriptors to
5232       expire, as long as tor fetches new ones soon after. Fixes bug
5233       31657; bugfix on 0.3.3.1-alpha.
5235   o Minor bugfixes (logging, backport from 0.4.1.1-alpha):
5236     - Do not log a warning when running with an OpenSSL version other
5237       than the one Tor was compiled with, if the two versions should be
5238       compatible. Previously, we would warn whenever the version was
5239       different. Fixes bug 30190; bugfix on 0.2.4.2-alpha.
5241   o Minor bugfixes (logging, backport from 0.4.2.1-alpha):
5242     - Change log level of message "Hash of session info was not as
5243       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
5244       on 0.1.1.10-alpha.
5246   o Minor bugfixes (logging, backport from 0.4.2.2-alpha):
5247     - Rate-limit our the logging message about the obsolete .exit
5248       notation. Previously, there was no limit on this warning, which
5249       could potentially be triggered many times by a hostile website.
5250       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
5252   o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha):
5253     - Do not log a nonfatal assertion failure when receiving a VERSIONS
5254       cell on a connection using the obsolete v1 link protocol. Log a
5255       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
5257   o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha):
5258     - Reset the periodic events' "enabled" flag when Tor is shut down
5259       cleanly. Previously, this flag was left on, which caused periodic
5260       events not to be re-enabled when Tor was relaunched in-process
5261       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
5262       on 0.3.3.1-alpha.
5264   o Minor bugfixes (memory leak, backport from 0.4.1.1-alpha):
5265     - Avoid a minor memory leak that could occur on relays when failing
5266       to create a "keys" directory. Fixes bug 30148; bugfix
5267       on 0.3.3.1-alpha.
5269   o Minor bugfixes (memory leak, backport from 0.4.1.4-rc):
5270     - Fix a trivial memory leak when parsing an invalid value
5271       from a download schedule in the configuration. Fixes bug
5272       30894; bugfix on 0.3.4.1-alpha.
5274   o Minor bugfixes (NetBSD, backport from 0.4.1.2-alpha):
5275     - Fix usage of minherit() on NetBSD and other platforms that define
5276       MAP_INHERIT_{ZERO,NONE} instead of INHERIT_{ZERO,NONE}. Fixes bug
5277       30614; bugfix on 0.4.0.2-alpha. Patch from Taylor Campbell.
5279   o Minor bugfixes (onion services, backport from 0.4.1.1-alpha):
5280     - Avoid a GCC 9.1.1 warning (and possible crash depending on libc
5281       implemenation) when failing to load an onion service client
5282       authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha.
5284   o Minor bugfixes (out-of-memory handler, backport from 0.4.1.2-alpha):
5285     - When purging the DNS cache because of an out-of-memory condition,
5286       try purging just the older entries at first. Previously, we would
5287       always purge the whole thing. Fixes bug 29617; bugfix
5288       on 0.3.5.1-alpha.
5290   o Minor bugfixes (portability, backport from 0.4.1.2-alpha):
5291     - Avoid crashing in our tor_vasprintf() implementation on systems
5292       that define neither vasprintf() nor _vscprintf(). (This bug has
5293       been here long enough that we question whether people are running
5294       Tor on such systems, but we're applying the fix out of caution.)
5295       Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by
5296       Tobias Stoeckmann.
5298   o Minor bugfixes (process management, backport from 0.4.2.3-alpha):
5299     - Remove overly strict assertions that triggered when a pluggable
5300       transport failed to launch. Fixes bug 31091; bugfix
5301       on 0.4.0.1-alpha.
5302     - Remove an assertion in the Unix process backend. This assertion
5303       would trigger when we failed to find the executable for a child
5304       process. Fixes bug 31810; bugfix on 0.4.0.1-alpha.
5306   o Minor bugfixes (relay, backport from 0.4.2.2-alpha):
5307     - Avoid crashing when starting with a corrupt keys directory where
5308       the old ntor key and the new ntor key are identical. Fixes bug
5309       30916; bugfix on 0.2.4.8-alpha.
5311   o Minor bugfixes (rust, backport from 0.4.2.1-alpha):
5312     - Correctly exclude a redundant rust build job in Travis. Fixes bug
5313       31463; bugfix on 0.3.5.4-alpha.
5315   o Minor bugfixes (testing, backport from 0.4.2.3-alpha):
5316     - When testing port rebinding, don't busy-wait for tor to log.
5317       Instead, actually sleep for a short time before polling again.
5318       Also improve the formatting of control commands and log messages.
5319       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
5321   o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha):
5322     - Log bugs about the TLS read buffer's length only once, rather than
5323       filling the logs with similar warnings. Fixes bug 31939; bugfix
5324       on 0.3.0.4-rc.
5326   o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha):
5327     - Always retry v2 single onion service intro and rend circuits with
5328       a 3-hop path. Previously, v2 single onion services used a 3-hop
5329       path when rendezvous circuits were retried after a remote or
5330       delayed failure, but a 1-hop path for immediate retries. Fixes bug
5331       23818; bugfix on 0.2.9.3-alpha.
5332     - Make v3 single onion services fall back to a 3-hop intro, when all
5333       intro points are unreachable via a 1-hop path. Previously, v3
5334       single onion services failed when all intro nodes were unreachable
5335       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
5337   o Documentation (backport from 0.4.2.1-alpha):
5338     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
5339       notice.html so that operators no longer have to host it
5340       themselves. Closes ticket 31089.
5342   o Testing (backport from 0.4.1.2-alpha):
5343     - Specify torrc paths (with empty files) when launching tor in
5344       integration tests; refrain from reading user and system torrcs.
5345       Resolves issue 29702.
5347   o Testing (continuous integration, backport from 0.4.1.1-alpha):
5348     - In Travis, show stem's tor log after failure. Closes ticket 30234.
5350   o Testing (continuous integration, backport from 0.4.1.5):
5351     - In Travis, make stem log a controller trace to the console, and
5352       tail stem's tor log after failure. Closes ticket 30591.
5353     - In Travis, only run the stem tests that use a tor binary. Closes
5354       ticket 30694.
5356   o Testing (continuous integration, backport from 0.4.2.3-alpha):
5357     - Disable all but one Travis CI macOS build, to mitigate slow
5358       scheduling of Travis macOS jobs. Closes ticket 32177.
5359     - Run the chutney IPv6 networks as part of Travis CI. Closes
5360       ticket 30860.
5361     - Simplify the Travis CI build matrix, and optimise for build time.
5362       Closes ticket 31859.
5363     - Use Windows Server 2019 instead of Windows Server 2016 in our
5364       Appveyor builds. Closes ticket 32086.
5366   o Testing (continuous integration, backport from 0.4.2.4-rc):
5367     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
5368       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
5369       until we can fix some Bionic permissions issues (see ticket
5370       32240). Related to ticket 31919.
5371     - Install the mingw OpenSSL package in Appveyor. This makes sure
5372       that the OpenSSL headers and libraries match in Tor's Appveyor
5373       builds. (This bug was triggered by an Appveyor image update.)
5374       Fixes bug 32449; bugfix on 0.3.5.6-rc.
5375     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
5377   o Testing (continuous integration, backport from 0.4.2.5):
5378     - Require C99 standards-conforming code in Travis CI, but allow GNU gcc
5379       extensions. Also activates clang's -Wtypedef-redefinition warnings.
5380       Build some jobs with -std=gnu99, and some jobs without.
5381       Closes ticket 32500.
5383 Changes in version 0.3.5.9 - 2019-12-09
5384   Tor 0.3.5.9 backports serveral fixes from later releases, including
5385   several that affect bridge users, relay stability, onion services,
5386   and much more.
5388   o Directory authority changes (backport from 0.4.1.5):
5389     - The directory authority "dizum" has a new IP address. Closes
5390       ticket 31406.
5392   o Major bugfixes (bridges, backport from 0.4.1.2-alpha):
5393     - Consider our directory information to have changed when our list
5394       of bridges changes. Previously, Tor would not re-compute the
5395       status of its directory information when bridges changed, and
5396       therefore would not realize that it was no longer able to build
5397       circuits. Fixes part of bug 29875.
5398     - Do not count previously configured working bridges towards our
5399       total of working bridges. Previously, when Tor's list of bridges
5400       changed, it would think that the old bridges were still usable,
5401       and delay fetching router descriptors for the new ones. Fixes part
5402       of bug 29875; bugfix on 0.3.0.1-alpha.
5404   o Major bugfixes (circuit build, guard, backport from 0.4.1.4-rc):
5405     - When considering upgrading circuits from "waiting for guard" to
5406       "open", always ignore circuits that are marked for close. Otherwise,
5407       we can end up in the situation where a subsystem is notified that
5408       a closing circuit has just opened, leading to undesirable
5409       behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha.
5411   o Major bugfixes (NSS, relay, backport from 0.4.0.4-rc):
5412     - When running with NSS, disable TLS 1.2 ciphersuites that use
5413       SHA384 for their PRF. Due to an NSS bug, the TLS key exporters for
5414       these ciphersuites don't work -- which caused relays to fail to
5415       handshake with one another when these ciphersuites were enabled.
5416       Fixes bug 29241; bugfix on 0.3.5.1-alpha.
5418   o Major bugfixes (Onion service reachability, backport from 0.4.1.3-alpha):
5419     - Properly clean up the introduction point map when circuits change
5420       purpose from onion service circuits to pathbias, measurement, or
5421       other circuit types. This should fix some service-side instances
5422       of introduction point failure. Fixes bug 29034; bugfix
5423       on 0.3.2.1-alpha.
5425   o Major bugfixes (onion service v3, backport from 0.4.1.1-alpha):
5426     - Fix an unreachable bug in which an introduction point could try to
5427       send an INTRODUCE_ACK with a status code that Trunnel would refuse
5428       to encode, leading the relay to assert(). We've consolidated the
5429       ABI values into Trunnel now. Fixes bug 30454; bugfix
5430       on 0.3.0.1-alpha.
5431     - Clients can now handle unknown status codes from INTRODUCE_ACK
5432       cells. (The NACK behavior will stay the same.) This will allow us
5433       to extend status codes in the future without breaking the normal
5434       client behavior. Fixes another part of bug 30454; bugfix
5435       on 0.3.0.1-alpha.
5437   o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha):
5438     - Stop ignoring torrc options after an %include directive, when the
5439       included directory ends with a file that does not contain any
5440       config options (but does contain comments or whitespace). Fixes
5441       bug 31408; bugfix on 0.3.1.1-alpha.
5443   o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha):
5444     - Onion services now always use the exact number of intro points
5445       configured with the HiddenServiceNumIntroductionPoints option (or
5446       fewer if nodes are excluded). Before, a service could sometimes
5447       pick more intro points than configured. Fixes bug 31548; bugfix
5448       on 0.3.2.1-alpha.
5450   o Minor features (address selection, backport from 0.4.0.3-alpha):
5451     - Treat the subnet 100.64.0.0/10 as public for some purposes;
5452       private for others. This subnet is the RFC 6598 (Carrier Grade
5453       NAT) IP range, and is deployed by many ISPs as an alternative to
5454       RFC 1918 that does not break existing internal networks. Tor now
5455       blocks SOCKS and control ports on these addresses and warns users
5456       if client ports or ExtORPorts are listening on a RFC 6598 address.
5457       Closes ticket 28525. Patch by Neel Chauhan.
5459   o Minor features (bandwidth authority, backport from 0.4.0.4-rc):
5460     - Make bandwidth authorities ignore relays that are reported in the
5461       bandwidth file with the flag "vote=0". This change allows us to
5462       report unmeasured relays for diagnostic reasons without including
5463       their bandwidth in the bandwidth authorities' vote. Closes
5464       ticket 29806.
5466   o Minor features (compile-time modules, backport from version 0.4.1.1-alpha):
5467     - Add a "--list-modules" command to print a list of which compile-
5468       time modules are enabled. Closes ticket 30452.
5470   o Minor features (continuous integration, backport from 0.4.0.4-rc):
5471     - On Travis Rust builds, cleanup Rust registry and refrain from
5472       caching the "target/" directory to speed up builds. Resolves
5473       issue 29962.
5475   o Minor features (continuous integration, backport from 0.4.0.5):
5476     - In Travis, tell timelimit to use stem's backtrace signals, and
5477       launch python directly from timelimit, so python receives the
5478       signals from timelimit, rather than make. Closes ticket 30117.
5480   o Minor features (continuous integration, backport from 0.4.1.1-alpha):
5481     - Remove sudo configuration lines from .travis.yml as they are no
5482       longer needed with current Travis build environment. Resolves
5483       issue 30213.
5485   o Minor features (continuous integration, backport from 0.4.1.4-rc):
5486     - Our Travis configuration now uses Chutney to run some network
5487       integration tests automatically. Closes ticket 29280.
5489   o Minor features (continuous integration, backport from 0.4.2.2-alpha):
5490     - When building on Appveyor and Travis, pass the "-k" flag to make,
5491       so that we are informed of all compilation failures, not just the
5492       first one or two. Closes ticket 31372.
5494   o Minor features (fallback directory list, backport from 0.4.1.4-rc):
5495     - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc
5496       in December 2018 (of which ~122 were still functional), with a
5497       list of 148 fallbacks (70 new, 78 existing, 79 removed) generated
5498       in June 2019. Closes ticket 28795.
5500   o Minor features (geoip, backport from 0.4.2.5):
5501     - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2
5502       Country database. Closes ticket 32685.
5504   o Minor features (NSS, diagnostic, backport from 0.4.0.4-rc):
5505     - Try to log an error from NSS (if there is any) and a more useful
5506       description of our situation if we are using NSS and a call to
5507       SSL_ExportKeyingMaterial() fails. Diagnostic for ticket 29241.
5509   o Minor features (stem tests, backport from 0.4.2.1-alpha):
5510     - Change "make test-stem" so it only runs the stem tests that use
5511       tor. This change makes test-stem faster and more reliable. Closes
5512       ticket 31554.
5514   o Minor bugfixes (security, backport from 0.4.0.4-rc):
5515     - Verify in more places that we are not about to create a buffer
5516       with more than INT_MAX bytes, to avoid possible OOB access in the
5517       event of bugs. Fixes bug 30041; bugfix on 0.2.0.16. Found and
5518       fixed by Tobias Stoeckmann.
5519     - Fix a potential double free bug when reading huge bandwidth files.
5520       The issue is not exploitable in the current Tor network because
5521       the vulnerable code is only reached when directory authorities
5522       read bandwidth files, but bandwidth files come from a trusted
5523       source (usually the authorities themselves). Furthermore, the
5524       issue is only exploitable in rare (non-POSIX) 32-bit architectures,
5525       which are not used by any of the current authorities. Fixes bug
5526       30040; bugfix on 0.3.5.1-alpha. Bug found and fixed by
5527       Tobias Stoeckmann.
5529   o Minor bugfix (continuous integration, backport from 0.4.0.4-rc):
5530     - Reset coverage state on disk after Travis CI has finished. This
5531       should prevent future coverage merge errors from causing the test
5532       suite for the "process" subsystem to fail. The process subsystem
5533       was introduced in 0.4.0.1-alpha. Fixes bug 29036; bugfix
5534       on 0.2.9.15.
5535     - Terminate test-stem if it takes more than 9.5 minutes to run.
5536       (Travis terminates the job after 10 minutes of no output.)
5537       Diagnostic for 29437. Fixes bug 30011; bugfix on 0.3.5.4-alpha.
5539   o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha):
5540     - Avoid spurious errors when Appveyor CI fails before the install step.
5541       Fixes bug 31884; bugfix on 0.3.4.2-alpha.
5543   o Minor bugfixes (build system, backport form 0.4.2.1-alpha):
5544     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
5545       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
5547   o Minor bugfixes (C correctness, backport from 0.4.0.4-rc):
5548     - Fix an unlikely memory leak in consensus_diff_apply(). Fixes bug
5549       29824; bugfix on 0.3.1.1-alpha. This is Coverity warning
5550       CID 1444119.
5552   o Minor bugfixes (circuit isolation, backport from 0.4.1.3-alpha):
5553     - Fix a logic error that prevented the SessionGroup sub-option from
5554       being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha.
5556   o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc):
5557     - Fix a BUG() assertion that occurs within a very small race window
5558       between when a client intro circuit opens and when its descriptor
5559       gets cleaned up from the cache. The circuit is now closed early,
5560       which will trigger a re-fetch of the descriptor and continue the
5561       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
5563   o Minor bugfixes (clock skew detection, backport from 0.4.1.5):
5564     - Don't believe clock skew results from NETINFO cells that appear to
5565       arrive before we sent the VERSIONS cells they are responding to.
5566       Previously, we would accept them up to 3 minutes "in the past".
5567       Fixes bug 31343; bugfix on 0.2.4.4-alpha.
5569   o Minor bugfixes (compilation warning, backport from 0.4.1.5):
5570     - Fix a compilation warning on Windows about casting a function
5571       pointer for GetTickCount64(). Fixes bug 31374; bugfix
5572       on 0.2.9.1-alpha.
5574   o Minor bugfixes (compilation, backport from 0.4.0.2-alpha):
5575     - Silence a compiler warning in test-memwipe.c on OpenBSD. Fixes bug
5576       29145; bugfix on 0.2.9.3-alpha. Patch from Kris Katterjohn.
5578   o Minor bugfixes (compilation, backport from 0.4.1.5):
5579     - Avoid using labs() on time_t, which can cause compilation warnings
5580       on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha.
5582   o Minor bugfixes (compilation, backport from 0.4.2.1-alpha):
5583     - Suppress spurious float-conversion warnings from GCC when calling
5584       floating-point classifier functions on FreeBSD. Fixes part of bug
5585       31687; bugfix on 0.3.1.5-alpha.
5587   o Minor bugfixes (compilation, unusual configurations, backport from 0.4.1.1-alpha):
5588     - Avoid failures when building with the ALL_BUGS_ARE_FATAL option
5589       due to missing declarations of abort(), and prevent other such
5590       failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha.
5592   o Minor bugfixes (configuration, proxies, backport from 0.4.1.2-alpha):
5593     - Fix a bug that prevented us from supporting SOCKS5 proxies that
5594       want authentication along with configured (but unused!)
5595       ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha.
5597   o Minor bugfixes (connections, backport from 0.4.2.3-rc):
5598     - Avoid trying to read data from closed connections, which can cause
5599       needless loops in Libevent and infinite loops in Shadow. Fixes bug
5600       30344; bugfix on 0.1.1.1-alpha.
5602   o Minor bugfixes (continuous integration, backport from 0.4.1.3-alpha):
5603     - Allow the test-stem job to fail in Travis, because it sometimes
5604       hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha.
5605     - Skip test_rebind on macOS in Travis, because it is unreliable on
5606       macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
5607     - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment
5608       variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
5610   o Minor bugfixes (crash on exit, backport from 0.4.1.4-rc):
5611     - Avoid a set of possible code paths that could try to use freed
5612       memory in routerlist_free() while Tor was exiting. Fixes bug
5613       31003; bugfix on 0.1.2.2-alpha.
5615   o Minor bugfixes (directory authorities, backport from 0.4.1.3-alpha):
5616     - Stop crashing after parsing an unknown descriptor purpose
5617       annotation. We think this bug can only be triggered by modifying a
5618       local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha.
5620   o Minor bugfixes (directory authority, backport from 0.4.1.2-alpha):
5621     - Move the "bandwidth-file-headers" line in directory authority
5622       votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix
5623       on 0.3.5.1-alpha.
5625   o Minor bugfixes (error handling, backport from 0.4.2.1-alpha):
5626     - On abort, try harder to flush the output buffers of log messages.
5627       On some platforms (macOS), log messages could be discarded when
5628       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
5629     - Report the tor version whenever an assertion fails. Previously, we
5630       only reported the Tor version on some crashes, and some non-fatal
5631       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
5633   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha):
5634     - When extracting an IPv6 address from a PF-based proxy, verify that
5635       we are actually configured to receive an IPv6 address, and log an
5636       internal error if not. Fixes part of bug 31687; bugfix
5637       on 0.2.3.4-alpha.
5639   o Minor bugfixes (guards, backport from 0.4.2.1-alpha):
5640     - When tor is missing descriptors for some primary entry guards,
5641       make the log message less alarming. It's normal for descriptors to
5642       expire, as long as tor fetches new ones soon after. Fixes bug
5643       31657; bugfix on 0.3.3.1-alpha.
5645   o Minor bugfixes (logging, backport from 0.4.0.2-alpha):
5646     - Avoid logging that we are relaxing a circuit timeout when that
5647       timeout is fixed. Fixes bug 28698; bugfix on 0.2.4.7-alpha.
5649   o Minor bugfixes (logging, backport from 0.4.0.3-alpha):
5650     - Correct a misleading error message when IPv4Only or IPv6Only is
5651       used but the resolved address can not be interpreted as an address
5652       of the specified IP version. Fixes bug 13221; bugfix on
5653       0.2.3.9-alpha. Patch from Kris Katterjohn.
5654     - Log the correct port number for listening sockets when "auto" is
5655       used to let Tor pick the port number. Previously, port 0 was
5656       logged instead of the actual port number. Fixes bug 29144; bugfix
5657       on 0.3.5.1-alpha. Patch from Kris Katterjohn.
5658     - Stop logging a BUG() warning when Tor is waiting for exit
5659       descriptors. Fixes bug 28656; bugfix on 0.3.5.1-alpha.
5661   o Minor bugfixes (logging, backport from 0.4.1.1-alpha):
5662     - Do not log a warning when running with an OpenSSL version other
5663       than the one Tor was compiled with, if the two versions should be
5664       compatible. Previously, we would warn whenever the version was
5665       different. Fixes bug 30190; bugfix on 0.2.4.2-alpha.
5667   o Minor bugfixes (logging, backport from 0.4.2.1-alpha):
5668     - Change log level of message "Hash of session info was not as
5669       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
5670       on 0.1.1.10-alpha.
5672   o Minor bugfixes (logging, backport from 0.4.2.2-alpha):
5673     - Rate-limit our the logging message about the obsolete .exit
5674       notation. Previously, there was no limit on this warning, which
5675       could potentially be triggered many times by a hostile website.
5676       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
5678   o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha):
5679     - Do not log a nonfatal assertion failure when receiving a VERSIONS
5680       cell on a connection using the obsolete v1 link protocol. Log a
5681       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
5683   o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha):
5684     - Reset the periodic events' "enabled" flag when Tor is shut down
5685       cleanly. Previously, this flag was left on, which caused periodic
5686       events not to be re-enabled when Tor was relaunched in-process
5687       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
5688       on 0.3.3.1-alpha.
5690   o Minor bugfixes (memory leak, backport from 0.4.1.1-alpha):
5691     - Avoid a minor memory leak that could occur on relays when failing
5692       to create a "keys" directory. Fixes bug 30148; bugfix
5693       on 0.3.3.1-alpha.
5695   o Minor bugfixes (memory leak, backport from 0.4.1.4-rc):
5696     - Fix a trivial memory leak when parsing an invalid value
5697       from a download schedule in the configuration. Fixes bug
5698       30894; bugfix on 0.3.4.1-alpha.
5700   o Minor bugfixes (memory management, backport from 0.4.0.3-alpha):
5701     - Refactor the shared random state's memory management so that it
5702       actually takes ownership of the shared random value pointers.
5703       Fixes bug 29706; bugfix on 0.2.9.1-alpha.
5705   o Minor bugfixes (memory management, testing, backport from 0.4.0.3-alpha):
5706     - Stop leaking parts of the shared random state in the shared-random
5707       unit tests. Fixes bug 29599; bugfix on 0.2.9.1-alpha.
5709   o Minor bugfixes (onion services, backport from 0.4.1.1-alpha):
5710     - Avoid a GCC 9.1.1 warning (and possible crash depending on libc
5711       implemenation) when failing to load an onion service client
5712       authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha.
5714   o Minor bugfixes (out-of-memory handler, backport from 0.4.1.2-alpha):
5715     - When purging the DNS cache because of an out-of-memory condition,
5716       try purging just the older entries at first. Previously, we would
5717       always purge the whole thing. Fixes bug 29617; bugfix
5718       on 0.3.5.1-alpha.
5720   o Minor bugfixes (portability, backport from 0.4.1.2-alpha):
5721     - Avoid crashing in our tor_vasprintf() implementation on systems
5722       that define neither vasprintf() nor _vscprintf(). (This bug has
5723       been here long enough that we question whether people are running
5724       Tor on such systems, but we're applying the fix out of caution.)
5725       Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by
5726       Tobias Stoeckmann.
5728   o Minor bugfixes (relay, backport from 0.4.2.2-alpha):
5729     - Avoid crashing when starting with a corrupt keys directory where
5730       the old ntor key and the new ntor key are identical. Fixes bug
5731       30916; bugfix on 0.2.4.8-alpha.
5733   o Minor bugfixes (rust, backport from 0.4.0.5):
5734     - Abort on panic in all build profiles, instead of potentially
5735       unwinding into C code. Fixes bug 27199; bugfix on 0.3.3.1-alpha.
5737   o Minor bugfixes (rust, backport from 0.4.2.1-alpha):
5738     - Correctly exclude a redundant rust build job in Travis. Fixes bug
5739       31463; bugfix on 0.3.5.4-alpha.
5741   o Minor bugfixes (single onion services, backport from 0.4.0.3-alpha):
5742     - Allow connections to single onion services to remain idle without
5743       being disconnected. Previously, relays acting as rendezvous points
5744       for single onion services were mistakenly closing idle rendezvous
5745       circuits after 60 seconds, thinking that they were unused
5746       directory-fetching circuits that had served their purpose. Fixes
5747       bug 29665; bugfix on 0.2.1.26.
5749   o Minor bugfixes (stats, backport from 0.4.0.3-alpha):
5750     - When ExtraInfoStatistics is 0, stop including PaddingStatistics in
5751       relay and bridge extra-info documents. Fixes bug 29017; bugfix
5752       on 0.3.1.1-alpha.
5754   o Minor bugfixes (testing, backport from 0.4.0.3-alpha):
5755     - Downgrade some LOG_ERR messages in the address/* tests to
5756       warnings. The LOG_ERR messages were occurring when we had no
5757       configured network. We were failing the unit tests, because we
5758       backported 28668 to 0.3.5.8, but did not backport 29530. Fixes bug
5759       29530; bugfix on 0.3.5.8.
5760     - Fix our gcov wrapper script to look for object files at the
5761       correct locations. Fixes bug 29435; bugfix on 0.3.5.1-alpha.
5763   o Minor bugfixes (testing, backport from 0.4.0.4-rc):
5764     - Backport the 0.3.4 src/test/test-network.sh to 0.2.9. We need a
5765       recent test-network.sh to use new chutney features in CI. Fixes
5766       bug 29703; bugfix on 0.2.9.1-alpha.
5767     - Fix a test failure on Windows caused by an unexpected "BUG"
5768       warning in our tests for tor_gmtime_r(-1). Fixes bug 29922; bugfix
5769       on 0.2.9.3-alpha.
5771   o Minor bugfixes (testing, backport from 0.4.2.3-alpha):
5772     - When testing port rebinding, don't busy-wait for tor to log.
5773       Instead, actually sleep for a short time before polling again.
5774       Also improve the formatting of control commands and log messages.
5775       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
5777   o Minor bugfixes (TLS protocol, backport form 0.4.0.4-rc):
5778     - When classifying a client's selection of TLS ciphers, if the
5779       client ciphers are not yet available, do not cache the result.
5780       Previously, we had cached the unavailability of the cipher list
5781       and never looked again, which in turn led us to assume that the
5782       client only supported the ancient V1 link protocol. This, in turn,
5783       was causing Stem integration tests to stall in some cases. Fixes
5784       bug 30021; bugfix on 0.2.4.8-alpha.
5786   o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha):
5787     - Log bugs about the TLS read buffer's length only once, rather than
5788       filling the logs with similar warnings. Fixes bug 31939; bugfix
5789       on 0.3.0.4-rc.
5791   o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha):
5792     - Always retry v2 single onion service intro and rend circuits with
5793       a 3-hop path. Previously, v2 single onion services used a 3-hop
5794       path when rendezvous circuits were retried after a remote or
5795       delayed failure, but a 1-hop path for immediate retries. Fixes bug
5796       23818; bugfix on 0.2.9.3-alpha.
5797     - Make v3 single onion services fall back to a 3-hop intro, when all
5798       intro points are unreachable via a 1-hop path. Previously, v3
5799       single onion services failed when all intro nodes were unreachable
5800       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
5802   o Minor bugfixes (Windows, CI, backport from 0.4.0.3-alpha):
5803     - Skip the Appveyor 32-bit Windows Server 2016 job, and 64-bit
5804       Windows Server 2012 R2 job. The remaining 2 jobs still provide
5805       coverage of 64/32-bit, and Windows Server 2016/2012 R2. Also set
5806       fast_finish, so failed jobs terminate the build immediately. Fixes
5807       bug 29601; bugfix on 0.3.5.4-alpha.
5809   o Documentation (backport from 0.4.2.1-alpha):
5810     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
5811       notice.html so that operators no longer have to host it
5812       themselves. Closes ticket 31089.
5814   o Testing (backport from 0.4.1.2-alpha):
5815     - Specify torrc paths (with empty files) when launching tor in
5816       integration tests; refrain from reading user and system torrcs.
5817       Resolves issue 29702.
5819   o Testing (continuous integration, backport from 0.4.1.1-alpha):
5820     - In Travis, show stem's tor log after failure. Closes ticket 30234.
5822   o Testing (continuous integration, backport from 0.4.1.5):
5823     - In Travis, make stem log a controller trace to the console, and
5824       tail stem's tor log after failure. Closes ticket 30591.
5825     - In Travis, only run the stem tests that use a tor binary. Closes
5826       ticket 30694.
5828   o Testing (continuous integration, backport from 0.4.2.3-alpha):
5829     - Disable all but one Travis CI macOS build, to mitigate slow
5830       scheduling of Travis macOS jobs. Closes ticket 32177.
5831     - Run the chutney IPv6 networks as part of Travis CI. Closes
5832       ticket 30860.
5833     - Simplify the Travis CI build matrix, and optimise for build time.
5834       Closes ticket 31859.
5835     - Use Windows Server 2019 instead of Windows Server 2016 in our
5836       Appveyor builds. Closes ticket 32086.
5838   o Testing (continuous integration, backport from 0.4.2.4-rc):
5839     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
5840       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
5841       until we can fix some Bionic permissions issues (see ticket
5842       32240). Related to ticket 31919.
5843     - Install the mingw OpenSSL package in Appveyor. This makes sure
5844       that the OpenSSL headers and libraries match in Tor's Appveyor
5845       builds. (This bug was triggered by an Appveyor image update.)
5846       Fixes bug 32449; bugfix on 0.3.5.6-rc.
5847     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
5849   o Testing (continuous integration, backport from 0.4.2.5):
5850     - Require C99 standards-conforming code in Travis CI, but allow GNU gcc
5851       extensions. Also activates clang's -Wtypedef-redefinition warnings.
5852       Build some jobs with -std=gnu99, and some jobs without.
5853       Closes ticket 32500.
5855 Changes in version 0.4.2.4-rc - 2019-11-15
5856   Tor 0.4.2.4-rc is the first release candidate in its series. It fixes
5857   several bugs from earlier versions, including a few that would result in
5858   stack traces or incorrect behavior.
5860   o Minor features (build system):
5861     - Make pkg-config use --prefix when cross-compiling, if
5862       PKG_CONFIG_PATH is not set. Closes ticket 32191.
5864   o Minor features (geoip):
5865     - Update geoip and geoip6 to the November 6 2019 Maxmind GeoLite2
5866       Country database. Closes ticket 32440.
5868   o Minor bugfixes (client, onion service v3):
5869     - Fix a BUG() assertion that occurs within a very small race window
5870       between when a client intro circuit opens and when its descriptor
5871       gets cleaned up from the cache. The circuit is now closed early,
5872       which will trigger a re-fetch of the descriptor and continue the
5873       connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha.
5875   o Minor bugfixes (code quality):
5876     - Fix "make check-includes" so it runs correctly on out-of-tree
5877       builds. Fixes bug 31335; bugfix on 0.3.5.1-alpha.
5879   o Minor bugfixes (configuration):
5880     - Log the option name when skipping an obsolete option. Fixes bug
5881       32295; bugfix on 0.4.2.1-alpha.
5883   o Minor bugfixes (crash):
5884     - When running Tor with an option like --verify-config or
5885       --dump-config that does not start the event loop, avoid crashing
5886       if we try to exit early because of an error. Fixes bug 32407;
5887       bugfix on 0.3.3.1-alpha.
5889   o Minor bugfixes (directory):
5890     - When checking if a directory connection is anonymous, test if the
5891       circuit was marked for close before looking at its channel. This
5892       avoids a BUG() stacktrace if the circuit was previously closed.
5893       Fixes bug 31958; bugfix on 0.4.2.1-alpha.
5895   o Minor bugfixes (shellcheck):
5896     - Fix minor shellcheck errors in the git-*.sh scripts. Fixes bug
5897       32402; bugfix on 0.4.2.1-alpha.
5898     - Start checking most scripts for shellcheck errors again. Fixes bug
5899       32402; bugfix on 0.4.2.1-alpha.
5901   o Testing (continuous integration):
5902     - Use Ubuntu Bionic images for our Travis CI builds, so we can get a
5903       recent version of coccinelle. But leave chutney on Ubuntu Trusty,
5904       until we can fix some Bionic permissions issues (see ticket
5905       32240). Related to ticket 31919.
5906     - Install the mingw OpenSSL package in Appveyor. This makes sure
5907       that the OpenSSL headers and libraries match in Tor's Appveyor
5908       builds. (This bug was triggered by an Appveyor image update.)
5909       Fixes bug 32449; bugfix on 0.3.5.6-rc.
5910     - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241.
5913 Changes in version 0.4.2.3-alpha - 2019-10-24
5914   This release fixes several bugs from the previous alpha release, and
5915   from earlier versions of Tor.
5917   o Major bugfixes (relay):
5918     - Relays now respect their AccountingMax bandwidth again. When
5919       relays entered "soft" hibernation (which typically starts when
5920       we've hit 90% of our AccountingMax), we had stopped checking
5921       whether we should enter hard hibernation. Soft hibernation refuses
5922       new connections and new circuits, but the existing circuits can
5923       continue, meaning that relays could have exceeded their configured
5924       AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha.
5926   o Major bugfixes (v3 onion services):
5927     - Onion services now always use the exact number of intro points
5928       configured with the HiddenServiceNumIntroductionPoints option (or
5929       fewer if nodes are excluded). Before, a service could sometimes
5930       pick more intro points than configured. Fixes bug 31548; bugfix
5931       on 0.3.2.1-alpha.
5933   o Minor feature (onion services, control port):
5934     - The ADD_ONION command's keyword "BEST" now defaults to ED25519-V3
5935       (v3) onion services. Previously it defaulted to RSA1024 (v2).
5936       Closes ticket 29669.
5938   o Minor features (testing):
5939     - When running tests that attempt to look up hostnames, replace the
5940       libc name lookup functions with ones that do not actually touch
5941       the network. This way, the tests complete more quickly in the
5942       presence of a slow or missing DNS resolver. Closes ticket 31841.
5944   o Minor features (testing, continuous integration):
5945     - Disable all but one Travis CI macOS build, to mitigate slow
5946       scheduling of Travis macOS jobs. Closes ticket 32177.
5947     - Run the chutney IPv6 networks as part of Travis CI. Closes
5948       ticket 30860.
5949     - Simplify the Travis CI build matrix, and optimise for build time.
5950       Closes ticket 31859.
5951     - Use Windows Server 2019 instead of Windows Server 2016 in our
5952       Appveyor builds. Closes ticket 32086.
5954   o Minor bugfixes (build system):
5955     - Interpret "--disable-module-dirauth=no" correctly. Fixes bug
5956       32124; bugfix on 0.3.4.1-alpha.
5957     - Interpret "--with-tcmalloc=no" correctly. Fixes bug 32124; bugfix
5958       on 0.2.0.20-rc.
5959     - Stop failing when jemalloc is requested, but tcmalloc is not
5960       found. Fixes bug 32124; bugfix on 0.3.5.1-alpha.
5961     - When pkg-config is not installed, or a library that depends on
5962       pkg-config is not found, tell the user what to do to fix the
5963       problem. Fixes bug 31922; bugfix on 0.3.1.1-alpha.
5965   o Minor bugfixes (connections):
5966     - Avoid trying to read data from closed connections, which can cause
5967       needless loops in Libevent and infinite loops in Shadow. Fixes bug
5968       30344; bugfix on 0.1.1.1-alpha.
5970   o Minor bugfixes (error handling):
5971     - Always lock the backtrace buffer before it is used. Fixes bug
5972       31734; bugfix on 0.2.5.3-alpha.
5974   o Minor bugfixes (mainloop, periodic events, in-process API):
5975     - Reset the periodic events' "enabled" flag when Tor is shut down
5976       cleanly. Previously, this flag was left on, which caused periodic
5977       events not to be re-enabled when Tor was relaunched in-process
5978       with tor_api.h after a shutdown. Fixes bug 32058; bugfix
5979       on 0.3.3.1-alpha.
5981   o Minor bugfixes (process management):
5982     - Remove overly strict assertions that triggered when a pluggable
5983       transport failed to launch. Fixes bug 31091; bugfix
5984       on 0.4.0.1-alpha.
5985     - Remove an assertion in the Unix process backend. This assertion
5986       would trigger when we failed to find the executable for a child
5987       process. Fixes bug 31810; bugfix on 0.4.0.1-alpha.
5989   o Minor bugfixes (testing):
5990     - Avoid intermittent test failures due to a test that had relied on
5991       inconsistent timing sources. Fixes bug 31995; bugfix
5992       on 0.3.1.3-alpha.
5993     - When testing port rebinding, don't busy-wait for tor to log.
5994       Instead, actually sleep for a short time before polling again.
5995       Also improve the formatting of control commands and log messages.
5996       Fixes bug 31837; bugfix on 0.3.5.1-alpha.
5998   o Minor bugfixes (tls, logging):
5999     - Log bugs about the TLS read buffer's length only once, rather than
6000       filling the logs with similar warnings. Fixes bug 31939; bugfix
6001       on 0.3.0.4-rc.
6003   o Minor bugfixes (v3 onion services):
6004     - Fix an implicit conversion from ssize_t to size_t discovered by
6005       Coverity. Fixes bug 31682; bugfix on 0.4.2.1-alpha.
6006     - Fix a memory leak in an unlikely error code path when encoding HS
6007       DoS establish intro extension cell. Fixes bug 32063; bugfix
6008       on 0.4.2.1-alpha.
6009     - When cleaning up intro circuits for a v3 onion service, don't
6010       remove circuits that have an established or pending circuit, even
6011       if they ran out of retries. This way, we don't remove a circuit on
6012       its last retry. Fixes bug 31652; bugfix on 0.3.2.1-alpha.
6014   o Documentation:
6015     - Correct the description of "GuardLifetime". Fixes bug 31189;
6016       bugfix on 0.3.0.1-alpha.
6017     - Make clear in the man page, in both the bandwidth section and the
6018       AccountingMax section, that Tor counts in powers of two, not
6019       powers of ten: 1 GByte is 1024*1024*1024 bytes, not one billion
6020       bytes. Resolves ticket 32106.
6023 Changes in version 0.4.2.2-alpha - 2019-10-07
6024   This release fixes several bugs from the previous alpha release, and
6025   from earlier versions. It also includes a change in authorities, so
6026   that they begin to reject the currently unsupported release series.
6028   o Major features (directory authorities):
6029     - Directory authorities now reject relays running all currently
6030       deprecated release series. The currently supported release series
6031       are: 0.2.9, 0.3.5, 0.4.0, 0.4.1, and 0.4.2. Closes ticket 31549.
6033   o Major bugfixes (embedded Tor):
6034     - Avoid a possible crash when restarting Tor in embedded mode and
6035       enabling a different set of publish/subscribe messages. Fixes bug
6036       31898; bugfix on 0.4.1.1-alpha.
6038   o Major bugfixes (torrc parsing):
6039     - Stop ignoring torrc options after an %include directive, when the
6040       included directory ends with a file that does not contain any
6041       config options (but does contain comments or whitespace). Fixes
6042       bug 31408; bugfix on 0.3.1.1-alpha.
6044   o Minor features (auto-formatting scripts):
6045     - When annotating C macros, never generate a line that our check-
6046       spaces script would reject. Closes ticket 31759.
6047     - When annotating C macros, try to remove cases of double-negation.
6048       Closes ticket 31779.
6050   o Minor features (continuous integration):
6051     - When building on Appveyor and Travis, pass the "-k" flag to make,
6052       so that we are informed of all compilation failures, not just the
6053       first one or two. Closes ticket 31372.
6055   o Minor features (geoip):
6056     - Update geoip and geoip6 to the October 1 2019 Maxmind GeoLite2
6057       Country database. Closes ticket 31931.
6059   o Minor features (maintenance scripts):
6060     - Add a Coccinelle script to detect bugs caused by incrementing or
6061       decrementing a variable inside a call to log_debug(). Since
6062       log_debug() is a macro whose arguments are conditionally
6063       evaluated, it is usually an error to do this. One such bug was
6064       30628, in which SENDME cells were miscounted by a decrement
6065       operator inside a log_debug() call. Closes ticket 30743.
6067   o Minor features (onion services v3):
6068     - Assist users who try to setup v2 client authorization in v3 onion
6069       services by pointing them to the right documentation. Closes
6070       ticket 28966.
6072   o Minor bugfixes (Appveyor continuous integration):
6073     - Avoid spurious errors when Appveyor CI fails before the install
6074       step. Fixes bug 31884; bugfix on 0.3.4.2-alpha.
6076   o Minor bugfixes (best practices tracker):
6077     - When listing overbroad exceptions, do not also list problems, and
6078       do not list insufficiently broad exceptions. Fixes bug 31338;
6079       bugfix on 0.4.2.1-alpha.
6081   o Minor bugfixes (controller protocol):
6082     - Fix the MAPADDRESS controller command to accept one or more
6083       arguments. Previously, it required two or more arguments, and
6084       ignored the first. Fixes bug 31772; bugfix on 0.4.1.1-alpha.
6086   o Minor bugfixes (logging):
6087     - Add a missing check for HAVE_PTHREAD_H, because the backtrace code
6088       uses mutexes. Fixes bug 31614; bugfix on 0.2.5.2-alpha.
6089     - Disable backtrace signal handlers when shutting down tor. Fixes
6090       bug 31614; bugfix on 0.2.5.2-alpha.
6091     - Rate-limit our the logging message about the obsolete .exit
6092       notation. Previously, there was no limit on this warning, which
6093       could potentially be triggered many times by a hostile website.
6094       Fixes bug 31466; bugfix on 0.2.2.1-alpha.
6095     - When initialising log domain masks, only set known log domains.
6096       Fixes bug 31854; bugfix on 0.2.1.1-alpha.
6098   o Minor bugfixes (logging, protocol violations):
6099     - Do not log a nonfatal assertion failure when receiving a VERSIONS
6100       cell on a connection using the obsolete v1 link protocol. Log a
6101       protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha.
6103   o Minor bugfixes (modules):
6104     - Explain what the optional Directory Authority module is, and what
6105       happens when it is disabled. Fixes bug 31825; bugfix
6106       on 0.3.4.1-alpha.
6108   o Minor bugfixes (multithreading):
6109     - Avoid some undefined behaviour when freeing mutexes. Fixes bug
6110       31736; bugfix on 0.0.7.
6112   o Minor bugfixes (relay):
6113     - Avoid crashing when starting with a corrupt keys directory where
6114       the old ntor key and the new ntor key are identical. Fixes bug
6115       30916; bugfix on 0.2.4.8-alpha.
6117   o Minor bugfixes (tests, SunOS):
6118     - Avoid a map_anon_nofork test failure due to a signed/unsigned
6119       integer comparison. Fixes bug 31897; bugfix on 0.4.1.1-alpha.
6121   o Code simplification and refactoring:
6122     - Refactor connection_control_process_inbuf() to reduce the size of
6123       a practracker exception. Closes ticket 31840.
6124     - Refactor the microdescs_parse_from_string() function into smaller
6125       pieces, for better comprehensibility. Closes ticket 31675.
6126     - Use SEVERITY_MASK_IDX() to find the LOG_* mask indexes in the unit
6127       tests and fuzzers, rather than using hard-coded values. Closes
6128       ticket 31334.
6129     - Interface for function `decrypt_desc_layer` cleaned up. Closes
6130       ticket 31589.
6132   o Documentation:
6133     - Document the signal-safe logging behaviour in the tor man page.
6134       Also add some comments to the relevant functions. Closes
6135       ticket 31839.
6136     - Explain why we can't destroy the backtrace buffer mutex. Explain
6137       why we don't need to destroy the log mutex. Closes ticket 31736.
6138     - The Tor source code repository now includes a (somewhat dated)
6139       description of Tor's modular architecture, in doc/HACKING/design.
6140       This is based on the old "tor-guts.git" repository, which we are
6141       adopting and superseding. Closes ticket 31849.
6144 Changes in version 0.4.1.6 - 2019-09-19
6145   This release backports several bugfixes to improve stability and
6146   correctness.  Anyone experiencing build problems or crashes with 0.4.1.5,
6147   or experiencing reliability issues with single onion services, should
6148   upgrade.
6150   o Major bugfixes (crash, Linux, Android, backport from 0.4.2.1-alpha):
6151     - Tolerate systems (including some Android installations) where
6152       madvise and MADV_DONTDUMP are available at build-time, but not at
6153       run time. Previously, these systems would notice a failed syscall
6154       and abort. Fixes bug 31570; bugfix on 0.4.1.1-alpha.
6155     - Tolerate systems (including some Linux installations) where
6156       madvise and/or MADV_DONTFORK are available at build-time, but not
6157       at run time. Previously, these systems would notice a failed
6158       syscall and abort. Fixes bug 31696; bugfix on 0.4.1.1-alpha.
6160   o Minor features (stem tests, backport from 0.4.2.1-alpha):
6161     - Change "make test-stem" so it only runs the stem tests that use
6162       tor. This change makes test-stem faster and more reliable. Closes
6163       ticket 31554.
6165   o Minor bugfixes (build system, backport form 0.4.2.1-alpha):
6166     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
6167       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
6169   o Minor bugfixes (compilation, backport from 0.4.2.1-alpha):
6170     - Add more stub functions to fix compilation on Android with link-
6171       time optimization when --disable-module-dirauth is used.
6172       Previously, these compilation settings would make the compiler
6173       look for functions that didn't exist. Fixes bug 31552; bugfix
6174       on 0.4.1.1-alpha.
6175     - Suppress spurious float-conversion warnings from GCC when calling
6176       floating-point classifier functions on FreeBSD. Fixes part of bug
6177       31687; bugfix on 0.3.1.5-alpha.
6179   o Minor bugfixes (controller protocol):
6180     - Fix the MAPADDRESS controller command to accept one or more
6181       arguments. Previously, it required two or more arguments, and ignored
6182       the first. Fixes bug 31772; bugfix on 0.4.1.1-alpha.
6184   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha):
6185     - When extracting an IPv6 address from a PF-based proxy, verify that
6186       we are actually configured to receive an IPv6 address, and log an
6187       internal error if not. Fixes part of bug 31687; bugfix
6188       on 0.2.3.4-alpha.
6190   o Minor bugfixes (guards, backport from 0.4.2.1-alpha):
6191     - When tor is missing descriptors for some primary entry guards,
6192       make the log message less alarming. It's normal for descriptors to
6193       expire, as long as tor fetches new ones soon after. Fixes bug
6194       31657; bugfix on 0.3.3.1-alpha.
6196   o Minor bugfixes (logging, backport from 0.4.2.1-alpha):
6197     - Change log level of message "Hash of session info was not as
6198       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
6199       on 0.1.1.10-alpha.
6201   o Minor bugfixes (rust, backport from 0.4.2.1-alpha):
6202     - Correctly exclude a redundant rust build job in Travis. Fixes bug
6203       31463; bugfix on 0.3.5.4-alpha.
6205   o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha):
6206     - Always retry v2 single onion service intro and rend circuits with
6207       a 3-hop path. Previously, v2 single onion services used a 3-hop
6208       path when rendezvous circuits were retried after a remote or
6209       delayed failure, but a 1-hop path for immediate retries. Fixes bug
6210       23818; bugfix on 0.2.9.3-alpha.
6212   o Minor bugfixes (v3 single onion services, backport from 0.4.2.1-alpha):
6213     - Always retry v3 single onion service intro and rend circuits with
6214       a 3-hop path. Previously, v3 single onion services used a 3-hop
6215       path when rend circuits were retried after a remote or delayed
6216       failure, but a 1-hop path for immediate retries. Fixes bug 23818;
6217       bugfix on 0.3.2.1-alpha.
6218     - Make v3 single onion services fall back to a 3-hop intro, when all
6219       intro points are unreachable via a 1-hop path. Previously, v3
6220       single onion services failed when all intro nodes were unreachable
6221       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
6223   o Documentation (backport from 0.4.2.1-alpha):
6224     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
6225       notice.html so that operators no longer have to host it
6226       themselves. Closes ticket 31089.
6229 Changes in version 0.4.2.1-alpha - 2019-09-17
6230   This is the first alpha release in the 0.4.2.x series. It adds new
6231   defenses for denial-of-service attacks against onion services. It also
6232   includes numerous kinds of bugfixes and refactoring to help improve
6233   Tor's stability and ease of development.
6235   o Major features (onion service v3, denial of service):
6236     - Add onion service introduction denial of service defenses. Intro
6237       points can now rate-limit client introduction requests, using
6238       parameters that can be sent by the service within the
6239       ESTABLISH_INTRO cell. If the cell extension for this is not used,
6240       the intro point will honor the consensus parameters. Closes
6241       ticket 30924.
6243   o Major bugfixes (circuit build, guard):
6244     - When considering upgrading circuits from "waiting for guard" to
6245       "open", always ignore circuits that are marked for close.
6246       Previously we could end up in the situation where a subsystem is
6247       notified of a circuit opening, but the circuit is still marked for
6248       close, leading to undesirable behavior. Fixes bug 30871; bugfix
6249       on 0.3.0.1-alpha.
6251   o Major bugfixes (crash, Linux, Android):
6252     - Tolerate systems (including some Android installations) where
6253       madvise and MADV_DONTDUMP are available at build-time, but not at
6254       run time. Previously, these systems would notice a failed syscall
6255       and abort. Fixes bug 31570; bugfix on 0.4.1.1-alpha.
6256     - Tolerate systems (including some Linux installations) where
6257       madvise and/or MADV_DONTFORK are available at build-time, but not
6258       at run time. Previously, these systems would notice a failed
6259       syscall and abort. Fixes bug 31696; bugfix on 0.4.1.1-alpha.
6261   o Minor features (best practices tracker):
6262     - Our best-practices tracker now integrates with our include-checker
6263       tool to keep track of how many layering violations we have not yet
6264       fixed. We hope to reduce this number over time to improve Tor's
6265       modularity. Closes ticket 31176.
6266     - Add a TOR_PRACTRACKER_OPTIONS variable for passing arguments to
6267       practracker from the environment. We may want this for continuous
6268       integration. Closes ticket 31309.
6269     - Give a warning rather than an error when a practracker exception
6270       is violated by a small amount, add a --list-overbroad option to
6271       practracker that lists exceptions that are stricter than they need
6272       to be, and provide an environment variable for disabling
6273       practracker. Closes ticket 30752.
6274     - Our best-practices tracker now looks at headers as well as C
6275       files. Closes ticket 31175.
6277   o Minor features (build system):
6278     - Add --disable-manpage and --disable-html-manual options to
6279       configure script. This will enable shortening build times by not
6280       building documentation. Resolves issue 19381.
6282   o Minor features (compilation):
6283     - Log a more useful error message when we are compiling and one of
6284       the compile-time hardening options we have selected can be linked
6285       but not executed. Closes ticket 27530.
6287   o Minor features (configuration):
6288     - The configuration code has been extended to allow splitting
6289       configuration data across multiple objects. Previously, all
6290       configuration data needed to be kept in a single object, which
6291       tended to become bloated. Closes ticket 31240.
6293   o Minor features (continuous integration):
6294     - When running CI builds on Travis, put some random data in
6295       ~/.torrc, to make sure no tests are reading the Tor configuration
6296       file from its default location. Resolves issue 30102.
6298   o Minor features (debugging):
6299     - Log a nonfatal assertion failure if we encounter a configuration
6300       line whose command is "CLEAR" but which has a nonempty value. This
6301       should be impossible, according to the rules of our configuration
6302       line parsing. Closes ticket 31529.
6304   o Minor features (git hooks):
6305     - Our pre-commit git hook now checks for a special file before
6306       running practracker, so that practracker only runs on branches
6307       that are based on master. Since the pre-push hook calls the pre-
6308       commit hook, practracker will also only run before pushes of
6309       branches based on master. Closes ticket 30979.
6311   o Minor features (git scripts):
6312     - Add a "--" command-line argument, to separate git-push-all.sh
6313       script arguments from arguments that are passed through to git
6314       push. Closes ticket 31314.
6315     - Add a -r <remote-name> argument to git-push-all.sh, so the script
6316       can push test branches to a personal remote. Closes ticket 31314.
6317     - Add a -t <test-branch-prefix> argument to git-merge-forward.sh and
6318       git-push-all.sh, which makes these scripts create, merge forward,
6319       and push test branches. Closes ticket 31314.
6320     - Add a -u argument to git-merge-forward.sh, so that the script can
6321       re-use existing test branches after a merge failure and fix.
6322       Closes ticket 31314.
6323     - Add a TOR_GIT_PUSH env var, which sets the default git push
6324       command and arguments for git-push-all.sh. Closes ticket 31314.
6325     - Add a TOR_PUSH_DELAY variable to git-push-all.sh, which makes the
6326       script push master and maint branches with a delay between each
6327       branch. These delays trigger the CI jobs in a set order, which
6328       should show the most likely failures first. Also make pushes
6329       atomic by default, and make the script pass any command-line
6330       arguments to git push. Closes ticket 29879.
6331     - Call the shellcheck script from the pre-commit hook. Closes
6332       ticket 30967.
6333     - Skip pushing test branches that are the same as a remote
6334       maint/release/master branch in git-push-all.sh by default. Add a
6335       -s argument, so git-push-all.sh can push all test branches. Closes
6336       ticket 31314.
6338   o Minor features (IPv6, logging):
6339     - Log IPv6 addresses as well as IPv4 addresses when describing
6340       routerinfos, routerstatuses, and nodes. Closes ticket 21003.
6342   o Minor features (onion service v3):
6343     - Do not allow single hop clients to fetch or post an HS descriptor
6344       from an HSDir. Closes ticket 24964.
6346   o Minor features (onion service):
6347     - Disallow single-hop clients at the introduction point. We've
6348       removed Tor2web support a while back and single-hop rendezvous
6349       attempts are blocked at the relays. This change should remove load
6350       off the network from spammy clients. Close ticket 24963.
6352   o Minor features (stem tests):
6353     - Change "make test-stem" so it only runs the stem tests that use
6354       tor. This change makes test-stem faster and more reliable. Closes
6355       ticket 31554.
6357   o Minor features (testing):
6358     - Add a script to invoke "tor --dump-config" and "tor
6359       --verify-config" with various configuration options, and see
6360       whether tor's resulting configuration or error messages are what
6361       we expect. Use it for integration testing of our +Option and
6362       /Option flags. Closes ticket 31637.
6363     - Improve test coverage for our existing configuration parsing and
6364       management API. Closes ticket 30893.
6365     - Add integration tests to make sure that practracker gives the
6366       outputs we expect. Closes ticket 31477.
6367     - The practracker self-tests are now run as part of the Tor test
6368       suite. Closes ticket 31304.
6370   o Minor features (token bucket):
6371     - Implement a generic token bucket that uses a single counter, for
6372       use in anti-DoS onion service work. Closes ticket 30687.
6374   o Minor bugfixes (best practices tracker):
6375     - Fix a few issues in the best-practices script, including tests,
6376       tab tolerance, error reporting, and directory-exclusion logic.
6377       Fixes bug 29746; bugfix on 0.4.1.1-alpha.
6378     - When running check-best-practices, only consider files in the src
6379       subdirectory. Previously we had recursively considered all
6380       subdirectories, which made us get confused by the temporary
6381       directories made by "make distcheck". Fixes bug 31578; bugfix
6382       on 0.4.1.1-alpha.
6384   o Minor bugfixes (build system):
6385     - Do not include the deprecated <sys/sysctl.h> on Linux or Windows
6386       systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha.
6388   o Minor bugfixes (chutney, makefiles, documentation):
6389     - "make test-network-all" now shows the warnings from each test-
6390       network.sh run on the console, so developers see new warnings
6391       early. We've also improved the documentation for this feature, and
6392       renamed a Makefile variable so the code is self-documenting. Fixes
6393       bug 30455; bugfix on 0.3.0.4-rc.
6395   o Minor bugfixes (compilation):
6396     - Add more stub functions to fix compilation on Android with link-
6397       time optimization when --disable-module-dirauth is used.
6398       Previously, these compilation settings would make the compiler
6399       look for functions that didn't exist. Fixes bug 31552; bugfix
6400       on 0.4.1.1-alpha.
6401     - Suppress spurious float-conversion warnings from GCC when calling
6402       floating-point classifier functions on FreeBSD. Fixes part of bug
6403       31687; bugfix on 0.3.1.5-alpha.
6405   o Minor bugfixes (configuration):
6406     - Invalid floating-point values in the configuration file are now
6407       treated as errors in the configuration. Previously, they were
6408       ignored and treated as zero. Fixes bug 31475; bugfix on 0.0.1.
6410   o Minor bugfixes (coverity):
6411     - Add an assertion when parsing a BEGIN cell so that coverity can be
6412       sure that we are not about to dereference a NULL address. Fixes
6413       bug 31026; bugfix on 0.2.4.7-alpha. This is CID 1447296.
6414     - In our siphash implementation, when building for coverity, use
6415       memcpy in place of a switch statement, so that coverity can tell
6416       we are not accessing out-of-bounds memory. Fixes bug 31025; bugfix
6417       on 0.2.8.1-alpha. This is tracked as CID 1447293 and 1447295.
6418     - Fix several coverity warnings from our unit tests. Fixes bug
6419       31030; bugfix on 0.2.4.1-alpha, 0.3.2.1-alpha, and 0.4.0.1-alpha.
6421   o Minor bugfixes (developer tooling):
6422     - Only log git script changes in the post-merge script when the
6423       merge was to the master branch. Fixes bug 31040; bugfix
6424       on 0.4.1.1-alpha.
6426   o Minor bugfixes (directory authorities):
6427     - Return a distinct status when formatting annotations fails. Fixes
6428       bug 30780; bugfix on 0.2.0.8-alpha.
6430   o Minor bugfixes (error handling):
6431     - On abort, try harder to flush the output buffers of log messages.
6432       On some platforms (macOS), log messages could be discarded when
6433       the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
6434     - Report the tor version whenever an assertion fails. Previously, we
6435       only reported the Tor version on some crashes, and some non-fatal
6436       assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha.
6437     - When tor aborts due to an error, close log file descriptors before
6438       aborting. Closing the logs makes some OSes flush log file buffers,
6439       rather than deleting buffered log lines. Fixes bug 31594; bugfix
6440       on 0.2.5.2-alpha.
6442   o Minor bugfixes (FreeBSD, PF-based proxy, IPv6):
6443     - When extracting an IPv6 address from a PF-based proxy, verify that
6444       we are actually configured to receive an IPv6 address, and log an
6445       internal error if not. Fixes part of bug 31687; bugfix
6446       on 0.2.3.4-alpha.
6448   o Minor bugfixes (git hooks):
6449     - Remove a duplicate call to practracker from the pre-push hook. The
6450       pre-push hook already calls the pre-commit hook, which calls
6451       practracker. Fixes bug 31462; bugfix on 0.4.1.1-alpha.
6453   o Minor bugfixes (git scripts):
6454     - Stop hard-coding the bash path in the git scripts. Some OSes don't
6455       have bash in /usr/bin, others have an ancient bash at this path.
6456       Fixes bug 30840; bugfix on 0.4.0.1-alpha.
6457     - Stop hard-coding the tor master branch name and worktree path in
6458       the git scripts. Fixes bug 30841; bugfix on 0.4.0.1-alpha.
6459     - Allow git-push-all.sh to be run from any directory. Previously,
6460       the script only worked if run from an upstream worktree directory.
6461       Closes ticket 31678.
6463   o Minor bugfixes (guards):
6464     - When tor is missing descriptors for some primary entry guards,
6465       make the log message less alarming. It's normal for descriptors to
6466       expire, as long as tor fetches new ones soon after. Fixes bug
6467       31657; bugfix on 0.3.3.1-alpha.
6469   o Minor bugfixes (ipv6):
6470     - Check for private IPv6 addresses alongside their IPv4 equivalents
6471       when authorities check descriptors. Previously, we only checked
6472       for private IPv4 addresses. Fixes bug 31088; bugfix on
6473       0.2.3.21-rc. Patch by Neel Chauhan.
6474     - When parsing microdescriptors, we should check the IPv6 exit
6475       policy alongside IPv4. Previously, we checked both exit policies
6476       for only router info structures, while microdescriptors were
6477       IPv4-only. Fixes bug 27284; bugfix on 0.2.3.1-alpha. Patch by
6478       Neel Chauhan.
6480   o Minor bugfixes (logging):
6481     - Change log level of message "Hash of session info was not as
6482       expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix
6483       on 0.1.1.10-alpha.
6484     - Fix a code issue that would have broken our parsing of log domains
6485       as soon as we had 33 of them. Fortunately, we still only have 29.
6486       Fixes bug 31451; bugfix on 0.4.1.4-rc.
6488   o Minor bugfixes (memory management):
6489     - Stop leaking a small amount of memory in nt_service_install(), in
6490       unreachable code. Fixes bug 30799; bugfix on 0.2.0.7-alpha. Patch
6491       by Xiaoyin Liu.
6493   o Minor bugfixes (networking, IP addresses):
6494     - When parsing addresses via Tor's internal DNS lookup API, reject
6495       IPv4 addresses in square brackets, and accept IPv6 addresses in
6496       square brackets. This change completes the work started in 23082,
6497       making address parsing consistent between tor's internal DNS
6498       lookup and address parsing APIs. Fixes bug 30721; bugfix
6499       on 0.2.1.5-alpha.
6500     - When parsing addresses via Tor's internal address:port parsing and
6501       DNS lookup APIs, require IPv6 addresses with ports to have square
6502       brackets. But allow IPv6 addresses without ports, whether or not
6503       they have square brackets. Fixes bug 30721; bugfix
6504       on 0.2.1.5-alpha.
6506   o Minor bugfixes (onion service v3):
6507     - When purging the client descriptor cache, close any introduction
6508       point circuits associated with purged cache entries. This avoids
6509       picking those circuits later when connecting to the same
6510       introduction points. Fixes bug 30921; bugfix on 0.3.2.1-alpha.
6512   o Minor bugfixes (onion services):
6513     - In the hs_ident_circuit_t data structure, remove the unused field
6514       circuit_type and the respective argument in hs_ident_circuit_new().
6515       This field was set by clients (for introduction) and services (for
6516       introduction and rendezvous) but was never used afterwards. Fixes
6517       bug 31490; bugfix on 0.3.2.1-alpha. Patch by Neel Chauhan.
6519   o Minor bugfixes (operator tools):
6520     - Make tor-print-ed-signing-cert(1) print certificate expiration
6521       date in RFC 1123 and UNIX timestamp formats, to make output
6522       machine readable. Fixes bug 31012; bugfix on 0.3.5.1-alpha.
6524   o Minor bugfixes (rust):
6525     - Correctly exclude a redundant rust build job in Travis. Fixes bug
6526       31463; bugfix on 0.3.5.4-alpha.
6527     - Raise the minimum rustc version to 1.31.0, as checked by configure
6528       and CI. Fixes bug 31442; bugfix on 0.3.5.4-alpha.
6530   o Minor bugfixes (sendme, code structure):
6531     - Rename the trunnel SENDME file definition from sendme.trunnel to
6532       sendme_cell.trunnel to avoid having twice sendme.{c|h} in the
6533       repository. Fixes bug 30769; bugfix on 0.4.1.1-alpha.
6535   o Minor bugfixes (statistics):
6536     - Stop removing the ed25519 signature if the extra info file is too
6537       big. If the signature data was removed, but the keyword was kept,
6538       this could result in an unparseable extra info file. Fixes bug
6539       30958; bugfix on 0.2.7.2-alpha.
6541   o Minor bugfixes (subsystems):
6542     - Make the subsystem init order match the subsystem module
6543       dependencies. Call windows process security APIs as early as
6544       possible. Initialize logging before network and time, so that
6545       network and time can use logging. Fixes bug 31615; bugfix
6546       on 0.4.0.1-alpha.
6548   o Minor bugfixes (testing):
6549     - Teach the util/socketpair_ersatz test to work correctly when we
6550       have no network stack configured. Fixes bug 30804; bugfix
6551       on 0.2.5.1-alpha.
6553   o Minor bugfixes (v2 single onion services):
6554     - Always retry v2 single onion service intro and rend circuits with
6555       a 3-hop path. Previously, v2 single onion services used a 3-hop
6556       path when rendezvous circuits were retried after a remote or
6557       delayed failure, but a 1-hop path for immediate retries. Fixes bug
6558       23818; bugfix on 0.2.9.3-alpha.
6560   o Minor bugfixes (v3 single onion services):
6561     - Always retry v3 single onion service intro and rend circuits with
6562       a 3-hop path. Previously, v3 single onion services used a 3-hop
6563       path when rend circuits were retried after a remote or delayed
6564       failure, but a 1-hop path for immediate retries. Fixes bug 23818;
6565       bugfix on 0.3.2.1-alpha.
6566     - Make v3 single onion services fall back to a 3-hop intro, when all
6567       intro points are unreachable via a 1-hop path. Previously, v3
6568       single onion services failed when all intro nodes were unreachable
6569       via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha.
6571   o Documentation:
6572     - Improve documentation in circuit padding subsystem. Patch by
6573       Tobias Pulls. Closes ticket 31113.
6574     - Include an example usage for IPv6 ORPort in our sample torrc.
6575       Closes ticket 31320; patch from Ali Raheem.
6576     - Use RFC 2397 data URL scheme to embed an image into tor-exit-
6577       notice.html so that operators no longer have to host it
6578       themselves. Closes ticket 31089.
6580   o Removed features:
6581     - No longer include recommended package digests in votes as detailed
6582       in proposal 301. The RecommendedPackages torrc option is
6583       deprecated and will no longer have any effect. "package" lines
6584       will still be considered when computing consensuses for consensus
6585       methods that include them. (This change has no effect on the list
6586       of recommended Tor versions, which is still in use.) Closes
6587       ticket 29738.
6588     - Remove torctl.in from contrib/dist directory. Resolves
6589       ticket 30550.
6591   o Testing:
6592     - Run shellcheck for all non-third-party shell scripts that are
6593       shipped with Tor. Closes ticket 29533.
6594     - When checking shell scripts, ignore any user-created directories.
6595       Closes ticket 30967.
6597   o Code simplification and refactoring (config handling):
6598     - Extract our variable manipulation code from confparse.c to a new
6599       lower-level typedvar.h module. Closes ticket 30864.
6600     - Lower another layer of object management from confparse.c to a
6601       more general tool. Now typed structure members are accessible via
6602       an abstract type. Implements ticket 30914.
6603     - Move our backend logic for working with configuration and state
6604       files into a lower-level library, since it no longer depends on
6605       any tor-specific functionality. Closes ticket 31626.
6606     - Numerous simplifications in configuration-handling logic: remove
6607       duplicated macro definitions, replace magical names with flags,
6608       and refactor "TestingTorNetwork" to use the same default-option
6609       logic as the rest of Tor. Closes ticket 30935.
6610     - Replace our ad-hoc set of flags for configuration variables and
6611       configuration variable types with fine-grained orthogonal flags
6612       corresponding to the actual behavior we want. Closes ticket 31625.
6614   o Code simplification and refactoring (misc):
6615     - Eliminate some uses of lower-level control reply abstractions,
6616       primarily in the onion_helper functions. Closes ticket 30889.
6617     - Rework bootstrap tracking to use the new publish-subscribe
6618       subsystem. Closes ticket 29976.
6619     - Rewrite format_node_description() and router_get_verbose_nickname()
6620       to use strlcpy() and strlcat(). The previous implementation used
6621       memcpy() and pointer arithmetic, which was error-prone. Closes
6622       ticket 31545. This is CID 1452819.
6623     - Split extrainfo_dump_to_string() into smaller functions. Closes
6624       ticket 30956.
6625     - Use the ptrdiff_t type consistently for expressing variable
6626       offsets and pointer differences. Previously we incorrectly (but
6627       harmlessly) used int and sometimes off_t for these cases. Closes
6628       ticket 31532.
6629     - Use the subsystems mechanism to manage the main event loop code.
6630       Closes ticket 30806.
6631     - Various simplifications and minor improvements to the circuit
6632       padding machines. Patch by Tobias Pulls. Closes tickets 31112
6633       and 31098.
6635   o Documentation (hard-coded directories):
6636     - Improve the documentation for the DirAuthority and FallbackDir
6637       torrc options. Closes ticket 30955.
6639   o Documentation (tor.1 man page):
6640     - Fix typo in tor.1 man page: the option is "--help", not "-help".
6641       Fixes bug 31008; bugfix on 0.2.2.9-alpha.
6644 Changes in version 0.4.1.5 - 2019-08-20
6645   This is the first stable release in the 0.4.1.x series. This series
6646   adds experimental circuit-level padding, authenticated SENDME cells to
6647   defend against certain attacks, and several performance improvements
6648   to save on CPU consumption. It fixes bugs in bootstrapping and v3
6649   onion services. It also includes numerous smaller features and
6650   bugfixes on earlier versions.
6652   Per our support policy, we will support the 0.4.1.x series for nine
6653   months, or until three months after the release of a stable 0.4.2.x:
6654   whichever is longer. If you need longer-term support, please stick
6655   with 0.3.5.x, which will we plan to support until Feb 2022.
6657   Below are the changes since 0.4.1.4-rc. For a complete list of changes
6658   since 0.4.0.5, see the ReleaseNotes file.
6660   o Directory authority changes:
6661     - The directory authority "dizum" has a new IP address. Closes
6662       ticket 31406.
6664   o Minor features (circuit padding logging):
6665     - Demote noisy client-side warn logs about circuit padding to
6666       protocol warnings. Add additional log messages and circuit ID
6667       fields to help with bug 30992 and any other future issues.
6669   o Minor bugfixes (circuit padding negotiation):
6670     - Bump the circuit padding protocol version to explicitly signify
6671       that the HS setup machine support is finalized in 0.4.1.x-stable.
6672       This also means that 0.4.1.x-alpha clients will not negotiate
6673       padding with 0.4.1.x-stable relays, and 0.4.1.x-stable clients
6674       will not negotiate padding with 0.4.1.x-alpha relays (or 0.4.0.x
6675       relays). Fixes bug 31356; bugfix on 0.4.1.1-alpha.
6677   o Minor bugfixes (circuit padding):
6678     - Ignore non-padding cells on padding circuits. This addresses
6679       various warning messages from subsystems that were not expecting
6680       padding circuits. Fixes bug 30942; bugfix on 0.4.1.1-alpha.
6682   o Minor bugfixes (clock skew detection):
6683     - Don't believe clock skew results from NETINFO cells that appear to
6684       arrive before we sent the VERSIONS cells they are responding to.
6685       Previously, we would accept them up to 3 minutes "in the past".
6686       Fixes bug 31343; bugfix on 0.2.4.4-alpha.
6688   o Minor bugfixes (compatibility, standards compliance):
6689     - Fix a bug that would invoke undefined behavior on certain
6690       operating systems when trying to asprintf() a string exactly
6691       INT_MAX bytes long. We don't believe this is exploitable, but it's
6692       better to fix it anyway. Fixes bug 31001; bugfix on 0.2.2.11-alpha.
6693       Found and fixed by Tobias Stoeckmann.
6695   o Minor bugfixes (compilation warning):
6696     - Fix a compilation warning on Windows about casting a function
6697       pointer for GetTickCount64(). Fixes bug 31374; bugfix
6698       on 0.2.9.1-alpha.
6700   o Minor bugfixes (compilation):
6701     - Avoid using labs() on time_t, which can cause compilation warnings
6702       on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha.
6704   o Minor bugfixes (distribution):
6705     - Do not ship any temporary files found in the
6706       scripts/maint/practracker directory. Fixes bug 31311; bugfix
6707       on 0.4.1.1-alpha.
6709   o Testing (continuous integration):
6710     - In Travis, make stem log a controller trace to the console, and
6711       tail stem's tor log after failure. Closes ticket 30591.
6712     - In Travis, only run the stem tests that use a tor binary. Closes
6713       ticket 30694.
6716 Changes in version 0.4.1.4-rc - 2019-07-25
6717   Tor 0.4.1.4-rc fixes a few bugs from previous versions of Tor, and
6718   updates to a new list of fallback directories. If no new bugs are
6719   found, the next release in the 0.4.1.x serious should be stable.
6721   o Major bugfixes (circuit build, guard):
6722     - When considering upgrading circuits from "waiting for guard" to
6723       "open", always ignore circuits that are marked for close. Otherwise,
6724       we can end up in the situation where a subsystem is notified that
6725       a closing circuit has just opened, leading to undesirable
6726       behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha.
6728   o Minor features (continuous integration):
6729     - Our Travis configuration now uses Chutney to run some network
6730       integration tests automatically. Closes ticket 29280.
6732   o Minor features (fallback directory list):
6733     - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc
6734       in December 2018 (of which ~122 were still functional), with a
6735       list of 148 fallbacks (70 new, 78 existing, 79 removed) generated
6736       in June 2019. Closes ticket 28795.
6738   o Minor bugfixes (circuit padding):
6739     - On relays, properly check that a padding machine is absent before
6740       logging a warning about it being absent. Fixes bug 30649; bugfix
6741       on 0.4.0.1-alpha.
6742     - Add two NULL checks in unreachable places to silence Coverity (CID
6743       144729 and 1447291) and better future-proof ourselves. Fixes bug
6744       31024; bugfix on 0.4.1.1-alpha.
6746   o Minor bugfixes (crash on exit):
6747     - Avoid a set of possible code paths that could try to use freed
6748       memory in routerlist_free() while Tor was exiting. Fixes bug
6749       31003; bugfix on 0.1.2.2-alpha.
6751   o Minor bugfixes (logging):
6752     - Fix a conflict between the flag used for messaging-domain log
6753       messages, and the LD_NO_MOCK testing flag. Fixes bug 31080; bugfix
6754       on 0.4.1.1-alpha.
6756   o Minor bugfixes (memory leaks):
6757     - Fix a trivial memory leak when parsing an invalid value from a
6758       download schedule in the configuration. Fixes bug 30894; bugfix
6759       on 0.3.4.1-alpha.
6761   o Code simplification and refactoring:
6762     - Remove some dead code from circpad_machine_remove_token() to fix
6763       some Coverity warnings (CID 1447298). Fixes bug 31027; bugfix
6764       on 0.4.1.1-alpha.
6767 Changes in version 0.4.1.3-alpha - 2019-06-25
6768   Tor 0.4.1.3-alpha resolves numerous bugs left over from the previous
6769   alpha, most of them from earlier release series.
6771   o Major bugfixes (Onion service reachability):
6772     - Properly clean up the introduction point map when circuits change
6773       purpose from onion service circuits to pathbias, measurement, or
6774       other circuit types. This should fix some service-side instances
6775       of introduction point failure. Fixes bug 29034; bugfix
6776       on 0.3.2.1-alpha.
6778   o Minor features (geoip):
6779     - Update geoip and geoip6 to the June 10 2019 Maxmind GeoLite2
6780       Country database. Closes ticket 30852.
6782   o Minor features (logging):
6783     - Give a more useful assertion failure message if we think we have
6784       minherit() but we fail to make a region non-inheritable. Give a
6785       compile-time warning if our support for minherit() is incomplete.
6786       Closes ticket 30686.
6788   o Minor bugfixes (circuit isolation):
6789     - Fix a logic error that prevented the SessionGroup sub-option from
6790       being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha.
6792   o Minor bugfixes (continuous integration):
6793     - Allow the test-stem job to fail in Travis, because it sometimes
6794       hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha.
6795     - Skip test_rebind on macOS in Travis, because it is unreliable on
6796       macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
6797     - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment
6798       variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha.
6800   o Minor bugfixes (directory authorities):
6801     - Stop crashing after parsing an unknown descriptor purpose
6802       annotation. We think this bug can only be triggered by modifying a
6803       local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha.
6805   o Minor bugfixes (pluggable transports):
6806     - When running as a bridge with pluggable transports, always publish
6807       pluggable transport information in our extrainfo descriptor, even
6808       if ExtraInfoStatistics is 0. This information is needed by
6809       BridgeDB. Fixes bug 30956; bugfix on 0.4.1.1-alpha.
6811   o Documentation:
6812     - Mention URLs for Travis/Appveyor/Jenkins in ReleasingTor.md.
6813       Closes ticket 30630.
6816 Changes in version 0.4.1.2-alpha - 2019-06-06
6817   Tor 0.4.1.2-alpha resolves numerous bugs--some of them from the
6818   previous alpha, and some much older. It also contains minor testing
6819   improvements, and an improvement to the security of our authenticated
6820   SENDME implementation.
6822   o Major bugfixes (bridges):
6823     - Consider our directory information to have changed when our list
6824       of bridges changes. Previously, Tor would not re-compute the
6825       status of its directory information when bridges changed, and
6826       therefore would not realize that it was no longer able to build
6827       circuits. Fixes part of bug 29875.
6828     - Do not count previously configured working bridges towards our
6829       total of working bridges. Previously, when Tor's list of bridges
6830       changed, it would think that the old bridges were still usable,
6831       and delay fetching router descriptors for the new ones. Fixes part
6832       of bug 29875; bugfix on 0.3.0.1-alpha.
6834   o Major bugfixes (flow control, SENDME):
6835     - Decrement the stream-level package window after packaging a cell.
6836       Previously, it was done inside a log_debug() call, meaning that if
6837       debug logs were not enabled, the decrement would never happen, and
6838       thus the window would be out of sync with the other end point.
6839       Fixes bug 30628; bugfix on 0.4.1.1-alpha.
6841   o Major bugfixes (onion service reachability):
6842     - Properly clean up the introduction point map and associated state
6843       when circuits change purpose from onion service circuits to
6844       pathbias, measurement, or other circuit types. This may fix some
6845       instances of introduction point failure. Fixes bug 29034; bugfix
6846       on 0.3.2.1-alpha.
6848   o Minor features (authenticated SENDME):
6849     - Ensure that there is enough randomness on every circuit to prevent
6850       an attacker from successfully predicting the hashes they will need
6851       to include in authenticated SENDME cells. At a random interval, if
6852       we have not sent randomness already, we now leave some extra space
6853       at the end of a cell that we can fill with random bytes. Closes
6854       ticket 26846.
6856   o Minor features (continuous integration):
6857     - When running coverage builds on Travis, we now set
6858       TOR_TEST_RNG_SEED, to avoid RNG-based coverage differences. Part
6859       of ticket 28878.
6861   o Minor features (maintenance):
6862     - Add a new "make autostyle" target that developers can use to apply
6863       all automatic Tor style and consistency conversions to the
6864       codebase. Closes ticket 30539.
6866   o Minor features (testing):
6867     - The circuitpadding tests now use a reproducible RNG implementation,
6868       so that if a test fails, we can learn why. Part of ticket 28878.
6869     - Tor's tests now support an environment variable, TOR_TEST_RNG_SEED,
6870       to set the RNG seed for tests that use a reproducible RNG. Part of
6871       ticket 28878.
6872     - When running tests in coverage mode, take additional care to make
6873       our coverage deterministic, so that we can accurately track
6874       changes in code coverage. Closes ticket 30519.
6876   o Minor bugfixes (configuration, proxies):
6877     - Fix a bug that prevented us from supporting SOCKS5 proxies that
6878       want authentication along with configured (but unused!)
6879       ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha.
6881   o Minor bugfixes (controller):
6882     - POSTDESCRIPTOR requests should work again. Previously, they were
6883       broken if a "purpose=" flag was specified. Fixes bug 30580; bugfix
6884       on 0.4.1.1-alpha.
6885     - Repair the HSFETCH command so that it works again. Previously, it
6886       expected a body when it shouldn't have. Fixes bug 30646; bugfix
6887       on 0.4.1.1-alpha.
6889   o Minor bugfixes (developer tooling):
6890     - Fix pre-push hook to allow fixup and squash commits when pushing
6891       to non-upstream git remote. Fixes bug 30286; bugfix
6892       on 0.4.0.1-alpha.
6894   o Minor bugfixes (directory authority):
6895     - Move the "bandwidth-file-headers" line in directory authority
6896       votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix
6897       on 0.3.5.1-alpha.
6899   o Minor bugfixes (NetBSD):
6900     - Fix usage of minherit() on NetBSD and other platforms that define
6901       MAP_INHERIT_{ZERO,NONE} instead of INHERIT_{ZERO,NONE}. Fixes bug
6902       30614; bugfix on 0.4.0.2-alpha. Patch from Taylor Campbell.
6904   o Minor bugfixes (out-of-memory handler):
6905     - When purging the DNS cache because of an out-of-memory condition,
6906       try purging just the older entries at first. Previously, we would
6907       always purge the whole thing. Fixes bug 29617; bugfix
6908       on 0.3.5.1-alpha.
6910   o Minor bugfixes (portability):
6911     - Avoid crashing in our tor_vasprintf() implementation on systems
6912       that define neither vasprintf() nor _vscprintf(). (This bug has
6913       been here long enough that we question whether people are running
6914       Tor on such systems, but we're applying the fix out of caution.)
6915       Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by
6916       Tobias Stoeckmann.
6918   o Minor bugfixes (shutdown, libevent, memory safety):
6919     - Avoid use-after-free bugs when shutting down, by making sure that
6920       we shut down libevent only after shutting down all of its users.
6921       We believe these are harmless in practice, since they only occur
6922       on the shutdown path, and do not involve any attacker-controlled
6923       data. Fixes bug 30629; bugfix on 0.4.1.1-alpha.
6925   o Minor bugfixes (static analysis):
6926     - Fix several spurious Coverity warnings about the unit tests, to
6927       lower our chances of missing real warnings in the future. Fixes
6928       bug 30150; bugfix on 0.3.5.1-alpha and various other Tor versions.
6930   o Testing:
6931     - Specify torrc paths (with empty files) when launching tor in
6932       integration tests; refrain from reading user and system torrcs.
6933       Resolves issue 29702.
6936 Changes in version 0.4.1.1-alpha - 2019-05-22
6937   This is the first alpha in the 0.4.1.x series. It introduces
6938   lightweight circuit padding to make some onion-service circuits harder
6939   to distinguish, includes a new "authenticated SENDME" feature to make
6940   certain denial-of-service attacks more difficult, and improves
6941   performance in several areas.
6943   o Major features (circuit padding):
6944     - Onion service clients now add padding cells at the start of their
6945       INTRODUCE and RENDEZVOUS circuits, to make those circuits' traffic
6946       look more like general purpose Exit traffic. The overhead for this
6947       is 2 extra cells in each direction for RENDEZVOUS circuits, and 1
6948       extra upstream cell and 10 downstream cells for INTRODUCE
6949       circuits. This feature is only enabled when also supported by the
6950       circuit's middle node. (Clients may specify fixed middle nodes
6951       with the MiddleNodes option, and may force-disable this feature
6952       with the CircuitPadding option.) Closes ticket 28634.
6954   o Major features (code organization):
6955     - Tor now includes a generic publish-subscribe message-passing
6956       subsystem that we can use to organize intermodule dependencies. We
6957       hope to use this to reduce dependencies between modules that don't
6958       need to be related, and to generally simplify our codebase. Closes
6959       ticket 28226.
6961   o Major features (controller protocol):
6962     - Controller commands are now parsed using a generalized parsing
6963       subsystem. Previously, each controller command was responsible for
6964       parsing its own input, which led to strange inconsistencies.
6965       Closes ticket 30091.
6967   o Major features (flow control):
6968     - Implement authenticated SENDMEs as detailed in proposal 289. A
6969       SENDME cell now includes the digest of the traffic that it
6970       acknowledges, so that once an end point receives the SENDME, it
6971       can confirm the other side's knowledge of the previous cells that
6972       were sent, and prevent certain types of denial-of-service attacks.
6973       This behavior is controlled by two new consensus parameters: see
6974       the proposal for more details. Fixes ticket 26288.
6976   o Major features (performance):
6977     - Our node selection algorithm now excludes nodes in linear time.
6978       Previously, the algorithm was quadratic, which could slow down
6979       heavily used onion services. Closes ticket 30307.
6981   o Major features (performance, RNG):
6982     - Tor now constructs a fast secure pseudorandom number generator for
6983       each thread, to use when performance is critical. This PRNG is
6984       based on AES-CTR, using a buffering construction similar to
6985       libottery and the (newer) OpenBSD arc4random() code. It
6986       outperforms OpenSSL 1.1.1a's CSPRNG by roughly a factor of 100 for
6987       small outputs. Although we believe it to be cryptographically
6988       strong, we are only using it when necessary for performance.
6989       Implements tickets 29023 and 29536.
6991   o Major bugfixes (onion service v3):
6992     - Fix an unreachable bug in which an introduction point could try to
6993       send an INTRODUCE_ACK with a status code that Trunnel would refuse
6994       to encode, leading the relay to assert(). We've consolidated the
6995       ABI values into Trunnel now. Fixes bug 30454; bugfix
6996       on 0.3.0.1-alpha.
6997     - Clients can now handle unknown status codes from INTRODUCE_ACK
6998       cells. (The NACK behavior will stay the same.) This will allow us
6999       to extend status codes in the future without breaking the normal
7000       client behavior. Fixes another part of bug 30454; bugfix
7001       on 0.3.0.1-alpha.
7003   o Minor features (circuit padding):
7004     - We now use a fast PRNG when scheduling circuit padding. Part of
7005       ticket 28636.
7006     - Allow the padding machine designer to pick the edges of their
7007       histogram instead of trying to compute them automatically using an
7008       exponential formula. Resolves some undefined behavior in the case
7009       of small histograms and allows greater flexibility on machine
7010       design. Closes ticket 29298; bugfix on 0.4.0.1-alpha.
7011     - Allow circuit padding machines to hold a circuit open until they
7012       are done padding it. Closes ticket 28780.
7014   o Minor features (compile-time modules):
7015     - Add a "--list-modules" command to print a list of which compile-
7016       time modules are enabled. Closes ticket 30452.
7018   o Minor features (continuous integration):
7019     - Remove sudo configuration lines from .travis.yml as they are no
7020       longer needed with current Travis build environment. Resolves
7021       issue 30213.
7022     - In Travis, show stem's tor log after failure. Closes ticket 30234.
7024   o Minor features (controller):
7025     - Add onion service version 3 support to the HSFETCH command.
7026       Previously, only version 2 onion services were supported. Closes
7027       ticket 25417. Patch by Neel Chauhan.
7029   o Minor features (debugging):
7030     - Introduce tor_assertf() and tor_assertf_nonfatal() to enable
7031       logging of additional information during assert failure. Now we
7032       can use format strings to include information for trouble
7033       shooting. Resolves ticket 29662.
7035   o Minor features (defense in depth):
7036     - In smartlist_remove_keeporder(), set unused pointers to NULL, in
7037       case a bug causes them to be used later. Closes ticket 30176.
7038       Patch from Tobias Stoeckmann.
7039     - Tor now uses a cryptographically strong PRNG even for decisions
7040       that we do not believe are security-sensitive. Previously, for
7041       performance reasons, we had used a trivially predictable linear
7042       congruential generator algorithm for certain load-balancing and
7043       statistical sampling decisions. Now we use our fast RNG in those
7044       cases. Closes ticket 29542.
7046   o Minor features (developer tools):
7047     - Tor's "practracker" test script now checks for files and functions
7048       that seem too long and complicated. Existing overlong functions
7049       and files are accepted for now, but should eventually be
7050       refactored. Closes ticket 29221.
7051     - Add some scripts used for git maintenance to scripts/git. Closes
7052       ticket 29391.
7053     - Call practracker from pre-push and pre-commit git hooks to let
7054       developers know if they made any code style violations. Closes
7055       ticket 30051.
7056     - Add a script to check that each header has a well-formed and
7057       unique guard macro. Closes ticket 29756.
7059   o Minor features (geoip):
7060     - Update geoip and geoip6 to the May 13 2019 Maxmind GeoLite2
7061       Country database. Closes ticket 30522.
7063   o Minor features (HTTP tunnel):
7064     - Return an informative web page when the HTTPTunnelPort is used as
7065       an HTTP proxy. Closes ticket 27821, patch by "eighthave".
7067   o Minor features (IPv6, v3 onion services):
7068     - Make v3 onion services put IPv6 addresses in service descriptors.
7069       Before this change, service descriptors only contained IPv4
7070       addresses. Implements 26992.
7072   o Minor features (modularity):
7073     - The "--disable-module-dirauth" compile-time option now disables
7074       even more dirauth-only code. Closes ticket 30345.
7076   o Minor features (performance):
7077     - Use OpenSSL's implementations of SHA3 when available (in OpenSSL
7078       1.1.1 and later), since they tend to be faster than tiny-keccak.
7079       Closes ticket 28837.
7081   o Minor features (testing):
7082     - Tor's unit test code now contains helper functions to replace the
7083       PRNG with a deterministic or reproducible version for testing.
7084       Previously, various tests implemented this in various ways.
7085       Implements ticket 29732.
7086     - We now have a script, cov-test-determinism.sh, to identify places
7087       where our unit test coverage has become nondeterministic. Closes
7088       ticket 29436.
7089     - Check that representative subsets of values of `int` and `unsigned
7090       int` can be represented by `void *`. Resolves issue 29537.
7092   o Minor bugfixes (bridge authority):
7093     - Bridge authorities now set bridges as running or non-running when
7094       about to dump their status to a file. Previously, they set bridges
7095       as running in response to a GETINFO command, but those shouldn't
7096       modify data structures. Fixes bug 24490; bugfix on 0.2.0.13-alpha.
7097       Patch by Neel Chauhan.
7099   o Minor bugfixes (channel padding statistics):
7100     - Channel padding write totals and padding-enabled totals are now
7101       counted properly in relay extrainfo descriptors. Fixes bug 29231;
7102       bugfix on 0.3.1.1-alpha.
7104   o Minor bugfixes (circuit padding):
7105     - Add a "CircuitPadding" torrc option to disable circuit padding.
7106       Fixes bug 28693; bugfix on 0.4.0.1-alpha.
7107     - Allow circuit padding machines to specify that they do not
7108       contribute much overhead, and provide consensus flags and torrc
7109       options to force clients to only use these low overhead machines.
7110       Fixes bug 29203; bugfix on 0.4.0.1-alpha.
7111     - Provide a consensus parameter to fully disable circuit padding, to
7112       be used in emergency network overload situations. Fixes bug 30173;
7113       bugfix on 0.4.0.1-alpha.
7114     - The circuit padding subsystem will no longer schedule padding if
7115       dormant mode is enabled. Fixes bug 28636; bugfix on 0.4.0.1-alpha.
7116     - Inspect a circuit-level cell queue before sending padding, to
7117       avoid sending padding while too much data is already queued. Fixes
7118       bug 29204; bugfix on 0.4.0.1-alpha.
7119     - Avoid calling monotime_absolute_usec() in circuit padding machines
7120       that do not use token removal or circuit RTT estimation. Fixes bug
7121       29085; bugfix on 0.4.0.1-alpha.
7123   o Minor bugfixes (compilation, unusual configurations):
7124     - Avoid failures when building with the ALL_BUGS_ARE_FATAL option
7125       due to missing declarations of abort(), and prevent other such
7126       failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha.
7128   o Minor bugfixes (controller protocol):
7129     - Teach the controller parser to distinguish an object preceded by
7130       an argument list from one without. Previously, it couldn't
7131       distinguish an argument list from the first line of a multiline
7132       object. Fixes bug 29984; bugfix on 0.2.3.8-alpha.
7134   o Minor bugfixes (directory authority, ipv6):
7135     - Directory authorities with IPv6 support now always mark themselves
7136       as reachable via IPv6. Fixes bug 24338; bugfix on 0.2.4.1-alpha.
7137       Patch by Neel Chauhan.
7139   o Minor bugfixes (documentation):
7140     - Improve the documentation for using MapAddress with ".exit". Fixes
7141       bug 30109; bugfix on 0.1.0.1-rc.
7142     - Improve the monotonic time module and function documentation to
7143       explain what "monotonic" actually means, and document some results
7144       that have surprised people. Fixes bug 29640; bugfix
7145       on 0.2.9.1-alpha.
7146     - Use proper formatting when providing an example on quoting options
7147       that contain whitespace. Fixes bug 29635; bugfix on 0.2.3.18-rc.
7149   o Minor bugfixes (logging):
7150     - Do not log a warning when running with an OpenSSL version other
7151       than the one Tor was compiled with, if the two versions should be
7152       compatible. Previously, we would warn whenever the version was
7153       different. Fixes bug 30190; bugfix on 0.2.4.2-alpha.
7154     - Warn operators when the MyFamily option is set but ContactInfo is
7155       missing, as the latter should be set too. Fixes bug 25110; bugfix
7156       on 0.3.3.1-alpha.
7158   o Minor bugfixes (memory leak):
7159     - Avoid a minor memory leak that could occur on relays when failing
7160       to create a "keys" directory. Fixes bug 30148; bugfix
7161       on 0.3.3.1-alpha.
7163   o Minor bugfixes (onion services):
7164     - Avoid a GCC 9.1.1 warning (and possible crash depending on libc
7165       implemenation) when failing to load an onion service client
7166       authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha.
7167     - When refusing to launch a controller's HSFETCH request because of
7168       rate-limiting, respond to the controller with a new response,
7169       "QUERY_RATE_LIMITED". Previously, we would log QUERY_NO_HSDIR for
7170       this case. Fixes bug 28269; bugfix on 0.3.1.1-alpha. Patch by
7171       Neel Chauhan.
7172     - When relaunching a circuit to a rendezvous service, mark the
7173       circuit as needing high-uptime routers as appropriate. Fixes bug
7174       17357; bugfix on 0.1.0.1-rc. Patch by Neel Chauhan.
7175     - Stop ignoring IPv6 link specifiers sent to v3 onion services.
7176       (IPv6 support for v3 onion services is still incomplete: see
7177       ticket 23493 for details.) Fixes bug 23588; bugfix on
7178       0.3.2.1-alpha. Patch by Neel Chauhan.
7180   o Minor bugfixes (onion services, performance):
7181     - When building circuits to onion services, call tor_addr_parse()
7182       less often. Previously, we called tor_addr_parse() in
7183       circuit_is_acceptable() even if its output wasn't used. This
7184       change should improve performance when building circuits. Fixes
7185       bug 22210; bugfix on 0.2.8.12. Patch by Neel Chauhan.
7187   o Minor bugfixes (performance):
7188     - When checking whether a node is a bridge, use a fast check to make
7189       sure that its identity is set. Previously, we used a constant-time
7190       check, which is not necessary in this case. Fixes bug 30308;
7191       bugfix on 0.3.5.1-alpha.
7193   o Minor bugfixes (pluggable transports):
7194     - Tor now sets TOR_PT_EXIT_ON_STDIN_CLOSE=1 for client transports as
7195       well as servers. Fixes bug 25614; bugfix on 0.2.7.1-alpha.
7197   o Minor bugfixes (probability distributions):
7198     - Refactor and improve parts of the probability distribution code
7199       that made Coverity complain. Fixes bug 29805; bugfix
7200       on 0.4.0.1-alpha.
7202   o Minor bugfixes (python):
7203     - Stop assuming that /usr/bin/python3 exists. For scripts that work
7204       with python2, use /usr/bin/python. Otherwise, use /usr/bin/env
7205       python3. Fixes bug 29913; bugfix on 0.2.5.3-alpha.
7207   o Minor bugfixes (relay):
7208     - When running as a relay, if IPv6Exit is set to 1 while ExitRelay
7209       is auto, act as if ExitRelay is 1. Previously, we would ignore
7210       IPv6Exit if ExitRelay was 0 or auto. Fixes bug 29613; bugfix on
7211       0.3.5.1-alpha. Patch by Neel Chauhan.
7213   o Minor bugfixes (stats):
7214     - When ExtraInfoStatistics is 0, stop including bandwidth usage
7215       statistics, GeoIPFile hashes, ServerTransportPlugin lines, and
7216       bridge statistics by country in extra-info documents. Fixes bug
7217       29018; bugfix on 0.2.4.1-alpha.
7219   o Minor bugfixes (testing):
7220     - Call setrlimit() to disable core dumps in test_bt_cl.c. Previously
7221       we used `ulimit -c` in test_bt.sh, which violates POSIX shell
7222       compatibility. Fixes bug 29061; bugfix on 0.3.5.1-alpha.
7223     - Fix some incorrect code in the v3 onion service unit tests. Fixes
7224       bug 29243; bugfix on 0.3.2.1-alpha.
7225     - In the "routerkeys/*" tests, check the return values of mkdir()
7226       for possible failures. Fixes bug 29939; bugfix on 0.2.7.2-alpha.
7227       Found by Coverity as CID 1444254.
7228     - Split test_utils_general() into several smaller test functions.
7229       This makes it easier to perform resource deallocation on assert
7230       failure, and fixes Coverity warnings CID 1444117 and CID 1444118.
7231       Fixes bug 29823; bugfix on 0.2.9.1-alpha.
7233   o Minor bugfixes (tor-resolve):
7234     - Fix a memory leak in tor-resolve that could happen if Tor gave it
7235       a malformed SOCKS response. (Memory leaks in tor-resolve don't
7236       actually matter, but it's good to fix them anyway.) Fixes bug
7237       30151; bugfix on 0.4.0.1-alpha.
7239   o Code simplification and refactoring:
7240     - Abstract out the low-level formatting of replies on the control
7241       port. Implements ticket 30007.
7242     - Add several assertions in an attempt to fix some Coverity
7243       warnings. Closes ticket 30149.
7244     - Introduce a connection_dir_buf_add() helper function that checks
7245       for compress_state of dir_connection_t and automatically writes a
7246       string to directory connection with or without compression.
7247       Resolves issue 28816.
7248     - Make the base32_decode() API return the number of bytes written,
7249       for consistency with base64_decode(). Closes ticket 28913.
7250     - Move most relay-only periodic events out of mainloop.c into the
7251       relay subsystem. Closes ticket 30414.
7252     - Refactor and encapsulate parts of the codebase that manipulate
7253       crypt_path_t objects. Resolves issue 30236.
7254     - Refactor several places in our code that Coverity incorrectly
7255       believed might have memory leaks. Closes ticket 30147.
7256     - Remove redundant return values in crypto_format, and the
7257       associated return value checks elsewhere in the code. Make the
7258       implementations in crypto_format consistent, and remove redundant
7259       code. Resolves ticket 29660.
7260     - Rename tor_mem_is_zero() to fast_mem_is_zero(), to emphasize that
7261       it is not a constant-time function. Closes ticket 30309.
7262     - Replace hs_desc_link_specifier_t with link_specifier_t, and remove
7263       all hs_desc_link_specifier_t-specific code. Fixes bug 22781;
7264       bugfix on 0.3.2.1-alpha.
7265     - Simplify v3 onion service link specifier handling code. Fixes bug
7266       23576; bugfix on 0.3.2.1-alpha.
7267     - Split crypto_digest.c into NSS code, OpenSSL code, and shared
7268       code. Resolves ticket 29108.
7269     - Split control.c into several submodules, in preparation for
7270       distributing its current responsibilities throughout the codebase.
7271       Closes ticket 29894.
7272     - Start to move responsibility for knowing about periodic events to
7273       the appropriate subsystems, so that the mainloop doesn't need to
7274       know all the periodic events in the rest of the codebase.
7275       Implements tickets 30293 and 30294.
7277   o Documentation:
7278     - Document how to find git commits and tags for bug fixes in
7279       CodingStandards.md. Update some file documentation. Closes
7280       ticket 30261.
7282   o Removed features:
7283     - Remove the linux-tor-prio.sh script from contrib/operator-tools
7284       directory. Resolves issue 29434.
7285     - Remove the obsolete OpenSUSE initscript. Resolves issue 30076.
7286     - Remove the obsolete script at contrib/dist/tor.sh.in. Resolves
7287       issue 30075.
7289   o Code simplification and refactoring (shell scripts):
7290     - Clean up many of our shell scripts to fix shellcheck warnings.
7291       These include autogen.sh (ticket 26069), test_keygen.sh (ticket
7292       29062), test_switch_id.sh (ticket 29065), test_rebind.sh (ticket
7293       29063), src/test/fuzz/minimize.sh (ticket 30079), test_rust.sh
7294       (ticket 29064), torify (ticket 29070), asciidoc-helper.sh (29926),
7295       fuzz_multi.sh (30077), fuzz_static_testcases.sh (ticket 29059),
7296       nagios-check-tor-authority-cert (ticket 29071),
7297       src/test/fuzz/fixup_filenames.sh (ticket 30078), test-network.sh
7298       (ticket 29060), test_key_expiration.sh (ticket 30002),
7299       zero_length_keys.sh (ticket 29068), and test_workqueue_*.sh
7300       (ticket 29067).
7302   o Testing (chutney):
7303     - In "make test-network-all", test IPv6-only v3 single onion
7304       services, using the chutney network single-onion-v23-ipv6-md.
7305       Closes ticket 27251.
7308 Changes in version 0.4.0.5 - 2019-05-02
7309   This is the first stable release in the 0.4.0.x series. It contains
7310   improvements for power management and bootstrap reporting, as well as
7311   preliminary backend support for circuit padding to prevent some kinds
7312   of traffic analysis. It also continues our work in refactoring Tor for
7313   long-term maintainability.
7315   Per our support policy, we will support the 0.4.0.x series for nine
7316   months, or until three months after the release of a stable 0.4.1.x:
7317   whichever is longer. If you need longer-term support, please stick
7318   with 0.3.5.x, which will we plan to support until Feb 2022.
7320   Below are the changes since 0.4.0.4-rc. For a complete list of changes
7321   since 0.3.5.7, see the ReleaseNotes file.
7323   o Minor features (continuous integration):
7324     - In Travis, tell timelimit to use stem's backtrace signals, and
7325       launch python directly from timelimit, so python receives the
7326       signals from timelimit, rather than make. Closes ticket 30117.
7328   o Minor features (diagnostic):
7329     - Add more diagnostic log messages in an attempt to solve the issue
7330       of NUL bytes appearing in a microdescriptor cache. Related to
7331       ticket 28223.
7333   o Minor features (testing):
7334     - Use the approx_time() function when setting the "Expires" header
7335       in directory replies, to make them more testable. Needed for
7336       ticket 30001.
7338   o Minor bugfixes (rust):
7339     - Abort on panic in all build profiles, instead of potentially
7340       unwinding into C code. Fixes bug 27199; bugfix on 0.3.3.1-alpha.
7342   o Minor bugfixes (shellcheck):
7343     - Look for scripts in their correct locations during "make
7344       shellcheck". Previously we had looked in the wrong place during
7345       out-of-tree builds. Fixes bug 30263; bugfix on 0.4.0.1-alpha.
7347   o Minor bugfixes (testing):
7348     - Check the time in the "Expires" header using approx_time(). Fixes
7349       bug 30001; bugfix on 0.4.0.4-rc.
7351   o Minor bugfixes (UI):
7352     - Lower log level of unlink() errors during bootstrap. Fixes bug
7353       29930; bugfix on 0.4.0.1-alpha.
7356 Changes in version 0.4.0.4-rc - 2019-04-11
7357   Tor 0.4.0.4-rc is the first release candidate in its series; it fixes
7358   several bugs from earlier versions, including some that had affected
7359   stability, and one that prevented relays from working with NSS.
7361   o Major bugfixes (NSS, relay):
7362     - When running with NSS, disable TLS 1.2 ciphersuites that use
7363       SHA384 for their PRF. Due to an NSS bug, the TLS key exporters for
7364       these ciphersuites don't work -- which caused relays to fail to
7365       handshake with one another when these ciphersuites were enabled.
7366       Fixes bug 29241; bugfix on 0.3.5.1-alpha.
7368   o Minor features (bandwidth authority):
7369     - Make bandwidth authorities ignore relays that are reported in the
7370       bandwidth file with the flag "vote=0". This change allows us to
7371       report unmeasured relays for diagnostic reasons without including
7372       their bandwidth in the bandwidth authorities' vote. Closes
7373       ticket 29806.
7374     - When a directory authority is using a bandwidth file to obtain the
7375       bandwidth values that will be included in the next vote, serve
7376       this bandwidth file at /tor/status-vote/next/bandwidth. Closes
7377       ticket 21377.
7379   o Minor features (circuit padding):
7380     - Stop warning about undefined behavior in the probability
7381       distribution tests. Float division by zero may technically be
7382       undefined behavior in C, but it's well defined in IEEE 754.
7383       Partial backport of 29298. Closes ticket 29527; bugfix
7384       on 0.4.0.1-alpha.
7386   o Minor features (continuous integration):
7387     - On Travis Rust builds, cleanup Rust registry and refrain from
7388       caching the "target/" directory to speed up builds. Resolves
7389       issue 29962.
7391   o Minor features (dormant mode):
7392     - Add a DormantCanceledByStartup option to tell Tor that it should
7393       treat a startup event as cancelling any previous dormant state.
7394       Integrators should use this option with caution: it should only be
7395       used if Tor is being started because of something that the user
7396       did, and not if Tor is being automatically started in the
7397       background. Closes ticket 29357.
7399   o Minor features (geoip):
7400     - Update geoip and geoip6 to the April 2 2019 Maxmind GeoLite2
7401       Country database. Closes ticket 29992.
7403   o Minor features (NSS, diagnostic):
7404     - Try to log an error from NSS (if there is any) and a more useful
7405       description of our situation if we are using NSS and a call to
7406       SSL_ExportKeyingMaterial() fails. Diagnostic for ticket 29241.
7408   o Minor bugfixes (security):
7409     - Fix a potential double free bug when reading huge bandwidth files.
7410       The issue is not exploitable in the current Tor network because
7411       the vulnerable code is only reached when directory authorities
7412       read bandwidth files, but bandwidth files come from a trusted
7413       source (usually the authorities themselves). Furthermore, the
7414       issue is only exploitable in rare (non-POSIX) 32-bit architectures,
7415       which are not used by any of the current authorities. Fixes bug
7416       30040; bugfix on 0.3.5.1-alpha. Bug found and fixed by
7417       Tobias Stoeckmann.
7418     - Verify in more places that we are not about to create a buffer
7419       with more than INT_MAX bytes, to avoid possible OOB access in the
7420       event of bugs. Fixes bug 30041; bugfix on 0.2.0.16. Found and
7421       fixed by Tobias Stoeckmann.
7423   o Minor bugfix (continuous integration):
7424     - Reset coverage state on disk after Travis CI has finished. This
7425       should prevent future coverage merge errors from causing the test
7426       suite for the "process" subsystem to fail. The process subsystem
7427       was introduced in 0.4.0.1-alpha. Fixes bug 29036; bugfix
7428       on 0.2.9.15.
7429     - Terminate test-stem if it takes more than 9.5 minutes to run.
7430       (Travis terminates the job after 10 minutes of no output.)
7431       Diagnostic for 29437. Fixes bug 30011; bugfix on 0.3.5.4-alpha.
7433   o Minor bugfixes (bootstrap reporting):
7434     - During bootstrap reporting, correctly distinguish pluggable
7435       transports from plain proxies. Fixes bug 28925; bugfix
7436       on 0.4.0.1-alpha.
7438   o Minor bugfixes (C correctness):
7439     - Fix an unlikely memory leak in consensus_diff_apply(). Fixes bug
7440       29824; bugfix on 0.3.1.1-alpha. This is Coverity warning
7441       CID 1444119.
7443   o Minor bugfixes (circuitpadding testing):
7444     - Minor tweaks to avoid rare test failures related to timers and
7445       monotonic time. Fixes bug 29500; bugfix on 0.4.0.1-alpha.
7447   o Minor bugfixes (directory authorities):
7448     - Actually include the bandwidth-file-digest line in directory
7449       authority votes. Fixes bug 29959; bugfix on 0.4.0.2-alpha.
7451   o Minor bugfixes (logging):
7452     - On Windows, when errors cause us to reload a consensus from disk,
7453       tell the user that we are retrying at log level "notice".
7454       Previously we only logged this information at "info", which was
7455       confusing because the errors themselves were logged at "warning".
7456       Improves previous fix for 28614. Fixes bug 30004; bugfix
7457       on 0.4.0.2-alpha.
7459   o Minor bugfixes (pluggable transports):
7460     - Restore old behavior when it comes to discovering the path of a
7461       given Pluggable Transport executable file. A change in
7462       0.4.0.1-alpha had broken this behavior on paths containing a
7463       space. Fixes bug 29874; bugfix on 0.4.0.1-alpha.
7465   o Minor bugfixes (testing):
7466     - Backport the 0.3.4 src/test/test-network.sh to 0.2.9. We need a
7467       recent test-network.sh to use new chutney features in CI. Fixes
7468       bug 29703; bugfix on 0.2.9.1-alpha.
7469     - Fix a test failure on Windows caused by an unexpected "BUG"
7470       warning in our tests for tor_gmtime_r(-1). Fixes bug 29922; bugfix
7471       on 0.2.9.3-alpha.
7473   o Minor bugfixes (TLS protocol):
7474     - When classifying a client's selection of TLS ciphers, if the
7475       client ciphers are not yet available, do not cache the result.
7476       Previously, we had cached the unavailability of the cipher list
7477       and never looked again, which in turn led us to assume that the
7478       client only supported the ancient V1 link protocol. This, in turn,
7479       was causing Stem integration tests to stall in some cases. Fixes
7480       bug 30021; bugfix on 0.2.4.8-alpha.
7482   o Code simplification and refactoring:
7483     - Introduce a connection_dir_buf_add() helper function that detects
7484       whether compression is in use, and adds a string accordingly.
7485       Resolves issue 28816.
7486     - Refactor handle_get_next_bandwidth() to use
7487       connection_dir_buf_add(). Implements ticket 29897.
7489   o Documentation:
7490     - Clarify that Tor performs stream isolation among *Port listeners
7491       by default. Resolves issue 29121.
7494 Changes in version 0.4.0.3-alpha - 2019-03-22
7495   Tor 0.4.0.3-alpha is the third in its series; it fixes several small
7496   bugs from earlier versions.
7498   o Minor features (address selection):
7499     - Treat the subnet 100.64.0.0/10 as public for some purposes;
7500       private for others. This subnet is the RFC 6598 (Carrier Grade
7501       NAT) IP range, and is deployed by many ISPs as an alternative to
7502       RFC 1918 that does not break existing internal networks. Tor now
7503       blocks SOCKS and control ports on these addresses and warns users
7504       if client ports or ExtORPorts are listening on a RFC 6598 address.
7505       Closes ticket 28525. Patch by Neel Chauhan.
7507   o Minor features (geoip):
7508     - Update geoip and geoip6 to the March 4 2019 Maxmind GeoLite2
7509       Country database. Closes ticket 29666.
7511   o Minor bugfixes (circuitpadding):
7512     - Inspect the circuit-level cell queue before sending padding, to
7513       avoid sending padding when too much data is queued. Fixes bug
7514       29204; bugfix on 0.4.0.1-alpha.
7516   o Minor bugfixes (logging):
7517     - Correct a misleading error message when IPv4Only or IPv6Only is
7518       used but the resolved address can not be interpreted as an address
7519       of the specified IP version. Fixes bug 13221; bugfix on
7520       0.2.3.9-alpha. Patch from Kris Katterjohn.
7521     - Log the correct port number for listening sockets when "auto" is
7522       used to let Tor pick the port number. Previously, port 0 was
7523       logged instead of the actual port number. Fixes bug 29144; bugfix
7524       on 0.3.5.1-alpha. Patch from Kris Katterjohn.
7525     - Stop logging a BUG() warning when Tor is waiting for exit
7526       descriptors. Fixes bug 28656; bugfix on 0.3.5.1-alpha.
7528   o Minor bugfixes (memory management):
7529     - Refactor the shared random state's memory management so that it
7530       actually takes ownership of the shared random value pointers.
7531       Fixes bug 29706; bugfix on 0.2.9.1-alpha.
7533   o Minor bugfixes (memory management, testing):
7534     - Stop leaking parts of the shared random state in the shared-random
7535       unit tests. Fixes bug 29599; bugfix on 0.2.9.1-alpha.
7537   o Minor bugfixes (pluggable transports):
7538     - Fix an assertion failure crash bug when a pluggable transport is
7539       terminated during the bootstrap phase. Fixes bug 29562; bugfix
7540       on 0.4.0.1-alpha.
7542   o Minor bugfixes (Rust, protover):
7543     - Add a missing "Padding" value to the Rust implementation of
7544       protover. Fixes bug 29631; bugfix on 0.4.0.1-alpha.
7546   o Minor bugfixes (single onion services):
7547     - Allow connections to single onion services to remain idle without
7548       being disconnected. Previously, relays acting as rendezvous points
7549       for single onion services were mistakenly closing idle rendezvous
7550       circuits after 60 seconds, thinking that they were unused
7551       directory-fetching circuits that had served their purpose. Fixes
7552       bug 29665; bugfix on 0.2.1.26.
7554   o Minor bugfixes (stats):
7555     - When ExtraInfoStatistics is 0, stop including PaddingStatistics in
7556       relay and bridge extra-info documents. Fixes bug 29017; bugfix
7557       on 0.3.1.1-alpha.
7559   o Minor bugfixes (testing):
7560     - Downgrade some LOG_ERR messages in the address/* tests to
7561       warnings. The LOG_ERR messages were occurring when we had no
7562       configured network. We were failing the unit tests, because we
7563       backported 28668 to 0.3.5.8, but did not backport 29530. Fixes bug
7564       29530; bugfix on 0.3.5.8.
7565     - Fix our gcov wrapper script to look for object files at the
7566       correct locations. Fixes bug 29435; bugfix on 0.3.5.1-alpha.
7567     - Decrease the false positive rate of stochastic probability
7568       distribution tests. Fixes bug 29693; bugfix on 0.4.0.1-alpha.
7570   o Minor bugfixes (Windows, CI):
7571     - Skip the Appveyor 32-bit Windows Server 2016 job, and 64-bit
7572       Windows Server 2012 R2 job. The remaining 2 jobs still provide
7573       coverage of 64/32-bit, and Windows Server 2016/2012 R2. Also set
7574       fast_finish, so failed jobs terminate the build immediately. Fixes
7575       bug 29601; bugfix on 0.3.5.4-alpha.
7578 Changes in version 0.3.5.8 - 2019-02-21
7579   Tor 0.3.5.8 backports several fixes from later releases, including fixes
7580   for an annoying SOCKS-parsing bug that affected users in earlier 0.3.5.x
7581   releases.
7583   It also includes a fix for a medium-severity security bug affecting Tor
7584   0.3.2.1-alpha and later. All Tor instances running an affected release
7585   should upgrade to 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
7587   o Major bugfixes (cell scheduler, KIST, security):
7588     - Make KIST consider the outbuf length when computing what it can
7589       put in the outbuf. Previously, KIST acted as though the outbuf
7590       were empty, which could lead to the outbuf becoming too full. It
7591       is possible that an attacker could exploit this bug to cause a Tor
7592       client or relay to run out of memory and crash. Fixes bug 29168;
7593       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
7594       TROVE-2019-001 and CVE-2019-8955.
7596   o Major bugfixes (networking, backport from 0.4.0.2-alpha):
7597     - Gracefully handle empty username/password fields in SOCKS5
7598       username/password auth message and allow SOCKS5 handshake to
7599       continue. Previously, we had rejected these handshakes, breaking
7600       certain applications. Fixes bug 29175; bugfix on 0.3.5.1-alpha.
7602   o Minor features (compilation, backport from 0.4.0.2-alpha):
7603     - Compile correctly when OpenSSL is built with engine support
7604       disabled, or with deprecated APIs disabled. Closes ticket 29026.
7605       Patches from "Mangix".
7607   o Minor features (geoip):
7608     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
7609       Country database. Closes ticket 29478.
7611   o Minor features (testing, backport from 0.4.0.2-alpha):
7612     - Treat all unexpected ERR and BUG messages as test failures. Closes
7613       ticket 28668.
7615   o Minor bugfixes (onion service v3, client, backport from 0.4.0.1-alpha):
7616     - Stop logging a "BUG()" warning and stacktrace when we find a SOCKS
7617       connection waiting for a descriptor that we actually have in the
7618       cache. It turns out that this can actually happen, though it is
7619       rare. Now, tor will recover and retry the descriptor. Fixes bug
7620       28669; bugfix on 0.3.2.4-alpha.
7622   o Minor bugfixes (IPv6, backport from 0.4.0.1-alpha):
7623     - Fix tor_ersatz_socketpair on IPv6-only systems. Previously, the
7624       IPv6 socket was bound using an address family of AF_INET instead
7625       of AF_INET6. Fixes bug 28995; bugfix on 0.3.5.1-alpha. Patch from
7626       Kris Katterjohn.
7628   o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha):
7629     - Update Cargo.lock file to match the version made by the latest
7630       version of Rust, so that "make distcheck" will pass again. Fixes
7631       bug 29244; bugfix on 0.3.3.4-alpha.
7633   o Minor bugfixes (client, clock skew, backport from 0.4.0.1-alpha):
7634     - Select guards even if the consensus has expired, as long as the
7635       consensus is still reasonably live. Fixes bug 24661; bugfix
7636       on 0.3.0.1-alpha.
7638   o Minor bugfixes (compilation, backport from 0.4.0.1-alpha):
7639     - Compile correctly on OpenBSD; previously, we were missing some
7640       headers required in order to detect it properly. Fixes bug 28938;
7641       bugfix on 0.3.5.1-alpha. Patch from Kris Katterjohn.
7643   o Minor bugfixes (documentation, backport from 0.4.0.2-alpha):
7644     - Describe the contents of the v3 onion service client authorization
7645       files correctly: They hold public keys, not private keys. Fixes
7646       bug 28979; bugfix on 0.3.5.1-alpha. Spotted by "Felixix".
7648   o Minor bugfixes (logging, backport from 0.4.0.1-alpha):
7649     - Rework rep_hist_log_link_protocol_counts() to iterate through all
7650       link protocol versions when logging incoming/outgoing connection
7651       counts. Tor no longer skips version 5, and we won't have to
7652       remember to update this function when new link protocol version is
7653       developed. Fixes bug 28920; bugfix on 0.2.6.10.
7655   o Minor bugfixes (logging, backport from 0.4.0.2-alpha):
7656     - Log more information at "warning" level when unable to read a
7657       private key; log more information at "info" level when unable to
7658       read a public key. We had warnings here before, but they were lost
7659       during our NSS work. Fixes bug 29042; bugfix on 0.3.5.1-alpha.
7661   o Minor bugfixes (misc, backport from 0.4.0.2-alpha):
7662     - The amount of total available physical memory is now determined
7663       using the sysctl identifier HW_PHYSMEM (rather than HW_USERMEM)
7664       when it is defined and a 64-bit variant is not available. Fixes
7665       bug 28981; bugfix on 0.2.5.4-alpha. Patch from Kris Katterjohn.
7667   o Minor bugfixes (onion services, backport from 0.4.0.2-alpha):
7668     - Avoid crashing if ClientOnionAuthDir (incorrectly) contains more
7669       than one private key for a hidden service. Fixes bug 29040; bugfix
7670       on 0.3.5.1-alpha.
7671     - In hs_cache_store_as_client() log an HSDesc we failed to parse at
7672       "debug" level. Tor used to log it as a warning, which caused very
7673       long log lines to appear for some users. Fixes bug 29135; bugfix
7674       on 0.3.2.1-alpha.
7675     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
7676       as a warning. Instead, log it as a protocol warning, because there
7677       is nothing that relay operators can do to fix it. Fixes bug 29029;
7678       bugfix on 0.2.5.7-rc.
7680   o Minor bugfixes (tests, directory clients, backport from 0.4.0.1-alpha):
7681     - Mark outdated dirservers when Tor only has a reasonably live
7682       consensus. Fixes bug 28569; bugfix on 0.3.2.5-alpha.
7684   o Minor bugfixes (tests, backport from 0.4.0.2-alpha):
7685     - Detect and suppress "bug" warnings from the util/time test on
7686       Windows. Fixes bug 29161; bugfix on 0.2.9.3-alpha.
7687     - Do not log an error-level message if we fail to find an IPv6
7688       network interface from the unit tests. Fixes bug 29160; bugfix
7689       on 0.2.7.3-rc.
7691   o Minor bugfixes (usability, backport from 0.4.0.1-alpha):
7692     - Stop saying "Your Guard ..." in pathbias_measure_{use,close}_rate().
7693       Some users took this phrasing to mean that the mentioned guard was
7694       under their control or responsibility, which it is not. Fixes bug
7695       28895; bugfix on Tor 0.3.0.1-alpha.
7698 Changes in version 0.3.4.11 - 2019-02-21
7699   Tor 0.3.4.11 is the third stable release in its series.  It includes
7700   a fix for a medium-severity security bug affecting Tor 0.3.2.1-alpha and
7701   later. All Tor instances running an affected release should upgrade to
7702   0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
7704   o Major bugfixes (cell scheduler, KIST, security):
7705     - Make KIST consider the outbuf length when computing what it can
7706       put in the outbuf. Previously, KIST acted as though the outbuf
7707       were empty, which could lead to the outbuf becoming too full. It
7708       is possible that an attacker could exploit this bug to cause a Tor
7709       client or relay to run out of memory and crash. Fixes bug 29168;
7710       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
7711       TROVE-2019-001 and CVE-2019-8955.
7713   o Minor features (geoip):
7714     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
7715       Country database. Closes ticket 29478.
7717   o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha):
7718     - Update Cargo.lock file to match the version made by the latest
7719       version of Rust, so that "make distcheck" will pass again. Fixes
7720       bug 29244; bugfix on 0.3.3.4-alpha.
7722   o Minor bugfixes (onion services, backport from 0.4.0.2-alpha):
7723     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
7724       as a warning. Instead, log it as a protocol warning, because there
7725       is nothing that relay operators can do to fix it. Fixes bug 29029;
7726       bugfix on 0.2.5.7-rc.
7729 Changes in version 0.3.3.12 - 2019-02-21
7730   Tor 0.3.3.12 fixes a medium-severity security bug affecting Tor
7731   0.3.2.1-alpha and later. All Tor instances running an affected release
7732   should upgrade to 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
7734   This release marks the end of support for the Tor 0.3.3.x series. We
7735   recommend that users switch to either the Tor 0.3.4 series (supported
7736   until at least 10 June 2019), or the Tor 0.3.5 series, which will
7737   receive long-term support until at least 1 Feb 2022.
7739   o Major bugfixes (cell scheduler, KIST, security):
7740     - Make KIST consider the outbuf length when computing what it can
7741       put in the outbuf. Previously, KIST acted as though the outbuf
7742       were empty, which could lead to the outbuf becoming too full. It
7743       is possible that an attacker could exploit this bug to cause a Tor
7744       client or relay to run out of memory and crash. Fixes bug 29168;
7745       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
7746       TROVE-2019-001 and CVE-2019-8955.
7748   o Minor features (geoip):
7749     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
7750       Country database. Closes ticket 29478.
7752   o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha):
7753     - Update Cargo.lock file to match the version made by the latest
7754       version of Rust, so that "make distcheck" will pass again. Fixes
7755       bug 29244; bugfix on 0.3.3.4-alpha.
7757   o Minor bugfixes (onion services, backport from 0.4.0.2-alpha):
7758     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
7759       as a warning. Instead, log it as a protocol warning, because there
7760       is nothing that relay operators can do to fix it. Fixes bug 29029;
7761       bugfix on 0.2.5.7-rc.
7764 Changes in version 0.4.0.2-alpha - 2019-02-21
7765   Tor 0.4.0.2-alpha is the second alpha in its series; it fixes several
7766   bugs from earlier versions, including several that had broken
7767   backward compatibility.
7769   It also includes a fix for a medium-severity security bug affecting Tor
7770   0.3.2.1-alpha and later. All Tor instances running an affected release
7771   should upgrade to 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha.
7773   o Major bugfixes (cell scheduler, KIST, security):
7774     - Make KIST consider the outbuf length when computing what it can
7775       put in the outbuf. Previously, KIST acted as though the outbuf
7776       were empty, which could lead to the outbuf becoming too full. It
7777       is possible that an attacker could exploit this bug to cause a Tor
7778       client or relay to run out of memory and crash. Fixes bug 29168;
7779       bugfix on 0.3.2.1-alpha. This issue is also being tracked as
7780       TROVE-2019-001 and CVE-2019-8955.
7782   o Major bugfixes (networking):
7783     - Gracefully handle empty username/password fields in SOCKS5
7784       username/password auth messsage and allow SOCKS5 handshake to
7785       continue. Previously, we had rejected these handshakes, breaking
7786       certain applications. Fixes bug 29175; bugfix on 0.3.5.1-alpha.
7788   o Major bugfixes (windows, startup):
7789     - When reading a consensus file from disk, detect whether it was
7790       written in text mode, and re-read it in text mode if so. Always
7791       write consensus files in binary mode so that we can map them into
7792       memory later. Previously, we had written in text mode, which
7793       confused us when we tried to map the file on windows. Fixes bug
7794       28614; bugfix on 0.4.0.1-alpha.
7796   o Minor features (compilation):
7797     - Compile correctly when OpenSSL is built with engine support
7798       disabled, or with deprecated APIs disabled. Closes ticket 29026.
7799       Patches from "Mangix".
7801   o Minor features (developer tooling):
7802     - Check that bugfix versions in changes files look like Tor versions
7803       from the versions spec. Warn when bugfixes claim to be on a future
7804       release. Closes ticket 27761.
7805     - Provide a git pre-commit hook that disallows committing if we have
7806       any failures in our code and changelog formatting checks. It is
7807       now available in scripts/maint/pre-commit.git-hook. Implements
7808       feature 28976.
7810   o Minor features (directory authority):
7811     - When a directory authority is using a bandwidth file to obtain
7812       bandwidth values, include the digest of that file in the vote.
7813       Closes ticket 26698.
7815   o Minor features (geoip):
7816     - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2
7817       Country database. Closes ticket 29478.
7819   o Minor features (testing):
7820     - Treat all unexpected ERR and BUG messages as test failures. Closes
7821       ticket 28668.
7823   o Minor bugfixes (build, compatibility, rust):
7824     - Update Cargo.lock file to match the version made by the latest
7825       version of Rust, so that "make distcheck" will pass again. Fixes
7826       bug 29244; bugfix on 0.3.3.4-alpha.
7828   o Minor bugfixes (compilation):
7829     - Fix compilation warnings in test_circuitpadding.c. Fixes bug
7830       29169; bugfix on 0.4.0.1-alpha.
7831     - Silence a compiler warning in test-memwipe.c on OpenBSD. Fixes bug
7832       29145; bugfix on 0.2.9.3-alpha. Patch from Kris Katterjohn.
7834   o Minor bugfixes (documentation):
7835     - Describe the contents of the v3 onion service client authorization
7836       files correctly: They hold public keys, not private keys. Fixes
7837       bug 28979; bugfix on 0.3.5.1-alpha. Spotted by "Felixix".
7839   o Minor bugfixes (linux seccomp sandbox):
7840     - Fix startup crash when experimental sandbox support is enabled.
7841       Fixes bug 29150; bugfix on 0.4.0.1-alpha. Patch by Peter Gerber.
7843   o Minor bugfixes (logging):
7844     - Avoid logging that we are relaxing a circuit timeout when that
7845       timeout is fixed. Fixes bug 28698; bugfix on 0.2.4.7-alpha.
7846     - Log more information at "warning" level when unable to read a
7847       private key; log more information at "info" level when unable to
7848       read a public key. We had warnings here before, but they were lost
7849       during our NSS work. Fixes bug 29042; bugfix on 0.3.5.1-alpha.
7851   o Minor bugfixes (misc):
7852     - The amount of total available physical memory is now determined
7853       using the sysctl identifier HW_PHYSMEM (rather than HW_USERMEM)
7854       when it is defined and a 64-bit variant is not available. Fixes
7855       bug 28981; bugfix on 0.2.5.4-alpha. Patch from Kris Katterjohn.
7857   o Minor bugfixes (onion services):
7858     - Avoid crashing if ClientOnionAuthDir (incorrectly) contains more
7859       than one private key for a hidden service. Fixes bug 29040; bugfix
7860       on 0.3.5.1-alpha.
7861     - In hs_cache_store_as_client() log an HSDesc we failed to parse at
7862       "debug" level. Tor used to log it as a warning, which caused very
7863       long log lines to appear for some users. Fixes bug 29135; bugfix
7864       on 0.3.2.1-alpha.
7865     - Stop logging "Tried to establish rendezvous on non-OR circuit..."
7866       as a warning. Instead, log it as a protocol warning, because there
7867       is nothing that relay operators can do to fix it. Fixes bug 29029;
7868       bugfix on 0.2.5.7-rc.
7870   o Minor bugfixes (scheduler):
7871     - When re-adding channels to the pending list, check the correct
7872       channel's sched_heap_idx. This issue has had no effect in mainline
7873       Tor, but could have led to bugs down the road in improved versions
7874       of our circuit scheduling code. Fixes bug 29508; bugfix
7875       on 0.3.2.10.
7877   o Minor bugfixes (tests):
7878     - Fix intermittent failures on an adaptive padding test. Fixes one
7879       case of bug 29122; bugfix on 0.4.0.1-alpha.
7880     - Disable an unstable circuit-padding test that was failing
7881       intermittently because of an ill-defined small histogram. Such
7882       histograms will be allowed again after 29298 is implemented. Fixes
7883       a second case of bug 29122; bugfix on 0.4.0.1-alpha.
7884     - Detect and suppress "bug" warnings from the util/time test on
7885       Windows. Fixes bug 29161; bugfix on 0.2.9.3-alpha.
7886     - Do not log an error-level message if we fail to find an IPv6
7887       network interface from the unit tests. Fixes bug 29160; bugfix
7888       on 0.2.7.3-rc.
7890   o Documentation:
7891     - In the manpage entry describing MapAddress torrc setting, use
7892       example IP addresses from ranges specified for use in documentation
7893       by RFC 5737. Resolves issue 28623.
7895   o Removed features:
7896     - Remove the old check-tor script. Resolves issue 29072.
7899 Changes in version 0.4.0.1-alpha - 2019-01-18
7900   Tor 0.4.0.1-alpha is the first release in the new 0.4.0.x series. It
7901   introduces improved features for power and bandwidth conservation,
7902   more accurate reporting of bootstrap progress for user interfaces, and
7903   an experimental backend for an exciting new adaptive padding feature.
7904   There is also the usual assortment of bugfixes and minor features, all
7905   described below.
7907   o Major features (battery management, client, dormant mode):
7908     - When Tor is running as a client, and it is unused for a long time,
7909       it can now enter a "dormant" state. When Tor is dormant, it avoids
7910       network and CPU activity until it is reawoken either by a user
7911       request or by a controller command. For more information, see the
7912       configuration options starting with "Dormant". Implements tickets
7913       2149 and 28335.
7914     - The client's memory of whether it is "dormant", and how long it
7915       has spent idle, persists across invocations. Implements
7916       ticket 28624.
7917     - There is a DormantOnFirstStartup option that integrators can use
7918       if they expect that in many cases, Tor will be installed but
7919       not used.
7921   o Major features (bootstrap reporting):
7922     - When reporting bootstrap progress, report the first connection
7923       uniformly, regardless of whether it's a connection for building
7924       application circuits. This allows finer-grained reporting of early
7925       progress than previously possible, with the improvements of ticket
7926       27169. Closes tickets 27167 and 27103. Addresses ticket 27308.
7927     - When reporting bootstrap progress, treat connecting to a proxy or
7928       pluggable transport as separate from having successfully used that
7929       proxy or pluggable transport to connect to a relay. Closes tickets
7930       27100 and 28884.
7932   o Major features (circuit padding):
7933     - Implement preliminary support for the circuit padding portion of
7934       Proposal 254. The implementation supports Adaptive Padding (aka
7935       WTF-PAD) state machines for use between experimental clients and
7936       relays. Support is also provided for APE-style state machines that
7937       use probability distributions instead of histograms to specify
7938       inter-packet delay. At the moment, Tor does not provide any
7939       padding state machines that are used in normal operation: for now,
7940       this feature exists solely for experimentation. Closes
7941       ticket 28142.
7943   o Major features (refactoring):
7944     - Tor now uses an explicit list of its own subsystems when
7945       initializing and shutting down. Previously, these systems were
7946       managed implicitly in various places throughout the codebase.
7947       (There may still be some subsystems using the old system.) Closes
7948       ticket 28330.
7950   o Minor features (bootstrap reporting):
7951     - When reporting bootstrap progress, stop distinguishing between
7952       situations where only internal paths are available and situations
7953       where external paths are available. Previously, Tor would often
7954       erroneously report that it had only internal paths. Closes
7955       ticket 27402.
7957   o Minor features (continuous integration):
7958     - Log Python version during each Travis CI job. Resolves
7959       issue 28551.
7961   o Minor features (controller):
7962     - Add a DROPOWNERSHIP command to undo the effects of TAKEOWNERSHIP.
7963       Implements ticket 28843.
7965   o Minor features (developer tooling):
7966     - Provide a git hook script to prevent "fixup!" and "squash!"
7967       commits from ending up in the master branch, as scripts/main/pre-
7968       push.git-hook. Closes ticket 27993.
7970   o Minor features (directory authority):
7971     - Directory authorities support a new consensus algorithm, under
7972       which the family lines in microdescriptors are encoded in a
7973       canonical form. This change makes family lines more compressible
7974       in transit, and on the client. Closes ticket 28266; implements
7975       proposal 298.
7977   o Minor features (directory authority, relay):
7978     - Authorities now vote on a "StaleDesc" flag to indicate that a
7979       relay's descriptor is so old that the relay should upload again
7980       soon. Relays treat this flag as a signal to upload a new
7981       descriptor. This flag will eventually let us remove the
7982       'published' date from routerstatus entries, and make our consensus
7983       diffs much smaller. Closes ticket 26770; implements proposal 293.
7985   o Minor features (fallback directory mirrors):
7986     - Update the fallback whitelist based on operator opt-ins and opt-
7987       outs. Closes ticket 24805, patch by Phoul.
7989   o Minor features (FreeBSD):
7990     - On FreeBSD-based systems, warn relay operators if the
7991       "net.inet.ip.random_id" sysctl (IP ID randomization) is disabled.
7992       Closes ticket 28518.
7994   o Minor features (HTTP standards compliance):
7995     - Stop sending the header "Content-type: application/octet-stream"
7996       along with transparently compressed documents: this confused
7997       browsers. Closes ticket 28100.
7999   o Minor features (IPv6):
8000     - We add an option ClientAutoIPv6ORPort, to make clients randomly
8001       prefer a node's IPv4 or IPv6 ORPort. The random preference is set
8002       every time a node is loaded from a new consensus or bridge config.
8003       We expect that this option will enable clients to bootstrap more
8004       quickly without having to determine whether they support IPv4,
8005       IPv6, or both. Closes ticket 27490. Patch by Neel Chauhan.
8006     - When using addrs_in_same_network_family(), avoid choosing circuit
8007       paths that pass through the same IPv6 subnet more than once.
8008       Previously, we only checked IPv4 subnets. Closes ticket 24393.
8009       Patch by Neel Chauhan.
8011   o Minor features (log messages):
8012     - Improve log message in v3 onion services that could print out
8013       negative revision counters. Closes ticket 27707. Patch
8014       by "ffmancera".
8016   o Minor features (memory usage):
8017     - Save memory by storing microdescriptor family lists with a more
8018       compact representation. Closes ticket 27359.
8019     - Tor clients now use mmap() to read consensus files from disk, so
8020       that they no longer need keep the full text of a consensus in
8021       memory when parsing it or applying a diff. Closes ticket 27244.
8023   o Minor features (parsing):
8024     - Directory authorities now validate that router descriptors and
8025       ExtraInfo documents are in a valid subset of UTF-8, and reject
8026       them if they are not. Closes ticket 27367.
8028   o Minor features (performance):
8029     - Cache the results of summarize_protocol_flags(), so that we don't
8030       have to parse the same protocol-versions string over and over.
8031       This should save us a huge number of malloc calls on startup, and
8032       may reduce memory fragmentation with some allocators. Closes
8033       ticket 27225.
8034     - Remove a needless memset() call from get_token_arguments, thereby
8035       speeding up the tokenization of directory objects by about 20%.
8036       Closes ticket 28852.
8037     - Replace parse_short_policy() with a faster implementation, to
8038       improve microdescriptor parsing time. Closes ticket 28853.
8039     - Speed up directory parsing a little by avoiding use of the non-
8040       inlined strcmp_len() function. Closes ticket 28856.
8041     - Speed up microdescriptor parsing by about 30%, to help improve
8042       startup time. Closes ticket 28839.
8044   o Minor features (pluggable transports):
8045     - Add support for emitting STATUS updates to Tor's control port from
8046       a pluggable transport process. Closes ticket 28846.
8047     - Add support for logging to Tor's logging subsystem from a
8048       pluggable transport process. Closes ticket 28180.
8050   o Minor features (process management):
8051     - Add a new process API for handling child processes. This new API
8052       allows Tor to have bi-directional communication with child
8053       processes on both Unix and Windows. Closes ticket 28179.
8054     - Use the subsystem manager to initialize and shut down the process
8055       module. Closes ticket 28847.
8057   o Minor features (relay):
8058     - When listing relay families, list them in canonical form including
8059       the relay's own identity, and try to give a more useful set of
8060       warnings. Part of ticket 28266 and proposal 298.
8062   o Minor features (required protocols):
8063     - Before exiting because of a missing required protocol, Tor will
8064       now check the publication time of the consensus, and not exit
8065       unless the consensus is newer than the Tor program's own release
8066       date. Previously, Tor would not check the consensus publication
8067       time, and so might exit because of a missing protocol that might
8068       no longer be required in a current consensus. Implements proposal
8069       297; closes ticket 27735.
8071   o Minor features (testing):
8072     - Allow a HeartbeatPeriod of less than 30 minutes in testing Tor
8073       networks. Closes ticket 28840. Patch by Rob Jansen.
8075   o Minor bugfixes (client, clock skew):
8076     - Bootstrap successfully even when Tor's clock is behind the clocks
8077       on the authorities. Fixes bug 28591; bugfix on 0.2.0.9-alpha.
8078     - Select guards even if the consensus has expired, as long as the
8079       consensus is still reasonably live. Fixes bug 24661; bugfix
8080       on 0.3.0.1-alpha.
8082   o Minor bugfixes (compilation):
8083     - Compile correctly on OpenBSD; previously, we were missing some
8084       headers required in order to detect it properly. Fixes bug 28938;
8085       bugfix on 0.3.5.1-alpha. Patch from Kris Katterjohn.
8087   o Minor bugfixes (directory clients):
8088     - Mark outdated dirservers when Tor only has a reasonably live
8089       consensus. Fixes bug 28569; bugfix on 0.3.2.5-alpha.
8091   o Minor bugfixes (directory mirrors):
8092     - Even when a directory mirror's clock is behind the clocks on the
8093       authorities, we now allow the mirror to serve "future"
8094       consensuses. Fixes bug 28654; bugfix on 0.3.0.1-alpha.
8096   o Minor bugfixes (DNS):
8097     - Gracefully handle an empty or absent resolve.conf file by falling
8098       back to using "localhost" as a DNS server (and hoping it works).
8099       Previously, we would just stop running as an exit. Fixes bug
8100       21900; bugfix on 0.2.1.10-alpha.
8102   o Minor bugfixes (guards):
8103     - In count_acceptable_nodes(), the minimum number is now one bridge
8104       or guard node, and two non-guard nodes for a circuit. Previously,
8105       we had added up the sum of all nodes with a descriptor, but that
8106       could cause us to build failing circuits when we had either too
8107       many bridges or not enough guard nodes. Fixes bug 25885; bugfix on
8108       0.2.3.1-alpha. Patch by Neel Chauhan.
8110   o Minor bugfixes (IPv6):
8111     - Fix tor_ersatz_socketpair on IPv6-only systems. Previously, the
8112       IPv6 socket was bound using an address family of AF_INET instead
8113       of AF_INET6. Fixes bug 28995; bugfix on 0.3.5.1-alpha. Patch from
8114       Kris Katterjohn.
8116   o Minor bugfixes (logging):
8117     - Rework rep_hist_log_link_protocol_counts() to iterate through all
8118       link protocol versions when logging incoming/outgoing connection
8119       counts. Tor no longer skips version 5, and we won't have to
8120       remember to update this function when new link protocol version is
8121       developed. Fixes bug 28920; bugfix on 0.2.6.10.
8123   o Minor bugfixes (networking):
8124     - Introduce additional checks into tor_addr_parse() to reject
8125       certain incorrect inputs that previously were not detected. Fixes
8126       bug 23082; bugfix on 0.2.0.10-alpha.
8128   o Minor bugfixes (onion service v3, client):
8129     - Stop logging a "BUG()" warning and stacktrace when we find a SOCKS
8130       connection waiting for a descriptor that we actually have in the
8131       cache. It turns out that this can actually happen, though it is
8132       rare. Now, tor will recover and retry the descriptor. Fixes bug
8133       28669; bugfix on 0.3.2.4-alpha.
8135   o Minor bugfixes (periodic events):
8136     - Refrain from calling routerlist_remove_old_routers() from
8137       check_descriptor_callback(). Instead, create a new hourly periodic
8138       event. Fixes bug 27929; bugfix on 0.2.8.1-alpha.
8140   o Minor bugfixes (pluggable transports):
8141     - Make sure that data is continously read from standard output and
8142       standard error pipes of a pluggable transport child-process, to
8143       avoid deadlocking when a pipe's buffer is full. Fixes bug 26360;
8144       bugfix on 0.2.3.6-alpha.
8146   o Minor bugfixes (unit tests):
8147     - Instead of relying on hs_free_all() to clean up all onion service
8148       objects in test_build_descriptors(), we now deallocate them one by
8149       one. This lets Coverity know that we are not leaking memory there
8150       and fixes CID 1442277. Fixes bug 28989; bugfix on 0.3.5.1-alpha.
8152   o Minor bugfixes (usability):
8153     - Stop saying "Your Guard ..." in pathbias_measure_{use,close}_rate().
8154       Some users took this phrasing to mean that the mentioned guard was
8155       under their control or responsibility, which it is not. Fixes bug
8156       28895; bugfix on Tor 0.3.0.1-alpha.
8158   o Code simplification and refactoring:
8159     - Reimplement NETINFO cell parsing and generation to rely on
8160       trunnel-generated wire format handling code. Closes ticket 27325.
8161     - Remove unnecessary unsafe code from the Rust macro "cstr!". Closes
8162       ticket 28077.
8163     - Rework SOCKS wire format handling to rely on trunnel-generated
8164       parsing/generation code. Resolves ticket 27620.
8165     - Split out bootstrap progress reporting from control.c into a
8166       separate file. Part of ticket 27402.
8167     - The .may_include files that we use to describe our directory-by-
8168       directory dependency structure now describe a noncircular
8169       dependency graph over the directories that they cover. Our
8170       checkIncludes.py tool now enforces this noncircularity. Closes
8171       ticket 28362.
8173   o Documentation:
8174     - Mention that you cannot add a new onion service if Tor is already
8175       running with Sandbox enabled. Closes ticket 28560.
8176     - Improve ControlPort documentation. Mention that it accepts
8177       address:port pairs, and can be used multiple times. Closes
8178       ticket 28805.
8179     - Document the exact output of "tor --version". Closes ticket 28889.
8181   o Removed features:
8182     - Stop responding to the 'GETINFO status/version/num-concurring' and
8183       'GETINFO status/version/num-versioning' control port commands, as
8184       those were deprecated back in 0.2.0.30. Also stop listing them in
8185       output of 'GETINFO info/names'. Resolves ticket 28757.
8186     - The scripts used to generate and maintain the list of fallback
8187       directories have been extracted into a new "fallback-scripts"
8188       repository. Closes ticket 27914.
8190   o Testing:
8191     - Run shellcheck for scripts in the in scripts/ directory. Closes
8192       ticket 28058.
8193     - Add unit tests for tokenize_string() and get_next_token()
8194       functions. Resolves ticket 27625.
8196   o Code simplification and refactoring (onion service v3):
8197     - Consolidate the authorized client descriptor cookie computation
8198       code from client and service into one function. Closes
8199       ticket 27549.
8201   o Code simplification and refactoring (shell scripts):
8202     - Cleanup scan-build.sh to silence shellcheck warnings. Closes
8203       ticket 28007.
8204     - Fix issues that shellcheck found in chutney-git-bisect.sh.
8205       Resolves ticket 28006.
8206     - Fix issues that shellcheck found in updateRustDependencies.sh.
8207       Resolves ticket 28012.
8208     - Fix shellcheck warnings in cov-diff script. Resolves issue 28009.
8209     - Fix shellcheck warnings in run_calltool.sh. Resolves ticket 28011.
8210     - Fix shellcheck warnings in run_trunnel.sh. Resolves issue 28010.
8211     - Fix shellcheck warnings in scripts/test/coverage. Resolves
8212       issue 28008.
8215 Changes in version 0.3.3.11 - 2019-01-07
8216   Tor 0.3.3.11 backports numerous fixes from later versions of Tor.
8217   numerous fixes, including an important fix for anyone using OpenSSL
8218   1.1.1. Anyone running an earlier version of Tor 0.3.3 should upgrade
8219   to this version, or to a later series.
8221   As a reminder, support the Tor 0.3.3 series will end on 22 Feb 2019.
8222   We anticipate that this will be the last release of Tor 0.3.3, unless
8223   some major bug is before then. Some time between now and then, users
8224   should switch to either the Tor 0.3.4 series (supported until at least
8225   10 June 2019), or the Tor 0.3.5 series, which will receive long-term
8226   support until at least 1 Feb 2022.
8228   o Major bugfixes (OpenSSL, portability, backport from 0.3.5.5-alpha):
8229     - Fix our usage of named groups when running as a TLS 1.3 client in
8230       OpenSSL 1.1.1. Previously, we only initialized EC groups when
8231       running as a relay, which caused clients to fail to negotiate TLS
8232       1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3
8233       support was added).
8235   o Major bugfixes (restart-in-process, backport from 0.3.5.1-alpha):
8236     - Fix a use-after-free error that could be caused by passing Tor an
8237       impossible set of options that would fail during options_act().
8238       Fixes bug 27708; bugfix on 0.3.3.1-alpha.
8240   o Minor features (continuous integration, backport from 0.3.5.1-alpha):
8241     - Only run one online rust build in Travis, to reduce network
8242       errors. Skip offline rust builds on Travis for Linux gcc, because
8243       they're redundant. Implements ticket 27252.
8244     - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a
8245       duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on
8246       Linux with default settings, because all the non-default builds
8247       use gcc on Linux. Implements ticket 27252.
8249   o Minor features (continuous integration, backport from 0.3.5.3-alpha):
8250     - Use the Travis Homebrew addon to install packages on macOS during
8251       Travis CI. The package list is the same, but the Homebrew addon
8252       does not do a `brew update` by default. Implements ticket 27738.
8254   o Minor features (fallback directory list, backport from 0.3.5.6-rc):
8255     - Replace the 150 fallbacks originally introduced in Tor
8256       0.3.3.1-alpha in January 2018 (of which ~115 were still
8257       functional), with a list of 157 fallbacks (92 new, 65 existing, 85
8258       removed) generated in December 2018. Closes ticket 24803.
8260   o Minor features (geoip):
8261     - Update geoip and geoip6 to the January 3 2019 Maxmind GeoLite2
8262       Country database. Closes ticket 29012.
8264   o Minor features (OpenSSL bug workaround, backport from 0.3.5.7):
8265     - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3
8266       key export function from handling long labels. When this bug is
8267       detected, Tor will disable TLS 1.3. We recommend upgrading to a
8268       version of OpenSSL without this bug when it becomes available.
8269       Closes ticket 28973.
8271   o Minor bugfixes (relay statistics, backport from 0.3.5.7):
8272     - Update relay descriptor on bandwidth changes only when the uptime
8273       is smaller than 24h, in order to reduce the efficiency of guard
8274       discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha.
8276   o Minor bugfixes (C correctness, backport from 0.3.5.4-alpha):
8277     - Avoid undefined behavior in an end-of-string check when parsing
8278       the BEGIN line in a directory object. Fixes bug 28202; bugfix
8279       on 0.2.0.3-alpha.
8281   o Minor bugfixes (code safety, backport from 0.3.5.3-alpha):
8282     - Rewrite our assertion macros so that they no longer suppress the
8283       compiler's -Wparentheses warnings. Fixes bug 27709; bugfix
8285   o Minor bugfixes (compilation, backport from 0.3.5.5-alpha):
8286     - Initialize a variable unconditionally in aes_new_cipher(), since
8287       some compilers cannot tell that we always initialize it before
8288       use. Fixes bug 28413; bugfix on 0.2.9.3-alpha.
8290   o Minor bugfixes (directory authority, backport from 0.3.5.4-alpha):
8291     - Log additional info when we get a relay that shares an ed25519 ID
8292       with a different relay, instead making a BUG() warning. Fixes bug
8293       27800; bugfix on 0.3.2.1-alpha.
8295   o Minor bugfixes (directory permissions, backport form 0.3.5.3-alpha):
8296     - When a user requests a group-readable DataDirectory, give it to
8297       them. Previously, when the DataDirectory and the CacheDirectory
8298       were the same, the default setting (0) for
8299       CacheDirectoryGroupReadable would override the setting for
8300       DataDirectoryGroupReadable. Fixes bug 26913; bugfix
8301       on 0.3.3.1-alpha.
8303   o Minor bugfixes (onion service v3, backport from 0.3.5.1-alpha):
8304     - When the onion service directory can't be created or has the wrong
8305       permissions, do not log a stack trace. Fixes bug 27335; bugfix
8306       on 0.3.2.1-alpha.
8308   o Minor bugfixes (onion service v3, backport from 0.3.5.2-alpha):
8309     - Close all SOCKS request (for the same .onion) if the newly fetched
8310       descriptor is unusable. Before that, we would close only the first
8311       one leaving the other hanging and let to time out by themselves.
8312       Fixes bug 27410; bugfix on 0.3.2.1-alpha.
8314   o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha):
8315     - Don't warn so loudly when Tor is unable to decode an onion
8316       descriptor. This can now happen as a normal use case if a client
8317       gets a descriptor with client authorization but the client is not
8318       authorized. Fixes bug 27550; bugfix on 0.3.5.1-alpha.
8320   o Minor bugfixes (onion service v3, backport from 0.3.5.6-rc):
8321     - When deleting an ephemeral onion service (DEL_ONION), do not close
8322       any rendezvous circuits in order to let the existing client
8323       connections finish by themselves or closed by the application. The
8324       HS v2 is doing that already so now we have the same behavior for
8325       all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha.
8327   o Minor bugfixes (HTTP tunnel):
8328     - Fix a bug warning when closing an HTTP tunnel connection due to
8329       an HTTP request we couldn't handle. Fixes bug 26470; bugfix on
8330       0.3.2.1-alpha.
8332   o Minor bugfixes (memory leaks, backport from 0.3.5.5-alpha):
8333     - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419;
8334       bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger.
8336   o Minor bugfixes (netflow padding, backport from 0.3.5.1-alpha):
8337     - Ensure circuitmux queues are empty before scheduling or sending
8338       padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha.
8340   o Minor bugfixes (protover, backport from 0.3.5.3-alpha):
8341     - Reject protocol names containing bytes other than alphanumeric
8342       characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix
8343       on 0.2.9.4-alpha.
8345   o Minor bugfixes (rust, backport from 0.3.5.1-alpha):
8346     - Compute protover votes correctly in the rust version of the
8347       protover code. Previously, the protover rewrite in 24031 allowed
8348       repeated votes from the same voter for the same protocol version
8349       to be counted multiple times in protover_compute_vote(). Fixes bug
8350       27649; bugfix on 0.3.3.5-rc.
8351     - Reject protover names that contain invalid characters. Fixes bug
8352       27687; bugfix on 0.3.3.1-alpha.
8354   o Minor bugfixes (rust, backport from 0.3.5.2-alpha):
8355     - protover_all_supported() would attempt to allocate up to 16GB on
8356       some inputs, leading to a potential memory DoS. Fixes bug 27206;
8357       bugfix on 0.3.3.5-rc.
8359   o Minor bugfixes (rust, backport from 0.3.5.4-alpha):
8360     - Fix a potential null dereference in protover_all_supported(). Add
8361       a test for it. Fixes bug 27804; bugfix on 0.3.3.1-alpha.
8362     - Return a string that can be safely freed by C code, not one
8363       created by the rust allocator, in protover_all_supported(). Fixes
8364       bug 27740; bugfix on 0.3.3.1-alpha.
8365     - Fix an API mismatch in the rust implementation of
8366       protover_compute_vote(). This bug could have caused crashes on any
8367       directory authorities running Tor with Rust (which we do not yet
8368       recommend). Fixes bug 27741; bugfix on 0.3.3.6.
8370   o Minor bugfixes (testing, backport from 0.3.5.1-alpha):
8371     - If a unit test running in a subprocess exits abnormally or with a
8372       nonzero status code, treat the test as having failed, even if the
8373       test reported success. Without this fix, memory leaks don't cause
8374       the tests to fail, even with LeakSanitizer. Fixes bug 27658;
8375       bugfix on 0.2.2.4-alpha.
8377   o Minor bugfixes (testing, backport from 0.3.5.4-alpha):
8378     - Treat backtrace test failures as expected on BSD-derived systems
8379       (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808.
8380       (FreeBSD failures have been treated as expected since 18204 in
8381       0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha.
8383   o Minor bugfixes (unit tests, guard selection, backport from 0.3.5.6-rc):
8384     - Stop leaking memory in an entry guard unit test. Fixes bug 28554;
8385       bugfix on 0.3.0.1-alpha.
8388 Changes in version 0.3.4.10 - 2019-01-07
8389   Tor 0.3.4.9 is the second stable release in its series; it backports
8390   numerous fixes, including an important fix for relays, and for anyone
8391   using OpenSSL 1.1.1. Anyone running an  earlier version of Tor 0.3.4
8392   should upgrade.
8394   As a reminder, the Tor 0.3.4 series will be supported until 10 June
8395   2019. Some time between now and then, users should switch to the Tor
8396   0.3.5 series, which will receive long-term support until at least 1
8397   Feb 2022.
8399   o Major bugfixes (OpenSSL, portability, backport from 0.3.5.5-alpha):
8400     - Fix our usage of named groups when running as a TLS 1.3 client in
8401       OpenSSL 1.1.1. Previously, we only initialized EC groups when
8402       running as a relay, which caused clients to fail to negotiate TLS
8403       1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3
8404       support was added).
8406   o Major bugfixes (relay, directory, backport from 0.3.5.7):
8407     - Always reactivate linked connections in the main loop so long as
8408       any linked connection has been active. Previously, connections
8409       serving directory information wouldn't get reactivated after the
8410       first chunk of data was sent (usually 32KB), which would prevent
8411       clients from bootstrapping. Fixes bug 28912; bugfix on
8412       0.3.4.1-alpha. Patch by "cypherpunks3".
8414   o Minor features (continuous integration, Windows, backport from 0.3.5.6-rc):
8415     - Always show the configure and test logs, and upload them as build
8416       artifacts, when building for Windows using Appveyor CI.
8417       Implements 28459.
8419   o Minor features (controller, backport from 0.3.5.1-alpha):
8420     - For purposes of CIRC_BW-based dropped cell detection, track half-
8421       closed stream ids, and allow their ENDs, SENDMEs, DATA and path
8422       bias check cells to arrive without counting it as dropped until
8423       either the END arrives, or the windows are empty. Closes
8424       ticket 25573.
8426   o Minor features (fallback directory list, backport from 0.3.5.6-rc):
8427     - Replace the 150 fallbacks originally introduced in Tor
8428       0.3.3.1-alpha in January 2018 (of which ~115 were still
8429       functional), with a list of 157 fallbacks (92 new, 65 existing, 85
8430       removed) generated in December 2018. Closes ticket 24803.
8432   o Minor features (geoip):
8433     - Update geoip and geoip6 to the November 6 2018 Maxmind GeoLite2
8434       Country database. Closes ticket 28395.
8436   o Minor features (OpenSSL bug workaround, backport from 0.3.5.7):
8437     - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3
8438       key export function from handling long labels. When this bug is
8439       detected, Tor will disable TLS 1.3. We recommend upgrading to a
8440       version of OpenSSL without this bug when it becomes available.
8441       Closes ticket 28973.
8443   o Minor bugfixes (compilation, backport from 0.3.5.5-alpha):
8444     - Initialize a variable unconditionally in aes_new_cipher(), since
8445       some compilers cannot tell that we always initialize it before
8446       use. Fixes bug 28413; bugfix on 0.2.9.3-alpha.
8448   o Minor bugfixes (connection, relay, backport from 0.3.5.5-alpha):
8449     - Avoid a logging a BUG() stacktrace when closing connection held
8450       open because the write side is rate limited but not the read side.
8451       Now, the connection read side is simply shut down until Tor is
8452       able to flush the connection and close it. Fixes bug 27750; bugfix
8453       on 0.3.4.1-alpha.
8455   o Minor bugfixes (continuous integration, Windows, backport from 0.3.5.5-alpha):
8456     - Manually configure the zstd compiler options, when building using
8457       mingw on Appveyor Windows CI. The MSYS2 mingw zstd package does
8458       not come with a pkg-config file. Fixes bug 28454; bugfix
8459       on 0.3.4.1-alpha.
8460     - Stop using an external OpenSSL install, and stop installing MSYS2
8461       packages, when building using mingw on Appveyor Windows CI. Fixes
8462       bug 28399; bugfix on 0.3.4.1-alpha.
8464   o Minor bugfixes (continuous integration, Windows, backport from 0.3.5.6-rc):
8465     - Explicitly specify the path to the OpenSSL library and do not
8466       download OpenSSL from Pacman, but instead use the library that is
8467       already provided by AppVeyor. Fixes bug 28574; bugfix on master.
8469   o Minor bugfixes (directory permissions, backport form 0.3.5.3-alpha):
8470     - When a user requests a group-readable DataDirectory, give it to
8471       them. Previously, when the DataDirectory and the CacheDirectory
8472       were the same, the default setting (0) for
8473       CacheDirectoryGroupReadable would override the setting for
8474       DataDirectoryGroupReadable. Fixes bug 26913; bugfix
8475       on 0.3.3.1-alpha.
8477   o Minor bugfixes (memory leaks, backport from 0.3.5.5-alpha):
8478     - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419;
8479       bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger.
8481   o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha):
8482     - Don't warn so loudly when Tor is unable to decode an onion
8483       descriptor. This can now happen as a normal use case if a client
8484       gets a descriptor with client authorization but the client is not
8485       authorized. Fixes bug 27550; bugfix on 0.3.5.1-alpha.
8487   o Minor bugfixes (onion service v3, backport from 0.3.5.6-rc):
8488     - When deleting an ephemeral onion service (DEL_ONION), do not close
8489       any rendezvous circuits in order to let the existing client
8490       connections finish by themselves or closed by the application. The
8491       HS v2 is doing that already so now we have the same behavior for
8492       all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha.
8494   o Minor bugfixes (relay statistics, backport from 0.3.5.7):
8495     - Update relay descriptor on bandwidth changes only when the uptime
8496       is smaller than 24h, in order to reduce the efficiency of guard
8497       discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha.
8499   o Minor bugfixes (unit tests, guard selection, backport from 0.3.5.6-rc):
8500     - Stop leaking memory in an entry guard unit test. Fixes bug 28554;
8501       bugfix on 0.3.0.1-alpha.
8504 Changes in version 0.3.5.7 - 2019-01-07
8505   Tor 0.3.5.7 is the first stable release in its series; it includes
8506   compilation and portability fixes, and a fix for a severe problem
8507   affecting directory caches.
8509   The Tor 0.3.5 series includes several new features and performance
8510   improvements, including client authorization for v3 onion services,
8511   cleanups to bootstrap reporting, support for improved bandwidth-
8512   measurement tools, experimental support for NSS in place of OpenSSL,
8513   and much more. It also begins a full reorganization of Tor's code
8514   layout, for improved modularity and maintainability in the future.
8515   Finally, there is the usual set of performance improvements and
8516   bugfixes that we try to do in every release series.
8518   There are a couple of changes in the 0.3.5 that may affect
8519   compatibility. First, the default version for newly created onion
8520   services is now v3. Use the HiddenServiceVersion option if you want to
8521   override this. Second, some log messages related to bootstrapping have
8522   changed; if you use stem, you may need to update to the latest version
8523   so it will recognize them.
8525   We have designated 0.3.5 as a "long-term support" (LTS) series: we
8526   will continue to patch major bugs in typical configurations of 0.3.5
8527   until at least 1 Feb 2022. (We do not plan to provide long-term
8528   support for embedding, Rust support, NSS support, running a directory
8529   authority, or unsupported platforms. For these, you will need to stick
8530   with the latest stable release.)
8532   Below are the changes since 0.3.5.6-rc. For a complete list of changes
8533   since 0.3.4.9, see the ReleaseNotes file.
8535   o Major bugfixes (relay, directory):
8536     - Always reactivate linked connections in the main loop so long as
8537       any linked connection has been active. Previously, connections
8538       serving directory information wouldn't get reactivated after the
8539       first chunk of data was sent (usually 32KB), which would prevent
8540       clients from bootstrapping. Fixes bug 28912; bugfix on
8541       0.3.4.1-alpha. Patch by "cypherpunks3".
8543   o Minor features (compilation):
8544     - When possible, place our warning flags in a separate file, to
8545       avoid flooding verbose build logs. Closes ticket 28924.
8547   o Minor features (geoip):
8548     - Update geoip and geoip6 to the January 3 2019 Maxmind GeoLite2
8549       Country database. Closes ticket 29012.
8551   o Minor features (OpenSSL bug workaround):
8552     - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3
8553       key export function from handling long labels. When this bug is
8554       detected, Tor will disable TLS 1.3. We recommend upgrading to a
8555       version of OpenSSL without this bug when it becomes available.
8556       Closes ticket 28973.
8558   o Minor features (performance):
8559     - Remove about 96% of the work from the function that we run at
8560       startup to test our curve25519_basepoint implementation. Since
8561       this function has yet to find an actual failure, we now only run
8562       it for 8 iterations instead of 200. Based on our profile
8563       information, this change should save around 8% of our startup time
8564       on typical desktops, and may have a similar effect on other
8565       platforms. Closes ticket 28838.
8566     - Stop re-validating our hardcoded Diffie-Hellman parameters on
8567       every startup. Doing this wasted time and cycles, especially on
8568       low-powered devices. Closes ticket 28851.
8570   o Minor bugfixes (compilation):
8571     - Fix compilation for Android by adding a missing header to
8572       freespace.c. Fixes bug 28974; bugfix on 0.3.5.1-alpha.
8574   o Minor bugfixes (correctness):
8575     - Fix an unreached code path where we checked the value of
8576       "hostname" inside send_resolved_hostname_cell(). Previously, we
8577       used it before checking it; now we check it first. Fixes bug
8578       28879; bugfix on 0.1.2.7-alpha.
8580   o Minor bugfixes (testing):
8581     - Make sure that test_rebind.py actually obeys its timeout, even
8582       when it receives a large number of log messages. Fixes bug 28883;
8583       bugfix on 0.3.5.4-alpha.
8584     - Stop running stem's unit tests as part of "make test-stem", but
8585       continue to run stem's unit and online tests during "make test-
8586       stem-full". Fixes bug 28568; bugfix on 0.2.6.3-alpha.
8588   o Minor bugfixes (windows services):
8589     - Make Tor start correctly as an NT service again: previously it was
8590       broken by refactoring. Fixes bug 28612; bugfix on 0.3.5.3-alpha.
8592   o Code simplification and refactoring:
8593     - When parsing a port configuration, make it more obvious to static
8594       analyzer tools that we always initialize the address. Closes
8595       ticket 28881.
8598 Changes in version 0.3.5.6-rc - 2018-12-18
8599   Tor 0.3.5.6-rc fixes numerous small bugs in earlier versions of Tor.
8600   It is the first release candidate in the 0.3.5.x series; if no further
8601   huge bugs are found, our next release may be the stable 0.3.5.x.
8603   o Minor features (continuous integration, Windows):
8604     - Always show the configure and test logs, and upload them as build
8605       artifacts, when building for Windows using Appveyor CI.
8606       Implements 28459.
8608   o Minor features (fallback directory list):
8609     - Replace the 150 fallbacks originally introduced in Tor
8610       0.3.3.1-alpha in January 2018 (of which ~115 were still
8611       functional), with a list of 157 fallbacks (92 new, 65 existing, 85
8612       removed) generated in December 2018. Closes ticket 24803.
8614   o Minor features (geoip):
8615     - Update geoip and geoip6 to the December 5 2018 Maxmind GeoLite2
8616       Country database. Closes ticket 28744.
8618   o Minor bugfixes (compilation):
8619     - Add missing dependency on libgdi32.dll for tor-print-ed-signing-
8620       cert.exe on Windows. Fixes bug 28485; bugfix on 0.3.5.1-alpha.
8622   o Minor bugfixes (continuous integration, Windows):
8623     - Explicitly specify the path to the OpenSSL library and do not
8624       download OpenSSL from Pacman, but instead use the library that is
8625       already provided by AppVeyor. Fixes bug 28574; bugfix on master.
8627   o Minor bugfixes (onion service v3):
8628     - When deleting an ephemeral onion service (DEL_ONION), do not close
8629       any rendezvous circuits in order to let the existing client
8630       connections finish by themselves or closed by the application. The
8631       HS v2 is doing that already so now we have the same behavior for
8632       all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha.
8634   o Minor bugfixes (restart-in-process, boostrap):
8635     - Add missing resets of bootstrap tracking state when shutting down
8636       (regression caused by ticket 27169). Fixes bug 28524; bugfix
8637       on 0.3.5.1-alpha.
8639   o Minor bugfixes (testing):
8640     - Use a separate DataDirectory for the test_rebind script.
8641       Previously, this script would run using the default DataDirectory,
8642       and sometimes fail. Fixes bug 28562; bugfix on 0.3.5.1-alpha.
8643       Patch from Taylor R Campbell.
8644     - Stop leaking memory in an entry guard unit test. Fixes bug 28554;
8645       bugfix on 0.3.0.1-alpha.
8647   o Minor bugfixes (Windows):
8648     - Correctly identify Windows 8.1, Windows 10, and Windows Server
8649       2008 and later from their NT versions. Fixes bug 28096; bugfix on
8650       0.2.2.34; reported by Keifer Bly.
8651     - On recent Windows versions, the GetVersionEx() function may report
8652       an earlier Windows version than the running OS. To avoid user
8653       confusion, add "[or later]" to Tor's version string on affected
8654       versions of Windows. Fixes bug 28096; bugfix on 0.2.2.34; reported
8655       by Keifer Bly.
8656     - Remove Windows versions that were never supported by the
8657       GetVersionEx() function. Stop duplicating the latest Windows
8658       version in get_uname(). Fixes bug 28096; bugfix on 0.2.2.34;
8659       reported by Keifer Bly.
8661   o Testing:
8662     - Increase logging and tag all log entries with timestamps in
8663       test_rebind.py. Provides diagnostics for issue 28229.
8665   o Code simplification and refactoring (shared random, dirauth):
8666     - Change many tor_assert() to use BUG() instead. The idea is to not
8667       crash a dirauth but rather scream loudly with a stacktrace and let
8668       it continue run. The shared random subsystem is very resilient and
8669       if anything wrong happens with it, at worst a non coherent value
8670       will be put in the vote and discarded by the other authorities.
8671       Closes ticket 19566.
8673   o Documentation (onion services):
8674     - Document in the man page that changing ClientOnionAuthDir value or
8675       adding a new file in the directory will not work at runtime upon
8676       sending a HUP if Sandbox 1. Closes ticket 28128.
8677     - Note in the man page that the only real way to fully revoke an
8678       onion service v3 client authorization is by restarting the tor
8679       process. Closes ticket 28275.
8682 Changes in version 0.3.5.5-alpha - 2018-11-16
8683   Tor 0.3.5.5-alpha includes numerous bugfixes on earlier releases,
8684   including several that we hope to backport to older release series in
8685   the future.
8687   o Major bugfixes (OpenSSL, portability):
8688     - Fix our usage of named groups when running as a TLS 1.3 client in
8689       OpenSSL 1.1.1. Previously, we only initialized EC groups when
8690       running as a relay, which caused clients to fail to negotiate TLS
8691       1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3
8692       support was added).
8694   o Minor features (geoip):
8695     - Update geoip and geoip6 to the November 6 2018 Maxmind GeoLite2
8696       Country database. Closes ticket 28395.
8698   o Minor bugfixes (compilation):
8699     - Initialize a variable unconditionally in aes_new_cipher(), since
8700       some compilers cannot tell that we always initialize it before
8701       use. Fixes bug 28413; bugfix on 0.2.9.3-alpha.
8703   o Minor bugfixes (connection, relay):
8704     - Avoid a logging a BUG() stacktrace when closing connection held
8705       open because the write side is rate limited but not the read side.
8706       Now, the connection read side is simply shut down until Tor is
8707       able to flush the connection and close it. Fixes bug 27750; bugfix
8708       on 0.3.4.1-alpha.
8710   o Minor bugfixes (continuous integration, Windows):
8711     - Manually configure the zstd compiler options, when building using
8712       mingw on Appveyor Windows CI. The MSYS2 mingw zstd package does
8713       not come with a pkg-config file. Fixes bug 28454; bugfix
8714       on 0.3.4.1-alpha.
8715     - Stop using an external OpenSSL install, and stop installing MSYS2
8716       packages, when building using mingw on Appveyor Windows CI. Fixes
8717       bug 28399; bugfix on 0.3.4.1-alpha.
8719   o Minor bugfixes (documentation):
8720     - Make Doxygen work again after the code movement in the 0.3.5
8721       source tree. Fixes bug 28435; bugfix on 0.3.5.1-alpha.
8723   o Minor bugfixes (Linux seccomp2 sandbox):
8724     - Permit the "shutdown()" system call, which is apparently used by
8725       OpenSSL under some circumstances. Fixes bug 28183; bugfix
8726       on 0.2.5.1-alpha.
8728   o Minor bugfixes (logging):
8729     - Stop talking about the Named flag in log messages. Clients have
8730       ignored the Named flag since 0.3.2. Fixes bug 28441; bugfix
8731       on 0.3.2.1-alpha.
8733   o Minor bugfixes (memory leaks):
8734     - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419;
8735       bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger.
8737   o Minor bugfixes (onion services):
8738     - On an intro point for a version 3 onion service, stop closing
8739       introduction circuits on an NACK. This lets the client decide
8740       whether to reuse the circuit or discard it. Previously, we closed
8741       intro circuits when sending NACKs. Fixes bug 27841; bugfix on
8742       0.3.2.1-alpha. Patch by Neel Chaunan.
8743     - When replacing a descriptor in the client cache, make sure to
8744       close all client introduction circuits for the old descriptor, so
8745       we don't end up with unusable leftover circuits. Fixes bug 27471;
8746       bugfix on 0.3.2.1-alpha.
8749 Changes in version 0.3.5.4-alpha - 2018-11-08
8750   Tor 0.3.5.4-alpha includes numerous bugfixes on earlier versions and
8751   improves our continuous integration support. It continues our attempts
8752   to stabilize this alpha branch and build it into a foundation for an
8753   acceptable long-term-support release.
8755   o Major bugfixes (compilation, rust):
8756     - Rust tests can now build and run successfully with the
8757       --enable-fragile-hardening option enabled. Doing this currently
8758       requires the rust beta channel; it will be possible with stable
8759       rust once Rust version 1.31 is released. Patch from Alex Crichton.
8760       Fixes bugs 27272, 27273, and 27274. Bugfix on 0.3.1.1-alpha.
8762   o Major bugfixes (embedding, main loop):
8763     - When DisableNetwork becomes set, actually disable periodic events
8764       that are already enabled. (Previously, we would refrain from
8765       enabling new ones, but we would leave the old ones turned on.)
8766       Fixes bug 28348; bugfix on 0.3.4.1-alpha.
8768   o Minor features (continuous integration):
8769     - Add a Travis CI build for --enable-nss on Linux gcc. Closes
8770       ticket 27751.
8771     - Add new CI job to Travis configuration to run stem-based
8772       integration tests. Closes ticket 27913.
8774   o Minor features (Windows, continuous integration):
8775     - Build tor on Windows Server 2012 R2 and Windows Server 2016 using
8776       Appveyor's CI. Closes ticket 28318.
8778   o Minor bugfixes (C correctness, also in 0.3.4.9):
8779     - Avoid undefined behavior in an end-of-string check when parsing
8780       the BEGIN line in a directory object. Fixes bug 28202; bugfix
8781       on 0.2.0.3-alpha.
8783   o Minor bugfixes (compilation):
8784     - Fix a pair of missing headers on OpenBSD. Fixes bug 28303; bugfix
8785       on 0.3.5.1-alpha. Patch from Kris Katterjohn.
8787   o Minor bugfixes (compilation, OpenSolaris):
8788     - Fix compilation on OpenSolaris and its descendants by adding a
8789       missing include to compat_pthreads.c. Fixes bug 27963; bugfix
8790       on 0.3.5.1-alpha.
8792   o Minor bugfixes (configuration):
8793     - Refuse to start with relative file paths and RunAsDaemon set
8794       (regression from the fix for bug 22731). Fixes bug 28298; bugfix
8795       on 0.3.3.1-alpha.
8797   o Minor bugfixes (directory authority, also in 0.3.4.9):
8798     - Log additional info when we get a relay that shares an ed25519 ID
8799       with a different relay, instead of a BUG() warning with a
8800       backtrace. Fixes bug 27800; bugfix on 0.3.2.1-alpha.
8802   o Minor bugfixes (onion service v3):
8803     - Build the service descriptor's signing key certificate before
8804       uploading, so we always have a fresh one: leaving no chances for
8805       it to expire service side. Fixes bug 27838; bugfix
8806       on 0.3.2.1-alpha.
8808   o Minor bugfixes (onion service v3, client authorization):
8809     - Fix an assert() when adding a client authorization for the first
8810       time and then sending a HUP signal to the service. Before that,
8811       Tor would stop abruptly. Fixes bug 27995; bugfix on 0.3.5.1-alpha.
8813   o Minor bugfixes (onion services):
8814     - Unless we have explicitly set HiddenServiceVersion, detect the
8815       onion service version and then look for invalid options.
8816       Previously, we did the reverse, but that broke existing configs
8817       which were pointed to a v2 service and had options like
8818       HiddenServiceAuthorizeClient set. Fixes bug 28127; bugfix on
8819       0.3.5.1-alpha. Patch by Neel Chauhan.
8821   o Minor bugfixes (portability):
8822     - Make the OPE code (which is used for v3 onion services) run
8823       correctly on big-endian platforms. Fixes bug 28115; bugfix
8824       on 0.3.5.1-alpha.
8826   o Minor bugfixes (protover, rust):
8827     - Reject extra commas in version strings. Fixes bug 27197; bugfix
8828       on 0.3.3.3-alpha.
8830   o Minor bugfixes (relay shutdown, systemd):
8831     - Notify systemd of ShutdownWaitLength so it can be set to longer
8832       than systemd's TimeoutStopSec. In Tor's systemd service file, set
8833       TimeoutSec to 60 seconds to allow Tor some time to shut down.
8834       Fixes bug 28113; bugfix on 0.2.6.2-alpha.
8836   o Minor bugfixes (rust, also in 0.3.4.9):
8837     - Fix a potential null dereference in protover_all_supported(). Add
8838       a test for it. Fixes bug 27804; bugfix on 0.3.3.1-alpha.
8839     - Return a string that can be safely freed by C code, not one
8840       created by the rust allocator, in protover_all_supported(). Fixes
8841       bug 27740; bugfix on 0.3.3.1-alpha.
8843   o Minor bugfixes (rust, directory authority, also in 0.3.4.9):
8844     - Fix an API mismatch in the rust implementation of
8845       protover_compute_vote(). This bug could have caused crashes on any
8846       directory authorities running Tor with Rust (which we do not yet
8847       recommend). Fixes bug 27741; bugfix on 0.3.3.6.
8849   o Minor bugfixes (testing):
8850     - Avoid hangs and race conditions in test_rebind.py. Fixes bug
8851       27968; bugfix on 0.3.5.1-alpha.
8853   o Minor bugfixes (testing, also in 0.3.4.9):
8854     - Treat backtrace test failures as expected on BSD-derived systems
8855       (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808.
8856       (FreeBSD failures have been treated as expected since 18204 in
8857       0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha.
8859   o Documentation (onion service manpage):
8860     - Improve HSv3 client authorization by making some options more
8861       explicit and detailed. Closes ticket 28026. Patch by Mike Tigas.
8864 Changes in version 0.3.4.9 - 2018-11-02
8865   Tor 0.3.4.9 is the second stable release in its series; it backports
8866   numerous fixes, including a fix for a bandwidth management bug that
8867   was causing memory exhaustion on relays. Anyone running an earlier
8868   version of Tor 0.3.4.9 should upgrade.
8870   o Major bugfixes (compilation, backport from 0.3.5.3-alpha):
8871     - Fix compilation on ARM (and other less-used CPUs) when compiling
8872       with OpenSSL before 1.1. Fixes bug 27781; bugfix on 0.3.4.1-alpha.
8874   o Major bugfixes (mainloop, bootstrap, backport from 0.3.5.3-alpha):
8875     - Make sure Tor bootstraps and works properly if only the
8876       ControlPort is set. Prior to this fix, Tor would only bootstrap
8877       when a client port was set (Socks, Trans, NATD, DNS or HTTPTunnel
8878       port). Fixes bug 27849; bugfix on 0.3.4.1-alpha.
8880   o Major bugfixes (relay, backport from 0.3.5.3-alpha):
8881     - When our write bandwidth limit is exhausted, stop writing on the
8882       connection. Previously, we had a typo in the code that would make
8883       us stop reading instead, leading to relay connections being stuck
8884       indefinitely and consuming kernel RAM. Fixes bug 28089; bugfix
8885       on 0.3.4.1-alpha.
8887   o Major bugfixes (restart-in-process, backport from 0.3.5.1-alpha):
8888     - Fix a use-after-free error that could be caused by passing Tor an
8889       impossible set of options that would fail during options_act().
8890       Fixes bug 27708; bugfix on 0.3.3.1-alpha.
8892   o Minor features (continuous integration, backport from 0.3.5.1-alpha):
8893     - Don't do a distcheck with --disable-module-dirauth in Travis.
8894       Implements ticket 27252.
8895     - Only run one online rust build in Travis, to reduce network
8896       errors. Skip offline rust builds on Travis for Linux gcc, because
8897       they're redundant. Implements ticket 27252.
8898     - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a
8899       duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on
8900       Linux with default settings, because all the non-default builds
8901       use gcc on Linux. Implements ticket 27252.
8903   o Minor features (continuous integration, backport from 0.3.5.3-alpha):
8904     - Use the Travis Homebrew addon to install packages on macOS during
8905       Travis CI. The package list is the same, but the Homebrew addon
8906       does not do a `brew update` by default. Implements ticket 27738.
8908   o Minor features (geoip):
8909     - Update geoip and geoip6 to the October 9 2018 Maxmind GeoLite2
8910       Country database. Closes ticket 27991.
8912   o Minor bugfixes (32-bit OSX and iOS, timing, backport from 0.3.5.2-alpha):
8913     - Fix an integer overflow bug in our optimized 32-bit millisecond-
8914       difference algorithm for 32-bit Apple platforms. Previously, it
8915       would overflow when calculating the difference between two times
8916       more than 47 days apart. Fixes part of bug 27139; bugfix
8917       on 0.3.4.1-alpha.
8918     - Improve the precision of our 32-bit millisecond difference
8919       algorithm for 32-bit Apple platforms. Fixes part of bug 27139;
8920       bugfix on 0.3.4.1-alpha.
8921     - Relax the tolerance on the mainloop/update_time_jumps test when
8922       running on 32-bit Apple platforms. Fixes part of bug 27139; bugfix
8923       on 0.3.4.1-alpha.
8925   o Minor bugfixes (C correctness, to appear in 0.3.5.4-alpha):
8926     - Avoid undefined behavior in an end-of-string check when parsing
8927       the BEGIN line in a directory object. Fixes bug 28202; bugfix
8928       on 0.2.0.3-alpha.
8930   o Minor bugfixes (CI, appveyor, to appear in 0.3.5.4-alpha):
8931     - Only install the necessary mingw packages during our appveyor
8932       builds. This change makes the build a little faster, and prevents
8933       a conflict with a preinstalled mingw openssl that appveyor now
8934       ships. Fixes bugs 27943 and 27765; bugfix on 0.3.4.2-alpha.
8936   o Minor bugfixes (code safety, backport from 0.3.5.3-alpha):
8937     - Rewrite our assertion macros so that they no longer suppress the
8938       compiler's -Wparentheses warnings. Fixes bug 27709; bugfix
8940   o Minor bugfixes (continuous integration, backport from 0.3.5.1-alpha):
8941     - Stop reinstalling identical packages in our Windows CI. Fixes bug
8942       27464; bugfix on 0.3.4.1-alpha.
8944   o Minor bugfixes (directory authority, to appear in 0.3.5.4-alpha):
8945     - Log additional info when we get a relay that shares an ed25519 ID
8946       with a different relay, instead making a BUG() warning. Fixes bug
8947       27800; bugfix on 0.3.2.1-alpha.
8949   o Minor bugfixes (directory connection shutdown, backport from 0.3.5.1-alpha):
8950     - Avoid a double-close when shutting down a stalled directory
8951       connection. Fixes bug 26896; bugfix on 0.3.4.1-alpha.
8953   o Minor bugfixes (HTTP tunnel, backport from 0.3.5.1-alpha):
8954     - Fix a bug warning when closing an HTTP tunnel connection due to an
8955       HTTP request we couldn't handle. Fixes bug 26470; bugfix
8956       on 0.3.2.1-alpha.
8958   o Minor bugfixes (netflow padding, backport from 0.3.5.1-alpha):
8959     - Ensure circuitmux queues are empty before scheduling or sending
8960       padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha.
8962   o Minor bugfixes (onion service v3, backport from 0.3.5.1-alpha):
8963     - When the onion service directory can't be created or has the wrong
8964       permissions, do not log a stack trace. Fixes bug 27335; bugfix
8965       on 0.3.2.1-alpha.
8967   o Minor bugfixes (onion service v3, backport from 0.3.5.2-alpha):
8968     - Close all SOCKS request (for the same .onion) if the newly fetched
8969       descriptor is unusable. Before that, we would close only the first
8970       one leaving the other hanging and let to time out by themselves.
8971       Fixes bug 27410; bugfix on 0.3.2.1-alpha.
8973   o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha):
8974     - When selecting a v3 rendezvous point, don't only look at the
8975       protover, but also check whether the curve25519 onion key is
8976       present. This way we avoid picking a relay that supports the v3
8977       rendezvous but for which we don't have the microdescriptor. Fixes
8978       bug 27797; bugfix on 0.3.2.1-alpha.
8980   o Minor bugfixes (protover, backport from 0.3.5.3-alpha):
8981     - Reject protocol names containing bytes other than alphanumeric
8982       characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix
8983       on 0.2.9.4-alpha.
8985   o Minor bugfixes (rust, backport from 0.3.5.1-alpha):
8986     - Compute protover votes correctly in the rust version of the
8987       protover code. Previously, the protover rewrite in 24031 allowed
8988       repeated votes from the same voter for the same protocol version
8989       to be counted multiple times in protover_compute_vote(). Fixes bug
8990       27649; bugfix on 0.3.3.5-rc.
8991     - Reject protover names that contain invalid characters. Fixes bug
8992       27687; bugfix on 0.3.3.1-alpha.
8994   o Minor bugfixes (rust, backport from 0.3.5.2-alpha):
8995     - protover_all_supported() would attempt to allocate up to 16GB on
8996       some inputs, leading to a potential memory DoS. Fixes bug 27206;
8997       bugfix on 0.3.3.5-rc.
8999   o Minor bugfixes (rust, directory authority, to appear in 0.3.5.4-alpha):
9000     - Fix an API mismatch in the rust implementation of
9001       protover_compute_vote(). This bug could have caused crashes on any
9002       directory authorities running Tor with Rust (which we do not yet
9003       recommend). Fixes bug 27741; bugfix on 0.3.3.6.
9005   o Minor bugfixes (rust, to appear in 0.3.5.4-alpha):
9006     - Fix a potential null dereference in protover_all_supported(). Add
9007       a test for it. Fixes bug 27804; bugfix on 0.3.3.1-alpha.
9008     - Return a string that can be safely freed by C code, not one
9009       created by the rust allocator, in protover_all_supported(). Fixes
9010       bug 27740; bugfix on 0.3.3.1-alpha.
9012   o Minor bugfixes (testing, backport from 0.3.5.1-alpha):
9013     - If a unit test running in a subprocess exits abnormally or with a
9014       nonzero status code, treat the test as having failed, even if the
9015       test reported success. Without this fix, memory leaks don't cause
9016       the tests to fail, even with LeakSanitizer. Fixes bug 27658;
9017       bugfix on 0.2.2.4-alpha.
9019   o Minor bugfixes (testing, backport from 0.3.5.3-alpha):
9020     - Make the hs_service tests use the same time source when creating
9021       the introduction point and when testing it. Now tests work better
9022       on very slow systems like ARM or Travis. Fixes bug 27810; bugfix
9023       on 0.3.2.1-alpha.
9025   o Minor bugfixes (testing, to appear in 0.3.5.4-alpha):
9026     - Treat backtrace test failures as expected on BSD-derived systems
9027       (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808.
9028       (FreeBSD failures have been treated as expected since 18204 in
9029       0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha.
9032 Changes in version 0.3.5.3-alpha - 2018-10-17
9033   Tor 0.3.5.3-alpha fixes several bugs, mostly from previous 0.3.5.x
9034   versions. One important fix for relays addresses a problem with rate-
9035   limiting code from back in 0.3.4.x: If the fix works out, we'll be
9036   backporting it soon. This release is still an alpha, but we hope it's
9037   getting closer and closer to stability.
9039   o Major features (onion services):
9040     - Version 3 onion services can now use the per-service
9041       HiddenServiceExportCircuitID option to differentiate client
9042       circuits. It communicates with the service by using the HAProxy
9043       protocol to assign virtual IP addresses to inbound client
9044       circuits. Closes ticket 4700. Patch by Mahrud Sayrafi.
9046   o Major bugfixes (compilation):
9047     - Fix compilation on ARM (and other less-used CPUs) when compiling
9048       with OpenSSL before 1.1. Fixes bug 27781; bugfix on 0.3.4.1-alpha.
9050   o Major bugfixes (initialization, crash):
9051     - Fix an assertion crash that would stop Tor from starting up if it
9052       tried to activate a periodic event too early. Fixes bug 27861;
9053       bugfix on 0.3.5.1-alpha.
9055   o Major bugfixes (mainloop, bootstrap):
9056     - Make sure Tor bootstraps and works properly if only the
9057       ControlPort is set. Prior to this fix, Tor would only bootstrap
9058       when a client port was set (Socks, Trans, NATD, DNS or HTTPTunnel
9059       port). Fixes bug 27849; bugfix on 0.3.4.1-alpha.
9061   o Major bugfixes (relay):
9062     - When our write bandwidth limit is exhausted, stop writing on the
9063       connection. Previously, we had a typo in the code that would make
9064       us stop reading instead, leading to relay connections being stuck
9065       indefinitely and consuming kernel RAM. Fixes bug 28089; bugfix
9066       on 0.3.4.1-alpha.
9068   o Minor features (continuous integration):
9069     - Use the Travis Homebrew addon to install packages on macOS during
9070       Travis CI. The package list is the same, but the Homebrew addon
9071       does not do a `brew update` by default. Implements ticket 27738.
9072     - Report what program produced the mysterious core file that we
9073       occasionally see on Travis CI during make distcheck. Closes
9074       ticket 28024.
9076   o Minor features (geoip):
9077     - Update geoip and geoip6 to the October 9 2018 Maxmind GeoLite2
9078       Country database. Closes ticket 27991.
9080   o Minor bugfixes (code safety):
9081     - Rewrite our assertion macros so that they no longer suppress the
9082       compiler's -Wparentheses warnings. Fixes bug 27709; bugfix
9083       on 0.0.6.
9085   o Minor bugfixes (compilation):
9086     - Compile the ed25519-donna code with a correct declaration of
9087       crypto_strongest_rand(). Previously, we built it with one type,
9088       but linked it against another in the unit tests, which caused
9089       compilation failures with LTO enabled. This could have caused
9090       other undefined behavior in the tests. Fixes bug 27728; bugfix
9091       on 0.3.5.1-alpha.
9093   o Minor bugfixes (compilation, netbsd):
9094     - Add a missing include back into procmon.c. Fixes bug 27990; bugfix
9095       on 0.3.5.1-alpha.
9097   o Minor bugfixes (continuous integration, appveyor):
9098     - Install only the necessary mingw packages during our appveyor
9099       builds. This change makes the build a little faster, and prevents
9100       a conflict with a preinstalled mingw openssl that appveyor now
9101       ships. Fixes bugs 27765 and 27943; bugfix on 0.3.4.2-alpha.
9103   o Minor bugfixes (directory permissions):
9104     - When a user requests a group-readable DataDirectory, give it to
9105       them. Previously, when the DataDirectory and the CacheDirectory
9106       were the same, the default setting (0) for
9107       CacheDirectoryGroupReadable would override the setting for
9108       DataDirectoryGroupReadable. Fixes bug 26913; bugfix
9109       on 0.3.3.1-alpha.
9111   o Minor bugfixes (memory leaks):
9112     - Fix a small memory leak when calling Tor with --dump-config. Fixes
9113       bug 27893; bugfix on 0.3.2.1-alpha.
9115   o Minor bugfixes (networking):
9116     - In retry_listeners_ports(), make sure that we're removing a member
9117       of old_conns smartlist at most once. Fixes bug 27808; bugfix
9118       on 0.3.5.1-alpha.
9119     - Refrain from attempting socket rebinding when old and new
9120       listeners are in different address families. Fixes bug 27928;
9121       bugfix on 0.3.5.1-alpha.
9123   o Minor bugfixes (onion service v3):
9124     - Stop dumping a stack trace when trying to connect to an intro
9125       point without having a descriptor for it. Fixes bug 27774; bugfix
9126       on 0.3.2.1-alpha.
9127     - Don't warn so loudly when Tor is unable to decode an onion
9128       descriptor. This can now happen as a normal use case if a client
9129       gets a descriptor with client authorization but the client is not
9130       authorized. Fixes bug 27550; bugfix on 0.3.5.1-alpha.
9131     - When selecting a v3 rendezvous point, don't only look at the
9132       protover, but also check whether the curve25519 onion key is
9133       present. This way we avoid picking a relay that supports the v3
9134       rendezvous but for which we don't have the microdescriptor. Fixes
9135       bug 27797; bugfix on 0.3.2.1-alpha.
9137   o Minor bugfixes (protover):
9138     - Reject protocol names containing bytes other than alphanumeric
9139       characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix
9140       on 0.2.9.4-alpha.
9142   o Minor bugfixes (testing):
9143     - Make the hs_service tests use the same time source when creating
9144       the introduction point and when testing it. Now tests work better
9145       on very slow systems like ARM or Travis. Fixes bug 27810; bugfix
9146       on 0.3.2.1-alpha.
9147     - In test_rebind.py, check if the Python version is in the supported
9148       range. Fixes bug 27675; bugfix on 0.3.5.1-alpha.
9150   o Code simplification and refactoring:
9151     - Divide more large Tor source files -- especially ones that span
9152       multiple areas of functionality -- into smaller parts, including
9153       onion.c and main.c. Closes ticket 26747.
9154     - Divide the "routerparse.c" module into separate modules for each
9155       group of parsed objects. Closes ticket 27924.
9156     - Move protover_rust.c to the same place protover.c was moved to.
9157       Closes ticket 27814.
9158     - Split directory.c into separate pieces for client, server, and
9159       common functionality. Closes ticket 26744.
9160     - Split the non-statistics-related parts from the rephist.c and
9161       geoip.c modules. Closes ticket 27892.
9162     - Split the router.c file into relay-only and shared components, to
9163       help with future modularization. Closes ticket 27864.
9165   o Documentation:
9166     - In the tor-resolve(1) manpage, fix the reference to socks-
9167       extensions.txt by adding a web URL. Resolves ticket 27853.
9168     - Mention that we require Python to be 2.7 or newer for some
9169       integration tests that we ship with Tor. Resolves ticket 27677.
9172 Changes in version 0.3.5.2-alpha - 2018-09-21
9173   Tor 0.3.5.2-alpha fixes several bugs in 0.3.5.1-alpha, including one
9174   that made Tor think it had run out of sockets. Anybody running a relay
9175   or an onion service on 0.3.5.1-alpha should upgrade.
9177   o Major bugfixes (relay bandwidth statistics):
9178     - When we close relayed circuits, report the data in the circuit
9179       queues as being written in our relay bandwidth stats. This
9180       mitigates guard discovery and other attacks that close circuits
9181       for the explicit purpose of noticing this discrepancy in
9182       statistics. Fixes bug 23512; bugfix on 0.0.8pre3.
9184   o Major bugfixes (socket accounting):
9185     - In our socket accounting code, count a socket as closed even when
9186       it is closed indirectly by the TLS layer. Previously, we would
9187       count these sockets as still in use, and incorrectly believe that
9188       we had run out of sockets. Fixes bug 27795; bugfix
9189       on 0.3.5.1-alpha.
9191   o Minor bugfixes (32-bit OSX and iOS, timing):
9192     - Fix an integer overflow bug in our optimized 32-bit millisecond-
9193       difference algorithm for 32-bit Apple platforms. Previously, it
9194       would overflow when calculating the difference between two times
9195       more than 47 days apart. Fixes part of bug 27139; bugfix
9196       on 0.3.4.1-alpha.
9197     - Improve the precision of our 32-bit millisecond difference
9198       algorithm for 32-bit Apple platforms. Fixes part of bug 27139;
9199       bugfix on 0.3.4.1-alpha.
9200     - Relax the tolerance on the mainloop/update_time_jumps test when
9201       running on 32-bit Apple platforms. Fixes part of bug 27139; bugfix
9202       on 0.3.4.1-alpha.
9204   o Minor bugfixes (onion service v3):
9205     - Close all SOCKS request (for the same .onion) if the newly fetched
9206       descriptor is unusable. Before that, we would close only the first
9207       one leaving the other hanging and let to time out by themselves.
9208       Fixes bug 27410; bugfix on 0.3.2.1-alpha.
9210   o Minor bugfixes (memory leak):
9211     - Fix an unlikely memory leak when trying to read a private key from
9212       a ridiculously large file. Fixes bug 27764; bugfix on
9213       0.3.5.1-alpha. This is CID 1439488.
9215   o Minor bugfixes (NSS):
9216     - Correctly detect failure to open a dummy TCP socket when stealing
9217       ownership of an fd from the NSS layer. Fixes bug 27782; bugfix
9218       on 0.3.5.1-alpha.
9220   o Minor bugfixes (rust):
9221     - protover_all_supported() would attempt to allocate up to 16GB on
9222       some inputs, leading to a potential memory DoS. Fixes bug 27206;
9223       bugfix on 0.3.3.5-rc.
9225   o Minor bugfixes (testing):
9226     - Revise the "conditionvar_timeout" test so that it succeeds even on
9227       heavily loaded systems where the test threads are not scheduled
9228       within 200 msec. Fixes bug 27073; bugfix on 0.2.6.3-alpha.
9230   o Code simplification and refactoring:
9231     - Divide the routerlist.c and dirserv.c modules into smaller parts.
9232       Closes ticket 27799.
9235 Changes in version 0.3.5.1-alpha - 2018-09-18
9236   Tor 0.3.5.1-alpha is the first release of the 0.3.5.x series. It adds
9237   client authorization for modern (v3) onion services, improves
9238   bootstrap reporting, begins reorganizing Tor's codebase, adds optional
9239   support for NSS in place of OpenSSL, and much more.
9241   o Major features (onion services, UI change):
9242     - For a newly created onion service, the default version is now 3.
9243       Tor still supports existing version 2 services, but the operator
9244       now needs to set "HiddenServiceVersion 2" in order to create a new
9245       version 2 service. For existing services, Tor now learns the
9246       version by reading the key file. Closes ticket 27215.
9248   o Major features (relay, UI change):
9249     - Relays no longer run as exits by default. If the "ExitRelay"
9250       option is auto (or unset), and no exit policy is specified with
9251       ExitPolicy or ReducedExitPolicy, we now treat ExitRelay as 0.
9252       Previously in this case, we allowed exit traffic and logged a
9253       warning message. Closes ticket 21530. Patch by Neel Chauhan.
9254     - Tor now validates that the ContactInfo config option is valid UTF-
9255       8 when parsing torrc. Closes ticket 27428.
9257   o Major features (bootstrap):
9258     - Don't report directory progress until after a connection to a
9259       relay or bridge has succeeded. Previously, we'd report 80%
9260       progress based on cached directory information when we couldn't
9261       even connect to the network. Closes ticket 27169.
9263   o Major features (new code layout):
9264     - Nearly all of Tor's source code has been moved around into more
9265       logical places. The "common" directory is now divided into a set
9266       of libraries in "lib", and files in the "or" directory have been
9267       split into "core" (logic absolutely needed for onion routing),
9268       "feature" (independent modules in Tor), and "app" (to configure
9269       and invoke the rest of Tor). See doc/HACKING/CodeStructure.md for
9270       more information. Closes ticket 26481.
9272       This refactoring is not complete: although the libraries have been
9273       refactored to be acyclic, the main body of Tor is still too
9274       interconnected. We will attempt to improve this in the future.
9276   o Major features (onion services v3):
9277     - Implement onion service client authorization at the descriptor
9278       level: only authorized clients can decrypt a service's descriptor
9279       to find out how to contact it. A new torrc option was added to
9280       control this client side: ClientOnionAuthDir <path>. On the
9281       service side, if the "authorized_clients/" directory exists in the
9282       onion service directory path, client configurations are read from
9283       the files within. See the manpage for more details. Closes ticket
9284       27547. Patch done by Suphanat Chunhapanya (haxxpop).
9285     - Improve revision counter generation in next-gen onion services.
9286       Onion services can now scale by hosting multiple instances on
9287       different hosts without synchronization between them, which was
9288       previously impossible because descriptors would get rejected by
9289       HSDirs. Addresses ticket 25552.
9291   o Major features (portability, cryptography, experimental, TLS):
9292     - Tor now has the option to compile with the NSS library instead of
9293       OpenSSL. This feature is experimental, and we expect that bugs may
9294       remain. It is mainly intended for environments where Tor's
9295       performance is not CPU-bound, and where NSS is already known to be
9296       installed. To try it out, configure Tor with the --enable-nss
9297       flag. Closes tickets 26631, 26815, and 26816.
9299       If you are experimenting with this option and using an old cached
9300       consensus, Tor may fail to start. To solve this, delete your
9301       "cached-consensus" and "cached-microdesc-consensus" files,
9302       (if present), and restart Tor.
9304   o Major bugfixes (directory authority):
9305     - Actually check that the address we get from DirAuthority
9306       configuration line is valid IPv4. Explicitly disallow DirAuthority
9307       address to be a DNS hostname. Fixes bug 26488; bugfix
9308       on 0.1.2.10-rc.
9310   o Major bugfixes (restart-in-process):
9311     - Fix a use-after-free error that could be caused by passing Tor an
9312       impossible set of options that would fail during options_act().
9313       Fixes bug 27708; bugfix on 0.3.3.1-alpha.
9315   o Minor features (admin tools):
9316     - Add a new --key-expiration option to print the expiration date of
9317       the signing cert in an ed25519_signing_cert file. Resolves
9318       issue 19506.
9320   o Minor features (build):
9321     - If you pass the "--enable-pic" option to configure, Tor will try
9322       to tell the compiler to build position-independent code suitable
9323       to link into a dynamic library. (The default remains -fPIE, for
9324       code suitable for a relocatable executable.) Closes ticket 23846.
9326   o Minor features (code correctness, testing):
9327     - Tor's build process now includes a "check-includes" make target to
9328       verify that no module of Tor relies on any headers from a higher-
9329       level module. We hope to use this feature over time to help
9330       refactor our codebase. Closes ticket 26447.
9332   o Minor features (code layout):
9333     - We have a new "lowest-level" error-handling API for use by code
9334       invoked from within the logging module. With this interface, the
9335       logging code is no longer at risk of calling into itself if a
9336       failure occurs while it is trying to log something. Closes
9337       ticket 26427.
9339   o Minor features (compilation):
9340     - Tor's configure script now supports a --with-malloc= option to
9341       select your malloc implementation. Supported options are
9342       "tcmalloc", "jemalloc", "openbsd" (deprecated), and "system" (the
9343       default). Addresses part of ticket 20424. Based on a patch from
9344       Alex Xu.
9346   o Minor features (config):
9347     - The "auto" keyword in torrc is now case-insensitive. Closes
9348       ticket 26663.
9350   o Minor features (continuous integration):
9351     - Don't do a distcheck with --disable-module-dirauth in Travis.
9352       Implements ticket 27252.
9353     - Install libcap-dev and libseccomp2-dev so these optional
9354       dependencies get tested on Travis CI. Closes ticket 26560.
9355     - Only run one online rust build in Travis, to reduce network
9356       errors. Skip offline rust builds on Travis for Linux gcc, because
9357       they're redundant. Implements ticket 27252.
9358     - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a
9359       duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on
9360       Linux with default settings, because all the non-default builds
9361       use gcc on Linux. Implements ticket 27252.
9363   o Minor features (controller):
9364     - Emit CIRC_BW events as soon as we detect that we processed an
9365       invalid or otherwise dropped cell on a circuit. This allows
9366       vanguards and other controllers to react more quickly to dropped
9367       cells. Closes ticket 27678.
9368     - For purposes of CIRC_BW-based dropped cell detection, track half-
9369       closed stream ids, and allow their ENDs, SENDMEs, DATA and path
9370       bias check cells to arrive without counting it as dropped until
9371       either the END arrives, or the windows are empty. Closes
9372       ticket 25573.
9373     - Implement a 'GETINFO md/all' controller command to enable getting
9374       all known microdescriptors. Closes ticket 8323.
9375     - The GETINFO command now support an "uptime" argument, to return
9376       Tor's uptime in seconds. Closes ticket 25132.
9378   o Minor features (denial-of-service avoidance):
9379     - Make our OOM handler aware of the DNS cache so that it doesn't
9380       fill up the memory. This check is important for our DoS mitigation
9381       subsystem. Closes ticket 18642. Patch by Neel Chauhan.
9383   o Minor features (development):
9384     - Tor's makefile now supports running the "clippy" Rust style tool
9385       on our Rust code. Closes ticket 22156.
9387   o Minor features (directory authority):
9388     - There is no longer an artificial upper limit on the length of
9389       bandwidth lines. Closes ticket 26223.
9390     - When a bandwidth file is used to obtain the bandwidth measurements,
9391       include this bandwidth file headers in the votes. Closes
9392       ticket 3723.
9393     - Improved support for networks with only a single authority or a
9394       single fallback directory. Patch from Gabriel Somlo. Closes
9395       ticket 25928.
9397   o Minor features (embedding API):
9398     - The Tor controller API now supports a function to launch Tor with
9399       a preconstructed owning controller FD, so that embedding
9400       applications don't need to manage controller ports and
9401       authentication. Closes ticket 24204.
9402     - The Tor controller API now has a function that returns the name
9403       and version of the backend implementing the API. Closes
9404       ticket 26947.
9406   o Minor features (geoip):
9407     - Update geoip and geoip6 to the September 6 2018 Maxmind GeoLite2
9408       Country database. Closes ticket 27631.
9410   o Minor features (memory management):
9411     - Get Libevent to use the same memory allocator as Tor, by calling
9412       event_set_mem_functions() during initialization. Resolves
9413       ticket 8415.
9415   o Minor features (memory usage):
9416     - When not using them, store legacy TAP public onion keys in DER-
9417       encoded format, rather than as expanded public keys. This should
9418       save several megabytes on typical clients. Closes ticket 27246.
9420   o Minor features (OpenSSL):
9421     - When possible, use RFC5869 HKDF implementation from OpenSSL rather
9422       than our own. Resolves ticket 19979.
9424   o Minor features (Rust, code quality):
9425     - Improve rust code quality in the rust protover implementation by
9426       making it more idiomatic. Includes changing an internal API to
9427       take &str instead of &String. Closes ticket 26492.
9429   o Minor features (testing):
9430     - Add scripts/test/chutney-git-bisect.sh, for bisecting using
9431       chutney. Implements ticket 27211.
9433   o Minor features (tor-resolve):
9434     - The tor-resolve utility can now be used with IPv6 SOCKS proxies.
9435       Side-effect of the refactoring for ticket 26526.
9437   o Minor features (UI):
9438     - Log each included configuration file or directory as we read it,
9439       to provide more visibility about where Tor is reading from. Patch
9440       from Unto Sten; closes ticket 27186.
9441     - Lower log level of "Scheduler type KIST has been enabled" to INFO.
9442       Closes ticket 26703.
9444   o Minor bugfixes (bootstrap):
9445     - Try harder to get descriptors in non-exit test networks, by using
9446       the mid weight for the third hop when there are no exits. Fixes
9447       bug 27237; bugfix on 0.2.6.2-alpha.
9449   o Minor bugfixes (C correctness):
9450     - Avoid casting smartlist index to int implicitly, as it may trigger
9451       a warning (-Wshorten-64-to-32). Fixes bug 26282; bugfix on
9452       0.2.3.13-alpha, 0.2.7.1-alpha and 0.2.1.1-alpha.
9453     - Use time_t for all values in
9454       predicted_ports_prediction_time_remaining(). Rework the code that
9455       computes difference between durations/timestamps. Fixes bug 27165;
9456       bugfix on 0.3.1.1-alpha.
9458   o Minor bugfixes (client, memory usage):
9459     - When not running as a directory cache, there is no need to store
9460       the text of the current consensus networkstatus in RAM.
9461       Previously, however, clients would store it anyway, at a cost of
9462       over 5 MB. Now, they do not. Fixes bug 27247; bugfix
9463       on 0.3.0.1-alpha.
9465   o Minor bugfixes (client, reachableaddresses):
9466     - Instead of adding a "reject *:*" line to ReachableAddresses when
9467       loading the configuration, add one to the policy after parsing it
9468       in parse_reachable_addresses(). This prevents extra "reject *.*"
9469       lines from accumulating on reloads. Fixes bug 20874; bugfix on
9470       0.1.1.5-alpha. Patch by Neel Chauhan.
9472   o Minor bugfixes (code quality):
9473     - Rename sandbox_getaddrinfo() and other functions to no longer
9474       misleadingly suggest that they are sandbox-only. Fixes bug 26525;
9475       bugfix on 0.2.7.1-alpha.
9477   o Minor bugfixes (configuration, Onion Services):
9478     - In rend_service_parse_port_config(), disallow any input to remain
9479       after address-port pair was parsed. This will catch address and
9480       port being whitespace-separated by mistake of the user. Fixes bug
9481       27044; bugfix on 0.2.9.10.
9483   o Minor bugfixes (continuous integration):
9484     - Stop reinstalling identical packages in our Windows CI. Fixes bug
9485       27464; bugfix on 0.3.4.1-alpha.
9487   o Minor bugfixes (controller):
9488     - Consider all routerinfo errors other than "not a server" to be
9489       transient for the purpose of "GETINFO exit-policy/*" controller
9490       request. Print stacktrace in the unlikely case of failing to
9491       recompute routerinfo digest. Fixes bug 27034; bugfix
9492       on 0.3.4.1-alpha.
9494   o Minor bugfixes (directory connection shutdown):
9495     - Avoid a double-close when shutting down a stalled directory
9496       connection. Fixes bug 26896; bugfix on 0.3.4.1-alpha.
9498   o Minor bugfixes (HTTP tunnel):
9499     - Fix a bug warning when closing an HTTP tunnel connection due to an
9500       HTTP request we couldn't handle. Fixes bug 26470; bugfix
9501       on 0.3.2.1-alpha.
9503   o Minor bugfixes (ipv6):
9504     - In addrs_in_same_network_family(), we choose the subnet size based
9505       on the IP version (IPv4 or IPv6). Previously, we chose a fixed
9506       subnet size of /16 for both IPv4 and IPv6 addresses. Fixes bug
9507       15518; bugfix on 0.2.3.1-alpha. Patch by Neel Chauhan.
9509   o Minor bugfixes (logging):
9510     - As a precaution, do an early return from log_addr_has_changed() if
9511       Tor is running as client. Also, log a stack trace for debugging as
9512       this function should only be called when Tor runs as server. Fixes
9513       bug 26892; bugfix on 0.1.1.9-alpha.
9514     - Refrain from mentioning bug 21018 in the logs, as it is already
9515       fixed. Fixes bug 25477; bugfix on 0.2.9.8.
9517   o Minor bugfixes (logging, documentation):
9518     - When SafeLogging is enabled, scrub IP address in
9519       channel_tls_process_netinfo_cell(). Also, add a note to manpage
9520       that scrubbing is not guaranteed on loglevels below Notice. Fixes
9521       bug 26882; bugfix on 0.2.4.10-alpha.
9523   o Minor bugfixes (netflow padding):
9524     - Ensure circuitmux queues are empty before scheduling or sending
9525       padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha.
9527   o Minor bugfixes (onion service v2):
9528     - Log at level "info", not "warning", in the case that we do not
9529       have a consensus when a .onion request comes in. This can happen
9530       normally while bootstrapping. Fixes bug 27040; bugfix
9531       on 0.2.8.2-alpha.
9533   o Minor bugfixes (onion service v3):
9534     - When the onion service directory can't be created or has the wrong
9535       permissions, do not log a stack trace. Fixes bug 27335; bugfix
9536       on 0.3.2.1-alpha.
9538   o Minor bugfixes (OS compatibility):
9539     - Properly handle configuration changes that move a listener to/from
9540       wildcard IP address. If the first attempt to bind a socket fails,
9541       close the old listener and try binding the socket again. Fixes bug
9542       17873; bugfix on 0.0.8pre-1.
9544   o Minor bugfixes (performance)::
9545     - Rework node_is_a_configured_bridge() to no longer call
9546       node_get_all_orports(), which was performing too many memory
9547       allocations. Fixes bug 27224; bugfix on 0.2.3.9.
9549   o Minor bugfixes (relay statistics):
9550     - Update relay descriptor on bandwidth changes only when the uptime
9551       is smaller than 24h, in order to reduce the efficiency of guard
9552       discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha.
9554   o Minor bugfixes (relays):
9555     - Consider the fact that we'll be making direct connections to our
9556       entry and guard nodes when computing the fraction of nodes that
9557       have their descriptors. Also, if we are using bridges and there is
9558       at least one bridge with a full descriptor, treat the fraction of
9559       guards available as 100%. Fixes bug 25886; bugfix on 0.2.4.10-alpha.
9560       Patch by Neel Chauhan.
9561     - Update the message logged on relays when DirCache is disabled.
9562       Since 0.3.3.5-rc, authorities require DirCache (V2Dir) for the
9563       Guard flag. Fixes bug 24312; bugfix on 0.3.3.5-rc.
9565   o Minor bugfixes (rust, protover):
9566     - Compute protover votes correctly in the rust version of the
9567       protover code. Previously, the protover rewrite in 24031 allowed
9568       repeated votes from the same voter for the same protocol version
9569       to be counted multiple times in protover_compute_vote(). Fixes bug
9570       27649; bugfix on 0.3.3.5-rc.
9571     - Reject protover names that contain invalid characters. Fixes bug
9572       27687; bugfix on 0.3.3.1-alpha.
9574   o Minor bugfixes (testing):
9575     - Fix two unit tests to work when HOME environment variable is not
9576       set. Fixes bug 27096; bugfix on 0.2.8.1-alpha.
9577     - If a unit test running in a subprocess exits abnormally or with a
9578       nonzero status code, treat the test as having failed, even if the
9579       test reported success. Without this fix, memory leaks don't cause
9580       the tests to fail, even with LeakSanitizer. Fixes bug 27658;
9581       bugfix on 0.2.2.4-alpha.
9582     - When logging a version mismatch in our openssl_version tests,
9583       report the actual offending version strings. Fixes bug 26152;
9584       bugfix on 0.2.9.1-alpha.
9585     - Fix forking tests on Windows when there is a space somewhere in
9586       the path. Fixes bug 26437; bugfix on 0.2.2.4-alpha.
9588   o Code simplification and refactoring:
9589     - 'updateFallbackDirs.py' now ignores the blacklist file, as it's not
9590       longer needed. Closes ticket 26502.
9591     - Include paths to header files within Tor are now qualified by
9592       directory within the top-level src directory.
9593     - Many structures have been removed from the centralized "or.h"
9594       header, and moved into their own headers. This will allow us to
9595       reduce the number of places in the code that rely on each
9596       structure's contents and layout. Closes ticket 26383.
9597     - Remove ATTR_NONNULL macro from codebase. Resolves ticket 26527.
9598     - Remove GetAdaptersAddresses_fn_t. The code that used it was
9599       removed as part of the 26481 refactor. Closes ticket 27467.
9600     - Rework Tor SOCKS server code to use Trunnel and benefit from
9601       autogenerated functions for parsing and generating SOCKS wire
9602       format. New implementation is cleaner, more maintainable and
9603       should be less prone to heartbleed-style vulnerabilities.
9604       Implements a significant fraction of ticket 3569.
9605     - Split sampled_guards_update_from_consensus() and
9606       select_entry_guard_for_circuit() into subfunctions. In
9607       entry_guards_update_primary() unite three smartlist enumerations
9608       into one and move smartlist comparison code out of the function.
9609       Closes ticket 21349.
9610     - Tor now assumes that you have standards-conformant stdint.h and
9611       inttypes.h headers when compiling. Closes ticket 26626.
9612     - Unify our bloom filter logic. Previously we had two copies of this
9613       code: one for routerlist filtering, and one for address set
9614       calculations. Closes ticket 26510.
9615     - Use the simpler strcmpstart() helper in
9616       rend_parse_v2_service_descriptor instead of strncmp(). Closes
9617       ticket 27630.
9618     - Utility functions that can perform a DNS lookup are now wholly
9619       separated from those that can't, in separate headers and C
9620       modules. Closes ticket 26526.
9622   o Documentation:
9623     - Copy paragraph and URL to Tor's code of conduct document from
9624       CONTRIBUTING to new CODE_OF_CONDUCT file. Resolves ticket 26638.
9625     - Remove old instructions from INSTALL document. Closes ticket 26588.
9626     - Warn users that they should not include MyFamily line(s) in their
9627       torrc when running Tor bridge. Closes ticket 26908.
9629   o Removed features:
9630     - Tor no longer supports building with the dmalloc library. For
9631       debugging memory issues, we suggest using gperftools or msan
9632       instead. Closes ticket 26426.
9633     - Tor no longer attempts to run on Windows environments without the
9634       GetAdaptersAddresses() function. This function has existed since
9635       Windows XP, which is itself already older than we support.
9636     - Remove Tor2web functionality for version 2 onion services. The
9637       Tor2webMode and Tor2webRendezvousPoints options are now obsolete.
9638       (This feature was never shipped in vanilla Tor and it was only
9639       possible to use this feature by building the support at compile
9640       time. Tor2webMode is not implemented for version 3 onion services.)
9641       Closes ticket 26367.
9644 Changes in version 0.2.9.17 - 2018-09-10
9645   Tor 0.2.9.17 backports numerous bugfixes from later versions of Tor.
9647   o Minor features (compatibility, backport from 0.3.4.8):
9648     - Tell OpenSSL to maintain backward compatibility with previous
9649       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
9650       ciphers are disabled by default. Closes ticket 27344.
9652   o Minor features (continuous integration, backport from 0.3.4.7-rc):
9653     - Enable macOS builds in our Travis CI configuration. Closes
9654       ticket 24629.
9655     - Install libcap-dev and libseccomp2-dev so these optional
9656       dependencies get tested on Travis CI. Closes ticket 26560.
9657     - Run asciidoc during Travis CI. Implements ticket 27087.
9658     - Use ccache in our Travis CI configuration. Closes ticket 26952.
9660   o Minor features (geoip):
9661     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
9662       Country database. Closes ticket 27089.
9664   o Minor bugfixes (compilation, backport from 0.3.4.6-rc):
9665     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
9666       tell the compiler not to include the system malloc implementation.
9667       Fixes bug 20424; bugfix on 0.2.0.20-rc.
9669   o Minor bugfixes (compilation, backport from 0.3.4.7-rc):
9670     - Silence a spurious compiler warning on the GetAdaptersAddresses
9671       function pointer cast. This issue is already fixed by 26481 in
9672       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
9673       bugfix on 0.2.3.11-alpha.
9674     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
9675       supported, and always fails. Some compilers warn about the
9676       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
9677       on 0.2.2.23-alpha.
9679   o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc):
9680     - Don't link or search for pthreads when building for Windows, even
9681       if we are using build environment (like mingw) that provides a
9682       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
9684   o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc):
9685     - Skip a pair of unreliable key generation tests on Windows, until
9686       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
9687       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
9689   o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc):
9690     - Pass the module flags to distcheck configure, and log the flags
9691       before running configure. (Backported to 0.2.9 and later as a
9692       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
9694   o Minor bugfixes (continuous integration, backport from 0.3.4.8):
9695     - When a Travis build fails, and showing a log fails, keep trying to
9696       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
9697     - When we use echo in Travis, don't pass a --flag as the first
9698       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
9700   o Minor bugfixes (directory authority, backport from 0.3.4.6-rc):
9701     - When voting for recommended versions, make sure that all of the
9702       versions are well-formed and parsable. Fixes bug 26485; bugfix
9703       on 0.1.1.6-alpha.
9705   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc):
9706     - Fix a bug in out sandboxing rules for the openat() syscall.
9707       Previously, no openat() call would be permitted, which would break
9708       filesystem operations on recent glibc versions. Fixes bug 25440;
9709       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
9711   o Minor bugfixes (onion services, backport from 0.3.4.8):
9712     - Silence a spurious compiler warning in
9713       rend_client_send_introduction(). Fixes bug 27463; bugfix
9714       on 0.1.1.2-alpha.
9716   o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc):
9717     - Log a protocol warning when single onion services or Tor2web clients
9718       fail to authenticate direct connections to relays.
9719       Fixes bug 26924; bugfix on 0.2.9.1-alpha.
9721   o Minor bugfixes (testing, backport from 0.3.4.6-rc):
9722     - Disable core dumps in test_bt.sh, to avoid failures in "make
9723       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
9725   o Minor bugfixes (testing, chutney, backport from 0.3.4.8):
9726     - Before running make test-network-all, delete old logs and test
9727       result files, to avoid spurious failures. Fixes bug 27295; bugfix
9728       on 0.2.7.3-rc.
9730   o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc):
9731     - Our "tortls/cert_matches_key" unit test no longer relies on
9732       OpenSSL internals. Previously, it relied on unsupported OpenSSL
9733       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
9734       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
9736   o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc):
9737     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
9738       27185; bugfix on 0.2.2.2-alpha.
9741 Changes in version 0.3.2.12 - 2018-09-10
9742   Tor 0.3.2.12 backport numerous fixes from later versions of Tor.
9744   o Minor features (compatibility, backport from 0.3.4.8):
9745     - Tell OpenSSL to maintain backward compatibility with previous
9746       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
9747       ciphers are disabled by default. Closes ticket 27344.
9749   o Minor features (continuous integration, backport from 0.3.4.7-rc):
9750     - Enable macOS builds in our Travis CI configuration. Closes
9751       ticket 24629.
9752     - Install libcap-dev and libseccomp2-dev so these optional
9753       dependencies get tested on Travis CI. Closes ticket 26560.
9754     - Run asciidoc during Travis CI. Implements ticket 27087.
9755     - Use ccache in our Travis CI configuration. Closes ticket 26952.
9757   o Minor features (continuous integration, rust, backport from 0.3.4.7-rc):
9758     - Use cargo cache in our Travis CI configuration. Closes
9759       ticket 26952.
9761   o Minor features (controller, backport from 0.3.4.6-rc):
9762     - The control port now exposes the list of HTTPTunnelPorts and
9763       ExtOrPorts via GETINFO net/listeners/httptunnel and
9764       net/listeners/extor respectively. Closes ticket 26647.
9766   o Minor features (directory authorities, backport from 0.3.4.7-rc):
9767     - Authorities no longer vote to make the subprotocol version
9768       "LinkAuth=1" a requirement: it is unsupportable with NSS, and
9769       hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286.
9771   o Minor features (geoip):
9772     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
9773       Country database. Closes ticket 27089.
9775   o Minor bugfixes (compilation, backport from 0.3.4.6-rc):
9776     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
9777       tell the compiler not to include the system malloc implementation.
9778       Fixes bug 20424; bugfix on 0.2.0.20-rc.
9779     - Don't try to use a pragma to temporarily disable the
9780       -Wunused-const-variable warning if the compiler doesn't support
9781       it. Fixes bug 26785; bugfix on 0.3.2.11.
9783   o Minor bugfixes (compilation, backport from 0.3.4.7-rc):
9784     - Silence a spurious compiler warning on the GetAdaptersAddresses
9785       function pointer cast. This issue is already fixed by 26481 in
9786       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
9787       bugfix on 0.2.3.11-alpha.
9788     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
9789       supported, and always fails. Some compilers warn about the
9790       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
9791       on 0.2.2.23-alpha.
9793   o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc):
9794     - Don't link or search for pthreads when building for Windows, even
9795       if we are using build environment (like mingw) that provides a
9796       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
9798   o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc):
9799     - Skip a pair of unreliable key generation tests on Windows, until
9800       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
9801       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
9803   o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc):
9804     - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha.
9805     - Pass the module flags to distcheck configure, and log the flags
9806       before running configure. (Backported to 0.2.9 and later as a
9807       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
9809   o Minor bugfixes (continuous integration, backport from 0.3.4.8):
9810     - When a Travis build fails, and showing a log fails, keep trying to
9811       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
9812     - When we use echo in Travis, don't pass a --flag as the first
9813       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
9815   o Minor bugfixes (directory authority, backport from 0.3.4.6-rc):
9816     - When voting for recommended versions, make sure that all of the
9817       versions are well-formed and parsable. Fixes bug 26485; bugfix
9818       on 0.1.1.6-alpha.
9820   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc):
9821     - Fix a bug in out sandboxing rules for the openat() syscall.
9822       Previously, no openat() call would be permitted, which would break
9823       filesystem operations on recent glibc versions. Fixes bug 25440;
9824       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
9826   o Minor bugfixes (logging, backport from 0.3.4.6-rc):
9827     - Improve the log message when connection initiators fail to
9828       authenticate direct connections to relays. Fixes bug 26927; bugfix
9829       on 0.3.0.1-alpha.
9831   o Minor bugfixes (onion services, backport from 0.3.4.7-rc):
9832     - Fix bug that causes services to not ever rotate their descriptors
9833       if they were getting SIGHUPed often. Fixes bug 26932; bugfix
9834       on 0.3.2.1-alpha.
9836   o Minor bugfixes (onion services, backport from 0.3.4.8):
9837     - Silence a spurious compiler warning in
9838       rend_client_send_introduction(). Fixes bug 27463; bugfix
9839       on 0.1.1.2-alpha.
9841   o Minor bugfixes (rust, backport from 0.3.4.7-rc):
9842     - Backport test_rust.sh from master. Fixes bug 26497; bugfix
9843       on 0.3.1.5-alpha.
9844     - Consistently use ../../.. as a fallback for $abs_top_srcdir in
9845       test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha.
9846     - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or
9847       $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha.
9849   o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc):
9850     - Log a protocol warning when single onion services or Tor2web clients
9851       fail to authenticate direct connections to relays.
9852       Fixes bug 26924; bugfix on 0.2.9.1-alpha.
9854   o Minor bugfixes (testing, backport from 0.3.4.6-rc):
9855     - Disable core dumps in test_bt.sh, to avoid failures in "make
9856       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
9858   o Minor bugfixes (testing, chutney, backport from 0.3.4.8):
9859     - When running make test-network-all, use the mixed+hs-v2 network.
9860       (A previous fix to chutney removed v3 onion services from the
9861       mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is
9862       confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha.
9863     - Before running make test-network-all, delete old logs and test
9864       result files, to avoid spurious failures. Fixes bug 27295; bugfix
9865       on 0.2.7.3-rc.
9867   o Minor bugfixes (testing, openssl compatibility):
9868     - Our "tortls/cert_matches_key" unit test no longer relies on OpenSSL
9869       internals.  Previously, it relied on unsupported OpenSSL behavior in
9870       a way that caused it to crash with OpenSSL 1.0.2p. Fixes bug 27226;
9871       bugfix on 0.2.5.1-alpha.
9873   o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc):
9874     - Our "tortls/cert_matches_key" unit test no longer relies on
9875       OpenSSL internals. Previously, it relied on unsupported OpenSSL
9876       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
9877       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
9879   o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc):
9880     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
9881       27185; bugfix on 0.2.2.2-alpha.
9884 Changes in version 0.3.3.10 - 2018-09-10
9885   Tor 0.3.3.10 backports numerous fixes from later versions of Tor.
9887   o Minor features (bug workaround, backport from 0.3.4.7-rc):
9888     - Compile correctly on systems that provide the C11 stdatomic.h
9889       header, but where C11 atomic functions don't actually compile.
9890       Closes ticket 26779; workaround for Debian issue 903709.
9892   o Minor features (compatibility, backport from 0.3.4.8):
9893     - Tell OpenSSL to maintain backward compatibility with previous
9894       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
9895       ciphers are disabled by default. Closes ticket 27344.
9897   o Minor features (continuous integration, backport from 0.3.4.7-rc):
9898     - Backport Travis rust distcheck to 0.3.3. Closes ticket 24629.
9899     - Enable macOS builds in our Travis CI configuration. Closes
9900       ticket 24629.
9901     - Install libcap-dev and libseccomp2-dev so these optional
9902       dependencies get tested on Travis CI. Closes ticket 26560.
9903     - Run asciidoc during Travis CI. Implements ticket 27087.
9904     - Use ccache in our Travis CI configuration. Closes ticket 26952.
9906   o Minor features (continuous integration, rust, backport from 0.3.4.7-rc):
9907     - Use cargo cache in our Travis CI configuration. Closes
9908       ticket 26952.
9910   o Minor features (controller, backport from 0.3.4.6-rc):
9911     - The control port now exposes the list of HTTPTunnelPorts and
9912       ExtOrPorts via GETINFO net/listeners/httptunnel and
9913       net/listeners/extor respectively. Closes ticket 26647.
9915   o Minor features (directory authorities, backport from 0.3.4.7-rc):
9916     - Authorities no longer vote to make the subprotocol version
9917       "LinkAuth=1" a requirement: it is unsupportable with NSS, and
9918       hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286.
9920   o Minor features (geoip):
9921     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
9922       Country database. Closes ticket 27089.
9924   o Minor bugfixes (compilation, backport from 0.3.4.6-rc):
9925     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
9926       tell the compiler not to include the system malloc implementation.
9927       Fixes bug 20424; bugfix on 0.2.0.20-rc.
9928     - Don't try to use a pragma to temporarily disable the
9929       -Wunused-const-variable warning if the compiler doesn't support
9930       it. Fixes bug 26785; bugfix on 0.3.2.11.
9932   o Minor bugfixes (compilation, backport from 0.3.4.7-rc):
9933     - Silence a spurious compiler warning on the GetAdaptersAddresses
9934       function pointer cast. This issue is already fixed by 26481 in
9935       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
9936       bugfix on 0.2.3.11-alpha.
9937     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
9938       supported, and always fails. Some compilers warn about the
9939       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
9940       on 0.2.2.23-alpha.
9942   o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc):
9943     - Don't link or search for pthreads when building for Windows, even
9944       if we are using build environment (like mingw) that provides a
9945       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
9947   o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc):
9948     - Skip a pair of unreliable key generation tests on Windows, until
9949       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
9950       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
9952   o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc):
9953     - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha.
9954     - Pass the module flags to distcheck configure, and log the flags
9955       before running configure. (Backported to 0.2.9 and later as a
9956       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
9958   o Minor bugfixes (continuous integration, backport from 0.3.4.8):
9959     - When a Travis build fails, and showing a log fails, keep trying to
9960       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
9961     - When we use echo in Travis, don't pass a --flag as the first
9962       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
9964   o Minor bugfixes (directory authority, backport from 0.3.4.6-rc):
9965     - When voting for recommended versions, make sure that all of the
9966       versions are well-formed and parsable. Fixes bug 26485; bugfix
9967       on 0.1.1.6-alpha.
9969   o Minor bugfixes (in-process restart, backport from 0.3.4.7-rc):
9970     - Always call tor_free_all() when leaving tor_run_main(). When we
9971       did not, restarting tor in-process would cause an assertion
9972       failure. Fixes bug 26948; bugfix on 0.3.3.1-alpha.
9974   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc):
9975     - Fix a bug in our sandboxing rules for the openat() syscall.
9976       Previously, no openat() call would be permitted, which would break
9977       filesystem operations on recent glibc versions. Fixes bug 25440;
9978       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
9980   o Minor bugfixes (logging, backport from 0.3.4.6-rc):
9981     - Improve the log message when connection initiators fail to
9982       authenticate direct connections to relays. Fixes bug 26927; bugfix
9983       on 0.3.0.1-alpha.
9985   o Minor bugfixes (onion services, backport from 0.3.4.7-rc):
9986     - Fix bug that causes services to not ever rotate their descriptors
9987       if they were getting SIGHUPed often. Fixes bug 26932; bugfix
9988       on 0.3.2.1-alpha.
9990   o Minor bugfixes (onion services, backport from 0.3.4.8):
9991     - Silence a spurious compiler warning in
9992       rend_client_send_introduction(). Fixes bug 27463; bugfix
9993       on 0.1.1.2-alpha.
9995   o Minor bugfixes (portability, backport from 0.3.4.6-rc):
9996     - Work around two different bugs in the OS X 10.10 and later SDKs
9997       that would prevent us from successfully targeting earlier versions
9998       of OS X. Fixes bug 26876; bugfix on 0.3.3.1-alpha.
10000   o Minor bugfixes (portability, backport from 0.3.4.7-rc):
10001     - Fix compilation of the unit tests on GNU/Hurd, which does not
10002       define PATH_MAX. Fixes bug 26873; bugfix on 0.3.3.1-alpha. Patch
10003       from "paulusASol".
10005   o Minor bugfixes (rust, backport from 0.3.4.7-rc):
10006     - Backport test_rust.sh from master. Fixes bug 26497; bugfix
10007       on 0.3.1.5-alpha.
10008     - Consistently use ../../.. as a fallback for $abs_top_srcdir in
10009       test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha.
10010     - Protover parsing was accepting the presence of whitespace in
10011       version strings, which the C implementation would choke on, e.g.
10012       "Desc=1\t,2". Fixes bug 27177; bugfix on 0.3.3.5-rc.
10013     - Protover parsing was ignoring a 2nd hyphen and everything after
10014       it, accepting entries like "Link=1-5-foo". Fixes bug 27164; bugfix
10015       on 0.3.3.1-alpha.
10016     - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or
10017       $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha.
10018     - cd to ${abs_top_builddir}/src/rust before running cargo in
10019       src/test/test_rust.sh. This makes the working directory consistent
10020       between builds and tests. Fixes bug 26497; bugfix on 0.3.3.2-alpha.
10022   o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc):
10023     - Log a protocol warning when single onion services or Tor2web clients
10024       fail to authenticate direct connections to relays.
10025       Fixes bug 26924; bugfix on 0.2.9.1-alpha.
10027   o Minor bugfixes (testing, backport from 0.3.4.6-rc):
10028     - Disable core dumps in test_bt.sh, to avoid failures in "make
10029       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
10031   o Minor bugfixes (testing, chutney, backport from 0.3.4.8):
10032     - When running make test-network-all, use the mixed+hs-v2 network.
10033       (A previous fix to chutney removed v3 onion services from the
10034       mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is
10035       confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha.
10036     - Before running make test-network-all, delete old logs and test
10037       result files, to avoid spurious failures. Fixes bug 27295; bugfix
10038       on 0.2.7.3-rc.
10040   o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc):
10041     - Our "tortls/cert_matches_key" unit test no longer relies on
10042       OpenSSL internals. Previously, it relied on unsupported OpenSSL
10043       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
10044       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
10046   o Minor bugfixes (v3 onion services, backport from 0.3.4.6-rc):
10047     - Stop sending ed25519 link specifiers in v3 onion service introduce
10048       cells and descriptors, when the rendezvous or introduction point
10049       doesn't support ed25519 link authentication. Fixes bug 26627;
10050       bugfix on 0.3.2.4-alpha.
10052   o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc):
10053     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
10054       27185; bugfix on 0.2.2.2-alpha.
10057 Changes in version 0.3.4.8 - 2018-09-10
10058   Tor 0.3.4.8 is the first stable release in its series; it includes
10059   compilation and portability fixes.
10061   The Tor 0.3.4 series includes improvements for running Tor in
10062   low-power and embedded environments, which should help performance in
10063   general. We've begun work on better modularity, and included preliminary
10064   changes on the directory authority side to accommodate a new bandwidth
10065   measurement system.  We've also integrated more continuous-integration
10066   systems into our development process, and made corresponding changes to
10067   Tor's testing infrastructure.  Finally, we've continued to refine
10068   our anti-denial-of-service code.
10070   Below are the changes since 0.3.4.7-rc.  For a complete list of changes
10071   since 0.3.3.9, see the ReleaseNotes file.
10073   o Minor features (compatibility):
10074     - Tell OpenSSL to maintain backward compatibility with previous
10075       RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these
10076       ciphers are disabled by default. Closes ticket 27344.
10078   o Minor features (continuous integration):
10079     - Log the compiler path and version during Appveyor builds.
10080       Implements ticket 27449.
10081     - Show config.log and test-suite.log after failed Appveyor builds.
10082       Also upload the zipped full logs as a build artifact. Implements
10083       ticket 27430.
10085   o Minor bugfixes (compilation):
10086     - Silence a spurious compiler warning on the GetAdaptersAddresses
10087       function pointer cast. This issue is already fixed by 26481 in
10088       0.3.5 and later, by removing the lookup and cast. Fixes bug 27465;
10089       bugfix on 0.2.3.11-alpha.
10090     - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not
10091       supported, and always fails. Some compilers warn about the
10092       function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix
10093       on 0.2.2.23-alpha.
10095   o Minor bugfixes (continuous integration):
10096     - Disable gcc hardening in Appveyor Windows 64-bit builds. As of
10097       August 29 2018, Appveyor images come with gcc 8.2.0 by default.
10098       Executables compiled for 64-bit Windows with this version of gcc
10099       crash when Tor's --enable-gcc-hardening flag is set. Fixes bug
10100       27460; bugfix on 0.3.4.1-alpha.
10101     - When a Travis build fails, and showing a log fails, keep trying to
10102       show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc.
10103     - When we use echo in Travis, don't pass a --flag as the first
10104       argument. Fixes bug 27418; bugfix on 0.3.4.7-rc.
10106   o Minor bugfixes (onion services):
10107     - Silence a spurious compiler warning in
10108       rend_client_send_introduction(). Fixes bug 27463; bugfix
10109       on 0.1.1.2-alpha.
10111   o Minor bugfixes (testing, chutney):
10112     - When running make test-network-all, use the mixed+hs-v2 network.
10113       (A previous fix to chutney removed v3 onion services from the
10114       mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is
10115       confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha.
10116     - Before running make test-network-all, delete old logs and test
10117       result files, to avoid spurious failures. Fixes bug 27295; bugfix
10118       on 0.2.7.3-rc.
10120 Changes in version 0.3.4.7-rc - 2018-08-24
10121   Tor 0.3.4.7-rc fixes several small compilation, portability, and
10122   correctness issues in previous versions of Tor. This version is a
10123   release candidate: if no serious bugs are found, we expect that the
10124   stable 0.3.4 release will be (almost) the same as this release.
10126   o Minor features (bug workaround):
10127     - Compile correctly on systems that provide the C11 stdatomic.h
10128       header, but where C11 atomic functions don't actually compile.
10129       Closes ticket 26779; workaround for Debian issue 903709.
10131   o Minor features (continuous integration):
10132     - Backport Travis rust distcheck to 0.3.3. Closes ticket 24629.
10133     - Enable macOS builds in our Travis CI configuration. Closes
10134       ticket 24629.
10135     - Install libcap-dev and libseccomp2-dev so these optional
10136       dependencies get tested on Travis CI. Closes ticket 26560.
10137     - Only post Appveyor IRC notifications when the build fails.
10138       Implements ticket 27275.
10139     - Run asciidoc during Travis CI. Implements ticket 27087.
10140     - Use ccache in our Travis CI configuration. Closes ticket 26952.
10142   o Minor features (continuous integration, rust):
10143     - Use cargo cache in our Travis CI configuration. Closes
10144       ticket 26952.
10146   o Minor features (directory authorities):
10147     - Authorities no longer vote to make the subprotocol version
10148       "LinkAuth=1" a requirement: it is unsupportable with NSS, and
10149       hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286.
10151   o Minor features (geoip):
10152     - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2
10153       Country database. Closes ticket 27089.
10155   o Minor bugfixes (compilation, windows):
10156     - Don't link or search for pthreads when building for Windows, even
10157       if we are using build environment (like mingw) that provides a
10158       pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc.
10160   o Minor bugfixes (continuous integration):
10161     - Improve Appveyor CI IRC logging. Generate correct branches and
10162       URLs for pull requests and tags. Use unambiguous short commits.
10163       Fixes bug 26979; bugfix on master.
10164     - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha.
10165     - Pass the module flags to distcheck configure, and log the flags
10166       before running configure. (Backported to 0.2.9 and later as a
10167       precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha.
10169   o Minor bugfixes (in-process restart):
10170     - Always call tor_free_all() when leaving tor_run_main(). When we
10171       did not, restarting tor in-process would cause an assertion
10172       failure. Fixes bug 26948; bugfix on 0.3.3.1-alpha.
10174   o Minor bugfixes (linux seccomp2 sandbox):
10175     - Fix a bug in out sandboxing rules for the openat() syscall.
10176       Previously, no openat() call would be permitted, which would break
10177       filesystem operations on recent glibc versions. Fixes bug 25440;
10178       bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto.
10180   o Minor bugfixes (onion services):
10181     - Fix bug that causes services to not ever rotate their descriptors
10182       if they were getting SIGHUPed often. Fixes bug 26932; bugfix
10183       on 0.3.2.1-alpha.
10185   o Minor bugfixes (portability):
10186     - Fix compilation of the unit tests on GNU/Hurd, which does not
10187       define PATH_MAX. Fixes bug 26873; bugfix on 0.3.3.1-alpha. Patch
10188       from "paulusASol".
10190   o Minor bugfixes (rust):
10191     - Backport test_rust.sh from master. Fixes bug 26497; bugfix
10192       on 0.3.1.5-alpha.
10193     - Consistently use ../../.. as a fallback for $abs_top_srcdir in
10194       test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha.
10195     - Protover parsing was accepting the presence of whitespace in
10196       version strings, which the C implementation would choke on, e.g.
10197       "Desc=1\t,2". Fixes bug 27177; bugfix on 0.3.3.5-rc.
10198     - Protover parsing was ignoring a 2nd hyphen and everything after
10199       it, accepting entries like "Link=1-5-foo". Fixes bug 27164; bugfix
10200       on 0.3.3.1-alpha.
10201     - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or
10202       $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha.
10203     - cd to ${abs_top_builddir}/src/rust before running cargo in
10204       src/test/test_rust.sh. This makes the working directory consistent
10205       between builds and tests. Fixes bug 26497; bugfix on 0.3.3.2-alpha.
10207   o Minor bugfixes (testing, bootstrap):
10208     - When calculating bootstrap progress, check exit policies and the
10209       exit flag. Previously, Tor would only check the exit flag, which
10210       caused race conditions in small and fast networks like chutney.
10211       Fixes bug 27236; bugfix on 0.2.6.3-alpha.
10213   o Minor bugfixes (testing, openssl compatibility):
10214     - Our "tortls/cert_matches_key" unit test no longer relies on
10215       OpenSSL internals. Previously, it relied on unsupported OpenSSL
10216       behavior in a way that caused it to crash with OpenSSL 1.0.2p.
10217       Fixes bug 27226; bugfix on 0.2.5.1-alpha.
10219   o Minor bugfixes (Windows, compilation):
10220     - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug
10221       27185; bugfix on 0.2.2.2-alpha.
10224 Changes in version 0.3.4.6-rc - 2018-08-06
10225   Tor 0.3.4.6-rc fixes several small compilation, portability, and
10226   correctness issues in previous versions of Tor. This version is a
10227   release candidate: if no serious bugs are found, we expect that the
10228   stable 0.3.4 release will be (almost) the same as this release.
10230   o Major bugfixes (event scheduler):
10231     - When we enable a periodic event, schedule it in the event loop
10232       rather than running it immediately. Previously, we would re-run
10233       periodic events immediately in the middle of (for example)
10234       changing our options, with unpredictable effects. Fixes bug 27003;
10235       bugfix on 0.3.4.1-alpha.
10237   o Minor features (compilation):
10238     - When building Tor, prefer to use Python 3 over Python 2, and more
10239       recent (contemplated) versions over older ones. Closes
10240       ticket 26372.
10241     - When compiling with --enable-openbsd-malloc or --enable-tcmalloc,
10242       tell the compiler not to include the system malloc implementation.
10243       Fixes bug 20424; bugfix on 0.2.0.20-rc.
10244     - Don't try to use a pragma to temporarily disable the
10245       -Wunused-const-variable warning if the compiler doesn't support
10246       it. Fixes bug 26785; bugfix on 0.3.2.11.
10248   o Minor bugfixes (continuous integration):
10249     - Skip a pair of unreliable key generation tests on Windows, until
10250       the underlying issue in bug 26076 is resolved. Fixes bug 26830 and
10251       bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively.
10253   o Minor features (controller):
10254     - The control port now exposes the list of HTTPTunnelPorts and
10255       ExtOrPorts via GETINFO net/listeners/httptunnel and
10256       net/listeners/extor respectively. Closes ticket 26647.
10258   o Minor bugfixes (directory authority):
10259     - When voting for recommended versions, make sure that all of the
10260       versions are well-formed and parsable. Fixes bug 26485; bugfix
10261       on 0.1.1.6-alpha.
10263   o Minor features (geoip):
10264     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
10265       Country database. Closes ticket 26674.
10267   o Minor features (Rust, portability):
10268     - Rust cross-compilation is now supported. Closes ticket 25895.
10270   o Minor bugfixes (compilation):
10271     - Update build system so that tor builds again with --disable-unittests
10272       after recent refactoring. Fixes bug 26789; bugfix on 0.3.4.3-alpha.
10273     - Fix a compilation warning on some versions of GCC when building
10274       code that calls routerinfo_get_my_routerinfo() twice, assuming
10275       that the second call will succeed if the first one did. Fixes bug
10276       26269; bugfix on 0.2.8.2-alpha.
10278   o Minor bugfixes (controller):
10279     - Report the port correctly when a port is configured to bind to
10280       "auto". Fixes bug 26568; bugfix on 0.3.4.1-alpha.
10281     - Parse the "HSADDRESS=" parameter in HSPOST commands properly.
10282       Previously, it was misparsed and ignored. Fixes bug 26523; bugfix
10283       on 0.3.3.1-alpha. Patch by "akwizgran".
10285   o Minor bugfixes (correctness, flow control):
10286     - Upon receiving a stream-level SENDME cell, verify that our window
10287       has not grown too large. Fixes bug 26214; bugfix on svn
10288       r54 (pre-0.0.1).
10290   o Minor bugfixes (memory, correctness):
10291     - Fix a number of small memory leaks identified by coverity. Fixes
10292       bug 26467; bugfix on numerous Tor versions.
10294   o Minor bugfixes (logging):
10295     - Improve the log message when connection initiators fail to
10296       authenticate direct connections to relays. Fixes bug 26927; bugfix
10297       on 0.3.0.1-alpha.
10299   o Minor bugfixes (portability):
10300     - Avoid a compilation error in test_bwmgt.c on Solaris 10. Fixes bug
10301       26994; bugfix on 0.3.4.1-alpha.
10302     - Work around two different bugs in the OS X 10.10 and later SDKs
10303       that would prevent us from successfully targeting earlier versions
10304       of OS X. Fixes bug 26876; bugfix on 0.3.3.1-alpha.
10306   o Minor bugfixes (single onion services, Tor2web):
10307     - Log a protocol warning when single onion services or Tor2web
10308       clients fail to authenticate direct connections to relays. Fixes
10309       bug 26924; bugfix on 0.2.9.1-alpha.
10311   o Minor bugfixes (testing):
10312     - Disable core dumps in test_bt.sh, to avoid failures in "make
10313       distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha.
10315   o Minor bugfixes (testing, compatibility):
10316     - When running the ntor_ref.py and hs_ntor_ref.py tests, make sure
10317       only to pass strings (rather than "bytes" objects) to the Python
10318       subprocess module. Python 3 on Windows seems to require this.
10319       Fixes bug 26535; bugfix on 0.2.5.5-alpha (for ntor_ref.py) and
10320       0.3.1.1-alpha (for hs_ntor_ref.py).
10322   o Minor bugfixes (v3 onion services):
10323     - Stop sending ed25519 link specifiers in v3 onion service introduce
10324       cells and descriptors, when the rendezvous or introduction point
10325       doesn't support ed25519 link authentication. Fixes bug 26627;
10326       bugfix on 0.3.2.4-alpha.
10329 Changes in version 0.3.4.5-rc - 2018-07-13
10330   Tor 0.3.4.5-rc moves to a new bridge authority, meaning people running
10331   bridge relays should upgrade.
10333   o Directory authority changes:
10334     - The "Bifroest" bridge authority has been retired; the new bridge
10335       authority is "Serge", and it is operated by George from the
10336       TorBSD project. Closes ticket 26771.
10339 Changes in version 0.3.3.9 - 2018-07-13
10340   Tor 0.3.3.9 moves to a new bridge authority, meaning people running
10341   bridge relays should upgrade.
10343   o Directory authority changes:
10344     - The "Bifroest" bridge authority has been retired; the new bridge
10345       authority is "Serge", and it is operated by George from the
10346       TorBSD project. Closes ticket 26771.
10349 Changes in version 0.3.2.11 - 2018-07-13
10350   Tor 0.3.2.11 moves to a new bridge authority, meaning people running
10351   bridge relays should upgrade. We also take this opportunity to backport
10352   other minor fixes.
10354   o Directory authority changes:
10355     - The "Bifroest" bridge authority has been retired; the new bridge
10356       authority is "Serge", and it is operated by George from the
10357       TorBSD project. Closes ticket 26771.
10359   o Directory authority changes (backport from 0.3.3.7):
10360     - Add an IPv6 address for the "dannenberg" directory authority.
10361       Closes ticket 26343.
10363   o Major bugfixes (directory authorities, backport from 0.3.4.1-alpha):
10364     - When directory authorities read a zero-byte bandwidth file, they
10365       would previously log a warning with the contents of an
10366       uninitialised buffer. They now log a warning about the empty file
10367       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
10369   o Major bugfixes (onion service, backport from 0.3.4.1-alpha):
10370     - Correctly detect when onion services get disabled after HUP. Fixes
10371       bug 25761; bugfix on 0.3.2.1.
10373   o Minor features (sandbox, backport from 0.3.3.4-alpha):
10374     - Explicitly permit the poll() system call when the Linux
10375       seccomp2-based sandbox is enabled: apparently, some versions of
10376       libc use poll() when calling getpwnam(). Closes ticket 25313.
10378   o Minor feature (continuous integration, backport from 0.3.3.5-rc):
10379     - Update the Travis CI configuration to use the stable Rust channel,
10380       now that we have decided to require that. Closes ticket 25714.
10382   o Minor features (continuous integration, backport from 0.3.4.1-alpha):
10383     - Our .travis.yml configuration now includes support for testing the
10384       results of "make distcheck". (It's not uncommon for "make check"
10385       to pass but "make distcheck" to fail.) Closes ticket 25814.
10386     - Our Travis CI configuration now integrates with the Coveralls
10387       coverage analysis tool. Closes ticket 25818.
10389   o Minor features (relay, diagnostic, backport from 0.3.4.3-alpha):
10390     - Add several checks to detect whether Tor relays are uploading
10391       their descriptors without specifying why they regenerated them.
10392       Diagnostic for ticket 25686.
10394   o Minor features (compilation, backport from 0.3.4.4-rc):
10395     - When building Tor, prefer to use Python 3 over Python 2, and more
10396       recent (contemplated) versions over older ones. Closes
10397       ticket 26372.
10399   o Minor features (geoip):
10400     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
10401       Country database. Closes ticket 26674.
10403   o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha):
10404     - Upon receiving a malformed connected cell, stop processing the
10405       cell immediately. Previously we would mark the connection for
10406       close, but continue processing the cell as if the connection were
10407       open. Fixes bug 26072; bugfix on 0.2.4.7-alpha.
10409   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha):
10410     - Allow the nanosleep() system call, which glibc uses to implement
10411       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
10413   o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc):
10414     - When running the hs_ntor_ref.py test, make sure only to pass
10415       strings (rather than "bytes" objects) to the Python subprocess
10416       module. Python 3 on Windows seems to require this. Fixes bug
10417       26535; bugfix on 0.3.1.1-alpha.
10418     - When running the ntor_ref.py test, make sure only to pass strings
10419       (rather than "bytes" objects) to the Python subprocess module.
10420       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
10421       on 0.2.5.5-alpha.
10423   o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha):
10424     - Work around a change in OpenSSL 1.1.1 where return values that
10425       would previously indicate "no password" now indicate an empty
10426       password. Without this workaround, Tor instances running with
10427       OpenSSL 1.1.1 would accept descriptors that other Tor instances
10428       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
10430   o Minor bugfixes (documentation, backport from 0.3.3.5-rc):
10431     - Document that the PerConnBW{Rate,Burst} options will fall back to
10432       their corresponding consensus parameters only if those parameters
10433       are set. Previously we had claimed that these values would always
10434       be set in the consensus. Fixes bug 25296; bugfix on 0.2.2.7-alpha.
10436   o Minor bugfixes (compilation, backport from 0.3.4.4-rc):
10437     - Fix a compilation warning on some versions of GCC when building
10438       code that calls routerinfo_get_my_routerinfo() twice, assuming
10439       that the second call will succeed if the first one did. Fixes bug
10440       26269; bugfix on 0.2.8.2-alpha.
10442   o Minor bugfixes (client, backport from 0.3.4.1-alpha):
10443     - Don't consider Tor running as a client if the ControlPort is open,
10444       but no actual client ports are open. Fixes bug 26062; bugfix
10445       on 0.2.9.4-alpha.
10447   o Minor bugfixes (hardening, backport from 0.3.4.2-alpha):
10448     - Prevent a possible out-of-bounds smartlist read in
10449       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
10451   o Minor bugfixes (C correctness, backport from 0.3.3.4-alpha):
10452     - Fix a very unlikely (impossible, we believe) null pointer
10453       dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by
10454       Coverity; this is CID 1430932.
10456   o Minor bugfixes (onion service, backport from 0.3.4.1-alpha):
10457     - Fix a memory leak when a v3 onion service is configured and gets a
10458       SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha.
10459     - When parsing the descriptor signature, look for the token plus an
10460       extra white-space at the end. This is more correct but also will
10461       allow us to support new fields that might start with "signature".
10462       Fixes bug 26069; bugfix on 0.3.0.1-alpha.
10464   o Minor bugfixes (relay, backport from 0.3.4.3-alpha):
10465     - Relays now correctly block attempts to re-extend to the previous
10466       relay by Ed25519 identity. Previously they would warn in this
10467       case, but not actually reject the attempt. Fixes bug 26158; bugfix
10468       on 0.3.0.1-alpha.
10470   o Minor bugfixes (relay, crash, backport from 0.3.4.1-alpha):
10471     - Avoid a crash when running with DirPort set but ORPort turned off.
10472       Fixes a case of bug 23693; bugfix on 0.3.1.1-alpha.
10474   o Minor bugfixes (compilation, backport from 0.3.4.2-alpha):
10475     - Silence unused-const-variable warnings in zstd.h with some GCC
10476       versions. Fixes bug 26272; bugfix on 0.3.1.1-alpha.
10478   o Minor bugfixes (testing, backport from 0.3.3.4-alpha):
10479     - Avoid intermittent test failures due to a test that had relied on
10480       onion service introduction point creation finishing within 5
10481       seconds of real clock time. Fixes bug 25450; bugfix
10482       on 0.3.1.3-alpha.
10484   o Minor bugfixes (compilation, backport from 0.3.3.4-alpha):
10485     - Fix a C99 compliance issue in our configuration script that caused
10486       compilation issues when compiling Tor with certain versions of
10487       xtools. Fixes bug 25474; bugfix on 0.3.2.5-alpha.
10489   o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc):
10490     - Fix a number of small memory leaks identified by coverity. Fixes
10491       bug 26467; bugfix on numerous Tor versions.
10493   o Code simplification and refactoring (backport from 0.3.3.5-rc):
10494     - Move the list of default directory authorities to its own file.
10495       Closes ticket 24854. Patch by "beastr0".
10498 Changes in version 0.2.9.16 - 2018-07-13
10499   Tor 0.2.9.16 moves to a new bridge authority, meaning people running
10500   bridge relays should upgrade. We also take this opportunity to backport
10501   other minor fixes.
10503   o Directory authority changes:
10504     - The "Bifroest" bridge authority has been retired; the new bridge
10505       authority is "Serge", and it is operated by George from the
10506       TorBSD project. Closes ticket 26771.
10508   o Directory authority changes (backport from 0.3.3.7):
10509     - Add an IPv6 address for the "dannenberg" directory authority.
10510       Closes ticket 26343.
10512   o Major bugfixes (directory authorities, backport from 0.3.4.1-alpha):
10513     - When directory authorities read a zero-byte bandwidth file, they
10514       would previously log a warning with the contents of an
10515       uninitialised buffer. They now log a warning about the empty file
10516       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
10518   o Minor features (sandbox, backport from 0.3.3.4-alpha):
10519     - Explicitly permit the poll() system call when the Linux
10520       seccomp2-based sandbox is enabled: apparently, some versions of
10521       libc use poll() when calling getpwnam(). Closes ticket 25313.
10523   o Minor features (continuous integration, backport from 0.3.4.1-alpha):
10524     - Our .travis.yml configuration now includes support for testing the
10525       results of "make distcheck". (It's not uncommon for "make check"
10526       to pass but "make distcheck" to fail.) Closes ticket 25814.
10527     - Our Travis CI configuration now integrates with the Coveralls
10528       coverage analysis tool. Closes ticket 25818.
10530   o Minor features (compilation, backport from 0.3.4.4-rc):
10531     - When building Tor, prefer to use Python 3 over Python 2, and more
10532       recent (contemplated) versions over older ones. Closes
10533       ticket 26372.
10535   o Minor features (geoip):
10536     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
10537       Country database. Closes ticket 26674.
10539   o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha):
10540     - Upon receiving a malformed connected cell, stop processing the
10541       cell immediately. Previously we would mark the connection for
10542       close, but continue processing the cell as if the connection were
10543       open. Fixes bug 26072; bugfix on 0.2.4.7-alpha.
10545   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha):
10546     - Allow the nanosleep() system call, which glibc uses to implement
10547       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
10549   o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc):
10550     - When running the ntor_ref.py test, make sure only to pass strings
10551       (rather than "bytes" objects) to the Python subprocess module.
10552       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
10553       on 0.2.5.5-alpha.
10555   o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha):
10556     - Work around a change in OpenSSL 1.1.1 where return values that
10557       would previously indicate "no password" now indicate an empty
10558       password. Without this workaround, Tor instances running with
10559       OpenSSL 1.1.1 would accept descriptors that other Tor instances
10560       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
10562   o Minor bugfixes (compilation, backport from 0.3.4.4-rc):
10563     - Fix a compilation warning on some versions of GCC when building
10564       code that calls routerinfo_get_my_routerinfo() twice, assuming
10565       that the second call will succeed if the first one did. Fixes bug
10566       26269; bugfix on 0.2.8.2-alpha.
10568   o Minor bugfixes (client, backport from 0.3.4.1-alpha):
10569     - Don't consider Tor running as a client if the ControlPort is open,
10570       but no actual client ports are open. Fixes bug 26062; bugfix
10571       on 0.2.9.4-alpha.
10573   o Minor bugfixes (hardening, backport from 0.3.4.2-alpha):
10574     - Prevent a possible out-of-bounds smartlist read in
10575       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
10577   o Minor bugfixes (C correctness, backport from 0.3.3.4-alpha):
10578     - Fix a very unlikely (impossible, we believe) null pointer
10579       dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by
10580       Coverity; this is CID 1430932.
10582   o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc):
10583     - Fix a number of small memory leaks identified by coverity. Fixes
10584       bug 26467; bugfix on numerous Tor versions.
10586   o Code simplification and refactoring (backport from 0.3.3.5-rc):
10587     - Move the list of default directory authorities to its own file.
10588       Closes ticket 24854. Patch by "beastr0".
10591 Changes in version 0.3.4.4-rc - 2018-07-09
10592   Tor 0.3.4.4-rc fixes several small compilation, portability, and
10593   correctness issues in previous versions of Tor. This version is a
10594   release candidate: if no serious bugs are found, we expect that the
10595   stable 0.3.4 release will be (almost) the same as this release.
10597   o Minor features (compilation):
10598     - When building Tor, prefer to use Python 3 over Python 2, and more
10599       recent (contemplated) versions over older ones. Closes
10600       ticket 26372.
10602   o Minor features (geoip):
10603     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
10604       Country database. Closes ticket 26674.
10606   o Minor features (Rust, portability):
10607     - Rust cross-compilation is now supported. Closes ticket 25895.
10609   o Minor bugfixes (compilation):
10610     - Fix a compilation warning on some versions of GCC when building
10611       code that calls routerinfo_get_my_routerinfo() twice, assuming
10612       that the second call will succeed if the first one did. Fixes bug
10613       26269; bugfix on 0.2.8.2-alpha.
10615   o Minor bugfixes (control port):
10616     - Report the port correctly when a port is configured to bind to
10617       "auto". Fixes bug 26568; bugfix on 0.3.4.1-alpha.
10618     - Handle the HSADDRESS= argument to the HSPOST command properly.
10619       (Previously, this argument was misparsed and thus ignored.) Fixes
10620       bug 26523; bugfix on 0.3.3.1-alpha. Patch by "akwizgran".
10622   o Minor bugfixes (correctness, flow control):
10623     - Upon receiving a stream-level SENDME cell, verify that our window
10624       has not grown too large. Fixes bug 26214; bugfix on svn
10625       r54 (pre-0.0.1).
10627   o Minor bugfixes (memory, correctness):
10628     - Fix a number of small memory leaks identified by coverity. Fixes
10629       bug 26467; bugfix on numerous Tor versions.
10631   o Minor bugfixes (testing, compatibility):
10632     - When running the hs_ntor_ref.py test, make sure only to pass
10633       strings (rather than "bytes" objects) to the Python subprocess
10634       module. Python 3 on Windows seems to require this. Fixes bug
10635       26535; bugfix on 0.3.1.1-alpha.
10636     - When running the ntor_ref.py test, make sure only to pass strings
10637       (rather than "bytes" objects) to the Python subprocess module.
10638       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
10639       on 0.2.5.5-alpha.
10642 Changes in version 0.3.3.8 - 2018-07-09
10643   Tor 0.3.3.8 backports several changes from the 0.3.4.x series, including
10644   fixes for a memory leak affecting directory authorities.
10646   o Major bugfixes (directory authority, backport from 0.3.4.3-alpha):
10647     - Stop leaking memory on directory authorities when planning to
10648       vote. This bug was crashing authorities by exhausting their
10649       memory. Fixes bug 26435; bugfix on 0.3.3.6.
10651   o Major bugfixes (rust, testing, backport from 0.3.4.3-alpha):
10652     - Make sure that failing tests in Rust will actually cause the build
10653       to fail: previously, they were ignored. Fixes bug 26258; bugfix
10654       on 0.3.3.4-alpha.
10656   o Minor features (compilation, backport from 0.3.4.4-rc):
10657     - When building Tor, prefer to use Python 3 over Python 2, and more
10658       recent (contemplated) versions over older ones. Closes
10659       ticket 26372.
10661   o Minor features (geoip):
10662     - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2
10663       Country database. Closes ticket 26674.
10665   o Minor features (relay, diagnostic, backport from 0.3.4.3-alpha):
10666     - Add several checks to detect whether Tor relays are uploading
10667       their descriptors without specifying why they regenerated them.
10668       Diagnostic for ticket 25686.
10670   o Minor bugfixes (circuit path selection, backport from 0.3.4.1-alpha):
10671     - Don't count path selection failures as circuit build failures.
10672       This change should eliminate cases where Tor blames its guard or
10673       the network for situations like insufficient microdescriptors
10674       and/or overly restrictive torrc settings. Fixes bug 25705; bugfix
10675       on 0.3.3.1-alpha.
10677   o Minor bugfixes (compilation, backport from 0.3.4.4-rc):
10678     - Fix a compilation warning on some versions of GCC when building
10679       code that calls routerinfo_get_my_routerinfo() twice, assuming
10680       that the second call will succeed if the first one did. Fixes bug
10681       26269; bugfix on 0.2.8.2-alpha.
10683   o Minor bugfixes (control port, backport from 0.3.4.4-rc):
10684     - Handle the HSADDRESS= argument to the HSPOST command properly.
10685       (Previously, this argument was misparsed and thus ignored.) Fixes
10686       bug 26523; bugfix on 0.3.3.1-alpha. Patch by "akwizgran".
10688   o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc):
10689     - Fix a number of small memory leaks identified by coverity. Fixes
10690       bug 26467; bugfix on numerous Tor versions.
10692   o Minor bugfixes (relay, backport from 0.3.4.3-alpha):
10693     - Relays now correctly block attempts to re-extend to the previous
10694       relay by Ed25519 identity. Previously they would warn in this
10695       case, but not actually reject the attempt. Fixes bug 26158; bugfix
10696       on 0.3.0.1-alpha.
10698   o Minor bugfixes (restart-in-process, backport from 0.3.4.1-alpha):
10699     - When shutting down, Tor now clears all the flags in the control.c
10700       module. This should prevent a bug where authentication cookies are
10701       not generated on restart. Fixes bug 25512; bugfix on 0.3.3.1-alpha.
10703   o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc):
10704     - When running the hs_ntor_ref.py test, make sure only to pass
10705       strings (rather than "bytes" objects) to the Python subprocess
10706       module. Python 3 on Windows seems to require this. Fixes bug
10707       26535; bugfix on 0.3.1.1-alpha.
10708     - When running the ntor_ref.py test, make sure only to pass strings
10709       (rather than "bytes" objects) to the Python subprocess module.
10710       Python 3 on Windows seems to require this. Fixes bug 26535; bugfix
10711       on 0.2.5.5-alpha.
10714 Changes in version 0.3.4.3-alpha - 2018-06-26
10715   Tor 0.3.4.3-alpha fixes several bugs in earlier versions, including
10716   one that was causing stability issues on directory authorities.
10718   o Major bugfixes (directory authority):
10719     - Stop leaking memory on directory authorities when planning to
10720       vote. This bug was crashing authorities by exhausting their
10721       memory. Fixes bug 26435; bugfix on 0.3.3.6.
10723   o Major bugfixes (rust, testing):
10724     - Make sure that failing tests in Rust will actually cause the build
10725       to fail: previously, they were ignored. Fixes bug 26258; bugfix
10726       on 0.3.3.4-alpha.
10728   o Minor feature (directory authorities):
10729     - Stop warning about incomplete bw lines before the first complete
10730       bw line has been found, so that additional header lines can be
10731       ignored. Fixes bug 25960; bugfix on 0.2.2.1-alpha
10733   o Minor features (relay, diagnostic):
10734     - Add several checks to detect whether Tor relays are uploading
10735       their descriptors without specifying why they regenerated them.
10736       Diagnostic for ticket 25686.
10738   o Minor features (unit tests):
10739     - Test complete bandwidth measurements files, and test that
10740       incomplete bandwidth lines only give warnings when the end of the
10741       header has not been detected. Fixes bug 25947; bugfix
10742       on 0.2.2.1-alpha
10744   o Minor bugfixes (compilation):
10745     - Refrain from compiling unit testing related object files when
10746       --disable-unittests is set to configure script. Fixes bug 24891;
10747       bugfix on 0.2.5.1-alpha.
10748     - When linking the libtor_testing.a library, only include the
10749       dirauth object files once. Previously, they were getting added
10750       twice. Fixes bug 26402; bugfix on 0.3.4.1-alpha.
10751     - The --enable-fatal-warnings flag now affects Rust code as well.
10752       Closes ticket 26245.
10754   o Minor bugfixes (onion services):
10755     - Recompute some consensus information after detecting a clock jump,
10756       or after transitioning from a non-live consensus to a live
10757       consensus. We do this to avoid having an outdated state, and
10758       miscalculating the index for next-generation onion services. Fixes
10759       bug 24977; bugfix on 0.3.2.1-alpha.
10761   o Minor bugfixes (relay):
10762     - Relays now correctly block attempts to re-extend to the previous
10763       relay by Ed25519 identity. Previously they would warn in this
10764       case, but not actually reject the attempt. Fixes bug 26158; bugfix
10765       on 0.3.0.1-alpha.
10767   o Minor bugfixes (testing):
10768     - Fix compilation of the doctests in the Rust crypto crate. Fixes
10769       bug 26415; bugfix on 0.3.4.1-alpha.
10770     - Instead of trying to read the geoip configuration files from
10771       within the unit tests, instead create our own ersatz files with
10772       just enough geoip data in the format we expect. Trying to read
10773       from the source directory created problems on Windows with mingw,
10774       where the build system's paths are not the same as the platform's
10775       paths. Fixes bug 25787; bugfix on 0.3.4.1-alpha.
10776     - Refrain from trying to get an item from an empty smartlist in
10777       test_bridges_clear_bridge_list. Set DEBUG_SMARTLIST in unit tests
10778       to catch improper smartlist usage. Furthermore, enable
10779       DEBUG_SMARTLIST globally when build is configured with fragile
10780       hardening. Fixes bug 26196; bugfix on 0.3.4.1-alpha.
10783 Changes in version 0.3.3.7 - 2018-06-12
10784   Tor 0.3.3.7 backports several changes from the 0.3.4.x series, including
10785   fixes for bugs affecting compatibility and stability.
10787   o Directory authority changes:
10788     - Add an IPv6 address for the "dannenberg" directory authority.
10789       Closes ticket 26343.
10791   o Minor features (geoip):
10792     - Update geoip and geoip6 to the June 7 2018 Maxmind GeoLite2
10793       Country database. Closes ticket 26351.
10795   o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha):
10796     - Work around a change in OpenSSL 1.1.1 where return values that
10797       would previously indicate "no password" now indicate an empty
10798       password. Without this workaround, Tor instances running with
10799       OpenSSL 1.1.1 would accept descriptors that other Tor instances
10800       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
10802   o Minor bugfixes (compilation, backport from 0.3.4.2-alpha):
10803     - Silence unused-const-variable warnings in zstd.h with some GCC
10804       versions. Fixes bug 26272; bugfix on 0.3.1.1-alpha.
10806   o Minor bugfixes (controller, backport from 0.3.4.2-alpha):
10807     - Improve accuracy of the BUILDTIMEOUT_SET control port event's
10808       TIMEOUT_RATE and CLOSE_RATE fields. (We were previously
10809       miscounting the total number of circuits for these field values.)
10810       Fixes bug 26121; bugfix on 0.3.3.1-alpha.
10812   o Minor bugfixes (hardening, backport from 0.3.4.2-alpha):
10813     - Prevent a possible out-of-bounds smartlist read in
10814       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
10816   o Minor bugfixes (path selection, backport from 0.3.4.1-alpha):
10817     - Only select relays when they have the descriptors we prefer to use
10818       for them. This change fixes a bug where we could select a relay
10819       because it had _some_ descriptor, but reject it later with a
10820       nonfatal assertion error because it didn't have the exact one we
10821       wanted. Fixes bugs 25691 and 25692; bugfix on 0.3.3.4-alpha.
10824 Changes in version 0.3.4.2-alpha - 2018-06-12
10825   Tor 0.3.4.2-alpha fixes several minor bugs in the previous alpha
10826   release, and forward-ports an authority-only security fix from 0.3.3.6.
10828   o Directory authority changes:
10829     - Add an IPv6 address for the "dannenberg" directory authority.
10830       Closes ticket 26343.
10832   o Major bugfixes (security, directory authority, denial-of-service, also in 0.3.3.6):
10833     - Fix a bug that could have allowed an attacker to force a directory
10834       authority to use up all its RAM by passing it a maliciously
10835       crafted protocol versions string. Fixes bug 25517; bugfix on
10836       0.2.9.4-alpha. This issue is also tracked as TROVE-2018-005.
10838   o Minor features (continuous integration):
10839     - Add the necessary configuration files for continuous integration
10840       testing on Windows, via the Appveyor platform. Closes ticket
10841       25549. Patches from Marcin Cieślak and Isis Lovecruft.
10843   o Minor features (geoip):
10844     - Update geoip and geoip6 to the June 7 2018 Maxmind GeoLite2
10845       Country database. Closes ticket 26351.
10847   o Minor bugfixes (compatibility, openssl):
10848     - Work around a change in OpenSSL 1.1.1 where return values that
10849       would previously indicate "no password" now indicate an empty
10850       password. Without this workaround, Tor instances running with
10851       OpenSSL 1.1.1 would accept descriptors that other Tor instances
10852       would reject. Fixes bug 26116; bugfix on 0.2.5.16.
10854   o Minor bugfixes (compilation):
10855     - Silence unused-const-variable warnings in zstd.h with some GCC
10856       versions. Fixes bug 26272; bugfix on 0.3.1.1-alpha.
10857     - Fix compilation when using OpenSSL 1.1.0 with the "no-deprecated"
10858       flag enabled. Fixes bug 26156; bugfix on 0.3.4.1-alpha.
10859     - Avoid a compiler warning when casting the return value of
10860       smartlist_len() to double with DEBUG_SMARTLIST enabled. Fixes bug
10861       26283; bugfix on 0.2.4.10-alpha.
10863   o Minor bugfixes (control port):
10864     - Do not count 0-length RELAY_COMMAND_DATA cells as valid data in
10865       CIRC_BW events. Previously, such cells were counted entirely in
10866       the OVERHEAD field. Now they are not. Fixes bug 26259; bugfix
10867       on 0.3.4.1-alpha.
10869   o Minor bugfixes (controller):
10870     - Improve accuracy of the BUILDTIMEOUT_SET control port event's
10871       TIMEOUT_RATE and CLOSE_RATE fields. (We were previously
10872       miscounting the total number of circuits for these field values.)
10873       Fixes bug 26121; bugfix on 0.3.3.1-alpha.
10875   o Minor bugfixes (hardening):
10876     - Prevent a possible out-of-bounds smartlist read in
10877       protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha.
10879   o Minor bugfixes (onion services):
10880     - Fix a bug that blocked the creation of ephemeral v3 onion
10881       services. Fixes bug 25939; bugfix on 0.3.4.1-alpha.
10883   o Minor bugfixes (test coverage tools):
10884     - Update our "cov-diff" script to handle output from the latest
10885       version of gcov, and to remove extraneous timestamp information
10886       from its output. Fixes bugs 26101 and 26102; bugfix
10887       on 0.2.5.1-alpha.
10890 Changes in version 0.3.3.6 - 2018-05-22
10891   Tor 0.3.3.6 is the first stable release in the 0.3.3 series. It
10892   backports several important fixes from the 0.3.4.1-alpha.
10894   The Tor 0.3.3 series includes controller support and other
10895   improvements for v3 onion services, official support for embedding Tor
10896   within other applications, and our first non-trivial module written in
10897   the Rust programming language. (Rust is still not enabled by default
10898   when building Tor.) And as usual, there are numerous other smaller
10899   bugfixes, features, and improvements.
10901   Below are the changes since 0.3.3.5-rc. For a list of all changes
10902   since 0.3.2.10, see the ReleaseNotes file.
10904   o Major bugfixes (directory authorities, security, backport from 0.3.4.1-alpha):
10905     - When directory authorities read a zero-byte bandwidth file, they
10906       would previously log a warning with the contents of an
10907       uninitialised buffer. They now log a warning about the empty file
10908       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
10910   o Major bugfixes (security, directory authority, denial-of-service):
10911     - Fix a bug that could have allowed an attacker to force a directory
10912       authority to use up all its RAM by passing it a maliciously
10913       crafted protocol versions string. Fixes bug 25517; bugfix on
10914       0.2.9.4-alpha. This issue is also tracked as TROVE-2018-005.
10916   o Major bugfixes (crash, backport from 0.3.4.1-alpha):
10917     - Avoid a rare assertion failure in the circuit build timeout code
10918       if we fail to allow any circuits to actually complete. Fixes bug
10919       25733; bugfix on 0.2.2.2-alpha.
10921   o Major bugfixes (directory authorities, backport from 0.3.4.1-alpha):
10922     - Avoid a crash when testing router reachability on a router that
10923       could have an ed25519 ID, but which does not. Fixes bug 25415;
10924       bugfix on 0.3.3.2-alpha.
10926   o Major bugfixes (onion service, backport from 0.3.4.1-alpha):
10927     - Correctly detect when onion services get disabled after HUP. Fixes
10928       bug 25761; bugfix on 0.3.2.1.
10930   o Major bugfixes (relay, denial of service, backport from 0.3.4.1-alpha):
10931     - Impose a limit on circuit cell queue size. The limit can be
10932       controlled by a consensus parameter. Fixes bug 25226; bugfix
10933       on 0.2.4.14-alpha.
10935   o Minor features (compatibility, backport from 0.3.4.1-alpha):
10936     - Avoid some compilation warnings with recent versions of LibreSSL.
10937       Closes ticket 26006.
10939   o Minor features (continuous integration, backport from 0.3.4.1-alpha):
10940     - Our .travis.yml configuration now includes support for testing the
10941       results of "make distcheck". (It's not uncommon for "make check"
10942       to pass but "make distcheck" to fail.) Closes ticket 25814.
10943     - Our Travis CI configuration now integrates with the Coveralls
10944       coverage analysis tool. Closes ticket 25818.
10946   o Minor features (geoip):
10947     - Update geoip and geoip6 to the May 1 2018 Maxmind GeoLite2 Country
10948       database. Closes ticket 26104.
10950   o Minor bugfixes (client, backport from 0.3.4.1-alpha):
10951     - Don't consider Tor running as a client if the ControlPort is open,
10952       but no actual client ports are open. Fixes bug 26062; bugfix
10953       on 0.2.9.4-alpha.
10955   o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha):
10956     - Upon receiving a malformed connected cell, stop processing the
10957       cell immediately. Previously we would mark the connection for
10958       close, but continue processing the cell as if the connection were
10959       open. Fixes bug 26072; bugfix on 0.2.4.7-alpha.
10961   o Minor bugfixes (documentation, backport from 0.3.4.1-alpha):
10962     - Stop saying in the manual that clients cache ipv4 dns answers from
10963       exit relays. We haven't used them since 0.2.6.3-alpha, and in
10964       ticket 24050 we stopped even caching them as of 0.3.2.6-alpha, but
10965       we forgot to say so in the man page. Fixes bug 26052; bugfix
10966       on 0.3.2.6-alpha.
10968   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha):
10969     - Allow the nanosleep() system call, which glibc uses to implement
10970       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
10972   o Minor bugfixes (onion service, backport from 0.3.4.1-alpha):
10973     - Fix a memory leak when a v3 onion service is configured and gets a
10974       SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha.
10975     - When parsing the descriptor signature, look for the token plus an
10976       extra white-space at the end. This is more correct but also will
10977       allow us to support new fields that might start with "signature".
10978       Fixes bug 26069; bugfix on 0.3.0.1-alpha.
10980   o Minor bugfixes (relay, crash, backport from 0.3.4.1-alpha):
10981     - Avoid a crash when running with DirPort set but ORPort turned off.
10982       Fixes a case of bug 23693; bugfix on 0.3.1.1-alpha.
10984   o Documentation (backport from 0.3.4.1-alpha):
10985     - Correct an IPv6 error in the documentation for ExitPolicy. Closes
10986       ticket 25857. Patch from "CTassisF".
10989 Changes in version 0.3.4.1-alpha - 2018-05-17
10990   Tor 0.3.4.1-alpha is the first release in the 0.3.4.x series. It
10991   includes refactoring to begin reducing Tor's binary size and idle CPU
10992   usage on mobile, along with prep work for new bandwidth scanners,
10993   improvements to the experimental "vanguards" feature, and numerous
10994   other small features and bugfixes.
10996   o New system requirements:
10997     - Tor no longer tries to support old operating systems without
10998       mmap() or some local equivalent. Apparently, compilation on such
10999       systems has been broken for some time, without anybody noticing or
11000       complaining. Closes ticket 25398.
11002   o Major feature (directory authority, modularization):
11003     - The directory authority subsystem has been modularized. The code
11004       is now located in src/or/dirauth/, and is compiled in by default.
11005       To disable the module, the configure option
11006       --disable-module-dirauth has been added. This module may be
11007       disabled by default in some future release. Closes ticket 25610.
11009   o Major features (main loop, CPU usage):
11010     - When Tor is disabled (via DisableNetwork or via hibernation), it
11011       no longer needs to run any per-second events. This change should
11012       make it easier for mobile applications to disable Tor while the
11013       device is sleeping, or Tor is not running. Closes ticket 26063.
11014     - Tor no longer enables all of its periodic events by default.
11015       Previously, Tor would enable all possible main loop events,
11016       regardless of whether it needed them. Furthermore, many of these
11017       events are now disabled with Tor is hibernating or DisableNetwork
11018       is set. This is a big step towards reducing client CPU usage by
11019       reducing the amount of wake-ups the daemon does. Closes ticket
11020       25376 and 25762.
11021     - The bandwidth-limitation logic has been refactored so that
11022       bandwidth calculations are performed on-demand, rather than every
11023       TokenBucketRefillInterval milliseconds. This change should improve
11024       the granularity of our bandwidth calculations, and limit the
11025       number of times that the Tor process needs to wake up when it is
11026       idle. Closes ticket 25373.
11027     - Move responsibility for many operations from a once-per-second
11028       callback to a callback that is only scheduled as needed. Moving
11029       this functionality has allowed us to disable the callback when
11030       Tor's network is disabled. Once enough items are removed from our
11031       once-per-second callback, we can eliminate it entirely to conserve
11032       CPU when idle. The functionality removed includes: closing
11033       connections, circuits, and channels (ticket 25932); consensus
11034       voting (25937); flushing log callbacks (25951); honoring delayed
11035       SIGNEWNYM requests (25949); rescanning the consensus cache
11036       (25931); saving the state file to disk (25948); warning relay
11037       operators about unreachable ports (25952); and keeping track of
11038       Tor's uptime (26009).
11040   o Major bugfixes (directory authorities, security):
11041     - When directory authorities read a zero-byte bandwidth file, they
11042       would previously log a warning with the contents of an
11043       uninitialised buffer. They now log a warning about the empty file
11044       instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha.
11046   o Major bugfixes (crash):
11047     - Avoid a rare assertion failure in the circuit build timeout code
11048       if we fail to allow any circuits to actually complete. Fixes bug
11049       25733; bugfix on 0.2.2.2-alpha.
11051   o Major bugfixes (directory authority):
11052     - Avoid a crash when testing router reachability on a router that
11053       could have an ed25519 ID, but which does not. Fixes bug 25415;
11054       bugfix on 0.3.3.2-alpha.
11056   o Major bugfixes (onion service):
11057     - Correctly detect when onion services get disabled after HUP. Fixes
11058       bug 25761; bugfix on 0.3.2.1.
11060   o Major bugfixes (protover, voting):
11061     - Revise Rust implementation of protover to use a more memory-
11062       efficient voting algorithm and corresponding data structures, thus
11063       avoiding a potential (but small impact) DoS attack where specially
11064       crafted protocol strings would expand to several potential
11065       megabytes in memory. In the process, several portions of code were
11066       revised to be methods on new, custom types, rather than functions
11067       taking interchangeable types, thus increasing type safety of the
11068       module. Custom error types and handling were added as well, in
11069       order to facilitate better error dismissal/handling in outside
11070       crates and avoid mistakenly passing an internal error string to C
11071       over the FFI boundary. Many tests were added, and some previous
11072       differences between the C and Rust implementations have been
11073       remedied. Fixes bug 24031; bugfix on 0.3.3.1-alpha.
11075   o Major bugfixes (relay, denial of service):
11076     - Impose a limit on circuit cell queue size. The limit can be
11077       controlled by a consensus parameter. Fixes bug 25226; bugfix
11078       on 0.2.4.14-alpha.
11080   o Minor features (accounting):
11081     - When Tor becomes dormant, it now uses a scheduled event to wake up
11082       at the right time. Previously, we would use the per-second timer
11083       to check whether to wake up, but we no longer have any per-second
11084       timers enabled when the network is disabled. Closes ticket 26064.
11086   o Minor features (code quality):
11087     - Add optional spell-checking for the Tor codebase, using the
11088       "misspell" program. To use this feature, run "make check-typos".
11089       Closes ticket 25024.
11091   o Minor features (compatibility):
11092     - Tor now detects versions of OpenSSL 1.1.0 and later compiled with
11093       the no-deprecated option, and builds correctly with them. Closes
11094       tickets 19429, 19981, and 25353.
11095     - Avoid some compilation warnings with recent versions of LibreSSL.
11096       Closes ticket 26006.
11098   o Minor features (compression, zstd):
11099     - When running with zstd, Tor now considers using advanced functions
11100       that the zstd maintainers have labeled as potentially unstable. To
11101       prevent breakage, Tor will only use this functionality when the
11102       runtime version of the zstd library matches the version with which
11103       Tor was compiled. Closes ticket 25162.
11105   o Minor features (configuration):
11106     - The "DownloadSchedule" options have been renamed to end with
11107       "DownloadInitialDelay". The old names are still allowed, but will
11108       produce a warning. Comma-separated lists are still permitted for
11109       these options, but all values after the first are ignored (as they
11110       have been since 0.2.9). Closes ticket 23354.
11112   o Minor features (continuous integration):
11113     - Our .travis.yml configuration now includes support for testing the
11114       results of "make distcheck". (It's not uncommon for "make check"
11115       to pass but "make distcheck" to fail.) Closes ticket 25814.
11116     - Our Travis CI configuration now integrates with the Coveralls
11117       coverage analysis tool. Closes ticket 25818.
11119   o Minor features (control port):
11120     - Introduce GETINFO "current-time/{local,utc}" to return the local
11121       and UTC times respectively in ISO format. This helps a controller
11122       like Tor Browser detect a time-related error. Closes ticket 25511.
11123       Patch by Neel Chauhan.
11124     - Introduce new fields to the CIRC_BW event. There are two new
11125       fields in each of the read and written directions. The DELIVERED
11126       fields report the total valid data on the circuit, as measured by
11127       the payload sizes of verified and error-checked relay command
11128       cells. The OVERHEAD fields report the total unused bytes in each
11129       of these cells. Closes ticket 25903.
11131   o Minor features (directory authority):
11132     - Directory authorities now open their key-pinning files as O_SYNC,
11133       to limit their chances of accidentally writing partial lines.
11134       Closes ticket 23909.
11136   o Minor features (directory authority, forward compatibility):
11137     - Make the lines of the measured bandwidth file able to contain
11138       their entries in any order. Previously, the node_id entry needed
11139       to come first. Closes ticket 26004.
11141   o Minor features (entry guards):
11142     - Introduce a new torrc option NumPrimaryGuards for controlling the
11143       number of primary guards. Closes ticket 25843.
11145   o Minor features (geoip):
11146     - Update geoip and geoip6 to the May 1 2018 Maxmind GeoLite2 Country
11147       database. Closes ticket 26104.
11149   o Minor features (performance):
11150     - Avoid a needless call to malloc() when processing an incoming
11151       relay cell. Closes ticket 24914.
11152     - Make our timing-wheel code run a tiny bit faster on 32-bit
11153       platforms, by preferring 32-bit math to 64-bit. Closes
11154       ticket 24688.
11155     - Avoid a needless malloc()/free() pair every time we handle an ntor
11156       handshake. Closes ticket 25150.
11158   o Minor features (testing):
11159     - Add a unit test for voting_schedule_get_start_of_next_interval().
11160       Closes ticket 26014, and helps make unit test coverage
11161       more deterministic.
11162     - A new unittests module specifically for testing the functions in
11163       the (new-ish) bridges.c module has been created with new
11164       unittests, raising the code coverage percentages. Closes 25425.
11165     - We now have improved testing for addressmap_get_virtual_address()
11166       function. This should improve our test coverage, and make our test
11167       coverage more deterministic. Closes ticket 25993.
11169   o Minor features (timekeeping, circuit scheduling):
11170     - When keeping track of how busy each circuit have been recently on
11171       a given connection, use coarse-grained monotonic timers rather
11172       than gettimeofday(). This change should marginally increase
11173       accuracy and performance. Implements part of ticket 25927.
11175   o Minor bugfixes (bandwidth management):
11176     - Consider ourselves "low on write bandwidth" if we have exhausted
11177       our write bandwidth some time in the last second. This was the
11178       documented behavior before, but the actual behavior was to change
11179       this value every TokenBucketRefillInterval. Fixes bug 25828;
11180       bugfix on 0.2.3.5-alpha.
11182   o Minor bugfixes (C correctness):
11183     - Add a missing lock acquisition in the shutdown code of the control
11184       subsystem. Fixes bug 25675; bugfix on 0.2.7.3-rc. Found by
11185       Coverity; this is CID 1433643.
11187   o Minor bugfixes (circuit path selection):
11188     - Don't count path selection failures as circuit build failures.
11189       This change should eliminate cases where Tor blames its guard or
11190       the network for situations like insufficient microdescriptors
11191       and/or overly restrictive torrc settings. Fixes bug 25705; bugfix
11192       on 0.3.3.1-alpha.
11194   o Minor bugfixes (client):
11195     - Don't consider Tor running as a client if the ControlPort is open,
11196       but no actual client ports are open. Fixes bug 26062; bugfix
11197       on 0.2.9.4-alpha.
11199   o Minor bugfixes (code style):
11200     - Fixed multiple includes of transports.h in src/or/connection.c
11201       Fixes bug 25261; bugfix on 0.2.5.1-alpha.
11202     - Remove the unused variable n_possible from the function
11203       channel_get_for_extend(). Fixes bug 25645; bugfix on 0.2.4.4-alpha
11205   o Minor bugfixes (control interface):
11206     - Respond with more human-readable error messages to GETINFO exit-
11207       policy/* requests. Also, let controller know if an error is
11208       transient (response code 551) or not (response code 552). Fixes
11209       bug 25852; bugfix on 0.2.8.1-alpha.
11211   o Minor bugfixes (controller):
11212     - Make CIRC_BW event reflect the total of all data sent on a
11213       circuit, including padding and dropped cells. Also fix a mis-
11214       counting bug when STREAM_BW events were enabled. Fixes bug 25400;
11215       bugfix on 0.2.5.2-alpha.
11217   o Minor bugfixes (correctness, client):
11218     - Upon receiving a malformed connected cell, stop processing the cell
11219       immediately.  Previously we would mark the connection for close, but
11220       continue processing the cell as if the connection were open. Fixes bug
11221       26072; bugfix on 0.2.4.7-alpha.
11223   o Minor bugfixes (directory client):
11224     - When unverified-consensus is verified, rename it to cached-
11225       consenus. Fixes bug 4187; bugfix on 0.2.0.3-alpha.
11226     - Fixed launching a certificate fetch always during the scheduled
11227       periodic consensus fetch by fetching only in those cases when
11228       consensus are waiting for certs. Fixes bug 24740; bugfix
11229       on 0.2.9.1-alpha.
11231   o Minor bugfixes (documentation):
11232     - Stop saying in the manual that clients cache ipv4 dns answers from
11233       exit relays. We haven't used them since 0.2.6.3-alpha, and in
11234       ticket 24050 we stopped even caching them as of 0.3.2.6-alpha, but
11235       we forgot to say so in the man page. Fixes bug 26052; bugfix
11236       on 0.3.2.6-alpha.
11238   o Minor bugfixes (error reporting):
11239     - Improve tolerance for directory authorities with skewed clocks.
11240       Previously, an authority with a clock more than 60 seconds ahead
11241       could cause a client with a correct clock to warn that the
11242       client's clock was behind. Now the clocks of a majority of
11243       directory authorities have to be ahead of the client before this
11244       warning will occur. Fixes bug 25756; bugfix on 0.2.2.25-alpha.
11246   o Minor bugfixes (Linux seccomp2 sandbox):
11247     - Allow the nanosleep() system call, which glibc uses to implement
11248       sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha.
11250   o Minor bugfixes (onion service):
11251     - Fix a memory leak when a v3 onion service is configured and gets a
11252       SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha.
11253     - When parsing the descriptor signature, look for the token plus an
11254       extra white-space at the end. This is more correct but also will
11255       allow us to support new fields that might start with "signature".
11256       Fixes bug 26069; bugfix on 0.3.0.1-alpha.
11258   o Minor bugfixes (path selection):
11259     - Only select relays when they have the descriptors we prefer to use
11260       for them. This change fixes a bug where we could select a relay
11261       because it had _some_ descriptor, but reject it later with a
11262       nonfatal assertion error because it didn't have the exact one we
11263       wanted. Fixes bugs 25691 and 25692; bugfix on 0.3.3.4-alpha.
11265   o Minor bugfixes (portability):
11266     - Do not align mmap length, as it is not required by POSIX, and the
11267       getpagesize function is deprecated. Fixes bug 25399; bugfix
11268       on 0.1.1.23.
11270   o Minor bugfixes (portability, FreeBSD):
11271     - In have_enough_mem_for_dircache(), the variable DIRCACHE_MIN_MEM_MB
11272       does not stringify on FreeBSD, so we switch to tor_asprintf().
11273       Fixes bug 20887; bugfix on 0.2.8.1-alpha. Patch by Neel Chauhan.
11275   o Minor bugfixes (relay statistics):
11276     - When a relay is collecting internal statistics about how many
11277       create cell requests it has seen of each type, accurately count
11278       the requests from relays that temporarily fall out of the
11279       consensus. (To be extra conservative, we were already ignoring
11280       requests from clients in our counts, and we continue ignoring them
11281       here.) Fixes bug 24910; bugfix on 0.2.4.17-rc.
11283   o Minor bugfixes (relay, crash):
11284     - Avoid a crash when running with DirPort set but ORPort turned off.
11285       Fixes a case of bug 23693; bugfix on 0.3.1.1-alpha.
11287   o Minor bugfixes (restart-in-process):
11288     - When shutting down, Tor now clears all the flags in the control.c
11289       module. This should prevent a bug where authentication cookies are
11290       not generated on restart. Fixes bug 25512; bugfix on 0.3.3.1-alpha.
11292   o Minor bugfixes (testing):
11293     - When testing workqueue event-cancellation, make sure that we
11294       actually cancel an event, and that cancel each event with equal
11295       probability. (It was previously possible, though extremely
11296       unlikely, for our event-canceling test not to cancel any events.)
11297       Fixes bug 26008; bugfix on 0.2.6.3-alpha.
11298     - Repeat part of the test in test_client_pick_intro() a number of
11299       times, to give it consistent coverage. Fixes bug 25996; bugfix
11300       on 0.3.2.1-alpha.
11301     - Remove randomness from the hs_common/responsible_hsdirs test, so
11302       that it always takes the same path through the function it tests.
11303       Fixes bug 25997; bugfix on 0.3.2.1-alpha.
11304     - Change the behavior of the "channel/outbound" test so that it
11305       never causes a 10-second rollover for the EWMA circuitmux code.
11306       Previously, this behavior would happen randomly, and result in
11307       fluctuating test coverage. Fixes bug 25994; bugfix
11308       on 0.3.3.1-alpha.
11309     - Use X509_new() to allocate certificates that will be freed later
11310       with X509_free(). Previously, some parts of the unit tests had
11311       used tor_malloc_zero(), which is incorrect, and which caused test
11312       failures on Windows when they were built with extra hardening.
11313       Fixes bugs 25943 and 25944; bugfix on 0.2.8.1-alpha. Patch by
11314       Marcin Cieślak.
11315     - While running the circuit_timeout test, fix the PRNG to a
11316       deterministic AES stream, so that the test coverage from this test
11317       will itself be deterministic. Fixes bug 25995; bugfix
11318       on 0.2.2.2-alpha.
11320   o Minor bugfixes (vanguards):
11321     - Allow the last hop in a vanguard circuit to be the same as our
11322       first, to prevent the adversary from influencing guard node choice
11323       by choice of last hop. Also prevent the creation of A - B - A
11324       paths, or A - A paths, which are forbidden by relays. Fixes bug
11325       25870; bugfix on 0.3.3.1-alpha.
11327   o Code simplification and refactoring:
11328     - Remove duplicate code in parse_{c,s}method_line and bootstrap
11329       their functionalities into a single function. Fixes bug 6236;
11330       bugfix on 0.2.3.6-alpha.
11331     - We remove the PortForwarding and PortForwardingHelper options,
11332       related functions, and the port_forwarding tests. These options
11333       were used by the now-deprecated Vidalia to help ordinary users
11334       become Tor relays or bridges. Closes ticket 25409. Patch by
11335       Neel Chauhan.
11336     - In order to make the OR and dir checking function in router.c less
11337       confusing we renamed some functions and
11338       consider_testing_reachability() has been split into
11339       router_should_check_reachability() and
11340       router_do_reachability_checks(). Also we improved the documentation
11341       in some functions. Closes ticket 18918.
11342     - Initial work to isolate Libevent usage to a handful of modules in
11343       our codebase, to simplify our call structure, and so that we can
11344       more easily change event loops in the future if needed. Closes
11345       ticket 23750.
11346     - Introduce a function to call getsockname() and return tor_addr_t,
11347       to save a little complexity throughout the codebase. Closes
11348       ticket 18105.
11349     - Make hsdir_index in node_t a hsdir_index_t rather than a pointer
11350       as hsdir_index is always present. Also, we move hsdir_index_t into
11351       or.h. Closes ticket 23094. Patch by Neel Chauhan.
11352     - Merge functions used for describing nodes and suppress the
11353       functions that do not allocate memory for the output buffer
11354       string. NODE_DESC_BUF_LEN constant and format_node_description()
11355       function cannot be used externally from router.c module anymore.
11356       Closes ticket 25432. Patch by valentecaio.
11357     - Our main loop has been simplified so that all important operations
11358       happen inside events. Previously, some operations had to happen
11359       outside the event loop, to prevent infinite sequences of event
11360       activations. Closes ticket 25374.
11361     - Put a SHA1 public key digest in hs_service_intro_point_t, and use
11362       it in register_intro_circ() and service_intro_point_new(). This
11363       prevents the digest from being re-calculated each time. Closes
11364       ticket 23107. Patch by Neel Chauhan.
11365     - Refactor token-bucket implementations to use a common backend.
11366       Closes ticket 25766.
11367     - Remove extern declaration of stats_n_seconds_working variable from
11368       main, protecting its accesses with get_uptime() and reset_uptime()
11369       functions. Closes ticket 25081, patch by “valentecaio”.
11370     - Remove our previous logic for "cached gettimeofday()" -- our
11371       coarse monotonic timers are fast enough for this purpose, and far
11372       less error-prone. Implements part of ticket 25927.
11373     - Remove the return value for fascist_firewall_choose_address_base(),
11374       and sister functions such as fascist_firewall_choose_address_node()
11375       and fascist_firewall_choose_address_rs(). Also, while we're here,
11376       initialize the ap argument as leaving it uninitialized can pose a
11377       security hazard. Closes ticket 24734. Patch by Neel Chauhan.
11378     - Rename two fields of connection_t struct. timestamp_lastwritten is
11379       renamed to timestamp_last_write_allowed and timestamp_lastread is
11380       renamed to timestamp_last_read_allowed. Closes ticket 24714, patch
11381       by "valentecaio".
11382     - Since Tor requires C99, remove our old workaround code for libc
11383       implementations where free(NULL) doesn't work. Closes ticket 24484.
11384     - Use our standard rate-limiting code to deal with excessive
11385       libevent failures, rather than the hand-rolled logic we had
11386       before. Closes ticket 26016.
11387     - We remove the return value of node_get_prim_orport() and
11388       node_get_prim_dirport(), and introduce node_get_prim_orport() in
11389       node_ipv6_or_preferred() and node_ipv6_dir_preferred() in order to
11390       check for a null address. Closes ticket 23873. Patch by
11391       Neel Chauhan.
11392     - We switch to should_record_bridge_info() in
11393       geoip_note_client_seen() and options_need_geoip_info() instead of
11394       accessing the configuration values directly. Fixes bug 25290;
11395       bugfix on 0.2.1.6-alpha. Patch by Neel Chauhan.
11397   o Deprecated features:
11398     - As we are not recommending 0.2.5 anymore, we require relays that
11399       once had an ed25519 key associated with their RSA key to always
11400       have that key, instead of allowing them to drop back to a version
11401       that didn't support ed25519. This means they need to use a new RSA
11402       key if they want to downgrade to an older version of tor without
11403       ed25519. Closes ticket 20522.
11405   o Documentation:
11406     - Correct an IPv6 error in the documentation for ExitPolicy. Closes
11407       ticket 25857. Patch from "CTassisF".
11409   o Removed features:
11410     - Directory authorities will no longer support voting according to
11411       any consensus method before consensus method 25. This keeps
11412       authorities compatible with all authorities running 0.2.9.8 and
11413       later, and does not break any clients or relays. Implements ticket
11414       24378 and proposal 290.
11415     - The PortForwarding and PortForwardingHelper features have been
11416       removed. The reasoning is, given that implementations of NAT
11417       traversal protocols within common consumer grade routers are
11418       frequently buggy, and that the target audience for a NAT punching
11419       feature is a perhaps less-technically-inclined relay operator,
11420       when the helper fails to setup traversal the problems are usually
11421       deep, ugly, and very router specific, making them horrendously
11422       impossible for technical support to reliable assist with, and thus
11423       resulting in frustration all around. Unfortunately, relay
11424       operators who would like to run relays behind NATs will need to
11425       become more familiar with the port forwarding configurations on
11426       their local router. Closes 25409.
11427     - The TestingEnableTbEmptyEvent option has been removed. It was used
11428       in testing simulations to measure how often connection buckets
11429       were emptied, in order to improve our scheduling, but it has not
11430       been actively used in years. Closes ticket 25760.
11431     - The old "round-robin" circuit multiplexer (circuitmux)
11432       implementation has been removed, along with a fairly large set of
11433       code that existed to support it. It has not been the default
11434       circuitmux since we introduced the "EWMA" circuitmux in 0.2.4.x,
11435       but it still required an unreasonable amount of memory and CPU.
11436       Closes ticket 25268.
11439 Changes in version 0.3.3.5-rc - 2018-04-15
11440   Tor 0.3.3.5-rc fixes various bugs in earlier versions of Tor,
11441   including some that could affect reliability or correctness.
11443   This is the first release candidate in the 0.3.3 series. If we find no
11444   new bugs or regression here, then the first stable 0.3.3 release will
11445   be nearly identical to this one.
11447   o Major bugfixes (security, protover, voting):
11448     - Revise Rust implementation of protover to use a more memory-
11449       efficient voting algorithm and corresponding data structures, thus
11450       avoiding a potential memory-based DoS attack where specially
11451       crafted protocol strings would expand to fill available memory.
11452       Fixes bug 24031; bugfix on 0.3.3.1-alpha.
11454   o Major bugfixes (performance, load balancing):
11455     - Directory authorities no longer vote in favor of the Guard flag
11456       for relays without directory support. Starting in Tor
11457       0.3.0.1-alpha, clients have been avoiding using such relays in the
11458       Guard position, leading to increasingly broken load balancing for
11459       the 5%-or-so of Guards that don't advertise directory support.
11460       Fixes bug 22310; bugfix on 0.3.0.6.
11462   o Minor feature (continuous integration):
11463     - Update the Travis CI configuration to use the stable Rust channel,
11464       now that we have decided to require that. Closes ticket 25714.
11466   o Minor features (config options):
11467     - Change the way the default value for MaxMemInQueues is calculated.
11468       We now use 40% of the hardware RAM if the system has 8 GB RAM or
11469       more. Otherwise we use the former value of 75%. Closes
11470       ticket 24782.
11472   o Minor features (geoip):
11473     - Update geoip and geoip6 to the April 3 2018 Maxmind GeoLite2
11474       Country database. Closes ticket 25718.
11476   o Minor bugfixes (client):
11477     - When using a listed relay as a bridge, and also using
11478       microdescriptors, and considering that relay as a non-bridge in a
11479       circuit, treat its microdescriptor as a valid source of
11480       information about that relay. This change should prevent a non-
11481       fatal assertion error. Fixes bug 25691; bugfix on 0.3.3.4-alpha.
11483   o Minor bugfixes (controller):
11484     - Restore the correct operation of the RESOLVE command, which had
11485       been broken since we added the ability to enable/disable DNS on
11486       specific listener ports. Fixes bug 25617; bugfix on 0.2.9.3-alpha.
11488   o Minor bugfixes (distribution, compilation, rust):
11489     - Build correctly when the rust dependencies submodule is loaded,
11490       but the TOR_RUST_DEPENDENCIES environment variable is not set.
11491       Fixes bug 25679; bugfix on 0.3.3.1-alpha.
11492     - Actually include all of our Rust source in our source
11493       distributions. (Previously, a few of the files were accidentally
11494       omitted.) Fixes bug 25732; bugfix on 0.3.3.2-alpha.
11496   o Minor bugfixes (documentation):
11497     - Document that the PerConnBW{Rate,Burst} options will fall back to
11498       their corresponding consensus parameters only if those parameters
11499       are set. Previously we had claimed that these values would always
11500       be set in the consensus. Fixes bug 25296; bugfix on 0.2.2.7-alpha.
11501     - Revert a misformatting issue in the ExitPolicy documentation.
11502       Fixes bug 25582; bugfix on 0.3.3.1-alpha.
11504   o Minor bugfixes (exit relay DNS retries):
11505     - Re-attempt timed-out DNS queries 3 times before failure, since our
11506       timeout is 5 seconds for them, but clients wait 10-15. Also allow
11507       slightly more timeouts per resolver when an exit has multiple
11508       resolvers configured. Fixes bug 21394; bugfix on 0.3.1.9.
11510   o Minor bugfixes (onion services):
11511     - Re-instate counting the client HSDir fetch circuits against the
11512       MaxClientCircuitsPending rate limit. Fixes bug 24989; bugfix
11513       on 0.3.3.1-alpha.
11514     - Remove underscores from the _HSLayer{2,3}Nodes options. This
11515       expert-user configuration can now be enabled as HSLayer{2,3}Nodes.
11516       Fixes bug 25581; bugfix on 0.3.3.1-alpha
11518   o Code simplification and refactoring:
11519     - Move the list of default directory authorities to its own file.
11520       Closes ticket 24854. Patch by "beastr0".
11522   o Documentation (manpage, denial of service):
11523     - Provide more detail about the denial-of-service options, by
11524       listing each mitigation and explaining how they relate. Closes
11525       ticket 25248.
11528 Changes in version 0.3.3.4-alpha - 2018-03-29
11529   Tor 0.3.3.4-alpha includes various bugfixes for issues found during
11530   the alpha testing of earlier releases in its series. We are
11531   approaching a stable 0.3.3.4-alpha release: more testing is welcome!
11533   o New system requirements:
11534     - When built with Rust, Tor now depends on version 0.2.39 of the
11535       libc crate. Closes tickets 25310 and 25664.
11537   o Major bugfixes (relay, connection):
11538     - If we have failed to connect to a relay and received a connection
11539       refused, timeout, or similar error (at the TCP level), do not try
11540       that same address/port again for 60 seconds after the failure has
11541       occurred. Fixes bug 24767; bugfix on 0.0.6.
11543   o Minor features (geoip):
11544     - Update geoip and geoip6 to the March 8 2018 Maxmind GeoLite2
11545       Country database. Closes ticket 25469.
11547   o Minor features (log messages):
11548     - Improve log message in the out-of-memory handler to include
11549       information about memory usage from the different compression
11550       backends. Closes ticket 25372.
11552   o Minor features (sandbox):
11553     - Explicitly permit the poll() system call when the Linux
11554       seccomp2-based sandbox is enabled: apparently, some versions of
11555       libc use poll() when calling getpwnam(). Closes ticket 25313.
11557   o Minor bugfixes (C correctness):
11558     - Fix a very unlikely (impossible, we believe) null pointer
11559       dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by
11560       Coverity; this is CID 1430932.
11562   o Minor bugfixes (channel, client):
11563     - Better identify client connection when reporting to the geoip
11564       client cache. Fixes bug 24904; bugfix on 0.3.1.7.
11566   o Minor bugfixes (compilation):
11567     - Fix a C99 compliance issue in our configuration script that caused
11568       compilation issues when compiling Tor with certain versions of
11569       xtools. Fixes bug 25474; bugfix on 0.3.2.5-alpha.
11571   o Minor bugfixes (controller, reliability):
11572     - Avoid a (nonfatal) assertion failure when extending a one-hop
11573       circuit from the controller to become a multihop circuit. Fixes
11574       bug 24903; bugfix on 0.2.5.2-alpha.
11576   o Major bugfixes (networking):
11577     - Tor will no longer reject IPv6 address strings from Tor Browser
11578       when they are passed as hostnames in SOCKS5 requests. Fixes bug
11579       25036, bugfix on Tor 0.3.1.2.
11581   o Minor bugfixes (networking):
11582     - string_is_valid_hostname() will not consider IP strings to be
11583       valid hostnames. Fixes bug 25055; bugfix on Tor 0.2.5.5.
11585   o Minor bugfixes (onion service v3):
11586     - Avoid an assertion failure when the next onion service
11587       descriptor rotation type is out of sync with the consensus's
11588       valid-after time. Instead, log a warning message with extra
11589       information, so we can better hunt down the cause of this
11590       assertion. Fixes bug 25306; bugfix on 0.3.2.1-alpha.
11592   o Minor bugfixes (testing):
11593     - Avoid intermittent test failures due to a test that had relied on
11594       onion service introduction point creation finishing within 5
11595       seconds of real clock time. Fixes bug 25450; bugfix
11596       on 0.3.1.3-alpha.
11597     - Rust crates are now automatically detected and tested. Previously,
11598       some crates were not tested by `make test-rust` due to a static
11599       string in the `src/test/test_rust.sh` script specifying which
11600       crates to test. Fixes bug 25560; bugfix on 0.3.3.3-alpha.
11602   o Minor bugfixes (testing, benchmarks):
11603     - Fix a crash when running benchmark tests on win32 systems. The
11604       crash was due to a mutex that wasn't initialized before logging
11605       and options were initialized. Fixes bug 25479; bugfix
11606       on 0.3.3.3-alpha.
11608   o Minor bugfixes (warnings, ipv6):
11609     - Avoid a bug warning that could occur when trying to connect to a
11610       relay over IPv6. This warning would occur on a Tor instance that
11611       downloads router descriptors, but prefers to use microdescriptors.
11612       Fixes bug 25213; bugfix on 0.3.3.1-alpha.
11614   o Code simplification and refactoring:
11615     - Remove the old (deterministic) directory retry logic entirely:
11616       We've used exponential backoff exclusively for some time. Closes
11617       ticket 23814.
11619   o Documentation:
11620     - Improved the documentation of AccountingStart parameter. Closes
11621       ticket 23635.
11622     - Update the documentation for "Log" to include the current list of
11623       logging domains. Closes ticket 25378.
11626 Changes in version 0.3.1.10 - 2018-03-03
11627   Tor 0.3.1.10 backports a number of bugfixes, including important fixes for
11628   security issues.
11630   It includes an important security fix for a remote crash attack
11631   against directory authorities, tracked as TROVE-2018-001.
11633   This release also backports our new system for improved resistance to
11634   denial-of-service attacks against relays.
11636   This release also fixes several minor bugs and annoyances from
11637   earlier releases.
11639   All directory authorities should upgrade to one of the versions
11640   released today. Relays running 0.3.1.x may wish to update to one of
11641   the versions released today, for the DoS mitigations.
11643   Please note: according to our release calendar, Tor 0.3.1 will no
11644   longer be supported after 1 July 2018. If you will be running Tor
11645   after that date, you should make sure to plan to upgrade to the latest
11646   stable version, or downgrade to 0.2.9 (which will receive long-term
11647   support).
11649   o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha):
11650     - Fix a protocol-list handling bug that could be used to remotely crash
11651       directory authorities with a null-pointer exception. Fixes bug 25074;
11652       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
11653       CVE-2018-0490.
11655   o Major features (denial-of-service mitigation, backport from 0.3.3.2-alpha):
11656     - Give relays some defenses against the recent network overload. We
11657       start with three defenses (default parameters in parentheses).
11658       First: if a single client address makes too many concurrent
11659       connections (>100), hang up on further connections. Second: if a
11660       single client address makes circuits too quickly (more than 3 per
11661       second, with an allowed burst of 90) while also having too many
11662       connections open (3), refuse new create cells for the next while
11663       (1-2 hours). Third: if a client asks to establish a rendezvous
11664       point to you directly, ignore the request. These defenses can be
11665       manually controlled by new torrc options, but relays will also
11666       take guidance from consensus parameters, so there's no need to
11667       configure anything manually. Implements ticket 24902.
11669   o Minor features (linux seccomp2 sandbox, backport from 0.3.2.5-alpha):
11670     - Update the sandbox rules so that they should now work correctly
11671       with Glibc 2.26. Closes ticket 24315.
11673   o Major bugfixes (onion services, retry behavior, backport from 0.3.3.1-alpha):
11674     - Fix an "off by 2" error in counting rendezvous failures on the
11675       onion service side. While we thought we would stop the rendezvous
11676       attempt after one failed circuit, we were actually making three
11677       circuit attempts before giving up. Now switch to a default of 2,
11678       and allow the consensus parameter "hs_service_max_rdv_failures" to
11679       override. Fixes bug 24895; bugfix on 0.0.6.
11681   o Major bugfixes (protocol versions, backport from 0.3.3.2-alpha):
11682     - Add Link protocol version 5 to the supported protocols list. Fixes
11683       bug 25070; bugfix on 0.3.1.1-alpha.
11685   o Major bugfixes (relay, backport from 0.3.3.1-alpha):
11686     - Fix a set of false positives where relays would consider
11687       connections to other relays as being client-only connections (and
11688       thus e.g. deserving different link padding schemes) if those
11689       relays fell out of the consensus briefly. Now we look only at the
11690       initial handshake and whether the connection authenticated as a
11691       relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha.
11693   o Minor features (denial-of-service avoidance, backport from 0.3.3.2-alpha):
11694     - Make our OOM handler aware of the geoip client history cache so it
11695       doesn't fill up the memory. This check is important for IPv6 and
11696       our DoS mitigation subsystem. Closes ticket 25122.
11698   o Minor feature (relay statistics, backport from 0.3.2.6-alpha):
11699     - Change relay bandwidth reporting stats interval from 4 hours to 24
11700       hours in order to reduce the efficiency of guard discovery
11701       attacks. Fixes ticket 23856.
11703   o Minor features (compatibility, OpenSSL, backport from 0.3.3.3-alpha):
11704     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
11705       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
11706       since they neither disabled TLS 1.3 nor enabled any of the
11707       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
11708       Closes ticket 24978.
11710   o Minor features (fallback directory mirrors, backport from 0.3.2.9):
11711     - The fallback directory list has been re-generated based on the
11712       current status of the network. Tor uses fallback directories to
11713       bootstrap when it doesn't yet have up-to-date directory
11714       information. Closes ticket 24801.
11715     - Make the default DirAuthorityFallbackRate 0.1, so that clients
11716       prefer to bootstrap from fallback directory mirrors. This is a
11717       follow-up to 24679, which removed weights from the default
11718       fallbacks. Implements ticket 24681.
11720   o Minor features (geoip):
11721     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
11722       Country database.
11724   o Minor bugfix (channel connection, backport from 0.3.3.2-alpha):
11725     - Use the actual observed address of an incoming relay connection,
11726       not the canonical address of the relay from its descriptor, when
11727       making decisions about how to handle the incoming connection.
11728       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
11730   o Minor bugfix (directory authority, backport from 0.3.3.2-alpha):
11731     - Directory authorities, when refusing a descriptor from a rejected
11732       relay, now explicitly tell the relay (in its logs) to set a valid
11733       ContactInfo address and contact the bad-relays@ mailing list.
11734       Fixes bug 25170; bugfix on 0.2.9.1.
11736   o Minor bugfixes (address selection, backport from 0.3.2.9):
11737     - When the fascist_firewall_choose_address_ functions don't find a
11738       reachable address, set the returned address to the null address
11739       and port. This is a precautionary measure, because some callers do
11740       not check the return value. Fixes bug 24736; bugfix
11741       on 0.2.8.2-alpha.
11743   o Major bugfixes (bootstrapping, backport from 0.3.2.5-alpha):
11744     - Fetch descriptors aggressively whenever we lack enough to build
11745       circuits, regardless of how many descriptors we are missing.
11746       Previously, we would delay launching the fetch when we had fewer
11747       than 15 missing descriptors, even if some of those descriptors
11748       were blocking circuits from building. Fixes bug 23985; bugfix on
11749       0.1.1.11-alpha. The effects of this bug became worse in
11750       0.3.0.3-alpha, when we began treating missing descriptors from our
11751       primary guards as a reason to delay circuits.
11752     - Don't try fetching microdescriptors from relays that have failed
11753       to deliver them in the past. Fixes bug 23817; bugfix
11754       on 0.3.0.1-alpha.
11756   o Minor bugfixes (compilation, backport from 0.3.2.7-rc):
11757     - Fix a signed/unsigned comparison warning introduced by our fix to
11758       TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16.
11760   o Minor bugfixes (control port, linux seccomp2 sandbox, backport from 0.3.2.5-alpha):
11761     - Avoid a crash when attempting to use the seccomp2 sandbox together
11762       with the OwningControllerProcess feature. Fixes bug 24198; bugfix
11763       on 0.2.5.1-alpha.
11765   o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha):
11766     - Fix a possible crash on malformed consensus. If a consensus had
11767       contained an unparseable protocol line, it could have made clients
11768       and relays crash with a null-pointer exception. To exploit this
11769       issue, however, an attacker would need to be able to subvert the
11770       directory authority system. Fixes bug 25251; bugfix on
11771       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
11773   o Minor bugfixes (directory cache, backport from 0.3.2.5-alpha):
11774     - Recover better from empty or corrupt files in the consensus cache
11775       directory. Fixes bug 24099; bugfix on 0.3.1.1-alpha.
11776     - When a consensus diff calculation is only partially successful,
11777       only record the successful parts as having succeeded. Partial
11778       success can happen if (for example) one compression method fails
11779       but the others succeed. Previously we misrecorded all the
11780       calculations as having succeeded, which would later cause a
11781       nonfatal assertion failure. Fixes bug 24086; bugfix
11782       on 0.3.1.1-alpha.
11784   o Minor bugfixes (entry guards, backport from 0.3.2.3-alpha):
11785     - Tor now updates its guard state when it reads a consensus
11786       regardless of whether it's missing descriptors. That makes tor use
11787       its primary guards to fetch descriptors in some edge cases where
11788       it would previously have used fallback directories. Fixes bug
11789       23862; bugfix on 0.3.0.1-alpha.
11791   o Minor bugfixes (logging, backport from 0.3.3.2-alpha):
11792     - Don't treat inability to store a cached consensus object as a bug:
11793       it can happen normally when we are out of disk space. Fixes bug
11794       24859; bugfix on 0.3.1.1-alpha.
11796   o Minor bugfixes (memory usage, backport from 0.3.2.8-rc):
11797     - When queuing DESTROY cells on a channel, only queue the circuit-id
11798       and reason fields: not the entire 514-byte cell. This fix should
11799       help mitigate any bugs or attacks that fill up these queues, and
11800       free more RAM for other uses. Fixes bug 24666; bugfix
11801       on 0.2.5.1-alpha.
11803   o Minor bugfixes (network layer, backport from 0.3.2.5-alpha):
11804     - When closing a connection via close_connection_immediately(), we
11805       mark it as "not blocked on bandwidth", to prevent later calls from
11806       trying to unblock it, and give it permission to read. This fixes a
11807       backtrace warning that can happen on relays under various
11808       circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc.
11810   o Minor bugfixes (path selection, backport from 0.3.2.4-alpha):
11811     - When selecting relays by bandwidth, avoid a rounding error that
11812       could sometimes cause load to be imbalanced incorrectly.
11813       Previously, we would always round upwards; now, we round towards
11814       the nearest integer. This had the biggest effect when a relay's
11815       weight adjustments should have given it weight 0, but it got
11816       weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha.
11817     - When calculating the fraction of nodes that have descriptors, and
11818       all nodes in the network have zero bandwidths, count the number of
11819       nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha.
11820     - Actually log the total bandwidth in compute_weighted_bandwidths().
11821       Fixes bug 24170; bugfix on 0.2.4.3-alpha.
11823   o Minor bugfixes (performance, fragile-hardening, backport from 0.3.3.1-alpha):
11824     - Improve the performance of our consensus-diff application code
11825       when Tor is built with the --enable-fragile-hardening option set.
11826       Fixes bug 24826; bugfix on 0.3.1.1-alpha.
11828   o Minor bugfixes (OSX, backport from 0.3.3.1-alpha):
11829     - Don't exit the Tor process if setrlimit() fails to change the file
11830       limit (which can happen sometimes on some versions of OSX). Fixes
11831       bug 21074; bugfix on 0.0.9pre5.
11833   o Minor bugfixes (portability, msvc, backport from 0.3.2.9):
11834     - Fix a bug in the bit-counting parts of our timing-wheel code on
11835       MSVC. (Note that MSVC is still not a supported build platform, due
11836       to cyptographic timing channel risks.) Fixes bug 24633; bugfix
11837       on 0.2.9.1-alpha.
11839   o Minor bugfixes (relay, partial backport):
11840     - Make the internal channel_is_client() function look at what sort
11841       of connection handshake the other side used, rather than whether
11842       the other side ever sent a create_fast cell to us. Backports part
11843       of the fixes from bugs 22805 and 24898.
11845   o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha):
11846     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
11847       0.2.9.4-alpha.
11848     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
11849       bugfix on 0.2.9.4-alpha.
11851   o Code simplification and refactoring (backport from 0.3.3.3-alpha):
11852     - Update the "rust dependencies" submodule to be a project-level
11853       repository, rather than a user repository. Closes ticket 25323.
11856 Changes in version 0.2.9.15 - 2018-03-03
11857   Tor 0.2.9.15 backports important security and stability bugfixes from
11858   later Tor releases.
11860   It includes an important security fix for a remote crash attack
11861   against directory authorities, tracked as TROVE-2018-001.
11863   This release also backports our new system for improved resistance to
11864   denial-of-service attacks against relays.
11866   This release also fixes several minor bugs and annoyances from
11867   earlier releases.
11869   All directory authorities should upgrade to one of the versions
11870   released today. Relays running 0.2.9.x may wish to update to one of
11871   the versions released today, for the DoS mitigations.
11873   o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha):
11874     - Fix a protocol-list handling bug that could be used to remotely crash
11875       directory authorities with a null-pointer exception. Fixes bug 25074;
11876       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
11877       CVE-2018-0490.
11879   o Major features (denial-of-service mitigation):
11880     - Give relays some defenses against the recent network overload. We
11881       start with three defenses (default parameters in parentheses).
11882       First: if a single client address makes too many concurrent
11883       connections (>100), hang up on further connections. Second: if a
11884       single client address makes circuits too quickly (more than 3 per
11885       second, with an allowed burst of 90) while also having too many
11886       connections open (3), refuse new create cells for the next while
11887       (1-2 hours). Third: if a client asks to establish a rendezvous
11888       point to you directly, ignore the request. These defenses can be
11889       manually controlled by new torrc options, but relays will also
11890       take guidance from consensus parameters, so there's no need to
11891       configure anything manually. Implements ticket 24902.
11893   o Major bugfixes (bootstrapping):
11894     - Fetch descriptors aggressively whenever we lack enough to build
11895       circuits, regardless of how many descriptors we are missing.
11896       Previously, we would delay launching the fetch when we had fewer
11897       than 15 missing descriptors, even if some of those descriptors
11898       were blocking circuits from building. Fixes bug 23985; bugfix on
11899       0.1.1.11-alpha. The effects of this bug became worse in
11900       0.3.0.3-alpha, when we began treating missing descriptors from our
11901       primary guards as a reason to delay circuits.
11903   o Major bugfixes (onion services, retry behavior):
11904     - Fix an "off by 2" error in counting rendezvous failures on the
11905       onion service side. While we thought we would stop the rendezvous
11906       attempt after one failed circuit, we were actually making three
11907       circuit attempts before giving up. Now switch to a default of 2,
11908       and allow the consensus parameter "hs_service_max_rdv_failures" to
11909       override. Fixes bug 24895; bugfix on 0.0.6.
11911   o Minor feature (relay statistics):
11912     - Change relay bandwidth reporting stats interval from 4 hours to 24
11913       hours in order to reduce the efficiency of guard discovery
11914       attacks. Fixes ticket 23856.
11916   o Minor features (compatibility, OpenSSL):
11917     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
11918       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
11919       since they neither disabled TLS 1.3 nor enabled any of the
11920       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
11921       Closes ticket 24978.
11923   o Minor features (denial-of-service avoidance):
11924     - Make our OOM handler aware of the geoip client history cache so it
11925       doesn't fill up the memory. This check is important for IPv6 and
11926       our DoS mitigation subsystem. Closes ticket 25122.
11928   o Minor features (fallback directory mirrors):
11929     - The fallback directory list has been re-generated based on the
11930       current status of the network. Tor uses fallback directories to
11931       bootstrap when it doesn't yet have up-to-date directory
11932       information. Closes ticket 24801.
11933     - Make the default DirAuthorityFallbackRate 0.1, so that clients
11934       prefer to bootstrap from fallback directory mirrors. This is a
11935       follow-up to 24679, which removed weights from the default
11936       fallbacks. Implements ticket 24681.
11938   o Minor features (geoip):
11939     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
11940       Country database.
11942   o Minor features (linux seccomp2 sandbox):
11943     - Update the sandbox rules so that they should now work correctly
11944       with Glibc 2.26. Closes ticket 24315.
11946   o Minor bugfix (channel connection):
11947     - Use the actual observed address of an incoming relay connection,
11948       not the canonical address of the relay from its descriptor, when
11949       making decisions about how to handle the incoming connection.
11950       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
11952   o Minor bugfix (directory authority):
11953     - Directory authorities, when refusing a descriptor from a rejected
11954       relay, now explicitly tell the relay (in its logs) to set a valid
11955       ContactInfo address and contact the bad-relays@ mailing list.
11956       Fixes bug 25170; bugfix on 0.2.9.1.
11958   o Minor bugfixes (address selection):
11959     - When the fascist_firewall_choose_address_ functions don't find a
11960       reachable address, set the returned address to the null address
11961       and port. This is a precautionary measure, because some callers do
11962       not check the return value. Fixes bug 24736; bugfix
11963       on 0.2.8.2-alpha.
11965   o Minor bugfixes (compilation):
11966     - Fix a signed/unsigned comparison warning introduced by our fix to
11967       TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16.
11969   o Minor bugfixes (control port, linux seccomp2 sandbox):
11970     - Avoid a crash when attempting to use the seccomp2 sandbox together
11971       with the OwningControllerProcess feature. Fixes bug 24198; bugfix
11972       on 0.2.5.1-alpha.
11974   o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha):
11975     - Fix a possible crash on malformed consensus. If a consensus had
11976       contained an unparseable protocol line, it could have made clients
11977       and relays crash with a null-pointer exception. To exploit this
11978       issue, however, an attacker would need to be able to subvert the
11979       directory authority system. Fixes bug 25251; bugfix on
11980       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
11982   o Minor bugfixes (memory usage):
11983     - When queuing DESTROY cells on a channel, only queue the circuit-id
11984       and reason fields: not the entire 514-byte cell. This fix should
11985       help mitigate any bugs or attacks that fill up these queues, and
11986       free more RAM for other uses. Fixes bug 24666; bugfix
11987       on 0.2.5.1-alpha.
11989   o Minor bugfixes (network layer):
11990     - When closing a connection via close_connection_immediately(), we
11991       mark it as "not blocked on bandwidth", to prevent later calls from
11992       trying to unblock it, and give it permission to read. This fixes a
11993       backtrace warning that can happen on relays under various
11994       circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc.
11996   o Minor bugfixes (OSX):
11997     - Don't exit the Tor process if setrlimit() fails to change the file
11998       limit (which can happen sometimes on some versions of OSX). Fixes
11999       bug 21074; bugfix on 0.0.9pre5.
12001   o Minor bugfixes (path selection):
12002     - When selecting relays by bandwidth, avoid a rounding error that
12003       could sometimes cause load to be imbalanced incorrectly.
12004       Previously, we would always round upwards; now, we round towards
12005       the nearest integer. This had the biggest effect when a relay's
12006       weight adjustments should have given it weight 0, but it got
12007       weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha.
12008     - When calculating the fraction of nodes that have descriptors, and
12009       all nodes in the network have zero bandwidths, count the number of
12010       nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha.
12011     - Actually log the total bandwidth in compute_weighted_bandwidths().
12012       Fixes bug 24170; bugfix on 0.2.4.3-alpha.
12014   o Minor bugfixes (portability, msvc):
12015     - Fix a bug in the bit-counting parts of our timing-wheel code on
12016       MSVC. (Note that MSVC is still not a supported build platform, due
12017       to cryptographic timing channel risks.) Fixes bug 24633; bugfix
12018       on 0.2.9.1-alpha.
12020   o Minor bugfixes (relay):
12021     - Make the internal channel_is_client() function look at what sort
12022       of connection handshake the other side used, rather than whether
12023       the other side ever sent a create_fast cell to us. Backports part
12024       of the fixes from bugs 22805 and 24898.
12026   o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha):
12027     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
12028       0.2.9.4-alpha.
12029     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
12030       bugfix on 0.2.9.4-alpha.
12033 Changes in version 0.3.2.10 - 2018-03-03
12034   Tor 0.3.2.10 is the second stable release in the 0.3.2 series. It
12035   backports a number of bugfixes, including important fixes for security
12036   issues.
12038   It includes an important security fix for a remote crash attack
12039   against directory authorities, tracked as TROVE-2018-001.
12041   Additionally, it backports a fix for a bug whose severity we have
12042   upgraded: Bug 24700, which was fixed in 0.3.3.2-alpha, can be remotely
12043   triggered in order to crash relays with a use-after-free pattern. As
12044   such, we are now tracking that bug as TROVE-2018-002 and
12045   CVE-2018-0491, and backporting it to earlier releases. This bug
12046   affected versions 0.3.2.1-alpha through 0.3.2.9, as well as version
12047   0.3.3.1-alpha.
12049   This release also backports our new system for improved resistance to
12050   denial-of-service attacks against relays.
12052   This release also fixes several minor bugs and annoyances from
12053   earlier releases.
12055   Relays running 0.3.2.x SHOULD upgrade to one of the versions released
12056   today, for the fix to TROVE-2018-002. Directory authorities should
12057   also upgrade. (Relays on earlier versions might want to update too for
12058   the DoS mitigations.)
12060   o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha):
12061     - Fix a protocol-list handling bug that could be used to remotely crash
12062       directory authorities with a null-pointer exception. Fixes bug 25074;
12063       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
12064       CVE-2018-0490.
12066   o Major bugfixes (scheduler, KIST, denial-of-service, backport from 0.3.3.2-alpha):
12067     - Avoid adding the same channel twice in the KIST scheduler pending
12068       list, which could lead to remote denial-of-service use-after-free
12069       attacks against relays. Fixes bug 24700; bugfix on 0.3.2.1-alpha.
12071   o Major features (denial-of-service mitigation, backport from 0.3.3.2-alpha):
12072     - Give relays some defenses against the recent network overload. We
12073       start with three defenses (default parameters in parentheses).
12074       First: if a single client address makes too many concurrent
12075       connections (>100), hang up on further connections. Second: if a
12076       single client address makes circuits too quickly (more than 3 per
12077       second, with an allowed burst of 90) while also having too many
12078       connections open (3), refuse new create cells for the next while
12079       (1-2 hours). Third: if a client asks to establish a rendezvous
12080       point to you directly, ignore the request. These defenses can be
12081       manually controlled by new torrc options, but relays will also
12082       take guidance from consensus parameters, so there's no need to
12083       configure anything manually. Implements ticket 24902.
12085   o Major bugfixes (onion services, retry behavior, backport from 0.3.3.1-alpha):
12086     - Fix an "off by 2" error in counting rendezvous failures on the
12087       onion service side. While we thought we would stop the rendezvous
12088       attempt after one failed circuit, we were actually making three
12089       circuit attempts before giving up. Now switch to a default of 2,
12090       and allow the consensus parameter "hs_service_max_rdv_failures" to
12091       override. Fixes bug 24895; bugfix on 0.0.6.
12092     - New-style (v3) onion services now obey the "max rendezvous circuit
12093       attempts" logic. Previously they would make as many rendezvous
12094       circuit attempts as they could fit in the MAX_REND_TIMEOUT second
12095       window before giving up. Fixes bug 24894; bugfix on 0.3.2.1-alpha.
12097   o Major bugfixes (protocol versions, backport from 0.3.3.2-alpha):
12098     - Add Link protocol version 5 to the supported protocols list. Fixes
12099       bug 25070; bugfix on 0.3.1.1-alpha.
12101   o Major bugfixes (relay, backport from 0.3.3.1-alpha):
12102     - Fix a set of false positives where relays would consider
12103       connections to other relays as being client-only connections (and
12104       thus e.g. deserving different link padding schemes) if those
12105       relays fell out of the consensus briefly. Now we look only at the
12106       initial handshake and whether the connection authenticated as a
12107       relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha.
12109   o Major bugfixes (scheduler, consensus, backport from 0.3.3.2-alpha):
12110     - The scheduler subsystem was failing to promptly notice changes in
12111       consensus parameters, making it harder to switch schedulers
12112       network-wide. Fixes bug 24975; bugfix on 0.3.2.1-alpha.
12114   o Minor features (denial-of-service avoidance, backport from 0.3.3.2-alpha):
12115     - Make our OOM handler aware of the geoip client history cache so it
12116       doesn't fill up the memory. This check is important for IPv6 and
12117       our DoS mitigation subsystem. Closes ticket 25122.
12119   o Minor features (compatibility, OpenSSL, backport from 0.3.3.3-alpha):
12120     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
12121       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
12122       since they neither disabled TLS 1.3 nor enabled any of the
12123       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
12124       Closes ticket 24978.
12126   o Minor features (geoip):
12127     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
12128       Country database.
12130   o Minor features (logging, diagnostic, backport from 0.3.3.2-alpha):
12131     - When logging a failure to create an onion service's descriptor,
12132       also log what the problem with the descriptor was. Diagnostic
12133       for ticket 24972.
12135   o Minor bugfix (channel connection, backport from 0.3.3.2-alpha):
12136     - Use the actual observed address of an incoming relay connection,
12137       not the canonical address of the relay from its descriptor, when
12138       making decisions about how to handle the incoming connection.
12139       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
12141   o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha):
12142     - Fix a possible crash on malformed consensus. If a consensus had
12143       contained an unparseable protocol line, it could have made clients
12144       and relays crash with a null-pointer exception. To exploit this
12145       issue, however, an attacker would need to be able to subvert the
12146       directory authority system. Fixes bug 25251; bugfix on
12147       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
12149   o Minor bugfix (directory authority, backport from 0.3.3.2-alpha):
12150     - Directory authorities, when refusing a descriptor from a rejected
12151       relay, now explicitly tell the relay (in its logs) to set a valid
12152       ContactInfo address and contact the bad-relays@ mailing list.
12153       Fixes bug 25170; bugfix on 0.2.9.1.
12155   o Minor bugfixes (build, rust, backport from 0.3.3.1-alpha):
12156     - When building with Rust on OSX, link against libresolv, to work
12157       around the issue at https://github.com/rust-lang/rust/issues/46797.
12158       Fixes bug 24652; bugfix on 0.3.1.1-alpha.
12160   o Minor bugfixes (onion services, backport from 0.3.3.2-alpha):
12161     - Remove a BUG() statement when a client fetches an onion descriptor
12162       that has a lower revision counter than the one in its cache. This
12163       can happen in normal circumstances due to HSDir desync. Fixes bug
12164       24976; bugfix on 0.3.2.1-alpha.
12166   o Minor bugfixes (logging, backport from 0.3.3.2-alpha):
12167     - Don't treat inability to store a cached consensus object as a bug:
12168       it can happen normally when we are out of disk space. Fixes bug
12169       24859; bugfix on 0.3.1.1-alpha.
12171   o Minor bugfixes (performance, fragile-hardening, backport from 0.3.3.1-alpha):
12172     - Improve the performance of our consensus-diff application code
12173       when Tor is built with the --enable-fragile-hardening option set.
12174       Fixes bug 24826; bugfix on 0.3.1.1-alpha.
12176   o Minor bugfixes (OSX, backport from 0.3.3.1-alpha):
12177     - Don't exit the Tor process if setrlimit() fails to change the file
12178       limit (which can happen sometimes on some versions of OSX). Fixes
12179       bug 21074; bugfix on 0.0.9pre5.
12181   o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha):
12182     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
12183       0.2.9.4-alpha.
12184     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
12185       bugfix on 0.2.9.4-alpha.
12187   o Minor bugfixes (testing, backport from 0.3.3.1-alpha):
12188     - Fix a memory leak in the scheduler/loop_kist unit test. Fixes bug
12189       25005; bugfix on 0.3.2.7-rc.
12191   o Minor bugfixes (v3 onion services, backport from 0.3.3.2-alpha):
12192     - Look at the "HSRend" protocol version, not the "HSDir" protocol
12193       version, when deciding whether a consensus entry can support the
12194       v3 onion service protocol as a rendezvous point. Fixes bug 25105;
12195       bugfix on 0.3.2.1-alpha.
12197   o Code simplification and refactoring (backport from 0.3.3.3-alpha):
12198     - Update the "rust dependencies" submodule to be a project-level
12199       repository, rather than a user repository. Closes ticket 25323.
12201   o Documentation (backport from 0.3.3.1-alpha)
12202     - Document that operators who run more than one relay or bridge are
12203       expected to set MyFamily and ContactInfo correctly. Closes
12204       ticket 24526.
12207 Changes in version 0.3.3.3-alpha - 2018-03-03
12208   Tor 0.3.3.3-alpha is the third alpha release for the 0.3.3.x series.
12209   It includes an important security fix for a remote crash attack
12210   against directory authorities tracked as TROVE-2018-001.
12212   Additionally, with this release, we are upgrading the severity of a
12213   bug fixed in 0.3.3.2-alpha. Bug 24700, which was fixed in
12214   0.3.3.2-alpha, can be remotely triggered in order to crash relays with
12215   a use-after-free pattern. As such, we are now tracking that bug as
12216   TROVE-2018-002 and CVE-2018-0491. This bug affected versions
12217   0.3.2.1-alpha through 0.3.2.9, as well as 0.3.3.1-alpha.
12219   This release also fixes several minor bugs and annoyances from
12220   earlier releases.
12222   Relays running 0.3.2.x should upgrade to one of the versions released
12223   today, for the fix to TROVE-2018-002. Directory authorities should
12224   also upgrade. (Relays on earlier versions might want to update too for
12225   the DoS mitigations.)
12227   o Major bugfixes (denial-of-service, directory authority):
12228     - Fix a protocol-list handling bug that could be used to remotely crash
12229       directory authorities with a null-pointer exception. Fixes bug 25074;
12230       bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and
12231       CVE-2018-0490.
12233   o Minor features (compatibility, OpenSSL):
12234     - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released.
12235       Previous versions of Tor would not have worked with OpenSSL 1.1.1,
12236       since they neither disabled TLS 1.3 nor enabled any of the
12237       ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites.
12238       Closes ticket 24978.
12240   o Minor features (logging):
12241     - Clarify the log messages produced when getrandom() or a related
12242       entropy-generation mechanism gives an error. Closes ticket 25120.
12244   o Minor features (testing):
12245     - Add a "make test-rust" target to run the rust tests only. Closes
12246       ticket 25071.
12248   o Minor bugfixes (denial-of-service):
12249     - Fix a possible crash on malformed consensus. If a consensus had
12250       contained an unparseable protocol line, it could have made clients
12251       and relays crash with a null-pointer exception. To exploit this
12252       issue, however, an attacker would need to be able to subvert the
12253       directory authority system. Fixes bug 25251; bugfix on
12254       0.2.9.4-alpha. Also tracked as TROVE-2018-004.
12256   o Minor bugfixes (DoS mitigation):
12257     - Add extra safety checks when refilling the circuit creation bucket
12258       to ensure we never set a value above the allowed maximum burst.
12259       Fixes bug 25202; bugfix on 0.3.3.2-alpha.
12260     - When a new consensus arrives, don't update our DoS-mitigation
12261       parameters if we aren't a public relay. Fixes bug 25223; bugfix
12262       on 0.3.3.2-alpha.
12264   o Minor bugfixes (man page, SocksPort):
12265     - Remove dead code from the old "SocksSocket" option, and rename
12266       SocksSocketsGroupWritable to UnixSocksGroupWritable. The old option
12267       still works, but is deprecated. Fixes bug 24343; bugfix on 0.2.6.3.
12269   o Minor bugfixes (performance):
12270     - Reduce the number of circuits that will be opened at once during
12271       the circuit build timeout phase. This is done by increasing the
12272       idle timeout to 3 minutes, and lowering the maximum number of
12273       concurrent learning circuits to 10. Fixes bug 24769; bugfix
12274       on 0.3.1.1-alpha.
12276   o Minor bugfixes (spec conformance):
12277     - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on
12278       0.2.9.4-alpha.
12279     - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249;
12280       bugfix on 0.2.9.4-alpha.
12282   o Minor bugfixes (spec conformance, rust):
12283     - Resolve a denial-of-service issue caused by an infinite loop in
12284       the rust protover code. Fixes bug 25250, bugfix on 0.3.3.1-alpha.
12285       Also tracked as TROVE-2018-003.
12287   o Code simplification and refactoring:
12288     - Update the "rust dependencies" submodule to be a project-level
12289       repository, rather than a user repository. Closes ticket 25323.
12292 Changes in version 0.3.3.2-alpha - 2018-02-10
12293   Tor 0.3.3.2-alpha is the second alpha in the 0.3.3.x series. It
12294   introduces a mechanism to handle the high loads that many relay
12295   operators have been reporting recently. It also fixes several bugs in
12296   older releases. If this new code proves reliable, we plan to backport
12297   it to older supported release series.
12299   o Major features (denial-of-service mitigation):
12300     - Give relays some defenses against the recent network overload. We
12301       start with three defenses (default parameters in parentheses).
12302       First: if a single client address makes too many concurrent
12303       connections (>100), hang up on further connections. Second: if a
12304       single client address makes circuits too quickly (more than 3 per
12305       second, with an allowed burst of 90) while also having too many
12306       connections open (3), refuse new create cells for the next while
12307       (1-2 hours). Third: if a client asks to establish a rendezvous
12308       point to you directly, ignore the request. These defenses can be
12309       manually controlled by new torrc options, but relays will also
12310       take guidance from consensus parameters, so there's no need to
12311       configure anything manually. Implements ticket 24902.
12313   o Major bugfixes (netflow padding):
12314     - Stop adding unneeded channel padding right after we finish
12315       flushing to a connection that has been trying to flush for many
12316       seconds. Instead, treat all partial or complete flushes as
12317       activity on the channel, which will defer the time until we need
12318       to add padding. This fix should resolve confusing and scary log
12319       messages like "Channel padding timeout scheduled 221453ms in the
12320       past." Fixes bug 22212; bugfix on 0.3.1.1-alpha.
12322   o Major bugfixes (protocol versions):
12323     - Add Link protocol version 5 to the supported protocols list. Fixes
12324       bug 25070; bugfix on 0.3.1.1-alpha.
12326   o Major bugfixes (scheduler, consensus):
12327     - The scheduler subsystem was failing to promptly notice changes in
12328       consensus parameters, making it harder to switch schedulers
12329       network-wide. Fixes bug 24975; bugfix on 0.3.2.1-alpha.
12331   o Minor features (denial-of-service avoidance):
12332     - Make our OOM handler aware of the geoip client history cache so it
12333       doesn't fill up the memory. This check is important for IPv6 and
12334       our DoS mitigation subsystem. Closes ticket 25122.
12336   o Minor features (directory authority):
12337     - When directory authorities are unable to add signatures to a
12338       pending consensus, log the reason why. Closes ticket 24849.
12340   o Minor features (geoip):
12341     - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2
12342       Country database.
12344   o Minor features (logging, diagnostic):
12345     - When logging a failure to create an onion service's descriptor,
12346       also log what the problem with the descriptor was. Diagnostic for
12347       ticket 24972.
12349   o Minor bugfix (channel connection):
12350     - Use the actual observed address of an incoming relay connection,
12351       not the canonical address of the relay from its descriptor, when
12352       making decisions about how to handle the incoming connection.
12353       Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera".
12355   o Minor bugfix (directory authority):
12356     - Directory authorities, when refusing a descriptor from a rejected
12357       relay, now explicitly tell the relay (in its logs) to set a valid
12358       ContactInfo address and contact the bad-relays@ mailing list.
12359       Fixes bug 25170; bugfix on 0.2.9.1.
12361   o Minor bugfixes (all versions of Tor):
12362     - Use the "misspell" tool to detect and fix typos throughout the
12363       source code. Fixes bug 23650; bugfix on various versions of Tor.
12364       Patch from Deepesh Pathak.
12366   o Minor bugfixes (circuit, cannibalization):
12367     - Don't cannibalize preemptively-built circuits if we no longer
12368       recognize their first hop. This situation can happen if our Guard
12369       relay went off the consensus after the circuit was created. Fixes
12370       bug 24469; bugfix on 0.0.6.
12372   o Minor bugfixes (correctness):
12373     - Remove a nonworking, unnecessary check to see whether a circuit
12374       hop's identity digest was set when the circuit failed. Fixes bug
12375       24927; bugfix on 0.2.4.4-alpha.
12377   o Minor bugfixes (logging):
12378     - Don't treat inability to store a cached consensus object as a bug:
12379       it can happen normally when we are out of disk space. Fixes bug
12380       24859; bugfix on 0.3.1.1-alpha.
12381     - Fix a (mostly harmless) race condition when invoking
12382       LOG_PROTOCOL_WARN message from a subthread while the torrc options
12383       are changing. Fixes bug 23954; bugfix on 0.1.1.9-alpha.
12385   o Minor bugfixes (onion services):
12386     - Remove a BUG() statement when a client fetches an onion descriptor
12387       that has a lower revision counter than the one in its cache. This
12388       can happen in normal circumstances due to HSDir desync. Fixes bug
12389       24976; bugfix on 0.3.2.1-alpha.
12390     - If we are configured to offer a single onion service, don't log
12391       long-term established one hop rendezvous points in the heartbeat.
12392       Fixes bug 25116; bugfix on 0.2.9.6-rc.
12394   o Minor bugfixes (performance):
12395     - Avoid calling protocol_list_supports_protocol() from inside tight
12396       loops when running with cached routerinfo_t objects. Instead,
12397       summarize the relevant protocols as flags in the routerinfo_t, as
12398       we do for routerstatus_t objects. This change simplifies our code
12399       a little, and saves a large amount of short-term memory allocation
12400       operations. Fixes bug 25008; bugfix on 0.2.9.4-alpha.
12402   o Minor bugfixes (Rust FFI):
12403     - Fix a minor memory leak which would happen whenever the C code
12404       would call the Rust implementation of
12405       protover_get_supported_protocols(). This was due to the C version
12406       returning a static string, whereas the Rust version newly allocated
12407       a CString to pass across the FFI boundary. Consequently, the C
12408       code was not expecting to need to free() what it was given. Fixes
12409       bug 25127; bugfix on 0.3.2.1-alpha.
12411   o Minor bugfixes (scheduler, KIST):
12412     - Avoid adding the same channel twice in the KIST scheduler pending
12413       list, which would waste CPU cycles. Fixes bug 24700; bugfix
12414       on 0.3.2.1-alpha.
12416   o Minor bugfixes (unit test, monotonic time):
12417     - Increase a constant (1msec to 10msec) in the monotonic time test
12418       that makes sure the nsec/usec/msec times read are synchronized.
12419       This change was needed to accommodate slow systems like armel or
12420       when the clock_gettime() is not a VDSO on the running kernel.
12421       Fixes bug 25113; bugfix on 0.2.9.1.
12423   o Minor bugfixes (v3 onion services):
12424     - Look at the "HSRend" protocol version, not the "HSDir" protocol
12425       version, when deciding whether a consensus entry can support the
12426       v3 onion service protocol as a rendezvous point. Fixes bug 25105;
12427       bugfix on 0.3.2.1-alpha.
12429   o Code simplification and refactoring:
12430     - Remove the unused nodelist_recompute_all_hsdir_indices(). Closes
12431       ticket 25108.
12432     - Remove a series of counters used to track circuit extend attempts
12433       and connection status but that in reality we aren't using for
12434       anything other than stats logged by a SIGUSR1 signal. Closes
12435       ticket 25163.
12437   o Documentation (man page):
12438     - The HiddenServiceVersion torrc option accepts only one number:
12439       either version 2 or 3. Closes ticket 25026; bugfix
12440       on 0.3.2.2-alpha.
12443 Changes in version 0.3.3.1-alpha - 2018-01-25
12444   Tor 0.3.3.1-alpha is the first release in the 0.3.3.x series. It adds
12445   several new features to Tor, including several improvements to
12446   bootstrapping, and support for an experimental "vanguards" feature to
12447   resist guard discovery attacks. This series also includes better
12448   support for applications that need to embed Tor or manage v3
12449   onion services.
12451   o Major features (embedding):
12452     - There is now a documented stable API for programs that need to
12453       embed Tor. See tor_api.h for full documentation and known bugs.
12454       Closes ticket 23684.
12455     - Tor now has support for restarting in the same process.
12456       Controllers that run Tor using the "tor_api.h" interface can now
12457       restart Tor after Tor has exited. This support is incomplete,
12458       however: we fixed crash bugs that prevented it from working at
12459       all, but many bugs probably remain, including a possibility of
12460       security issues. Implements ticket 24581.
12462   o Major features (IPv6, directory documents):
12463     - Add consensus method 27, which adds IPv6 ORPorts to the microdesc
12464       consensus. This information makes it easier for IPv6 clients to
12465       bootstrap and choose reachable entry guards. Implements ticket 23826.
12466     - Add consensus method 28, which removes IPv6 ORPorts from
12467       microdescriptors. Now that the consensus contains IPv6 ORPorts, they
12468       are redundant in microdescs. This change will be used by Tor clients
12469       on 0.2.8.x and later. (That is to say, with all Tor clients that
12470       have IPv6 bootstrap and guard support.) Implements ticket 23828.
12471     - Expand the documentation for AuthDirHasIPv6Connectivity when it is
12472       set by different numbers of authorities. Fixes 23870
12473       on 0.2.4.1-alpha.
12475   o Major features (onion service v3, control port):
12476     - The control port now supports commands and events for v3 onion
12477       services. It is now possible to create ephemeral v3 services using
12478       ADD_ONION. Additionally, several events (HS_DESC, HS_DESC_CONTENT,
12479       CIRC and CIRC_MINOR) and commands (GETINFO, HSPOST, ADD_ONION and
12480       DEL_ONION) have been extended to support v3 onion services. Closes
12481       ticket 20699; implements proposal 284.
12483   o Major features (onion services):
12484     - Provide torrc options to pin the second and third hops of onion
12485       service circuits to a list of nodes. The option HSLayer2Guards
12486       pins the second hop, and the option HSLayer3Guards pins the third
12487       hop. These options are for use in conjunction with experiments
12488       with "vanguards" for preventing guard enumeration attacks. Closes
12489       ticket 13837.
12491   o Major features (rust, portability, experimental):
12492     - Tor now ships with an optional implementation of one of its
12493       smaller modules (protover.c) in the Rust programming language. To
12494       try it out, install a Rust build environment, and configure Tor
12495       with "--enable-rust --enable-cargo-online-mode". This should not
12496       cause any user-visible changes, but should help us gain more
12497       experience with Rust, and plan future Rust integration work.
12498       Implementation by Chelsea Komlo. Closes ticket 22840.
12500   o Minor features (storage, configuration):
12501     - Users can store cached directory documents somewhere other than
12502       the DataDirectory by using the CacheDirectory option. Similarly,
12503       the storage location for relay's keys can be overridden with the
12504       KeyDirectory option. Closes ticket 22703.
12506   o Major features (v3 onion services, ipv6):
12507     - When v3 onion service clients send introduce cells, they now
12508       include the IPv6 address of the rendezvous point, if it has one.
12509       Current v3 onion services running 0.3.2 ignore IPv6 addresses, but
12510       in future Tor versions, IPv6-only v3 single onion services will be
12511       able to use IPv6 addresses to connect directly to the rendezvous
12512       point. Closes ticket 23577. Patch by Neel Chauhan.
12514   o Major bugfixes (onion services, retry behavior):
12515     - Fix an "off by 2" error in counting rendezvous failures on the
12516       onion service side. While we thought we would stop the rendezvous
12517       attempt after one failed circuit, we were actually making three
12518       circuit attempts before giving up. Now switch to a default of 2,
12519       and allow the consensus parameter "hs_service_max_rdv_failures" to
12520       override. Fixes bug 24895; bugfix on 0.0.6.
12521     - New-style (v3) onion services now obey the "max rendezvous circuit
12522       attempts" logic. Previously they would make as many rendezvous
12523       circuit attempts as they could fit in the MAX_REND_TIMEOUT second
12524       window before giving up. Fixes bug 24894; bugfix on 0.3.2.1-alpha.
12526   o Major bugfixes (relays):
12527     - Fix a set of false positives where relays would consider
12528       connections to other relays as being client-only connections (and
12529       thus e.g. deserving different link padding schemes) if those
12530       relays fell out of the consensus briefly. Now we look only at the
12531       initial handshake and whether the connection authenticated as a
12532       relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha.
12534   o Minor feature (IPv6):
12535     - Make IPv6-only clients wait for microdescs for relays, even if we
12536       were previously using descriptors (or were using them as a bridge)
12537       and have a cached descriptor for them. Implements ticket 23827.
12538     - When a consensus has IPv6 ORPorts, make IPv6-only clients use
12539       them, rather than waiting to download microdescriptors.
12540       Implements ticket 23827.
12542   o Minor features (cleanup):
12543     - Tor now deletes the CookieAuthFile and ExtORPortCookieAuthFile
12544       when it stops. Closes ticket 23271.
12546   o Minor features (defensive programming):
12547     - Most of the functions in Tor that free objects have been replaced
12548       with macros that free the objects and set the corresponding
12549       pointers to NULL. This change should help prevent a large class of
12550       dangling pointer bugs. Closes ticket 24337.
12551     - Where possible, the tor_free() macro now only evaluates its input
12552       once. Part of ticket 24337.
12553     - Check that microdesc ed25519 ids are non-zero in
12554       node_get_ed25519_id() before returning them. Implements ticket
12555       24001, patch by "aruna1234".
12557   o Minor features (embedding):
12558     - Tor can now start with a preauthenticated control connection
12559       created by the process that launched it. This feature is meant for
12560       use by programs that want to launch and manage a Tor process
12561       without allowing other programs to manage it as well. For more
12562       information, see the __OwningControllerFD option documented in
12563       control-spec.txt. Closes ticket 23900.
12564     - On most errors that would cause Tor to exit, it now tries to
12565       return from the tor_main() function, rather than calling the
12566       system exit() function. Most users won't notice a difference here,
12567       but it should be significant for programs that run Tor inside
12568       a separate thread: they should now be able to survive Tor's exit
12569       conditions rather than having Tor shut down the entire process.
12570       Closes ticket 23848.
12571     - Applications that want to embed Tor can now tell Tor not to
12572       register any of its own POSIX signal handlers, using the
12573       __DisableSignalHandlers option. Closes ticket 24588.
12575   o Minor features (fallback directory list):
12576     - Avoid selecting fallbacks that change their IP addresses too
12577       often. Select more fallbacks by ignoring the Guard flag, and
12578       allowing lower cutoffs for the Running and V2Dir flags. Also allow
12579       a lower bandwidth, and a higher number of fallbacks per operator
12580       (5% of the list). Implements ticket 24785.
12581     - Update the fallback whitelist and blacklist based on opt-ins and
12582       relay changes. Closes tickets 22321, 24678, 22527, 24135,
12583       and 24695.
12585   o Minor features (fallback directory mirror configuration):
12586     - Add a nickname to each fallback in a C comment. This makes it
12587       easier for operators to find their relays, and allows stem to use
12588       nicknames to identify fallbacks. Implements ticket 24600.
12589     - Add a type and version header to the fallback directory mirror
12590       file. Also add a delimiter to the end of each fallback entry. This
12591       helps external parsers like stem and Relay Search. Implements
12592       ticket 24725.
12593     - Add an extrainfo cache flag for each fallback in a C comment. This
12594       allows stem to use fallbacks to fetch extra-info documents, rather
12595       than using authorities. Implements ticket 22759.
12596     - Add the generateFallbackDirLine.py script for automatically
12597       generating fallback directory mirror lines from relay fingerprints.
12598       No more typos! Add the lookupFallbackDirContact.py script for
12599       automatically looking up operator contact info from relay
12600       fingerprints. Implements ticket 24706, patch by teor and atagar.
12601     - Reject any fallback directory mirror that serves an expired
12602       consensus. Implements ticket 20942, patch by "minik".
12603     - Remove commas and equals signs from external string inputs to the
12604       fallback list. This avoids format confusion attacks. Implements
12605       ticket 24726.
12606     - Remove the "weight=10" line from fallback directory mirror
12607       entries. Ticket 24681 will maintain the current fallback weights
12608       by changing Tor's default fallback weight to 10. Implements
12609       ticket 24679.
12610     - Stop logging excessive information about fallback netblocks.
12611       Implements ticket 24791.
12613   o Minor features (forward-compatibility):
12614     - If a relay supports some link authentication protocol that we do
12615       not recognize, then include that relay's ed25519 key when telling
12616       other relays to extend to it. Previously, we treated future
12617       versions as if they were too old to support ed25519 link
12618       authentication. Closes ticket 20895.
12620   o Minor features (heartbeat):
12621     - Add onion service information to our heartbeat logs, displaying
12622       stats about the activity of configured onion services. Closes
12623       ticket 24896.
12625   o Minor features (instrumentation, development):
12626     - Add the MainloopStats option to allow developers to get
12627       instrumentation information from the main event loop via the
12628       heartbeat messages. We hope to use this to improve Tor's behavior
12629       when it's trying to sleep. Closes ticket 24605.
12631   o Minor features (log messages):
12632     - Improve a warning message that happens when we fail to re-parse an
12633       old router because of an expired certificate. Closes ticket 20020.
12634     - Make the log more quantitative when we hit MaxMemInQueues
12635       threshold exposing some values. Closes ticket 24501.
12637   o Minor features (logging, android):
12638     - Added support for the Android logging subsystem. Closes
12639       ticket 24362.
12641   o Minor features (performance):
12642     - Support predictive circuit building for onion service circuits
12643       with multiple layers of guards. Closes ticket 23101.
12644     - Use stdatomic.h where available, rather than mutexes, to implement
12645       atomic_counter_t. Closes ticket 23953.
12647   o Minor features (performance, 32-bit):
12648     - Improve performance on 32-bit systems by avoiding 64-bit division
12649       when calculating the timestamp in milliseconds for channel padding
12650       computations. Implements ticket 24613.
12651     - Improve performance on 32-bit systems by avoiding 64-bit division
12652       when timestamping cells and buffer chunks for OOM calculations.
12653       Implements ticket 24374.
12655   o Minor features (performance, OSX, iOS):
12656     - Use the mach_approximate_time() function (when available) to
12657       implement coarse monotonic time. Having a coarse time function
12658       should avoid a large number of system calls, and improve
12659       performance slightly, especially under load. Closes ticket 24427.
12661   o Minor features (performance, windows):
12662     - Improve performance on Windows Vista and Windows 7 by adjusting
12663       TCP send window size according to the recommendation from
12664       SIO_IDEAL_SEND_BACKLOG_QUERY. Closes ticket 22798. Patch
12665       from Vort.
12667   o Major features (relay):
12668     - Implement an option, ReducedExitPolicy, to allow an Tor exit relay
12669       operator to use a more reasonable ("reduced") exit policy, rather
12670       than the default one. If you want to run an exit node without
12671       thinking too hard about which ports to allow, this one is for you.
12672       Closes ticket 13605. Patch from Neel Chauhan.
12674   o Minor features (testing, debugging, embedding):
12675     - For development purposes, Tor now has a mode in which it runs for
12676       a few seconds, then stops, and starts again without exiting the
12677       process. This mode is meant to help us debug various issues with
12678       ticket 23847. To use this feature, compile with
12679       --enable-restart-debugging, and set the TOR_DEBUG_RESTART
12680       environment variable. This is expected to crash a lot, and is
12681       really meant for developers only. It will likely be removed in a
12682       future release. Implements ticket 24583.
12684   o Minor bugfix (network IPv6 test):
12685     - Tor's test scripts now check if "ping -6 ::1" works when the user
12686       runs "make test-network-all". Fixes bug 24677; bugfix on
12687       0.2.9.3-alpha. Patch by "ffmancera".
12689   o Minor bugfixes (build, rust):
12690     - Fix output of autoconf checks to display success messages for Rust
12691       dependencies and a suitable rustc compiler version. Fixes bug
12692       24612; bugfix on 0.3.1.3-alpha.
12693     - When building with Rust on OSX, link against libresolv, to work
12694       around the issue at https://github.com/rust-lang/rust/issues/46797.
12695       Fixes bug 24652; bugfix on 0.3.1.1-alpha.
12696     - Don't pass the --quiet option to cargo: it seems to suppress some
12697       errors, which is not what we want to do when building. Fixes bug
12698       24518; bugfix on 0.3.1.7.
12699     - Build correctly when building from outside Tor's source tree with
12700       the TOR_RUST_DEPENDENCIES option set. Fixes bug 22768; bugfix
12701       on 0.3.1.7.
12703   o Minor bugfixes (directory authorities, IPv6):
12704     - When creating a routerstatus (vote) from a routerinfo (descriptor),
12705       set the IPv6 address to the unspecified IPv6 address, and
12706       explicitly initialize the port to zero. Fixes bug 24488; bugfix
12707       on 0.2.4.1-alpha.
12709   o Minor bugfixes (fallback directory mirrors):
12710     - Make updateFallbackDirs.py search harder for python. (Some OSs
12711       don't put it in /usr/bin.) Fixes bug 24708; bugfix
12712       on 0.2.8.1-alpha.
12714   o Minor bugfixes (hibernation, bandwidth accounting, shutdown):
12715     - When hibernating, close connections normally and allow them to
12716       flush. Fixes bug 23571; bugfix on 0.2.4.7-alpha. Also fixes
12717       bug 7267.
12718     - Do not attempt to launch self-reachability tests when entering
12719       hibernation. Fixes a case of bug 12062; bugfix on 0.0.9pre5.
12720     - Resolve several bugs related to descriptor fetching on bridge
12721       clients with bandwidth accounting enabled. (This combination is
12722       not recommended!) Fixes a case of bug 12062; bugfix
12723       on 0.2.0.3-alpha.
12724     - When hibernating, do not attempt to launch DNS checks. Fixes a
12725       case of bug 12062; bugfix on 0.1.2.2-alpha.
12726     - When hibernating, do not try to upload or download descriptors.
12727       Fixes a case of bug 12062; bugfix on 0.0.9pre5.
12729   o Minor bugfixes (IPv6, bridges):
12730     - Tor now always sets IPv6 preferences for bridges. Fixes bug 24573;
12731       bugfix on 0.2.8.2-alpha.
12732     - Tor now sets IPv6 address in the routerstatus as well as in the
12733       router descriptors when updating addresses for a bridge. Closes
12734       ticket 24572; bugfix on 0.2.4.5-alpha. Patch by "ffmancera".
12736   o Minor bugfixes (linux seccomp2 sandbox):
12737     - When running with the sandbox enabled, reload configuration files
12738       correctly even when %include was used. Previously we would crash.
12739       Fixes bug 22605; bugfix on 0.3.1. Patch from Daniel Pinto.
12741   o Minor bugfixes (memory leaks):
12742     - Avoid possible at-exit memory leaks related to use of Libevent's
12743       event_base_once() function. (This function tends to leak memory if
12744       the event_base is closed before the event fires.) Fixes bug 24584;
12745       bugfix on 0.2.8.1-alpha.
12746     - Fix a harmless memory leak in tor-resolve. Fixes bug 24582; bugfix
12747       on 0.2.1.1-alpha.
12749   o Minor bugfixes (OSX):
12750     - Don't exit the Tor process if setrlimit() fails to change the file
12751       limit (which can happen sometimes on some versions of OSX). Fixes
12752       bug 21074; bugfix on 0.0.9pre5.
12754   o Minor bugfixes (performance, fragile-hardening):
12755     - Improve the performance of our consensus-diff application code
12756       when Tor is built with the --enable-fragile-hardening option set.
12757       Fixes bug 24826; bugfix on 0.3.1.1-alpha.
12759   o Minor bugfixes (performance, timeouts):
12760     - Consider circuits for timeout as soon as they complete a hop. This
12761       is more accurate than applying the timeout in
12762       circuit_expire_building() because that function is only called
12763       once per second, which is now too slow for typical timeouts on the
12764       current network. Fixes bug 23114; bugfix on 0.2.2.2-alpha.
12765     - Use onion service circuits (and other circuits longer than 3 hops)
12766       to calculate a circuit build timeout. Previously, Tor only
12767       calculated its build timeout based on circuits that planned to be
12768       exactly 3 hops long. With this change, we include measurements
12769       from all circuits at the point where they complete their third
12770       hop. Fixes bug 23100; bugfix on 0.2.2.2-alpha.
12772   o Minor bugfixes (testing):
12773     - Give out Exit flags in bootstrapping networks. Fixes bug 24137;
12774       bugfix on 0.2.3.1-alpha.
12775     - Fix a memory leak in the scheduler/loop_kist unit test. Fixes bug
12776       25005; bugfix on 0.3.2.7-rc.
12778   o Code simplification and refactoring:
12779     - Remove /usr/athena from search path in configure.ac. Closes
12780       ticket 24363.
12781     - Remove duplicate code in node_has_curve25519_onion_key() and
12782       node_get_curve25519_onion_key(), and add a check for a zero
12783       microdesc curve25519 onion key. Closes ticket 23966, patch by
12784       "aruna1234" and teor.
12785     - Rewrite channel_rsa_id_group_set_badness to reduce temporary
12786       memory allocations with large numbers of OR connections (e.g.
12787       relays). Closes ticket 24119.
12788     - Separate the function that deletes ephemeral files when Tor
12789       stops gracefully.
12790     - Small changes to Tor's buf_t API to make it suitable for use as a
12791       general-purpose safe string constructor. Closes ticket 22342.
12792     - Switch -Wnormalized=id to -Wnormalized=nfkc in configure.ac to
12793       avoid source code identifier confusion. Closes ticket 24467.
12794     - The tor_git_revision[] constant no longer needs to be redeclared
12795       by everything that links against the rest of Tor. Done as part of
12796       ticket 23845, to simplify our external API.
12797     - We make extend_info_from_node() use node_get_curve25519_onion_key()
12798       introduced in ticket 23577 to access the curve25519 public keys
12799       rather than accessing it directly. Closes ticket 23760. Patch by
12800       Neel Chauhan.
12801     - Add a function to log channels' scheduler state changes to aid
12802       debugging efforts. Closes ticket 24531.
12804   o Documentation:
12805     - Add documentation on how to build tor with Rust dependencies
12806       without having to be online. Closes ticket 22907; bugfix
12807       on 0.3.0.3-alpha.
12808     - Clarify the behavior of RelayBandwidth{Rate,Burst} with client
12809       traffic. Closes ticket 24318.
12810     - Document that OutboundBindAddress doesn't apply to DNS requests.
12811       Closes ticket 22145. Patch from Aruna Maurya.
12812     - Document that operators who run more than one relay or bridge are
12813       expected to set MyFamily and ContactInfo correctly. Closes
12814       ticket 24526.
12816   o Code simplification and refactoring (channels):
12817     - Remove the incoming and outgoing channel queues. These were never
12818       used, but still took up a step in our fast path.
12819     - The majority of the channel unit tests have been rewritten and the
12820       code coverage has now been raised to 83.6% for channel.c. Closes
12821       ticket 23709.
12822     - Remove other dead code from the channel subsystem: All together,
12823       this cleanup has removed more than 1500 lines of code overall and
12824       adding very little except for unit test.
12826   o Code simplification and refactoring (circuit rendezvous):
12827     - Split the client-side rendezvous circuit lookup into two
12828       functions: one that returns only established circuits and another
12829       that returns all kinds of circuits. Closes ticket 23459.
12831   o Code simplification and refactoring (controller):
12832     - Make most of the variables in networkstatus_getinfo_by_purpose()
12833       const. Implements ticket 24489.
12836 Changes in version 0.3.2.9 - 2018-01-09
12837   Tor 0.3.2.9 is the first stable release in the 0.3.2 series.
12839   The 0.3.2 series includes our long-anticipated new onion service
12840   design, with numerous security features. (For more information, see
12841   our blog post at https://blog.torproject.org/fall-harvest.) We also
12842   have a new circuit scheduler algorithm for improved performance on
12843   relays everywhere (see https://blog.torproject.org/kist-and-tell),
12844   along with many smaller features and bugfixes.
12846   Per our stable release policy, we plan to support each stable release
12847   series for at least the next nine months, or for three months after
12848   the first stable release of the next series: whichever is longer. If
12849   you need a release with long-term support, we recommend that you stay
12850   with the 0.2.9 series.
12852   Below is a list of the changes since 0.3.2.8-rc. For a list of all
12853   changes since 0.3.1, see the ReleaseNotes file.
12855   o Minor features (fallback directory mirrors):
12856     - The fallback directory list has been re-generated based on the
12857       current status of the network. Tor uses fallback directories to
12858       bootstrap when it doesn't yet have up-to-date directory
12859       information. Closes ticket 24801.
12860     - Make the default DirAuthorityFallbackRate 0.1, so that clients
12861       prefer to bootstrap from fallback directory mirrors. This is a
12862       follow-up to 24679, which removed weights from the default
12863       fallbacks. Implements ticket 24681.
12865   o Minor features (geoip):
12866     - Update geoip and geoip6 to the January 5 2018 Maxmind GeoLite2
12867       Country database.
12869   o Minor bugfixes (address selection):
12870     - When the fascist_firewall_choose_address_ functions don't find a
12871       reachable address, set the returned address to the null address
12872       and port. This is a precautionary measure, because some callers do
12873       not check the return value. Fixes bug 24736; bugfix
12874       on 0.2.8.2-alpha.
12876   o Minor bugfixes (compilation):
12877     - Resolve a few shadowed-variable warnings in the onion service
12878       code. Fixes bug 24634; bugfix on 0.3.2.1-alpha.
12880   o Minor bugfixes (portability, msvc):
12881     - Fix a bug in the bit-counting parts of our timing-wheel code on
12882       MSVC. (Note that MSVC is still not a supported build platform, due
12883       to cryptographic timing channel risks.) Fixes bug 24633; bugfix
12884       on 0.2.9.1-alpha.
12887 Changes in version 0.3.2.8-rc - 2017-12-21
12888   Tor 0.3.2.8-rc fixes a pair of bugs in the KIST and KISTLite
12889   schedulers that had led servers under heavy load to overload their
12890   outgoing connections. All relay operators running earlier 0.3.2.x
12891   versions should upgrade. This version also includes a mitigation for
12892   over-full DESTROY queues leading to out-of-memory conditions: if it
12893   works, we will soon backport it to earlier release series.
12895   This is the second release candidate in the 0.3.2 series. If we find
12896   no new bugs or regression here, then the first stable 0.3.2 release
12897   will be nearly identical to this.
12899   o Major bugfixes (KIST, scheduler):
12900     - The KIST scheduler did not correctly account for data already
12901       enqueued in each connection's send socket buffer, particularly in
12902       cases when the TCP/IP congestion window was reduced between
12903       scheduler calls. This situation lead to excessive per-connection
12904       buffering in the kernel, and a potential memory DoS. Fixes bug
12905       24665; bugfix on 0.3.2.1-alpha.
12907   o Minor features (geoip):
12908     - Update geoip and geoip6 to the December 6 2017 Maxmind GeoLite2
12909       Country database.
12911   o Minor bugfixes (hidden service v3):
12912     - Bump hsdir_spread_store parameter from 3 to 4 in order to increase
12913       the probability of reaching a service for a client missing
12914       microdescriptors. Fixes bug 24425; bugfix on 0.3.2.1-alpha.
12916   o Minor bugfixes (memory usage):
12917     - When queuing DESTROY cells on a channel, only queue the circuit-id
12918       and reason fields: not the entire 514-byte cell. This fix should
12919       help mitigate any bugs or attacks that fill up these queues, and
12920       free more RAM for other uses. Fixes bug 24666; bugfix
12921       on 0.2.5.1-alpha.
12923   o Minor bugfixes (scheduler, KIST):
12924     - Use a sane write limit for KISTLite when writing onto a connection
12925       buffer instead of using INT_MAX and shoving as much as it can.
12926       Because the OOM handler cleans up circuit queues, we are better
12927       off at keeping them in that queue instead of the connection's
12928       buffer. Fixes bug 24671; bugfix on 0.3.2.1-alpha.
12931 Changes in version 0.3.2.7-rc - 2017-12-14
12932   Tor 0.3.2.7-rc fixes various bugs in earlier versions of Tor,
12933   including some that could affect reliability or correctness.
12935   This is the first release candidate in the 0.3.2 series. If we find no
12936   new bugs or regression here, then the first stable 0.3.2. release will
12937   be nearly identical to this.
12939   o Major bugfixes (circuit prediction):
12940     - Fix circuit prediction logic so that a client doesn't treat a port
12941       as being "handled" by a circuit if that circuit already has
12942       isolation settings on it. This change should make Tor clients more
12943       responsive by improving their chances of having a pre-created
12944       circuit ready for use when a request arrives. Fixes bug 18859;
12945       bugfix on 0.2.3.3-alpha.
12947   o Minor features (logging):
12948     - Provide better warnings when the getrandom() syscall fails. Closes
12949       ticket 24500.
12951   o Minor features (portability):
12952     - Tor now compiles correctly on arm64 with libseccomp-dev installed.
12953       (It doesn't yet work with the sandbox enabled.) Closes
12954       ticket 24424.
12956   o Minor bugfixes (bridge clients, bootstrap):
12957     - Retry directory downloads when we get our first bridge descriptor
12958       during bootstrap or while reconnecting to the network. Keep
12959       retrying every time we get a bridge descriptor, until we have a
12960       reachable bridge. Fixes part of bug 24367; bugfix on 0.2.0.3-alpha.
12961     - Stop delaying bridge descriptor fetches when we have cached bridge
12962       descriptors. Instead, only delay bridge descriptor fetches when we
12963       have at least one reachable bridge. Fixes part of bug 24367;
12964       bugfix on 0.2.0.3-alpha.
12965     - Stop delaying directory fetches when we have cached bridge
12966       descriptors. Instead, only delay bridge descriptor fetches when
12967       all our bridges are definitely unreachable. Fixes part of bug
12968       24367; bugfix on 0.2.0.3-alpha.
12970   o Minor bugfixes (compilation):
12971     - Fix a signed/unsigned comparison warning introduced by our fix to
12972       TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16.
12974   o Minor bugfixes (correctness):
12975     - Fix several places in our codebase where a C compiler would be
12976       likely to eliminate a check, based on assuming that undefined
12977       behavior had not happened elsewhere in the code. These cases are
12978       usually a sign of redundant checking or dubious arithmetic. Found
12979       by Georg Koppen using the "STACK" tool from Wang, Zeldovich,
12980       Kaashoek, and Solar-Lezama. Fixes bug 24423; bugfix on various
12981       Tor versions.
12983   o Minor bugfixes (onion service v3):
12984     - Fix a race where an onion service would launch a new intro circuit
12985       after closing an old one, but fail to register it before freeing
12986       the previously closed circuit. This bug was making the service
12987       unable to find the established intro circuit and thus not upload
12988       its descriptor, thus making a service unavailable for up to 24
12989       hours. Fixes bug 23603; bugfix on 0.3.2.1-alpha.
12991   o Minor bugfixes (scheduler, KIST):
12992     - Properly set the scheduler state of an unopened channel in the
12993       KIST scheduler main loop. This prevents a harmless but annoying
12994       log warning. Fixes bug 24502; bugfix on 0.3.2.4-alpha.
12995     - Avoid a possible integer overflow when computing the available
12996       space on the TCP buffer of a channel. This had no security
12997       implications; but could make KIST allow too many cells on a
12998       saturated connection. Fixes bug 24590; bugfix on 0.3.2.1-alpha.
12999     - Downgrade to "info" a harmless warning about the monotonic time
13000       moving backwards: This can happen on platform not supporting
13001       monotonic time. Fixes bug 23696; bugfix on 0.3.2.1-alpha.
13004 Changes in version 0.3.2.6-alpha - 2017-12-01
13005   This version of Tor is the latest in the 0.3.2 alpha series. It
13006   includes fixes for several important security issues. All Tor users
13007   should upgrade to this release, or to one of the other releases coming
13008   out today.
13010   o Major bugfixes (security):
13011     - Fix a denial of service bug where an attacker could use a
13012       malformed directory object to cause a Tor instance to pause while
13013       OpenSSL would try to read a passphrase from the terminal. (Tor
13014       instances run without a terminal, which is the case for most Tor
13015       packages, are not impacted.) Fixes bug 24246; bugfix on every
13016       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
13017       Found by OSS-Fuzz as testcase 6360145429790720.
13018     - Fix a denial of service issue where an attacker could crash a
13019       directory authority using a malformed router descriptor. Fixes bug
13020       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
13021       and CVE-2017-8820.
13022     - When checking for replays in the INTRODUCE1 cell data for a
13023       (legacy) onion service, correctly detect replays in the RSA-
13024       encrypted part of the cell. We were previously checking for
13025       replays on the entire cell, but those can be circumvented due to
13026       the malleability of Tor's legacy hybrid encryption. This fix helps
13027       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
13028       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
13029       and CVE-2017-8819.
13031   o Major bugfixes (security, onion service v2):
13032     - Fix a use-after-free error that could crash v2 Tor onion services
13033       when they failed to open circuits while expiring introduction
13034       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
13035       also tracked as TROVE-2017-013 and CVE-2017-8823.
13037   o Major bugfixes (security, relay):
13038     - When running as a relay, make sure that we never build a path
13039       through ourselves, even in the case where we have somehow lost the
13040       version of our descriptor appearing in the consensus. Fixes part
13041       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
13042       as TROVE-2017-012 and CVE-2017-8822.
13043     - When running as a relay, make sure that we never choose ourselves
13044       as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This
13045       issue is also tracked as TROVE-2017-012 and CVE-2017-8822.
13047   o Minor feature (relay statistics):
13048     - Change relay bandwidth reporting stats interval from 4 hours to 24
13049       hours in order to reduce the efficiency of guard discovery
13050       attacks. Fixes ticket 23856.
13052   o Minor features (directory authority):
13053     - Add an IPv6 address for the "bastet" directory authority. Closes
13054       ticket 24394.
13056   o Minor bugfixes (client):
13057     - By default, do not enable storage of client-side DNS values. These
13058       values were unused by default previously, but they should not have
13059       been cached at all. Fixes bug 24050; bugfix on 0.2.6.3-alpha.
13062 Changes in version 0.3.1.9 - 2017-12-01:
13063   Tor 0.3.1.9 backports important security and stability fixes from the
13064   0.3.2 development series. All Tor users should upgrade to this
13065   release, or to another of the releases coming out today.
13067   o Major bugfixes (security, backport from 0.3.2.6-alpha):
13068     - Fix a denial of service bug where an attacker could use a
13069       malformed directory object to cause a Tor instance to pause while
13070       OpenSSL would try to read a passphrase from the terminal. (Tor
13071       instances run without a terminal, which is the case for most Tor
13072       packages, are not impacted.) Fixes bug 24246; bugfix on every
13073       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
13074       Found by OSS-Fuzz as testcase 6360145429790720.
13075     - Fix a denial of service issue where an attacker could crash a
13076       directory authority using a malformed router descriptor. Fixes bug
13077       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
13078       and CVE-2017-8820.
13079     - When checking for replays in the INTRODUCE1 cell data for a
13080       (legacy) onion service, correctly detect replays in the RSA-
13081       encrypted part of the cell. We were previously checking for
13082       replays on the entire cell, but those can be circumvented due to
13083       the malleability of Tor's legacy hybrid encryption. This fix helps
13084       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
13085       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
13086       and CVE-2017-8819.
13088   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
13089     - Fix a use-after-free error that could crash v2 Tor onion services
13090       when they failed to open circuits while expiring introduction
13091       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
13092       also tracked as TROVE-2017-013 and CVE-2017-8823.
13094   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
13095     - When running as a relay, make sure that we never build a path
13096       through ourselves, even in the case where we have somehow lost the
13097       version of our descriptor appearing in the consensus. Fixes part
13098       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
13099       as TROVE-2017-012 and CVE-2017-8822.
13100     - When running as a relay, make sure that we never choose ourselves
13101       as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This
13102       issue is also tracked as TROVE-2017-012 and CVE-2017-8822.
13104   o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha):
13105     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
13106       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
13107       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
13108       identifying and finding a workaround to this bug and to Moritz,
13109       Arthur Edelstein, and Roger for helping to track it down and
13110       analyze it.
13112   o Minor features (bridge):
13113     - Bridges now include notice in their descriptors that they are
13114       bridges, and notice of their distribution status, based on their
13115       publication settings. Implements ticket 18329. For more fine-
13116       grained control of how a bridge is distributed, upgrade to 0.3.2.x
13117       or later.
13119   o Minor features (directory authority, backport from 0.3.2.6-alpha):
13120     - Add an IPv6 address for the "bastet" directory authority. Closes
13121       ticket 24394.
13123   o Minor features (geoip):
13124     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
13125       Country database.
13127   o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha):
13128     - Avoid unnecessary calls to directory_fetches_from_authorities() on
13129       relays, to prevent spurious address resolutions and descriptor
13130       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
13131       bugfix on in 0.2.8.1-alpha.
13133   o Minor bugfixes (compilation, backport from 0.3.2.1-alpha):
13134     - Fix unused variable warnings in donna's Curve25519 SSE2 code.
13135       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
13137   o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha):
13138     - When a circuit is marked for close, do not attempt to package any
13139       cells for channels on that circuit. Previously, we would detect
13140       this condition lower in the call stack, when we noticed that the
13141       circuit had no attached channel, and log an annoying message.
13142       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
13144   o Minor bugfixes (onion service, backport from 0.3.2.5-alpha):
13145     - Rename the consensus parameter "hsdir-interval" to "hsdir_interval"
13146       so it matches dir-spec.txt. Fixes bug 24262; bugfix
13147       on 0.3.1.1-alpha.
13149   o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha):
13150     - Avoid a crash when transitioning from client mode to bridge mode.
13151       Previously, we would launch the worker threads whenever our
13152       "public server" mode changed, but not when our "server" mode
13153       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
13156 Changes in version 0.3.0.13 - 2017-12-01
13157   Tor 0.3.0.13 backports important security and stability bugfixes from
13158   later Tor releases. All Tor users should upgrade to this release, or
13159   to another of the releases coming out today.
13161   Note: the Tor 0.3.0 series will no longer be supported after 26 Jan
13162   2018. If you need a release with long-term support, please stick with
13163   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
13165   o Major bugfixes (security, backport from 0.3.2.6-alpha):
13166     - Fix a denial of service bug where an attacker could use a
13167       malformed directory object to cause a Tor instance to pause while
13168       OpenSSL would try to read a passphrase from the terminal. (Tor
13169       instances run without a terminal, which is the case for most Tor
13170       packages, are not impacted.) Fixes bug 24246; bugfix on every
13171       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
13172       Found by OSS-Fuzz as testcase 6360145429790720.
13173     - Fix a denial of service issue where an attacker could crash a
13174       directory authority using a malformed router descriptor. Fixes bug
13175       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
13176       and CVE-2017-8820.
13177     - When checking for replays in the INTRODUCE1 cell data for a
13178       (legacy) onion service, correctly detect replays in the RSA-
13179       encrypted part of the cell. We were previously checking for
13180       replays on the entire cell, but those can be circumvented due to
13181       the malleability of Tor's legacy hybrid encryption. This fix helps
13182       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
13183       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
13184       and CVE-2017-8819.
13186   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
13187     - Fix a use-after-free error that could crash v2 Tor onion services
13188       when they failed to open circuits while expiring introduction
13189       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
13190       also tracked as TROVE-2017-013 and CVE-2017-8823.
13192   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
13193     - When running as a relay, make sure that we never build a path
13194       through ourselves, even in the case where we have somehow lost the
13195       version of our descriptor appearing in the consensus. Fixes part
13196       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
13197       as TROVE-2017-012 and CVE-2017-8822.
13198     - When running as a relay, make sure that we never choose ourselves
13199       as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This
13200       issue is also tracked as TROVE-2017-012 and CVE-2017-8822.
13202   o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha):
13203     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
13204       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
13205       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
13206       identifying and finding a workaround to this bug and to Moritz,
13207       Arthur Edelstein, and Roger for helping to track it down and
13208       analyze it.
13210   o Minor features (security, windows, backport from 0.3.1.1-alpha):
13211     - Enable a couple of pieces of Windows hardening: one
13212       (HeapEnableTerminationOnCorruption) that has been on-by-default
13213       since Windows 8, and unavailable before Windows 7; and one
13214       (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't
13215       affect us, but shouldn't do any harm. Closes ticket 21953.
13217   o Minor features (bridge, backport from 0.3.1.9):
13218     - Bridges now include notice in their descriptors that they are
13219       bridges, and notice of their distribution status, based on their
13220       publication settings. Implements ticket 18329. For more fine-
13221       grained control of how a bridge is distributed, upgrade to 0.3.2.x
13222       or later.
13224   o Minor features (directory authority, backport from 0.3.2.6-alpha):
13225     - Add an IPv6 address for the "bastet" directory authority. Closes
13226       ticket 24394.
13228   o Minor features (geoip):
13229     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
13230       Country database.
13232   o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha):
13233     - Avoid unnecessary calls to directory_fetches_from_authorities() on
13234       relays, to prevent spurious address resolutions and descriptor
13235       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
13236       bugfix on in 0.2.8.1-alpha.
13238   o Minor bugfixes (compilation, backport from 0.3.2.1-alpha):
13239     - Fix unused variable warnings in donna's Curve25519 SSE2 code.
13240       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
13242   o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha):
13243     - When a circuit is marked for close, do not attempt to package any
13244       cells for channels on that circuit. Previously, we would detect
13245       this condition lower in the call stack, when we noticed that the
13246       circuit had no attached channel, and log an annoying message.
13247       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
13249   o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha):
13250     - Avoid a crash when transitioning from client mode to bridge mode.
13251       Previously, we would launch the worker threads whenever our
13252       "public server" mode changed, but not when our "server" mode
13253       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
13255   o Minor bugfixes (testing, backport from 0.3.1.6-rc):
13256     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
13257       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
13260 Changes in version 0.2.9.14 - 2017-12-01
13261   Tor 0.3.0.13 backports important security and stability bugfixes from
13262   later Tor releases. All Tor users should upgrade to this release, or
13263   to another of the releases coming out today.
13265   o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha):
13266     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
13267       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
13268       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
13269       identifying and finding a workaround to this bug and to Moritz,
13270       Arthur Edelstein, and Roger for helping to track it down and
13271       analyze it.
13273   o Major bugfixes (security, backport from 0.3.2.6-alpha):
13274     - Fix a denial of service bug where an attacker could use a
13275       malformed directory object to cause a Tor instance to pause while
13276       OpenSSL would try to read a passphrase from the terminal. (Tor
13277       instances run without a terminal, which is the case for most Tor
13278       packages, are not impacted.) Fixes bug 24246; bugfix on every
13279       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
13280       Found by OSS-Fuzz as testcase 6360145429790720.
13281     - Fix a denial of service issue where an attacker could crash a
13282       directory authority using a malformed router descriptor. Fixes bug
13283       24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010
13284       and CVE-2017-8820.
13285     - When checking for replays in the INTRODUCE1 cell data for a
13286       (legacy) onion service, correctly detect replays in the RSA-
13287       encrypted part of the cell. We were previously checking for
13288       replays on the entire cell, but those can be circumvented due to
13289       the malleability of Tor's legacy hybrid encryption. This fix helps
13290       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
13291       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
13292       and CVE-2017-8819.
13294   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
13295     - Fix a use-after-free error that could crash v2 Tor onion services
13296       when they failed to open circuits while expiring introduction
13297       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
13298       also tracked as TROVE-2017-013 and CVE-2017-8823.
13300   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
13301     - When running as a relay, make sure that we never build a path
13302       through ourselves, even in the case where we have somehow lost the
13303       version of our descriptor appearing in the consensus. Fixes part
13304       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
13305       as TROVE-2017-012 and CVE-2017-8822.
13307   o Minor features (bridge, backport from 0.3.1.9):
13308     - Bridges now include notice in their descriptors that they are
13309       bridges, and notice of their distribution status, based on their
13310       publication settings. Implements ticket 18329. For more fine-
13311       grained control of how a bridge is distributed, upgrade to 0.3.2.x
13312       or later.
13314   o Minor features (directory authority, backport from 0.3.2.6-alpha):
13315     - Add an IPv6 address for the "bastet" directory authority. Closes
13316       ticket 24394.
13318   o Minor features (geoip):
13319     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
13320       Country database.
13322   o Minor features (security, windows, backport from 0.3.1.1-alpha):
13323     - Enable a couple of pieces of Windows hardening: one
13324       (HeapEnableTerminationOnCorruption) that has been on-by-default
13325       since Windows 8, and unavailable before Windows 7; and one
13326       (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't
13327       affect us, but shouldn't do any harm. Closes ticket 21953.
13329   o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha):
13330     - Avoid unnecessary calls to directory_fetches_from_authorities() on
13331       relays, to prevent spurious address resolutions and descriptor
13332       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
13333       bugfix on in 0.2.8.1-alpha.
13335   o Minor bugfixes (compilation, backport from 0.3.2.1-alpha):
13336     - Fix unused variable warnings in donna's Curve25519 SSE2 code.
13337       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
13339   o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha):
13340     - When a circuit is marked for close, do not attempt to package any
13341       cells for channels on that circuit. Previously, we would detect
13342       this condition lower in the call stack, when we noticed that the
13343       circuit had no attached channel, and log an annoying message.
13344       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
13346   o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha):
13347     - Avoid a crash when transitioning from client mode to bridge mode.
13348       Previously, we would launch the worker threads whenever our
13349       "public server" mode changed, but not when our "server" mode
13350       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
13352   o Minor bugfixes (testing, backport from 0.3.1.6-rc):
13353     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
13354       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
13357 Changes in version 0.2.8.17 - 2017-12-01
13358   Tor 0.2.8.17 backports important security and stability bugfixes from
13359   later Tor releases. All Tor users should upgrade to this release, or
13360   to another of the releases coming out today.
13362   Note: the Tor 0.2.8 series will no longer be supported after 1 Jan
13363   2018. If you need a release with long-term support, please upgrade with
13364   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
13366   o Major bugfixes (security, backport from 0.3.2.6-alpha):
13367     - Fix a denial of service bug where an attacker could use a
13368       malformed directory object to cause a Tor instance to pause while
13369       OpenSSL would try to read a passphrase from the terminal. (Tor
13370       instances run without a terminal, which is the case for most Tor
13371       packages, are not impacted.) Fixes bug 24246; bugfix on every
13372       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
13373       Found by OSS-Fuzz as testcase 6360145429790720.
13374     - When checking for replays in the INTRODUCE1 cell data for a
13375       (legacy) onion service, correctly detect replays in the RSA-
13376       encrypted part of the cell. We were previously checking for
13377       replays on the entire cell, but those can be circumvented due to
13378       the malleability of Tor's legacy hybrid encryption. This fix helps
13379       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
13380       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
13381       and CVE-2017-8819.
13383   o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha):
13384     - Fix a use-after-free error that could crash v2 Tor onion services
13385       when they failed to open circuits while expiring introduction
13386       points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is
13387       also tracked as TROVE-2017-013 and CVE-2017-8823.
13389   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
13390     - When running as a relay, make sure that we never build a path through
13391       ourselves, even in the case where we have somehow lost the version of
13392       our descriptor appearing in the consensus. Fixes part of bug 21534;
13393       bugfix on 0.2.0.1-alpha. This issue is also tracked as TROVE-2017-012
13394       and CVE-2017-8822.
13396   o Minor features (bridge, backport from 0.3.1.9):
13397     - Bridges now include notice in their descriptors that they are
13398       bridges, and notice of their distribution status, based on their
13399       publication settings. Implements ticket 18329. For more fine-
13400       grained control of how a bridge is distributed, upgrade to 0.3.2.x
13401       or later.
13403   o Minor features (directory authority, backport from 0.3.2.6-alpha):
13404     - Add an IPv6 address for the "bastet" directory authority. Closes
13405       ticket 24394.
13407   o Minor features (geoip):
13408     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
13409       Country database.
13411   o Minor bugfixes (testing, backport from 0.3.1.6-rc):
13412     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
13413       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
13416 Changes in version 0.2.5.16 - 2017-12-01
13417   Tor 0.2.5.13 backports important security and stability bugfixes from
13418   later Tor releases. All Tor users should upgrade to this release, or
13419   to another of the releases coming out today.
13421   Note: the Tor 0.2.5 series will no longer be supported after 1 May
13422   2018. If you need a release with long-term support, please upgrade to
13423   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
13425   o Major bugfixes (security, backport from 0.3.2.6-alpha):
13426     - Fix a denial of service bug where an attacker could use a
13427       malformed directory object to cause a Tor instance to pause while
13428       OpenSSL would try to read a passphrase from the terminal. (Tor
13429       instances run without a terminal, which is the case for most Tor
13430       packages, are not impacted.) Fixes bug 24246; bugfix on every
13431       version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821.
13432       Found by OSS-Fuzz as testcase 6360145429790720.
13433     - When checking for replays in the INTRODUCE1 cell data for a
13434       (legacy) onion service, correctly detect replays in the RSA-
13435       encrypted part of the cell. We were previously checking for
13436       replays on the entire cell, but those can be circumvented due to
13437       the malleability of Tor's legacy hybrid encryption. This fix helps
13438       prevent a traffic confirmation attack. Fixes bug 24244; bugfix on
13439       0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009
13440       and CVE-2017-8819.
13442   o Major bugfixes (security, relay, backport from 0.3.2.6-alpha):
13443     - When running as a relay, make sure that we never build a path
13444       through ourselves, even in the case where we have somehow lost the
13445       version of our descriptor appearing in the consensus. Fixes part
13446       of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked
13447       as TROVE-2017-012 and CVE-2017-8822.
13449   o Minor features (bridge, backport from 0.3.1.9):
13450     - Bridges now include notice in their descriptors that they are
13451       bridges, and notice of their distribution status, based on their
13452       publication settings. Implements ticket 18329. For more fine-
13453       grained control of how a bridge is distributed, upgrade to 0.3.2.x
13454       or later.
13456   o Minor features (geoip):
13457     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
13458       Country database.
13461 Changes in version 0.3.2.5-alpha - 2017-11-22
13462   Tor 0.3.2.5-alpha is the fifth alpha release in the 0.3.2.x series. It
13463   fixes several stability and reliability bugs, including a fix for
13464   intermittent bootstrapping failures that some people have been seeing
13465   since the 0.3.0.x series.
13467   Please test this alpha out -- many of these fixes will soon be
13468   backported to stable Tor versions if no additional bugs are found
13469   in them.
13471   o Major bugfixes (bootstrapping):
13472     - Fetch descriptors aggressively whenever we lack enough to build
13473       circuits, regardless of how many descriptors we are missing.
13474       Previously, we would delay launching the fetch when we had fewer
13475       than 15 missing descriptors, even if some of those descriptors
13476       were blocking circuits from building. Fixes bug 23985; bugfix on
13477       0.1.1.11-alpha. The effects of this bug became worse in
13478       0.3.0.3-alpha, when we began treating missing descriptors from our
13479       primary guards as a reason to delay circuits.
13480     - Don't try fetching microdescriptors from relays that have failed
13481       to deliver them in the past. Fixes bug 23817; bugfix
13482       on 0.3.0.1-alpha.
13484   o Minor features (directory authority):
13485     - Make the "Exit" flag assignment only depend on whether the exit
13486       policy allows connections to ports 80 and 443. Previously relays
13487       would get the Exit flag if they allowed connections to one of
13488       these ports and also port 6667. Resolves ticket 23637.
13490   o Minor features (geoip):
13491     - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2
13492       Country database.
13494   o Minor features (linux seccomp2 sandbox):
13495     - Update the sandbox rules so that they should now work correctly
13496       with Glibc 2.26. Closes ticket 24315.
13498   o Minor features (logging):
13499     - Downgrade a pair of log messages that could occur when an exit's
13500       resolver gave us an unusual (but not forbidden) response. Closes
13501       ticket 24097.
13502     - Improve the message we log when re-enabling circuit build timeouts
13503       after having received a consensus. Closes ticket 20963.
13505   o Minor bugfixes (compilation):
13506     - Fix a memory leak warning in one of the libevent-related
13507       configuration tests that could occur when manually specifying
13508       -fsanitize=address. Fixes bug 24279; bugfix on 0.3.0.2-alpha.
13509       Found and patched by Alex Xu.
13510     - When detecting OpenSSL on Windows from our configure script, make
13511       sure to try linking with the ws2_32 library. Fixes bug 23783;
13512       bugfix on 0.3.2.2-alpha.
13514   o Minor bugfixes (control port, linux seccomp2 sandbox):
13515     - Avoid a crash when attempting to use the seccomp2 sandbox together
13516       with the OwningControllerProcess feature. Fixes bug 24198; bugfix
13517       on 0.2.5.1-alpha.
13519   o Minor bugfixes (control port, onion services):
13520     - Report "FAILED" instead of "UPLOAD_FAILED" "FAILED" for the
13521       HS_DESC event when a service is not able to upload a descriptor.
13522       Fixes bug 24230; bugfix on 0.2.7.1-alpha.
13524   o Minor bugfixes (directory cache):
13525     - Recover better from empty or corrupt files in the consensus cache
13526       directory. Fixes bug 24099; bugfix on 0.3.1.1-alpha.
13527     - When a consensus diff calculation is only partially successful,
13528       only record the successful parts as having succeeded. Partial
13529       success can happen if (for example) one compression method fails
13530       but the others succeed. Previously we misrecorded all the
13531       calculations as having succeeded, which would later cause a
13532       nonfatal assertion failure. Fixes bug 24086; bugfix
13533       on 0.3.1.1-alpha.
13535   o Minor bugfixes (logging):
13536     - Only log once if we notice that KIST support is gone. Fixes bug
13537       24158; bugfix on 0.3.2.1-alpha.
13538     - Suppress a log notice when relay descriptors arrive. We already
13539       have a bootstrap progress for this so no need to log notice
13540       everytime tor receives relay descriptors. Microdescriptors behave
13541       the same. Fixes bug 23861; bugfix on 0.2.8.2-alpha.
13543   o Minor bugfixes (network layer):
13544     - When closing a connection via close_connection_immediately(), we
13545       mark it as "not blocked on bandwidth", to prevent later calls from
13546       trying to unblock it, and give it permission to read. This fixes a
13547       backtrace warning that can happen on relays under various
13548       circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc.
13550   o Minor bugfixes (onion services):
13551     - The introduction circuit was being timed out too quickly while
13552       waiting for the rendezvous circuit to complete. Keep the intro
13553       circuit around longer instead of timing out and reopening new ones
13554       constantly. Fixes bug 23681; bugfix on 0.2.4.8-alpha.
13555     - Rename the consensus parameter "hsdir-interval" to "hsdir_interval"
13556       so it matches dir-spec.txt. Fixes bug 24262; bugfix
13557       on 0.3.1.1-alpha.
13558     - Silence a warning about failed v3 onion descriptor uploads that
13559       can happen naturally under certain edge cases. Fixes part of bug
13560       23662; bugfix on 0.3.2.1-alpha.
13562   o Minor bugfixes (tests):
13563     - Fix a memory leak in one of the bridge-distribution test cases.
13564       Fixes bug 24345; bugfix on 0.3.2.3-alpha.
13565     - Fix a bug in our fuzzing mock replacement for crypto_pk_checksig(),
13566       to correctly handle cases where a caller gives it an RSA key of
13567       under 160 bits. (This is not actually a bug in Tor itself, but
13568       rather in our fuzzing code.) Fixes bug 24247; bugfix on
13569       0.3.0.3-alpha. Found by OSS-Fuzz as issue 4177.
13571   o Documentation:
13572     - Add notes in man page regarding OS support for the various
13573       scheduler types. Attempt to use less jargon in the scheduler
13574       section. Closes ticket 24254.
13577 Changes in version 0.3.2.4-alpha - 2017-11-08
13578   Tor 0.3.2.4-alpha is the fourth alpha release in the 0.3.2.x series.
13579   It fixes several stability and reliability bugs, especially including
13580   a major reliability issue that has been plaguing fast exit relays in
13581   recent months.
13583   o Major bugfixes (exit relays, DNS):
13584     - Fix an issue causing DNS to fail on high-bandwidth exit nodes,
13585       making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on
13586       0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for
13587       identifying and finding a workaround to this bug and to Moritz,
13588       Arthur Edelstein, and Roger for helping to track it down and
13589       analyze it.
13591   o Major bugfixes (scheduler, channel):
13592     - Stop processing scheduled channels if they closed while flushing
13593       cells. This can happen if the write on the connection fails
13594       leading to the channel being closed while in the scheduler loop.
13595       Fixes bug 23751; bugfix on 0.3.2.1-alpha.
13597   o Minor features (logging, scheduler):
13598     - Introduce a SCHED_BUG() function to log extra information about
13599       the scheduler state if we ever catch a bug in the scheduler.
13600       Closes ticket 23753.
13602   o Minor features (removed deprecations):
13603     - The ClientDNSRejectInternalAddresses flag can once again be set in
13604       non-testing Tor networks, so long as they do not use the default
13605       directory authorities. This change also removes the deprecation of
13606       this flag from 0.2.9.2-alpha. Closes ticket 21031.
13608   o Minor features (testing):
13609     - Our fuzzing tests now test the encrypted portions of v3 onion
13610       service descriptors. Implements more of 21509.
13612   o Minor bugfixes (directory client):
13613     - On failure to download directory information, delay retry attempts
13614       by a random amount based on the "decorrelated jitter" algorithm.
13615       Our previous delay algorithm tended to produce extra-long delays
13616       too easily. Fixes bug 23816; bugfix on 0.2.9.1-alpha.
13618   o Minor bugfixes (IPv6, v3 single onion services):
13619     - Remove buggy code for IPv6-only v3 single onion services, and
13620       reject attempts to configure them. This release supports IPv4,
13621       dual-stack, and IPv6-only v3 onion services; and IPv4 and dual-
13622       stack v3 single onion services. Fixes bug 23820; bugfix
13623       on 0.3.2.1-alpha.
13625   o Minor bugfixes (logging, relay):
13626     - Give only a protocol warning when the ed25519 key is not
13627       consistent between the descriptor and microdescriptor of a relay.
13628       This can happen, for instance, if the relay has been flagged
13629       NoEdConsensus. Fixes bug 24025; bugfix on 0.3.2.1-alpha.
13631   o Minor bugfixes (manpage, onion service):
13632     - Document that the HiddenServiceNumIntroductionPoints option is
13633       0-10 for v2 services and 0-20 for v3 services. Fixes bug 24115;
13634       bugfix on 0.3.2.1-alpha.
13636   o Minor bugfixes (memory leaks):
13637     - Fix a minor memory leak at exit in the KIST scheduler. This bug
13638       should have no user-visible impact. Fixes bug 23774; bugfix
13639       on 0.3.2.1-alpha.
13640     - Fix a memory leak when decrypting a badly formatted v3 onion
13641       service descriptor. Fixes bug 24150; bugfix on 0.3.2.1-alpha.
13642       Found by OSS-Fuzz; this is OSS-Fuzz issue 3994.
13644   o Minor bugfixes (onion services):
13645     - Cache some needed onion service client information instead of
13646       constantly computing it over and over again. Fixes bug 23623;
13647       bugfix on 0.3.2.1-alpha.
13648     - Properly retry HSv3 descriptor fetches when missing required
13649       directory information. Fixes bug 23762; bugfix on 0.3.2.1-alpha.
13651   o Minor bugfixes (path selection):
13652     - When selecting relays by bandwidth, avoid a rounding error that
13653       could sometimes cause load to be imbalanced incorrectly.
13654       Previously, we would always round upwards; now, we round towards
13655       the nearest integer. This had the biggest effect when a relay's
13656       weight adjustments should have given it weight 0, but it got
13657       weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha.
13658     - When calculating the fraction of nodes that have descriptors, and
13659       all nodes in the network have zero bandwidths, count the number of
13660       nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha.
13661     - Actually log the total bandwidth in compute_weighted_bandwidths().
13662       Fixes bug 24170; bugfix on 0.2.4.3-alpha.
13664   o Minor bugfixes (relay, crash):
13665     - Avoid a crash when transitioning from client mode to bridge mode.
13666       Previously, we would launch the worker threads whenever our
13667       "public server" mode changed, but not when our "server" mode
13668       changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha.
13670   o Minor bugfixes (testing):
13671     - Fix a spurious fuzzing-only use of an uninitialized value. Found
13672       by Brian Carpenter. Fixes bug 24082; bugfix on 0.3.0.3-alpha.
13673     - Test that IPv6-only clients can use microdescriptors when running
13674       "make test-network-all". Requires chutney master 61c28b9 or later.
13675       Closes ticket 24109.
13678 Changes in version 0.3.2.3-alpha - 2017-10-27
13679   Tor 0.3.2.3-alpha is the third release in the 0.3.2 series. It fixes
13680   numerous small bugs in earlier versions of 0.3.2.x, and adds a new
13681   directory authority, Bastet.
13683   o Directory authority changes:
13684     - Add "Bastet" as a ninth directory authority to the default list.
13685       Closes ticket 23910.
13686     - The directory authority "Longclaw" has changed its IP address.
13687       Closes ticket 23592.
13689   o Minor features (bridge):
13690     - Bridge relays can now set the BridgeDistribution config option to
13691       add a "bridge-distribution-request" line to their bridge
13692       descriptor, which tells BridgeDB how they'd like their bridge
13693       address to be given out. (Note that as of Oct 2017, BridgeDB does
13694       not yet implement this feature.) As a side benefit, this feature
13695       provides a way to distinguish bridge descriptors from non-bridge
13696       descriptors. Implements tickets 18329.
13698   o Minor features (client, entry guards):
13699     - Improve log messages when missing descriptors for primary guards.
13700       Resolves ticket 23670.
13702   o Minor features (geoip):
13703     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
13704       Country database.
13706   o Minor bugfixes (bridge):
13707     - Overwrite the bridge address earlier in the process of retrieving
13708       its descriptor, to make sure we reach it on the configured
13709       address. Fixes bug 20532; bugfix on 0.2.0.10-alpha.
13711   o Minor bugfixes (documentation):
13712     - Document better how to read gcov, and what our gcov postprocessing
13713       scripts do. Fixes bug 23739; bugfix on 0.2.9.1-alpha.
13715   o Minor bugfixes (entry guards):
13716     - Tor now updates its guard state when it reads a consensus
13717       regardless of whether it's missing descriptors. That makes tor use
13718       its primary guards to fetch descriptors in some edge cases where
13719       it would previously have used fallback directories. Fixes bug
13720       23862; bugfix on 0.3.0.1-alpha.
13722   o Minor bugfixes (hidden service client):
13723     - When handling multiple SOCKS request for the same .onion address,
13724       only fetch the service descriptor once.
13725     - When a descriptor fetch fails with a non-recoverable error, close
13726       all pending SOCKS requests for that .onion. Fixes bug 23653;
13727       bugfix on 0.3.2.1-alpha.
13729   o Minor bugfixes (hidden service):
13730     - Always regenerate missing hidden service public key files. Prior
13731       to this, if the public key was deleted from disk, it wouldn't get
13732       recreated. Fixes bug 23748; bugfix on 0.3.2.2-alpha. Patch
13733       from "cathugger".
13734     - Make sure that we have a usable ed25519 key when the intro point
13735       relay supports ed25519 link authentication. Fixes bug 24002;
13736       bugfix on 0.3.2.1-alpha.
13738   o Minor bugfixes (hidden service, v2):
13739     - When reloading configured hidden services, copy all information
13740       from the old service object. Previously, some data was omitted,
13741       causing delays in descriptor upload, and other bugs. Fixes bug
13742       23790; bugfix on 0.2.1.9-alpha.
13744   o Minor bugfixes (memory safety, defensive programming):
13745     - Clear the target address when node_get_prim_orport() returns
13746       early. Fixes bug 23874; bugfix on 0.2.8.2-alpha.
13748   o Minor bugfixes (relay):
13749     - Avoid a BUG warning when receiving a dubious CREATE cell while an
13750       option transition is in progress. Fixes bug 23952; bugfix
13751       on 0.3.2.1-alpha.
13753   o Minor bugfixes (testing):
13754     - Adjust the GitLab CI configuration to more closely match that of
13755       Travis CI. Fixes bug 23757; bugfix on 0.3.2.2-alpha.
13756     - Prevent scripts/test/coverage from attempting to move gcov output
13757       to the root directory. Fixes bug 23741; bugfix on 0.2.5.1-alpha.
13758     - When running unit tests as root, skip a test that would fail
13759       because it expects a permissions error. This affects some
13760       continuous integration setups. Fixes bug 23758; bugfix
13761       on 0.3.2.2-alpha.
13762     - Stop unconditionally mirroring the tor repository in GitLab CI.
13763       This prevented developers from enabling GitLab CI on master. Fixes
13764       bug 23755; bugfix on 0.3.2.2-alpha.
13765     - Fix the hidden service v3 descriptor decoding fuzzing to use the
13766       latest decoding API correctly. Fixes bug 21509; bugfix
13767       on 0.3.2.1-alpha.
13769   o Minor bugfixes (warnings):
13770     - When we get an HTTP request on a SOCKS port, tell the user about
13771       the new HTTPTunnelPort option. Previously, we would give a "Tor is
13772       not an HTTP Proxy" message, which stopped being true when
13773       HTTPTunnelPort was introduced. Fixes bug 23678; bugfix
13774       on 0.3.2.1-alpha.
13777 Changes in version 0.2.5.15 - 2017-10-25
13778   Tor 0.2.5.15 backports a collection of bugfixes from later Tor release
13779   series. It also adds a new directory authority, Bastet.
13781   Note: the Tor 0.2.5 series will no longer be supported after 1 May
13782   2018. If you need a release with long-term support, please upgrade to
13783   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
13785   o Directory authority changes:
13786     - Add "Bastet" as a ninth directory authority to the default list.
13787       Closes ticket 23910.
13788     - The directory authority "Longclaw" has changed its IP address.
13789       Closes ticket 23592.
13791   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
13792     - Avoid an assertion failure bug affecting our implementation of
13793       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
13794       handling of "0xx" differs from what we had expected. Fixes bug
13795       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
13797   o Minor features (geoip):
13798     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
13799       Country database.
13801   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
13802     - Fix a memset() off the end of an array when packing cells. This
13803       bug should be harmless in practice, since the corrupted bytes are
13804       still in the same structure, and are always padding bytes,
13805       ignored, or immediately overwritten, depending on compiler
13806       behavior. Nevertheless, because the memset()'s purpose is to make
13807       sure that any other cell-handling bugs can't expose bytes to the
13808       network, we need to fix it. Fixes bug 22737; bugfix on
13809       0.2.4.11-alpha. Fixes CID 1401591.
13811   o Build features (backport from 0.3.1.5-alpha):
13812     - Tor's repository now includes a Travis Continuous Integration (CI)
13813       configuration file (.travis.yml). This is meant to help new
13814       developers and contributors who fork Tor to a Github repository be
13815       better able to test their changes, and understand what we expect
13816       to pass. To use this new build feature, you must fork Tor to your
13817       Github account, then go into the "Integrations" menu in the
13818       repository settings for your fork and enable Travis, then push
13819       your changes. Closes ticket 22636.
13822 Changes in version 0.2.8.16 - 2017-10-25
13823   Tor 0.2.8.16 backports a collection of bugfixes from later Tor release
13824   series, including a bugfix for a crash issue that had affected relays
13825   under memory pressure. It also adds a new directory authority, Bastet.
13827   Note: the Tor 0.2.8 series will no longer be supported after 1 Jan
13828   2018. If you need a release with long-term support, please stick with
13829   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
13831   o Directory authority changes:
13832     - Add "Bastet" as a ninth directory authority to the default list.
13833       Closes ticket 23910.
13834     - The directory authority "Longclaw" has changed its IP address.
13835       Closes ticket 23592.
13837   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
13838     - Fix a timing-based assertion failure that could occur when the
13839       circuit out-of-memory handler freed a connection's output buffer.
13840       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
13842   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
13843     - Remove longclaw's IPv6 address, as it will soon change. Authority
13844       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
13845       3/8 directory authorities with IPv6 addresses, but there are also
13846       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
13848   o Minor features (geoip):
13849     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
13850       Country database.
13853 Changes in version 0.2.9.13 - 2017-10-25
13854   Tor 0.2.9.13 backports a collection of bugfixes from later Tor release
13855   series, including a bugfix for a crash issue that had affected relays
13856   under memory pressure. It also adds a new directory authority, Bastet.
13858   o Directory authority changes:
13859     - Add "Bastet" as a ninth directory authority to the default list.
13860       Closes ticket 23910.
13861     - The directory authority "Longclaw" has changed its IP address.
13862       Closes ticket 23592.
13864   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
13865     - Fix a timing-based assertion failure that could occur when the
13866       circuit out-of-memory handler freed a connection's output buffer.
13867       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
13869   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
13870     - Remove longclaw's IPv6 address, as it will soon change. Authority
13871       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
13872       3/8 directory authorities with IPv6 addresses, but there are also
13873       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
13875   o Minor features (geoip):
13876     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
13877       Country database.
13879   o Minor bugfixes (directory authority, backport from 0.3.1.5-alpha):
13880     - When a directory authority rejects a descriptor or extrainfo with
13881       a given digest, mark that digest as undownloadable, so that we do
13882       not attempt to download it again over and over. We previously
13883       tried to avoid downloading such descriptors by other means, but we
13884       didn't notice if we accidentally downloaded one anyway. This
13885       behavior became problematic in 0.2.7.2-alpha, when authorities
13886       began pinning Ed25519 keys. Fixes bug 22349; bugfix
13887       on 0.2.1.19-alpha.
13889   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
13890     - Clear the address when node_get_prim_orport() returns early.
13891       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
13893   o Minor bugfixes (Windows service, backport from 0.3.1.6-rc):
13894     - When running as a Windows service, set the ID of the main thread
13895       correctly. Failure to do so made us fail to send log messages to
13896       the controller in 0.2.1.16-rc, slowed down controller event
13897       delivery in 0.2.7.3-rc and later, and crash with an assertion
13898       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
13899       Patch and diagnosis from "Vort".
13902 Changes in version 0.3.0.12 - 2017-10-25
13903   Tor 0.3.0.12 backports a collection of bugfixes from later Tor release
13904   series, including a bugfix for a crash issue that had affected relays
13905   under memory pressure. It also adds a new directory authority, Bastet.
13907   Note: the Tor 0.3.0 series will no longer be supported after 26 Jan
13908   2018. If you need a release with long-term support, please stick with
13909   the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later.
13911   o Directory authority changes:
13912     - Add "Bastet" as a ninth directory authority to the default list.
13913       Closes ticket 23910.
13914     - The directory authority "Longclaw" has changed its IP address.
13915       Closes ticket 23592.
13917   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
13918     - Fix a timing-based assertion failure that could occur when the
13919       circuit out-of-memory handler freed a connection's output buffer.
13920       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
13922   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
13923     - Remove longclaw's IPv6 address, as it will soon change. Authority
13924       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
13925       3/8 directory authorities with IPv6 addresses, but there are also
13926       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
13928   o Minor features (geoip):
13929     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
13930       Country database.
13932   o Minor bugfixes (directory authority, backport from 0.3.1.5-alpha):
13933     - When a directory authority rejects a descriptor or extrainfo with
13934       a given digest, mark that digest as undownloadable, so that we do
13935       not attempt to download it again over and over. We previously
13936       tried to avoid downloading such descriptors by other means, but we
13937       didn't notice if we accidentally downloaded one anyway. This
13938       behavior became problematic in 0.2.7.2-alpha, when authorities
13939       began pinning Ed25519 keys. Fixes bug 22349; bugfix
13940       on 0.2.1.19-alpha.
13942   o Minor bugfixes (hidden service, relay, backport from 0.3.2.2-alpha):
13943     - Avoid a possible double close of a circuit by the intro point on
13944       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
13945       bugfix on 0.3.0.1-alpha.
13947   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
13948     - Clear the address when node_get_prim_orport() returns early.
13949       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
13951   o Minor bugfixes (Windows service, backport from 0.3.1.6-rc):
13952     - When running as a Windows service, set the ID of the main thread
13953       correctly. Failure to do so made us fail to send log messages to
13954       the controller in 0.2.1.16-rc, slowed down controller event
13955       delivery in 0.2.7.3-rc and later, and crash with an assertion
13956       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
13957       Patch and diagnosis from "Vort".
13960 Changes in version 0.3.1.8 - 2017-10-25
13961   Tor 0.3.1.8 is the second stable release in the 0.3.1 series.
13962   It includes several bugfixes, including a bugfix for a crash issue
13963   that had affected relays under memory pressure. It also adds
13964   a new directory authority, Bastet.
13966   o Directory authority changes:
13967     - Add "Bastet" as a ninth directory authority to the default list.
13968       Closes ticket 23910.
13969     - The directory authority "Longclaw" has changed its IP address.
13970       Closes ticket 23592.
13972   o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha):
13973     - Fix a timing-based assertion failure that could occur when the
13974       circuit out-of-memory handler freed a connection's output buffer.
13975       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
13977   o Minor features (directory authorities, backport from 0.3.2.2-alpha):
13978     - Remove longclaw's IPv6 address, as it will soon change. Authority
13979       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
13980       3/8 directory authorities with IPv6 addresses, but there are also
13981       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
13983   o Minor features (geoip):
13984     - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2
13985       Country database.
13987   o Minor bugfixes (compilation, backport from 0.3.2.2-alpha):
13988     - Fix a compilation warning when building with zstd support on
13989       32-bit platforms. Fixes bug 23568; bugfix on 0.3.1.1-alpha. Found
13990       and fixed by Andreas Stieger.
13992   o Minor bugfixes (compression, backport from 0.3.2.2-alpha):
13993     - Handle a pathological case when decompressing Zstandard data when
13994       the output buffer size is zero. Fixes bug 23551; bugfix
13995       on 0.3.1.1-alpha.
13997   o Minor bugfixes (directory authority, backport from 0.3.2.1-alpha):
13998     - Remove the length limit on HTTP status lines that authorities can
13999       send in their replies. Fixes bug 23499; bugfix on 0.3.1.6-rc.
14001   o Minor bugfixes (hidden service, relay, backport from 0.3.2.2-alpha):
14002     - Avoid a possible double close of a circuit by the intro point on
14003       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
14004       bugfix on 0.3.0.1-alpha.
14006   o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha):
14007     - Clear the address when node_get_prim_orport() returns early.
14008       Fixes bug 23874; bugfix on 0.2.8.2-alpha.
14010   o Minor bugfixes (unit tests, backport from 0.3.2.2-alpha):
14011     - Fix additional channelpadding unit test failures by using mocked
14012       time instead of actual time for all tests. Fixes bug 23608; bugfix
14013       on 0.3.1.1-alpha.
14016 Changes in version 0.3.2.2-alpha - 2017-09-29
14017   Tor 0.3.2.2-alpha is the second release in the 0.3.2 series. This
14018   release fixes several minor bugs in the new scheduler and next-
14019   generation onion services; both features were newly added in the 0.3.2
14020   series. Other fixes in this alpha include several fixes for non-fatal
14021   tracebacks which would appear in logs.
14023   With the aim to stabilise the 0.3.2 series by 15 December 2017, this
14024   alpha does not contain any substantial new features. Minor features
14025   include better testing and logging.
14027   The following comprises the complete list of changes included
14028   in 0.3.2.2-alpha:
14030   o Major bugfixes (relay, crash, assertion failure):
14031     - Fix a timing-based assertion failure that could occur when the
14032       circuit out-of-memory handler freed a connection's output buffer.
14033       Fixes bug 23690; bugfix on 0.2.6.1-alpha.
14035   o Major bugfixes (scheduler):
14036     - If a channel is put into the scheduler's pending list, then it
14037       starts closing, and then if the scheduler runs before it finishes
14038       closing, the scheduler will get stuck trying to flush its cells
14039       while the lower layers refuse to cooperate. Fix that race
14040       condition by giving the scheduler an escape method. Fixes bug
14041       23676; bugfix on 0.3.2.1-alpha.
14043   o Minor features (build, compilation):
14044     - The "check-changes" feature is now part of the "make check" tests;
14045       we'll use it to try to prevent misformed changes files from
14046       accumulating. Closes ticket 23564.
14047     - Tor builds should now fail if there are any mismatches between the
14048       C type representing a configuration variable and the C type the
14049       data-driven parser uses to store a value there. Previously, we
14050       needed to check these by hand, which sometimes led to mistakes.
14051       Closes ticket 23643.
14053   o Minor features (directory authorities):
14054     - Remove longclaw's IPv6 address, as it will soon change. Authority
14055       IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves
14056       3/8 directory authorities with IPv6 addresses, but there are also
14057       52 fallback directory mirrors with IPv6 addresses. Resolves 19760.
14059   o Minor features (hidden service, circuit, logging):
14060     - Improve logging of many callsite in the circuit subsystem to print
14061       the circuit identifier(s).
14062     - Log when we cleanup an intro point from a service so we know when
14063       and for what reason it happened. Closes ticket 23604.
14065   o Minor features (logging):
14066     - Log more circuit information whenever we are about to try to
14067       package a relay cell on a circuit with a nonexistent n_chan.
14068       Attempt to diagnose ticket 8185.
14069     - Improve info-level log identification of particular circuits, to
14070       help with debugging. Closes ticket 23645.
14072   o Minor features (relay):
14073     - When choosing which circuits can be expired as unused, consider
14074       circuits from clients even if those clients used regular CREATE
14075       cells to make them; and do not consider circuits from relays even
14076       if they were made with CREATE_FAST. Part of ticket 22805.
14078   o Minor features (robustness):
14079     - Change several fatal assertions when flushing buffers into non-
14080       fatal assertions, to prevent any recurrence of 23690.
14082   o Minor features (spec conformance, bridge, diagnostic):
14083     - When handling the USERADDR command on an ExtOrPort, warn when the
14084       transports provides a USERADDR with no port. In a future version,
14085       USERADDR commands of this format may be rejected. Detects problems
14086       related to ticket 23080.
14088   o Minor features (testing):
14089     - Add a unit test to make sure that our own generated platform
14090       string will be accepted by directory authorities. Closes
14091       ticket 22109.
14093   o Minor bugfixes (bootstrapping):
14094     - When warning about state file clock skew, report the correct
14095       direction for the detected skew. Fixes bug 23606; bugfix
14096       on 0.2.8.1-alpha.
14097     - Avoid an assertion failure when logging a state file clock skew
14098       very early in bootstrapping. Fixes bug 23607; bugfix
14099       on 0.3.2.1-alpha.
14101   o Minor bugfixes (build, compilation):
14102     - Fix a compilation warning when building with zstd support on
14103       32-bit platforms. Fixes bug 23568; bugfix on 0.3.1.1-alpha. Found
14104       and fixed by Andreas Stieger.
14105     - When searching for OpenSSL, don't accept any OpenSSL library that
14106       lacks TLSv1_1_method(): Tor doesn't build with those versions.
14107       Additionally, look in /usr/local/opt/openssl, if it's present.
14108       These changes together repair the default build on OSX systems
14109       with Homebrew installed. Fixes bug 23602; bugfix on 0.2.7.2-alpha.
14111   o Minor bugfixes (compression):
14112     - Handle a pathological case when decompressing Zstandard data when
14113       the output buffer size is zero. Fixes bug 23551; bugfix
14114       on 0.3.1.1-alpha.
14116   o Minor bugfixes (documentation):
14117     - Fix manpage to not refer to the obsolete (and misspelled)
14118       UseEntryGuardsAsDirectoryGuards parameter in the description of
14119       NumDirectoryGuards. Fixes bug 23611; bugfix on 0.2.4.8-alpha.
14121   o Minor bugfixes (hidden service v3):
14122     - Don't log an assertion failure when we can't find the right
14123       information to extend to an introduction point. In rare cases,
14124       this could happen, causing a warning, even though tor would
14125       recover gracefully. Fixes bug 23159; bugfix on 0.3.2.1-alpha.
14126     - Pad RENDEZVOUS cell up to the size of the legacy cell which is
14127       much bigger so the rendezvous point can't distinguish which hidden
14128       service protocol is being used. Fixes bug 23420; bugfix
14129       on 0.3.2.1-alpha.
14131   o Minor bugfixes (hidden service, relay):
14132     - Avoid a possible double close of a circuit by the intro point on
14133       error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610;
14134       bugfix on 0.3.0.1-alpha.
14136   o Minor bugfixes (logging, relay shutdown, annoyance):
14137     - When a circuit is marked for close, do not attempt to package any
14138       cells for channels on that circuit. Previously, we would detect
14139       this condition lower in the call stack, when we noticed that the
14140       circuit had no attached channel, and log an annoying message.
14141       Fixes bug 8185; bugfix on 0.2.5.4-alpha.
14143   o Minor bugfixes (scheduler):
14144     - When switching schedulers due to a consensus change, we didn't
14145       give the new scheduler a chance to react to the consensus. Fix
14146       that. Fixes bug 23537; bugfix on 0.3.2.1-alpha.
14147     - Make the KISTSchedRunInterval option a non negative value. With
14148       this, the way to disable KIST through the consensus is to set it
14149       to 0. Fixes bug 23539; bugfix on 0.3.2.1-alpha.
14150     - Only notice log the selected scheduler when we switch scheduler
14151       types. Fixes bug 23552; bugfix on 0.3.2.1-alpha.
14152     - Avoid a compilation warning on macOS in scheduler_ev_add() caused
14153       by a different tv_usec data type. Fixes bug 23575; bugfix
14154       on 0.3.2.1-alpha.
14155     - Make a hard exit if tor is unable to pick a scheduler which can
14156       happen if the user specifies a scheduler type that is not
14157       supported and not other types in Schedulers. Fixes bug 23581;
14158       bugfix on 0.3.2.1-alpha.
14159     - Properly initialize the scheduler last run time counter so it is
14160       not 0 at the first tick. Fixes bug 23696; bugfix on 0.3.2.1-alpha.
14162   o Minor bugfixes (testing):
14163     - Capture and detect several "Result does not fit" warnings in unit
14164       tests on platforms with 32-bit time_t. Fixes bug 21800; bugfix
14165       on 0.2.9.3-alpha.
14166     - Fix additional channelpadding unit test failures by using mocked
14167       time instead of actual time for all tests. Fixes bug 23608; bugfix
14168       on 0.3.1.1-alpha.
14169     - The removal of some old scheduler options caused some tests to
14170       fail on BSD systems. Assume current behavior is correct and make
14171       the tests pass again. Fixes bug 23566; bugfix on 0.3.2.1-alpha.
14173   o Code simplification and refactoring:
14174     - Remove various ways of testing circuits and connections for
14175       "clientness"; instead, favor channel_is_client(). Part of
14176       ticket 22805.
14178   o Deprecated features:
14179     - The ReachableDirAddresses and ClientPreferIPv6DirPort options are
14180       now deprecated; they do not apply to relays, and they have had no
14181       effect on clients since 0.2.8.x. Closes ticket 19704.
14183   o Documentation:
14184     - HiddenServiceVersion man page entry wasn't mentioning the now
14185       supported version 3. Fixes ticket 23580; bugfix on 0.3.2.1-alpha.
14186     - Clarify that the Address option is entirely about setting an
14187       advertised IPv4 address. Closes ticket 18891.
14188     - Clarify the manpage's use of the term "address" to clarify what
14189       kind of address is intended. Closes ticket 21405.
14190     - Document that onion service subdomains are allowed, and ignored.
14191       Closes ticket 18736.
14194 Changes in version 0.3.2.1-alpha - 2017-09-18
14195   Tor 0.3.2.1-alpha is the first release in the 0.3.2.x series. It
14196   includes support for our next-generation ("v3") onion service
14197   protocol, and adds a new circuit scheduler for more responsive
14198   forwarding decisions from relays. There are also numerous other small
14199   features and bugfixes here.
14201   Below are the changes since Tor 0.3.1.7.
14203   o Major feature (scheduler, channel):
14204     - Tor now uses new schedulers to decide which circuits should
14205       deliver cells first, in order to improve congestion at relays. The
14206       first type is called "KIST" ("Kernel Informed Socket Transport"),
14207       and is only available on Linux-like systems: it uses feedback from
14208       the kernel to prevent the kernel's TCP buffers from growing too
14209       full. The second new scheduler type is called "KISTLite": it
14210       behaves the same as KIST, but runs on systems without kernel
14211       support for inspecting TCP implementation details. The old
14212       scheduler is still available, under the name "Vanilla". To change
14213       the default scheduler preference order, use the new "Schedulers"
14214       option. (The default preference order is "KIST,KISTLite,Vanilla".)
14216       Matt Traudt implemented KIST, based on research by Rob Jansen,
14217       John Geddes, Christ Wacek, Micah Sherr, and Paul Syverson. For
14218       more information, see the design paper at
14219       http://www.robgjansen.com/publications/kist-sec2014.pdf and the
14220       followup implementation paper at https://arxiv.org/abs/1709.01044.
14221       Closes ticket 12541.
14223   o Major features (next-generation onion services):
14224     - Tor now supports the next-generation onion services protocol for
14225       clients and services! As part of this release, the core of
14226       proposal 224 has been implemented and is available for
14227       experimentation and testing by our users. This newer version of
14228       onion services ("v3") features many improvements over the legacy
14229       system, including:
14231       a) Better crypto (replaced SHA1/DH/RSA1024
14232       with SHA3/ed25519/curve25519)
14234       b) Improved directory protocol, leaking much less information to
14235       directory servers.
14237       c) Improved directory protocol, with smaller surface for
14238       targeted attacks.
14240       d) Better onion address security against impersonation.
14242       e) More extensible introduction/rendezvous protocol.
14244       f) A cleaner and more modular codebase.
14246       You can identify a next-generation onion address by its length:
14247       they are 56 characters long, as in
14248       "4acth47i6kxnvkewtm6q7ib2s3ufpo5sqbsnzjpbi7utijcltosqemad.onion".
14250       In the future, we will release more options and features for v3
14251       onion services, but we first need a testing period, so that the
14252       current codebase matures and becomes more robust. Planned features
14253       include: offline keys, advanced client authorization, improved
14254       guard algorithms, and statistics. For full details, see
14255       proposal 224.
14257       Legacy ("v2") onion services will still work for the foreseeable
14258       future, and will remain the default until this new codebase gets
14259       tested and hardened. Service operators who want to experiment with
14260       the new system can use the 'HiddenServiceVersion 3' torrc
14261       directive along with the regular onion service configuration
14262       options. We will publish a blog post about this new feature
14263       soon! Enjoy!
14265   o Major bugfixes (usability, control port):
14266     - Report trusted clock skew indications as bootstrap errors, so
14267       controllers can more easily alert users when their clocks are
14268       wrong. Fixes bug 23506; bugfix on 0.1.2.6-alpha.
14270   o Minor features (bug detection):
14271     - Log a warning message with a stack trace for any attempt to call
14272       get_options() during option validation. This pattern has caused
14273       subtle bugs in the past. Closes ticket 22281.
14275   o Minor features (client):
14276     - You can now use Tor as a tunneled HTTP proxy: use the new
14277       HTTPTunnelPort option to open a port that accepts HTTP CONNECT
14278       requests. Closes ticket 22407.
14279     - Add an extra check to make sure that we always use the newer guard
14280       selection code for picking our guards. Closes ticket 22779.
14281     - When downloading (micro)descriptors, don't split the list into
14282       multiple requests unless we want at least 32 descriptors.
14283       Previously, we split at 4, not 32, which led to significant
14284       overhead in HTTP request size and degradation in compression
14285       performance. Closes ticket 23220.
14287   o Minor features (command line):
14288     - Add a new commandline option, --key-expiration, which prints when
14289       the current signing key is going to expire. Implements ticket
14290       17639; patch by Isis Lovecruft.
14292   o Minor features (control port):
14293     - If an application tries to use the control port as an HTTP proxy,
14294       respond with a meaningful "This is the Tor control port" message,
14295       and log the event. Closes ticket 1667. Patch from Ravi
14296       Chandra Padmala.
14297     - Provide better error message for GETINFO desc/(id|name) when not
14298       fetching router descriptors. Closes ticket 5847. Patch by
14299       Kevin Butler.
14300     - Add GETINFO "{desc,md}/download-enabled", to inform the controller
14301       whether Tor will try to download router descriptors and
14302       microdescriptors respectively. Closes ticket 22684.
14303     - Added new GETINFO targets "ip-to-country/{ipv4,ipv6}-available",
14304       so controllers can tell whether the geoip databases are loaded.
14305       Closes ticket 23237.
14306     - Adds a timestamp field to the CIRC_BW and STREAM_BW bandwidth
14307       events. Closes ticket 19254. Patch by "DonnchaC".
14309   o Minor features (development support):
14310     - Developers can now generate a call-graph for Tor using the
14311       "calltool" python program, which post-processes object dumps. It
14312       should work okay on many Linux and OSX platforms, and might work
14313       elsewhere too. To run it, install calltool from
14314       https://gitweb.torproject.org/user/nickm/calltool.git and run
14315       "make callgraph". Closes ticket 19307.
14317   o Minor features (ed25519):
14318     - Add validation function to checks for torsion components in
14319       ed25519 public keys, used by prop224 client-side code. Closes
14320       ticket 22006. Math help by Ian Goldberg.
14322   o Minor features (exit relay, DNS):
14323     - Improve the clarity and safety of the log message from evdns when
14324       receiving an apparently spoofed DNS reply. Closes ticket 3056.
14326   o Minor features (integration, hardening):
14327     - Add a new NoExec option to prevent Tor from running other
14328       programs. When this option is set to 1, Tor will never try to run
14329       another program, regardless of the settings of
14330       PortForwardingHelper, ClientTransportPlugin, or
14331       ServerTransportPlugin. Once NoExec is set, it cannot be disabled
14332       without restarting Tor. Closes ticket 22976.
14334   o Minor features (logging):
14335     - Improve the warning message for specifying a relay by nickname.
14336       The previous message implied that nickname registration was still
14337       part of the Tor network design, which it isn't. Closes
14338       ticket 20488.
14339     - If the sandbox filter fails to load, suggest to the user that
14340       their kernel might not support seccomp2. Closes ticket 23090.
14342   o Minor features (portability):
14343     - Check at configure time whether uint8_t is the same type as
14344       unsigned char. Lots of existing code already makes this
14345       assumption, and there could be strict aliasing issues if the
14346       assumption is violated. Closes ticket 22410.
14348   o Minor features (relay, configuration):
14349     - Reject attempts to use relative file paths when RunAsDaemon is
14350       set. Previously, Tor would accept these, but the directory-
14351       changing step of RunAsDaemon would give strange and/or confusing
14352       results. Closes ticket 22731.
14354   o Minor features (startup, safety):
14355     - When configured to write a PID file, Tor now exits if it is unable
14356       to do so. Previously, it would warn and continue. Closes
14357       ticket 20119.
14359   o Minor features (static analysis):
14360     - The BUG() macro has been changed slightly so that Coverity no
14361       longer complains about dead code if the bug is impossible. Closes
14362       ticket 23054.
14364   o Minor features (testing):
14365     - The default chutney network tests now include tests for the v3
14366       hidden service design. Make sure you have the latest version of
14367       chutney if you want to run these. Closes ticket 22437.
14368     - Add a unit test to verify that we can parse a hardcoded v2 hidden
14369       service descriptor. Closes ticket 15554.
14371   o Minor bugfixes (certificate handling):
14372     - Fix a time handling bug in Tor certificates set to expire after
14373       the year 2106. Fixes bug 23055; bugfix on 0.3.0.1-alpha. Found by
14374       Coverity as CID 1415728.
14376   o Minor bugfixes (client, usability):
14377     - Refrain from needlessly rejecting SOCKS5-with-hostnames and
14378       SOCKS4a requests that contain IP address strings, even when
14379       SafeSocks in enabled, as this prevents user from connecting to
14380       known IP addresses without relying on DNS for resolving. SafeSocks
14381       still rejects SOCKS connections that connect to IP addresses when
14382       those addresses are _not_ encoded as hostnames. Fixes bug 22461;
14383       bugfix on Tor 0.2.6.2-alpha.
14385   o Minor bugfixes (code correctness):
14386     - Call htons() in extend_cell_format() for encoding a 16-bit value.
14387       Previously we used ntohs(), which happens to behave the same on
14388       all the platforms we support, but which isn't really correct.
14389       Fixes bug 23106; bugfix on 0.2.4.8-alpha.
14390     - For defense-in-depth, make the controller's write_escaped_data()
14391       function robust to extremely long inputs. Fixes bug 19281; bugfix
14392       on 0.1.1.1-alpha. Reported by Guido Vranken.
14394   o Minor bugfixes (compilation):
14395     - Fix unused-variable warnings in donna's Curve25519 SSE2 code.
14396       Fixes bug 22895; bugfix on 0.2.7.2-alpha.
14398   o Minor bugfixes (consensus expiry):
14399     - Check for adequate directory information correctly. Previously, Tor
14400       would reconsider whether it had sufficient directory information
14401       every 2 minutes. Fixes bug 23091; bugfix on 0.2.0.19-alpha.
14403   o Minor bugfixes (directory protocol):
14404     - Directory servers now include a "Date:" http header for response
14405       codes other than 200. Clients starting with a skewed clock and a
14406       recent consensus were getting "304 Not modified" responses from
14407       directory authorities, so without the Date header, the client
14408       would never hear about a wrong clock. Fixes bug 23499; bugfix
14409       on 0.0.8rc1.
14410     - Make clients wait for 6 seconds before trying to download a
14411       consensus from an authority. Fixes bug 17750; bugfix
14412       on 0.2.8.1-alpha.
14414   o Minor bugfixes (DoS-resistance):
14415     - If future code asks if there are any running bridges, without
14416       checking if bridges are enabled, log a BUG warning rather than
14417       crashing. Fixes bug 23524; bugfix on 0.3.0.1-alpha.
14419   o Minor bugfixes (format strictness):
14420     - Restrict several data formats to decimal. Previously, the
14421       BuildTimeHistogram entries in the state file, the "bw=" entries in
14422       the bandwidth authority file, and the process IDs passed to the
14423       __OwningControllerProcess option could all be specified in hex or
14424       octal as well as in decimal. This was not an intentional feature.
14425       Fixes bug 22802; bugfixes on 0.2.2.1-alpha, 0.2.2.2-alpha,
14426       and 0.2.2.28-beta.
14428   o Minor bugfixes (heartbeat):
14429     - If we fail to write a heartbeat message, schedule a retry for the
14430       minimum heartbeat interval number of seconds in the future. Fixes
14431       bug 19476; bugfix on 0.2.3.1-alpha.
14433   o Minor bugfixes (linux seccomp2 sandbox, logging):
14434     - Fix some messages on unexpected errors from the seccomp2 library.
14435       Fixes bug 22750; bugfix on 0.2.5.1-alpha. Patch from "cypherpunks".
14437   o Minor bugfixes (logging):
14438     - Remove duplicate log messages regarding opening non-local
14439       SocksPorts upon parsing config and opening listeners at startup.
14440       Fixes bug 4019; bugfix on 0.2.3.3-alpha.
14441     - Use a more comprehensible log message when telling the user
14442       they've excluded every running exit node. Fixes bug 7890; bugfix
14443       on 0.2.2.25-alpha.
14444     - When logging the number of descriptors we intend to download per
14445       directory request, do not log a number higher than then the number
14446       of descriptors we're fetching in total. Fixes bug 19648; bugfix
14447       on 0.1.1.8-alpha.
14448     - When warning about a directory owned by the wrong user, log the
14449       actual name of the user owning the directory. Previously, we'd log
14450       the name of the process owner twice. Fixes bug 23487; bugfix
14451       on 0.2.9.1-alpha.
14452     - The tor specification says hop counts are 1-based, so fix two log
14453       messages that mistakenly logged 0-based hop counts. Fixes bug
14454       18982; bugfix on 0.2.6.2-alpha and 0.2.4.5-alpha. Patch by teor.
14455       Credit to Xiaofan Li for reporting this issue.
14457   o Minor bugfixes (portability):
14458     - Stop using the PATH_MAX variable, which is not defined on GNU
14459       Hurd. Fixes bug 23098; bugfix on 0.3.1.1-alpha.
14461   o Minor bugfixes (relay):
14462     - When uploading our descriptor for the first time after startup,
14463       report the reason for uploading as "Tor just started" rather than
14464       leaving it blank. Fixes bug 22885; bugfix on 0.2.3.4-alpha.
14465     - Avoid unnecessary calls to directory_fetches_from_authorities() on
14466       relays, to prevent spurious address resolutions and descriptor
14467       rebuilds. This is a mitigation for bug 21789. Fixes bug 23470;
14468       bugfix on in 0.2.8.1-alpha.
14470   o Minor bugfixes (tests):
14471     - Fix a broken unit test for the OutboundAddress option: the parsing
14472       function was never returning an error on failure. Fixes bug 23366;
14473       bugfix on 0.3.0.3-alpha.
14474     - Fix a signed-integer overflow in the unit tests for
14475       dir/download_status_random_backoff, which was untriggered until we
14476       fixed bug 17750. Fixes bug 22924; bugfix on 0.2.9.1-alpha.
14478   o Minor bugfixes (usability, control port):
14479     - Stop making an unnecessary routerlist check in NETINFO clock skew
14480       detection; this was preventing clients from reporting NETINFO clock
14481       skew to controllers. Fixes bug 23532; bugfix on 0.2.4.4-alpha.
14483   o Code simplification and refactoring:
14484     - Extract the code for handling newly-open channels into a separate
14485       function from the general code to handle channel state
14486       transitions. This change simplifies our callgraph, reducing the
14487       size of the largest strongly connected component by roughly a
14488       factor of two. Closes ticket 22608.
14489     - Remove dead code for largely unused statistics on the number of
14490       times we've attempted various public key operations. Fixes bug
14491       19871; bugfix on 0.1.2.4-alpha. Fix by Isis Lovecruft.
14492     - Remove several now-obsolete functions for asking about old
14493       variants directory authority status. Closes ticket 22311; patch
14494       from "huyvq".
14495     - Remove some of the code that once supported "Named" and "Unnamed"
14496       routers. Authorities no longer vote for these flags. Closes
14497       ticket 22215.
14498     - Rename the obsolete malleable hybrid_encrypt functions used in TAP
14499       and old hidden services, to indicate that they aren't suitable for
14500       new protocols or formats. Closes ticket 23026.
14501     - Replace our STRUCT_OFFSET() macro with offsetof(). Closes ticket
14502       22521. Patch from Neel Chauhan.
14503     - Split the enormous circuit_send_next_onion_skin() function into
14504       multiple subfunctions. Closes ticket 22804.
14505     - Split the portions of the buffer.c module that handle particular
14506       protocols into separate modules. Part of ticket 23149.
14507     - Use our test macros more consistently, to produce more useful
14508       error messages when our unit tests fail. Add coccinelle patches to
14509       allow us to re-check for test macro uses. Closes ticket 22497.
14511   o Deprecated features:
14512     - Deprecate HTTPProxy/HTTPProxyAuthenticator config options. They
14513       only applies to direct unencrypted HTTP connections to your
14514       directory server, which your Tor probably isn't using. Closes
14515       ticket 20575.
14517   o Documentation:
14518     - Clarify in the manual that "Sandbox 1" is only supported on Linux
14519       kernels. Closes ticket 22677.
14520     - Document all values of PublishServerDescriptor in the manpage.
14521       Closes ticket 15645.
14522     - Improve the documentation for the directory port part of the
14523       DirAuthority line. Closes ticket 20152.
14524     - Restore documentation for the authorities' "approved-routers"
14525       file. Closes ticket 21148.
14527   o Removed features:
14528     - The AllowDotExit option has been removed as unsafe. It has been
14529       deprecated since 0.2.9.2-alpha. Closes ticket 23426.
14530     - The ClientDNSRejectInternalAddresses flag can no longer be set on
14531       non-testing networks. It has been deprecated since 0.2.9.2-alpha.
14532       Closes ticket 21031.
14533     - The controller API no longer includes an AUTHDIR_NEWDESCS event:
14534       nobody was using it any longer. Closes ticket 22377.
14537 Changes in version 0.2.8.15 - 2017-09-18
14538   Tor 0.2.8.15 backports a collection of bugfixes from later
14539   Tor series.
14541   Most significantly, it includes a fix for TROVE-2017-008, a
14542   security bug that affects hidden services running with the
14543   SafeLogging option disabled. For more information, see
14544   https://trac.torproject.org/projects/tor/ticket/23490
14546   Note that Tor 0.2.8.x will no longer be supported after 1 Jan
14547   2018.  We suggest that you upgrade to the latest stable release if
14548   possible.  If you can't, we recommend that you upgrade at least to
14549   0.2.9, which will be supported until 2020.
14551   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
14552     - Avoid an assertion failure bug affecting our implementation of
14553       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
14554       handling of "0xx" differs from what we had expected. Fixes bug
14555       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
14557   o Minor features:
14558     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
14559       Country database.
14561   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
14562     - Backport a fix for an "unused variable" warning that appeared
14563       in some versions of mingw. Fixes bug 22838; bugfix on
14564       0.2.8.1-alpha.
14566   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
14567     - Fix a memset() off the end of an array when packing cells. This
14568       bug should be harmless in practice, since the corrupted bytes are
14569       still in the same structure, and are always padding bytes,
14570       ignored, or immediately overwritten, depending on compiler
14571       behavior. Nevertheless, because the memset()'s purpose is to make
14572       sure that any other cell-handling bugs can't expose bytes to the
14573       network, we need to fix it. Fixes bug 22737; bugfix on
14574       0.2.4.11-alpha. Fixes CID 1401591.
14576   o Build features (backport from 0.3.1.5-alpha):
14577     - Tor's repository now includes a Travis Continuous Integration (CI)
14578       configuration file (.travis.yml). This is meant to help new
14579       developers and contributors who fork Tor to a Github repository be
14580       better able to test their changes, and understand what we expect
14581       to pass. To use this new build feature, you must fork Tor to your
14582       Github account, then go into the "Integrations" menu in the
14583       repository settings for your fork and enable Travis, then push
14584       your changes. Closes ticket 22636.
14587 Changes in version 0.2.9.12 - 2017-09-18
14588   Tor 0.2.9.12 backports a collection of bugfixes from later
14589   Tor series.
14591   Most significantly, it includes a fix for TROVE-2017-008, a
14592   security bug that affects hidden services running with the
14593   SafeLogging option disabled. For more information, see
14594   https://trac.torproject.org/projects/tor/ticket/23490
14596   o Major features (security, backport from 0.3.0.2-alpha):
14597     - Change the algorithm used to decide DNS TTLs on client and server
14598       side, to better resist DNS-based correlation attacks like the
14599       DefecTor attack of Greschbach, Pulls, Roberts, Winter, and
14600       Feamster. Now relays only return one of two possible DNS TTL
14601       values, and clients are willing to believe DNS TTL values up to 3
14602       hours long. Closes ticket 19769.
14604   o Major bugfixes (crash, directory connections, backport from 0.3.0.5-rc):
14605     - Fix a rare crash when sending a begin cell on a circuit whose
14606       linked directory connection had already been closed. Fixes bug
14607       21576; bugfix on 0.2.9.3-alpha. Reported by Alec Muffett.
14609   o Major bugfixes (DNS, backport from 0.3.0.2-alpha):
14610     - Fix a bug that prevented exit nodes from caching DNS records for
14611       more than 60 seconds. Fixes bug 19025; bugfix on 0.2.4.7-alpha.
14613   o Major bugfixes (linux TPROXY support, backport from 0.3.1.1-alpha):
14614     - Fix a typo that had prevented TPROXY-based transparent proxying
14615       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
14616       Patch from "d4fq0fQAgoJ".
14618   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
14619     - Avoid an assertion failure bug affecting our implementation of
14620       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
14621       handling of "0xx" differs from what we had expected. Fixes bug
14622       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
14624   o Minor features (code style, backport from 0.3.1.3-alpha):
14625     - Add "Falls through" comments to our codebase, in order to silence
14626       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
14627       Stieger. Closes ticket 22446.
14629   o Minor features (geoip):
14630     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
14631       Country database.
14633   o Minor bugfixes (bandwidth accounting, backport from 0.3.1.1-alpha):
14634     - Roll over monthly accounting at the configured hour and minute,
14635       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
14636       Found by Andrey Karpov with PVS-Studio.
14638   o Minor bugfixes (compilation, backport from 0.3.1.5-alpha):
14639     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug 22915;
14640       bugfix on 0.2.8.1-alpha.
14641     - Fix warnings when building with libscrypt and openssl scrypt support
14642       on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
14643     - When building with certain versions the mingw C header files, avoid
14644       float-conversion warnings when calling the C functions isfinite(),
14645       isnan(), and signbit(). Fixes bug 22801; bugfix on 0.2.8.1-alpha.
14647   o Minor bugfixes (compilation, backport from 0.3.1.7):
14648     - Avoid compiler warnings in the unit tests for running tor_sscanf()
14649       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
14651   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
14652     - Backport a fix for an "unused variable" warning that appeared
14653       in some versions of mingw. Fixes bug 22838; bugfix on
14654       0.2.8.1-alpha.
14656   o Minor bugfixes (controller, backport from 0.3.1.7):
14657     - Do not crash when receiving a HSPOST command with an empty body.
14658       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
14659     - Do not crash when receiving a POSTDESCRIPTOR command with an
14660       empty body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
14662   o Minor bugfixes (coverity build support, backport from 0.3.1.5-alpha):
14663     - Avoid Coverity build warnings related to our BUG() macro. By
14664       default, Coverity treats BUG() as the Linux kernel does: an
14665       instant abort(). We need to override that so our BUG() macro
14666       doesn't prevent Coverity from analyzing functions that use it.
14667       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
14669   o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha):
14670     - Fix a memset() off the end of an array when packing cells. This
14671       bug should be harmless in practice, since the corrupted bytes are
14672       still in the same structure, and are always padding bytes,
14673       ignored, or immediately overwritten, depending on compiler
14674       behavior. Nevertheless, because the memset()'s purpose is to make
14675       sure that any other cell-handling bugs can't expose bytes to the
14676       network, we need to fix it. Fixes bug 22737; bugfix on
14677       0.2.4.11-alpha. Fixes CID 1401591.
14679   o Minor bugfixes (file limits, osx, backport from 0.3.1.5-alpha):
14680     - When setting the maximum number of connections allowed by the OS,
14681       always allow some extra file descriptors for other files. Fixes
14682       bug 22797; bugfix on 0.2.0.10-alpha.
14684   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.5-alpha):
14685     - Avoid a sandbox failure when trying to re-bind to a socket and
14686       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
14688   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.4-alpha):
14689     - Permit the fchmod system call, to avoid crashing on startup when
14690       starting with the seccomp2 sandbox and an unexpected set of
14691       permissions on the data directory or its contents. Fixes bug
14692       22516; bugfix on 0.2.5.4-alpha.
14694   o Minor bugfixes (relay, backport from 0.3.0.5-rc):
14695     - Avoid a double-marked-circuit warning that could happen when we
14696       receive DESTROY cells under heavy load. Fixes bug 20059; bugfix
14697       on 0.1.0.1-rc.
14699   o Minor bugfixes (voting consistency, backport from 0.3.1.1-alpha):
14700     - Reject version numbers with non-numeric prefixes (such as +, -, or
14701       whitespace). Disallowing whitespace prevents differential version
14702       parsing between POSIX-based and Windows platforms. Fixes bug 21507
14703       and part of 21508; bugfix on 0.0.8pre1.
14705   o Build features (backport from 0.3.1.5-alpha):
14706     - Tor's repository now includes a Travis Continuous Integration (CI)
14707       configuration file (.travis.yml). This is meant to help new
14708       developers and contributors who fork Tor to a Github repository be
14709       better able to test their changes, and understand what we expect
14710       to pass. To use this new build feature, you must fork Tor to your
14711       Github account, then go into the "Integrations" menu in the
14712       repository settings for your fork and enable Travis, then push
14713       your changes. Closes ticket 22636.
14716 Changes in version 0.3.0.11 - 2017-09-18
14717   Tor 0.3.0.11 backports a collection of bugfixes from Tor the 0.3.1
14718   series.
14720   Most significantly, it includes a fix for TROVE-2017-008, a
14721   security bug that affects hidden services running with the
14722   SafeLogging option disabled. For more information, see
14723   https://trac.torproject.org/projects/tor/ticket/23490
14725   o Minor features (code style, backport from 0.3.1.7):
14726     - Add "Falls through" comments to our codebase, in order to silence
14727       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
14728       Stieger. Closes ticket 22446.
14730   o Minor features:
14731     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
14732       Country database.
14734   o Minor bugfixes (compilation, backport from 0.3.1.7):
14735     - Avoid compiler warnings in the unit tests for calling tor_sscanf()
14736       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
14738   o Minor bugfixes (controller, backport from 0.3.1.7):
14739     - Do not crash when receiving a HSPOST command with an empty body.
14740       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
14741     - Do not crash when receiving a POSTDESCRIPTOR command with an empty
14742       body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
14744   o Minor bugfixes (file limits, osx, backport from 0.3.1.5-alpha):
14745     - When setting the maximum number of connections allowed by the OS,
14746       always allow some extra file descriptors for other files. Fixes
14747       bug 22797; bugfix on 0.2.0.10-alpha.
14749   o Minor bugfixes (logging, relay, backport from 0.3.1.6-rc):
14750     - Remove a forgotten debugging message when an introduction point
14751       successfully establishes a hidden service prop224 circuit with
14752       a client.
14753     - Change three other log_warn() for an introduction point to
14754       protocol warnings, because they can be failure from the network
14755       and are not relevant to the operator. Fixes bug 23078; bugfix on
14756       0.3.0.1-alpha and 0.3.0.2-alpha.
14759 Changes in version 0.3.1.7 - 2017-09-18
14760   Tor 0.3.1.7 is the first stable release in the 0.3.1 series.
14762   With the 0.3.1 series, Tor now serves and downloads directory
14763   information in more compact formats, to save on bandwidth overhead. It
14764   also contains a new padding system to resist netflow-based traffic
14765   analysis, and experimental support for building parts of Tor in Rust
14766   (though no parts of Tor are in Rust yet). There are also numerous
14767   small features, bugfixes on earlier release series, and groundwork for
14768   the hidden services revamp of 0.3.2.
14770   This release also includes a fix for TROVE-2017-008, a security bug
14771   that affects hidden services running with the SafeLogging option
14772   disabled. For more information, see
14773   https://trac.torproject.org/projects/tor/ticket/23490
14775   Per our stable release policy, we plan to support each stable release
14776   series for at least the next nine months, or for three months after
14777   the first stable release of the next series: whichever is longer. If
14778   you need a release with long-term support, we recommend that you stay
14779   with the 0.2.9 series.
14781   Below is a list of the changes since 0.3.1.6-rc. For a list of all
14782   changes since 0.3.0, see the ReleaseNotes file.
14784   o Major bugfixes (security, hidden services, loggging):
14785     - Fix a bug where we could log uninitialized stack when a certain
14786       hidden service error occurred while SafeLogging was disabled.
14787       Fixes bug #23490; bugfix on 0.2.7.2-alpha. This is also tracked as
14788       TROVE-2017-008 and CVE-2017-0380.
14790   o Minor features (defensive programming):
14791     - Create a pair of consensus parameters, nf_pad_tor2web and
14792       nf_pad_single_onion, to disable netflow padding in the consensus
14793       for non-anonymous connections in case the overhead is high. Closes
14794       ticket 17857.
14796   o Minor features (diagnostic):
14797     - Add a stack trace to the bug warnings that can be logged when
14798       trying to send an outgoing relay cell with n_chan == 0. Diagnostic
14799       attempt for bug 23105.
14801   o Minor features (geoip):
14802     - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2
14803       Country database.
14805   o Minor bugfixes (compilation):
14806     - Avoid compiler warnings in the unit tests for calling tor_sscanf()
14807       with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha.
14809   o Minor bugfixes (controller):
14810     - Do not crash when receiving a HSPOST command with an empty body.
14811       Fixes part of bug 22644; bugfix on 0.2.7.1-alpha.
14812     - Do not crash when receiving a POSTDESCRIPTOR command with an empty
14813       body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha.
14815   o Minor bugfixes (relay):
14816     - Inform the geoip and rephist modules about all requests, even on
14817       relays that are only fetching microdescriptors. Fixes a bug
14818       related to 21585; bugfix on 0.3.0.1-alpha.
14820   o Minor bugfixes (unit tests):
14821     - Fix a channelpadding unit test failure on slow systems by using
14822       mocked time instead of actual time. Fixes bug 23077; bugfix
14823       on 0.3.1.1-alpha.
14826 Changes in version 0.3.1.6-rc - 2017-09-05
14827   Tor 0.3.1.6-rc fixes a few small bugs and annoyances in the 0.3.1
14828   release series, including a bug that produced weird behavior on
14829   Windows directory caches.
14831   This is the first release candidate in the Tor 0.3.1 series. If we
14832   find no new bugs or regressions here, the first stable 0.3.1 release
14833   will be nearly identical to it.
14835   o Major bugfixes (windows, directory cache):
14836     - On Windows, do not try to delete cached consensus documents and
14837       diffs before they are unmapped from memory--Windows won't allow
14838       that. Instead, allow the consensus cache directory to grow larger,
14839       to hold files that might need to stay around longer. Fixes bug
14840       22752; bugfix on 0.3.1.1-alpha.
14842   o Minor features (directory authority):
14843     - Improve the message that authorities report to relays that present
14844       RSA/Ed25519 keypairs that conflict with previously pinned keys.
14845       Closes ticket 22348.
14847   o Minor features (geoip):
14848     - Update geoip and geoip6 to the August 3 2017 Maxmind GeoLite2
14849       Country database.
14851   o Minor features (testing):
14852     - Add more tests for compression backend initialization. Closes
14853       ticket 22286.
14855   o Minor bugfixes (directory cache):
14856     - Fix a memory leak when recovering space in the consensus cache.
14857       Fixes bug 23139; bugfix on 0.3.1.1-alpha.
14859   o Minor bugfixes (hidden service):
14860     - Increase the number of circuits that a service is allowed to
14861       open over a specific period of time. The value was lower than it
14862       should be (8 vs 12) in the normal case of 3 introduction points.
14863       Fixes bug 22159; bugfix on 0.3.0.5-rc.
14864     - Fix a BUG warning during HSv3 descriptor decoding that could be
14865       cause by a specially crafted descriptor. Fixes bug 23233; bugfix
14866       on 0.3.0.1-alpha. Bug found by "haxxpop".
14867     - Rate-limit the log messages if we exceed the maximum number of
14868       allowed intro circuits. Fixes bug 22159; bugfix on 0.3.1.1-alpha.
14870   o Minor bugfixes (logging, relay):
14871     - Remove a forgotten debugging message when an introduction point
14872       successfully establishes a hidden service prop224 circuit with
14873       a client.
14874     - Change three other log_warn() for an introduction point to
14875       protocol warnings, because they can be failure from the network
14876       and are not relevant to the operator. Fixes bug 23078; bugfix on
14877       0.3.0.1-alpha and 0.3.0.2-alpha.
14879   o Minor bugfixes (relay):
14880     - When a relay is not running as a directory cache, it will no
14881       longer generate compressed consensuses and consensus diff
14882       information. Previously, this was a waste of disk and CPU. Fixes
14883       bug 23275; bugfix on 0.3.1.1-alpha.
14885   o Minor bugfixes (robustness, error handling):
14886     - Improve our handling of the cases where OpenSSL encounters a
14887       memory error while encoding keys and certificates. We haven't
14888       observed these errors in the wild, but if they do happen, we now
14889       detect and respond better. Fixes bug 19418; bugfix on all versions
14890       of Tor. Reported by Guido Vranken.
14892   o Minor bugfixes (stability):
14893     - Avoid crashing on a double-free when unable to load or process an
14894       included file. Fixes bug 23155; bugfix on 0.3.1.1-alpha. Found
14895       with the clang static analyzer.
14897   o Minor bugfixes (testing):
14898     - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291;
14899       bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij.
14900     - Port the hs_ntor handshake test to work correctly with recent
14901       versions of the pysha3 module. Fixes bug 23071; bugfix
14902       on 0.3.1.1-alpha.
14904   o Minor bugfixes (Windows service):
14905     - When running as a Windows service, set the ID of the main thread
14906       correctly. Failure to do so made us fail to send log messages to
14907       the controller in 0.2.1.16-rc, slowed down controller event
14908       delivery in 0.2.7.3-rc and later, and crash with an assertion
14909       failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha.
14910       Patch and diagnosis from "Vort".
14913 Changes in version 0.3.0.10 - 2017-08-02
14914    Tor 0.3.0.10 backports a collection of small-to-medium bugfixes
14915    from the current Tor alpha series. OpenBSD users and TPROXY users
14916    should upgrade; others are probably okay sticking with 0.3.0.9.
14918   o Major features (build system, continuous integration, backport from 0.3.1.5-alpha):
14919     - Tor's repository now includes a Travis Continuous Integration (CI)
14920       configuration file (.travis.yml). This is meant to help new
14921       developers and contributors who fork Tor to a Github repository be
14922       better able to test their changes, and understand what we expect
14923       to pass. To use this new build feature, you must fork Tor to your
14924       Github account, then go into the "Integrations" menu in the
14925       repository settings for your fork and enable Travis, then push
14926       your changes. Closes ticket 22636.
14928   o Major bugfixes (linux TPROXY support, backport from 0.3.1.1-alpha):
14929     - Fix a typo that had prevented TPROXY-based transparent proxying
14930       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
14931       Patch from "d4fq0fQAgoJ".
14933   o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha):
14934     - Avoid an assertion failure bug affecting our implementation of
14935       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
14936       handling of "0xbar" differs from what we had expected. Fixes bug
14937       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
14939   o Minor features (backport from 0.3.1.5-alpha):
14940     - Update geoip and geoip6 to the July 4 2017 Maxmind GeoLite2
14941       Country database.
14943   o Minor bugfixes (bandwidth accounting, backport from 0.3.1.2-alpha):
14944     - Roll over monthly accounting at the configured hour and minute,
14945       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
14946       Found by Andrey Karpov with PVS-Studio.
14948   o Minor bugfixes (compilation warnings, backport from 0.3.1.5-alpha):
14949     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug 22915;
14950       bugfix on 0.2.8.1-alpha.
14951     - Fix warnings when building with libscrypt and openssl scrypt
14952       support on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
14953     - When building with certain versions of the mingw C header files,
14954       avoid float-conversion warnings when calling the C functions
14955       isfinite(), isnan(), and signbit(). Fixes bug 22801; bugfix
14956       on 0.2.8.1-alpha.
14958   o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha):
14959     - Backport a fix for an "unused variable" warning that appeared
14960       in some versions of mingw. Fixes bug 22838; bugfix on
14961       0.2.8.1-alpha.
14963   o Minor bugfixes (coverity build support, backport from 0.3.1.5-alpha):
14964     - Avoid Coverity build warnings related to our BUG() macro. By
14965       default, Coverity treats BUG() as the Linux kernel does: an
14966       instant abort(). We need to override that so our BUG() macro
14967       doesn't prevent Coverity from analyzing functions that use it.
14968       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
14970   o Minor bugfixes (directory authority, backport from 0.3.1.1-alpha):
14971     - When rejecting a router descriptor for running an obsolete version
14972       of Tor without ntor support, warn about the obsolete tor version,
14973       not the missing ntor key. Fixes bug 20270; bugfix on 0.2.9.3-alpha.
14975   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.5-alpha):
14976     - Avoid a sandbox failure when trying to re-bind to a socket and
14977       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
14979   o Minor bugfixes (unit tests, backport from 0.3.1.5-alpha)
14980     - Fix a memory leak in the link-handshake/certs_ok_ed25519 test.
14981       Fixes bug 22803; bugfix on 0.3.0.1-alpha.
14984 Changes in version 0.3.1.5-alpha - 2017-08-01
14985   Tor 0.3.1.5-alpha improves the performance of consensus diff
14986   calculation, fixes a crash bug on older versions of OpenBSD, and fixes
14987   several other bugs. If no serious bugs are found in this version, the
14988   next version will be a release candidate.
14990   This release also marks the end of support for the Tor 0.2.4.x,
14991   0.2.6.x, and 0.2.7.x release series. Those releases will receive no
14992   further bug or security fixes. Anyone still running or distributing
14993   one of those versions should upgrade.
14995   o Major features (build system, continuous integration):
14996     - Tor's repository now includes a Travis Continuous Integration (CI)
14997       configuration file (.travis.yml). This is meant to help new
14998       developers and contributors who fork Tor to a Github repository be
14999       better able to test their changes, and understand what we expect
15000       to pass. To use this new build feature, you must fork Tor to your
15001       Github account, then go into the "Integrations" menu in the
15002       repository settings for your fork and enable Travis, then push
15003       your changes. Closes ticket 22636.
15005   o Major bugfixes (openbsd, denial-of-service):
15006     - Avoid an assertion failure bug affecting our implementation of
15007       inet_pton(AF_INET6) on certain OpenBSD systems whose strtol()
15008       handling of "0xbar" differs from what we had expected. Fixes bug
15009       22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007.
15011   o Major bugfixes (relay, performance):
15012     - Perform circuit handshake operations at a higher priority than we
15013       use for consensus diff creation and compression. This should
15014       prevent circuits from starving when a relay or bridge receives a
15015       new consensus, especially on lower-powered machines. Fixes bug
15016       22883; bugfix on 0.3.1.1-alpha.
15018   o Minor features (bridge authority):
15019     - Add "fingerprint" lines to the networkstatus-bridges file produced
15020       by bridge authorities. Closes ticket 22207.
15022   o Minor features (directory cache, consensus diff):
15023     - Add a new MaxConsensusAgeForDiffs option to allow directory cache
15024       operators with low-resource environments to adjust the number of
15025       consensuses they'll store and generate diffs from. Most cache
15026       operators should leave it unchanged. Helps to work around
15027       bug 22883.
15029   o Minor features (geoip):
15030     - Update geoip and geoip6 to the July 4 2017 Maxmind GeoLite2
15031       Country database.
15033   o Minor features (relay, performance):
15034     - Always start relays with at least two worker threads, to prevent
15035       priority inversion on slow tasks. Part of the fix for bug 22883.
15036     - Allow background work to be queued with different priorities, so
15037       that a big pile of slow low-priority jobs will not starve out
15038       higher priority jobs. This lays the groundwork for a fix for
15039       bug 22883.
15041   o Minor bugfixes (build system, rust):
15042     - Fix a problem where Rust toolchains were not being found when
15043       building without --enable-cargo-online-mode, due to setting the
15044       $HOME environment variable instead of $CARGO_HOME. Fixes bug
15045       22830; bugfix on 0.3.1.1-alpha. Fix by Chelsea Komlo.
15047   o Minor bugfixes (compatibility, zstd):
15048     - Write zstd epilogues correctly when the epilogue requires
15049       reallocation of the output buffer, even with zstd 1.3.0.
15050       (Previously, we worked on 1.2.0 and failed with 1.3.0). Fixes bug
15051       22927; bugfix on 0.3.1.1-alpha.
15053   o Minor bugfixes (compilation warnings):
15054     - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug
15055       22915; bugfix on 0.2.8.1-alpha.
15056     - Fix warnings when building with libscrypt and openssl scrypt
15057       support on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha.
15058     - Compile correctly when both openssl 1.1.0 and libscrypt are
15059       detected. Previously this would cause an error. Fixes bug 22892;
15060       bugfix on 0.3.1.1-alpha.
15061     - When building with certain versions of the mingw C header files,
15062       avoid float-conversion warnings when calling the C functions
15063       isfinite(), isnan(), and signbit(). Fixes bug 22801; bugfix
15064       on 0.2.8.1-alpha.
15066   o Minor bugfixes (coverity build support):
15067     - Avoid Coverity build warnings related to our BUG() macro. By
15068       default, Coverity treats BUG() as the Linux kernel does: an
15069       instant abort(). We need to override that so our BUG() macro
15070       doesn't prevent Coverity from analyzing functions that use it.
15071       Fixes bug 23030; bugfix on 0.2.9.1-alpha.
15073   o Minor bugfixes (directory authority):
15074     - When a directory authority rejects a descriptor or extrainfo with
15075       a given digest, mark that digest as undownloadable, so that we do
15076       not attempt to download it again over and over. We previously
15077       tried to avoid downloading such descriptors by other means, but we
15078       didn't notice if we accidentally downloaded one anyway. This
15079       behavior became problematic in 0.2.7.2-alpha, when authorities
15080       began pinning Ed25519 keys. Fixes bug 22349; bugfix
15081       on 0.2.1.19-alpha.
15083   o Minor bugfixes (error reporting, windows):
15084     - When formatting Windows error messages, use the English format to
15085       avoid codepage issues. Fixes bug 22520; bugfix on 0.1.2.8-alpha.
15086       Patch from "Vort".
15088   o Minor bugfixes (file limits, osx):
15089     - When setting the maximum number of connections allowed by the OS,
15090       always allow some extra file descriptors for other files. Fixes
15091       bug 22797; bugfix on 0.2.0.10-alpha.
15093   o Minor bugfixes (linux seccomp2 sandbox):
15094     - Avoid a sandbox failure when trying to re-bind to a socket and
15095       mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha.
15097   o Minor bugfixes (memory leaks):
15098     - Fix a small memory leak when validating a configuration that uses
15099       two or more AF_UNIX sockets for the same port type. Fixes bug
15100       23053; bugfix on 0.2.6.3-alpha. This is CID 1415725.
15102   o Minor bugfixes (unit tests):
15103     - test_consdiff_base64cmp would fail on OS X because while OS X
15104       follows the standard of (less than zero/zero/greater than zero),
15105       it doesn't follow the convention of (-1/0/+1). Make the test
15106       comply with the standard. Fixes bug 22870; bugfix on 0.3.1.1-alpha.
15107     - Fix a memory leak in the link-handshake/certs_ok_ed25519 test.
15108       Fixes bug 22803; bugfix on 0.3.0.1-alpha.
15111 Changes in version 0.3.1.4-alpha - 2017-06-29
15112   Tor 0.3.1.4-alpha fixes a path selection bug that would allow a client
15113   to use a guard that was in the same network family as a chosen exit
15114   relay. This is a security regression; all clients running earlier
15115   versions of 0.3.0.x or 0.3.1.x should upgrade to 0.3.0.9
15116   or 0.3.1.4-alpha.
15118   This release also fixes several other bugs introduced in 0.3.0.x
15119   and 0.3.1.x, including others that can affect bandwidth usage
15120   and correctness.
15122   o New dependencies:
15123     - To build with zstd and lzma support, Tor now requires the
15124       pkg-config tool at build time. (This requirement was new in
15125       0.3.1.1-alpha, but was not noted at the time. Noting it here to
15126       close ticket 22623.)
15128   o Major bugfixes (path selection, security):
15129     - When choosing which guard to use for a circuit, avoid the exit's
15130       family along with the exit itself. Previously, the new guard
15131       selection logic avoided the exit, but did not consider its family.
15132       Fixes bug 22753; bugfix on 0.3.0.1-alpha. Tracked as TROVE-2017-
15133       006 and CVE-2017-0377.
15135   o Major bugfixes (compression, zstd):
15136     - Correctly detect a full buffer when decompressing a large zstd-
15137       compressed input. Previously, we would sometimes treat a full
15138       buffer as an error. Fixes bug 22628; bugfix on 0.3.1.1-alpha.
15140   o Major bugfixes (directory protocol):
15141     - Ensure that we send "304 Not modified" as HTTP status code when a
15142       client is attempting to fetch a consensus or consensus diff, and
15143       the best one we can send them is one they already have. Fixes bug
15144       22702; bugfix on 0.3.1.1-alpha.
15146   o Major bugfixes (entry guards):
15147     - When starting with an old consensus, do not add new entry guards
15148       unless the consensus is "reasonably live" (under 1 day old). Fixes
15149       one root cause of bug 22400; bugfix on 0.3.0.1-alpha.
15151   o Minor features (bug mitigation, diagnostics, logging):
15152     - Avoid an assertion failure, and log a better error message, when
15153       unable to remove a file from the consensus cache on Windows.
15154       Attempts to mitigate and diagnose bug 22752.
15156   o Minor features (geoip):
15157     - Update geoip and geoip6 to the June 8 2017 Maxmind GeoLite2
15158       Country database.
15160   o Minor bugfixes (compression):
15161     - When compressing or decompressing a buffer, check for a failure to
15162       create a compression object. Fixes bug 22626; bugfix
15163       on 0.3.1.1-alpha.
15164     - When decompressing a buffer, check for extra data after the end of
15165       the compressed data. Fixes bug 22629; bugfix on 0.3.1.1-alpha.
15166     - When decompressing an object received over an anonymous directory
15167       connection, if we have already decompressed it using an acceptable
15168       compression method, do not reject it for looking like an
15169       unacceptable compression method. Fixes part of bug 22670; bugfix
15170       on 0.3.1.1-alpha.
15171     - When serving directory votes compressed with zlib, do not claim to
15172       have compressed them with zstd. Fixes bug 22669; bugfix
15173       on 0.3.1.1-alpha.
15174     - When spooling compressed data to an output buffer, don't try to
15175       spool more data when there is no more data to spool and we are not
15176       trying to flush the input. Previously, we would sometimes launch
15177       compression requests with nothing to do, which interferes with our
15178       22672 checks. Fixes bug 22719; bugfix on 0.2.0.16-alpha.
15180   o Minor bugfixes (defensive programming):
15181     - Detect and break out of infinite loops in our compression code. We
15182       don't think that any such loops exist now, but it's best to be
15183       safe. Closes ticket 22672.
15184     - Fix a memset() off the end of an array when packing cells. This
15185       bug should be harmless in practice, since the corrupted bytes are
15186       still in the same structure, and are always padding bytes,
15187       ignored, or immediately overwritten, depending on compiler
15188       behavior. Nevertheless, because the memset()'s purpose is to make
15189       sure that any other cell-handling bugs can't expose bytes to the
15190       network, we need to fix it. Fixes bug 22737; bugfix on
15191       0.2.4.11-alpha. Fixes CID 1401591.
15193   o Minor bugfixes (linux seccomp2 sandbox):
15194     - Permit the fchmod system call, to avoid crashing on startup when
15195       starting with the seccomp2 sandbox and an unexpected set of
15196       permissions on the data directory or its contents. Fixes bug
15197       22516; bugfix on 0.2.5.4-alpha.
15198     - Fix a crash in the LZMA module, when the sandbox was enabled, and
15199       liblzma would allocate more than 16 MB of memory. We solve this by
15200       bumping the mprotect() limit in the sandbox module from 16 MB to
15201       20 MB. Fixes bug 22751; bugfix on 0.3.1.1-alpha.
15203   o Minor bugfixes (logging):
15204     - When decompressing, do not warn if we fail to decompress using a
15205       compression method that we merely guessed. Fixes part of bug
15206       22670; bugfix on 0.1.1.14-alpha.
15207     - When decompressing, treat mismatch between content-encoding and
15208       actual compression type as a protocol warning. Fixes part of bug
15209       22670; bugfix on 0.1.1.9-alpha.
15210     - Downgrade "assigned_to_cpuworker failed" message to info-level
15211       severity. In every case that can reach it, either a better warning
15212       has already been logged, or no warning is warranted. Fixes bug
15213       22356; bugfix on 0.2.6.3-alpha.
15214     - Demote a warn that was caused by libevent delays to info if
15215       netflow padding is less than 4.5 seconds late, or to notice
15216       if it is more (4.5 seconds is the amount of time that a netflow
15217       record might be emitted after, if we chose the maximum timeout).
15218       Fixes bug 22212; bugfix on 0.3.1.1-alpha.
15220   o Minor bugfixes (process behavior):
15221     - When exiting because of an error, always exit with a nonzero exit
15222       status. Previously, we would fail to report an error in our exit
15223       status in cases related to __OwningControllerProcess failure,
15224       lockfile contention, and Ed25519 key initialization. Fixes bug
15225       22720; bugfix on versions 0.2.1.6-alpha, 0.2.2.28-beta, and
15226       0.2.7.2-alpha respectively. Reported by "f55jwk4f"; patch
15227       from "huyvq".
15229   o Documentation:
15230     - Add a manpage description for the key-pinning-journal file. Closes
15231       ticket 22347.
15232     - Correctly note that bandwidth accounting values are stored in the
15233       state file, and the bw_accounting file is now obsolete. Closes
15234       ticket 16082.
15235     - Document more of the files in the Tor data directory, including
15236       cached-extrainfo, secret_onion_key{,_ntor}.old, hidserv-stats,
15237       approved-routers, sr-random, and diff-cache. Found while fixing
15238       ticket 22347.
15241 Changes in version 0.3.0.9 - 2017-06-29
15242   Tor 0.3.0.9 fixes a path selection bug that would allow a client
15243   to use a guard that was in the same network family as a chosen exit
15244   relay. This is a security regression; all clients running earlier
15245   versions of 0.3.0.x or 0.3.1.x should upgrade to 0.3.0.9 or
15246   0.3.1.4-alpha.
15248   This release also backports several other bugfixes from the 0.3.1.x
15249   series.
15251   o Major bugfixes (path selection, security, backport from 0.3.1.4-alpha):
15252     - When choosing which guard to use for a circuit, avoid the exit's
15253       family along with the exit itself. Previously, the new guard
15254       selection logic avoided the exit, but did not consider its family.
15255       Fixes bug 22753; bugfix on 0.3.0.1-alpha. Tracked as TROVE-2017-
15256       006 and CVE-2017-0377.
15258   o Major bugfixes (entry guards, backport from 0.3.1.1-alpha):
15259     - Don't block bootstrapping when a primary bridge is offline and we
15260       can't get its descriptor. Fixes bug 22325; fixes one case of bug
15261       21969; bugfix on 0.3.0.3-alpha.
15263   o Major bugfixes (entry guards, backport from 0.3.1.4-alpha):
15264     - When starting with an old consensus, do not add new entry guards
15265       unless the consensus is "reasonably live" (under 1 day old). Fixes
15266       one root cause of bug 22400; bugfix on 0.3.0.1-alpha.
15268   o Minor features (geoip):
15269     - Update geoip and geoip6 to the June 8 2017 Maxmind GeoLite2
15270       Country database.
15272   o Minor bugfixes (voting consistency, backport from 0.3.1.1-alpha):
15273     - Reject version numbers with non-numeric prefixes (such as +, -, or
15274       whitespace). Disallowing whitespace prevents differential version
15275       parsing between POSIX-based and Windows platforms. Fixes bug 21507
15276       and part of 21508; bugfix on 0.0.8pre1.
15278   o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.4-alpha):
15279     - Permit the fchmod system call, to avoid crashing on startup when
15280       starting with the seccomp2 sandbox and an unexpected set of
15281       permissions on the data directory or its contents. Fixes bug
15282       22516; bugfix on 0.2.5.4-alpha.
15284   o Minor bugfixes (defensive programming, backport from 0.3.1.4-alpha):
15285     - Fix a memset() off the end of an array when packing cells. This
15286       bug should be harmless in practice, since the corrupted bytes are
15287       still in the same structure, and are always padding bytes,
15288       ignored, or immediately overwritten, depending on compiler
15289       behavior. Nevertheless, because the memset()'s purpose is to make
15290       sure that any other cell-handling bugs can't expose bytes to the
15291       network, we need to fix it. Fixes bug 22737; bugfix on
15292       0.2.4.11-alpha. Fixes CID 1401591.
15295 Changes in version 0.3.1.3-alpha - 2017-06-08
15296   Tor 0.3.1.3-alpha fixes a pair of bugs that would allow an attacker to
15297   remotely crash a hidden service with an assertion failure. Anyone
15298   running a hidden service should upgrade to this version, or to some
15299   other version with fixes for TROVE-2017-004 and TROVE-2017-005.
15301   Tor 0.3.1.3-alpha also includes fixes for several key management bugs
15302   that sometimes made relays unreliable, as well as several other
15303   bugfixes described below.
15305   o Major bugfixes (hidden service, relay, security):
15306     - Fix a remotely triggerable assertion failure when a hidden service
15307       handles a malformed BEGIN cell. Fixes bug 22493, tracked as
15308       TROVE-2017-004 and as CVE-2017-0375; bugfix on 0.3.0.1-alpha.
15309     - Fix a remotely triggerable assertion failure caused by receiving a
15310       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
15311       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
15312       on 0.2.2.1-alpha.
15314   o Major bugfixes (relay, link handshake):
15315     - When performing the v3 link handshake on a TLS connection, report
15316       that we have the x509 certificate that we actually used on that
15317       connection, even if we have changed certificates since that
15318       connection was first opened. Previously, we would claim to have
15319       used our most recent x509 link certificate, which would sometimes
15320       make the link handshake fail. Fixes one case of bug 22460; bugfix
15321       on 0.2.3.6-alpha.
15323   o Major bugfixes (relays, key management):
15324     - Regenerate link and authentication certificates whenever the key
15325       that signs them changes; also, regenerate link certificates
15326       whenever the signed key changes. Previously, these processes were
15327       only weakly coupled, and we relays could (for minutes to hours)
15328       wind up with an inconsistent set of keys and certificates, which
15329       other relays would not accept. Fixes two cases of bug 22460;
15330       bugfix on 0.3.0.1-alpha.
15331     - When sending an Ed25519 signing->link certificate in a CERTS cell,
15332       send the certificate that matches the x509 certificate that we
15333       used on the TLS connection. Previously, there was a race condition
15334       if the TLS context rotated after we began the TLS handshake but
15335       before we sent the CERTS cell. Fixes a case of bug 22460; bugfix
15336       on 0.3.0.1-alpha.
15338   o Major bugfixes (torrc, crash):
15339     - Fix a crash bug when using %include in torrc. Fixes bug 22417;
15340       bugfix on 0.3.1.1-alpha. Patch by Daniel Pinto.
15342   o Minor features (code style):
15343     - Add "Falls through" comments to our codebase, in order to silence
15344       GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas
15345       Stieger. Closes ticket 22446.
15347   o Minor features (diagnostic):
15348     - Add logging messages to try to diagnose a rare bug that seems to
15349       generate RSA->Ed25519 cross-certificates dated in the 1970s. We
15350       think this is happening because of incorrect system clocks, but
15351       we'd like to know for certain. Diagnostic for bug 22466.
15353   o Minor bugfixes (correctness):
15354     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
15355       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
15357   o Minor bugfixes (directory protocol):
15358     - Check for libzstd >= 1.1, because older versions lack the
15359       necessary streaming API. Fixes bug 22413; bugfix on 0.3.1.1-alpha.
15361   o Minor bugfixes (link handshake):
15362     - Lower the lifetime of the RSA->Ed25519 cross-certificate to six
15363       months, and regenerate it when it is within one month of expiring.
15364       Previously, we had generated this certificate at startup with a
15365       ten-year lifetime, but that could lead to weird behavior when Tor
15366       was started with a grossly inaccurate clock. Mitigates bug 22466;
15367       mitigation on 0.3.0.1-alpha.
15369   o Minor bugfixes (storage directories):
15370     - Always check for underflows in the cached storage directory usage.
15371       If the usage does underflow, re-calculate it. Also, avoid a
15372       separate underflow when the usage is not known. Fixes bug 22424;
15373       bugfix on 0.3.1.1-alpha.
15375   o Minor bugfixes (unit tests):
15376     - The unit tests now pass on systems where localhost is misconfigured
15377       to some IPv4 address other than 127.0.0.1. Fixes bug 6298; bugfix
15378       on 0.0.9pre2.
15380   o Documentation:
15381     - Clarify the manpage for the (deprecated) torify script. Closes
15382       ticket 6892.
15384 Changes in version 0.3.0.8 - 2017-06-08
15385   Tor 0.3.0.8 fixes a pair of bugs that would allow an attacker to
15386   remotely crash a hidden service with an assertion failure. Anyone
15387   running a hidden service should upgrade to this version, or to some
15388   other version with fixes for TROVE-2017-004 and TROVE-2017-005.
15390   Tor 0.3.0.8 also includes fixes for several key management bugs
15391   that sometimes made relays unreliable, as well as several other
15392   bugfixes described below.
15394   o Major bugfixes (hidden service, relay, security, backport
15395     from 0.3.1.3-alpha):
15396     - Fix a remotely triggerable assertion failure when a hidden service
15397       handles a malformed BEGIN cell. Fixes bug 22493, tracked as
15398       TROVE-2017-004 and as CVE-2017-0375; bugfix on 0.3.0.1-alpha.
15399     - Fix a remotely triggerable assertion failure caused by receiving a
15400       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
15401       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
15402       on 0.2.2.1-alpha.
15404   o Major bugfixes (relay, link handshake, backport from 0.3.1.3-alpha):
15405     - When performing the v3 link handshake on a TLS connection, report
15406       that we have the x509 certificate that we actually used on that
15407       connection, even if we have changed certificates since that
15408       connection was first opened. Previously, we would claim to have
15409       used our most recent x509 link certificate, which would sometimes
15410       make the link handshake fail. Fixes one case of bug 22460; bugfix
15411       on 0.2.3.6-alpha.
15413   o Major bugfixes (relays, key management, backport from 0.3.1.3-alpha):
15414     - Regenerate link and authentication certificates whenever the key
15415       that signs them changes; also, regenerate link certificates
15416       whenever the signed key changes. Previously, these processes were
15417       only weakly coupled, and we relays could (for minutes to hours)
15418       wind up with an inconsistent set of keys and certificates, which
15419       other relays would not accept. Fixes two cases of bug 22460;
15420       bugfix on 0.3.0.1-alpha.
15421     - When sending an Ed25519 signing->link certificate in a CERTS cell,
15422       send the certificate that matches the x509 certificate that we
15423       used on the TLS connection. Previously, there was a race condition
15424       if the TLS context rotated after we began the TLS handshake but
15425       before we sent the CERTS cell. Fixes a case of bug 22460; bugfix
15426       on 0.3.0.1-alpha.
15428   o Major bugfixes (hidden service v3, backport from 0.3.1.1-alpha):
15429     - Stop rejecting v3 hidden service descriptors because their size
15430       did not match an old padding rule. Fixes bug 22447; bugfix on
15431       0.3.0.1-alpha.
15433   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
15434     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
15435       December 2016 (of which ~126 were still functional) with a list of
15436       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
15437       2017. Resolves ticket 21564.
15439   o Minor bugfixes (configuration, backport from 0.3.1.1-alpha):
15440     - Do not crash when starting with LearnCircuitBuildTimeout 0. Fixes
15441       bug 22252; bugfix on 0.2.9.3-alpha.
15443   o Minor bugfixes (correctness, backport from 0.3.1.3-alpha):
15444     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
15445       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
15447   o Minor bugfixes (link handshake, backport from 0.3.1.3-alpha):
15448     - Lower the lifetime of the RSA->Ed25519 cross-certificate to six
15449       months, and regenerate it when it is within one month of expiring.
15450       Previously, we had generated this certificate at startup with a
15451       ten-year lifetime, but that could lead to weird behavior when Tor
15452       was started with a grossly inaccurate clock. Mitigates bug 22466;
15453       mitigation on 0.3.0.1-alpha.
15455   o Minor bugfixes (memory leak, directory authority, backport from
15456     0.3.1.2-alpha):
15457     - When directory authorities reject a router descriptor due to
15458       keypinning, free the router descriptor rather than leaking the
15459       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
15462 Changes in version 0.2.9.11 - 2017-06-08
15463   Tor 0.2.9.11 backports a fix for a bug that would allow an attacker to
15464   remotely crash a hidden service with an assertion failure. Anyone
15465   running a hidden service should upgrade to this version, or to some
15466   other version with fixes for TROVE-2017-005. (Versions before 0.3.0
15467   are not affected by TROVE-2017-004.)
15469   Tor 0.2.9.11 also backports fixes for several key management bugs
15470   that sometimes made relays unreliable, as well as several other
15471   bugfixes described below.
15473   o Major bugfixes (hidden service, relay, security, backport
15474     from 0.3.1.3-alpha):
15475     - Fix a remotely triggerable assertion failure caused by receiving a
15476       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
15477       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
15478       on 0.2.2.1-alpha.
15480   o Major bugfixes (relay, link handshake, backport from 0.3.1.3-alpha):
15481     - When performing the v3 link handshake on a TLS connection, report
15482       that we have the x509 certificate that we actually used on that
15483       connection, even if we have changed certificates since that
15484       connection was first opened. Previously, we would claim to have
15485       used our most recent x509 link certificate, which would sometimes
15486       make the link handshake fail. Fixes one case of bug 22460; bugfix
15487       on 0.2.3.6-alpha.
15489   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
15490     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
15491       December 2016 (of which ~126 were still functional) with a list of
15492       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
15493       2017. Resolves ticket 21564.
15495   o Minor features (future-proofing, backport from 0.3.0.7):
15496     - Tor no longer refuses to download microdescriptors or descriptors if
15497       they are listed as "published in the future".  This change will
15498       eventually allow us to stop listing meaningful "published" dates
15499       in microdescriptor consensuses, and thereby allow us to reduce the
15500       resources required to download consensus diffs by over 50%.
15501       Implements part of ticket 21642; implements part of proposal 275.
15503   o Minor features (directory authorities, backport from 0.3.0.4-rc)
15504     - Directory authorities now reject relays running versions
15505       0.2.9.1-alpha through 0.2.9.4-alpha, because those relays
15506       suffer from bug 20499 and don't keep their consensus cache
15507       up-to-date. Resolves ticket 20509.
15509   o Minor features (geoip):
15510     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
15511       Country database.
15513   o Minor bugfixes (control port, backport from 0.3.0.6):
15514     - The GETINFO extra-info/digest/<digest> command was broken because
15515       of a wrong base16 decode return value check, introduced when
15516       refactoring that API. Fixes bug 22034; bugfix on 0.2.9.1-alpha.
15518   o Minor bugfixes (correctness, backport from 0.3.1.3-alpha):
15519     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
15520       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
15522   o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.0.7):
15523     - The getpid() system call is now permitted under the Linux seccomp2
15524       sandbox, to avoid crashing with versions of OpenSSL (and other
15525       libraries) that attempt to learn the process's PID by using the
15526       syscall rather than the VDSO code. Fixes bug 21943; bugfix
15527       on 0.2.5.1-alpha.
15529   o Minor bugfixes (memory leak, directory authority, backport
15530     from 0.3.1.2-alpha):
15531     - When directory authorities reject a router descriptor due to
15532       keypinning, free the router descriptor rather than leaking the
15533       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
15535 Changes in version 0.2.8.14 - 2017-06-08
15536   Tor 0.2.7.8 backports a fix for a bug that would allow an attacker to
15537   remotely crash a hidden service with an assertion failure. Anyone
15538   running a hidden service should upgrade to this version, or to some
15539   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
15540   are not affected by TROVE-2017-004.)
15542   o Major bugfixes (hidden service, relay, security):
15543     - Fix a remotely triggerable assertion failure caused by receiving a
15544       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
15545       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
15546       on 0.2.2.1-alpha.
15548   o Minor features (geoip):
15549     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
15550       Country database.
15552   o Minor features (fallback directory list, backport from 0.3.1.3-alpha):
15553     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
15554       December 2016 (of which ~126 were still functional) with a list of
15555       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
15556       2017. Resolves ticket 21564.
15558   o Minor bugfixes (correctness):
15559     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
15560       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
15562 Changes in version 0.2.7.8 - 2017-06-08
15563   Tor 0.2.7.8 backports a fix for a bug that would allow an attacker to
15564   remotely crash a hidden service with an assertion failure. Anyone
15565   running a hidden service should upgrade to this version, or to some
15566   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
15567   are not affected by TROVE-2017-004.)
15569   o Major bugfixes (hidden service, relay, security):
15570     - Fix a remotely triggerable assertion failure caused by receiving a
15571       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
15572       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
15573       on 0.2.2.1-alpha.
15575   o Minor features (geoip):
15576     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
15577       Country database.
15579   o Minor bugfixes (correctness):
15580     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
15581       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
15584 Changes in version 0.2.6.12 - 2017-06-08
15585   Tor 0.2.6.12 backports a fix for a bug that would allow an attacker to
15586   remotely crash a hidden service with an assertion failure. Anyone
15587   running a hidden service should upgrade to this version, or to some
15588   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
15589   are not affected by TROVE-2017-004.)
15591   o Major bugfixes (hidden service, relay, security):
15592     - Fix a remotely triggerable assertion failure caused by receiving a
15593       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
15594       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
15595       on 0.2.2.1-alpha.
15597   o Minor features (geoip):
15598     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
15599       Country database.
15601   o Minor bugfixes (correctness):
15602     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
15603       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
15605 Changes in version 0.2.5.14 - 2017-06-08
15606   Tor 0.2.5.14 backports a fix for a bug that would allow an attacker to
15607   remotely crash a hidden service with an assertion failure. Anyone
15608   running a hidden service should upgrade to this version, or to some
15609   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
15610   are not affected by TROVE-2017-004.)
15612   o Major bugfixes (hidden service, relay, security):
15613     - Fix a remotely triggerable assertion failure caused by receiving a
15614       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
15615       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
15616       on 0.2.2.1-alpha.
15618   o Minor features (geoip):
15619     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
15620       Country database.
15622   o Minor bugfixes (correctness):
15623     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
15624       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
15626 Changes in version 0.2.4.29 - 2017-06-08
15627   Tor 0.2.4.29 backports a fix for a bug that would allow an attacker to
15628   remotely crash a hidden service with an assertion failure. Anyone
15629   running a hidden service should upgrade to this version, or to some
15630   other version with fixes for TROVE-2017-005.  (Versions before 0.3.0
15631   are not affected by TROVE-2017-004.)
15633   o Major bugfixes (hidden service, relay, security):
15634     - Fix a remotely triggerable assertion failure caused by receiving a
15635       BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug
15636       22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix
15637       on 0.2.2.1-alpha.
15639   o Minor features (geoip):
15640     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
15641       Country database.
15643   o Minor bugfixes (correctness):
15644     - Avoid undefined behavior when parsing IPv6 entries from the geoip6
15645       file. Fixes bug 22490; bugfix on 0.2.4.6-alpha.
15648 Changes in version 0.3.1.2-alpha - 2017-05-26
15649   Tor 0.3.1.2-alpha is the second release in the 0.3.1.x series. It
15650   fixes a few bugs found while testing 0.3.1.1-alpha, including a
15651   memory corruption bug that affected relay stability.
15653   o Major bugfixes (crash, relay):
15654     - Fix a memory-corruption bug in relays that set MyFamily.
15655       Previously, they would double-free MyFamily elements when making
15656       the next descriptor or when changing their configuration. Fixes
15657       bug 22368; bugfix on 0.3.1.1-alpha.
15659   o Minor bugfixes (logging):
15660     - Log a better message when a directory authority replies to an
15661       upload with an unexpected status code. Fixes bug 11121; bugfix
15662       on 0.1.0.1-rc.
15664   o Minor bugfixes (memory leak, directory authority):
15665     - When directory authorities reject a router descriptor due to
15666       keypinning, free the router descriptor rather than leaking the
15667       memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha.
15670 Changes in version 0.3.1.1-alpha - 2017-05-22
15671   Tor 0.3.1.1-alpha is the first release in the 0.3.1.x series. It
15672   reduces the bandwidth usage for Tor's directory protocol, adds some
15673   basic padding to resist netflow-based traffic analysis and to serve as
15674   the basis of other padding in the future, and adds rust support to the
15675   build system.
15677   It also contains numerous other small features and improvements to
15678   security, correctness, and performance.
15680   Below are the changes since 0.3.0.7.
15682   o Major features (directory protocol):
15683     - Tor relays and authorities can now serve clients an abbreviated
15684       version of the consensus document, containing only the changes
15685       since an older consensus document that the client holds. Clients
15686       now request these documents when available. When both client and
15687       server use this new protocol, they will use far less bandwidth (up
15688       to 94% less) to keep the client's consensus up-to-date. Implements
15689       proposal 140; closes ticket 13339. Based on work by Daniel Martí.
15690     - Tor can now compress directory traffic with lzma or with zstd
15691       compression algorithms, which can deliver better bandwidth
15692       performance. Because lzma is computationally expensive, it's only
15693       used for documents that can be compressed once and served many
15694       times. Support for these algorithms requires that tor is built
15695       with the libzstd and/or liblzma libraries available. Implements
15696       proposal 278; closes ticket 21662.
15697     - Relays now perform the more expensive compression operations, and
15698       consensus diff generation, in worker threads. This separation
15699       avoids delaying the main thread when a new consensus arrives.
15701   o Major features (experimental):
15702     - Tor can now build modules written in Rust. To turn this on, pass
15703       the "--enable-rust" flag to the configure script. It's not time to
15704       get excited yet: currently, there is no actual Rust functionality
15705       beyond some simple glue code, and a notice at startup to tell you
15706       that Rust is running. Still, we hope that programmers and
15707       packagers will try building Tor with Rust support, so that we can
15708       find issues and solve portability problems. Closes ticket 22106.
15710   o Major features (traffic analysis resistance):
15711     - Connections between clients and relays now send a padding cell in
15712       each direction every 1.5 to 9.5 seconds (tunable via consensus
15713       parameters). This padding will not resist specialized
15714       eavesdroppers, but it should be enough to make many ISPs' routine
15715       network flow logging less useful in traffic analysis against
15716       Tor users.
15718       Padding is negotiated using Tor's link protocol, so both relays
15719       and clients must upgrade for this to take effect. Clients may
15720       still send padding despite the relay's version by setting
15721       ConnectionPadding 1 in torrc, and may disable padding by setting
15722       ConnectionPadding 0 in torrc. Padding may be minimized for mobile
15723       users with the torrc option ReducedConnectionPadding. Implements
15724       Proposal 251 and Section 2 of Proposal 254; closes ticket 16861.
15725     - Relays will publish 24 hour totals of padding and non-padding cell
15726       counts to their extra-info descriptors, unless PaddingStatistics 0
15727       is set in torrc. These 24 hour totals are also rounded to
15728       multiples of 10000.
15730   o Major bugfixes (connection usage):
15731     - We use NETINFO cells to try to determine if both relays involved
15732       in a connection will agree on the canonical status of that
15733       connection. We prefer the connections where this is the case for
15734       extend cells, and try to close connections where relays disagree
15735       on their canonical status early. Also, we now prefer the oldest
15736       valid connection for extend cells. These two changes should reduce
15737       the number of long-term connections that are kept open between
15738       relays. Fixes bug 17604; bugfix on 0.2.5.5-alpha.
15739     - Relays now log hourly statistics (look for
15740       "channel_check_for_duplicates" lines) on the total number of
15741       connections to other relays. If the number of connections per
15742       relay is unexpectedly large, this log message is at notice level.
15743       Otherwise it is at info.
15745   o Major bugfixes (entry guards):
15746     - Don't block bootstrapping when a primary bridge is offline and we
15747       can't get its descriptor. Fixes bug 22325; fixes one case of bug
15748       21969; bugfix on 0.3.0.3-alpha.
15750   o Major bugfixes (linux TPROXY support):
15751     - Fix a typo that had prevented TPROXY-based transparent proxying
15752       from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha.
15753       Patch from "d4fq0fQAgoJ".
15755   o Minor features (security, windows):
15756     - Enable a couple of pieces of Windows hardening: one
15757       (HeapEnableTerminationOnCorruption) that has been on-by-default
15758       since Windows 8, and unavailable before Windows 7; and one
15759       (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't
15760       affect us, but shouldn't do any harm. Closes ticket 21953.
15762   o Minor features (config options):
15763     - Allow "%include" directives in torrc configuration files. These
15764       directives import the settings from other files, or from all the
15765       files in a directory. Closes ticket 1922. Code by Daniel Pinto.
15766     - Make SAVECONF return an error when overwriting a torrc that has
15767       includes. Using SAVECONF with the FORCE option will allow it to
15768       overwrite torrc even if includes are used. Related to ticket 1922.
15769     - Add "GETINFO config-can-saveconf" to tell controllers if SAVECONF
15770       will work without the FORCE option. Related to ticket 1922.
15772   o Minor features (controller):
15773     - Warn the first time that a controller requests data in the long-
15774       deprecated 'GETINFO network-status' format. Closes ticket 21703.
15776   o Minor features (defaults):
15777     - The default value for UseCreateFast is now 0: clients which
15778       haven't yet received a consensus document will now use a proper
15779       ntor handshake to talk to their directory servers whenever they
15780       can. Closes ticket 21407.
15781     - Onion key rotation and expiry intervals are now defined as a
15782       network consensus parameter, per proposal 274. The default
15783       lifetime of an onion key is increased from 7 to 28 days. Old onion
15784       keys will expire after 7 days by default. This change will make
15785       consensus diffs much smaller, and save significant bandwidth.
15786       Closes ticket 21641.
15788   o Minor features (fallback directory list):
15789     - Update the fallback directory mirror whitelist and blacklist based
15790       on operator emails. Closes task 21121.
15791     - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in
15792       December 2016 (of which ~126 were still functional) with a list of
15793       151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May
15794       2017. Resolves ticket 21564.
15796   o Minor features (hidden services, logging):
15797     - Log a message when a hidden service descriptor has fewer
15798       introduction points than specified in
15799       HiddenServiceNumIntroductionPoints. Closes tickets 21598.
15800     - Log a message when a hidden service reaches its introduction point
15801       circuit limit, and when that limit is reset. Follow up to ticket
15802       21594; closes ticket 21622.
15803     - Warn user if multiple entries in EntryNodes and at least one
15804       HiddenService are used together. Pinning EntryNodes along with a
15805       hidden service can be possibly harmful; for instance see ticket
15806       14917 or 21155. Closes ticket 21155.
15808   o Minor features (linux seccomp2 sandbox):
15809     - We now have a document storage backend compatible with the Linux
15810       seccomp2 sandbox. This backend is used for consensus documents and
15811       diffs between them; in the long term, we'd like to use it for
15812       unparseable directory material too. Closes ticket 21645
15813     - Increase the maximum allowed size passed to mprotect(PROT_WRITE)
15814       from 1MB to 16MB. This was necessary with the glibc allocator in
15815       order to allow worker threads to allocate more memory -- which in
15816       turn is necessary because of our new use of worker threads for
15817       compression. Closes ticket 22096.
15819   o Minor features (logging):
15820     - Log files are no longer created world-readable by default.
15821       (Previously, most distributors would store the logs in a non-
15822       world-readable location to prevent inappropriate access. This
15823       change is an extra precaution.) Closes ticket 21729; patch
15824       from toralf.
15826   o Minor features (performance):
15827     - Our Keccak (SHA-3) implementation now accesses memory more
15828       efficiently, especially on little-endian systems. Closes
15829       ticket 21737.
15830     - Add an O(1) implementation of channel_find_by_global_id(), to
15831       speed some controller functions.
15833   o Minor features (relay, configuration):
15834     - The MyFamily option may now be repeated as many times as desired,
15835       for relays that want to configure large families. Closes ticket
15836       4998; patch by Daniel Pinto.
15838   o Minor features (safety):
15839     - Add an explicit check to extrainfo_parse_entry_from_string() for
15840       NULL inputs. We don't believe this can actually happen, but it may
15841       help silence a warning from the Clang analyzer. Closes
15842       ticket 21496.
15844   o Minor features (testing):
15845     - Add a "--disable-memory-sentinels" feature to help with fuzzing.
15846       When Tor is compiled with this option, we disable a number of
15847       redundant memory-safety failsafes that are intended to stop bugs
15848       from becoming security issues. This makes it easier to hunt for
15849       bugs that would be security issues without the failsafes turned
15850       on. Closes ticket 21439.
15851     - Add a general event-tracing instrumentation support to Tor. This
15852       subsystem will enable developers and researchers to add fine-
15853       grained instrumentation to their Tor instances, for use when
15854       examining Tor network performance issues. There are no trace
15855       events yet, and event-tracing is off by default unless enabled at
15856       compile time. Implements ticket 13802.
15857     - Improve our version parsing tests: add tests for typical version
15858       components, add tests for invalid versions, including numeric
15859       range and non-numeric prefixes. Unit tests 21278, 21450, and
15860       21507. Partially implements 21470.
15862   o Minor bugfixes (bandwidth accounting):
15863     - Roll over monthly accounting at the configured hour and minute,
15864       rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1.
15865       Found by Andrey Karpov with PVS-Studio.
15867   o Minor bugfixes (code correctness):
15868     - Accurately identify client connections by their lack of peer
15869       authentication. This means that we bail out earlier if asked to
15870       extend to a client. Follow-up to 21407. Fixes bug 21406; bugfix
15871       on 0.2.4.23.
15873   o Minor bugfixes (configuration):
15874     - Do not crash when starting with LearnCircuitBuildTimeout 0. Fixes
15875       bug 22252; bugfix on 0.2.9.3-alpha.
15877   o Minor bugfixes (connection lifespan):
15878     - Allow more control over how long TLS connections are kept open:
15879       unify CircuitIdleTimeout and PredictedPortsRelevanceTime into a
15880       single option called CircuitsAvailableTimeout. Also, allow the
15881       consensus to control the default values for both this preference
15882       and the lifespan of relay-to-relay connections. Fixes bug 17592;
15883       bugfix on 0.2.5.5-alpha.
15884     - Increase the initial circuit build timeout testing frequency, to
15885       help ensure that ReducedConnectionPadding clients finish learning
15886       a timeout before their orconn would expire. The initial testing
15887       rate was set back in the days of TAP and before the Tor Browser
15888       updater, when we had to be much more careful about new clients
15889       making lots of circuits. With this change, a circuit build timeout
15890       is learned in about 15-20 minutes, instead of 100-120 minutes.
15892   o Minor bugfixes (controller):
15893     - GETINFO onions/current and onions/detached no longer respond with
15894       551 on empty lists. Fixes bug 21329; bugfix on 0.2.7.1-alpha.
15895     - Trigger HS descriptor events on the control port when the client
15896       fails to pick a hidden service directory for a hidden service.
15897       This can happen if all the hidden service directories are in
15898       ExcludeNodes, or they have all been queried within the last 15
15899       minutes. Fixes bug 22042; bugfix on 0.2.5.2-alpha.
15901   o Minor bugfixes (directory authority):
15902     - When rejecting a router descriptor for running an obsolete version
15903       of Tor without ntor support, warn about the obsolete tor version,
15904       not the missing ntor key. Fixes bug 20270; bugfix on 0.2.9.3-alpha.
15905     - Prevent the shared randomness subsystem from asserting when
15906       initialized by a bridge authority with an incomplete configuration
15907       file. Fixes bug 21586; bugfix on 0.2.9.8.
15909   o Minor bugfixes (exit-side DNS):
15910     - Fix an untriggerable assertion that checked the output of a
15911       libevent DNS error, so that the assertion actually behaves as
15912       expected. Fixes bug 22244; bugfix on 0.2.0.20-rc. Found by Andrey
15913       Karpov using PVS-Studio.
15915   o Minor bugfixes (fallback directories):
15916     - Make the usage example in updateFallbackDirs.py actually work, and
15917       explain what it does. Fixes bug 22270; bugfix on 0.3.0.3-alpha.
15918     - Decrease the guard flag average required to be a fallback. This
15919       allows us to keep relays that have their guard flag removed when
15920       they restart. Fixes bug 20913; bugfix on 0.2.8.1-alpha.
15921     - Decrease the minimum number of fallbacks to 100. Fixes bug 20913;
15922       bugfix on 0.2.8.1-alpha.
15923     - Make sure fallback directory mirrors have the same address, port,
15924       and relay identity key for at least 30 days before they are
15925       selected. Fixes bug 20913; bugfix on 0.2.8.1-alpha.
15927   o Minor bugfixes (hidden services):
15928     - Stop printing a cryptic warning when a hidden service gets a
15929       request to connect to a virtual port that it hasn't configured.
15930       Fixes bug 16706; bugfix on 0.2.6.3-alpha.
15931     - Simplify hidden service descriptor creation by using an existing
15932       flag to check if an introduction point is established. Fixes bug
15933       21599; bugfix on 0.2.7.2-alpha.
15935   o Minor bugfixes (memory leak):
15936     - Fix a small memory leak at exit from the backtrace handler code.
15937       Fixes bug 21788; bugfix on 0.2.5.2-alpha. Patch from Daniel Pinto.
15939   o Minor bugfixes (protocol, logging):
15940     - Downgrade a log statement about unexpected relay cells from "bug"
15941       to "protocol warning", because there is at least one use case
15942       where it can be triggered by a buggy tor implementation. Fixes bug
15943       21293; bugfix on 0.1.1.14-alpha.
15945   o Minor bugfixes (testing):
15946     - Use unbuffered I/O for utility functions around the
15947       process_handle_t type. This fixes unit test failures reported on
15948       OpenBSD and FreeBSD. Fixes bug 21654; bugfix on 0.2.3.1-alpha.
15949     - Make display of captured unit test log messages consistent. Fixes
15950       bug 21510; bugfix on 0.2.9.3-alpha.
15951     - Make test-network.sh always call chutney's test-network.sh.
15952       Previously, this only worked on systems which had bash installed,
15953       due to some bash-specific code in the script. Fixes bug 19699;
15954       bugfix on 0.3.0.4-rc. Follow-up to ticket 21581.
15956   o Minor bugfixes (voting consistency):
15957     - Reject version numbers with non-numeric prefixes (such as +, -, or
15958       whitespace). Disallowing whitespace prevents differential version
15959       parsing between POSIX-based and Windows platforms. Fixes bug 21507
15960       and part of 21508; bugfix on 0.0.8pre1.
15962   o Minor bugfixes (windows, relay):
15963     - Resolve "Failure from drain_fd: No error" warnings on Windows
15964       relays. Fixes bug 21540; bugfix on 0.2.6.3-alpha.
15966   o Code simplification and refactoring:
15967     - Break up the 630-line function connection_dir_client_reached_eof()
15968       into a dozen smaller functions. This change should help
15969       maintainability and readability of the client directory code.
15970     - Isolate our use of the openssl headers so that they are only
15971       included from our crypto wrapper modules, and from tests that
15972       examine those modules' internals. Closes ticket 21841.
15973     - Simplify our API to launch directory requests, making it more
15974       extensible and less error-prone. Now it's easier to add extra
15975       headers to directory requests. Closes ticket 21646.
15976     - Our base64 decoding functions no longer overestimate the output
15977       space that they need when parsing unpadded inputs. Closes
15978       ticket 17868.
15979     - Remove unused "ROUTER_ADDED_NOTIFY_GENERATOR" internal value.
15980       Resolves ticket 22213.
15981     - The logic that directory caches use to spool request to clients,
15982       serving them one part at a time so as not to allocate too much
15983       memory, has been refactored for consistency. Previously there was
15984       a separate spooling implementation per type of spoolable data. Now
15985       there is one common spooling implementation, with extensible data
15986       types. Closes ticket 21651.
15987     - Tor's compression module now supports multiple backends. Part of
15988       the implementation for proposal 278; closes ticket 21663.
15990   o Documentation:
15991     - Clarify the behavior of the KeepAliveIsolateSOCKSAuth sub-option.
15992       Closes ticket 21873.
15993     - Correct documentation about the default DataDirectory value.
15994       Closes ticket 21151.
15995     - Document the default behavior of NumEntryGuards and
15996       NumDirectoryGuards correctly. Fixes bug 21715; bugfix
15997       on 0.3.0.1-alpha.
15998     - Document key=value pluggable transport arguments for Bridge lines
15999       in torrc. Fixes bug 20341; bugfix on 0.2.5.1-alpha.
16000     - Note that bandwidth-limiting options don't affect TCP headers or
16001       DNS. Closes ticket 17170.
16003   o Removed features (configuration options, all in ticket 22060):
16004     - These configuration options are now marked Obsolete, and no longer
16005       have any effect: AllowInvalidNodes, AllowSingleHopCircuits,
16006       AllowSingleHopExits, ExcludeSingleHopRelays, FastFirstHopPK,
16007       TLSECGroup, WarnUnsafeSocks. They were first marked as deprecated
16008       in 0.2.9.2-alpha and have now been removed. The previous default
16009       behavior is now always chosen; the previous (less secure) non-
16010       default behavior is now unavailable.
16011     - CloseHSClientCircuitsImmediatelyOnTimeout and
16012       CloseHSServiceRendCircuitsImmediatelyOnTimeout were deprecated in
16013       0.2.9.2-alpha and now have been removed. HS circuits never close
16014       on circuit build timeout; they have a longer timeout period.
16015     - {Control,DNS,Dir,Socks,Trans,NATD,OR}ListenAddress were deprecated
16016       in 0.2.9.2-alpha and now have been removed. Use the ORPort option
16017       (and others) to configure listen-only and advertise-only addresses.
16019   o Removed features (tools):
16020     - We've removed the tor-checkkey tool from src/tools. Long ago, we
16021       used it to help people detect RSA keys that were generated by
16022       versions of Debian affected by CVE-2008-0166. But those keys have
16023       been out of circulation for ages, and this tool is no longer
16024       required. Closes ticket 21842.
16027 Changes in version 0.3.0.7 - 2017-05-15
16028   Tor 0.3.0.7 fixes a medium-severity security bug in earlier versions
16029   of Tor 0.3.0.x, where an attacker could cause a Tor relay process
16030   to exit. Relays running earlier versions of Tor 0.3.0.x should upgrade;
16031   clients are not affected.
16033   o Major bugfixes (hidden service directory, security):
16034     - Fix an assertion failure in the hidden service directory code, which
16035       could be used by an attacker to remotely cause a Tor relay process to
16036       exit. Relays running earlier versions of Tor 0.3.0.x should upgrade.
16037       should upgrade. This security issue is tracked as TROVE-2017-002.
16038       Fixes bug 22246; bugfix on 0.3.0.1-alpha.
16040   o Minor features:
16041     - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2
16042       Country database.
16044   o Minor features (future-proofing):
16045     - Tor no longer refuses to download microdescriptors or descriptors
16046       if they are listed as "published in the future". This change will
16047       eventually allow us to stop listing meaningful "published" dates
16048       in microdescriptor consensuses, and thereby allow us to reduce the
16049       resources required to download consensus diffs by over 50%.
16050       Implements part of ticket 21642; implements part of proposal 275.
16052   o Minor bugfixes (Linux seccomp2 sandbox):
16053     - The getpid() system call is now permitted under the Linux seccomp2
16054       sandbox, to avoid crashing with versions of OpenSSL (and other
16055       libraries) that attempt to learn the process's PID by using the
16056       syscall rather than the VDSO code. Fixes bug 21943; bugfix
16057       on 0.2.5.1-alpha.
16060 Changes in version 0.3.0.6 - 2017-04-26
16061   Tor 0.3.0.6 is the first stable release of the Tor 0.3.0 series.
16063   With the 0.3.0 series, clients and relays now use Ed25519 keys to
16064   authenticate their link connections to relays, rather than the old
16065   RSA1024 keys that they used before. (Circuit crypto has been
16066   Curve25519-authenticated since 0.2.4.8-alpha.) We have also replaced
16067   the guard selection and replacement algorithm to behave more robustly
16068   in the presence of unreliable networks, and to resist guard-
16069   capture attacks.
16071   This series also includes numerous other small features and bugfixes,
16072   along with more groundwork for the upcoming hidden-services revamp.
16074   Per our stable release policy, we plan to support the Tor 0.3.0
16075   release series for at least the next nine months, or for three months
16076   after the first stable release of the 0.3.1 series: whichever is
16077   longer. If you need a release with long-term support, we recommend
16078   that you stay with the 0.2.9 series.
16080   Below are the changes since 0.3.0.5-rc. For a list of all changes
16081   since 0.2.9, see the ReleaseNotes file.
16083   o Minor features (geoip):
16084     - Update geoip and geoip6 to the April 4 2017 Maxmind GeoLite2
16085       Country database.
16087   o Minor bugfixes (control port):
16088     - The GETINFO extra-info/digest/<digest> command was broken because
16089       of a wrong base16 decode return value check, introduced when
16090       refactoring that API. Fixes bug 22034; bugfix on 0.2.9.1-alpha.
16092   o Minor bugfixes (crash prevention):
16093     - Fix a (currently untriggerable, but potentially dangerous) crash
16094       bug when base32-encoding inputs whose sizes are not a multiple of
16095       5. Fixes bug 21894; bugfix on 0.2.9.1-alpha.
16098 Changes in version 0.3.0.5-rc - 2017-04-05
16099   Tor 0.3.0.5-rc fixes a few remaining bugs, large and small, in the
16100   0.3.0 release series.
16102   This is the second release candidate in the Tor 0.3.0 series, and has
16103   much fewer changes than the first. If we find no new bugs or
16104   regressions here, the first stable 0.3.0 release will be nearly
16105   identical to it.
16107   o Major bugfixes (crash, directory connections):
16108     - Fix a rare crash when sending a begin cell on a circuit whose
16109       linked directory connection had already been closed. Fixes bug
16110       21576; bugfix on 0.2.9.3-alpha. Reported by Alec Muffett.
16112   o Major bugfixes (guard selection):
16113     - Fix a guard selection bug where Tor would refuse to bootstrap in
16114       some cases if the user swapped a bridge for another bridge in
16115       their configuration file. Fixes bug 21771; bugfix on 0.3.0.1-alpha.
16116       Reported by "torvlnt33r".
16118   o Minor features (geoip):
16119     - Update geoip and geoip6 to the March 7 2017 Maxmind GeoLite2
16120       Country database.
16122   o Minor bugfix (compilation):
16123     - Fix a warning when compiling hs_service.c. Previously, it had no
16124       exported symbols when compiled for libor.a, resulting in a
16125       compilation warning from clang. Fixes bug 21825; bugfix
16126       on 0.3.0.1-alpha.
16128   o Minor bugfixes (hidden services):
16129     - Make hidden services check for failed intro point connections,
16130       even when they have exceeded their intro point creation limit.
16131       Fixes bug 21596; bugfix on 0.2.7.2-alpha. Reported by Alec Muffett.
16132     - Make hidden services with 8 to 10 introduction points check for
16133       failed circuits immediately after startup. Previously, they would
16134       wait for 5 minutes before performing their first checks. Fixes bug
16135       21594; bugfix on 0.2.3.9-alpha. Reported by Alec Muffett.
16137   o Minor bugfixes (memory leaks):
16138     - Fix a memory leak when using GETCONF on a port option. Fixes bug
16139       21682; bugfix on 0.3.0.3-alpha.
16141   o Minor bugfixes (relay):
16142     - Avoid a double-marked-circuit warning that could happen when we
16143       receive DESTROY cells under heavy load. Fixes bug 20059; bugfix
16144       on 0.1.0.1-rc.
16146   o Minor bugfixes (tests):
16147     - Run the entry_guard_parse_from_state_full() test with the time set
16148       to a specific date. (The guard state that this test was parsing
16149       contained guards that had expired since the test was first
16150       written.) Fixes bug 21799; bugfix on 0.3.0.1-alpha.
16152   o Documentation:
16153     - Update the description of the directory server options in the
16154       manual page, to clarify that a relay no longer needs to set
16155       DirPort in order to be a directory cache. Closes ticket 21720.
16159 Changes in version 0.2.8.13 - 2017-03-03
16160   Tor 0.2.8.13 backports a security fix from later Tor
16161   releases.  Anybody running Tor 0.2.8.12 or earlier should upgrade to this
16162   this release, if for some reason they cannot upgrade to a later
16163   release series, and if they build Tor with the --enable-expensive-hardening
16164   option.
16166   Note that support for Tor 0.2.8.x is ending next year: we will not issue
16167   any fixes for the Tor 0.2.8.x series after 1 Jan 2018.  If you need
16168   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
16170   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
16171     - Fix an integer underflow bug when comparing malformed Tor
16172       versions. This bug could crash Tor when built with
16173       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
16174       0.2.9.8, which were built with -ftrapv by default. In other cases
16175       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
16176       on 0.0.8pre1. Found by OSS-Fuzz.
16178   o Minor features (geoip):
16179     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
16180       Country database.
16183 Changes in version 0.2.7.7 - 2017-03-03
16184   Tor 0.2.7.7 backports a number of security fixes from later Tor
16185   releases.  Anybody running Tor 0.2.7.6 or earlier should upgrade to
16186   this release, if for some reason they cannot upgrade to a later
16187   release series.
16189   Note that support for Tor 0.2.7.x is ending this year: we will not issue
16190   any fixes for the Tor 0.2.7.x series after 1 August 2017.  If you need
16191   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
16193   o Directory authority changes (backport from 0.2.8.5-rc):
16194     - Urras is no longer a directory authority. Closes ticket 19271.
16196   o Directory authority changes (backport from 0.2.9.2-alpha):
16197     - The "Tonga" bridge authority has been retired; the new bridge
16198       authority is "Bifroest". Closes tickets 19728 and 19690.
16200   o Directory authority key updates (backport from 0.2.8.1-alpha):
16201     - Update the V3 identity key for the dannenberg directory authority:
16202       it was changed on 18 November 2015. Closes task 17906. Patch
16203       by "teor".
16205   o Major bugfixes (parsing, security, backport from 0.2.9.8):
16206     - Fix a bug in parsing that could cause clients to read a single
16207       byte past the end of an allocated region. This bug could be used
16208       to cause hardened clients (built with --enable-expensive-hardening)
16209       to crash if they tried to visit a hostile hidden service. Non-
16210       hardened clients are only affected depending on the details of
16211       their platform's memory allocator. Fixes bug 21018; bugfix on
16212       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
16213       2016-12-002 and as CVE-2016-1254.
16215   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
16216     - Stop a crash that could occur when a client running with DNSPort
16217       received a query with multiple address types, and the first
16218       address type was not supported. Found and fixed by Scott Dial.
16219       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
16220     - Prevent a class of security bugs caused by treating the contents
16221       of a buffer chunk as if they were a NUL-terminated string. At
16222       least one such bug seems to be present in all currently used
16223       versions of Tor, and would allow an attacker to remotely crash
16224       most Tor instances, especially those compiled with extra compiler
16225       hardening. With this defense in place, such bugs can't crash Tor,
16226       though we should still fix them as they occur. Closes ticket
16227       20384 (TROVE-2016-10-001).
16229   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
16230     - Avoid a difficult-to-trigger heap corruption attack when extending
16231       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
16232       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
16233       Reported by Guido Vranken.
16235   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
16236     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
16237       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
16239   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
16240     - If OpenSSL fails to generate an RSA key, do not retain a dangling
16241       pointer to the previous (uninitialized) key value. The impact here
16242       should be limited to a difficult-to-trigger crash, if OpenSSL is
16243       running an engine that makes key generation failures possible, or
16244       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
16245       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
16246       Baishakhi Ray.
16248   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
16249     - Fix an integer underflow bug when comparing malformed Tor
16250       versions. This bug could crash Tor when built with
16251       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
16252       0.2.9.8, which were built with -ftrapv by default. In other cases
16253       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
16254       on 0.0.8pre1. Found by OSS-Fuzz.
16256   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
16257     - Make memwipe() do nothing when passed a NULL pointer or buffer of
16258       zero size. Check size argument to memwipe() for underflow. Fixes
16259       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
16260       patch by "teor".
16262   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
16263     - Make Tor survive errors involving connections without a
16264       corresponding event object. Previously we'd fail with an
16265       assertion; now we produce a log message. Related to bug 16248.
16267   o Minor features (geoip):
16268     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
16269       Country database.
16272 Changes in version 0.2.6.11 - 2017-03-03
16273   Tor 0.2.6.11 backports a number of security fixes from later Tor
16274   releases.  Anybody running Tor 0.2.6.10 or earlier should upgrade to
16275   this release, if for some reason they cannot upgrade to a later
16276   release series.
16278   Note that support for Tor 0.2.6.x is ending this year: we will not issue
16279   any fixes for the Tor 0.2.6.x series after 1 August 2017.  If you need
16280   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
16282   o Directory authority changes (backport from 0.2.8.5-rc):
16283     - Urras is no longer a directory authority. Closes ticket 19271.
16285   o Directory authority changes (backport from 0.2.9.2-alpha):
16286     - The "Tonga" bridge authority has been retired; the new bridge
16287       authority is "Bifroest". Closes tickets 19728 and 19690.
16289   o Directory authority key updates (backport from 0.2.8.1-alpha):
16290     - Update the V3 identity key for the dannenberg directory authority:
16291       it was changed on 18 November 2015. Closes task 17906. Patch
16292       by "teor".
16294   o Major features (security fixes, backport from 0.2.9.4-alpha):
16295     - Prevent a class of security bugs caused by treating the contents
16296       of a buffer chunk as if they were a NUL-terminated string. At
16297       least one such bug seems to be present in all currently used
16298       versions of Tor, and would allow an attacker to remotely crash
16299       most Tor instances, especially those compiled with extra compiler
16300       hardening. With this defense in place, such bugs can't crash Tor,
16301       though we should still fix them as they occur. Closes ticket
16302       20384 (TROVE-2016-10-001).
16304   o Major bugfixes (parsing, security, backport from 0.2.9.8):
16305     - Fix a bug in parsing that could cause clients to read a single
16306       byte past the end of an allocated region. This bug could be used
16307       to cause hardened clients (built with --enable-expensive-hardening)
16308       to crash if they tried to visit a hostile hidden service. Non-
16309       hardened clients are only affected depending on the details of
16310       their platform's memory allocator. Fixes bug 21018; bugfix on
16311       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
16312       2016-12-002 and as CVE-2016-1254.
16314   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
16315     - Stop a crash that could occur when a client running with DNSPort
16316       received a query with multiple address types, and the first
16317       address type was not supported. Found and fixed by Scott Dial.
16318       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
16320   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
16321     - Fix an error that could cause us to read 4 bytes before the
16322       beginning of an openssl string. This bug could be used to cause
16323       Tor to crash on systems with unusual malloc implementations, or
16324       systems with unusual hardening installed. Fixes bug 17404; bugfix
16325       on 0.2.3.6-alpha.
16327   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
16328     - Avoid a difficult-to-trigger heap corruption attack when extending
16329       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
16330       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
16331       Reported by Guido Vranken.
16333   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
16334     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
16335       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
16337   o Major bugfixes (guard selection, backport from 0.2.7.6):
16338     - Actually look at the Guard flag when selecting a new directory
16339       guard. When we implemented the directory guard design, we
16340       accidentally started treating all relays as if they have the Guard
16341       flag during guard selection, leading to weaker anonymity and worse
16342       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
16343       by Mohsen Imani.
16345   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
16346     - If OpenSSL fails to generate an RSA key, do not retain a dangling
16347       pointer to the previous (uninitialized) key value. The impact here
16348       should be limited to a difficult-to-trigger crash, if OpenSSL is
16349       running an engine that makes key generation failures possible, or
16350       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
16351       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
16352       Baishakhi Ray.
16354   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
16355     - Fix an integer underflow bug when comparing malformed Tor
16356       versions. This bug could crash Tor when built with
16357       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
16358       0.2.9.8, which were built with -ftrapv by default. In other cases
16359       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
16360       on 0.0.8pre1. Found by OSS-Fuzz.
16362   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
16363     - Make memwipe() do nothing when passed a NULL pointer or buffer of
16364       zero size. Check size argument to memwipe() for underflow. Fixes
16365       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
16366       patch by "teor".
16368   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
16369     - Make Tor survive errors involving connections without a
16370       corresponding event object. Previously we'd fail with an
16371       assertion; now we produce a log message. Related to bug 16248.
16373   o Minor features (geoip):
16374     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
16375       Country database.
16377   o Minor bugfixes (compilation, backport from 0.2.7.6):
16378     - Fix a compilation warning with Clang 3.6: Do not check the
16379       presence of an address which can never be NULL. Fixes bug 17781.
16382 Changes in version 0.2.5.13 - 2017-03-03
16383   Tor 0.2.5.13 backports a number of security fixes from later Tor
16384   releases.  Anybody running Tor 0.2.5.13 or earlier should upgrade to
16385   this release, if for some reason they cannot upgrade to a later
16386   release series.
16388   Note that support for Tor 0.2.5.x is ending next year: we will not issue
16389   any fixes for the Tor 0.2.5.x series after 1 May 2018.  If you need
16390   a Tor release series with longer-term support, we recommend Tor 0.2.9.x.
16392   o Directory authority changes (backport from 0.2.8.5-rc):
16393     - Urras is no longer a directory authority. Closes ticket 19271.
16395   o Directory authority changes (backport from 0.2.9.2-alpha):
16396     - The "Tonga" bridge authority has been retired; the new bridge
16397       authority is "Bifroest". Closes tickets 19728 and 19690.
16399   o Directory authority key updates (backport from 0.2.8.1-alpha):
16400     - Update the V3 identity key for the dannenberg directory authority:
16401       it was changed on 18 November 2015. Closes task 17906. Patch
16402       by "teor".
16404   o Major features (security fixes, backport from 0.2.9.4-alpha):
16405     - Prevent a class of security bugs caused by treating the contents
16406       of a buffer chunk as if they were a NUL-terminated string. At
16407       least one such bug seems to be present in all currently used
16408       versions of Tor, and would allow an attacker to remotely crash
16409       most Tor instances, especially those compiled with extra compiler
16410       hardening. With this defense in place, such bugs can't crash Tor,
16411       though we should still fix them as they occur. Closes ticket
16412       20384 (TROVE-2016-10-001).
16414   o Major bugfixes (parsing, security, backport from 0.2.9.8):
16415     - Fix a bug in parsing that could cause clients to read a single
16416       byte past the end of an allocated region. This bug could be used
16417       to cause hardened clients (built with --enable-expensive-hardening)
16418       to crash if they tried to visit a hostile hidden service. Non-
16419       hardened clients are only affected depending on the details of
16420       their platform's memory allocator. Fixes bug 21018; bugfix on
16421       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
16422       2016-12-002 and as CVE-2016-1254.
16424   o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha):
16425     - Stop a crash that could occur when a client running with DNSPort
16426       received a query with multiple address types, and the first
16427       address type was not supported. Found and fixed by Scott Dial.
16428       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
16430   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
16431     - Fix an error that could cause us to read 4 bytes before the
16432       beginning of an openssl string. This bug could be used to cause
16433       Tor to crash on systems with unusual malloc implementations, or
16434       systems with unusual hardening installed. Fixes bug 17404; bugfix
16435       on 0.2.3.6-alpha.
16437   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
16438     - Avoid a difficult-to-trigger heap corruption attack when extending
16439       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
16440       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
16441       Reported by Guido Vranken.
16443   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
16444     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
16445       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
16447   o Major bugfixes (guard selection, backport from 0.2.7.6):
16448     - Actually look at the Guard flag when selecting a new directory
16449       guard. When we implemented the directory guard design, we
16450       accidentally started treating all relays as if they have the Guard
16451       flag during guard selection, leading to weaker anonymity and worse
16452       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
16453       by Mohsen Imani.
16455   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
16456     - If OpenSSL fails to generate an RSA key, do not retain a dangling
16457       pointer to the previous (uninitialized) key value. The impact here
16458       should be limited to a difficult-to-trigger crash, if OpenSSL is
16459       running an engine that makes key generation failures possible, or
16460       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
16461       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
16462       Baishakhi Ray.
16464   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
16465     - Fix an integer underflow bug when comparing malformed Tor
16466       versions. This bug could crash Tor when built with
16467       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
16468       0.2.9.8, which were built with -ftrapv by default. In other cases
16469       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
16470       on 0.0.8pre1. Found by OSS-Fuzz.
16472   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
16473     - Make memwipe() do nothing when passed a NULL pointer or buffer of
16474       zero size. Check size argument to memwipe() for underflow. Fixes
16475       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
16476       patch by "teor".
16478   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
16479     - Make Tor survive errors involving connections without a
16480       corresponding event object. Previously we'd fail with an
16481       assertion; now we produce a log message. Related to bug 16248.
16483   o Minor features (geoip):
16484     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
16485       Country database.
16487   o Minor bugfixes (compilation, backport from 0.2.7.6):
16488     - Fix a compilation warning with Clang 3.6: Do not check the
16489       presence of an address which can never be NULL. Fixes bug 17781.
16491   o Minor bugfixes (crypto error-handling, backport from 0.2.7.2-alpha):
16492     - Check for failures from crypto_early_init, and refuse to continue.
16493       A previous typo meant that we could keep going with an
16494       uninitialized crypto library, and would have OpenSSL initialize
16495       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
16496       when implementing ticket 4900. Patch by "teor".
16498   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
16499     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
16500       a client authorized hidden service. Fixes bug 15823; bugfix
16501       on 0.2.1.6-alpha.
16504 Changes in version 0.2.4.28 - 2017-03-03
16505   Tor 0.2.4.28 backports a number of security fixes from later Tor
16506   releases.  Anybody running Tor 0.2.4.27 or earlier should upgrade to
16507   this release, if for some reason they cannot upgrade to a later
16508   release series.
16510   Note that support for Tor 0.2.4.x is ending soon: we will not issue
16511   any fixes for the Tor 0.2.4.x series after 1 August 2017.  If you need
16512   a Tor release series with long-term support, we recommend Tor 0.2.9.x.
16514   o Directory authority changes (backport from 0.2.8.5-rc):
16515     - Urras is no longer a directory authority. Closes ticket 19271.
16517   o Directory authority changes (backport from 0.2.9.2-alpha):
16518     - The "Tonga" bridge authority has been retired; the new bridge
16519       authority is "Bifroest". Closes tickets 19728 and 19690.
16521   o Directory authority key updates (backport from 0.2.8.1-alpha):
16522     - Update the V3 identity key for the dannenberg directory authority:
16523       it was changed on 18 November 2015. Closes task 17906. Patch
16524       by "teor".
16526   o Major features (security fixes, backport from 0.2.9.4-alpha):
16527     - Prevent a class of security bugs caused by treating the contents
16528       of a buffer chunk as if they were a NUL-terminated string. At
16529       least one such bug seems to be present in all currently used
16530       versions of Tor, and would allow an attacker to remotely crash
16531       most Tor instances, especially those compiled with extra compiler
16532       hardening. With this defense in place, such bugs can't crash Tor,
16533       though we should still fix them as they occur. Closes ticket
16534       20384 (TROVE-2016-10-001).
16536   o Major bugfixes (parsing, security, backport from 0.2.9.8):
16537     - Fix a bug in parsing that could cause clients to read a single
16538       byte past the end of an allocated region. This bug could be used
16539       to cause hardened clients (built with --enable-expensive-hardening)
16540       to crash if they tried to visit a hostile hidden service. Non-
16541       hardened clients are only affected depending on the details of
16542       their platform's memory allocator. Fixes bug 21018; bugfix on
16543       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
16544       2016-12-002 and as CVE-2016-1254.
16546   o Major bugfixes (security, correctness, backport from 0.2.7.4-rc):
16547     - Fix an error that could cause us to read 4 bytes before the
16548       beginning of an openssl string. This bug could be used to cause
16549       Tor to crash on systems with unusual malloc implementations, or
16550       systems with unusual hardening installed. Fixes bug 17404; bugfix
16551       on 0.2.3.6-alpha.
16553   o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha):
16554     - Avoid a difficult-to-trigger heap corruption attack when extending
16555       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
16556       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
16557       Reported by Guido Vranken.
16559   o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha):
16560     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
16561       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
16563   o Major bugfixes (guard selection, backport from 0.2.7.6):
16564     - Actually look at the Guard flag when selecting a new directory
16565       guard. When we implemented the directory guard design, we
16566       accidentally started treating all relays as if they have the Guard
16567       flag during guard selection, leading to weaker anonymity and worse
16568       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
16569       by Mohsen Imani.
16571   o Major bugfixes (key management, backport from 0.2.8.3-alpha):
16572     - If OpenSSL fails to generate an RSA key, do not retain a dangling
16573       pointer to the previous (uninitialized) key value. The impact here
16574       should be limited to a difficult-to-trigger crash, if OpenSSL is
16575       running an engine that makes key generation failures possible, or
16576       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
16577       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
16578       Baishakhi Ray.
16580   o Major bugfixes (parsing, backported from 0.3.0.4-rc):
16581     - Fix an integer underflow bug when comparing malformed Tor
16582       versions. This bug could crash Tor when built with
16583       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
16584       0.2.9.8, which were built with -ftrapv by default. In other cases
16585       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
16586       on 0.0.8pre1. Found by OSS-Fuzz.
16588   o Minor features (security, memory erasure, backport from 0.2.8.1-alpha):
16589     - Make memwipe() do nothing when passed a NULL pointer or buffer of
16590       zero size. Check size argument to memwipe() for underflow. Fixes
16591       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
16592       patch by "teor".
16594   o Minor features (bug-resistance, backport from 0.2.8.2-alpha):
16595     - Make Tor survive errors involving connections without a
16596       corresponding event object. Previously we'd fail with an
16597       assertion; now we produce a log message. Related to bug 16248.
16599   o Minor features (DoS-resistance, backport from 0.2.7.1-alpha):
16600     - Make it harder for attackers to overload hidden services with
16601       introductions, by blocking multiple introduction requests on the
16602       same circuit. Resolves ticket 15515.
16604   o Minor features (geoip):
16605     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
16606       Country database.
16608   o Minor bugfixes (compilation, backport from 0.2.7.6):
16609     - Fix a compilation warning with Clang 3.6: Do not check the
16610       presence of an address which can never be NULL. Fixes bug 17781.
16612   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
16613     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
16614       a client authorized hidden service. Fixes bug 15823; bugfix
16615       on 0.2.1.6-alpha.
16618 Changes in version 0.3.0.4-rc - 2017-03-01
16619   Tor 0.3.0.4-rc fixes some remaining bugs, large and small, in the
16620   0.3.0 release series, and introduces a few reliability features to
16621   keep them from coming back.
16623   This is the first release candidate in the Tor 0.3.0 series. If we
16624   find no new bugs or regressions here, the first stable 0.3.0 release
16625   will be nearly identical to it.
16627   o Major bugfixes (bridges):
16628     - When the same bridge is configured multiple times with the same
16629       identity, but at different address:port combinations, treat those
16630       bridge instances as separate guards. This fix restores the ability
16631       of clients to configure the same bridge with multiple pluggable
16632       transports. Fixes bug 21027; bugfix on 0.3.0.1-alpha.
16634   o Major bugfixes (hidden service directory v3):
16635     - Stop crashing on a failed v3 hidden service descriptor lookup
16636       failure. Fixes bug 21471; bugfixes on 0.3.0.1-alpha.
16638   o Major bugfixes (parsing):
16639     - When parsing a malformed content-length field from an HTTP
16640       message, do not read off the end of the buffer. This bug was a
16641       potential remote denial-of-service attack against Tor clients and
16642       relays. A workaround was released in October 2016, to prevent this
16643       bug from crashing Tor. This is a fix for the underlying issue,
16644       which should no longer matter (if you applied the earlier patch).
16645       Fixes bug 20894; bugfix on 0.2.0.16-alpha. Bug found by fuzzing
16646       using AFL (http://lcamtuf.coredump.cx/afl/).
16647     - Fix an integer underflow bug when comparing malformed Tor
16648       versions. This bug could crash Tor when built with
16649       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
16650       0.2.9.8, which were built with -ftrapv by default. In other cases
16651       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
16652       on 0.0.8pre1. Found by OSS-Fuzz.
16654   o Minor feature (protocol versioning):
16655     - Add new protocol version for proposal 224. HSIntro now advertises
16656       version "3-4" and HSDir version "1-2". Fixes ticket 20656.
16658   o Minor features (directory authorities):
16659     - Directory authorities now reject descriptors that claim to be
16660       malformed versions of Tor. Helps prevent exploitation of
16661       bug 21278.
16662     - Reject version numbers with components that exceed INT32_MAX.
16663       Otherwise 32-bit and 64-bit platforms would behave inconsistently.
16664       Fixes bug 21450; bugfix on 0.0.8pre1.
16665     - Directory authorities now reject relays running versions
16666       0.2.9.1-alpha through 0.2.9.4-alpha, because those relays
16667       suffer from bug 20499 and don't keep their consensus cache
16668       up-to-date. Resolves ticket 20509.
16670   o Minor features (geoip):
16671     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
16672       Country database.
16674   o Minor features (reliability, crash):
16675     - Try better to detect problems in buffers where they might grow (or
16676       think they have grown) over 2 GB in size. Diagnostic for
16677       bug 21369.
16679   o Minor features (testing):
16680     - During 'make test-network-all', if tor logs any warnings, ask
16681       chutney to output them. Requires a recent version of chutney with
16682       the 21572 patch. Implements 21570.
16684   o Minor bugfixes (certificate expiration time):
16685     - Avoid using link certificates that don't become valid till some
16686       time in the future. Fixes bug 21420; bugfix on 0.2.4.11-alpha
16688   o Minor bugfixes (code correctness):
16689     - Repair a couple of (unreachable or harmless) cases of the risky
16690       comparison-by-subtraction pattern that caused bug 21278.
16691     - Remove a redundant check for the UseEntryGuards option from the
16692       options_transition_affects_guards() function. Fixes bug 21492;
16693       bugfix on 0.3.0.1-alpha.
16695   o Minor bugfixes (directory mirrors):
16696     - Allow relays to use directory mirrors without a DirPort: these
16697       relays need to be contacted over their ORPorts using a begindir
16698       connection. Fixes one case of bug 20711; bugfix on 0.2.8.2-alpha.
16699     - Clarify the message logged when a remote relay is unexpectedly
16700       missing an ORPort or DirPort: users were confusing this with a
16701       local port. Fixes another case of bug 20711; bugfix
16702       on 0.2.8.2-alpha.
16704   o Minor bugfixes (guards):
16705     - Don't warn about a missing guard state on timeout-measurement
16706       circuits: they aren't supposed to be using guards. Fixes an
16707       instance of bug 21007; bugfix on 0.3.0.1-alpha.
16708     - Silence a BUG() warning when attempting to use a guard whose
16709       descriptor we don't know, and make this scenario less likely to
16710       happen. Fixes bug 21415; bugfix on 0.3.0.1-alpha.
16712   o Minor bugfixes (hidden service):
16713     - Pass correct buffer length when encoding legacy ESTABLISH_INTRO
16714       cells. Previously, we were using sizeof() on a pointer, instead of
16715       the real destination buffer. Fortunately, that value was only used
16716       to double-check that there was enough room--which was already
16717       enforced elsewhere. Fixes bug 21553; bugfix on 0.3.0.1-alpha.
16719   o Minor bugfixes (testing):
16720     - Fix Raspbian build issues related to missing socket errno in
16721       test_util.c. Fixes bug 21116; bugfix on 0.2.8.2. Patch
16722       by "hein".
16723     - Rename "make fuzz" to "make test-fuzz-corpora", since it doesn't
16724       actually fuzz anything. Fixes bug 21447; bugfix on 0.3.0.3-alpha.
16725     - Use bash in src/test/test-network.sh. This ensures we reliably
16726       call chutney's newer tools/test-network.sh when available. Fixes
16727       bug 21562; bugfix on 0.2.9.1-alpha.
16729   o Documentation:
16730     - Small fixes to the fuzzing documentation. Closes ticket 21472.
16733 Changes in version 0.2.9.10 - 2017-03-01
16734   Tor 0.2.9.10 backports a security fix from later Tor release.  It also
16735   includes fixes for some major issues affecting directory authorities,
16736   LibreSSL compatibility, and IPv6 correctness.
16738   The Tor 0.2.9.x release series is now marked as a long-term-support
16739   series.  We intend to backport security fixes to 0.2.9.x until at
16740   least January of 2020.
16742   o Major bugfixes (directory authority, 0.3.0.3-alpha):
16743     - During voting, when marking a relay as a probable sybil, do not
16744       clear its BadExit flag: sybils can still be bad in other ways
16745       too. (We still clear the other flags.) Fixes bug 21108; bugfix
16746       on 0.2.0.13-alpha.
16748   o Major bugfixes (IPv6 Exits, backport from 0.3.0.3-alpha):
16749     - Stop rejecting all IPv6 traffic on Exits whose exit policy rejects
16750       any IPv6 addresses. Instead, only reject a port over IPv6 if the
16751       exit policy rejects that port on more than an IPv6 /16 of
16752       addresses. This bug was made worse by 17027 in 0.2.8.1-alpha,
16753       which rejected a relay's own IPv6 address by default. Fixes bug
16754       21357; bugfix on commit 004f3f4e53 in 0.2.4.7-alpha.
16756   o Major bugfixes (parsing, also in 0.3.0.4-rc):
16757     - Fix an integer underflow bug when comparing malformed Tor
16758       versions. This bug could crash Tor when built with
16759       --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor
16760       0.2.9.8, which were built with -ftrapv by default. In other cases
16761       it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix
16762       on 0.0.8pre1. Found by OSS-Fuzz.
16764   o Minor features (directory authorities, also in 0.3.0.4-rc):
16765     - Directory authorities now reject descriptors that claim to be
16766       malformed versions of Tor. Helps prevent exploitation of
16767       bug 21278.
16768     - Reject version numbers with components that exceed INT32_MAX.
16769       Otherwise 32-bit and 64-bit platforms would behave inconsistently.
16770       Fixes bug 21450; bugfix on 0.0.8pre1.
16772   o Minor features (geoip):
16773     - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2
16774       Country database.
16776   o Minor features (portability, compilation, backport from 0.3.0.3-alpha):
16777     - Autoconf now checks to determine if OpenSSL structures are opaque,
16778       instead of explicitly checking for OpenSSL version numbers. Part
16779       of ticket 21359.
16780     - Support building with recent LibreSSL code that uses opaque
16781       structures. Closes ticket 21359.
16783   o Minor bugfixes (code correctness, also in 0.3.0.4-rc):
16784     - Repair a couple of (unreachable or harmless) cases of the risky
16785       comparison-by-subtraction pattern that caused bug 21278.
16787   o Minor bugfixes (tor-resolve, backport from 0.3.0.3-alpha):
16788     - The tor-resolve command line tool now rejects hostnames over 255
16789       characters in length. Previously, it would silently truncate them,
16790       which could lead to bugs. Fixes bug 21280; bugfix on 0.0.9pre5.
16791       Patch by "junglefowl".
16794 Changes in version 0.3.0.3-alpha - 2017-02-03
16795   Tor 0.3.0.3-alpha fixes a few significant bugs introduced over the
16796   0.3.0.x development series, including some that could cause
16797   authorities to behave badly. There is also a fix for a longstanding
16798   bug that could prevent IPv6 exits from working. Tor 0.3.0.3-alpha also
16799   includes some smaller features and bugfixes.
16801   The Tor 0.3.0.x release series is now in patch-freeze: no additional
16802   features will be considered for inclusion in 0.3.0.x. We suspect that
16803   some bugs will probably remain, however, and we encourage people to
16804   test this release.
16806   o Major bugfixes (directory authority):
16807     - During voting, when marking a relay as a probable sybil, do not
16808       clear its BadExit flag: sybils can still be bad in other ways
16809       too. (We still clear the other flags.) Fixes bug 21108; bugfix
16810       on 0.2.0.13-alpha.
16811     - When deciding whether we have just found a router to be reachable,
16812       do not penalize it for not having performed an Ed25519 link
16813       handshake if it does not claim to support an Ed25519 handshake.
16814       Previously, we would treat such relays as non-running. Fixes bug
16815       21107; bugfix on 0.3.0.1-alpha.
16817   o Major bugfixes (entry guards):
16818     - Stop trying to build circuits through entry guards for which we
16819       have no descriptor. Also, stop crashing in the case that we *do*
16820       accidentally try to build a circuit in such a state. Fixes bug
16821       21242; bugfix on 0.3.0.1-alpha.
16823   o Major bugfixes (IPv6 Exits):
16824     - Stop rejecting all IPv6 traffic on Exits whose exit policy rejects
16825       any IPv6 addresses. Instead, only reject a port over IPv6 if the
16826       exit policy rejects that port on more than an IPv6 /16 of
16827       addresses. This bug was made worse by 17027 in 0.2.8.1-alpha,
16828       which rejected a relay's own IPv6 address by default. Fixes bug
16829       21357; bugfix on commit 004f3f4e53 in 0.2.4.7-alpha.
16831   o Minor feature (client):
16832     - Enable IPv6 traffic on the SocksPort by default. To disable this,
16833       a user will have to specify "NoIPv6Traffic". Closes ticket 21269.
16835   o Minor feature (fallback scripts):
16836     - Add a check_existing mode to updateFallbackDirs.py, which checks
16837       if fallbacks in the hard-coded list are working. Closes ticket
16838       20174. Patch by haxxpop.
16840   o Minor features (ciphersuite selection):
16841     - Clients now advertise a list of ciphersuites closer to the ones
16842       preferred by Firefox. Closes part of ticket 15426.
16843     - Allow relays to accept a wider range of ciphersuites, including
16844       chacha20-poly1305 and AES-CCM. Closes the other part of 15426.
16846   o Minor features (controller, configuration):
16847     - Each of the *Port options, such as SocksPort, ORPort, ControlPort,
16848       and so on, now comes with a __*Port variant that will not be saved
16849       to the torrc file by the controller's SAVECONF command. This
16850       change allows TorBrowser to set up a single-use domain socket for
16851       each time it launches Tor. Closes ticket 20956.
16852     - The GETCONF command can now query options that may only be
16853       meaningful in context-sensitive lists. This allows the controller
16854       to query the mixed SocksPort/__SocksPort style options introduced
16855       in feature 20956. Implements ticket 21300.
16857   o Minor features (portability, compilation):
16858     - Autoconf now checks to determine if OpenSSL structures are opaque,
16859       instead of explicitly checking for OpenSSL version numbers. Part
16860       of ticket 21359.
16861     - Support building with recent LibreSSL code that uses opaque
16862       structures. Closes ticket 21359.
16864   o Minor features (relay):
16865     - We now allow separation of exit and relay traffic to different
16866       source IP addresses, using the OutboundBindAddressExit and
16867       OutboundBindAddressOR options respectively. Closes ticket 17975.
16868       Written by Michael Sonntag.
16870   o Minor bugfix (logging):
16871     - Don't recommend the use of Tor2web in non-anonymous mode.
16872       Recommending Tor2web is a bad idea because the client loses all
16873       anonymity. Tor2web should only be used in specific cases by users
16874       who *know* and understand the issues. Fixes bug 21294; bugfix
16875       on 0.2.9.3-alpha.
16877   o Minor bugfixes (client):
16878     - Always recover from failures in extend_info_from_node(), in an
16879       attempt to prevent any recurrence of bug 21242. Fixes bug 21372;
16880       bugfix on 0.2.3.1-alpha.
16882   o Minor bugfixes (client, entry guards):
16883     - Fix a bug warning (with backtrace) when we fail a channel that
16884       circuits to fallback directories on it. Fixes bug 21128; bugfix
16885       on 0.3.0.1-alpha.
16886     - Fix a spurious bug warning (with backtrace) when removing an
16887       expired entry guard. Fixes bug 21129; bugfix on 0.3.0.1-alpha.
16888     - Fix a bug of the new guard algorithm where tor could stall for up
16889       to 10 minutes before retrying a guard after a long period of no
16890       network. Fixes bug 21052; bugfix on 0.3.0.1-alpha.
16891     - Do not try to build circuits until we have descriptors for our
16892       primary entry guards. Related to fix for bug 21242.
16894   o Minor bugfixes (configure, autoconf):
16895     - Rename the configure option --enable-expensive-hardening to
16896       --enable-fragile-hardening. Expensive hardening makes the tor
16897       daemon abort when some kinds of issues are detected. Thus, it
16898       makes tor more at risk of remote crashes but safer against RCE or
16899       heartbleed bug category. We now try to explain this issue in a
16900       message from the configure script. Fixes bug 21290; bugfix
16901       on 0.2.5.4-alpha.
16903   o Minor bugfixes (controller):
16904     - Restore the (deprecated) DROPGUARDS controller command. Fixes bug
16905       20824; bugfix on 0.3.0.1-alpha.
16907   o Minor bugfixes (hidden service):
16908     - Clean up the code for expiring intro points with no associated
16909       circuits. It was causing, rarely, a service with some expiring
16910       introduction points to not open enough additional introduction
16911       points. Fixes part of bug 21302; bugfix on 0.2.7.2-alpha.
16912     - Stop setting the torrc option HiddenServiceStatistics to "0" just
16913       because we're not a bridge or relay. Instead, we preserve whatever
16914       value the user set (or didn't set). Fixes bug 21150; bugfix
16915       on 0.2.6.2-alpha.
16916     - Resolve two possible underflows which could lead to creating and
16917       closing a lot of introduction point circuits in a non-stop loop.
16918       Fixes bug 21302; bugfix on 0.2.7.2-alpha.
16920   o Minor bugfixes (portability):
16921     - Use "OpenBSD" compiler macro instead of "OPENBSD" or "__OpenBSD__".
16922       It is supported by OpenBSD itself, and also by most OpenBSD
16923       variants (such as Bitrig). Fixes bug 20980; bugfix
16924       on 0.1.2.1-alpha.
16925     - When mapping a file of length greater than SIZE_MAX, do not
16926       silently truncate its contents. This issue could occur on 32 bit
16927       systems with large file support and files which are larger than 4
16928       GB. Fixes bug 21134; bugfix on 0.3.0.1-alpha.
16930   o Minor bugfixes (tor-resolve):
16931     - The tor-resolve command line tool now rejects hostnames over 255
16932       characters in length. Previously, it would silently truncate them,
16933       which could lead to bugs. Fixes bug 21280; bugfix on 0.0.9pre5.
16934       Patch by "junglefowl".
16936   o Minor bugfixes (Windows services):
16937     - Be sure to initialize the monotonic time subsystem before using
16938       it, even when running as an NT service. Fixes bug 21356; bugfix
16939       on 0.2.9.1-alpha.
16942 Changes in version 0.3.0.2-alpha - 2017-01-23
16943   Tor 0.3.0.2-alpha fixes a denial-of-service bug where an attacker could
16944   cause relays and clients to crash, even if they were not built with
16945   the --enable-expensive-hardening option. This bug affects all 0.2.9.x
16946   versions, and also affects 0.3.0.1-alpha: all relays running an affected
16947   version should upgrade.
16949   Tor 0.3.0.2-alpha also improves how exit relays and clients handle DNS
16950   time-to-live values, makes directory authorities enforce the 1-to-1
16951   mapping of relay RSA identity keys to ED25519 identity keys, fixes a
16952   client-side onion service reachability bug, does better at selecting
16953   the set of fallback directories, and more.
16955   o Major bugfixes (security, also in 0.2.9.9):
16956     - Downgrade the "-ftrapv" option from "always on" to "only on when
16957       --enable-expensive-hardening is provided."  This hardening option, like
16958       others, can turn survivable bugs into crashes--and having it on by
16959       default made a (relatively harmless) integer overflow bug into a
16960       denial-of-service bug. Fixes bug 21278 (TROVE-2017-001); bugfix on
16961       0.2.9.1-alpha.
16963   o Major features (security):
16964     - Change the algorithm used to decide DNS TTLs on client and server
16965       side, to better resist DNS-based correlation attacks like the
16966       DefecTor attack of Greschbach, Pulls, Roberts, Winter, and
16967       Feamster. Now relays only return one of two possible DNS TTL
16968       values, and clients are willing to believe DNS TTL values up to 3
16969       hours long. Closes ticket 19769.
16971   o Major features (directory authority, security):
16972     - The default for AuthDirPinKeys is now 1: directory authorities
16973       will reject relays where the RSA identity key matches a previously
16974       seen value, but the Ed25519 key has changed. Closes ticket 18319.
16976   o Major bugfixes (client, guard, crash):
16977     - In circuit_get_global_origin_list(), return the actual list of
16978       origin circuits. The previous version of this code returned the
16979       list of all the circuits, and could have caused strange bugs,
16980       including possible crashes. Fixes bug 21118; bugfix
16981       on 0.3.0.1-alpha.
16983   o Major bugfixes (client, onion service, also in 0.2.9.9):
16984     - Fix a client-side onion service reachability bug, where multiple
16985       socks requests to an onion service (or a single slow request)
16986       could cause us to mistakenly mark some of the service's
16987       introduction points as failed, and we cache that failure so
16988       eventually we run out and can't reach the service. Also resolves a
16989       mysterious "Remote server sent bogus reason code 65021" log
16990       warning. The bug was introduced in ticket 17218, where we tried to
16991       remember the circuit end reason as a uint16_t, which mangled
16992       negative values. Partially fixes bug 21056 and fixes bug 20307;
16993       bugfix on 0.2.8.1-alpha.
16995   o Major bugfixes (DNS):
16996     - Fix a bug that prevented exit nodes from caching DNS records for
16997       more than 60 seconds. Fixes bug 19025; bugfix on 0.2.4.7-alpha.
16999   o Minor features (controller):
17000     - Add "GETINFO sr/current" and "GETINFO sr/previous" keys, to expose
17001       shared-random values to the controller. Closes ticket 19925.
17003   o Minor features (entry guards):
17004     - Add UseEntryGuards to TEST_OPTIONS_DEFAULT_VALUES in order to not
17005       break regression tests.
17006     - Require UseEntryGuards when UseBridges is set, in order to make
17007       sure bridges aren't bypassed. Resolves ticket 20502.
17009   o Minor features (fallback directories):
17010     - Select 200 fallback directories for each release. Closes
17011       ticket 20881.
17012     - Allow 3 fallback relays per operator, which is safe now that we
17013       are choosing 200 fallback relays. Closes ticket 20912.
17014     - Exclude relays affected by bug 20499 from the fallback list.
17015       Exclude relays from the fallback list if they are running versions
17016       known to be affected by bug 20499, or if in our tests they deliver
17017       a stale consensus (i.e. one that expired more than 24 hours ago).
17018       Closes ticket 20539.
17019     - Reduce the minimum fallback bandwidth to 1 MByte/s. Part of
17020       ticket 18828.
17021     - Require fallback directories to have the same address and port for
17022       7 days (now that we have enough relays with this stability).
17023       Relays whose OnionOO stability timer is reset on restart by bug
17024       18050 should upgrade to Tor 0.2.8.7 or later, which has a fix for
17025       this issue. Closes ticket 20880; maintains short-term fix
17026       in 0.2.8.2-alpha.
17027     - Require fallbacks to have flags for 90% of the time (weighted
17028       decaying average), rather than 95%. This allows at least 73% of
17029       clients to bootstrap in the first 5 seconds without contacting an
17030       authority. Part of ticket 18828.
17031     - Annotate updateFallbackDirs.py with the bandwidth and consensus
17032       weight for each candidate fallback. Closes ticket 20878.
17033     - Make it easier to change the output sort order of fallbacks.
17034       Closes ticket 20822.
17035     - Display the relay fingerprint when downloading consensuses from
17036       fallbacks. Closes ticket 20908.
17038   o Minor features (geoip, also in 0.2.9.9):
17039     - Update geoip and geoip6 to the January 4 2017 Maxmind GeoLite2
17040       Country database.
17042   o Minor features (next-gen onion service directories):
17043     - Remove the "EnableOnionServicesV3" consensus parameter that we
17044       introduced in 0.3.0.1-alpha: relays are now always willing to act
17045       as v3 onion service directories. Resolves ticket 19899.
17047   o Minor features (linting):
17048     - Enhance the changes file linter to warn on Tor versions that are
17049       prefixed with "tor-". Closes ticket 21096.
17051   o Minor features (logging):
17052     - In several places, describe unset ed25519 keys as "<unset>",
17053       rather than the scary "AAAAAAAA...AAA". Closes ticket 21037.
17055   o Minor bugfix (control protocol):
17056     - The reply to a "GETINFO config/names" request via the control
17057       protocol now spells the type "Dependent" correctly. This is a
17058       breaking change in the control protocol. (The field seems to be
17059       ignored by the most common known controllers.) Fixes bug 18146;
17060       bugfix on 0.1.1.4-alpha.
17062   o Minor bugfixes (bug resilience):
17063     - Fix an unreachable size_t overflow in base64_decode(). Fixes bug
17064       19222; bugfix on 0.2.0.9-alpha. Found by Guido Vranken; fixed by
17065       Hans Jerry Illikainen.
17067   o Minor bugfixes (build):
17068     - Replace obsolete Autoconf macros with their modern equivalent and
17069       prevent similar issues in the future. Fixes bug 20990; bugfix
17070       on 0.1.0.1-rc.
17072   o Minor bugfixes (client, guards):
17073     - Fix bug where Tor would think that there are circuits waiting for
17074       better guards even though those circuits have been freed. Fixes
17075       bug 21142; bugfix on 0.3.0.1-alpha.
17077   o Minor bugfixes (config):
17078     - Don't assert on startup when trying to get the options list and
17079       LearnCircuitBuildTimeout is set to 0: we are currently parsing the
17080       options so of course they aren't ready yet. Fixes bug 21062;
17081       bugfix on 0.2.9.3-alpha.
17083   o Minor bugfixes (controller):
17084     - Make the GETINFO interface for inquiring about entry guards
17085       support the new guards backend. Fixes bug 20823; bugfix
17086       on 0.3.0.1-alpha.
17088   o Minor bugfixes (dead code):
17089     - Remove a redundant check for PidFile changes at runtime in
17090       options_transition_allowed(): this check is already performed
17091       regardless of whether the sandbox is active. Fixes bug 21123;
17092       bugfix on 0.2.5.4-alpha.
17094   o Minor bugfixes (documentation):
17095     - Update the tor manual page to document every option that can not
17096       be changed while tor is running. Fixes bug 21122.
17098   o Minor bugfixes (fallback directories):
17099     - Stop failing when a relay has no uptime data in
17100       updateFallbackDirs.py. Fixes bug 20945; bugfix on 0.2.8.1-alpha.
17101     - Avoid checking fallback candidates' DirPorts if they are down in
17102       OnionOO. When a relay operator has multiple relays, this
17103       prioritizes relays that are up over relays that are down. Fixes
17104       bug 20926; bugfix on 0.2.8.3-alpha.
17105     - Stop failing when OUTPUT_COMMENTS is True in updateFallbackDirs.py.
17106       Fixes bug 20877; bugfix on 0.2.8.3-alpha.
17108   o Minor bugfixes (guards, bootstrapping):
17109     - When connecting to a directory guard during bootstrap, do not mark
17110       the guard as successful until we receive a good-looking directory
17111       response from it. Fixes bug 20974; bugfix on 0.3.0.1-alpha.
17113   o Minor bugfixes (onion services):
17114     - Fix the config reload pruning of old vs new services so it
17115       actually works when both ephemeral and non-ephemeral services are
17116       configured. Fixes bug 21054; bugfix on 0.3.0.1-alpha.
17117     - Allow the number of introduction points to be as low as 0, rather
17118       than as low as 3. Fixes bug 21033; bugfix on 0.2.7.2-alpha.
17120   o Minor bugfixes (IPv6):
17121     - Make IPv6-using clients try harder to find an IPv6 directory
17122       server. Fixes bug 20999; bugfix on 0.2.8.2-alpha.
17123     - When IPv6 addresses have not been downloaded yet (microdesc
17124       consensus documents don't list relay IPv6 addresses), use hard-
17125       coded addresses for authorities, fallbacks, and configured
17126       bridges. Now IPv6-only clients can use microdescriptors. Fixes bug
17127       20996; bugfix on b167e82 from 19608 in 0.2.8.5-alpha.
17129   o Minor bugfixes (memory leaks):
17130     - Fix a memory leak when configuring hidden services. Fixes bug
17131       20987; bugfix on 0.3.0.1-alpha.
17133   o Minor bugfixes (portability, also in 0.2.9.9):
17134     - Avoid crashing when Tor is built using headers that contain
17135       CLOCK_MONOTONIC_COARSE, but then tries to run on an older kernel
17136       without CLOCK_MONOTONIC_COARSE. Fixes bug 21035; bugfix
17137       on 0.2.9.1-alpha.
17138     - Fix Libevent detection on platforms without Libevent 1 headers
17139       installed. Fixes bug 21051; bugfix on 0.2.9.1-alpha.
17141   o Minor bugfixes (relay):
17142     - Honor DataDirectoryGroupReadable when tor is a relay. Previously,
17143       initializing the keys would reset the DataDirectory to 0700
17144       instead of 0750 even if DataDirectoryGroupReadable was set to 1.
17145       Fixes bug 19953; bugfix on 0.0.2pre16. Patch by "redfish".
17147   o Minor bugfixes (testing):
17148     - Remove undefined behavior from the backtrace generator by removing
17149       its signal handler. Fixes bug 21026; bugfix on 0.2.5.2-alpha.
17151   o Minor bugfixes (unit tests):
17152     - Allow the unit tests to pass even when DNS lookups of bogus
17153       addresses do not fail as expected. Fixes bug 20862 and 20863;
17154       bugfix on unit tests introduced in 0.2.8.1-alpha
17155       through 0.2.9.4-alpha.
17157   o Code simplification and refactoring:
17158     - Refactor code to manipulate global_origin_circuit_list into
17159       separate functions. Closes ticket 20921.
17161   o Documentation (formatting):
17162     - Clean up formatting of tor.1 man page and HTML doc, where <pre>
17163       blocks were incorrectly appearing. Closes ticket 20885.
17165   o Documentation (man page):
17166     - Clarify many options in tor.1 and add some min/max values for
17167       HiddenService options. Closes ticket 21058.
17170 Changes in version 0.2.9.9 - 2017-01-23
17171   Tor 0.2.9.9 fixes a denial-of-service bug where an attacker could
17172   cause relays and clients to crash, even if they were not built with
17173   the --enable-expensive-hardening option. This bug affects all 0.2.9.x
17174   versions, and also affects 0.3.0.1-alpha: all relays running an affected
17175   version should upgrade.
17177   This release also resolves a client-side onion service reachability
17178   bug, and resolves a pair of small portability issues.
17180   o Major bugfixes (security):
17181     - Downgrade the "-ftrapv" option from "always on" to "only on when
17182       --enable-expensive-hardening is provided." This hardening option,
17183       like others, can turn survivable bugs into crashes -- and having
17184       it on by default made a (relatively harmless) integer overflow bug
17185       into a denial-of-service bug. Fixes bug 21278 (TROVE-2017-001);
17186       bugfix on 0.2.9.1-alpha.
17188   o Major bugfixes (client, onion service):
17189     - Fix a client-side onion service reachability bug, where multiple
17190       socks requests to an onion service (or a single slow request)
17191       could cause us to mistakenly mark some of the service's
17192       introduction points as failed, and we cache that failure so
17193       eventually we run out and can't reach the service. Also resolves a
17194       mysterious "Remote server sent bogus reason code 65021" log
17195       warning. The bug was introduced in ticket 17218, where we tried to
17196       remember the circuit end reason as a uint16_t, which mangled
17197       negative values. Partially fixes bug 21056 and fixes bug 20307;
17198       bugfix on 0.2.8.1-alpha.
17200   o Minor features (geoip):
17201     - Update geoip and geoip6 to the January 4 2017 Maxmind GeoLite2
17202       Country database.
17204   o Minor bugfixes (portability):
17205     - Avoid crashing when Tor is built using headers that contain
17206       CLOCK_MONOTONIC_COARSE, but then tries to run on an older kernel
17207       without CLOCK_MONOTONIC_COARSE. Fixes bug 21035; bugfix
17208       on 0.2.9.1-alpha.
17209     - Fix Libevent detection on platforms without Libevent 1 headers
17210       installed. Fixes bug 21051; bugfix on 0.2.9.1-alpha.
17213 Changes in version 0.3.0.1-alpha - 2016-12-19
17214   Tor 0.3.0.1-alpha is the first alpha release in the 0.3.0 development
17215   series. It strengthens Tor's link and circuit handshakes by
17216   identifying relays by their Ed25519 keys, improves the algorithm that
17217   clients use to choose and maintain their list of guards, and includes
17218   additional backend support for the next-generation hidden service
17219   design. It also contains numerous other small features and
17220   improvements to security, correctness, and performance.
17222   Below are the changes since 0.2.9.8.
17224   o Major features (guard selection algorithm):
17225     - Tor's guard selection algorithm has been redesigned from the
17226       ground up, to better support unreliable networks and restrictive
17227       sets of entry nodes, and to better resist guard-capture attacks by
17228       hostile local networks. Implements proposal 271; closes
17229       ticket 19877.
17231   o Major features (next-generation hidden services):
17232     - Relays can now handle v3 ESTABLISH_INTRO cells as specified by
17233       prop224 aka "Next Generation Hidden Services". Service and clients
17234       don't use this functionality yet. Closes ticket 19043. Based on
17235       initial code by Alec Heifetz.
17236     - Relays now support the HSDir version 3 protocol, so that they can
17237       can store and serve v3 descriptors. This is part of the next-
17238       generation onion service work detailed in proposal 224. Closes
17239       ticket 17238.
17241   o Major features (protocol, ed25519 identity keys):
17242     - Relays now use Ed25519 to prove their Ed25519 identities and to
17243       one another, and to clients. This algorithm is faster and more
17244       secure than the RSA-based handshake we've been doing until now.
17245       Implements the second big part of proposal 220; Closes
17246       ticket 15055.
17247     - Clients now support including Ed25519 identity keys in the EXTEND2
17248       cells they generate. By default, this is controlled by a consensus
17249       parameter, currently disabled. You can turn this feature on for
17250       testing by setting ExtendByEd25519ID in your configuration. This
17251       might make your traffic appear different than the traffic
17252       generated by other users, however. Implements part of ticket
17253       15056; part of proposal 220.
17254     - Relays now understand requests to extend to other relays by their
17255       Ed25519 identity keys. When an Ed25519 identity key is included in
17256       an EXTEND2 cell, the relay will only extend the circuit if the
17257       other relay can prove ownership of that identity. Implements part
17258       of ticket 15056; part of proposal 220.
17260   o Major bugfixes (scheduler):
17261     - Actually compare circuit policies in ewma_cmp_cmux(). This bug
17262       caused the channel scheduler to behave more or less randomly,
17263       rather than preferring channels with higher-priority circuits.
17264       Fixes bug 20459; bugfix on 0.2.6.2-alpha.
17266   o Minor features (controller):
17267     - When HSFETCH arguments cannot be parsed, say "Invalid argument"
17268       rather than "unrecognized." Closes ticket 20389; patch from
17269       Ivan Markin.
17271   o Minor features (diagnostic, directory client):
17272     - Warn when we find an unexpected inconsistency in directory
17273       download status objects. Prevents some negative consequences of
17274       bug 20593.
17276   o Minor features (directory authority):
17277     - Add a new authority-only AuthDirTestEd25519LinkKeys option (on by
17278       default) to control whether authorities should try to probe relays
17279       by their Ed25519 link keys. This option will go away in a few
17280       releases--unless we encounter major trouble in our ed25519 link
17281       protocol rollout, in which case it will serve as a safety option.
17283   o Minor features (directory cache):
17284     - Relays and bridges will now refuse to serve the consensus they
17285       have if they know it is too old for a client to use. Closes
17286       ticket 20511.
17288   o Minor features (ed25519 link handshake):
17289     - Advertise support for the ed25519 link handshake using the
17290       subprotocol-versions mechanism, so that clients can tell which
17291       relays can identity themselves by Ed25519 ID. Closes ticket 20552.
17293   o Minor features (fingerprinting resistance, authentication):
17294     - Extend the length of RSA keys used for TLS link authentication to
17295       2048 bits. (These weren't used for forward secrecy; for forward
17296       secrecy, we used P256.) Closes ticket 13752.
17298   o Minor features (infrastructure):
17299     - Implement smartlist_add_strdup() function. Replaces the use of
17300       smartlist_add(sl, tor_strdup(str)). Closes ticket 20048.
17302   o Minor bugfixes (client):
17303     - When clients that use bridges start up with a cached consensus on
17304       disk, they were ignoring it and downloading a new one. Now they
17305       use the cached one. Fixes bug 20269; bugfix on 0.2.3.12-alpha.
17307   o Minor bugfixes (configuration):
17308     - Accept non-space whitespace characters after the severity level in
17309       the `Log` option. Fixes bug 19965; bugfix on 0.2.1.1-alpha.
17310     - Support "TByte" and "TBytes" units in options given in bytes.
17311       "TB", "terabyte(s)", "TBit(s)" and "terabit(s)" were already
17312       supported. Fixes bug 20622; bugfix on 0.2.0.14-alpha.
17314   o Minor bugfixes (consensus weight):
17315     - Add new consensus method that initializes bw weights to 1 instead
17316       of 0. This prevents a zero weight from making it all the way to
17317       the end (happens in small testing networks) and causing an error.
17318       Fixes bug 14881; bugfix on 0.2.2.17-alpha.
17320   o Minor bugfixes (descriptors):
17321     - Correctly recognise downloaded full descriptors as valid, even
17322       when using microdescriptors as circuits. This affects clients with
17323       FetchUselessDescriptors set, and may affect directory authorities.
17324       Fixes bug 20839; bugfix on 0.2.3.2-alpha.
17326   o Minor bugfixes (directory system):
17327     - Download all consensus flavors, descriptors, and authority
17328       certificates when FetchUselessDescriptors is set, regardless of
17329       whether tor is a directory cache or not. Fixes bug 20667; bugfix
17330       on all recent tor versions.
17331     - Bridges and relays now use microdescriptors (like clients do)
17332       rather than old-style router descriptors. Now bridges will blend
17333       in with clients in terms of the circuits they build. Fixes bug
17334       6769; bugfix on 0.2.3.2-alpha.
17336   o Minor bugfixes (ed25519 certificates):
17337     - Correctly interpret ed25519 certificates that would expire some
17338       time after 19 Jan 2038. Fixes bug 20027; bugfix on 0.2.7.2-alpha.
17340   o Minor bugfixes (hidden services):
17341     - Stop ignoring misconfigured hidden services. Instead, refuse to
17342       start tor until the misconfigurations have been corrected. Fixes
17343       bug 20559; bugfix on multiple commits in 0.2.7.1-alpha
17344       and earlier.
17346   o Minor bugfixes (memory leak at exit):
17347     - Fix a small harmless memory leak at exit of the previously unused
17348       RSA->Ed identity cross-certificate. Fixes bug 17779; bugfix
17349       on 0.2.7.2-alpha.
17351   o Minor bugfixes (util):
17352     - When finishing writing a file to disk, if we were about to replace
17353       the file with the temporary file created before and we fail to
17354       replace it, remove the temporary file so it doesn't stay on disk.
17355       Fixes bug 20646; bugfix on 0.2.0.7-alpha. Patch by fk.
17357   o Minor bugfixes (Windows):
17358     - Check for getpagesize before using it to mmap files. This fixes
17359       compilation in some MinGW environments. Fixes bug 20530; bugfix on
17360       0.1.2.1-alpha. Reported by "ice".
17362   o Code simplification and refactoring:
17363     - Abolish all global guard context in entrynodes.c; replace with new
17364       guard_selection_t structure as preparation for proposal 271.
17365       Closes ticket 19858.
17366     - Introduce rend_service_is_ephemeral() that tells if given onion
17367       service is ephemeral. Replace unclear NULL-checkings for service
17368       directory with this function. Closes ticket 20526.
17369     - Extract magic numbers in circuituse.c into defined variables.
17370     - Refactor circuit_is_available_for_use to remove unnecessary check.
17371     - Refactor circuit_predict_and_launch_new for readability and
17372       testability. Closes ticket 18873.
17373     - Refactor large if statement in purpose_needs_anonymity to use
17374       switch statement instead. Closes part of ticket 20077.
17375     - Refactor the hashing API to return negative values for errors, as
17376       is done as throughout the codebase. Closes ticket 20717.
17377     - Remove data structures that were used to index or_connection
17378       objects by their RSA identity digests. These structures are fully
17379       redundant with the similar structures used in the
17380       channel abstraction.
17381     - Remove duplicate code in the channel_write_*cell() functions.
17382       Closes ticket 13827; patch from Pingl.
17383     - Remove redundant behavior of is_sensitive_dir_purpose, refactor to
17384       use only purpose_needs_anonymity. Closes part of ticket 20077.
17385     - The code to generate and parse EXTEND and EXTEND2 cells has been
17386       replaced with code automatically generated by the
17387       "trunnel" utility.
17389   o Documentation:
17390     - Include the "TBits" unit in Tor's man page. Fixes part of bug
17391       20622; bugfix on 0.2.5.1-alpha.
17392     - Change '1' to 'weight_scale' in consensus bw weights calculation
17393       comments, as that is reality. Closes ticket 20273. Patch
17394       from pastly.
17395     - Correct the value for AuthDirGuardBWGuarantee in the manpage, from
17396       250 KBytes to 2 MBytes. Fixes bug 20435; bugfix
17397       on 0.2.5.6-alpha.
17398     - Stop the man page from incorrectly stating that HiddenServiceDir
17399       must already exist. Fixes 20486.
17400     - Clarify that when ClientRejectInternalAddresses is enabled (which
17401       is the default), multicast DNS hostnames for machines on the local
17402       network (of the form *.local) are also rejected. Closes
17403       ticket 17070.
17405   o Removed features:
17406     - The AuthDirMaxServersPerAuthAddr option no longer exists: The same
17407       limit for relays running on a single IP applies to authority IP
17408       addresses as well as to non-authority IP addresses. Closes
17409       ticket 20960.
17410     - The UseDirectoryGuards torrc option no longer exists: all users
17411       that use entry guards will also use directory guards. Related to
17412       proposal 271; implements part of ticket 20831.
17414   o Testing:
17415     - New unit tests for tor_htonll(). Closes ticket 19563. Patch
17416       from "overcaffeinated".
17417     - Perform the coding style checks when running the tests and fail
17418       when coding style violations are found. Closes ticket 5500.
17419     - Add tests for networkstatus_compute_bw_weights_v10.
17420     - Add unit tests circuit_predict_and_launch_new.
17421     - Extract dummy_origin_circuit_new so it can be used by other
17422       test functions.
17425 Changes in version 0.2.8.12 - 2016-12-19
17426   Tor 0.2.8.12 backports a fix for a medium-severity issue (bug 21018
17427   below) where Tor clients could crash when attempting to visit a
17428   hostile hidden service. Clients are recommended to upgrade as packages
17429   become available for their systems.
17431   It also includes an updated list of fallback directories, backported
17432   from 0.2.9.
17434   Now that the Tor 0.2.9 series is stable, only major bugfixes will be
17435   backported to 0.2.8 in the future.
17437   o Major bugfixes (parsing, security, backported from 0.2.9.8):
17438     - Fix a bug in parsing that could cause clients to read a single
17439       byte past the end of an allocated region. This bug could be used
17440       to cause hardened clients (built with --enable-expensive-hardening)
17441       to crash if they tried to visit a hostile hidden service. Non-
17442       hardened clients are only affected depending on the details of
17443       their platform's memory allocator. Fixes bug 21018; bugfix on
17444       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
17445       2016-12-002 and as CVE-2016-1254.
17447   o Minor features (fallback directory list, backported from 0.2.9.8):
17448     - Replace the 81 remaining fallbacks of the 100 originally
17449       introduced in Tor 0.2.8.3-alpha in March 2016, with a list of 177
17450       fallbacks (123 new, 54 existing, 27 removed) generated in December
17451       2016. Resolves ticket 20170.
17453   o Minor features (geoip, backported from 0.2.9.7-rc):
17454     - Update geoip and geoip6 to the December 7 2016 Maxmind GeoLite2
17455       Country database.
17458 Changes in version 0.2.9.8 - 2016-12-19
17459   Tor 0.2.9.8 is the first stable release of the Tor 0.2.9 series.
17461   The Tor 0.2.9 series makes mandatory a number of security features
17462   that were formerly optional. It includes support for a new shared-
17463   randomness protocol that will form the basis for next generation
17464   hidden services, includes a single-hop hidden service mode for
17465   optimizing .onion services that don't actually want to be hidden,
17466   tries harder not to overload the directory authorities with excessive
17467   downloads, and supports a better protocol versioning scheme for
17468   improved compatibility with other implementations of the Tor protocol.
17470   And of course, there are numerous other bugfixes and improvements.
17472   This release also includes a fix for a medium-severity issue (bug
17473   21018 below) where Tor clients could crash when attempting to visit a
17474   hostile hidden service. Clients are recommended to upgrade as packages
17475   become available for their systems.
17477   Below are the changes since 0.2.9.7-rc. For a list of all changes
17478   since 0.2.8, see the ReleaseNotes file.
17480   o Major bugfixes (parsing, security):
17481     - Fix a bug in parsing that could cause clients to read a single
17482       byte past the end of an allocated region. This bug could be used
17483       to cause hardened clients (built with --enable-expensive-hardening)
17484       to crash if they tried to visit a hostile hidden service. Non-
17485       hardened clients are only affected depending on the details of
17486       their platform's memory allocator. Fixes bug 21018; bugfix on
17487       0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE-
17488       2016-12-002 and as CVE-2016-1254.
17490   o Minor features (fallback directory list):
17491     - Replace the 81 remaining fallbacks of the 100 originally
17492       introduced in Tor 0.2.8.3-alpha in March 2016, with a list of 177
17493       fallbacks (123 new, 54 existing, 27 removed) generated in December
17494       2016. Resolves ticket 20170.
17497 Changes in version 0.2.9.7-rc - 2016-12-12
17498   Tor 0.2.9.7-rc fixes a few small bugs remaining in Tor 0.2.9.6-rc,
17499   including a few that had prevented tests from passing on
17500   some platforms.
17502   o Minor features (geoip):
17503     - Update geoip and geoip6 to the December 7 2016 Maxmind GeoLite2
17504       Country database.
17506   o Minor bugfix (build):
17507     - The current Git revision when building from a local repository is
17508       now detected correctly when using git worktrees. Fixes bug 20492;
17509       bugfix on 0.2.3.9-alpha.
17511   o Minor bugfixes (directory authority):
17512     - When computing old Tor protocol line version in protover, we were
17513       looking at 0.2.7.5 twice instead of a specific case for
17514       0.2.9.1-alpha. Fixes bug 20810; bugfix on 0.2.9.4-alpha.
17516   o Minor bugfixes (download scheduling):
17517     - Resolve a "bug" warning when considering a download schedule whose
17518       delay had approached INT_MAX. Fixes 20875; bugfix on 0.2.9.5-alpha.
17520   o Minor bugfixes (logging):
17521     - Downgrade a harmless log message about the
17522       pending_entry_connections list from "warn" to "info". Mitigates
17523       bug 19926.
17525   o Minor bugfixes (memory leak):
17526     - Fix a small memory leak when receiving AF_UNIX connections on a
17527       SocksPort. Fixes bug 20716; bugfix on 0.2.6.3-alpha.
17528     - When moving a signed descriptor object from a source to an
17529       existing destination, free the allocated memory inside that
17530       destination object. Fixes bug 20715; bugfix on 0.2.8.3-alpha.
17532   o Minor bugfixes (memory leak, use-after-free, linux seccomp2 sandbox):
17533     - Fix a memory leak and use-after-free error when removing entries
17534       from the sandbox's getaddrinfo() cache. Fixes bug 20710; bugfix on
17535       0.2.5.5-alpha. Patch from "cypherpunks".
17537   o Minor bugfixes (portability):
17538     - Use the correct spelling of MAC_OS_X_VERSION_10_12 on configure.ac
17539       Fixes bug 20935; bugfix on 0.2.9.6-rc.
17541   o Minor bugfixes (unit tests):
17542     - Stop expecting NetBSD unit tests to report success for ipfw. Part
17543       of a fix for bug 19960; bugfix on 0.2.9.5-alpha.
17544     - Fix tolerances in unit tests for monotonic time comparisons
17545       between nanoseconds and microseconds. Previously, we accepted a 10
17546       us difference only, which is not realistic on every platform's
17547       clock_gettime(). Fixes bug 19974; bugfix on 0.2.9.1-alpha.
17548     - Remove a double-free in the single onion service unit test. Stop
17549       ignoring a return value. Make future changes less error-prone.
17550       Fixes bug 20864; bugfix on 0.2.9.6-rc.
17553 Changes in version 0.2.8.11 - 2016-12-08
17554   Tor 0.2.8.11 backports fixes for additional portability issues that
17555   could prevent Tor from building correctly on OSX Sierra, or with
17556   OpenSSL 1.1. Affected users should upgrade; others can safely stay
17557   with 0.2.8.10.
17559   o Minor bugfixes (portability):
17560     - Avoid compilation errors when building on OSX Sierra. Sierra began
17561       to support the getentropy() and clock_gettime() APIs, but created
17562       a few problems in doing so. Tor 0.2.9 has a more thorough set of
17563       workarounds; in 0.2.8, we are just using the /dev/urandom and mach
17564       monotonic time interfaces. Fixes bug 20865. Bugfix
17565       on 0.2.8.1-alpha.
17567   o Minor bugfixes (portability, backport from 0.2.9.5-alpha):
17568     - Fix compilation with OpenSSL 1.1 and less commonly-used CPU
17569       architectures. Closes ticket 20588.
17572 Changes in version 0.2.8.10 - 2016-12-02
17573   Tor 0.2.8.10 backports a fix for a bug that would sometimes make clients
17574   unusable after they left standby mode. It also backports fixes for
17575   a few portability issues and a small but problematic memory leak.
17577   o Major bugfixes (client reliability, backport from 0.2.9.5-alpha):
17578     - When Tor leaves standby because of a new application request, open
17579       circuits as needed to serve that request. Previously, we would
17580       potentially wait a very long time. Fixes part of bug 19969; bugfix
17581       on 0.2.8.1-alpha.
17583   o Major bugfixes (client performance, backport from 0.2.9.5-alpha):
17584     - Clients now respond to new application stream requests immediately
17585       when they arrive, rather than waiting up to one second before
17586       starting to handle them. Fixes part of bug 19969; bugfix
17587       on 0.2.8.1-alpha.
17589   o Minor bugfixes (portability, backport from 0.2.9.6-rc):
17590     - Work around a bug in the OSX 10.12 SDK that would prevent us from
17591       successfully targeting earlier versions of OSX. Resolves
17592       ticket 20235.
17594   o Minor bugfixes (portability, backport from 0.2.9.5-alpha):
17595     - Fix implicit conversion warnings under OpenSSL 1.1. Fixes bug
17596       20551; bugfix on 0.2.1.1-alpha.
17598   o Minor bugfixes (relay, backport from 0.2.9.5-alpha):
17599     - Work around a memory leak in OpenSSL 1.1 when encoding public
17600       keys. Fixes bug 20553; bugfix on 0.0.2pre8.
17602   o Minor features (geoip):
17603     - Update geoip and geoip6 to the November 3 2016 Maxmind GeoLite2
17604       Country database.
17606 Changes in version 0.2.9.6-rc - 2016-12-02
17607   Tor 0.2.9.6-rc fixes a few remaining bugs found in the previous alpha
17608   version. We hope that it will be ready to become stable soon, and we
17609   encourage everyone to test this release. If no showstopper bugs are
17610   found here, the next 0.2.9 release will be stable.
17612   o Major bugfixes (relay, resolver, logging):
17613     - For relays that don't know their own address, avoid attempting a
17614       local hostname resolve for each descriptor we download. This
17615       will cut down on the number of "Success: chose address 'x.x.x.x'"
17616       log lines, and also avoid confusing clock jumps if the resolver
17617       is slow. Fixes bugs 20423 and 20610; bugfix on 0.2.8.1-alpha.
17619   o Minor bugfixes (client, fascistfirewall):
17620     - Avoid spurious warnings when ReachableAddresses or FascistFirewall
17621       is set. Fixes bug 20306; bugfix on 0.2.8.2-alpha.
17623   o Minor bugfixes (hidden services):
17624     - Stop ignoring the anonymity status of saved keys for hidden
17625       services and single onion services when first starting tor.
17626       Instead, refuse to start tor if any hidden service key has been
17627       used in a different hidden service anonymity mode. Fixes bug
17628       20638; bugfix on 17178 in 0.2.9.3-alpha; reported by ahf.
17630   o Minor bugfixes (portability):
17631     - Work around a bug in the OSX 10.12 SDK that would prevent us from
17632       successfully targeting earlier versions of OSX. Resolves
17633       ticket 20235.
17634     - Run correctly when built on Windows build environments that
17635       require _vcsprintf(). Fixes bug 20560; bugfix on 0.2.2.11-alpha.
17637   o Minor bugfixes (single onion services, Tor2web):
17638     - Stop complaining about long-term one-hop circuits deliberately
17639       created by single onion services and Tor2web. These log messages
17640       are intended to diagnose issue 8387, which relates to circuits
17641       hanging around forever for no reason. Fixes bug 20613; bugfix on
17642       0.2.9.1-alpha. Reported by "pastly".
17644   o Minor bugfixes (unit tests):
17645     - Stop spurious failures in the local interface address discovery
17646       unit tests. Fixes bug 20634; bugfix on 0.2.8.1-alpha; patch by
17647       Neel Chauhan.
17649   o Documentation:
17650     - Correct the minimum bandwidth value in torrc.sample, and queue a
17651       corresponding change for torrc.minimal. Closes ticket 20085.
17654 Changes in version 0.2.9.5-alpha - 2016-11-08
17655   Tor 0.2.9.5-alpha fixes numerous bugs discovered in the previous alpha
17656   version. We believe one or two probably remain, and we encourage
17657   everyone to test this release.
17659   o Major bugfixes (client performance):
17660     - Clients now respond to new application stream requests immediately
17661       when they arrive, rather than waiting up to one second before
17662       starting to handle them. Fixes part of bug 19969; bugfix
17663       on 0.2.8.1-alpha.
17665   o Major bugfixes (client reliability):
17666     - When Tor leaves standby because of a new application request, open
17667       circuits as needed to serve that request. Previously, we would
17668       potentially wait a very long time. Fixes part of bug 19969; bugfix
17669       on 0.2.8.1-alpha.
17671   o Major bugfixes (download scheduling):
17672     - When using an exponential backoff schedule, do not give up on
17673       downloading just because we have failed a bunch of times. Since
17674       each delay is longer than the last, retrying indefinitely won't
17675       hurt. Fixes bug 20536; bugfix on 0.2.9.1-alpha.
17676     - If a consensus expires while we are waiting for certificates to
17677       download, stop waiting for certificates.
17678     - If we stop waiting for certificates less than a minute after we
17679       started downloading them, do not consider the certificate download
17680       failure a separate failure. Fixes bug 20533; bugfix
17681       on 0.2.0.9-alpha.
17682     - Remove the maximum delay on exponential-backoff scheduling. Since
17683       we now allow an infinite number of failures (see ticket 20536), we
17684       must now allow the time to grow longer on each failure. Fixes part
17685       of bug 20534; bugfix on 0.2.9.1-alpha.
17686     - Make our initial download delays closer to those from 0.2.8. Fixes
17687       another part of bug 20534; bugfix on 0.2.9.1-alpha.
17688     - When determining when to download a directory object, handle times
17689       after 2038 if the operating system supports them. (Someday this
17690       will be important!) Fixes bug 20587; bugfix on 0.2.8.1-alpha.
17691     - When using exponential backoff in test networks, use a lower
17692       exponent, so the delays do not vary as much. This helps test
17693       networks bootstrap consistently. Fixes bug 20597; bugfix on 20499.
17695   o Minor features (geoip):
17696     - Update geoip and geoip6 to the November 3 2016 Maxmind GeoLite2
17697       Country database.
17699   o Minor bugfixes (client directory scheduling):
17700     - Treat "relay too busy to answer request" as a failed request and a
17701       reason to back off on our retry frequency. This is safe now that
17702       exponential backoffs retry indefinitely, and avoids a bug where we
17703       would reset our download schedule erroneously. Fixes bug 20593;
17704       bugfix on 0.2.9.1-alpha.
17706   o Minor bugfixes (client, logging):
17707     - Remove a BUG warning in circuit_pick_extend_handshake(). Instead,
17708       assume all nodes support EXTEND2. Use ntor whenever a key is
17709       available. Fixes bug 20472; bugfix on 0.2.9.3-alpha.
17710     - On DNSPort, stop logging a BUG warning on a failed hostname
17711       lookup. Fixes bug 19869; bugfix on 0.2.9.1-alpha.
17713   o Minor bugfixes (hidden services):
17714     - When configuring hidden services, check every hidden service
17715       directory's permissions. Previously, we only checked the last
17716       hidden service. Fixes bug 20529; bugfix the work to fix 13942
17717       in 0.2.6.2-alpha.
17719   o Minor bugfixes (portability):
17720     - Fix compilation with OpenSSL 1.1 and less commonly-used CPU
17721       architectures. Closes ticket 20588.
17722     - Use ECDHE ciphers instead of ECDH in tortls tests. LibreSSL has
17723       removed the ECDH ciphers which caused the tests to fail on
17724       platforms which use it. Fixes bug 20460; bugfix on 0.2.8.1-alpha.
17725     - Fix implicit conversion warnings under OpenSSL 1.1. Fixes bug
17726       20551; bugfix on 0.2.1.1-alpha.
17728   o Minor bugfixes (relay bootstrap):
17729     - Ensure relays don't make multiple connections during bootstrap.
17730       Fixes bug 20591; bugfix on 0.2.8.1-alpha.
17732   o Minor bugfixes (relay):
17733     - Work around a memory leak in OpenSSL 1.1 when encoding public
17734       keys. Fixes bug 20553; bugfix on 0.0.2pre8.
17735     - Avoid a small memory leak when informing worker threads about
17736       rotated onion keys. Fixes bug 20401; bugfix on 0.2.6.3-alpha.
17737     - Do not try to parallelize workers more than 16x without the user
17738       explicitly configuring us to do so, even if we do detect more than
17739       16 CPU cores. Fixes bug 19968; bugfix on 0.2.3.1-alpha.
17741   o Minor bugfixes (single onion services):
17742     - Start correctly when creating a single onion service in a
17743       directory that did not previously exist. Fixes bug 20484; bugfix
17744       on 0.2.9.3-alpha.
17746   o Minor bugfixes (testing):
17747     - Avoid a unit test failure on systems with over 16 detectable CPU
17748       cores. Fixes bug 19968; bugfix on 0.2.3.1-alpha.
17750   o Documentation:
17751     - Clarify that setting HiddenServiceNonAnonymousMode requires you to
17752       also set "SOCKSPort 0". Fixes bug 20487; bugfix on 0.2.9.3-alpha.
17753     - Module-level documentation for several more modules. Closes
17754       tickets 19287 and 19290.
17757 Changes in version 0.2.8.9 - 2016-10-17
17758   Tor 0.2.8.9 backports a fix for a security hole in previous versions
17759   of Tor that would allow a remote attacker to crash a Tor client,
17760   hidden service, relay, or authority. All Tor users should upgrade to
17761   this version, or to 0.2.9.4-alpha. Patches will be released for older
17762   versions of Tor.
17764   o Major features (security fixes, also in 0.2.9.4-alpha):
17765     - Prevent a class of security bugs caused by treating the contents
17766       of a buffer chunk as if they were a NUL-terminated string. At
17767       least one such bug seems to be present in all currently used
17768       versions of Tor, and would allow an attacker to remotely crash
17769       most Tor instances, especially those compiled with extra compiler
17770       hardening. With this defense in place, such bugs can't crash Tor,
17771       though we should still fix them as they occur. Closes ticket
17772       20384 (TROVE-2016-10-001).
17774   o Minor features (geoip):
17775     - Update geoip and geoip6 to the October 4 2016 Maxmind GeoLite2
17776       Country database.
17779 Changes in version 0.2.9.4-alpha - 2016-10-17
17780   Tor 0.2.9.4-alpha fixes a security hole in previous versions of Tor
17781   that would allow a remote attacker to crash a Tor client, hidden
17782   service, relay, or authority. All Tor users should upgrade to this
17783   version, or to 0.2.8.9. Patches will be released for older versions
17784   of Tor.
17786   Tor 0.2.9.4-alpha also adds numerous small features and fix-ups to
17787   previous versions of Tor, including the implementation of a feature to
17788   future- proof the Tor ecosystem against protocol changes, some bug
17789   fixes necessary for Tor Browser to use unix domain sockets correctly,
17790   and several portability improvements. We anticipate that this will be
17791   the last alpha in the Tor 0.2.9 series, and that the next release will
17792   be a release candidate.
17794   o Major features (security fixes):
17795     - Prevent a class of security bugs caused by treating the contents
17796       of a buffer chunk as if they were a NUL-terminated string. At
17797       least one such bug seems to be present in all currently used
17798       versions of Tor, and would allow an attacker to remotely crash
17799       most Tor instances, especially those compiled with extra compiler
17800       hardening. With this defense in place, such bugs can't crash Tor,
17801       though we should still fix them as they occur. Closes ticket
17802       20384 (TROVE-2016-10-001).
17804   o Major features (subprotocol versions):
17805     - Tor directory authorities now vote on a set of recommended
17806       subprotocol versions, and on a set of required subprotocol
17807       versions. Clients and relays that lack support for a _required_
17808       subprotocol version will not start; those that lack support for a
17809       _recommended_ subprotocol version will warn the user to upgrade.
17810       Closes ticket 19958; implements part of proposal 264.
17811     - Tor now uses "subprotocol versions" to indicate compatibility.
17812       Previously, versions of Tor looked at the declared Tor version of
17813       a relay to tell whether they could use a given feature. Now, they
17814       should be able to rely on its declared subprotocol versions. This
17815       change allows compatible implementations of the Tor protocol(s) to
17816       exist without pretending to be 100% bug-compatible with particular
17817       releases of Tor itself. Closes ticket 19958; implements part of
17818       proposal 264.
17820   o Minor feature (fallback directories):
17821     - Remove broken fallbacks from the hard-coded fallback directory
17822       list. Closes ticket 20190; patch by teor.
17824   o Minor features (client, directory):
17825     - Since authorities now omit all routers that lack the Running and
17826       Valid flags, we assume that any relay listed in the consensus must
17827       have those flags. Closes ticket 20001; implements part of
17828       proposal 272.
17830   o Minor features (compilation, portability):
17831     - Compile correctly on MacOS 10.12 (aka "Sierra"). Closes
17832       ticket 20241.
17834   o Minor features (development tools, etags):
17835     - Teach the "make tags" Makefile target how to correctly find
17836       "MOCK_IMPL" function definitions. Patch from nherring; closes
17837       ticket 16869.
17839   o Minor features (geoip):
17840     - Update geoip and geoip6 to the October 4 2016 Maxmind GeoLite2
17841       Country database.
17843   o Minor features (unix domain sockets):
17844     - When configuring a unix domain socket for a SocksPort,
17845       ControlPort, or Hidden service, you can now wrap the address in
17846       quotes, using C-style escapes inside the quotes. This allows unix
17847       domain socket paths to contain spaces.
17849   o Minor features (virtual addresses):
17850     - Increase the maximum number of bits for the IPv6 virtual network
17851       prefix from 16 to 104. In this way, the condition for address
17852       allocation is less restrictive. Closes ticket 20151; feature
17853       on 0.2.4.7-alpha.
17855   o Minor bugfixes (address discovery):
17856     - Stop reordering IP addresses returned by the OS. This makes it
17857       more likely that Tor will guess the same relay IP address every
17858       time. Fixes issue 20163; bugfix on 0.2.7.1-alpha, ticket 17027.
17859       Reported by René Mayrhofer, patch by "cypherpunks".
17861   o Minor bugfixes (client, unix domain sockets):
17862     - Disable IsolateClientAddr when using AF_UNIX backed SocksPorts as
17863       the client address is meaningless. Fixes bug 20261; bugfix
17864       on 0.2.6.3-alpha.
17866   o Minor bugfixes (compilation, OpenBSD):
17867     - Detect Libevent2 functions correctly on systems that provide
17868       libevent2, but where libevent1 is linked with -levent. Fixes bug
17869       19904; bugfix on 0.2.2.24-alpha. Patch from Rubiate.
17871   o Minor bugfixes (configuration):
17872     - When parsing quoted configuration values from the torrc file,
17873       handle windows line endings correctly. Fixes bug 19167; bugfix on
17874       0.2.0.16-alpha. Patch from "Pingl".
17876   o Minor bugfixes (getpass):
17877     - Defensively fix a non-triggerable heap corruption at do_getpass()
17878       to protect ourselves from mistakes in the future. Fixes bug
17879       19223; bugfix on 0.2.7.3-rc. Bug found by Guido Vranken, patch
17880       by nherring.
17882   o Minor bugfixes (hidden service):
17883     - Allow hidden services to run on IPv6 addresses even when the
17884       IPv6Exit option is not set. Fixes bug 18357; bugfix
17885       on 0.2.4.7-alpha.
17887   o Documentation:
17888     - Add module-level internal documentation for 36 C files that
17889       previously didn't have a high-level overview. Closes ticket #20385.
17891   o Required libraries:
17892     - When building with OpenSSL, Tor now requires version 1.0.1 or
17893       later. OpenSSL 1.0.0 and earlier are no longer supported by the
17894       OpenSSL team, and should not be used. Closes ticket 20303.
17897 Changes in version 0.2.9.3-alpha - 2016-09-23
17898   Tor 0.2.9.3-alpha adds improved support for entities that want to make
17899   high-performance services available through the Tor .onion mechanism
17900   without themselves receiving anonymity as they host those services. It
17901   also tries harder to ensure that all steps on a circuit are using the
17902   strongest crypto possible, strengthens some TLS properties, and
17903   resolves several bugs -- including a pair of crash bugs from the 0.2.8
17904   series. Anybody running an earlier version of 0.2.9.x should upgrade.
17906   o Major bugfixes (crash, also in 0.2.8.8):
17907     - Fix a complicated crash bug that could affect Tor clients
17908       configured to use bridges when replacing a networkstatus consensus
17909       in which one of their bridges was mentioned. OpenBSD users saw
17910       more crashes here, but all platforms were potentially affected.
17911       Fixes bug 20103; bugfix on 0.2.8.2-alpha.
17913   o Major bugfixes (relay, OOM handler, also in 0.2.8.8):
17914     - Fix a timing-dependent assertion failure that could occur when we
17915       tried to flush from a circuit after having freed its cells because
17916       of an out-of-memory condition. Fixes bug 20203; bugfix on
17917       0.2.8.1-alpha. Thanks to "cypherpunks" for help diagnosing
17918       this one.
17920   o Major features (circuit building, security):
17921     - Authorities, relays and clients now require ntor keys in all
17922       descriptors, for all hops (except for rare hidden service protocol
17923       cases), for all circuits, and for all other roles. Part of
17924       ticket 19163.
17925     - Tor authorities, relays, and clients only use ntor, except for
17926       rare cases in the hidden service protocol. Part of ticket 19163.
17928   o Major features (single-hop "hidden" services):
17929     - Add experimental HiddenServiceSingleHopMode and
17930       HiddenServiceNonAnonymousMode options. When both are set to 1,
17931       every hidden service on a Tor instance becomes a non-anonymous
17932       Single Onion Service. Single Onions make one-hop (direct)
17933       connections to their introduction and rendezvous points. One-hop
17934       circuits make Single Onion servers easily locatable, but clients
17935       remain location-anonymous. This is compatible with the existing
17936       hidden service implementation, and works on the current tor
17937       network without any changes to older relays or clients. Implements
17938       proposal 260, completes ticket 17178. Patch by teor and asn.
17940   o Major features (resource management):
17941     - Tor can now notice it is about to run out of sockets, and
17942       preemptively close connections of lower priority. (This feature is
17943       off by default for now, since the current prioritizing method is
17944       yet not mature enough. You can enable it by setting
17945       "DisableOOSCheck 0", but watch out: it might close some sockets
17946       you would rather have it keep.) Closes ticket 18640.
17948   o Major bugfixes (circuit building):
17949     - Hidden service client-to-intro-point and service-to-rendezvous-
17950       point circuits use the TAP key supplied by the protocol, to avoid
17951       epistemic attacks. Fixes bug 19163; bugfix on 0.2.4.18-rc.
17953   o Major bugfixes (compilation, OpenBSD):
17954     - Fix a Libevent-detection bug in our autoconf script that would
17955       prevent Tor from linking successfully on OpenBSD. Patch from
17956       rubiate. Fixes bug 19902; bugfix on 0.2.9.1-alpha.
17958   o Major bugfixes (hidden services):
17959     - Clients now require hidden services to include the TAP keys for
17960       their intro points in the hidden service descriptor. This prevents
17961       an inadvertent upgrade to ntor, which a malicious hidden service
17962       could use to distinguish clients by consensus version. Fixes bug
17963       20012; bugfix on 0.2.4.8-alpha. Patch by teor.
17965   o Minor features (security, TLS):
17966     - Servers no longer support clients that without AES ciphersuites.
17967       (3DES is no longer considered an acceptable cipher.) We believe
17968       that no such Tor clients currently exist, since Tor has required
17969       OpenSSL 0.9.7 or later since 2009. Closes ticket 19998.
17971   o Minor feature (fallback directories):
17972     - Remove 8 fallbacks that are no longer suitable, leaving 81 of the
17973       100 fallbacks originally introduced in Tor 0.2.8.2-alpha in March
17974       2016. Closes ticket 20190; patch by teor.
17976   o Minor features (geoip, also in 0.2.8.8):
17977     - Update geoip and geoip6 to the September 6 2016 Maxmind GeoLite2
17978       Country database.
17980   o Minor feature (port flags):
17981     - Add new flags to the *Port options to finer control over which
17982       requests are allowed. The flags are NoDNSRequest, NoOnionTraffic,
17983       and the synthetic flag OnionTrafficOnly, which is equivalent to
17984       NoDNSRequest, NoIPv4Traffic, and NoIPv6Traffic. Closes enhancement
17985       18693; patch by "teor".
17987   o Minor features (directory authority):
17988     - After voting, if the authorities decide that a relay is not
17989       "Valid", they no longer include it in the consensus at all. Closes
17990       ticket 20002; implements part of proposal 272.
17992   o Minor features (testing):
17993     - Disable memory protections on OpenBSD when performing our unit
17994       tests for memwipe(). The test deliberately invokes undefined
17995       behavior, and the OpenBSD protections interfere with this. Patch
17996       from "rubiate". Closes ticket 20066.
17998   o Minor features (testing, ipv6):
17999     - Add the single-onion and single-onion-ipv6 chutney targets to
18000       "make test-network-all". This requires a recent chutney version
18001       with the single onion network flavours (git c72a652 or later).
18002       Closes ticket 20072; patch by teor.
18003     - Add the hs-ipv6 chutney target to make test-network-all's IPv6
18004       tests. Remove bridges+hs, as it's somewhat redundant. This
18005       requires a recent chutney version that supports IPv6 clients,
18006       relays, and authorities. Closes ticket 20069; patch by teor.
18008   o Minor features (Tor2web):
18009     - Make Tor2web clients respect ReachableAddresses. This feature was
18010       inadvertently enabled in 0.2.8.6, then removed by bugfix 19973 on
18011       0.2.8.7. Implements feature 20034. Patch by teor.
18013   o Minor features (unit tests):
18014     - We've done significant work to make the unit tests run faster.
18015     - Our link-handshake unit tests now check that when invalid
18016       handshakes fail, they fail with the error messages we expected.
18017     - Our unit testing code that captures log messages no longer
18018       prevents them from being written out if the user asked for them
18019       (by passing --debug or --info or or --notice --warn to the "test"
18020       binary). This change prevents us from missing unexpected log
18021       messages simply because we were looking for others. Related to
18022       ticket 19999.
18023     - The unit tests now log all warning messages with the "BUG" flag.
18024       Previously, they only logged errors by default. This change will
18025       help us make our testing code more correct, and make sure that we
18026       only hit this code when we mean to. In the meantime, however,
18027       there will be more warnings in the unit test logs than before.
18028       This is preparatory work for ticket 19999.
18029     - The unit tests now treat any failure of a "tor_assert_nonfatal()"
18030       assertion as a test failure.
18032   o Minor bug fixes (circuits):
18033     - Use the CircuitBuildTimeout option whenever
18034       LearnCircuitBuildTimeout is disabled. Previously, we would respect
18035       the option when a user disabled it, but not when it was disabled
18036       because some other option was set. Fixes bug 20073; bugfix on
18037       0.2.4.12-alpha. Patch by teor.
18039   o Minor bugfixes (allocation):
18040     - Change how we allocate memory for large chunks on buffers, to
18041       avoid a (currently impossible) integer overflow, and to waste less
18042       space when allocating unusually large chunks. Fixes bug 20081;
18043       bugfix on 0.2.0.16-alpha. Issue identified by Guido Vranken.
18044     - Always include orconfig.h before including any other C headers.
18045       Sometimes, it includes macros that affect the behavior of the
18046       standard headers. Fixes bug 19767; bugfix on 0.2.9.1-alpha (the
18047       first version to use AC_USE_SYSTEM_EXTENSIONS).
18048     - Fix a syntax error in the IF_BUG_ONCE__() macro in non-GCC-
18049       compatible compilers. Fixes bug 20141; bugfix on 0.2.9.1-alpha.
18050       Patch from Gisle Vanem.
18051     - Stop trying to build with Clang 4.0's -Wthread-safety warnings.
18052       They apparently require a set of annotations that we aren't
18053       currently using, and they create false positives in our pthreads
18054       wrappers. Fixes bug 20110; bugfix on 0.2.9.1-alpha.
18056   o Minor bugfixes (directory authority):
18057     - Die with a more useful error when the operator forgets to place
18058       the authority_signing_key file into the keys directory. This
18059       avoids an uninformative assert & traceback about having an invalid
18060       key. Fixes bug 20065; bugfix on 0.2.0.1-alpha.
18061     - When allowing private addresses, mark Exits that only exit to
18062       private locations as such. Fixes bug 20064; bugfix
18063       on 0.2.2.9-alpha.
18065   o Minor bugfixes (documentation):
18066     - Document the default PathsNeededToBuildCircuits value that's used
18067       by clients when the directory authorities don't set
18068       min_paths_for_circs_pct. Fixes bug 20117; bugfix on 02c320916e02
18069       in 0.2.4.10-alpha. Patch by teor, reported by Jesse V.
18070     - Fix manual for the User option: it takes a username, not a UID.
18071       Fixes bug 19122; bugfix on 0.0.2pre16 (the first version to have
18072       a manpage!).
18074   o Minor bugfixes (hidden services):
18075     - Stop logging intro point details to the client log on certain
18076       error conditions. Fixed as part of bug 20012; bugfix on
18077       0.2.4.8-alpha. Patch by teor.
18079   o Minor bugfixes (IPv6, testing):
18080     - Check for IPv6 correctly on Linux when running test networks.
18081       Fixes bug 19905; bugfix on 0.2.7.3-rc; patch by teor.
18083   o Minor bugfixes (Linux seccomp2 sandbox):
18084     - Add permission to run the sched_yield() and sigaltstack() system
18085       calls, in order to support versions of Tor compiled with asan or
18086       ubsan code that use these calls. Now "sandbox 1" and
18087       "--enable-expensive-hardening" should be compatible on more
18088       systems. Fixes bug 20063; bugfix on 0.2.5.1-alpha.
18090   o Minor bugfixes (logging):
18091     - When logging a message from the BUG() macro, be explicit about
18092       what we were asserting. Previously we were confusing what we were
18093       asserting with what the bug was. Fixes bug 20093; bugfix
18094       on 0.2.9.1-alpha.
18095     - When we are unable to remove the bw_accounting file, do not warn
18096       if the reason we couldn't remove it was that it didn't exist.
18097       Fixes bug 19964; bugfix on 0.2.5.4-alpha. Patch from 'pastly'.
18099   o Minor bugfixes (option parsing):
18100     - Count unix sockets when counting client listeners (SOCKS, Trans,
18101       NATD, and DNS). This has no user-visible behaviour changes: these
18102       options are set once, and never read. Required for correct
18103       behaviour in ticket 17178. Fixes bug 19677; bugfix on
18104       0.2.6.3-alpha. Patch by teor.
18106   o Minor bugfixes (options):
18107     - Check the consistency of UseEntryGuards and EntryNodes more
18108       reliably. Fixes bug 20074; bugfix on 0.2.4.12-alpha. Patch
18109       by teor.
18110     - Stop changing the configured value of UseEntryGuards on
18111       authorities and Tor2web clients. Fixes bug 20074; bugfix on
18112       commits 51fc6799 in 0.1.1.16-rc and acda1735 in 0.2.4.3-alpha.
18113       Patch by teor.
18115   o Minor bugfixes (Tor2web):
18116     - Prevent Tor2web clients running hidden services, these services
18117       are not anonymous due to the one-hop client paths. Fixes bug
18118       19678. Patch by teor.
18120   o Minor bugfixes (unit tests):
18121     - Fix a shared-random unit test that was failing on big endian
18122       architectures due to internal representation of a integer copied
18123       to a buffer. The test is changed to take a full 32 bytes of data
18124       and use the output of a python script that make the COMMIT and
18125       REVEAL calculation according to the spec. Fixes bug 19977; bugfix
18126       on 0.2.9.1-alpha.
18127     - The tor_tls_server_info_callback unit test no longer crashes when
18128       debug-level logging is turned on. Fixes bug 20041; bugfix
18129       on 0.2.8.1-alpha.
18132 Changes in version 0.2.8.8 - 2016-09-23
18133   Tor 0.2.8.8 fixes two crash bugs present in previous versions of the
18134   0.2.8.x series. Relays running 0.2.8.x should upgrade, as should users
18135   who select public relays as their bridges.
18137   o Major bugfixes (crash):
18138     - Fix a complicated crash bug that could affect Tor clients
18139       configured to use bridges when replacing a networkstatus consensus
18140       in which one of their bridges was mentioned. OpenBSD users saw
18141       more crashes here, but all platforms were potentially affected.
18142       Fixes bug 20103; bugfix on 0.2.8.2-alpha.
18144   o Major bugfixes (relay, OOM handler):
18145     - Fix a timing-dependent assertion failure that could occur when we
18146       tried to flush from a circuit after having freed its cells because
18147       of an out-of-memory condition. Fixes bug 20203; bugfix on
18148       0.2.8.1-alpha. Thanks to "cypherpunks" for help diagnosing
18149       this one.
18151   o Minor feature (fallback directories):
18152     - Remove 8 fallbacks that are no longer suitable, leaving 81 of the
18153       100 fallbacks originally introduced in Tor 0.2.8.2-alpha in March
18154       2016. Closes ticket 20190; patch by teor.
18156   o Minor features (geoip):
18157     - Update geoip and geoip6 to the September 6 2016 Maxmind GeoLite2
18158       Country database.
18161 Changes in version 0.2.9.2-alpha - 2016-08-24
18162   Tor 0.2.9.2-alpha continues development of the 0.2.9 series with
18163   several new features and bugfixes. It also includes an important
18164   authority update and an important bugfix from 0.2.8.7. Everyone who
18165   sets the ReachableAddresses option, and all bridges, are strongly
18166   encouraged to upgrade to 0.2.8.7, or to 0.2.9.2-alpha.
18168   o Directory authority changes (also in 0.2.8.7):
18169     - The "Tonga" bridge authority has been retired; the new bridge
18170       authority is "Bifroest". Closes tickets 19728 and 19690.
18172   o Major bugfixes (client, security, also in 0.2.8.7):
18173     - Only use the ReachableAddresses option to restrict the first hop
18174       in a path. In earlier versions of 0.2.8.x, it would apply to
18175       every hop in the path, with a possible degradation in anonymity
18176       for anyone using an uncommon ReachableAddress setting. Fixes bug
18177       19973; bugfix on 0.2.8.2-alpha.
18179   o Major features (user interface):
18180     - Tor now supports the ability to declare options deprecated, so
18181       that we can recommend that people stop using them. Previously,
18182       this was done in an ad-hoc way. Closes ticket 19820.
18184   o Major bugfixes (directory downloads):
18185     - Avoid resetting download status for consensuses hourly, since we
18186       already have another, smarter retry mechanism. Fixes bug 8625;
18187       bugfix on 0.2.0.9-alpha.
18189   o Minor features (config):
18190     - Warn users when descriptor and port addresses are inconsistent.
18191       Mitigates bug 13953; patch by teor.
18193   o Minor features (geoip):
18194     - Update geoip and geoip6 to the August 2 2016 Maxmind GeoLite2
18195       Country database.
18197   o Minor features (user interface):
18198     - There is a new --list-deprecated-options command-line option to
18199       list all of the deprecated options. Implemented as part of
18200       ticket 19820.
18202   o Minor bugfixes (code style):
18203     - Fix an integer signedness conversion issue in the case conversion
18204       tables. Fixes bug 19168; bugfix on 0.2.1.11-alpha.
18206   o Minor bugfixes (compilation):
18207     - Build correctly on versions of libevent2 without support for
18208       evutil_secure_rng_add_bytes(). Fixes bug 19904; bugfix
18209       on 0.2.5.4-alpha.
18210     - Fix a compilation warning on GCC versions before 4.6. Our
18211       ENABLE_GCC_WARNING macro used the word "warning" as an argument,
18212       when it is also required as an argument to the compiler pragma.
18213       Fixes bug 19901; bugfix on 0.2.9.1-alpha.
18215   o Minor bugfixes (compilation, also in 0.2.8.7):
18216     - Remove an inappropriate "inline" in tortls.c that was causing
18217       warnings on older versions of GCC. Fixes bug 19903; bugfix
18218       on 0.2.8.1-alpha.
18220   o Minor bugfixes (fallback directories, also in 0.2.8.7):
18221     - Avoid logging a NULL string pointer when loading fallback
18222       directory information. Fixes bug 19947; bugfix on 0.2.4.7-alpha
18223       and 0.2.8.1-alpha. Report and patch by "rubiate".
18225   o Minor bugfixes (logging):
18226     - Log a more accurate message when we fail to dump a microdescriptor.
18227       Fixes bug 17758; bugfix on 0.2.2.8-alpha. Patch from Daniel Pinto.
18229   o Minor bugfixes (memory leak):
18230     - Fix a series of slow memory leaks related to parsing torrc files
18231       and options. Fixes bug 19466; bugfix on 0.2.1.6-alpha.
18233   o Deprecated features:
18234     - A number of DNS-cache-related sub-options for client ports are now
18235       deprecated for security reasons, and may be removed in a future
18236       version of Tor. (We believe that client-side DNS caching is a bad
18237       idea for anonymity, and you should not turn it on.) The options
18238       are: CacheDNS, CacheIPv4DNS, CacheIPv6DNS, UseDNSCache,
18239       UseIPv4Cache, and UseIPv6Cache.
18240     - A number of options are deprecated for security reasons, and may
18241       be removed in a future version of Tor. The options are:
18242       AllowDotExit, AllowInvalidNodes, AllowSingleHopCircuits,
18243       AllowSingleHopExits, ClientDNSRejectInternalAddresses,
18244       CloseHSClientCircuitsImmediatelyOnTimeout,
18245       CloseHSServiceRendCircuitsImmediatelyOnTimeout,
18246       ExcludeSingleHopRelays, FastFirstHopPK, TLSECGroup,
18247       UseNTorHandshake, and WarnUnsafeSocks.
18248     - The *ListenAddress options are now deprecated as unnecessary: the
18249       corresponding *Port options should be used instead. These options
18250       may someday be removed. The affected options are:
18251       ControlListenAddress, DNSListenAddress, DirListenAddress,
18252       NATDListenAddress, ORListenAddress, SocksListenAddress,
18253       and TransListenAddress.
18255   o Documentation:
18256     - Correct the IPv6 syntax in our documentation for the
18257       VirtualAddrNetworkIPv6 torrc option. Closes ticket 19743.
18259   o Removed code:
18260     - We no longer include the (dead, deprecated) bufferevent code in
18261       Tor. Closes ticket 19450. Based on a patch from U+039b.
18264 Changes in version 0.2.8.7 - 2016-08-24
18265   Tor 0.2.8.7 fixes an important bug related to the ReachableAddresses
18266   option in 0.2.8.6, and replaces a retiring bridge authority. Everyone
18267   who sets the ReachableAddresses option, and all bridges, are strongly
18268   encouraged to upgrade.
18270   o Directory authority changes:
18271     - The "Tonga" bridge authority has been retired; the new bridge
18272       authority is "Bifroest". Closes tickets 19728 and 19690.
18274   o Major bugfixes (client, security):
18275     - Only use the ReachableAddresses option to restrict the first hop
18276       in a path. In earlier versions of 0.2.8.x, it would apply to
18277       every hop in the path, with a possible degradation in anonymity
18278       for anyone using an uncommon ReachableAddress setting. Fixes bug
18279       19973; bugfix on 0.2.8.2-alpha.
18281   o Minor features (geoip):
18282     - Update geoip and geoip6 to the August 2 2016 Maxmind GeoLite2
18283       Country database.
18285   o Minor bugfixes (compilation):
18286     - Remove an inappropriate "inline" in tortls.c that was causing
18287       warnings on older versions of GCC. Fixes bug 19903; bugfix
18288       on 0.2.8.1-alpha.
18290   o Minor bugfixes (fallback directories):
18291     - Avoid logging a NULL string pointer when loading fallback
18292       directory information. Fixes bug 19947; bugfix on 0.2.4.7-alpha
18293       and 0.2.8.1-alpha. Report and patch by "rubiate".
18296 Changes in version 0.2.9.1-alpha - 2016-08-08
18297   Tor 0.2.9.1-alpha is the first alpha release in the 0.2.9 development
18298   series. It improves our support for hardened builds and compiler
18299   warnings, deploys some critical infrastructure for improvements to
18300   hidden services, includes a new timing backend that we hope to use for
18301   better support for traffic padding, makes it easier for programmers to
18302   log unexpected events, and contains other small improvements to
18303   security, correctness, and performance.
18305   Below are the changes since 0.2.8.6.
18307   o New system requirements:
18308     - Tor now requires Libevent version 2.0.10-stable or later. Older
18309       versions of Libevent have less efficient backends for several
18310       platforms, and lack the DNS code that we use for our server-side
18311       DNS support. This implements ticket 19554.
18312     - Tor now requires zlib version 1.2 or later, for security,
18313       efficiency, and (eventually) gzip support. (Back when we started,
18314       zlib 1.1 and zlib 1.0 were still found in the wild. 1.2 was
18315       released in 2003. We recommend the latest version.)
18317   o Major features (build, hardening):
18318     - Tor now builds with -ftrapv by default on compilers that support
18319       it. This option detects signed integer overflow (which C forbids),
18320       and turns it into a hard-failure. We do not apply this option to
18321       code that needs to run in constant time to avoid side-channels;
18322       instead, we use -fwrapv in that code. Closes ticket 17983.
18323     - When --enable-expensive-hardening is selected, stop applying the
18324       clang/gcc sanitizers to code that needs to run in constant time.
18325       Although we are aware of no introduced side-channels, we are not
18326       able to prove that there are none. Related to ticket 17983.
18328   o Major features (compilation):
18329     - Our big list of extra GCC warnings is now enabled by default when
18330       building with GCC (or with anything like Clang that claims to be
18331       GCC-compatible). To make all warnings into fatal compilation
18332       errors, pass --enable-fatal-warnings to configure. Closes
18333       ticket 19044.
18334     - Use the Autoconf macro AC_USE_SYSTEM_EXTENSIONS to automatically
18335       turn on C and POSIX extensions. (Previously, we attempted to do
18336       this on an ad hoc basis.) Closes ticket 19139.
18338   o Major features (directory authorities, hidden services):
18339     - Directory authorities can now perform the shared randomness
18340       protocol specified by proposal 250. Using this protocol, directory
18341       authorities generate a global fresh random value every day. In the
18342       future, this value will be used by hidden services to select
18343       HSDirs. This release implements the directory authority feature;
18344       the hidden service side will be implemented in the future as part
18345       of proposal 224. Resolves ticket 16943; implements proposal 250.
18347   o Major features (downloading, random exponential backoff):
18348     - When we fail to download an object from a directory service, wait
18349       for an (exponentially increasing) randomized amount of time before
18350       retrying, rather than a fixed interval as we did before. This
18351       prevents a group of Tor instances from becoming too synchronized,
18352       or a single Tor instance from becoming too predictable, in its
18353       download schedule. Closes ticket 15942.
18355   o Major bugfixes (exit policies):
18356     - Avoid disclosing exit outbound bind addresses, configured port
18357       bind addresses, and local interface addresses in relay descriptors
18358       by default under ExitPolicyRejectPrivate. Instead, only reject
18359       these (otherwise unlisted) addresses if
18360       ExitPolicyRejectLocalInterfaces is set. Fixes bug 18456; bugfix on
18361       0.2.7.2-alpha. Patch by teor.
18363   o Major bugfixes (hidden service client):
18364     - Allow Tor clients with appropriate controllers to work with
18365       FetchHidServDescriptors set to 0. Previously, this option also
18366       disabled descriptor cache lookup, thus breaking hidden services
18367       entirely. Fixes bug 18704; bugfix on 0.2.0.20-rc. Patch by "twim".
18369   o Minor features (build, hardening):
18370     - Detect and work around a libclang_rt problem that would prevent
18371       clang from finding __mulodi4() on some 32-bit platforms, and thus
18372       keep -ftrapv from linking on those systems. Closes ticket 19079.
18373     - When building on a system without runtime support for the runtime
18374       hardening options, try to log a useful warning at configuration
18375       time, rather than an incomprehensible warning at link time. If
18376       expensive hardening was requested, this warning becomes an error.
18377       Closes ticket 18895.
18379   o Minor features (code safety):
18380     - In our integer-parsing functions, ensure that maxiumum value we
18381       give is no smaller than the minimum value. Closes ticket 19063;
18382       patch from U+039b.
18384   o Minor features (controller):
18385     - Implement new GETINFO queries for all downloads that use
18386       download_status_t to schedule retries. This allows controllers to
18387       examine the schedule for pending downloads. Closes ticket 19323.
18388     - Allow controllers to configure basic client authorization on
18389       hidden services when they create them with the ADD_ONION control
18390       command. Implements ticket 15588. Patch by "special".
18391     - Fire a STATUS_SERVER controller event whenever the hibernation
18392       status changes between "awake"/"soft"/"hard". Closes ticket 18685.
18394   o Minor features (directory authority):
18395     - Directory authorities now only give the Guard flag to a relay if
18396       they are also giving it the Stable flag. This change allows us to
18397       simplify path selection for clients. It should have minimal effect
18398       in practice, since >99% of Guards already have the Stable flag.
18399       Implements ticket 18624.
18400     - Directory authorities now write their v3-status-votes file out to
18401       disk earlier in the consensus process, so we have a record of the
18402       votes even if we abort the consensus process. Resolves
18403       ticket 19036.
18405   o Minor features (hidden service):
18406     - Stop being so strict about the payload length of "rendezvous1"
18407       cells. We used to be locked in to the "TAP" handshake length, and
18408       now we can handle better handshakes like "ntor". Resolves
18409       ticket 18998.
18411   o Minor features (infrastructure, time):
18412     - Tor now uses the operating system's monotonic timers (where
18413       available) for internal fine-grained timing. Previously we would
18414       look at the system clock, and then attempt to compensate for the
18415       clock running backwards. Closes ticket 18908.
18416     - Tor now includes an improved timer backend, so that we can
18417       efficiently support tens or hundreds of thousands of concurrent
18418       timers, as will be needed for some of our planned anti-traffic-
18419       analysis work. This code is based on William Ahern's "timeout.c"
18420       project, which implements a "tickless hierarchical timing wheel".
18421       Closes ticket 18365.
18423   o Minor features (logging):
18424     - Provide a more useful warning message when configured with an
18425       invalid Nickname. Closes ticket 18300; patch from "icanhasaccount".
18426     - When dumping unparseable router descriptors, optionally store them
18427       in separate files, named by digest, up to a configurable size
18428       limit. You can change the size limit by setting the
18429       MaxUnparseableDescSizeToLog option, and disable this feature by
18430       setting that option to 0. Closes ticket 18322.
18431     - Add a set of macros to check nonfatal assertions, for internal
18432       use. Migrating more of our checks to these should help us avoid
18433       needless crash bugs. Closes ticket 18613.
18435   o Minor features (performance):
18436     - Change the "optimistic data" extension from "off by default" to
18437       "on by default". The default was ordinarily overridden by a
18438       consensus option, but when clients were bootstrapping for the
18439       first time, they would not have a consensus to get the option
18440       from. Changing this default saves a round-trip during startup.
18441       Closes ticket 18815.
18443   o Minor features (relay, usability):
18444     - When the directory authorities refuse a bad relay's descriptor,
18445       encourage the relay operator to contact us. Many relay operators
18446       won't notice this line in their logs, but it's a win if even a few
18447       learn why we don't like what their relay was doing. Resolves
18448       ticket 18760.
18450   o Minor features (testing):
18451     - Let backtrace tests work correctly under AddressSanitizer. Fixes
18452       part of bug 18934; bugfix on 0.2.5.2-alpha.
18453     - Move the test-network.sh script to chutney, and modify tor's test-
18454       network.sh to call the (newer) chutney version when available.
18455       Resolves ticket 19116. Patch by teor.
18456     - Use the lcov convention for marking lines as unreachable, so that
18457       we don't count them when we're generating test coverage data.
18458       Update our coverage tools to understand this convention. Closes
18459       ticket 16792.
18461   o Minor bugfixes (bootstrap):
18462     - Remember the directory we fetched the consensus or previous
18463       certificates from, and use it to fetch future authority
18464       certificates. This change improves bootstrapping performance.
18465       Fixes bug 18963; bugfix on 0.2.8.1-alpha.
18467   o Minor bugfixes (build):
18468     - The test-stem and test-network makefile targets now depend only on
18469       the tor binary that they are testing. Previously, they depended on
18470       "make all". Fixes bug 18240; bugfix on 0.2.8.2-alpha. Based on a
18471       patch from "cypherpunks".
18473   o Minor bugfixes (circuits):
18474     - Make sure extend_info_from_router() is only called on servers.
18475       Fixes bug 19639; bugfix on 0.2.8.1-alpha.
18477   o Minor bugfixes (compilation):
18478     - When building with Clang, use a full set of GCC warnings.
18479       (Previously, we included only a subset, because of the way we
18480       detected them.) Fixes bug 19216; bugfix on 0.2.0.1-alpha.
18482   o Minor bugfixes (directory authority):
18483     - Authorities now sort the "package" lines in their votes, for ease
18484       of debugging. (They are already sorted in consensus documents.)
18485       Fixes bug 18840; bugfix on 0.2.6.3-alpha.
18486     - When parsing a detached signature, make sure we use the length of
18487       the digest algorithm instead of an hardcoded DIGEST256_LEN in
18488       order to avoid comparing bytes out-of-bounds with a smaller digest
18489       length such as SHA1. Fixes bug 19066; bugfix on 0.2.2.6-alpha.
18491   o Minor bugfixes (documentation):
18492     - Document the --passphrase-fd option in the tor manpage. Fixes bug
18493       19504; bugfix on 0.2.7.3-rc.
18494     - Fix the description of the --passphrase-fd option in the
18495       tor-gencert manpage. The option is used to pass the number of a
18496       file descriptor to read the passphrase from, not to read the file
18497       descriptor from. Fixes bug 19505; bugfix on 0.2.0.20-alpha.
18499   o Minor bugfixes (ephemeral hidden service):
18500     - When deleting an ephemeral hidden service, close its intro points
18501       even if they are not completely open. Fixes bug 18604; bugfix
18502       on 0.2.7.1-alpha.
18504   o Minor bugfixes (guard selection):
18505     - Use a single entry guard even if the NumEntryGuards consensus
18506       parameter is not provided. Fixes bug 17688; bugfix
18507       on 0.2.5.6-alpha.
18508     - Don't mark guards as unreachable if connection_connect() fails.
18509       That function fails for local reasons, so it shouldn't reveal
18510       anything about the status of the guard. Fixes bug 14334; bugfix
18511       on 0.2.3.10-alpha.
18513   o Minor bugfixes (hidden service client):
18514     - Increase the minimum number of internal circuits we preemptively
18515       build from 2 to 3, so a circuit is available when a client
18516       connects to another onion service. Fixes bug 13239; bugfix
18517       on 0.1.0.1-rc.
18519   o Minor bugfixes (logging):
18520     - When logging a directory ownership mismatch, log the owning
18521       username correctly. Fixes bug 19578; bugfix on 0.2.2.29-beta.
18523   o Minor bugfixes (memory leaks):
18524     - Fix a small, uncommon memory leak that could occur when reading a
18525       truncated ed25519 key file. Fixes bug 18956; bugfix
18526       on 0.2.6.1-alpha.
18528   o Minor bugfixes (testing):
18529     - Allow clients to retry HSDirs much faster in test networks. Fixes
18530       bug 19702; bugfix on 0.2.7.1-alpha. Patch by teor.
18531     - Disable ASAN's detection of segmentation faults while running
18532       test_bt.sh, so that we can make sure that our own backtrace
18533       generation code works. Fixes another aspect of bug 18934; bugfix
18534       on 0.2.5.2-alpha. Patch from "cypherpunks".
18535     - Fix the test-network-all target on out-of-tree builds by using the
18536       correct path to the test driver script. Fixes bug 19421; bugfix
18537       on 0.2.7.3-rc.
18539   o Minor bugfixes (time):
18540     - Improve overflow checks in tv_udiff and tv_mdiff. Fixes bug 19483;
18541       bugfix on all released tor versions.
18542     - When computing the difference between two times in milliseconds,
18543       we now round to the nearest millisecond correctly. Previously, we
18544       could sometimes round in the wrong direction. Fixes bug 19428;
18545       bugfix on 0.2.2.2-alpha.
18547   o Minor bugfixes (user interface):
18548     - Display a more accurate number of suppressed messages in the log
18549       rate-limiter. Previously, there was a potential integer overflow
18550       in the counter. Now, if the number of messages hits a maximum, the
18551       rate-limiter doesn't count any further. Fixes bug 19435; bugfix
18552       on 0.2.4.11-alpha.
18553     - Fix a typo in the passphrase prompt for the ed25519 identity key.
18554       Fixes bug 19503; bugfix on 0.2.7.2-alpha.
18556   o Code simplification and refactoring:
18557     - Remove redundant declarations of the MIN macro. Closes
18558       ticket 18889.
18559     - Rename tor_dup_addr() to tor_addr_to_str_dup() to avoid confusion.
18560       Closes ticket 18462; patch from "icanhasaccount".
18561     - Split the 600-line directory_handle_command_get function into
18562       separate functions for different URL types. Closes ticket 16698.
18564   o Documentation:
18565     - Fix spelling of "--enable-tor2web-mode" in the manpage. Closes
18566       ticket 19153. Patch from "U+039b".
18568   o Removed features:
18569     - Remove support for "GET /tor/bytes.txt" DirPort request, and
18570       "GETINFO dir-usage" controller request, which were only available
18571       via a compile-time option in Tor anyway. Feature was added in
18572       0.2.2.1-alpha. Resolves ticket 19035.
18573     - There is no longer a compile-time option to disable support for
18574       TransPort. (If you don't want TransPort; just don't use it.) Patch
18575       from "U+039b". Closes ticket 19449.
18577   o Testing:
18578     - Run more workqueue tests as part of "make check". These had
18579       previously been implemented, but you needed to know special
18580       command-line options to enable them.
18581     - We now have unit tests for our code to reject zlib "compression
18582       bombs". (Fortunately, the code works fine.)
18585 Changes in version 0.2.8.6 - 2016-08-02
18587   Tor 0.2.8.6 is the first stable version of the Tor 0.2.8 series.
18589   The Tor 0.2.8 series improves client bootstrapping performance,
18590   completes the authority-side implementation of improved identity
18591   keys for relays, and includes numerous bugfixes and performance
18592   improvements throughout the program. This release continues to
18593   improve the coverage of Tor's test suite.  For a full list of
18594   changes since Tor 0.2.7, see the ReleaseNotes file.
18596   Changes since 0.2.8.5-rc:
18598   o Minor features (geoip):
18599     - Update geoip and geoip6 to the July 6 2016 Maxmind GeoLite2
18600       Country database.
18602   o Minor bugfixes (compilation):
18603     - Fix a compilation warning in the unit tests on systems where char
18604       is signed. Fixes bug 19682; bugfix on 0.2.8.1-alpha.
18606   o Minor bugfixes (fallback directories):
18607     - Remove 1 fallback that was on the hardcoded list, then opted-out,
18608       leaving 89 of the 100 fallbacks originally introduced in Tor
18609       0.2.8.2-alpha in March 2016. Closes ticket 19782; patch by teor.
18611   o Minor bugfixes (Linux seccomp2 sandbox):
18612     - Allow more syscalls when running with "Sandbox 1" enabled:
18613       sysinfo, getsockopt(SO_SNDBUF), and setsockopt(SO_SNDBUFFORCE). On
18614       some systems, these are required for Tor to start. Fixes bug
18615       18397; bugfix on 0.2.5.1-alpha. Patch from Daniel Pinto.
18616     - Allow IPPROTO_UDP datagram sockets when running with "Sandbox 1",
18617       so that get_interface_address6_via_udp_socket_hack() can work.
18618       Fixes bug 19660; bugfix on 0.2.5.1-alpha.
18621 Changes in version 0.2.8.5-rc - 2016-07-07
18622   Tor 0.2.8.5-rc is the second release candidate in the Tor 0.2.8
18623   series. If we find no new bugs or regressions here, the first stable
18624   0.2.8 release will be identical to it. It has a few small bugfixes
18625   against previous versions.
18627   o Directory authority changes:
18628     - Urras is no longer a directory authority. Closes ticket 19271.
18630   o Major bugfixes (heartbeat):
18631     - Fix a regression that would crash Tor when the periodic
18632       "heartbeat" log messages were disabled. Fixes bug 19454; bugfix on
18633       0.2.8.1-alpha. Reported by "kubaku".
18635   o Minor features (build):
18636     - Tor now again builds with the recent OpenSSL 1.1 development
18637       branch (tested against 1.1.0-pre6-dev). Closes ticket 19499.
18638     - When building manual pages, set the timezone to "UTC", so that the
18639       output is reproducible. Fixes bug 19558; bugfix on 0.2.2.9-alpha.
18640       Patch from intrigeri.
18642   o Minor bugfixes (fallback directory selection):
18643     - Avoid errors during fallback selection if there are no eligible
18644       fallbacks. Fixes bug 19480; bugfix on 0.2.8.3-alpha. Patch
18645       by teor.
18647   o Minor bugfixes (IPv6, microdescriptors):
18648     - Don't check node addresses when we only have a routerstatus. This
18649       allows IPv6-only clients to bootstrap by fetching microdescriptors
18650       from fallback directory mirrors. (The microdescriptor consensus
18651       has no IPv6 addresses in it.) Fixes bug 19608; bugfix
18652       on 0.2.8.2-alpha.
18654   o Minor bugfixes (logging):
18655     - Reduce pointlessly verbose log messages when directory servers
18656       can't be found. Fixes bug 18849; bugfix on 0.2.8.3-alpha and
18657       0.2.8.1-alpha. Patch by teor.
18658     - When a fallback directory changes its fingerprint from the hard-
18659       coded fingerprint, log a less severe, more explanatory log
18660       message. Fixes bug 18812; bugfix on 0.2.8.1-alpha. Patch by teor.
18662   o Minor bugfixes (Linux seccomp2 sandboxing):
18663     - Allow statistics to be written to disk when "Sandbox 1" is
18664       enabled. Fixes bugs 19556 and 19957; bugfix on 0.2.5.1-alpha and
18665       0.2.6.1-alpha respectively.
18667   o Minor bugfixes (user interface):
18668     - Remove a warning message "Service [scrubbed] not found after
18669       descriptor upload". This message appears when one uses HSPOST
18670       control command to upload a service descriptor. Since there is
18671       only a descriptor and no service, showing this message is
18672       pointless and confusing. Fixes bug 19464; bugfix on 0.2.7.2-alpha.
18674   o Fallback directory list:
18675     - Add a comment to the generated fallback directory list that
18676       explains how to comment out unsuitable fallbacks in a way that's
18677       compatible with the stem fallback parser.
18678     - Update fallback whitelist and blacklist based on relay operator
18679       emails. Blacklist unsuitable (non-working, over-volatile)
18680       fallbacks. Resolves ticket 19071. Patch by teor.
18681     - Remove 10 unsuitable fallbacks, leaving 90 of the 100 fallbacks
18682       originally introduced in Tor 0.2.8.2-alpha in March 2016. Closes
18683       ticket 19071; patch by teor.
18686 Changes in version 0.2.8.4-rc - 2016-06-15
18687   Tor 0.2.8.4-rc is the first release candidate in the Tor 0.2.8 series.
18688   If we find no new bugs or regressions here, the first stable 0.2.8
18689   release will be identical to it. It has a few small bugfixes against
18690   previous versions.
18692   o Major bugfixes (user interface):
18693     - Correctly give a warning in the cases where a relay is specified
18694       by nickname, and one such relay is found, but it is not officially
18695       Named. Fixes bug 19203; bugfix on 0.2.3.1-alpha.
18697   o Minor features (build):
18698     - Tor now builds once again with the recent OpenSSL 1.1 development
18699       branch (tested against 1.1.0-pre5 and 1.1.0-pre6-dev).
18701   o Minor features (geoip):
18702     - Update geoip and geoip6 to the June 7 2016 Maxmind GeoLite2
18703       Country database.
18705   o Minor bugfixes (compilation):
18706     - Cause the unit tests to compile correctly on mingw64 versions that
18707       lack sscanf. Fixes bug 19213; bugfix on 0.2.7.1-alpha.
18709   o Minor bugfixes (downloading):
18710     - Predict more correctly whether we'll be downloading over HTTP when
18711       we determine the maximum length of a URL. This should avoid a
18712       "BUG" warning about the Squid HTTP proxy and its URL limits. Fixes
18713       bug 19191.
18716 Changes in version 0.2.8.3-alpha - 2016-05-26
18717   Tor 0.2.8.3-alpha resolves several bugs, most of them introduced over
18718   the course of the 0.2.8 development cycle. It improves the behavior of
18719   directory clients, fixes several crash bugs, fixes a gap in compiler
18720   hardening, and allows the full integration test suite to run on
18721   more platforms.
18723   o Major bugfixes (security, client, DNS proxy):
18724     - Stop a crash that could occur when a client running with DNSPort
18725       received a query with multiple address types, and the first
18726       address type was not supported. Found and fixed by Scott Dial.
18727       Fixes bug 18710; bugfix on 0.2.5.4-alpha.
18729   o Major bugfixes (security, compilation):
18730     - Correctly detect compiler flags on systems where _FORTIFY_SOURCE
18731       is predefined. Previously, our use of -D_FORTIFY_SOURCE would
18732       cause a compiler warning, thereby making other checks fail, and
18733       needlessly disabling compiler-hardening support. Fixes one case of
18734       bug 18841; bugfix on 0.2.3.17-beta. Patch from "trudokal".
18736   o Major bugfixes (security, directory authorities):
18737     - Fix a crash and out-of-bounds write during authority voting, when
18738       the list of relays includes duplicate ed25519 identity keys. Fixes
18739       bug 19032; bugfix on 0.2.8.2-alpha.
18741   o Major bugfixes (client, bootstrapping):
18742     - Check if bootstrap consensus downloads are still needed when the
18743       linked connection attaches. This prevents tor making unnecessary
18744       begindir-style connections, which are the only directory
18745       connections tor clients make since the fix for 18483 was merged.
18746     - Fix some edge cases where consensus download connections may not
18747       have been closed, even though they were not needed. Related to fix
18748       for 18809.
18749     - Make relays retry consensus downloads the correct number of times,
18750       rather than the more aggressive client retry count. Fixes part of
18751       ticket 18809.
18752     - Stop downloading consensuses when we have a consensus, even if we
18753       don't have all the certificates for it yet. Fixes bug 18809;
18754       bugfix on 0.2.8.1-alpha. Patches by arma and teor.
18756   o Major bugfixes (directory mirrors):
18757     - Decide whether to advertise begindir support in the the same way
18758       we decide whether to advertise our DirPort. Allowing these
18759       decisions to become out-of-sync led to surprising behavior like
18760       advertising begindir support when hibernation made us not
18761       advertise a DirPort. Resolves bug 18616; bugfix on 0.2.8.1-alpha.
18762       Patch by teor.
18764   o Major bugfixes (IPv6 bridges, client):
18765     - Actually use IPv6 addresses when selecting directory addresses for
18766       IPv6 bridges. Fixes bug 18921; bugfix on 0.2.8.1-alpha. Patch
18767       by "teor".
18769   o Major bugfixes (key management):
18770     - If OpenSSL fails to generate an RSA key, do not retain a dangling
18771       pointer to the previous (uninitialized) key value. The impact here
18772       should be limited to a difficult-to-trigger crash, if OpenSSL is
18773       running an engine that makes key generation failures possible, or
18774       if OpenSSL runs out of memory. Fixes bug 19152; bugfix on
18775       0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and
18776       Baishakhi Ray.
18778   o Major bugfixes (testing):
18779     - Fix a bug that would block 'make test-network-all' on systems where
18780       IPv6 packets were lost. Fixes bug 19008; bugfix on 0.2.7.3-rc.
18781     - Avoid "WSANOTINITIALISED" warnings in the unit tests. Fixes bug 18668;
18782       bugfix on 0.2.8.1-alpha.
18784   o Minor features (clients):
18785     - Make clients, onion services, and bridge relays always use an
18786       encrypted begindir connection for directory requests. Resolves
18787       ticket 18483. Patch by "teor".
18789   o Minor features (fallback directory mirrors):
18790     - Give each fallback the same weight for client selection; restrict
18791       fallbacks to one per operator; report fallback directory detail
18792       changes when rebuilding list; add new fallback directory mirrors
18793       to the whitelist; and many other minor simplifications and fixes.
18794       Closes tasks 17905, 18749, bug 18689, and fixes part of bug 18812 on
18795       0.2.8.1-alpha; patch by "teor".
18796     - Replace the 21 fallbacks generated in January 2016 and included in
18797       Tor 0.2.8.1-alpha, with a list of 100 fallbacks generated in March
18798       2016. Closes task 17158; patch by "teor".
18800   o Minor features (geoip):
18801     - Update geoip and geoip6 to the May 4 2016 Maxmind GeoLite2
18802       Country database.
18804   o Minor bugfixes (assert, portability):
18805     - Fix an assertion failure in memarea.c on systems where "long" is
18806       shorter than the size of a pointer. Fixes bug 18716; bugfix
18807       on 0.2.1.1-alpha.
18809   o Minor bugfixes (bootstrap):
18810     - Consistently use the consensus download schedule for authority
18811       certificates. Fixes bug 18816; bugfix on 0.2.4.13-alpha.
18813   o Minor bugfixes (build):
18814     - Remove a pair of redundant AM_CONDITIONAL declarations from
18815       configure.ac. Fixes one final case of bug 17744; bugfix
18816       on 0.2.8.2-alpha.
18817     - Resolve warnings when building on systems that are concerned with
18818       signed char. Fixes bug 18728; bugfix on 0.2.7.2-alpha
18819       and 0.2.6.1-alpha.
18820     - When libscrypt.h is found, but no libscrypt library can be linked,
18821       treat libscrypt as absent. Fixes bug 19161; bugfix
18822       on 0.2.6.1-alpha.
18824   o Minor bugfixes (client):
18825     - Turn all TestingClientBootstrap* into non-testing torrc options.
18826       This changes simply renames them by removing "Testing" in front of
18827       them and they do not require TestingTorNetwork to be enabled
18828       anymore. Fixes bug 18481; bugfix on 0.2.8.1-alpha.
18829     - Make directory node selection more reliable, mainly for IPv6-only
18830       clients and clients with few reachable addresses. Fixes bug 18929;
18831       bugfix on 0.2.8.1-alpha. Patch by "teor".
18833   o Minor bugfixes (controller, microdescriptors):
18834     - Make GETINFO dir/status-vote/current/consensus conform to the
18835       control specification by returning "551 Could not open cached
18836       consensus..." when not caching consensuses. Fixes bug 18920;
18837       bugfix on 0.2.2.6-alpha.
18839   o Minor bugfixes (crypto, portability):
18840     - The SHA3 and SHAKE routines now produce the correct output on Big
18841       Endian systems. No code calls either algorithm yet, so this is
18842       primarily a build fix. Fixes bug 18943; bugfix on 0.2.8.1-alpha.
18843     - Tor now builds again with the recent OpenSSL 1.1 development
18844       branch (tested against 1.1.0-pre4 and 1.1.0-pre5-dev). Closes
18845       ticket 18286.
18847   o Minor bugfixes (directories):
18848     - When fetching extrainfo documents, compare their SHA256 digests
18849       and Ed25519 signing key certificates with the routerinfo that led
18850       us to fetch them, rather than with the most recent routerinfo.
18851       Otherwise we generate many spurious warnings about mismatches.
18852       Fixes bug 17150; bugfix on 0.2.7.2-alpha.
18854   o Minor bugfixes (logging):
18855     - When we can't generate a signing key because OfflineMasterKey is
18856       set, do not imply that we should have been able to load it. Fixes
18857       bug 18133; bugfix on 0.2.7.2-alpha.
18858     - Stop periodic_event_dispatch() from blasting twelve lines per
18859       second at loglevel debug. Fixes bug 18729; fix on 0.2.8.1-alpha.
18860     - When rejecting a misformed INTRODUCE2 cell, only log at
18861       PROTOCOL_WARN severity. Fixes bug 18761; bugfix on 0.2.8.2-alpha.
18863   o Minor bugfixes (pluggable transports):
18864     - Avoid reporting a spurious error when we decide that we don't need
18865       to terminate a pluggable transport because it has already exited.
18866       Fixes bug 18686; bugfix on 0.2.5.5-alpha.
18868   o Minor bugfixes (pointer arithmetic):
18869     - Fix a bug in memarea_alloc() that could have resulted in remote
18870       heap write access, if Tor had ever passed an unchecked size to
18871       memarea_alloc(). Fortunately, all the sizes we pass to
18872       memarea_alloc() are pre-checked to be less than 128 kilobytes.
18873       Fixes bug 19150; bugfix on 0.2.1.1-alpha. Bug found by
18874       Guido Vranken.
18876   o Minor bugfixes (relays):
18877     - Consider more config options when relays decide whether to
18878       regenerate their descriptor. Fixes more of bug 12538; bugfix
18879       on 0.2.8.1-alpha.
18880     - Resolve some edge cases where we might launch an ORPort
18881       reachability check even when DisableNetwork is set. Noticed while
18882       fixing bug 18616; bugfix on 0.2.3.9-alpha.
18884   o Minor bugfixes (statistics):
18885     - We now include consensus downloads via IPv6 in our directory-
18886       request statistics. Fixes bug 18460; bugfix on 0.2.3.14-alpha.
18888   o Minor bugfixes (testing):
18889     - Allow directories in small networks to bootstrap by skipping
18890       DirPort checks when the consensus has no exits. Fixes bug 19003;
18891       bugfix on 0.2.8.1-alpha. Patch by teor.
18892     - Fix a small memory leak that would occur when the
18893       TestingEnableCellStatsEvent option was turned on. Fixes bug 18673;
18894       bugfix on 0.2.5.2-alpha.
18896   o Minor bugfixes (time handling):
18897     - When correcting a corrupt 'struct tm' value, fill in the tm_wday
18898       field. Otherwise, our unit tests crash on Windows. Fixes bug
18899       18977; bugfix on 0.2.2.25-alpha.
18901   o Documentation:
18902     - Document the contents of the 'datadir/keys' subdirectory in the
18903       manual page. Closes ticket 17621.
18904     - Stop recommending use of nicknames to identify relays in our
18905       MapAddress documentation. Closes ticket 18312.
18908 Changes in version 0.2.8.2-alpha - 2016-03-28
18909   Tor 0.2.8.2-alpha is the second alpha in its series. It fixes numerous
18910   bugs in earlier versions of Tor, including some that prevented
18911   authorities using Tor 0.2.7.x from running correctly. IPv6 and
18912   directory support should also be much improved.
18914   o New system requirements:
18915     - Tor no longer supports versions of OpenSSL with a broken
18916       implementation of counter mode. (This bug was present in OpenSSL
18917       1.0.0, and was fixed in OpenSSL 1.0.0a.) Tor still detects, but no
18918       longer runs with, these versions.
18919     - Tor no longer attempts to support platforms where the "time_t"
18920       type is unsigned. (To the best of our knowledge, only OpenVMS does
18921       this, and Tor has never actually built on OpenVMS.) Closes
18922       ticket 18184.
18923     - Tor now uses Autoconf version 2.63 or later, and Automake 1.11 or
18924       later (released in 2008 and 2009 respectively). If you are
18925       building Tor from the git repository instead of from the source
18926       distribution, and your tools are older than this, you will need to
18927       upgrade. Closes ticket 17732.
18929   o Major bugfixes (security, pointers):
18930     - Avoid a difficult-to-trigger heap corruption attack when extending
18931       a smartlist to contain over 16GB of pointers. Fixes bug 18162;
18932       bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely.
18933       Reported by Guido Vranken.
18935   o Major bugfixes (bridges, pluggable transports):
18936     - Modify the check for OR connections to private addresses. Allow
18937       bridges on private addresses, including pluggable transports that
18938       ignore the (potentially private) address in the bridge line. Fixes
18939       bug 18517; bugfix on 0.2.8.1-alpha. Reported by gk, patch by teor.
18941   o Major bugfixes (compilation):
18942     - Repair hardened builds under the clang compiler. Previously, our
18943       use of _FORTIFY_SOURCE would conflict with clang's address
18944       sanitizer. Fixes bug 14821; bugfix on 0.2.5.4-alpha.
18946   o Major bugfixes (crash on shutdown):
18947     - Correctly handle detaching circuits from muxes when shutting down.
18948       Fixes bug 18116; bugfix on 0.2.8.1-alpha.
18949     - Fix an assert-on-exit bug related to counting memory usage in
18950       rephist.c. Fixes bug 18651; bugfix on 0.2.8.1-alpha.
18952   o Major bugfixes (crash on startup):
18953     - Fix a segfault during startup: If a Unix domain socket was
18954       configured as listener (such as a ControlSocket or a SocksPort
18955       "unix:" socket), and tor was started as root but not configured to
18956       switch to another user, tor would segfault while trying to string
18957       compare a NULL value. Fixes bug 18261; bugfix on 0.2.8.1-alpha.
18958       Patch by weasel.
18960   o Major bugfixes (dns proxy mode, crash):
18961     - Avoid crashing when running as a DNS proxy. Fixes bug 16248;
18962       bugfix on 0.2.0.1-alpha. Patch from "cypherpunks".
18964   o Major bugfixes (relays, bridge clients):
18965     - Ensure relays always allow IPv4 OR and Dir connections. Ensure
18966       bridge clients use the address configured in the bridge line.
18967       Fixes bug 18348; bugfix on 0.2.8.1-alpha. Reported by sysrqb,
18968       patch by teor.
18970   o Major bugfixes (voting):
18971     - Actually enable support for authorities to match routers by their
18972       Ed25519 identities. Previously, the code had been written, but
18973       some debugging code that had accidentally been left in the
18974       codebase made it stay turned off. Fixes bug 17702; bugfix
18975       on 0.2.7.2-alpha.
18976     - When collating votes by Ed25519 identities, authorities now
18977       include a "NoEdConsensus" flag if the ed25519 value (or lack
18978       thereof) for a server does not reflect the majority consensus.
18979       Related to bug 17668; bugfix on 0.2.7.2-alpha.
18980     - When generating a vote with keypinning disabled, never include two
18981       entries for the same ed25519 identity. This bug was causing
18982       authorities to generate votes that they could not parse when a
18983       router violated key pinning by changing its RSA identity but
18984       keeping its Ed25519 identity. Fixes bug 17668; fixes part of bug
18985       18318. Bugfix on 0.2.7.2-alpha.
18987   o Minor features (security, win32):
18988     - Set SO_EXCLUSIVEADDRUSE on Win32 to avoid a local port-stealing
18989       attack. Fixes bug 18123; bugfix on all tor versions. Patch
18990       by teor.
18992   o Minor features (bug-resistance):
18993     - Make Tor survive errors involving connections without a
18994       corresponding event object. Previously we'd fail with an
18995       assertion; now we produce a log message. Related to bug 16248.
18997   o Minor features (build):
18998     - Detect systems with FreeBSD-derived kernels (such as GNU/kFreeBSD)
18999       as having possible IPFW support. Closes ticket 18448. Patch from
19000       Steven Chamberlain.
19002   o Minor features (code hardening):
19003     - Use tor_snprintf() and tor_vsnprintf() even in external and low-
19004       level code, to harden against accidental failures to NUL-
19005       terminate. Part of ticket 17852. Patch from jsturgix. Found
19006       with Flawfinder.
19008   o Minor features (crypto):
19009     - Validate the hard-coded Diffie-Hellman parameters and ensure that
19010       p is a safe prime, and g is a suitable generator. Closes
19011       ticket 18221.
19013   o Minor features (geoip):
19014     - Update geoip and geoip6 to the March 3 2016 Maxmind GeoLite2
19015       Country database.
19017   o Minor features (hidden service directory):
19018     - Streamline relay-side hsdir handling: when relays consider whether
19019       to accept an uploaded hidden service descriptor, they no longer
19020       check whether they are one of the relays in the network that is
19021       "supposed" to handle that descriptor. Implements ticket 18332.
19023   o Minor features (IPv6):
19024     - Add ClientPreferIPv6DirPort, which is set to 0 by default. If set
19025       to 1, tor prefers IPv6 directory addresses.
19026     - Add ClientUseIPv4, which is set to 1 by default. If set to 0, tor
19027       avoids using IPv4 for client OR and directory connections.
19028     - Try harder to obey the IP version restrictions "ClientUseIPv4 0",
19029       "ClientUseIPv6 0", "ClientPreferIPv6ORPort", and
19030       "ClientPreferIPv6DirPort". Closes ticket 17840; patch by teor.
19032   o Minor features (linux seccomp2 sandbox):
19033     - Reject attempts to change our Address with "Sandbox 1" enabled.
19034       Changing Address with Sandbox turned on would never actually work,
19035       but previously it would fail in strange and confusing ways. Found
19036       while fixing 18548.
19038   o Minor features (robustness):
19039     - Exit immediately with an error message if the code attempts to use
19040       Libevent without having initialized it. This should resolve some
19041       frequently-made mistakes in our unit tests. Closes ticket 18241.
19043   o Minor features (unix domain sockets):
19044     - Add a new per-socket option, RelaxDirModeCheck, to allow creating
19045       Unix domain sockets without checking the permissions on the parent
19046       directory. (Tor checks permissions by default because some
19047       operating systems only check permissions on the parent directory.
19048       However, some operating systems do look at permissions on the
19049       socket, and tor's default check is unneeded.) Closes ticket 18458.
19050       Patch by weasel.
19052   o Minor bugfixes (exit policies, security):
19053     - Refresh an exit relay's exit policy when interface addresses
19054       change. Previously, tor only refreshed the exit policy when the
19055       configured external address changed. Fixes bug 18208; bugfix on
19056       0.2.7.3-rc. Patch by teor.
19058   o Minor bugfixes (security, hidden services):
19059     - Prevent hidden services connecting to client-supplied rendezvous
19060       addresses that are reserved as internal or multicast. Fixes bug
19061       8976; bugfix on 0.2.3.21-rc. Patch by dgoulet and teor.
19063   o Minor bugfixes (build):
19064     - Do not link the unit tests against both the testing and non-
19065       testing versions of the static libraries. Fixes bug 18490; bugfix
19066       on 0.2.7.1-alpha.
19067     - Avoid spurious failures from configure files related to calling
19068       exit(0) in TOR_SEARCH_LIBRARY. Fixes bug 18626; bugfix on
19069       0.2.0.1-alpha. Patch from "cypherpunks".
19070     - Silence spurious clang-scan warnings in the ed25519_donna code by
19071       explicitly initializing some objects. Fixes bug 18384; bugfix on
19072       0.2.7.2-alpha. Patch by teor.
19074   o Minor bugfixes (client, bootstrap):
19075     - Count receipt of new microdescriptors as progress towards
19076       bootstrapping. Previously, with EntryNodes set, Tor might not
19077       successfully repopulate the guard set on bootstrapping. Fixes bug
19078       16825; bugfix on 0.2.3.1-alpha.
19080   o Minor bugfixes (code correctness):
19081     - Update to the latest version of Trunnel, which tries harder to
19082       avoid generating code that can invoke memcpy(p,NULL,0). Bug found
19083       by clang address sanitizer. Fixes bug 18373; bugfix
19084       on 0.2.7.2-alpha.
19086   o Minor bugfixes (configuration):
19087     - Fix a tiny memory leak when parsing a port configuration ending in
19088       ":auto". Fixes bug 18374; bugfix on 0.2.3.3-alpha.
19090   o Minor bugfixes (containers):
19091     - If we somehow attempt to construct a heap with more than
19092       1073741822 elements, avoid an integer overflow when maintaining
19093       the heap property. Fixes bug 18296; bugfix on 0.1.2.1-alpha.
19095   o Minor bugfixes (correctness):
19096     - Fix a bad memory handling bug that would occur if we had queued a
19097       cell on a channel's incoming queue. Fortunately, we can't actually
19098       queue a cell like that as our code is constructed today, but it's
19099       best to avoid this kind of error, even if there isn't any code
19100       that triggers it today. Fixes bug 18570; bugfix on 0.2.4.4-alpha.
19102   o Minor bugfixes (directory):
19103     - When generating a URL for a directory server on an IPv6 address,
19104       wrap the IPv6 address in square brackets. Fixes bug 18051; bugfix
19105       on 0.2.3.9-alpha. Patch from Malek.
19107   o Minor bugfixes (fallback directory mirrors):
19108     - When requesting extrainfo descriptors from a trusted directory
19109       server, check whether it is an authority or a fallback directory
19110       which supports extrainfo descriptors. Fixes bug 18489; bugfix on
19111       0.2.4.7-alpha. Reported by atagar, patch by teor.
19113   o Minor bugfixes (hidden service, client):
19114     - Handle the case where the user makes several fast consecutive
19115       requests to the same .onion address. Previously, the first six
19116       requests would each trigger a descriptor fetch, each picking a
19117       directory (there are 6 overall) and the seventh one would fail
19118       because no directories were left, thereby triggering a close on
19119       all current directory connections asking for the hidden service.
19120       The solution here is to not close the connections if we have
19121       pending directory fetches. Fixes bug 15937; bugfix
19122       on 0.2.7.1-alpha.
19124   o Minor bugfixes (hidden service, control port):
19125     - Add the onion address to the HS_DESC event for the UPLOADED action
19126       both on success or failure. It was previously hardcoded with
19127       UNKNOWN. Fixes bug 16023; bugfix on 0.2.7.2-alpha.
19129   o Minor bugfixes (hidden service, directory):
19130     - Bridges now refuse "rendezvous2" (hidden service descriptor)
19131       publish attempts. Suggested by ticket 18332.
19133   o Minor bugfixes (linux seccomp2 sandbox):
19134     - Allow the setrlimit syscall, and the prlimit and prlimit64
19135       syscalls, which some libc implementations use under the hood.
19136       Fixes bug 15221; bugfix on 0.2.5.1-alpha.
19137     - Avoid a 10-second delay when starting as a client with "Sandbox 1"
19138       enabled and no DNS resolvers configured. This should help TAILS
19139       start up faster. Fixes bug 18548; bugfix on 0.2.5.1-alpha.
19140     - Fix the sandbox's interoperability with unix domain sockets under
19141       setuid. Fixes bug 18253; bugfix on 0.2.8.1-alpha.
19143   o Minor bugfixes (logging):
19144     - When logging information about an unparsable networkstatus vote or
19145       consensus, do not say "vote" when we mean consensus. Fixes bug
19146       18368; bugfix on 0.2.0.8-alpha.
19147     - Scrub service name in "unrecognized service ID" log messages.
19148       Fixes bug 18600; bugfix on 0.2.4.11-alpha.
19149     - Downgrade logs and backtraces about IP versions to info-level.
19150       Only log backtraces once each time tor runs. Assists in diagnosing
19151       bug 18351; bugfix on 0.2.8.1-alpha. Reported by sysrqb and
19152       Christian, patch by teor.
19154   o Minor bugfixes (memory safety):
19155     - Avoid freeing an uninitialized pointer when opening a socket fails
19156       in get_interface_addresses_ioctl(). Fixes bug 18454; bugfix on
19157       0.2.3.11-alpha. Reported by toralf and "cypherpunks", patch
19158       by teor.
19159     - Correctly duplicate addresses in get_interface_address6_list().
19160       Fixes bug 18454; bugfix on 0.2.8.1-alpha. Reported by toralf,
19161       patch by "cypherpunks".
19162     - Fix a memory leak in tor-gencert. Fixes part of bug 18672; bugfix
19163       on 0.2.0.1-alpha.
19164     - Fix a memory leak in "tor --list-fingerprint". Fixes part of bug
19165       18672; bugfix on 0.2.5.1-alpha.
19167   o Minor bugfixes (private directory):
19168     - Prevent a race condition when creating private directories. Fixes
19169       part of bug 17852; bugfix on 0.0.2pre13. Part of ticket 17852.
19170       Patch from jsturgix. Found with Flawfinder.
19172   o Minor bugfixes (test networks, IPv6):
19173     - Allow internal IPv6 addresses in descriptors in test networks.
19174       Fixes bug 17153; bugfix on 0.2.3.16-alpha. Patch by teor, reported
19175       by karsten.
19177   o Minor bugfixes (testing):
19178     - We no longer disable assertions in the unit tests when coverage is
19179       enabled. Instead, we require you to say --disable-asserts-in-tests
19180       to the configure script if you need assertions disabled in the
19181       unit tests (for example, if you want to perform branch coverage).
19182       Fixes bug 18242; bugfix on 0.2.7.1-alpha.
19184   o Minor bugfixes (time parsing):
19185     - Avoid overflow in tor_timegm when parsing dates in and after 2038
19186       on platforms with 32-bit time_t. Fixes bug 18479; bugfix on
19187       0.0.2pre14. Patch by teor.
19189   o Minor bugfixes (tor-gencert):
19190     - Correctly handle the case where an authority operator enters a
19191       passphrase but sends an EOF before sending a newline. Fixes bug
19192       17443; bugfix on 0.2.0.20-rc. Found by junglefowl.
19194   o Code simplification and refactoring:
19195     - Quote all the string interpolations in configure.ac -- even those
19196       which we are pretty sure can't contain spaces. Closes ticket
19197       17744. Patch from zerosion.
19198     - Remove specialized code for non-inplace AES_CTR. 99% of our AES is
19199       inplace, so there's no need to have a separate implementation for
19200       the non-inplace code. Closes ticket 18258. Patch from Malek.
19201     - Simplify return types for some crypto functions that can't
19202       actually fail. Patch from Hassan Alsibyani. Closes ticket 18259.
19204   o Documentation:
19205     - Change build messages to refer to "Fedora" instead of "Fedora
19206       Core", and "dnf" instead of "yum". Closes tickets 18459 and 18426.
19207       Patches from "icanhasaccount" and "cypherpunks".
19209   o Removed features:
19210     - We no longer maintain an internal freelist in memarea.c.
19211       Allocators should be good enough to make this code unnecessary,
19212       and it's doubtful that it ever had any performance benefit.
19214   o Testing:
19215     - Fix several warnings from clang's address sanitizer produced in
19216       the unit tests.
19217     - Treat backtrace test failures as expected on FreeBSD until we
19218       solve bug 17808. Closes ticket 18204.
19221 Changes in version 0.2.8.1-alpha - 2016-02-04
19222   Tor 0.2.8.1-alpha is the first alpha release in its series. It
19223   includes numerous small features and bugfixes against previous Tor
19224   versions, and numerous small infrastructure improvements. The most
19225   notable features are a set of improvements to the directory subsystem.
19227   o Major features (security, Linux):
19228     - When Tor starts as root on Linux and is told to switch user ID, it
19229       can now retain the capability to bind to low ports. By default,
19230       Tor will do this only when it's switching user ID and some low
19231       ports have been configured. You can change this behavior with the
19232       new option KeepBindCapabilities. Closes ticket 8195.
19234   o Major features (directory system):
19235     - When bootstrapping multiple consensus downloads at a time, use the
19236       first one that starts downloading, and close the rest. This
19237       reduces failures when authorities or fallback directories are slow
19238       or down. Together with the code for feature 15775, this feature
19239       should reduces failures due to fallback churn. Implements ticket
19240       4483. Patch by "teor". Implements IPv4 portions of proposal 210 by
19241       "mikeperry" and "teor".
19242     - Include a trial list of 21 default fallback directories, generated
19243       in January 2016, based on an opt-in survey of suitable relays.
19244       Doing this should make clients bootstrap more quickly and reliably,
19245       and reduce the load on the directory authorities. Closes ticket
19246       15775. Patch by "teor".
19247       Candidates identified using an OnionOO script by "weasel", "teor",
19248       "gsathya", and "karsten".
19249     - Previously only relays that explicitly opened a directory port
19250       (DirPort) accepted directory requests from clients. Now all
19251       relays, with and without a DirPort, accept and serve tunneled
19252       directory requests that they receive through their ORPort. You can
19253       disable this behavior using the new DirCache option. Closes
19254       ticket 12538.
19256   o Major key updates:
19257     - Update the V3 identity key for the dannenberg directory authority:
19258       it was changed on 18 November 2015. Closes task 17906. Patch
19259       by "teor".
19261   o Minor features (security, clock):
19262     - Warn when the system clock appears to move back in time (when the
19263       state file was last written in the future). Tor doesn't know that
19264       consensuses have expired if the clock is in the past. Patch by
19265       "teor". Implements ticket 17188.
19267   o Minor features (security, exit policies):
19268     - ExitPolicyRejectPrivate now rejects more private addresses by
19269       default. Specifically, it now rejects the relay's outbound bind
19270       addresses (if configured), and the relay's configured port
19271       addresses (such as ORPort and DirPort). Fixes bug 17027; bugfix on
19272       0.2.0.11-alpha. Patch by "teor".
19274   o Minor features (security, memory erasure):
19275     - Set the unused entries in a smartlist to NULL. This helped catch
19276       a (harmless) bug, and shouldn't affect performance too much.
19277       Implements ticket 17026.
19278     - Use SecureMemoryWipe() function to securely clean memory on
19279       Windows. Previously we'd use OpenSSL's OPENSSL_cleanse() function.
19280       Implements feature 17986.
19281     - Use explicit_bzero or memset_s when present. Previously, we'd use
19282       OpenSSL's OPENSSL_cleanse() function. Closes ticket 7419; patches
19283       from <logan@hackers.mu> and <selven@hackers.mu>.
19284     - Make memwipe() do nothing when passed a NULL pointer or buffer of
19285       zero size. Check size argument to memwipe() for underflow. Fixes
19286       bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk",
19287       patch by "teor".
19289   o Minor features (security, RNG):
19290     - Adjust Tor's use of OpenSSL's RNG APIs so that they absolutely,
19291       positively are not allowed to fail. Previously we depended on
19292       internal details of OpenSSL's behavior. Closes ticket 17686.
19293     - Never use the system entropy output directly for anything besides
19294       seeding the PRNG. When we want to generate important keys, instead
19295       of using system entropy directly, we now hash it with the PRNG
19296       stream. This may help resist certain attacks based on broken OS
19297       entropy implementations. Closes part of ticket 17694.
19298     - Use modern system calls (like getentropy() or getrandom()) to
19299       generate strong entropy on platforms that have them. Closes
19300       ticket 13696.
19302   o Minor features (accounting):
19303     - Added two modes to the AccountingRule option: One for limiting
19304       only the number of bytes sent ("AccountingRule out"), and one for
19305       limiting only the number of bytes received ("AccountingRule in").
19306       Closes ticket 15989; patch from "unixninja92".
19308   o Minor features (build):
19309     - Since our build process now uses "make distcheck", we no longer
19310       force "make dist" to depend on "make check". Closes ticket 17893;
19311       patch from "cypherpunks."
19312     - Tor now builds successfully with the recent OpenSSL 1.1
19313       development branch, and with the latest LibreSSL. Closes tickets
19314       17549, 17921, and 17984.
19316   o Minor features (controller):
19317     - Adds the FallbackDir entries to 'GETINFO config/defaults'. Closes
19318       tickets 16774 and 17817. Patch by George Tankersley.
19319     - New 'GETINFO hs/service/desc/id/' command to retrieve a hidden
19320       service descriptor from a service's local hidden service
19321       descriptor cache. Closes ticket 14846.
19322     - Add 'GETINFO exit-policy/reject-private/[default,relay]', so
19323       controllers can examine the the reject rules added by
19324       ExitPolicyRejectPrivate. This makes it easier for stem to display
19325       exit policies.
19327   o Minor features (crypto):
19328     - Add SHA512 support to crypto.c. Closes ticket 17663; patch from
19329       George Tankersley.
19330     - Add SHA3 and SHAKE support to crypto.c. Closes ticket 17783.
19331     - When allocating a digest state object, allocate no more space than
19332       we actually need. Previously, we would allocate as much space as
19333       the state for the largest algorithm would need. This change saves
19334       up to 672 bytes per circuit. Closes ticket 17796.
19335     - Improve performance when hashing non-multiple of 8 sized buffers,
19336       based on Andrew Moon's public domain SipHash-2-4 implementation.
19337       Fixes bug 17544; bugfix on 0.2.5.3-alpha.
19339   o Minor features (directory downloads):
19340     - Wait for busy authorities and fallback directories to become non-
19341       busy when bootstrapping. (A similar change was made in 6c443e987d
19342       for directory caches chosen from the consensus.) Closes ticket
19343       17864; patch by "teor".
19344     - Add UseDefaultFallbackDirs, which enables any hard-coded fallback
19345       directory mirrors. The default is 1; set it to 0 to disable
19346       fallbacks. Implements ticket 17576. Patch by "teor".
19348   o Minor features (geoip):
19349     - Update geoip and geoip6 to the January 5 2016 Maxmind GeoLite2
19350       Country database.
19352   o Minor features (IPv6):
19353     - Add an argument 'ipv6=address:orport' to the DirAuthority and
19354       FallbackDir torrc options, to specify an IPv6 address for an
19355       authority or fallback directory. Add hard-coded ipv6 addresses for
19356       directory authorities that have them. Closes ticket 17327; patch
19357       from Nick Mathewson and "teor".
19358     - Add address policy assume_action support for IPv6 addresses.
19359     - Limit IPv6 mask bits to 128.
19360     - Warn when comparing against an AF_UNSPEC address in a policy, it's
19361       almost always a bug. Closes ticket 17863; patch by "teor".
19362     - Allow users to configure directory authorities and fallback
19363       directory servers with IPv6 addresses and ORPorts. Resolves
19364       ticket 6027.
19365     - routerset_parse now accepts IPv6 literal addresses. Fixes bug
19366       17060; bugfix on 0.2.1.3-alpha. Patch by "teor".
19367     - Make tor_ersatz_socketpair work on IPv6-only systems. Fixes bug
19368       17638; bugfix on 0.0.2pre8. Patch by "teor".
19370   o Minor features (logging):
19371     - When logging to syslog, allow a tag to be added to the syslog
19372       identity (the string prepended to every log message). The tag can
19373       be configured with SyslogIdentityTag and defaults to none. Setting
19374       it to "foo" will cause logs to be tagged as "Tor-foo". Closes
19375       ticket 17194.
19377   o Minor features (portability):
19378     - Use timingsafe_memcmp() where available. Closes ticket 17944;
19379       patch from <logan@hackers.mu>.
19381   o Minor features (relay, address discovery):
19382     - Add a family argument to get_interface_addresses_raw() and
19383       subfunctions to make network interface address interogation more
19384       efficient. Now Tor can specifically ask for IPv4, IPv6 or both
19385       types of interfaces from the operating system. Resolves
19386       ticket 17950.
19387     - When get_interface_address6_list(.,AF_UNSPEC,.) is called and
19388       fails to enumerate interface addresses using the platform-specific
19389       API, have it rely on the UDP socket fallback technique to try and
19390       find out what IP addresses (both IPv4 and IPv6) our machine has.
19391       Resolves ticket 17951.
19393   o Minor features (replay cache):
19394     - The replay cache now uses SHA256 instead of SHA1. Implements
19395       feature 8961. Patch by "teor", issue reported by "rransom".
19397   o Minor features (unix file permissions):
19398     - Defer creation of Unix sockets until after setuid. This avoids
19399       needing CAP_CHOWN and CAP_FOWNER when using systemd's
19400       CapabilityBoundingSet, or chown and fowner when using SELinux.
19401       Implements part of ticket 17562. Patch from Jamie Nguyen.
19402     - If any directory created by Tor is marked as group readable, the
19403       filesystem group is allowed to be either the default GID or the
19404       root user. Allowing root to read the DataDirectory prevents the
19405       need for CAP_READ_SEARCH when using systemd's
19406       CapabilityBoundingSet, or dac_read_search when using SELinux.
19407       Implements part of ticket 17562. Patch from Jamie Nguyen.
19408     - Introduce a new DataDirectoryGroupReadable option. If it is set to
19409       1, the DataDirectory will be made readable by the default GID.
19410       Implements part of ticket 17562. Patch from Jamie Nguyen.
19412   o Minor bugfixes (accounting):
19413     - The max bandwidth when using 'AccountRule sum' is now correctly
19414       logged. Fixes bug 18024; bugfix on 0.2.6.1-alpha. Patch
19415       from "unixninja92".
19417   o Minor bugfixes (code correctness):
19418     - When closing an entry connection, generate a warning if we should
19419       have sent an end cell for it but we haven't. Fixes bug 17876;
19420       bugfix on 0.2.3.2-alpha.
19421     - Assert that allocated memory held by the reputation code is freed
19422       according to its internal counters. Fixes bug 17753; bugfix
19423       on 0.1.1.1-alpha.
19424     - Assert when the TLS contexts fail to initialize. Fixes bug 17683;
19425       bugfix on 0.0.6.
19427   o Minor bugfixes (compilation):
19428     - Mark all object files that include micro-revision.i as depending
19429       on it, so as to make parallel builds more reliable. Fixes bug
19430       17826; bugfix on 0.2.5.1-alpha.
19431     - Don't try to use the pthread_condattr_setclock() function unless
19432       it actually exists. Fixes compilation on NetBSD-6.x. Fixes bug
19433       17819; bugfix on 0.2.6.3-alpha.
19434     - Fix backtrace compilation on FreeBSD. Fixes bug 17827; bugfix
19435       on 0.2.5.2-alpha.
19436     - Fix compilation of sandbox.c with musl-libc. Fixes bug 17347;
19437       bugfix on 0.2.5.1-alpha. Patch from 'jamestk'.
19438     - Fix search for libevent libraries on OpenBSD (and other systems
19439       that install libevent 1 and libevent 2 in parallel). Fixes bug
19440       16651; bugfix on 0.1.0.7-rc. Patch from "rubiate".
19441     - Isolate environment variables meant for tests from the rest of the
19442       build system. Fixes bug 17818; bugfix on 0.2.7.3-rc.
19443     - Replace usage of 'INLINE' with 'inline'. Fixes bug 17804; bugfix
19444       on 0.0.2pre8.
19445     - Remove config.log only from make distclean, not from make clean.
19446       Fixes bug 17924; bugfix on 0.2.4.1-alpha.
19448   o Minor bugfixes (crypto):
19449     - Check the return value of HMAC() and assert on failure. Fixes bug
19450       17658; bugfix on 0.2.3.6-alpha. Patch by "teor".
19452   o Minor bugfixes (fallback directories):
19453     - Mark fallbacks as "too busy" when they return a 503 response,
19454       rather than just marking authorities. Fixes bug 17572; bugfix on
19455       0.2.4.7-alpha. Patch by "teor".
19457   o Minor bugfixes (IPv6):
19458     - Update the limits in max_dl_per_request for IPv6 address length.
19459       Fixes bug 17573; bugfix on 0.2.1.5-alpha.
19461   o Minor bugfixes (linux seccomp2 sandbox):
19462     - Fix a crash when using offline master ed25519 keys with the Linux
19463       seccomp2 sandbox enabled. Fixes bug 17675; bugfix on 0.2.7.3-rc.
19465   o Minor bugfixes (logging):
19466     - In log messages that include a function name, use __FUNCTION__
19467       instead of __PRETTY_FUNCTION__. In GCC, these are synonymous, but
19468       with clang __PRETTY_FUNCTION__ has extra information we don't
19469       need. Fixes bug 16563; bugfix on 0.0.2pre8. Fix by Tom van
19470       der Woerdt.
19471     - Remove needless quotes from a log message about unparseable
19472       addresses. Fixes bug 17843; bugfix on 0.2.3.3-alpha.
19474   o Minor bugfixes (portability):
19475     - Remove an #endif from configure.ac so that we correctly detect the
19476       presence of in6_addr.s6_addr32. Fixes bug 17923; bugfix
19477       on 0.2.0.13-alpha.
19479   o Minor bugfixes (relays):
19480     - Check that both the ORPort and DirPort (if present) are reachable
19481       before publishing a relay descriptor. Otherwise, relays publish a
19482       descriptor with DirPort 0 when the DirPort reachability test takes
19483       longer than the ORPort reachability test. Fixes bug 18050; bugfix
19484       on 0.1.0.1-rc. Reported by "starlight", patch by "teor".
19486   o Minor bugfixes (relays, hidden services):
19487     - Refuse connection requests to private OR addresses unless
19488       ExtendAllowPrivateAddresses is set. Previously, tor would connect,
19489       then refuse to send any cells to a private address. Fixes bugs
19490       17674 and 8976; bugfix on 0.2.3.21-rc. Patch by "teor".
19492   o Minor bugfixes (safe logging):
19493     - When logging a malformed hostname received through socks4, scrub
19494       it if SafeLogging says we should. Fixes bug 17419; bugfix
19495       on 0.1.1.16-rc.
19497   o Minor bugfixes (statistics code):
19498     - Consistently check for overflow in round_*_to_next_multiple_of
19499       functions, and add unit tests with additional and maximal values.
19500       Fixes part of bug 13192; bugfix on 0.2.2.1-alpha.
19501     - Handle edge cases in the laplace functions: avoid division by
19502       zero, avoid taking the log of zero, and silence clang type
19503       conversion warnings using round and trunc. Add unit tests for edge
19504       cases with maximal values. Fixes part of bug 13192; bugfix
19505       on 0.2.6.2-alpha.
19507   o Minor bugfixes (testing):
19508     - The test for log_heartbeat was incorrectly failing in timezones
19509       with non-integer offsets. Instead of comparing the end of the time
19510       string against a constant, compare it to the output of
19511       format_local_iso_time when given the correct input. Fixes bug
19512       18039; bugfix on 0.2.5.4-alpha.
19513     - Make unit tests pass on IPv6-only systems, and systems without
19514       localhost addresses (like some FreeBSD jails). Fixes bug 17632;
19515       bugfix on 0.2.7.3-rc. Patch by "teor".
19516     - Fix a memory leak in the ntor test. Fixes bug 17778; bugfix
19517       on 0.2.4.8-alpha.
19518     - Check the full results of SHA256 and SHA512 digests in the unit
19519       tests. Bugfix on 0.2.2.4-alpha. Patch by "teor".
19521   o Code simplification and refactoring:
19522     - Move logging of redundant policy entries in
19523       policies_parse_exit_policy_internal into its own function. Closes
19524       ticket 17608; patch from "juce".
19525     - Extract the more complicated parts of circuit_mark_for_close()
19526       into a new function that we run periodically before circuits are
19527       freed. This change removes more than half of the functions
19528       currently in the "blob". Closes ticket 17218.
19529     - Clean up a little duplicated code in
19530       crypto_expand_key_material_TAP(). Closes ticket 17587; patch
19531       from "pfrankw".
19532     - Decouple the list of streams waiting to be attached to circuits
19533       from the overall connection list. This change makes it possible to
19534       attach streams quickly while simplifying Tor's callgraph and
19535       avoiding O(N) scans of the entire connection list. Closes
19536       ticket 17590.
19537     - When a direct directory request fails immediately on launch,
19538       instead of relaunching that request from inside the code that
19539       launches it, instead mark the connection for teardown. This change
19540       simplifies Tor's callback and prevents the directory-request
19541       launching code from invoking itself recursively. Closes
19542       ticket 17589
19543     - Remove code for configuring OpenSSL dynamic locks; OpenSSL doesn't
19544       use them. Closes ticket 17926.
19546   o Documentation:
19547     - Add a description of the correct use of the '--keygen' command-
19548       line option. Closes ticket 17583; based on text by 's7r'.
19549     - Document the minimum HeartbeatPeriod value. Closes ticket 15638.
19550     - Explain actual minima for BandwidthRate. Closes ticket 16382.
19551     - Fix a minor formatting typo in the manpage. Closes ticket 17791.
19552     - Mention torspec URL in the manpage and point the reader to it
19553       whenever we mention a document that belongs in torspce. Fixes
19554       issue 17392.
19556   o Removed features:
19557     - Remove client-side support for connecting to Tor relays running
19558       versions of Tor before 0.2.3.6-alpha. These relays didn't support
19559       the v3 TLS handshake protocol, and are no longer allowed on the
19560       Tor network. Implements the client side of ticket 11150. Based on
19561       patches by Tom van der Woerdt.
19563   o Testing:
19564     - Add unit tests to check for common RNG failure modes, such as
19565       returning all zeroes, identical values, or incrementing values
19566       (OpenSSL's rand_predictable feature). Patch by "teor".
19567     - Log more information when the backtrace tests fail. Closes ticket
19568       17892. Patch from "cypherpunks."
19569     - Always test both ed25519 backends, so that we can be sure that our
19570       batch-open replacement code works. Part of ticket 16794.
19571     - Cover dns_resolve_impl() in dns.c with unit tests. Implements a
19572       portion of ticket 16831.
19573     - More unit tests for compat_libevent.c, procmon.c, tortls.c,
19574       util_format.c, directory.c, and options_validate.c. Closes tickets
19575       17075, 17082, 17084, 17003, and 17076 respectively. Patches from
19576       Ola Bini.
19577     - Unit tests for directory_handle_command_get. Closes ticket 17004.
19578       Patch from Reinaldo de Souza Jr.
19581 Changes in version 0.2.7.6 - 2015-12-10
19582   Tor version 0.2.7.6 fixes a major bug in entry guard selection, as
19583   well as a minor bug in hidden service reliability.
19585   o Major bugfixes (guard selection):
19586     - Actually look at the Guard flag when selecting a new directory
19587       guard. When we implemented the directory guard design, we
19588       accidentally started treating all relays as if they have the Guard
19589       flag during guard selection, leading to weaker anonymity and worse
19590       performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered
19591       by Mohsen Imani.
19593   o Minor features (geoip):
19594     - Update geoip and geoip6 to the December 1 2015 Maxmind GeoLite2
19595       Country database.
19597   o Minor bugfixes (compilation):
19598     - When checking for net/pfvar.h, include netinet/in.h if possible.
19599       This fixes transparent proxy detection on OpenBSD. Fixes bug
19600       17551; bugfix on 0.1.2.1-alpha. Patch from "rubiate".
19601     - Fix a compilation warning with Clang 3.6: Do not check the
19602       presence of an address which can never be NULL. Fixes bug 17781.
19604   o Minor bugfixes (correctness):
19605     - When displaying an IPv6 exit policy, include the mask bits
19606       correctly even when the number is greater than 31. Fixes bug
19607       16056; bugfix on 0.2.4.7-alpha. Patch from "gturner".
19608     - The wrong list was used when looking up expired intro points in a
19609       rend service object, causing what we think could be reachability
19610       issues for hidden services, and triggering a BUG log. Fixes bug
19611       16702; bugfix on 0.2.7.2-alpha.
19612     - Fix undefined behavior in the tor_cert_checksig function. Fixes
19613       bug 17722; bugfix on 0.2.7.2-alpha.
19616 Changes in version 0.2.7.5 - 2015-11-20
19617   The Tor 0.2.7 release series is dedicated to the memory of Tor user
19618   and privacy advocate Caspar Bowden (1961-2015). Caspar worked
19619   tirelessly to advocate human rights regardless of national borders,
19620   and oppose the encroachments of mass surveillance. He opposed national
19621   exceptionalism, he brought clarity to legal and policy debates, he
19622   understood and predicted the impact of mass surveillance on the world,
19623   and he laid the groundwork for resisting it. While serving on the Tor
19624   Project's board of directors, he brought us his uncompromising focus
19625   on technical excellence in the service of humankind. Caspar was an
19626   inimitable force for good and a wonderful friend. He was kind,
19627   humorous, generous, gallant, and believed we should protect one
19628   another without exception. We honor him here for his ideals, his
19629   efforts, and his accomplishments. Please honor his memory with works
19630   that would make him proud.
19632   Tor 0.2.7.5 is the first stable release in the Tor 0.2.7 series.
19634   The 0.2.7 series adds a more secure identity key type for relays,
19635   improves cryptography performance, resolves several longstanding
19636   hidden-service performance issues, improves controller support for
19637   hidden services, and includes small bugfixes and performance
19638   improvements throughout the program. This release series also includes
19639   more tests than before, and significant simplifications to which parts
19640   of Tor invoke which others.
19642   (This release contains no code changes since 0.2.7.4-rc.)
19645 Changes in version 0.2.7.4-rc - 2015-10-21
19646   Tor 0.2.7.4-rc is the second release candidate in the 0.2.7 series. It
19647   fixes some important memory leaks, and a scary-looking (but mostly
19648   harmless in practice) invalid-read bug. It also has a few small
19649   bugfixes, notably fixes for compilation and portability on different
19650   platforms. If no further significant bounds are found, the next
19651   release will the the official stable release.
19653   o Major bugfixes (security, correctness):
19654     - Fix an error that could cause us to read 4 bytes before the
19655       beginning of an openssl string. This bug could be used to cause
19656       Tor to crash on systems with unusual malloc implementations, or
19657       systems with unusual hardening installed. Fixes bug 17404; bugfix
19658       on 0.2.3.6-alpha.
19660   o Major bugfixes (correctness):
19661     - Fix a use-after-free bug in validate_intro_point_failure(). Fixes
19662       bug 17401; bugfix on 0.2.7.3-rc.
19664   o Major bugfixes (memory leaks):
19665     - Fix a memory leak in ed25519 batch signature checking. Fixes bug
19666       17398; bugfix on 0.2.6.1-alpha.
19667     - Fix a memory leak in rend_cache_failure_entry_free(). Fixes bug
19668       17402; bugfix on 0.2.7.3-rc.
19669     - Fix a memory leak when reading an expired signing key from disk.
19670       Fixes bug 17403; bugfix on 0.2.7.2-rc.
19672   o Minor features (geoIP):
19673     - Update geoip and geoip6 to the October 9 2015 Maxmind GeoLite2
19674       Country database.
19676   o Minor bugfixes (compilation):
19677     - Repair compilation with the most recent (unreleased, alpha)
19678       vesions of OpenSSL 1.1. Fixes part of ticket 17237.
19679     - Fix an integer overflow warning in test_crypto_slow.c. Fixes bug
19680       17251; bugfix on 0.2.7.2-alpha.
19681     - Fix compilation of sandbox.c with musl-libc. Fixes bug 17347;
19682       bugfix on 0.2.5.1-alpha. Patch from 'jamestk'.
19684   o Minor bugfixes (portability):
19685     - Use libexecinfo on FreeBSD to enable backtrace support. Fixes
19686       part of bug 17151; bugfix on 0.2.5.2-alpha. Patch from
19687       Marcin Cieślak.
19689   o Minor bugfixes (sandbox):
19690     - Add the "hidserv-stats" filename to our sandbox filter for the
19691       HiddenServiceStatistics option to work properly. Fixes bug 17354;
19692       bugfix on 0.2.6.2-alpha. Patch from David Goulet.
19694   o Minor bugfixes (testing):
19695     - Add unit tests for get_interface_address* failure cases. Fixes bug
19696       17173; bugfix on 0.2.7.3-rc. Patch by fk/teor.
19697     - Fix breakage when running 'make check' with BSD make. Fixes bug
19698       17154; bugfix on 0.2.7.3-rc. Patch by Marcin Cieślak.
19699     - Make the get_ifaddrs_* unit tests more tolerant of different
19700       network configurations. (Don't assume every test box has an IPv4
19701       address, and don't assume every test box has a non-localhost
19702       address.) Fixes bug 17255; bugfix on 0.2.7.3-rc. Patch by "teor".
19703     - Skip backtrace tests when backtrace support is not compiled in.
19704       Fixes part of bug 17151; bugfix on 0.2.7.1-alpha. Patch from
19705       Marcin Cieślak.
19707   o Documentation:
19708     - Fix capitalization of SOCKS in sample torrc. Closes ticket 15609.
19709     - Note that HiddenServicePorts can take a unix domain socket. Closes
19710       ticket 17364.
19713 Changes in version 0.2.7.3-rc - 2015-09-25
19714   Tor 0.2.7.3-rc is the first release candidate in the 0.2.7 series. It
19715   contains numerous usability fixes for Ed25519 keys, safeguards against
19716   several misconfiguration problems, significant simplifications to
19717   Tor's callgraph, and numerous bugfixes and small features.
19719   This is the most tested release of Tor to date. The unit tests cover
19720   39.40% of the code, and the integration tests (accessible with "make
19721   test-full-online", requiring stem and chutney and a network
19722   connection) raise the coverage to 64.49%.
19724   o Major features (security, hidden services):
19725     - Hidden services, if using the EntryNodes option, are required to
19726       use more than one EntryNode, in order to avoid a guard discovery
19727       attack. (This would only affect people who had configured hidden
19728       services and manually specified the EntryNodes option with a
19729       single entry-node. The impact was that it would be easy to
19730       remotely identify the guard node used by such a hidden service.
19731       See ticket for more information.) Fixes ticket 14917.
19733   o Major features (Ed25519 keys, keypinning):
19734     - The key-pinning option on directory authorities is now advisory-
19735       only by default. In a future version, or when the AuthDirPinKeys
19736       option is set, pins are enforced again. Disabling key-pinning
19737       seemed like a good idea so that we can survive the fallout of any
19738       usability problems associated with Ed25519 keys. Closes
19739       ticket 17135.
19741   o Major features (Ed25519 performance):
19742     - Improve the speed of Ed25519 operations and Curve25519 keypair
19743       generation when built targeting 32 bit x86 platforms with SSE2
19744       available. Implements ticket 16535.
19745     - Improve the runtime speed of Ed25519 signature verification by
19746       using Ed25519-donna's batch verification support. Implements
19747       ticket 16533.
19749   o Major features (performance testing):
19750     - The test-network.sh script now supports performance testing.
19751       Requires corresponding chutney performance testing changes. Patch
19752       by "teor". Closes ticket 14175.
19754   o Major features (relay, Ed25519):
19755     - Significant usability improvements for Ed25519 key management. Log
19756       messages are better, and the code can recover from far more
19757       failure conditions. Thanks to "s7r" for reporting and diagnosing
19758       so many of these!
19759     - Add a new OfflineMasterKey option to tell Tor never to try loading
19760       or generating a secret Ed25519 identity key. You can use this in
19761       combination with tor --keygen to manage offline and/or encrypted
19762       Ed25519 keys. Implements ticket 16944.
19763     - Add a --newpass option to allow changing or removing the
19764       passphrase of an encrypted key with tor --keygen. Implements part
19765       of ticket 16769.
19766     - On receiving a HUP signal, check to see whether the Ed25519
19767       signing key has changed, and reload it if so. Closes ticket 16790.
19769   o Major bugfixes (relay, Ed25519):
19770     - Avoid crashing on 'tor --keygen'. Fixes bug 16679; bugfix on
19771       0.2.7.2-alpha. Reported by "s7r".
19772     - Improve handling of expired signing keys with offline master keys.
19773       Fixes bug 16685; bugfix on 0.2.7.2-alpha. Reported by "s7r".
19775   o Minor features (client-side privacy):
19776     - New KeepAliveIsolateSOCKSAuth option to indefinitely extend circuit
19777       lifespan when IsolateSOCKSAuth and streams with SOCKS
19778       authentication are attached to the circuit. This allows
19779       applications like TorBrowser to manage circuit lifetime on their
19780       own. Implements feature 15482.
19781     - When logging malformed hostnames from SOCKS5 requests, respect
19782       SafeLogging configuration. Fixes bug 16891; bugfix on 0.1.1.16-rc.
19784   o Minor features (compilation):
19785     - Give a warning as early as possible when trying to build with an
19786       unsupported OpenSSL version. Closes ticket 16901.
19787     - Fail during configure if we're trying to build against an OpenSSL
19788       built without ECC support. Fixes bug 17109, bugfix on 0.2.7.1-alpha
19789       which started requiring ECC.
19791   o Minor features (geoip):
19792     - Update geoip and geoip6 to the September 3 2015 Maxmind GeoLite2
19793       Country database.
19795   o Minor features (hidden services):
19796     - Relays need to have the Fast flag to get the HSDir flag. As this
19797       is being written, we'll go from 2745 HSDirs down to 2342, a ~14%
19798       drop. This change should make some attacks against the hidden
19799       service directory system harder. Fixes ticket 15963.
19800     - Turn on hidden service statistics collection by setting the torrc
19801       option HiddenServiceStatistics to "1" by default. (This keeps
19802       track only of the fraction of traffic used by hidden services, and
19803       the total number of hidden services in existence.) Closes
19804       ticket 15254.
19805     - Client now uses an introduction point failure cache to know when
19806       to fetch or keep a descriptor in their cache. Previously, failures
19807       were recorded implicitly, but not explicitly remembered. Closes
19808       ticket 16389.
19810   o Minor features (testing, authorities, documentation):
19811     - New TestingDirAuthVote{Exit,Guard,HSDir}IsStrict flags to
19812       explicitly manage consensus flags in testing networks. Patch by
19813       "robgjansen", modified by "teor". Implements part of ticket 14882.
19815   o Minor bugfixes (security, exit policies):
19816     - ExitPolicyRejectPrivate now also rejects the relay's published
19817       IPv6 address (if any), and any publicly routable IPv4 or IPv6
19818       addresses on any local interfaces. ticket 17027. Patch by "teor".
19819       Fixes bug 17027; bugfix on 0.2.0.11-alpha.
19821   o Minor bug fixes (torrc exit policies):
19822     - In torrc, "accept6 *" and "reject6 *" ExitPolicy lines now only
19823       produce IPv6 wildcard addresses. Previously they would produce
19824       both IPv4 and IPv6 wildcard addresses. Patch by "teor". Fixes part
19825       of bug 16069; bugfix on 0.2.4.7-alpha.
19826     - When parsing torrc ExitPolicies, we now warn for a number of cases
19827       where the user's intent is likely to differ from Tor's actual
19828       behavior. These include: using an IPv4 address with an accept6 or
19829       reject6 line; using "private" on an accept6 or reject6 line; and
19830       including any ExitPolicy lines after accept *:* or reject *:*.
19831       Related to ticket 16069.
19832     - When parsing torrc ExitPolicies, we now issue an info-level
19833       message when expanding an "accept/reject *" line to include both
19834       IPv4 and IPv6 wildcard addresses. Related to ticket 16069.
19835     - In each instance above, usage advice is provided to avoid the
19836       message. Resolves ticket 16069. Patch by "teor". Fixes part of bug
19837       16069; bugfix on 0.2.4.7-alpha.
19839   o Minor bugfixes (authority):
19840     - Don't assign "HSDir" to a router if it isn't Valid and Running.
19841       Fixes bug 16524; bugfix on 0.2.7.2-alpha.
19842     - Downgrade log messages about Ed25519 key issues if they are in old
19843       cached router descriptors. Fixes part of bug 16286; bugfix
19844       on 0.2.7.2-alpha.
19845     - When we find an Ed25519 key issue in a cached descriptor, stop
19846       saying the descriptor was just "uploaded". Fixes another part of
19847       bug 16286; bugfix on 0.2.7.2-alpha.
19849   o Minor bugfixes (control port):
19850     - Repair a warning and a spurious result when getting the maximum
19851       number of file descriptors from the controller. Fixes bug 16697;
19852       bugfix on 0.2.7.2-alpha.
19854   o Minor bugfixes (correctness):
19855     - When calling channel_free_list(), avoid calling smartlist_remove()
19856       while inside a FOREACH loop. This partially reverts commit
19857       17356fe7fd96af where the correct SMARTLIST_DEL_CURRENT was
19858       incorrectly removed. Fixes bug 16924; bugfix on 0.2.4.4-alpha.
19860   o Minor bugfixes (documentation):
19861     - Advise users on how to configure separate IPv4 and IPv6 exit
19862       policies in the manpage and sample torrcs. Related to ticket 16069.
19863     - Fix the usage message of tor-resolve(1) so that it no longer lists
19864       the removed -F option. Fixes bug 16913; bugfix on 0.2.2.28-beta.
19865     - Fix an error in the manual page and comments for
19866       TestingDirAuthVoteHSDir[IsStrict], which suggested that a HSDir
19867       required "ORPort connectivity". While this is true, it is in no
19868       way unique to the HSDir flag. Of all the flags, only HSDirs need a
19869       DirPort configured in order for the authorities to assign that
19870       particular flag. Patch by "teor". Fixed as part of 14882; bugfix
19871       on 0.2.6.3-alpha.
19873   o Minor bugfixes (Ed25519):
19874     - Fix a memory leak when reading router descriptors with expired
19875       Ed25519 certificates. Fixes bug 16539; bugfix on 0.2.7.2-alpha.
19877   o Minor bugfixes (linux seccomp2 sandbox):
19878     - Allow bridge authorities to run correctly under the seccomp2
19879       sandbox. Fixes bug 16964; bugfix on 0.2.5.1-alpha.
19880     - Allow routers with ed25519 keys to run correctly under the
19881       seccomp2 sandbox. Fixes bug 16965; bugfix on 0.2.7.2-alpha.
19883   o Minor bugfixes (open file limit):
19884     - Fix set_max_file_descriptors() to set by default the max open file
19885       limit to the current limit when setrlimit() fails. Fixes bug
19886       16274; bugfix on 0.2.0.10-alpha. Patch by dgoulet.
19888   o Minor bugfixes (portability):
19889     - Try harder to normalize the exit status of the Tor process to the
19890       standard-provided range. Fixes bug 16975; bugfix on every version
19891       of Tor ever.
19892     - Check correctly for Windows socket errors in the workqueue
19893       backend. Fixes bug 16741; bugfix on 0.2.6.3-alpha.
19894     - Fix the behavior of crypto_rand_time_range() when told to consider
19895       times before 1970. (These times were possible when running in a
19896       simulated network environment where time()'s output starts at
19897       zero.) Fixes bug 16980; bugfix on 0.2.7.1-alpha.
19898     - Restore correct operation of TLS client-cipher detection on
19899       OpenSSL 1.1. Fixes bug 14047; bugfix on 0.2.7.2-alpha.
19901   o Minor bugfixes (relay):
19902     - Ensure that worker threads actually exit when a fatal error or
19903       shutdown is indicated. This fix doesn't currently affect the
19904       behavior of Tor, because Tor workers never indicates fatal error
19905       or shutdown except in the unit tests. Fixes bug 16868; bugfix
19906       on 0.2.6.3-alpha.
19907     - Unblock threads before releasing the work queue mutex to ensure
19908       predictable scheduling behavior. Fixes bug 16644; bugfix
19909       on 0.2.6.3-alpha.
19911   o Code simplification and refactoring:
19912     - Change the function that's called when we need to retry all
19913       downloads so that it only reschedules the downloads to happen
19914       immediately, rather than launching them all at once itself. This
19915       further simplifies Tor's callgraph.
19916     - Move some format-parsing functions out of crypto.c and
19917       crypto_curve25519.c into crypto_format.c and/or util_format.c.
19918     - Move the client-only parts of init_keys() into a separate
19919       function. Closes ticket 16763.
19920     - Simplify the microdesc_free() implementation so that it no longer
19921       appears (to code analysis tools) to potentially invoke a huge
19922       suite of other microdesc functions.
19923     - Simply the control graph further by deferring the inner body of
19924       directory_all_unreachable() into a callback. Closes ticket 16762.
19925     - Treat the loss of an owning controller as equivalent to a SIGTERM
19926       signal. This removes a tiny amount of duplicated code, and
19927       simplifies our callgraph. Closes ticket 16788.
19928     - When generating an event to send to the controller, we no longer
19929       put the event over the network immediately. Instead, we queue
19930       these events, and use a Libevent callback to deliver them. This
19931       change simplifies Tor's callgraph by reducing the number of
19932       functions from which all other Tor functions are reachable. Closes
19933       ticket 16695.
19934     - Wrap Windows-only C files inside '#ifdef _WIN32' so that tools
19935       that try to scan or compile every file on Unix won't decide that
19936       they are broken.
19937     - Remove the unused "nulterminate" argument from buf_pullup().
19939   o Documentation:
19940     - Recommend a 40 GB example AccountingMax in torrc.sample rather
19941       than a 4 GB max. Closes ticket 16742.
19942     - Include the TUNING document in our source tarball. It is referred
19943       to in the ChangeLog and an error message. Fixes bug 16929; bugfix
19944       on 0.2.6.1-alpha.
19946   o Removed code:
19947     - The internal pure-C tor-fw-helper tool is now removed from the Tor
19948       distribution, in favor of the pure-Go clone available from
19949       https://gitweb.torproject.org/tor-fw-helper.git/ . The libraries
19950       used by the C tor-fw-helper are not, in our opinion, very
19951       confidence- inspiring in their secure-programming techniques.
19952       Closes ticket 13338.
19953     - Remove the code that would try to aggressively flush controller
19954       connections while writing to them. This code was introduced in
19955       0.1.2.7-alpha, in order to keep output buffers from exceeding
19956       their limits. But there is no longer a maximum output buffer size,
19957       and flushing data in this way caused some undesirable recursions
19958       in our call graph. Closes ticket 16480.
19960   o Testing:
19961     - Make "bridges+hs" the default test network. This tests almost all
19962       tor functionality during make test-network, while allowing tests
19963       to succeed on non-IPv6 systems. Requires chutney commit 396da92 in
19964       test-network-bridges-hs. Closes tickets 16945 (tor) and 16946
19965       (chutney). Patches by "teor".
19966     - Autodetect CHUTNEY_PATH if the chutney and Tor sources are side-
19967       by-side in the same parent directory. Closes ticket 16903. Patch
19968       by "teor".
19969     - Use environment variables rather than autoconf substitutions to
19970       send variables from the build system to the test scripts. This
19971       change should be easier to maintain, and cause 'make distcheck' to
19972       work better than before. Fixes bug 17148.
19973     - Add a new set of callgraph analysis scripts that use clang to
19974       produce a list of which Tor functions are reachable from which
19975       other Tor functions. We're planning to use these to help simplify
19976       our code structure by identifying illogical dependencies.
19977     - Add new 'test-full' and 'test-full-online' targets to run all
19978       tests, including integration tests with stem and chutney.
19979     - Make the test-workqueue test work on Windows by initializing the
19980       network before we begin.
19981     - New make target (make test-network-all) to run multiple applicable
19982       chutney test cases. Patch from Teor; closes 16953.
19983     - Unit test dns_resolve(), dns_clip_ttl() and dns_get_expiry_ttl()
19984       functions in dns.c. Implements a portion of ticket 16831.
19985     - When building Tor with testing coverage enabled, run Chutney tests
19986       (if any) using the 'tor-cov' coverage binary.
19987     - When running test-network or test-stem, check for the absence of
19988       stem/chutney before doing any build operations.
19991 Changes in version 0.2.7.2-alpha - 2015-07-27
19992   This, the second alpha in the Tor 0.2.7 series, has a number of new
19993   features, including a way to manually pick the number of introduction
19994   points for hidden services, and the much stronger Ed25519 signing key
19995   algorithm for regular Tor relays (including support for encrypted
19996   offline identity keys in the new algorithm).
19998   Support for Ed25519 on relays is currently limited to signing router
19999   descriptors; later alphas in this series will extend Ed25519 key
20000   support to more parts of the Tor protocol.
20002   o Major features (Ed25519 identity keys, Proposal 220):
20003     - All relays now maintain a stronger identity key, using the Ed25519
20004       elliptic curve signature format. This master key is designed so
20005       that it can be kept offline. Relays also generate an online
20006       signing key, and a set of other Ed25519 keys and certificates.
20007       These are all automatically regenerated and rotated as needed.
20008       Implements part of ticket 12498.
20009     - Directory authorities now vote on Ed25519 identity keys along with
20010       RSA1024 keys. Implements part of ticket 12498.
20011     - Directory authorities track which Ed25519 identity keys have been
20012       used with which RSA1024 identity keys, and do not allow them to
20013       vary freely. Implements part of ticket 12498.
20014     - Microdescriptors now include Ed25519 identity keys. Implements
20015       part of ticket 12498.
20016     - Add support for offline encrypted Ed25519 master keys. To use this
20017       feature on your tor relay, run "tor --keygen" to make a new master
20018       key (or to make a new signing key if you already have a master
20019       key). Closes ticket 13642.
20021   o Major features (Hidden services):
20022     - Add the torrc option HiddenServiceNumIntroductionPoints, to
20023       specify a fixed number of introduction points. Its maximum value
20024       is 10 and default is 3. Using this option can increase a hidden
20025       service's reliability under load, at the cost of making it more
20026       visible that the hidden service is facing extra load. Closes
20027       ticket 4862.
20028     - Remove the adaptive algorithm for choosing the number of
20029       introduction points, which used to change the number of
20030       introduction points (poorly) depending on the number of
20031       connections the HS sees. Closes ticket 4862.
20033   o Major features (onion key cross-certification):
20034     - Relay descriptors now include signatures of their own identity
20035       keys, made using the TAP and ntor onion keys. These signatures
20036       allow relays to prove ownership of their own onion keys. Because
20037       of this change, microdescriptors will no longer need to include
20038       RSA identity keys. Implements proposal 228; closes ticket 12499.
20040   o Major features (performance):
20041     - Improve the runtime speed of Ed25519 operations by using the
20042       public-domain Ed25519-donna by Andrew M. ("floodyberry").
20043       Implements ticket 16467.
20044     - Improve the runtime speed of the ntor handshake by using an
20045       optimized curve25519 basepoint scalarmult implementation from the
20046       public-domain Ed25519-donna by Andrew M. ("floodyberry"), based on
20047       ideas by Adam Langley. Implements ticket 9663.
20049   o Major bugfixes (client-side privacy, also in 0.2.6.9):
20050     - Properly separate out each SOCKSPort when applying stream
20051       isolation. The error occurred because each port's session group
20052       was being overwritten by a default value when the listener
20053       connection was initialized. Fixes bug 16247; bugfix on
20054       0.2.6.3-alpha. Patch by "jojelino".
20056   o Major bugfixes (hidden service clients, stability, also in 0.2.6.10):
20057     - Stop refusing to store updated hidden service descriptors on a
20058       client. This reverts commit 9407040c59218 (which indeed fixed bug
20059       14219, but introduced a major hidden service reachability
20060       regression detailed in bug 16381). This is a temporary fix since
20061       we can live with the minor issue in bug 14219 (it just results in
20062       some load on the network) but the regression of 16381 is too much
20063       of a setback. First-round fix for bug 16381; bugfix
20064       on 0.2.6.3-alpha.
20066   o Major bugfixes (hidden services):
20067     - When cannibalizing a circuit for an introduction point, always
20068       extend to the chosen exit node (creating a 4 hop circuit).
20069       Previously Tor would use the current circuit exit node, which
20070       changed the original choice of introduction point, and could cause
20071       the hidden service to skip excluded introduction points or
20072       reconnect to a skipped introduction point. Fixes bug 16260; bugfix
20073       on 0.1.0.1-rc.
20075   o Major bugfixes (open file limit):
20076     - The open file limit wasn't checked before calling
20077       tor_accept_socket_nonblocking(), which would make Tor exceed the
20078       limit. Now, before opening a new socket, Tor validates the open
20079       file limit just before, and if the max has been reached, return an
20080       error. Fixes bug 16288; bugfix on 0.1.1.1-alpha.
20082   o Major bugfixes (stability, also in 0.2.6.10):
20083     - Stop crashing with an assertion failure when parsing certain kinds
20084       of malformed or truncated microdescriptors. Fixes bug 16400;
20085       bugfix on 0.2.6.1-alpha. Found by "torkeln"; fix based on a patch
20086       by "cypherpunks_backup".
20087     - Stop random client-side assertion failures that could occur when
20088       connecting to a busy hidden service, or connecting to a hidden
20089       service while a NEWNYM is in progress. Fixes bug 16013; bugfix
20090       on 0.1.0.1-rc.
20092   o Minor features (directory authorities, security, also in 0.2.6.9):
20093     - The HSDir flag given by authorities now requires the Stable flag.
20094       For the current network, this results in going from 2887 to 2806
20095       HSDirs. Also, it makes it harder for an attacker to launch a sybil
20096       attack by raising the effort for a relay to become Stable to
20097       require at the very least 7 days, while maintaining the 96 hours
20098       uptime requirement for HSDir. Implements ticket 8243.
20100   o Minor features (client):
20101     - Relax the validation of hostnames in SOCKS5 requests, allowing the
20102       character '_' to appear, in order to cope with domains observed in
20103       the wild that are serving non-RFC compliant records. Resolves
20104       ticket 16430.
20105     - Relax the validation done to hostnames in SOCKS5 requests, and
20106       allow a single trailing '.' to cope with clients that pass FQDNs
20107       using that syntax to explicitly indicate that the domain name is
20108       fully-qualified. Fixes bug 16674; bugfix on 0.2.6.2-alpha.
20109     - Add GroupWritable and WorldWritable options to unix-socket based
20110       SocksPort and ControlPort options. These options apply to a single
20111       socket, and override {Control,Socks}SocketsGroupWritable. Closes
20112       ticket 15220.
20114   o Minor features (control protocol):
20115     - Support network-liveness GETINFO key and NETWORK_LIVENESS event in
20116       the control protocol. Resolves ticket 15358.
20118   o Minor features (directory authorities):
20119     - Directory authorities no longer vote against the "Fast", "Stable",
20120       and "HSDir" flags just because they were going to vote against
20121       "Running": if the consensus turns out to be that the router was
20122       running, then the authority's vote should count. Patch from Peter
20123       Retzlaff; closes issue 8712.
20125   o Minor features (geoip, also in 0.2.6.10):
20126     - Update geoip to the June 3 2015 Maxmind GeoLite2 Country database.
20127     - Update geoip6 to the June 3 2015 Maxmind GeoLite2 Country database.
20129   o Minor features (hidden services):
20130     - Add the new options "HiddenServiceMaxStreams" and
20131       "HiddenServiceMaxStreamsCloseCircuit" to allow hidden services to
20132       limit the maximum number of simultaneous streams per circuit, and
20133       optionally tear down the circuit when the limit is exceeded. Part
20134       of ticket 16052.
20136   o Minor features (portability):
20137     - Use C99 variadic macros when the compiler is not GCC. This avoids
20138       failing compilations on MSVC, and fixes a log-file-based race
20139       condition in our old workarounds. Original patch from Gisle Vanem.
20141   o Minor bugfixes (compilation, also in 0.2.6.9):
20142     - Build with --enable-systemd correctly when libsystemd is
20143       installed, but systemd is not. Fixes bug 16164; bugfix on
20144       0.2.6.3-alpha. Patch from Peter Palfrader.
20146   o Minor bugfixes (controller):
20147     - Add the descriptor ID in each HS_DESC control event. It was
20148       missing, but specified in control-spec.txt. Fixes bug 15881;
20149       bugfix on 0.2.5.2-alpha.
20151   o Minor bugfixes (crypto error-handling, also in 0.2.6.10):
20152     - Check for failures from crypto_early_init, and refuse to continue.
20153       A previous typo meant that we could keep going with an
20154       uninitialized crypto library, and would have OpenSSL initialize
20155       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
20156       when implementing ticket 4900. Patch by "teor".
20158   o Minor bugfixes (hidden services):
20159     - Fix a crash when reloading configuration while at least one
20160       configured and one ephemeral hidden service exists. Fixes bug
20161       16060; bugfix on 0.2.7.1-alpha.
20162     - Avoid crashing with a double-free bug when we create an ephemeral
20163       hidden service but adding it fails for some reason. Fixes bug
20164       16228; bugfix on 0.2.7.1-alpha.
20166   o Minor bugfixes (Linux seccomp2 sandbox):
20167     - Use the sandbox in tor_open_cloexec whether or not O_CLOEXEC is
20168       defined. Patch by "teor". Fixes bug 16515; bugfix on 0.2.3.1-alpha.
20170   o Minor bugfixes (Linux seccomp2 sandbox, also in 0.2.6.10):
20171     - Allow pipe() and pipe2() syscalls in the seccomp2 sandbox: we need
20172       these when eventfd2() support is missing. Fixes bug 16363; bugfix
20173       on 0.2.6.3-alpha. Patch from "teor".
20175   o Minor bugfixes (Linux seccomp2 sandbox, also in 0.2.6.9):
20176     - Fix sandboxing to work when running as a relay, by allowing the
20177       renaming of secret_id_key, and allowing the eventfd2 and futex
20178       syscalls. Fixes bug 16244; bugfix on 0.2.6.1-alpha. Patch by
20179       Peter Palfrader.
20180     - Allow systemd connections to work with the Linux seccomp2 sandbox
20181       code. Fixes bug 16212; bugfix on 0.2.6.2-alpha. Patch by
20182       Peter Palfrader.
20184   o Minor bugfixes (relay):
20185     - Fix a rarely-encountered memory leak when failing to initialize
20186       the thread pool. Fixes bug 16631; bugfix on 0.2.6.3-alpha. Patch
20187       from "cypherpunks".
20189   o Minor bugfixes (systemd):
20190     - Fix an accidental formatting error that broke the systemd
20191       configuration file. Fixes bug 16152; bugfix on 0.2.7.1-alpha.
20192     - Tor's systemd unit file no longer contains extraneous spaces.
20193       These spaces would sometimes confuse tools like deb-systemd-
20194       helper. Fixes bug 16162; bugfix on 0.2.5.5-alpha.
20196   o Minor bugfixes (tests):
20197     - Use the configured Python executable when running test-stem-full.
20198       Fixes bug 16470; bugfix on 0.2.7.1-alpha.
20200   o Minor bugfixes (tests, also in 0.2.6.9):
20201     - Fix a crash in the unit tests when built with MSVC2013. Fixes bug
20202       16030; bugfix on 0.2.6.2-alpha. Patch from "NewEraCracker".
20204   o Minor bugfixes (threads, comments):
20205     - Always initialize return value in compute_desc_id in rendcommon.c
20206       Patch by "teor". Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
20207     - Check for NULL values in getinfo_helper_onions(). Patch by "teor".
20208       Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
20209     - Remove undefined directive-in-macro in test_util_writepid clang
20210       3.7 complains that using a preprocessor directive inside a macro
20211       invocation in test_util_writepid in test_util.c is undefined.
20212       Patch by "teor". Fixes part of bug 16115; bugfix on 0.2.7.1-alpha.
20214   o Code simplification and refactoring:
20215     - Define WINVER and _WIN32_WINNT centrally, in orconfig.h, in order
20216       to ensure they remain consistent and visible everywhere.
20217     - Remove some vestigial workarounds for the MSVC6 compiler. We
20218       haven't supported that in ages.
20219     - The link authentication code has been refactored for better
20220       testability and reliability. It now uses code generated with the
20221       "trunnel" binary encoding generator, to reduce the risk of bugs
20222       due to programmer error. Done as part of ticket 12498.
20224   o Documentation:
20225     - Include a specific and (hopefully) accurate documentation of the
20226       torrc file's meta-format in doc/torrc_format.txt. This is mainly
20227       of interest to people writing programs to parse or generate torrc
20228       files. This document is not a commitment to long-term
20229       compatibility; some aspects of the current format are a bit
20230       ridiculous. Closes ticket 2325.
20232   o Removed features:
20233     - Tor no longer supports copies of OpenSSL that are missing support
20234       for Elliptic Curve Cryptography. (We began using ECC when
20235       available in 0.2.4.8-alpha, for more safe and efficient key
20236       negotiation.) In particular, support for at least one of P256 or
20237       P224 is now required, with manual configuration needed if only
20238       P224 is available. Resolves ticket 16140.
20239     - Tor no longer supports versions of OpenSSL before 1.0. (If you are
20240       on an operating system that has not upgraded to OpenSSL 1.0 or
20241       later, and you compile Tor from source, you will need to install a
20242       more recent OpenSSL to link Tor against.) These versions of
20243       OpenSSL are still supported by the OpenSSL, but the numerous
20244       cryptographic improvements in later OpenSSL releases makes them a
20245       clear choice. Resolves ticket 16034.
20246     - Remove the HidServDirectoryV2 option. Now all relays offer to
20247       store hidden service descriptors. Related to 16543.
20248     - Remove the VoteOnHidServDirectoriesV2 option, since all
20249       authorities have long set it to 1. Closes ticket 16543.
20251   o Testing:
20252     - Document use of coverity, clang static analyzer, and clang dynamic
20253       undefined behavior and address sanitizers in doc/HACKING. Include
20254       detailed usage instructions in the blacklist. Patch by "teor".
20255       Closes ticket 15817.
20256     - The link authentication protocol code now has extensive tests.
20257     - The relay descriptor signature testing code now has
20258       extensive tests.
20259     - The test_workqueue program now runs faster, and is enabled by
20260       default as a part of "make check".
20261     - Now that OpenSSL has its own scrypt implementation, add an unit
20262       test that checks for interoperability between libscrypt_scrypt()
20263       and OpenSSL's EVP_PBE_scrypt() so that we could not use libscrypt
20264       and rely on EVP_PBE_scrypt() whenever possible. Resolves
20265       ticket 16189.
20268 Changes in version 0.2.6.10 - 2015-07-12
20269   Tor version 0.2.6.10 fixes some significant stability and hidden
20270   service client bugs, bulletproofs the cryptography init process, and
20271   fixes a bug when using the sandbox code with some older versions of
20272   Linux. Everyone running an older version, especially an older version
20273   of 0.2.6, should upgrade.
20275   o Major bugfixes (hidden service clients, stability):
20276     - Stop refusing to store updated hidden service descriptors on a
20277       client. This reverts commit 9407040c59218 (which indeed fixed bug
20278       14219, but introduced a major hidden service reachability
20279       regression detailed in bug 16381). This is a temporary fix since
20280       we can live with the minor issue in bug 14219 (it just results in
20281       some load on the network) but the regression of 16381 is too much
20282       of a setback. First-round fix for bug 16381; bugfix
20283       on 0.2.6.3-alpha.
20285   o Major bugfixes (stability):
20286     - Stop crashing with an assertion failure when parsing certain kinds
20287       of malformed or truncated microdescriptors. Fixes bug 16400;
20288       bugfix on 0.2.6.1-alpha. Found by "torkeln"; fix based on a patch
20289       by "cypherpunks_backup".
20290     - Stop random client-side assertion failures that could occur when
20291       connecting to a busy hidden service, or connecting to a hidden
20292       service while a NEWNYM is in progress. Fixes bug 16013; bugfix
20293       on 0.1.0.1-rc.
20295   o Minor features (geoip):
20296     - Update geoip to the June 3 2015 Maxmind GeoLite2 Country database.
20297     - Update geoip6 to the June 3 2015 Maxmind GeoLite2 Country database.
20299   o Minor bugfixes (crypto error-handling):
20300     - Check for failures from crypto_early_init, and refuse to continue.
20301       A previous typo meant that we could keep going with an
20302       uninitialized crypto library, and would have OpenSSL initialize
20303       its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced
20304       when implementing ticket 4900. Patch by "teor".
20306   o Minor bugfixes (Linux seccomp2 sandbox):
20307     - Allow pipe() and pipe2() syscalls in the seccomp2 sandbox: we need
20308       these when eventfd2() support is missing. Fixes bug 16363; bugfix
20309       on 0.2.6.3-alpha. Patch from "teor".
20312 Changes in version 0.2.6.9 - 2015-06-11
20313   Tor 0.2.6.9 fixes a regression in the circuit isolation code, increases the
20314   requirements for receiving an HSDir flag, and addresses some other small
20315   bugs in the systemd and sandbox code. Clients using circuit isolation
20316   should upgrade; all directory authorities should upgrade.
20318   o Major bugfixes (client-side privacy):
20319     - Properly separate out each SOCKSPort when applying stream
20320       isolation. The error occurred because each port's session group was
20321       being overwritten by a default value when the listener connection
20322       was initialized. Fixes bug 16247; bugfix on 0.2.6.3-alpha. Patch
20323       by "jojelino".
20325   o Minor feature (directory authorities, security):
20326     - The HSDir flag given by authorities now requires the Stable flag.
20327       For the current network, this results in going from 2887 to 2806
20328       HSDirs. Also, it makes it harder for an attacker to launch a sybil
20329       attack by raising the effort for a relay to become Stable which
20330       takes at the very least 7 days to do so and by keeping the 96
20331       hours uptime requirement for HSDir. Implements ticket 8243.
20333   o Minor bugfixes (compilation):
20334     - Build with --enable-systemd correctly when libsystemd is
20335       installed, but systemd is not. Fixes bug 16164; bugfix on
20336       0.2.6.3-alpha. Patch from Peter Palfrader.
20338   o Minor bugfixes (Linux seccomp2 sandbox):
20339     - Fix sandboxing to work when running as a relaymby renaming of
20340       secret_id_key, and allowing the eventfd2 and futex syscalls. Fixes
20341       bug 16244; bugfix on 0.2.6.1-alpha. Patch by Peter Palfrader.
20342     - Allow systemd connections to work with the Linux seccomp2 sandbox
20343       code. Fixes bug 16212; bugfix on 0.2.6.2-alpha. Patch by
20344       Peter Palfrader.
20346   o Minor bugfixes (tests):
20347     - Fix a crash in the unit tests when built with MSVC2013. Fixes bug
20348       16030; bugfix on 0.2.6.2-alpha. Patch from "NewEraCracker".
20351 Changes in version 0.2.6.8 - 2015-05-21
20352   Tor 0.2.6.8 fixes a bit of dodgy code in parsing INTRODUCE2 cells, and
20353   fixes an authority-side bug in assigning the HSDir flag. All directory
20354   authorities should upgrade.
20356   o Major bugfixes (hidden services, backport from 0.2.7.1-alpha):
20357     - Revert commit that made directory authorities assign the HSDir
20358       flag to relays without a DirPort; this was bad because such relays
20359       can't handle BEGIN_DIR cells. Fixes bug 15850; bugfix
20360       on 0.2.6.3-alpha.
20362   o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha):
20363     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
20364       a client authorized hidden service. Fixes bug 15823; bugfix
20365       on 0.2.1.6-alpha.
20367   o Minor features (geoip):
20368     - Update geoip to the April 8 2015 Maxmind GeoLite2 Country database.
20369     - Update geoip6 to the April 8 2015 Maxmind GeoLite2
20370       Country database.
20373 Changes in version 0.2.7.1-alpha - 2015-05-12
20374   Tor 0.2.7.1-alpha is the first alpha release in its series. It
20375   includes numerous small features and bugfixes against previous Tor
20376   versions, and numerous small infrastructure improvements. The most
20377   notable features are several new ways for controllers to interact with
20378   the hidden services subsystem.
20380   o New system requirements:
20381     - Tor no longer includes workarounds to support Libevent versions
20382       before 1.3e. Libevent 2.0 or later is recommended. Closes
20383       ticket 15248.
20385   o Major features (controller):
20386     - Add the ADD_ONION and DEL_ONION commands that allow the creation
20387       and management of hidden services via the controller. Closes
20388       ticket 6411.
20389     - New "GETINFO onions/current" and "GETINFO onions/detached"
20390       commands to get information about hidden services created via the
20391       controller. Part of ticket 6411.
20392     - New HSFETCH command to launch a request for a hidden service
20393       descriptor. Closes ticket 14847.
20394     - New HSPOST command to upload a hidden service descriptor. Closes
20395       ticket 3523. Patch by "DonnchaC".
20397   o Major bugfixes (hidden services):
20398     - Revert commit that made directory authorities assign the HSDir
20399       flag to relays without a DirPort; this was bad because such relays
20400       can't handle BEGIN_DIR cells. Fixes bug 15850; bugfix
20401       on 0.2.6.3-alpha.
20403   o Minor features (clock-jump tolerance):
20404     - Recover better when our clock jumps back many hours, like might
20405       happen for Tails or Whonix users who start with a very wrong
20406       hardware clock, use Tor to discover a more accurate time, and then
20407       fix their clock. Resolves part of ticket 8766.
20409   o Minor features (command-line interface):
20410     - Make --hash-password imply --hush to prevent unnecessary noise.
20411       Closes ticket 15542. Patch from "cypherpunks".
20412     - Print a warning whenever we find a relative file path being used
20413       as torrc option. Resolves issue 14018.
20415   o Minor features (controller):
20416     - Add DirAuthority lines for default directory authorities to the
20417       output of the "GETINFO config/defaults" command if not already
20418       present. Implements ticket 14840.
20419     - Controllers can now use "GETINFO hs/client/desc/id/..." to
20420       retrieve items from the client's hidden service descriptor cache.
20421       Closes ticket 14845.
20422     - Implement a new controller command "GETINFO status/fresh-relay-
20423       descs" to fetch a descriptor/extrainfo pair that was generated on
20424       demand just for the controller's use. Implements ticket 14784.
20426   o Minor features (DoS-resistance):
20427     - Make it harder for attackers to overload hidden services with
20428       introductions, by blocking multiple introduction requests on the
20429       same circuit. Resolves ticket 15515.
20431   o Minor features (geoip):
20432     - Update geoip to the April 8 2015 Maxmind GeoLite2 Country database.
20433     - Update geoip6 to the April 8 2015 Maxmind GeoLite2
20434       Country database.
20436   o Minor features (HS popularity countermeasure):
20437     - To avoid leaking HS popularity, don't cycle the introduction point
20438       when we've handled a fixed number of INTRODUCE2 cells but instead
20439       cycle it when a random number of introductions is reached, thus
20440       making it more difficult for an attacker to find out the amount of
20441       clients that have used the introduction point for a specific HS.
20442       Closes ticket 15745.
20444   o Minor features (logging):
20445     - Include the Tor version in all LD_BUG log messages, since people
20446       tend to cut and paste those into the bugtracker. Implements
20447       ticket 15026.
20449   o Minor features (pluggable transports):
20450     - When launching managed pluggable transports on Linux systems,
20451       attempt to have the kernel deliver a SIGTERM on tor exit if the
20452       pluggable transport process is still running. Resolves
20453       ticket 15471.
20454     - When launching managed pluggable transports, setup a valid open
20455       stdin in the child process that can be used to detect if tor has
20456       terminated. The "TOR_PT_EXIT_ON_STDIN_CLOSE" environment variable
20457       can be used by implementations to detect this new behavior.
20458       Resolves ticket 15435.
20460   o Minor features (testing):
20461     - Add a test to verify that the compiler does not eliminate our
20462       memwipe() implementation. Closes ticket 15377.
20463     - Add make rule `check-changes` to verify the format of changes
20464       files. Closes ticket 15180.
20465     - Add unit tests for control_event_is_interesting(). Add a compile-
20466       time check that the number of events doesn't exceed the capacity
20467       of control_event_t.event_mask. Closes ticket 15431, checks for
20468       bugs similar to 13085. Patch by "teor".
20469     - Command-line argument tests moved to Stem. Resolves ticket 14806.
20470     - Integrate the ntor, backtrace, and zero-length keys tests into the
20471       automake test suite. Closes ticket 15344.
20472     - Remove assertions during builds to determine Tor's test coverage.
20473       We don't want to trigger these even in assertions, so including
20474       them artificially makes our branch coverage look worse than it is.
20475       This patch provides the new test-stem-full and coverage-html-full
20476       configure options. Implements ticket 15400.
20478   o Minor bugfixes (build):
20479     - Improve out-of-tree builds by making non-standard rules work and
20480       clean up additional files and directories. Fixes bug 15053; bugfix
20481       on 0.2.7.0-alpha.
20483   o Minor bugfixes (command-line interface):
20484     - When "--quiet" is provided along with "--validate-config", do not
20485       write anything to stdout on success. Fixes bug 14994; bugfix
20486       on 0.2.3.3-alpha.
20487     - When complaining about bad arguments to "--dump-config", use
20488       stderr, not stdout.
20490   o Minor bugfixes (configuration, unit tests):
20491     - Only add the default fallback directories when the DirAuthorities,
20492       AlternateDirAuthority, and FallbackDir directory config options
20493       are set to their defaults. The default fallback directory list is
20494       currently empty, this fix will only change tor's behavior when it
20495       has default fallback directories. Includes unit tests for
20496       consider_adding_dir_servers(). Fixes bug 15642; bugfix on
20497       90f6071d8dc0 in 0.2.4.7-alpha. Patch by "teor".
20499   o Minor bugfixes (correctness):
20500     - For correctness, avoid modifying a constant string in
20501       handle_control_postdescriptor. Fixes bug 15546; bugfix
20502       on 0.1.1.16-rc.
20503     - Remove side-effects from tor_assert() calls. This was harmless,
20504       because we never disable assertions, but it is bad style and
20505       unnecessary. Fixes bug 15211; bugfix on 0.2.5.5, 0.2.2.36,
20506       and 0.2.0.10.
20508   o Minor bugfixes (hidden service):
20509     - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on
20510       a client authorized hidden service. Fixes bug 15823; bugfix
20511       on 0.2.1.6-alpha.
20512     - Remove an extraneous newline character from the end of hidden
20513       service descriptors. Fixes bug 15296; bugfix on 0.2.0.10-alpha.
20515   o Minor bugfixes (interface):
20516     - Print usage information for --dump-config when it is used without
20517       an argument. Also, fix the error message to use different wording
20518       and add newline at the end. Fixes bug 15541; bugfix
20519       on 0.2.5.1-alpha.
20521   o Minor bugfixes (logs):
20522     - When building Tor under Clang, do not include an extra set of
20523       parentheses in log messages that include function names. Fixes bug
20524       15269; bugfix on every released version of Tor when compiled with
20525       recent enough Clang.
20527   o Minor bugfixes (network):
20528     - When attempting to use fallback technique for network interface
20529       lookup, disregard loopback and multicast addresses since they are
20530       unsuitable for public communications.
20532   o Minor bugfixes (statistics):
20533     - Disregard the ConnDirectionStatistics torrc options when Tor is
20534       not a relay since in that mode of operation no sensible data is
20535       being collected and because Tor might run into measurement hiccups
20536       when running as a client for some time, then becoming a relay.
20537       Fixes bug 15604; bugfix on 0.2.2.35.
20539   o Minor bugfixes (test networks):
20540     - When self-testing reachability, use ExtendAllowPrivateAddresses to
20541       determine if local/private addresses imply reachability. The
20542       previous fix used TestingTorNetwork, which implies
20543       ExtendAllowPrivateAddresses, but this excluded rare configurations
20544       where ExtendAllowPrivateAddresses is set but TestingTorNetwork is
20545       not. Fixes bug 15771; bugfix on 0.2.6.1-alpha. Patch by "teor",
20546       issue discovered by CJ Ess.
20548   o Minor bugfixes (testing):
20549     - Check for matching value in server response in ntor_ref.py. Fixes
20550       bug 15591; bugfix on 0.2.4.8-alpha. Reported and fixed
20551       by "joelanders".
20552     - Set the severity correctly when testing
20553       get_interface_addresses_ifaddrs() and
20554       get_interface_addresses_win32(), so that the tests fail gracefully
20555       instead of triggering an assertion. Fixes bug 15759; bugfix on
20556       0.2.6.3-alpha. Reported by Nicolas Derive.
20558   o Code simplification and refactoring:
20559     - Move the hacky fallback code out of get_interface_address6() into
20560       separate function and get it covered with unit-tests. Resolves
20561       ticket 14710.
20562     - Refactor hidden service client-side cache lookup to intelligently
20563       report its various failure cases, and disentangle failure cases
20564       involving a lack of introduction points. Closes ticket 14391.
20565     - Use our own Base64 encoder instead of OpenSSL's, to allow more
20566       control over the output. Part of ticket 15652.
20568   o Documentation:
20569     - Improve the descriptions of statistics-related torrc options in
20570       the manpage to describe rationale and possible uses cases. Fixes
20571       issue 15550.
20572     - Improve the layout and formatting of ./configure --help messages.
20573       Closes ticket 15024. Patch from "cypherpunks".
20574     - Standardize on the term "server descriptor" in the manual page.
20575       Previously, we had used "router descriptor", "server descriptor",
20576       and "relay descriptor" interchangeably. Part of ticket 14987.
20578   o Removed code:
20579     - Remove `USE_OPENSSL_BASE64` and the corresponding fallback code
20580       and always use the internal Base64 decoder. The internal decoder
20581       has been part of tor since 0.2.0.10-alpha, and no one should
20582       be using the OpenSSL one. Part of ticket 15652.
20583     - Remove the 'tor_strclear()' function; use memwipe() instead.
20584       Closes ticket 14922.
20586   o Removed features:
20587     - Remove the (seldom-used) DynamicDHGroups feature. For anti-
20588       fingerprinting we now recommend pluggable transports; for forward-
20589       secrecy in TLS, we now use the P-256 group. Closes ticket 13736.
20590     - Remove the undocumented "--digests" command-line option. It
20591       complicated our build process, caused subtle build issues on
20592       multiple platforms, and is now redundant since we started
20593       including git version identifiers. Closes ticket 14742.
20594     - Tor no longer contains checks for ancient directory cache versions
20595       that didn't know about microdescriptors.
20596     - Tor no longer contains workarounds for stat files generated by
20597       super-old versions of Tor that didn't choose guards sensibly.
20600 Changes in version 0.2.4.27 - 2015-04-06
20601   Tor 0.2.4.27 backports two fixes from 0.2.6.7 for security issues that
20602   could be used by an attacker to crash hidden services, or crash clients
20603   visiting hidden services. Hidden services should upgrade as soon as
20604   possible; clients should upgrade whenever packages become available.
20606   This release also backports a simple improvement to make hidden
20607   services a bit less vulnerable to denial-of-service attacks.
20609   o Major bugfixes (security, hidden service):
20610     - Fix an issue that would allow a malicious client to trigger an
20611       assertion failure and halt a hidden service. Fixes bug 15600;
20612       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
20613     - Fix a bug that could cause a client to crash with an assertion
20614       failure when parsing a malformed hidden service descriptor. Fixes
20615       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
20617   o Minor features (DoS-resistance, hidden service):
20618     - Introduction points no longer allow multiple INTRODUCE1 cells to
20619       arrive on the same circuit. This should make it more expensive for
20620       attackers to overwhelm hidden services with introductions.
20621       Resolves ticket 15515.
20624 Changes in version 0.2.5.12 - 2015-04-06
20625   Tor 0.2.5.12 backports two fixes from 0.2.6.7 for security issues that
20626   could be used by an attacker to crash hidden services, or crash clients
20627   visiting hidden services. Hidden services should upgrade as soon as
20628   possible; clients should upgrade whenever packages become available.
20630   This release also backports a simple improvement to make hidden
20631   services a bit less vulnerable to denial-of-service attacks.
20633   o Major bugfixes (security, hidden service):
20634     - Fix an issue that would allow a malicious client to trigger an
20635       assertion failure and halt a hidden service. Fixes bug 15600;
20636       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
20637     - Fix a bug that could cause a client to crash with an assertion
20638       failure when parsing a malformed hidden service descriptor. Fixes
20639       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
20641   o Minor features (DoS-resistance, hidden service):
20642     - Introduction points no longer allow multiple INTRODUCE1 cells to
20643       arrive on the same circuit. This should make it more expensive for
20644       attackers to overwhelm hidden services with introductions.
20645       Resolves ticket 15515.
20648 Changes in version 0.2.6.7 - 2015-04-06
20649   Tor 0.2.6.7 fixes two security issues that could be used by an
20650   attacker to crash hidden services, or crash clients visiting hidden
20651   services. Hidden services should upgrade as soon as possible; clients
20652   should upgrade whenever packages become available.
20654   This release also contains two simple improvements to make hidden
20655   services a bit less vulnerable to denial-of-service attacks.
20657   o Major bugfixes (security, hidden service):
20658     - Fix an issue that would allow a malicious client to trigger an
20659       assertion failure and halt a hidden service. Fixes bug 15600;
20660       bugfix on 0.2.1.6-alpha. Reported by "disgleirio".
20661     - Fix a bug that could cause a client to crash with an assertion
20662       failure when parsing a malformed hidden service descriptor. Fixes
20663       bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC".
20665   o Minor features (DoS-resistance, hidden service):
20666     - Introduction points no longer allow multiple INTRODUCE1 cells to
20667       arrive on the same circuit. This should make it more expensive for
20668       attackers to overwhelm hidden services with introductions.
20669       Resolves ticket 15515.
20670     - Decrease the amount of reattempts that a hidden service performs
20671       when its rendezvous circuits fail. This reduces the computational
20672       cost for running a hidden service under heavy load. Resolves
20673       ticket 11447.
20676 Changes in version 0.2.6.6 - 2015-03-24
20677   Tor 0.2.6.6 is the first stable release in the 0.2.6 series.
20679   It adds numerous safety, security, correctness, and performance
20680   improvements. Client programs can be configured to use more kinds of
20681   sockets, AutomapHosts works better, the multithreading backend is
20682   improved, cell transmission is refactored, test coverage is much
20683   higher, more denial-of-service attacks are handled, guard selection is
20684   improved to handle long-term guards better, pluggable transports
20685   should work a bit better, and some annoying hidden service performance
20686   bugs should be addressed.
20688   o Minor bugfixes (portability):
20689     - Use the correct datatype in the SipHash-2-4 function to prevent
20690       compilers from assuming any sort of alignment. Fixes bug 15436;
20691       bugfix on 0.2.5.3-alpha.
20693 Changes in version 0.2.6.5-rc - 2015-03-18
20694   Tor 0.2.6.5-rc is the second and (hopefully) last release candidate in
20695   the 0.2.6. It fixes a small number of bugs found in 0.2.6.4-rc.
20697   o Major bugfixes (client):
20698     - Avoid crashing when making certain configuration option changes on
20699       clients. Fixes bug 15245; bugfix on 0.2.6.3-alpha. Reported
20700       by "anonym".
20702   o Major bugfixes (pluggable transports):
20703     - Initialize the extended OR Port authentication cookie before
20704       launching pluggable transports. This prevents a race condition
20705       that occurred when server-side pluggable transports would cache the
20706       authentication cookie before it has been (re)generated. Fixes bug
20707       15240; bugfix on 0.2.5.1-alpha.
20709   o Major bugfixes (portability):
20710     - Do not crash on startup when running on Solaris. Fixes a bug
20711       related to our fix for 9495; bugfix on 0.2.6.1-alpha. Reported
20712       by "ruebezahl".
20714   o Minor features (heartbeat):
20715     - On relays, report how many connections we negotiated using each
20716       version of the Tor link protocols. This information will let us
20717       know if removing support for very old versions of the Tor
20718       protocols is harming the network. Closes ticket 15212.
20720   o Code simplification and refactoring:
20721     - Refactor main loop to extract the 'loop' part. This makes it
20722       easier to run Tor under Shadow. Closes ticket 15176.
20725 Changes in version 0.2.5.11 - 2015-03-17
20726   Tor 0.2.5.11 is the second stable release in the 0.2.5 series.
20728   It backports several bugfixes from the 0.2.6 branch, including a
20729   couple of medium-level security fixes for relays and exit nodes.
20730   It also updates the list of directory authorities.
20732   o Directory authority changes:
20733     - Remove turtles as a directory authority.
20734     - Add longclaw as a new (v3) directory authority. This implements
20735       ticket 13296. This keeps the directory authority count at 9.
20736     - The directory authority Faravahar has a new IP address. This
20737       closes ticket 14487.
20739   o Major bugfixes (crash, OSX, security):
20740     - Fix a remote denial-of-service opportunity caused by a bug in
20741       OSX's _strlcat_chk() function. Fixes bug 15205; bug first appeared
20742       in OSX 10.9.
20744   o Major bugfixes (relay, stability, possible security):
20745     - Fix a bug that could lead to a relay crashing with an assertion
20746       failure if a buffer of exactly the wrong layout was passed to
20747       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
20748       0.2.0.10-alpha. Patch from 'cypherpunks'.
20749     - Do not assert if the 'data' pointer on a buffer is advanced to the
20750       very end of the buffer; log a BUG message instead. Only assert if
20751       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
20753   o Major bugfixes (exit node stability):
20754     - Fix an assertion failure that could occur under high DNS load.
20755       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
20756       diagnosed and fixed by "cypherpunks".
20758   o Major bugfixes (Linux seccomp2 sandbox):
20759     - Upon receiving sighup with the seccomp2 sandbox enabled, do not
20760       crash during attempts to call wait4. Fixes bug 15088; bugfix on
20761       0.2.5.1-alpha. Patch from "sanic".
20763   o Minor features (controller):
20764     - New "GETINFO bw-event-cache" to get information about recent
20765       bandwidth events. Closes ticket 14128. Useful for controllers to
20766       get recent bandwidth history after the fix for ticket 13988.
20768   o Minor features (geoip):
20769     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
20770     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
20771       Country database.
20773   o Minor bugfixes (client, automapping):
20774     - Avoid crashing on torrc lines for VirtualAddrNetworkIPv[4|6] when
20775       no value follows the option. Fixes bug 14142; bugfix on
20776       0.2.4.7-alpha. Patch by "teor".
20777     - Fix a memory leak when using AutomapHostsOnResolve. Fixes bug
20778       14195; bugfix on 0.1.0.1-rc.
20780   o Minor bugfixes (compilation):
20781     - Build without warnings with the stock OpenSSL srtp.h header, which
20782       has a duplicate declaration of SSL_get_selected_srtp_profile().
20783       Fixes bug 14220; this is OpenSSL's bug, not ours.
20785   o Minor bugfixes (directory authority):
20786     - Allow directory authorities to fetch more data from one another if
20787       they find themselves missing lots of votes. Previously, they had
20788       been bumping against the 10 MB queued data limit. Fixes bug 14261;
20789       bugfix on 0.1.2.5-alpha.
20790     - Enlarge the buffer to read bwauth generated files to avoid an
20791       issue when parsing the file in dirserv_read_measured_bandwidths().
20792       Fixes bug 14125; bugfix on 0.2.2.1-alpha.
20794   o Minor bugfixes (statistics):
20795     - Increase period over which bandwidth observations are aggregated
20796       from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1.
20798   o Minor bugfixes (preventative security, C safety):
20799     - When reading a hexadecimal, base-32, or base-64 encoded value from
20800       a string, always overwrite the whole output buffer. This prevents
20801       some bugs where we would look at (but fortunately, not reveal)
20802       uninitialized memory on the stack. Fixes bug 14013; bugfix on all
20803       versions of Tor.
20806 Changes in version 0.2.4.26 - 2015-03-17
20807   Tor 0.2.4.26 includes an updated list of directory authorities.  It
20808   also backports a couple of stability and security bugfixes from 0.2.5
20809   and beyond.
20811   o Directory authority changes:
20812     - Remove turtles as a directory authority.
20813     - Add longclaw as a new (v3) directory authority. This implements
20814       ticket 13296. This keeps the directory authority count at 9.
20815     - The directory authority Faravahar has a new IP address. This
20816       closes ticket 14487.
20818   o Major bugfixes (exit node stability, also in 0.2.6.3-alpha):
20819     - Fix an assertion failure that could occur under high DNS load.
20820       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
20821       diagnosed and fixed by "cypherpunks".
20823   o Major bugfixes (relay, stability, possible security, also in 0.2.6.4-rc):
20824     - Fix a bug that could lead to a relay crashing with an assertion
20825       failure if a buffer of exactly the wrong layout was passed to
20826       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
20827       0.2.0.10-alpha. Patch from 'cypherpunks'.
20828     - Do not assert if the 'data' pointer on a buffer is advanced to the
20829       very end of the buffer; log a BUG message instead. Only assert if
20830       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
20832   o Minor features (geoip):
20833     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
20834     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
20835       Country database.
20837 Changes in version 0.2.6.4-rc - 2015-03-09
20838   Tor 0.2.6.4-alpha fixes an issue in the directory code that an
20839   attacker might be able to use in order to crash certain Tor
20840   directories. It also resolves some minor issues left over from, or
20841   introduced in, Tor 0.2.6.3-alpha or earlier.
20843   o Major bugfixes (crash, OSX, security):
20844     - Fix a remote denial-of-service opportunity caused by a bug in
20845       OSX's _strlcat_chk() function. Fixes bug 15205; bug first appeared
20846       in OSX 10.9.
20848   o Major bugfixes (relay, stability, possible security):
20849     - Fix a bug that could lead to a relay crashing with an assertion
20850       failure if a buffer of exactly the wrong layout is passed to
20851       buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on
20852       0.2.0.10-alpha. Patch from "cypherpunks".
20853     - Do not assert if the 'data' pointer on a buffer is advanced to the
20854       very end of the buffer; log a BUG message instead. Only assert if
20855       it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha.
20857   o Major bugfixes (FreeBSD IPFW transparent proxy):
20858     - Fix address detection with FreeBSD transparent proxies, when
20859       "TransProxyType ipfw" is in use. Fixes bug 15064; bugfix
20860       on 0.2.5.4-alpha.
20862   o Major bugfixes (Linux seccomp2 sandbox):
20863     - Pass IPPROTO_TCP rather than 0 to socket(), so that the Linux
20864       seccomp2 sandbox doesn't fail. Fixes bug 14989; bugfix
20865       on 0.2.6.3-alpha.
20866     - Allow AF_UNIX hidden services to be used with the seccomp2
20867       sandbox. Fixes bug 15003; bugfix on 0.2.6.3-alpha.
20868     - Upon receiving sighup with the seccomp2 sandbox enabled, do not
20869       crash during attempts to call wait4. Fixes bug 15088; bugfix on
20870       0.2.5.1-alpha. Patch from "sanic".
20872   o Minor features (controller):
20873     - Messages about problems in the bootstrap process now include
20874       information about the server we were trying to connect to when we
20875       noticed the problem. Closes ticket 15006.
20877   o Minor features (geoip):
20878     - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database.
20879     - Update geoip6 to the March 3 2015 Maxmind GeoLite2
20880       Country database.
20882   o Minor features (logs):
20883     - Quiet some log messages in the heartbeat and at startup. Closes
20884       ticket 14950.
20886   o Minor bugfixes (certificate handling):
20887     - If an authority operator accidentally makes a signing certificate
20888       with a future publication time, do not discard its real signing
20889       certificates. Fixes bug 11457; bugfix on 0.2.0.3-alpha.
20890     - Remove any old authority certificates that have been superseded
20891       for at least two days. Previously, we would keep superseded
20892       certificates until they expired, if they were published close in
20893       time to the certificate that superseded them. Fixes bug 11454;
20894       bugfix on 0.2.1.8-alpha.
20896   o Minor bugfixes (compilation):
20897     - Fix a compilation warning on s390. Fixes bug 14988; bugfix
20898       on 0.2.5.2-alpha.
20899     - Fix a compilation warning on FreeBSD. Fixes bug 15151; bugfix
20900       on 0.2.6.2-alpha.
20902   o Minor bugfixes (testing):
20903     - Fix endianness issues in unit test for resolve_my_address() to
20904       have it pass on big endian systems. Fixes bug 14980; bugfix on
20905       Tor 0.2.6.3-alpha.
20906     - Avoid a side-effect in a tor_assert() in the unit tests. Fixes bug
20907       15188; bugfix on 0.1.2.3-alpha. Patch from Tom van der Woerdt.
20908     - When running the new 'make test-stem' target, use the configured
20909       python binary. Fixes bug 15037; bugfix on 0.2.6.3-alpha. Patch
20910       from "cypherpunks".
20911     - When running the zero-length-keys tests, do not use the default
20912       torrc file. Fixes bug 15033; bugfix on 0.2.6.3-alpha. Reported
20913       by "reezer".
20915   o Directory authority IP change:
20916     - The directory authority Faravahar has a new IP address. This
20917       closes ticket 14487.
20919   o Removed code:
20920     - Remove some lingering dead code that once supported mempools.
20921       Mempools were disabled by default in 0.2.5, and removed entirely
20922       in 0.2.6.3-alpha. Closes more of ticket 14848; patch
20923       by "cypherpunks".
20926 Changes in version 0.2.6.3-alpha - 2015-02-19
20927   Tor 0.2.6.3-alpha is the third (and hopefully final) alpha release in
20928   the 0.2.6.x series. It introduces support for more kinds of sockets,
20929   makes it harder to accidentally run an exit, improves our
20930   multithreading backend, incorporates several fixes for the
20931   AutomapHostsOnResolve option, and fixes numerous other bugs besides.
20933   If no major regressions or security holes are found in this version,
20934   the next version will be a release candidate.
20936   o Deprecated versions:
20937     - Tor relays older than 0.2.4.18-rc are no longer allowed to
20938       advertise themselves on the network. Closes ticket 13555.
20940   o Major features (security, unix domain sockets):
20941     - Allow SocksPort to be an AF_UNIX Unix Domain Socket. Now high risk
20942       applications can reach Tor without having to create AF_INET or
20943       AF_INET6 sockets, meaning they can completely disable their
20944       ability to make non-Tor network connections. To create a socket of
20945       this type, use "SocksPort unix:/path/to/socket". Implements
20946       ticket 12585.
20947     - Support mapping hidden service virtual ports to AF_UNIX sockets.
20948       The syntax is "HiddenServicePort 80 unix:/path/to/socket".
20949       Implements ticket 11485.
20951   o Major features (changed defaults):
20952     - Prevent relay operators from unintentionally running exits: When a
20953       relay is configured as an exit node, we now warn the user unless
20954       the "ExitRelay" option is set to 1. We warn even more loudly if
20955       the relay is configured with the default exit policy, since this
20956       can indicate accidental misconfiguration. Setting "ExitRelay 0"
20957       stops Tor from running as an exit relay. Closes ticket 10067.
20959   o Major features (directory system):
20960     - When downloading server- or microdescriptors from a directory
20961       server, we no longer launch multiple simultaneous requests to the
20962       same server. This reduces load on the directory servers,
20963       especially when directory guards are in use. Closes ticket 9969.
20964     - When downloading server- or microdescriptors over a tunneled
20965       connection, do not limit the length of our requests to what the
20966       Squid proxy is willing to handle. Part of ticket 9969.
20967     - Authorities can now vote on the correct digests and latest
20968       versions for different software packages. This allows packages
20969       that include Tor to use the Tor authority system as a way to get
20970       notified of updates and their correct digests. Implements proposal
20971       227. Closes ticket 10395.
20973   o Major features (guards):
20974     - Introduce the Guardfraction feature to improves load balancing on
20975       guard nodes. Specifically, it aims to reduce the traffic gap that
20976       guard nodes experience when they first get the Guard flag. This is
20977       a required step if we want to increase the guard lifetime to 9
20978       months or greater.  Closes ticket 9321.
20980   o Major features (performance):
20981     - Make the CPU worker implementation more efficient by avoiding the
20982       kernel and lengthening pipelines. The original implementation used
20983       sockets to transfer data from the main thread to the workers, and
20984       didn't allow any thread to be assigned more than a single piece of
20985       work at once. The new implementation avoids communications
20986       overhead by making requests in shared memory, avoiding kernel IO
20987       where possible, and keeping more requests in flight at once.
20988       Implements ticket 9682.
20990   o Major features (relay):
20991     - Raise the minimum acceptable configured bandwidth rate for bridges
20992       to 50 KiB/sec and for relays to 75 KiB/sec. (The old values were
20993       20 KiB/sec.) Closes ticket 13822.
20995   o Major bugfixes (exit node stability):
20996     - Fix an assertion failure that could occur under high DNS load.
20997       Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr";
20998       diagnosed and fixed by "cypherpunks".
21000   o Major bugfixes (mixed relay-client operation):
21001     - When running as a relay and client at the same time (not
21002       recommended), if we decide not to use a new guard because we want
21003       to retry older guards, only close the locally-originating circuits
21004       passing through that guard. Previously we would close all the
21005       circuits through that guard. Fixes bug 9819; bugfix on
21006       0.2.1.1-alpha. Reported by "skruffy".
21008   o Minor features (build):
21009     - New --disable-system-torrc compile-time option to prevent Tor from
21010       looking for the system-wide torrc or torrc-defaults files.
21011       Resolves ticket 13037.
21013   o Minor features (controller):
21014     - Include SOCKS_USERNAME and SOCKS_PASSWORD values in controller
21015       events so controllers can observe circuit isolation inputs. Closes
21016       ticket 8405.
21017     - ControlPort now supports the unix:/path/to/socket syntax as an
21018       alternative to the ControlSocket option, for consistency with
21019       SocksPort and HiddenServicePort. Closes ticket 14451.
21020     - New "GETINFO bw-event-cache" to get information about recent
21021       bandwidth events. Closes ticket 14128. Useful for controllers to
21022       get recent bandwidth history after the fix for ticket 13988.
21024   o Minor features (Denial of service resistance):
21025     - Count the total number of bytes used storing hidden service
21026       descriptors against the value of MaxMemInQueues. If we're low on
21027       memory, and more than 20% of our memory is used holding hidden
21028       service descriptors, free them until no more than 10% of our
21029       memory holds hidden service descriptors. Free the least recently
21030       fetched descriptors first. Resolves ticket 13806.
21031     - When we have recently been under memory pressure (over 3/4 of
21032       MaxMemInQueues is allocated), then allocate smaller zlib objects
21033       for small requests. Closes ticket 11791.
21035   o Minor features (geoip):
21036     - Update geoip and geoip6 files to the January 7 2015 Maxmind
21037       GeoLite2 Country database.
21039   o Minor features (guard nodes):
21040     - Reduce the time delay before saving guard status to disk from 10
21041       minutes to 30 seconds (or from one hour to 10 minutes if
21042       AvoidDiskWrites is set). Closes ticket 12485.
21044   o Minor features (hidden service):
21045     - Make Sybil attacks against hidden services harder by changing the
21046       minimum time required to get the HSDir flag from 25 hours up to 96
21047       hours. Addresses ticket 14149.
21048     - New option "HiddenServiceAllowUnknownPorts" to allow hidden
21049       services to disable the anti-scanning feature introduced in
21050       0.2.6.2-alpha. With this option not set, a connection to an
21051       unlisted port closes the circuit. With this option set, only a
21052       RELAY_DONE cell is sent. Closes ticket 14084.
21054   o Minor features (interface):
21055     - Implement "-f -" command-line option to read torrc configuration
21056       from standard input, if you don't want to store the torrc file in
21057       the file system. Implements feature 13865.
21059   o Minor features (logging):
21060     - Add a count of unique clients to the bridge heartbeat message.
21061       Resolves ticket 6852.
21062     - Suppress "router info incompatible with extra info" message when
21063       reading extrainfo documents from cache. (This message got loud
21064       around when we closed bug 9812 in 0.2.6.2-alpha.) Closes
21065       ticket 13762.
21066     - Elevate hidden service authorized-client message from DEBUG to
21067       INFO. Closes ticket 14015.
21069   o Minor features (stability):
21070     - Add assertions in our hash-table iteration code to check for
21071       corrupted values that could cause infinite loops. Closes
21072       ticket 11737.
21074   o Minor features (systemd):
21075     - Various improvements and modernizations in systemd hardening
21076       support. Closes ticket 13805. Patch from Craig Andrews.
21078   o Minor features (testing networks):
21079     - Drop the minimum RendPostPeriod on a testing network to 5 seconds,
21080       and the default on a testing network to 2 minutes. Drop the
21081       MIN_REND_INITIAL_POST_DELAY on a testing network to 5 seconds, but
21082       keep the default on a testing network at 30 seconds. This reduces
21083       HS bootstrap time to around 25 seconds. Also, change the default
21084       time in test-network.sh to match. Closes ticket 13401. Patch
21085       by "teor".
21086     - Create TestingDirAuthVoteHSDir to correspond to
21087       TestingDirAuthVoteExit/Guard. Ensures that authorities vote the
21088       HSDir flag for the listed relays regardless of uptime or ORPort
21089       connectivity. Respects the value of VoteOnHidServDirectoriesV2.
21090       Partial implementation for ticket 14067. Patch by "teor".
21092   o Minor features (tor2web mode):
21093     - Introduce the config option Tor2webRendezvousPoints, which allows
21094       clients in Tor2webMode to select a specific Rendezvous Point to be
21095       used in HS circuits. This might allow better performance for
21096       Tor2Web nodes. Implements ticket 12844.
21098   o Minor bugfixes (client DNS):
21099     - Report the correct cached DNS expiration times on SOCKS port or in
21100       DNS replies. Previously, we would report everything as "never
21101       expires." Fixes bug 14193; bugfix on 0.2.3.17-beta.
21102     - Avoid a small memory leak when we find a cached answer for a
21103       reverse DNS lookup in a client-side DNS cache. (Remember, client-
21104       side DNS caching is off by default, and is not recommended.) Fixes
21105       bug 14259; bugfix on 0.2.0.1-alpha.
21107   o Minor bugfixes (client, automapping):
21108     - Avoid crashing on torrc lines for VirtualAddrNetworkIPv[4|6] when
21109       no value follows the option. Fixes bug 14142; bugfix on
21110       0.2.4.7-alpha. Patch by "teor".
21111     - Fix a memory leak when using AutomapHostsOnResolve. Fixes bug
21112       14195; bugfix on 0.1.0.1-rc.
21113     - Prevent changes to other options from removing the wildcard value
21114       "." from "AutomapHostsSuffixes". Fixes bug 12509; bugfix
21115       on 0.2.0.1-alpha.
21116     - Allow MapAddress and AutomapHostsOnResolve to work together when
21117       an address is mapped into another address type (like .onion) that
21118       must be automapped at resolve time. Fixes bug 7555; bugfix
21119       on 0.2.0.1-alpha.
21121   o Minor bugfixes (client, bridges):
21122     - When we are using bridges and we had a network connectivity
21123       problem, only retry connecting to our currently configured
21124       bridges, not all bridges we know about and remember using. Fixes
21125       bug 14216; bugfix on 0.2.2.17-alpha.
21127   o Minor bugfixes (client, IPv6):
21128     - Reject socks requests to literal IPv6 addresses when IPv6Traffic
21129       flag is not set; and not because the NoIPv4Traffic flag was set.
21130       Previously we'd looked at the NoIPv4Traffic flag for both types of
21131       literal addresses. Fixes bug 14280; bugfix on 0.2.4.7-alpha.
21133   o Minor bugfixes (compilation):
21134     - The address of an array in the middle of a structure will always
21135       be non-NULL. clang recognises this and complains. Disable the
21136       tautologous and redundant check to silence this warning. Fixes bug
21137       14001; bugfix on 0.2.1.2-alpha.
21138     - Avoid warnings when building with systemd 209 or later. Fixes bug
21139       14072; bugfix on 0.2.6.2-alpha. Patch from "h.venev".
21140     - Compile correctly with (unreleased) OpenSSL 1.1.0 headers.
21141       Addresses ticket 14188.
21142     - Build without warnings with the stock OpenSSL srtp.h header, which
21143       has a duplicate declaration of SSL_get_selected_srtp_profile().
21144       Fixes bug 14220; this is OpenSSL's bug, not ours.
21145     - Do not compile any code related to Tor2Web mode when Tor2Web mode
21146       is not enabled at compile time. Previously, this code was included
21147       in a disabled state. See discussion on ticket 12844.
21148     - Remove the --disable-threads configure option again. It was
21149       accidentally partially reintroduced in 29ac883606d6d. Fixes bug
21150       14819; bugfix on 0.2.6.2-alpha.
21152   o Minor bugfixes (controller):
21153     - Report "down" in response to the "GETINFO entry-guards" command
21154       when relays are down with an unreachable_since value. Previously,
21155       we would report "up". Fixes bug 14184; bugfix on 0.1.2.2-alpha.
21156     - Avoid crashing on a malformed EXTENDCIRCUIT command. Fixes bug
21157       14116; bugfix on 0.2.2.9-alpha.
21158     - Add a code for the END_CIRC_REASON_IP_NOW_REDUNDANT circuit close
21159       reason. Fixes bug 14207; bugfix on 0.2.6.2-alpha.
21161   o Minor bugfixes (directory authority):
21162     - Allow directory authorities to fetch more data from one another if
21163       they find themselves missing lots of votes. Previously, they had
21164       been bumping against the 10 MB queued data limit. Fixes bug 14261;
21165       bugfix on 0.1.2.5-alpha.
21166     - Do not attempt to download extrainfo documents which we will be
21167       unable to validate with a matching server descriptor. Fixes bug
21168       13762; bugfix on 0.2.0.1-alpha.
21169     - Fix a bug that was truncating AUTHDIR_NEWDESC events sent to the
21170       control port. Fixes bug 14953; bugfix on 0.2.0.1-alpha.
21171     - Enlarge the buffer to read bwauth generated files to avoid an
21172       issue when parsing the file in dirserv_read_measured_bandwidths().
21173       Fixes bug 14125; bugfix on 0.2.2.1-alpha.
21175   o Minor bugfixes (file handling):
21176     - Stop failing when key files are zero-length. Instead, generate new
21177       keys, and overwrite the empty key files. Fixes bug 13111; bugfix
21178       on all versions of Tor. Patch by "teor".
21179     - Stop generating a fresh .old RSA onion key file when the .old file
21180       is missing. Fixes part of 13111; bugfix on 0.0.6rc1.
21181     - Avoid overwriting .old key files with empty key files.
21182     - Skip loading zero-length extrainfo store, router store, stats,
21183       state, and key files.
21184     - Avoid crashing when trying to reload a torrc specified as a
21185       relative path with RunAsDaemon turned on. Fixes bug 13397; bugfix
21186       on 0.2.3.11-alpha.
21188   o Minor bugfixes (hidden services):
21189     - Close the introduction circuit when we have no more usable intro
21190       points, instead of waiting for it to time out. This also ensures
21191       that no follow-up HS descriptor fetch is triggered when the
21192       circuit eventually times out. Fixes bug 14224; bugfix on 0.0.6.
21193     - When fetching a hidden service descriptor for a down service that
21194       was recently up, do not keep refetching until we try the same
21195       replica twice in a row. Fixes bug 14219; bugfix on 0.2.0.10-alpha.
21196     - Successfully launch Tor with a nonexistent hidden service
21197       directory. Our fix for bug 13942 didn't catch this case. Fixes bug
21198       14106; bugfix on 0.2.6.2-alpha.
21200   o Minor bugfixes (logging):
21201     - Avoid crashing when there are more log domains than entries in
21202       domain_list. Bugfix on 0.2.3.1-alpha.
21203     - Add a string representation for LD_SCHED. Fixes bug 14740; bugfix
21204       on 0.2.6.1-alpha.
21205     - Don't log messages to stdout twice when starting up. Fixes bug
21206       13993; bugfix on 0.2.6.1-alpha.
21208   o Minor bugfixes (parsing):
21209     - Stop accepting milliseconds (or other junk) at the end of
21210       descriptor publication times. Fixes bug 9286; bugfix on 0.0.2pre25.
21211     - Support two-number and three-number version numbers correctly, in
21212       case we change the Tor versioning system in the future. Fixes bug
21213       13661; bugfix on 0.0.8pre1.
21215   o Minor bugfixes (path counting):
21216     - When deciding whether the consensus lists any exit nodes, count
21217       the number listed in the consensus, not the number we have
21218       descriptors for. Fixes part of bug 14918; bugfix on 0.2.6.2-alpha.
21219     - When deciding whether we have any exit nodes, only examine
21220       ExitNodes when the ExitNodes option is actually set. Fixes part of
21221       bug 14918; bugfix on 0.2.6.2-alpha.
21222     - Get rid of redundant and possibly scary warnings that we are
21223       missing directory information while we bootstrap. Fixes part of
21224       bug 14918; bugfix on 0.2.6.2-alpha.
21226   o Minor bugfixes (portability):
21227     - Fix the ioctl()-based network interface lookup code so that it
21228       will work on systems that have variable-length struct ifreq, for
21229       example Mac OS X.
21230     - Fix scheduler compilation on targets where char is unsigned. Fixes
21231       bug 14764; bugfix on 0.2.6.2-alpha. Reported by Christian Kujau.
21233   o Minor bugfixes (sandbox):
21234     - Allow glibc fatal errors to be sent to stderr before Tor exits.
21235       Previously, glibc would try to write them to /dev/tty, and the
21236       sandbox would trap the call and make Tor exit prematurely. Fixes
21237       bug 14759; bugfix on 0.2.5.1-alpha.
21239   o Minor bugfixes (shutdown):
21240     - When shutting down, always call event_del() on lingering read or
21241       write events before freeing them. Otherwise, we risk double-frees
21242       or read-after-frees in event_base_free(). Fixes bug 12985; bugfix
21243       on 0.1.0.2-rc.
21245   o Minor bugfixes (small memory leaks):
21246     - Avoid leaking memory when using IPv6 virtual address mappings.
21247       Fixes bug 14123; bugfix on 0.2.4.7-alpha. Patch by Tom van
21248       der Woerdt.
21250   o Minor bugfixes (statistics):
21251     - Increase period over which bandwidth observations are aggregated
21252       from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1.
21254   o Minor bugfixes (systemd support):
21255     - Fix detection and operation of systemd watchdog. Fixes part of bug
21256       14141; bugfix on 0.2.6.2-alpha. Patch from Tomasz Torcz.
21257     - Run correctly under systemd with the RunAsDaemon option set. Fixes
21258       part of bug 14141; bugfix on 0.2.5.7-rc. Patch from Tomasz Torcz.
21259     - Inform the systemd supervisor about more changes in the Tor
21260       process status. Implements part of ticket 14141. Patch from
21261       Tomasz Torcz.
21262     - Cause the "--disable-systemd" option to actually disable systemd
21263       support. Fixes bug 14350; bugfix on 0.2.6.2-alpha. Patch
21264       from "blueness".
21266   o Minor bugfixes (TLS):
21267     - Check more thoroughly throughout the TLS code for possible
21268       unlogged TLS errors. Possible diagnostic or fix for bug 13319.
21270   o Minor bugfixes (transparent proxy):
21271     - Use getsockname, not getsockopt, to retrieve the address for a
21272       TPROXY-redirected connection. Fixes bug 13796; bugfix
21273       on 0.2.5.2-alpha.
21275   o Code simplification and refactoring:
21276     - Move fields related to isolating and configuring client ports into
21277       a shared structure. Previously, they were duplicated across
21278       port_cfg_t, listener_connection_t, and edge_connection_t. Failure
21279       to copy them correctly had been the cause of at least one bug in
21280       the past. Closes ticket 8546.
21281     - Refactor the get_interface_addresses_raw() doom-function into
21282       multiple smaller and simpler subfunctions. Cover the resulting
21283       subfunctions with unit-tests. Fixes a significant portion of
21284       issue 12376.
21285     - Remove workaround in dirserv_thinks_router_is_hs_dir() that was
21286       only for version <= 0.2.2.24 which is now deprecated. Closes
21287       ticket 14202.
21288     - Remove a test for a long-defunct broken version-one
21289       directory server.
21291   o Documentation:
21292     - Adding section on OpenBSD to our TUNING document. Thanks to mmcc
21293       for writing the OpenBSD-specific tips. Resolves ticket 13702.
21294     - Make the tor-resolve documentation match its help string and its
21295       options. Resolves part of ticket 14325.
21296     - Log a more useful error message from tor-resolve when failing to
21297       look up a hidden service address. Resolves part of ticket 14325.
21299   o Downgraded warnings:
21300     - Don't warn when we've attempted to contact a relay using the wrong
21301       ntor onion key. Closes ticket 9635.
21303   o Removed features:
21304     - To avoid confusion with the "ExitRelay" option, "ExitNode" is no
21305       longer silently accepted as an alias for "ExitNodes".
21306     - The --enable-mempool and --enable-buf-freelists options, which
21307       were originally created to work around bad malloc implementations,
21308       no longer exist. They were off-by-default in 0.2.5. Closes
21309       ticket 14848.
21311   o Testing:
21312     - Make the checkdir/perms test complete successfully even if the
21313       global umask is not 022. Fixes bug 14215; bugfix on 0.2.6.2-alpha.
21314     - Test that tor does not fail when key files are zero-length. Check
21315       that tor generates new keys, and overwrites the empty key files.
21316     - Test that tor generates new keys when keys are missing
21317       (existing behavior).
21318     - Test that tor does not overwrite key files that already contain
21319       data (existing behavior). Tests bug 13111. Patch by "teor".
21320     - New "make test-stem" target to run stem integration tests.
21321       Requires that the "STEM_SOURCE_DIR" environment variable be set.
21322       Closes ticket 14107.
21323     - Make the test_cmdline_args.py script work correctly on Windows.
21324       Patch from Gisle Vanem.
21325     - Move the slower unit tests into a new "./src/test/test-slow"
21326       binary that can be run independently of the other tests. Closes
21327       ticket 13243.
21328     - Avoid undefined behavior when sampling huge values from the
21329       Laplace distribution. This made unittests fail on Raspberry Pi.
21330       Bug found by Device. Fixes bug 14090; bugfix on 0.2.6.2-alpha.
21333 Changes in version 0.2.6.2-alpha - 2014-12-31
21334   Tor 0.2.6.2-alpha is the second alpha release in the 0.2.6.x series.
21335   It introduces a major new backend for deciding when to send cells on
21336   channels, which should lead down the road to big performance
21337   increases. It contains security and statistics features for better
21338   work on hidden services, and numerous bugfixes.
21340   This release contains many new unit tests, along with major
21341   performance improvements for running testing networks using Chutney.
21342   Thanks to a series of patches contributed by "teor", testing networks
21343   should now bootstrap in seconds, rather than minutes.
21345   o Major features (relay, infrastructure):
21346     - Complete revision of the code that relays use to decide which cell
21347       to send next. Formerly, we selected the best circuit to write on
21348       each channel, but we didn't select among channels in any
21349       sophisticated way. Now, we choose the best circuits globally from
21350       among those whose channels are ready to deliver traffic.
21352       This patch implements a new inter-cmux comparison API, a global
21353       high/low watermark mechanism and a global scheduler loop for
21354       transmission prioritization across all channels as well as among
21355       circuits on one channel. This schedule is currently tuned to
21356       (tolerantly) avoid making changes in network performance, but it
21357       should form the basis for major circuit performance increases in
21358       the future. Code by Andrea; tuning by Rob Jansen; implements
21359       ticket 9262.
21361   o Major features (hidden services):
21362     - Make HS port scanning more difficult by immediately closing the
21363       circuit when a user attempts to connect to a nonexistent port.
21364       Closes ticket 13667.
21365     - Add a HiddenServiceStatistics option that allows Tor relays to
21366       gather and publish statistics about the overall size and volume of
21367       hidden service usage. Specifically, when this option is turned on,
21368       an HSDir will publish an approximate number of hidden services
21369       that have published descriptors to it the past 24 hours. Also, if
21370       a relay has acted as a hidden service rendezvous point, it will
21371       publish the approximate amount of rendezvous cells it has relayed
21372       the past 24 hours. The statistics themselves are obfuscated so
21373       that the exact values cannot be derived. For more details see
21374       proposal 238, "Better hidden service stats from Tor relays". This
21375       feature is currently disabled by default. Implements feature 13192.
21377   o Major bugfixes (client, automap):
21378     - Repair automapping with IPv6 addresses. This automapping should
21379       have worked previously, but one piece of debugging code that we
21380       inserted to detect a regression actually caused the regression to
21381       manifest itself again. Fixes bug 13811 and bug 12831; bugfix on
21382       0.2.4.7-alpha. Diagnosed and fixed by Francisco Blas
21383       Izquierdo Riera.
21385   o Major bugfixes (hidden services):
21386     - When closing an introduction circuit that was opened in parallel
21387       with others, don't mark the introduction point as unreachable.
21388       Previously, the first successful connection to an introduction
21389       point would make the other introduction points get marked as
21390       having timed out. Fixes bug 13698; bugfix on 0.0.6rc2.
21392   o Directory authority changes:
21393     - Remove turtles as a directory authority.
21394     - Add longclaw as a new (v3) directory authority. This implements
21395       ticket 13296. This keeps the directory authority count at 9.
21397   o Major removed features:
21398     - Tor clients no longer support connecting to hidden services
21399       running on Tor 0.2.2.x and earlier; the Support022HiddenServices
21400       option has been removed. (There shouldn't be any hidden services
21401       running these versions on the network.) Closes ticket 7803.
21403   o Minor features (client):
21404     - Validate hostnames in SOCKS5 requests more strictly. If SafeSocks
21405       is enabled, reject requests with IP addresses as hostnames.
21406       Resolves ticket 13315.
21408   o Minor features (controller):
21409     - Add a "SIGNAL HEARTBEAT" controller command that tells Tor to
21410       write an unscheduled heartbeat message to the log. Implements
21411       feature 9503.
21413   o Minor features (geoip):
21414     - Update geoip and geoip6 to the November 15 2014 Maxmind GeoLite2
21415       Country database.
21417   o Minor features (hidden services):
21418     - When re-enabling the network, don't try to build introduction
21419       circuits until we have successfully built a circuit. This makes
21420       hidden services come up faster when the network is re-enabled.
21421       Patch from "akwizgran". Closes ticket 13447.
21422     - When we fail to retrieve a hidden service descriptor, send the
21423       controller an "HS_DESC FAILED" controller event. Implements
21424       feature 13212.
21425     - New HiddenServiceDirGroupReadable option to cause hidden service
21426       directories and hostname files to be created group-readable. Patch
21427       from "anon", David Stainton, and "meejah". Closes ticket 11291.
21429   o Minor features (systemd):
21430     - Where supported, when running with systemd, report successful
21431       startup to systemd. Part of ticket 11016. Patch by Michael Scherer.
21432     - When running with systemd, support systemd watchdog messages. Part
21433       of ticket 11016. Patch by Michael Scherer.
21435   o Minor features (transparent proxy):
21436     - Update the transparent proxy option checks to allow for both ipfw
21437       and pf on OS X. Closes ticket 14002.
21438     - Use the correct option when using IPv6 with transparent proxy
21439       support on Linux. Resolves 13808. Patch by Francisco Blas
21440       Izquierdo Riera.
21442   o Minor bugfixes (preventative security, C safety):
21443     - When reading a hexadecimal, base-32, or base-64 encoded value from
21444       a string, always overwrite the whole output buffer. This prevents
21445       some bugs where we would look at (but fortunately, not reveal)
21446       uninitialized memory on the stack. Fixes bug 14013; bugfix on all
21447       versions of Tor.
21448     - Clear all memory targeted by tor_addr_{to,from}_sockaddr(), not
21449       just the part that's used. This makes it harder for data leak bugs
21450       to occur in the event of other programming failures. Resolves
21451       ticket 14041.
21453   o Minor bugfixes (client, microdescriptors):
21454     - Use a full 256 bits of the SHA256 digest of a microdescriptor when
21455       computing which microdescriptors to download. This keeps us from
21456       erroneous download behavior if two microdescriptor digests ever
21457       have the same first 160 bits. Fixes part of bug 13399; bugfix
21458       on 0.2.3.1-alpha.
21459     - Reset a router's status if its microdescriptor digest changes,
21460       even if the first 160 bits remain the same. Fixes part of bug
21461       13399; bugfix on 0.2.3.1-alpha.
21463   o Minor bugfixes (compilation):
21464     - Silence clang warnings under --enable-expensive-hardening,
21465       including implicit truncation of 64 bit values to 32 bit, const
21466       char assignment to self, tautological compare, and additional
21467       parentheses around equality tests. Fixes bug 13577; bugfix
21468       on 0.2.5.4-alpha.
21469     - Fix a clang warning about checking whether an address in the
21470       middle of a structure is NULL. Fixes bug 14001; bugfix
21471       on 0.2.1.2-alpha.
21473   o Minor bugfixes (hidden services):
21474     - Correctly send a controller event when we find that a rendezvous
21475       circuit has finished. Fixes bug 13936; bugfix on 0.1.1.5-alpha.
21476     - Pre-check directory permissions for new hidden-services to avoid
21477       at least one case of "Bug: Acting on config options left us in a
21478       broken state. Dying." Fixes bug 13942; bugfix on 0.0.6pre1.
21479     - When adding a new hidden service (for example, via SETCONF), Tor
21480       no longer congratulates the user for running a relay. Fixes bug
21481       13941; bugfix on 0.2.6.1-alpha.
21482     - When fetching hidden service descriptors, we now check not only
21483       for whether we got the hidden service we had in mind, but also
21484       whether we got the particular descriptors we wanted. This prevents
21485       a class of inefficient but annoying DoS attacks by hidden service
21486       directories. Fixes bug 13214; bugfix on 0.2.1.6-alpha. Reported
21487       by "special".
21489   o Minor bugfixes (Linux seccomp2 sandbox):
21490     - Make transparent proxy support work along with the seccomp2
21491       sandbox. Fixes part of bug 13808; bugfix on 0.2.5.1-alpha. Patch
21492       by Francisco Blas Izquierdo Riera.
21493     - Fix a memory leak in tor-resolve when running with the sandbox
21494       enabled. Fixes bug 14050; bugfix on 0.2.5.9-rc.
21496   o Minor bugfixes (logging):
21497     - Downgrade warnings about RSA signature failures to info log level.
21498       Emit a warning when an extra info document is found incompatible
21499       with a corresponding router descriptor. Fixes bug 9812; bugfix
21500       on 0.0.6rc3.
21501     - Make connection_ap_handshake_attach_circuit() log the circuit ID
21502       correctly. Fixes bug 13701; bugfix on 0.0.6.
21504   o Minor bugfixes (misc):
21505     - Stop allowing invalid address patterns like "*/24" that contain
21506       both a wildcard address and a bit prefix length. This affects all
21507       our address-range parsing code. Fixes bug 7484; bugfix
21508       on 0.0.2pre14.
21510   o Minor bugfixes (testing networks, fast startup):
21511     - Allow Tor to build circuits using a consensus with no exits. If
21512       the consensus has no exits (typical of a bootstrapping test
21513       network), allow Tor to build circuits once enough descriptors have
21514       been downloaded. This assists in bootstrapping a testing Tor
21515       network. Fixes bug 13718; bugfix on 0.2.4.10-alpha. Patch
21516       by "teor".
21517     - When V3AuthVotingInterval is low, give a lower If-Modified-Since
21518       header to directory servers. This allows us to obtain consensuses
21519       promptly when the consensus interval is very short. This assists
21520       in bootstrapping a testing Tor network. Fixes parts of bugs 13718
21521       and 13963; bugfix on 0.2.0.3-alpha. Patch by "teor".
21522     - Stop assuming that private addresses are local when checking
21523       reachability in a TestingTorNetwork. Instead, when testing, assume
21524       all OR connections are remote. (This is necessary due to many test
21525       scenarios running all relays on localhost.) This assists in
21526       bootstrapping a testing Tor network. Fixes bug 13924; bugfix on
21527       0.1.0.1-rc. Patch by "teor".
21528     - Avoid building exit circuits from a consensus with no exits. Now
21529       thanks to our fix for 13718, we accept a no-exit network as not
21530       wholly lost, but we need to remember not to try to build exit
21531       circuits on it. Closes ticket 13814; patch by "teor".
21532     - Stop requiring exits to have non-zero bandwithcapacity in a
21533       TestingTorNetwork. Instead, when TestingMinExitFlagThreshold is 0,
21534       ignore exit bandwidthcapacity. This assists in bootstrapping a
21535       testing Tor network. Fixes parts of bugs 13718 and 13839; bugfix
21536       on 0.2.0.3-alpha. Patch by "teor".
21537     - Add "internal" to some bootstrap statuses when no exits are
21538       available. If the consensus does not contain Exits, Tor will only
21539       build internal circuits. In this case, relevant statuses will
21540       contain the word "internal" as indicated in the Tor control-
21541        spec.txt. When bootstrap completes, Tor will be ready to build
21542       internal circuits. If a future consensus contains Exits, exit
21543       circuits may become available. Fixes part of bug 13718; bugfix on
21544       0.2.4.10-alpha. Patch by "teor".
21545     - Decrease minimum consensus interval to 10 seconds when
21546       TestingTorNetwork is set, or 5 seconds for the first consensus.
21547       Fix assumptions throughout the code that assume larger intervals.
21548       Fixes bugs 13718 and 13823; bugfix on 0.2.0.3-alpha. Patch
21549       by "teor".
21550     - Avoid excluding guards from path building in minimal test
21551       networks, when we're in a test network and excluding guards would
21552       exclude all relays. This typically occurs in incredibly small tor
21553       networks, and those using "TestingAuthVoteGuard *". Fixes part of
21554       bug 13718; bugfix on 0.1.1.11-alpha. Patch by "teor".
21556   o Code simplification and refactoring:
21557     - Stop using can_complete_circuits as a global variable; access it
21558       with a function instead.
21559     - Avoid using operators directly as macro arguments: this lets us
21560       apply coccinelle transformations to our codebase more directly.
21561       Closes ticket 13172.
21562     - Combine the functions used to parse ClientTransportPlugin and
21563       ServerTransportPlugin into a single function. Closes ticket 6456.
21564     - Add inline functions and convenience macros for inspecting channel
21565       state. Refactor the code to use convenience macros instead of
21566       checking channel state directly. Fixes issue 7356.
21567     - Document all members of was_router_added_t and rename
21568       ROUTER_WAS_NOT_NEW to ROUTER_IS_ALREADY_KNOWN to make it less
21569       confusable with ROUTER_WAS_TOO_OLD. Fixes issue 13644.
21570     - In connection_exit_begin_conn(), use END_CIRC_REASON_TORPROTOCOL
21571       constant instead of hardcoded value. Fixes issue 13840.
21572     - Refactor our generic strmap and digestmap types into a single
21573       implementation, so that we can add a new digest256map
21574       type trivially.
21576   o Documentation:
21577     - Document the bridge-authority-only 'networkstatus-bridges' file.
21578       Closes ticket 13713; patch from "tom".
21579     - Fix typo in PredictedPortsRelevanceTime option description in
21580       manpage. Resolves issue 13707.
21581     - Stop suggesting that users specify relays by nickname: it isn't a
21582       good idea. Also, properly cross-reference how to specify relays in
21583       all parts of manual documenting options that take a list of
21584       relays. Closes ticket 13381.
21585     - Clarify the HiddenServiceDir option description in manpage to make
21586       it clear that relative paths are taken with respect to the current
21587       working directory. Also clarify that this behavior is not
21588       guaranteed to remain indefinitely. Fixes issue 13913.
21590   o Testing:
21591     - New tests for many parts of channel, relay, and circuitmux
21592       functionality. Code by Andrea; part of 9262.
21593     - New tests for parse_transport_line(). Part of ticket 6456.
21594     - In the unit tests, use chgrp() to change the group of the unit
21595       test temporary directory to the current user, so that the sticky
21596       bit doesn't interfere with tests that check directory groups.
21597       Closes 13678.
21598     - Add unit tests for resolve_my_addr(). Part of ticket 12376; patch
21599       by 'rl1987'.
21602 Changes in version 0.2.6.1-alpha - 2014-10-30
21603   Tor 0.2.6.1-alpha is the first release in the Tor 0.2.6.x series. It
21604   includes numerous code cleanups and new tests, and fixes a large
21605   number of annoying bugs. Out-of-memory conditions are handled better
21606   than in 0.2.5, pluggable transports have improved proxy support, and
21607   clients now use optimistic data for contacting hidden services. Also,
21608   we are now more robust to changes in what we consider a parseable
21609   directory object, so that tightening restrictions does not have a risk
21610   of introducing infinite download loops.
21612   This is the first alpha release in a new series, so expect there to be
21613   bugs. Users who would rather test out a more stable branch should stay
21614   with 0.2.5.x for now.
21616   o New compiler and system requirements:
21617     - Tor 0.2.6.x requires that your compiler support more of the C99
21618       language standard than before. The 'configure' script now detects
21619       whether your compiler supports C99 mid-block declarations and
21620       designated initializers. If it does not, Tor will not compile.
21622       We may revisit this requirement if it turns out that a significant
21623       number of people need to build Tor with compilers that don't
21624       bother implementing a 15-year-old standard. Closes ticket 13233.
21625     - Tor no longer supports systems without threading support. When we
21626       began working on Tor, there were several systems that didn't have
21627       threads, or where the thread support wasn't able to run the
21628       threads of a single process on multiple CPUs. That no longer
21629       holds: every system where Tor needs to run well now has threading
21630       support. Resolves ticket 12439.
21632   o Removed platform support:
21633     - We no longer include special code to build on Windows CE; as far
21634       as we know, nobody has used Tor on Windows CE in a very long time.
21635       Closes ticket 11446.
21637   o Major features (bridges):
21638     - Expose the outgoing upstream HTTP/SOCKS proxy to pluggable
21639       transports if they are configured via the "TOR_PT_PROXY"
21640       environment variable. Implements proposal 232. Resolves
21641       ticket 8402.
21643   o Major features (client performance, hidden services):
21644     - Allow clients to use optimistic data when connecting to a hidden
21645       service, which should remove a round-trip from hidden service
21646       initialization. See proposal 181 for details. Implements
21647       ticket 13211.
21649   o Major features (directory system):
21650     - Upon receiving an unparseable directory object, if its digest
21651       matches what we expected, then don't try to download it again.
21652       Previously, when we got a descriptor we didn't like, we would keep
21653       trying to download it over and over. Closes ticket 11243.
21655   o Major features (sample torrc):
21656     - Add a new, infrequently-changed "torrc.minimal". This file is
21657       similar to torrc.sample, but it will change as infrequently as
21658       possible, for the benefit of users whose systems prompt them for
21659       intervention whenever a default configuration file is changed.
21660       Making this change allows us to update torrc.sample to be a more
21661       generally useful "sample torrc".
21663   o Major bugfixes (directory authorities):
21664     - Do not assign the HSDir flag to relays if they are not Valid, or
21665       currently hibernating. Fixes 12573; bugfix on 0.2.0.10-alpha.
21667   o Major bugfixes (directory bandwidth performance):
21668     - Don't flush the zlib buffer aggressively when compressing
21669       directory information for clients. This should save about 7% of
21670       the bandwidth currently used for compressed descriptors and
21671       microdescriptors. Fixes bug 11787; bugfix on 0.1.1.23.
21673   o Minor features (security, memory wiping):
21674     - Ensure we securely wipe keys from memory after
21675       crypto_digest_get_digest and init_curve25519_keypair_from_file
21676       have finished using them. Resolves ticket 13477.
21678   o Minor features (security, out-of-memory handling):
21679     - When handling an out-of-memory condition, allocate less memory for
21680       temporary data structures. Fixes issue 10115.
21681     - When handling an out-of-memory condition, consider more types of
21682       buffers, including those on directory connections, and zlib
21683       buffers. Resolves ticket 11792.
21685   o Minor features:
21686     - When identity keypair is generated for first time, log a
21687       congratulatory message that links to the new relay lifecycle
21688       document. Implements feature 10427.
21690   o Minor features (client):
21691     - Clients are now willing to send optimistic data (before they
21692       receive a 'connected' cell) to relays of any version. (Relays
21693       without support for optimistic data are no longer supported on the
21694       Tor network.) Resolves ticket 13153.
21696   o Minor features (directory authorities):
21697     - Don't list relays with a bandwidth estimate of 0 in the consensus.
21698       Implements a feature proposed during discussion of bug 13000.
21699     - In tor-gencert, report an error if the user provides the same
21700       argument more than once.
21701     - If a directory authority can't find a best consensus method in the
21702       votes that it holds, it now falls back to its favorite consensus
21703       method. Previously, it fell back to method 1. Neither of these is
21704       likely to get enough signatures, but "fall back to favorite"
21705       doesn't require us to maintain support an obsolete consensus
21706       method. Implements part of proposal 215.
21708   o Minor features (logging):
21709     - On Unix-like systems, you can now use named pipes as the target of
21710       the Log option, and other options that try to append to files.
21711       Closes ticket 12061. Patch from "carlo von lynX".
21712     - When opening a log file at startup, send it every log message that
21713       we generated between startup and opening it. Previously, log
21714       messages that were generated before opening the log file were only
21715       logged to stdout. Closes ticket 6938.
21716     - Add a TruncateLogFile option to overwrite logs instead of
21717       appending to them. Closes ticket 5583.
21719   o Minor features (portability, Solaris):
21720     - Threads are no longer disabled by default on Solaris; we believe
21721       that the versions of Solaris with broken threading support are all
21722       obsolete by now. Resolves ticket 9495.
21724   o Minor features (relay):
21725     - Re-check our address after we detect a changed IP address from
21726       getsockname(). This ensures that the controller command "GETINFO
21727       address" will report the correct value. Resolves ticket 11582.
21728       Patch from "ra".
21729     - A new AccountingRule option lets Relays set whether they'd like
21730       AccountingMax to be applied separately to inbound and outbound
21731       traffic, or applied to the sum of inbound and outbound traffic.
21732       Resolves ticket 961. Patch by "chobe".
21734   o Minor features (testing networks):
21735     - Add the TestingDirAuthVoteExit option, which lists nodes to assign
21736       the "Exit" flag regardless of their uptime, bandwidth, or exit
21737       policy. TestingTorNetwork must be set for this option to have any
21738       effect. Previously, authorities would take up to 35 minutes to
21739       give nodes the Exit flag in a test network. Partially implements
21740       ticket 13161.
21742   o Minor features (validation):
21743     - Check all date/time values passed to tor_timegm and
21744       parse_rfc1123_time for validity, taking leap years into account.
21745       Improves HTTP header validation. Implemented with bug 13476.
21746     - In correct_tm(), limit the range of values returned by system
21747       localtime(_r) and gmtime(_r) to be between the years 1 and 8099.
21748       This means we don't have to deal with negative or too large dates,
21749       even if a clock is wrong. Otherwise we might fail to read a file
21750       written by us which includes such a date. Fixes bug 13476.
21752   o Minor bugfixes (bridge clients):
21753     - When configured to use a bridge without an identity digest (not
21754       recommended), avoid launching an extra channel to it when
21755       bootstrapping. Fixes bug 7733; bugfix on 0.2.4.4-alpha.
21757   o Minor bugfixes (bridges):
21758     - When DisableNetwork is set, do not launch pluggable transport
21759       plugins, and if any are running, terminate them. Fixes bug 13213;
21760       bugfix on 0.2.3.6-alpha.
21762   o Minor bugfixes (C correctness):
21763     - Fix several instances of possible integer overflow/underflow/NaN.
21764       Fixes bug 13104; bugfix on 0.2.3.1-alpha and later. Patches
21765       from "teor".
21766     - In circuit_build_times_calculate_timeout() in circuitstats.c,
21767       avoid dividing by zero in the pareto calculations. This traps
21768       under clang's "undefined-trap" sanitizer. Fixes bug 13290; bugfix
21769       on 0.2.2.2-alpha.
21770     - Fix an integer overflow in format_time_interval(). Fixes bug
21771       13393; bugfix on 0.2.0.10-alpha.
21772     - Set the correct day of year value when the system's localtime(_r)
21773       or gmtime(_r) functions fail to set struct tm. Not externally
21774       visible. Fixes bug 13476; bugfix on 0.0.2pre14.
21775     - Avoid unlikely signed integer overflow in tor_timegm on systems
21776       with 32-bit time_t. Fixes bug 13476; bugfix on 0.0.2pre14.
21778   o Minor bugfixes (client):
21779     - Fix smartlist_choose_node_by_bandwidth() so that relays with the
21780       BadExit flag are not considered worthy candidates. Fixes bug
21781       13066; bugfix on 0.1.2.3-alpha.
21782     - Use the consensus schedule for downloading consensuses, and not
21783       the generic schedule. Fixes bug 11679; bugfix on 0.2.2.6-alpha.
21784     - Handle unsupported or malformed SOCKS5 requests properly by
21785       responding with the appropriate error message before closing the
21786       connection. Fixes bugs 12971 and 13314; bugfix on 0.0.2pre13.
21788   o Minor bugfixes (client, torrc):
21789     - Stop modifying the value of our DirReqStatistics torrc option just
21790       because we're not a bridge or relay. This bug was causing Tor
21791       Browser users to write "DirReqStatistics 0" in their torrc files
21792       as if they had chosen to change the config. Fixes bug 4244; bugfix
21793       on 0.2.3.1-alpha.
21794     - When GeoIPExcludeUnknown is enabled, do not incorrectly decide
21795       that our options have changed every time we SIGHUP. Fixes bug
21796       9801; bugfix on 0.2.4.10-alpha. Patch from "qwerty1".
21798   o Minor bugfixes (controller):
21799     - Return an error when the second or later arguments of the
21800       "setevents" controller command are invalid events. Previously we
21801       would return success while silently skipping invalid events. Fixes
21802       bug 13205; bugfix on 0.2.3.2-alpha. Reported by "fpxnns".
21804   o Minor bugfixes (directory system):
21805     - Always believe that v3 directory authorities serve extra-info
21806       documents, whether they advertise "caches-extra-info" or not.
21807       Fixes part of bug 11683; bugfix on 0.2.0.1-alpha.
21808     - When running as a v3 directory authority, advertise that you serve
21809       extra-info documents so that clients who want them can find them
21810       from you too. Fixes part of bug 11683; bugfix on 0.2.0.1-alpha.
21811     - Check the BRIDGE_DIRINFO flag bitwise rather than using equality.
21812       Previously, directories offering BRIDGE_DIRINFO and some other
21813       flag (i.e. microdescriptors or extrainfo) would be ignored when
21814       looking for bridges. Partially fixes bug 13163; bugfix
21815       on 0.2.0.7-alpha.
21817   o Minor bugfixes (networking):
21818     - Check for orconns and use connection_or_close_for_error() rather
21819       than connection_mark_for_close() directly in the getsockopt()
21820       failure case of connection_handle_write_impl(). Fixes bug 11302;
21821       bugfix on 0.2.4.4-alpha.
21823   o Minor bugfixes (relay):
21824     - When generating our family list, remove spaces from around the
21825       entries. Fixes bug 12728; bugfix on 0.2.1.7-alpha.
21826     - If our previous bandwidth estimate was 0 bytes, allow publishing a
21827       new relay descriptor immediately. Fixes bug 13000; bugfix
21828       on 0.1.1.6-alpha.
21830   o Minor bugfixes (testing networks):
21831     - Fix TestingDirAuthVoteGuard to properly give out Guard flags in a
21832       testing network. Fixes bug 13064; bugfix on 0.2.5.2-alpha.
21833     - Stop using the default authorities in networks which provide both
21834       AlternateDirAuthority and AlternateBridgeAuthority. Partially
21835       fixes bug 13163; bugfix on 0.2.0.13-alpha.
21837   o Minor bugfixes (testing):
21838     - Stop spawn test failures due to a race condition between the
21839       SIGCHLD handler updating the process status, and the test reading
21840       it. Fixes bug 13291; bugfix on 0.2.3.3-alpha.
21842   o Minor bugfixes (testing, Windows):
21843     - Avoid passing an extra backslash when creating a temporary
21844       directory for running the unit tests on Windows. Fixes bug 12392;
21845       bugfix on 0.2.2.25-alpha. Patch from Gisle Vanem.
21847   o Minor bugfixes (windows):
21848     - Remove code to special-case handling of NTE_BAD_KEYSET when
21849       acquiring windows CryptoAPI context. This error can't actually
21850       occur for the parameters we're providing. Fixes bug 10816; bugfix
21851       on 0.0.2pre26.
21853   o Minor bugfixes (zlib):
21854     - Avoid truncating a zlib stream when trying to finalize it with an
21855       empty output buffer. Fixes bug 11824; bugfix on 0.1.1.23.
21857   o Build fixes:
21858     - Allow our configure script to build correctly with autoconf 2.62
21859       again. Fixes bug 12693; bugfix on 0.2.5.2-alpha.
21860     - Improve the error message from ./configure to make it clear that
21861       when asciidoc has not been found, the user will have to either add
21862       --disable-asciidoc argument or install asciidoc. Resolves
21863       ticket 13228.
21865   o Code simplification and refactoring:
21866     - Change the entry_is_live() function to take named bitfield
21867       elements instead of an unnamed list of booleans. Closes
21868       ticket 12202.
21869     - Refactor and unit-test entry_is_time_to_retry() in entrynodes.c.
21870       Resolves ticket 12205.
21871     - Use calloc and reallocarray functions instead of multiply-
21872       then-malloc. This makes it less likely for us to fall victim to an
21873       integer overflow attack when allocating. Resolves ticket 12855.
21874     - Use the standard macro name SIZE_MAX, instead of our
21875       own SIZE_T_MAX.
21876     - Document usage of the NO_DIRINFO and ALL_DIRINFO flags clearly in
21877       functions which take them as arguments. Replace 0 with NO_DIRINFO
21878       in a function call for clarity. Seeks to prevent future issues
21879       like 13163.
21880     - Avoid 4 null pointer errors under clang static analysis by using
21881       tor_assert() to prove that the pointers aren't null. Fixes
21882       bug 13284.
21883     - Rework the API of policies_parse_exit_policy() to use a bitmask to
21884       represent parsing options, instead of a confusing mess of
21885       booleans. Resolves ticket 8197.
21886     - Introduce a helper function to parse ExitPolicy in
21887       or_options_t structure.
21889   o Documentation:
21890     - Add a doc/TUNING document with tips for handling large numbers of
21891       TCP connections when running busy Tor relay. Update the warning
21892       message to point to this file when running out of sockets
21893       operating system is allowing to use simultaneously. Resolves
21894       ticket 9708.
21896   o Removed features:
21897     - We no longer remind the user about configuration options that have
21898       been obsolete since 0.2.3.x or earlier. Patch by Adrien Bak.
21899     - Remove our old, non-weighted bandwidth-based node selection code.
21900       Previously, we used it as a fallback when we couldn't perform
21901       weighted bandwidth-based node selection. But that would only
21902       happen in the cases where we had no consensus, or when we had a
21903       consensus generated by buggy or ancient directory authorities. In
21904       either case, it's better to use the more modern, better maintained
21905       algorithm, with reasonable defaults for the weights. Closes
21906       ticket 13126.
21907     - Remove the --disable-curve25519 configure option. Relays and
21908       clients now are required to support curve25519 and the
21909       ntor handshake.
21910     - The old "StrictEntryNodes" and "StrictExitNodes" options, which
21911       used to be deprecated synonyms for "StrictNodes", are now marked
21912       obsolete. Resolves ticket 12226.
21913     - Clients don't understand the BadDirectory flag in the consensus
21914       anymore, and ignore it.
21916   o Testing:
21917     - Refactor the function that chooses guard nodes so that it can more
21918       easily be tested; write some tests for it.
21919     - Fix and re-enable the fgets_eagain unit test. Fixes bug 12503;
21920       bugfix on 0.2.3.1-alpha. Patch from "cypherpunks."
21921     - Create unit tests for format_time_interval(). With bug 13393.
21922     - Add unit tests for tor_timegm signed overflow, tor_timegm and
21923       parse_rfc1123_time validity checks, correct_tm year clamping. Unit
21924       tests (visible) fixes in bug 13476.
21925     - Add a "coverage-html" make target to generate HTML-visualized
21926       coverage results when building with --enable-coverage. (Requires
21927       lcov.) Patch from Kevin Murray.
21928     - Enable the backtrace handler (where supported) when running the
21929       unit tests.
21930     - Revise all unit tests that used the legacy test_* macros to
21931       instead use the recommended tt_* macros. This patch was generated
21932       with coccinelle, to avoid manual errors. Closes ticket 13119.
21934   o Distribution (systemd):
21935     - systemd unit file: only allow tor to write to /var/lib/tor and
21936       /var/log/tor. The rest of the filesystem is accessible for reading
21937       only. Patch by intrigeri; resolves ticket 12751.
21938     - systemd unit file: ensure that the process and all its children
21939       can never gain new privileges. Patch by intrigeri; resolves
21940       ticket 12939.
21941     - systemd unit file: set up /var/run/tor as writable for the Tor
21942       service. Patch by intrigeri; resolves ticket 13196.
21944   o Removed features (directory authorities):
21945     - Remove code that prevented authorities from listing Tor relays
21946       affected by CVE-2011-2769 as guards. These relays are already
21947       rejected altogether due to the minimum version requirement of
21948       0.2.3.16-alpha. Closes ticket 13152.
21949     - The "AuthDirRejectUnlisted" option no longer has any effect, as
21950       the fingerprints file (approved-routers) has been deprecated.
21951     - Directory authorities do not support being Naming dirauths anymore.
21952       The "NamingAuthoritativeDir" config option is now obsolete.
21953     - Directory authorities do not support giving out the BadDirectory
21954       flag anymore.
21955     - Directory authorities no longer advertise or support consensus
21956       methods 1 through 12 inclusive. These consensus methods were
21957       obsolete and/or insecure: maintaining the ability to support them
21958       served no good purpose. Implements part of proposal 215; closes
21959       ticket 10163.
21961   o Testing (test-network.sh):
21962     - Stop using "echo -n", as some shells' built-in echo doesn't
21963       support "-n". Instead, use "/bin/echo -n". Partially fixes
21964       bug 13161.
21965     - Stop an apparent test-network hang when used with make -j2. Fixes
21966       bug 13331.
21967     - Add a --delay option to test-network.sh, which configures the
21968       delay before the chutney network tests for data transmission.
21969       Partially implements ticket 13161.
21972 Changes in version 0.2.5.10 - 2014-10-24
21973   Tor 0.2.5.10 is the first stable release in the 0.2.5 series.
21975   It adds several new security features, including improved
21976   denial-of-service resistance for relays, new compiler hardening
21977   options, and a system-call sandbox for hardened installations on Linux
21978   (requires seccomp2). The controller protocol has several new features,
21979   resolving IPv6 addresses should work better than before, and relays
21980   should be a little more CPU-efficient. We've added support for more
21981   OpenBSD and FreeBSD transparent proxy types. We've improved the build
21982   system and testing infrastructure to allow unit testing of more parts
21983   of the Tor codebase. Finally, we've addressed several nagging pluggable
21984   transport usability issues, and included numerous other small bugfixes
21985   and features mentioned below.
21987   This release marks end-of-life for Tor 0.2.3.x; those Tor versions
21988   have accumulated many known flaws; everyone should upgrade.
21990   o Deprecated versions:
21991     - Tor 0.2.3.x has reached end-of-life; it has received no patches or
21992       attention for some while.
21995 Changes in version 0.2.5.9-rc - 2014-10-20
21996   Tor 0.2.5.9-rc is the third release candidate for the Tor 0.2.5.x
21997   series. It disables SSL3 in response to the recent "POODLE" attack
21998   (even though POODLE does not affect Tor). It also works around a crash
21999   bug caused by some operating systems' response to the "POODLE" attack
22000   (which does affect Tor). It also contains a few miscellaneous fixes.
22002   o Major security fixes:
22003     - Disable support for SSLv3. All versions of OpenSSL in use with Tor
22004       today support TLS 1.0 or later, so we can safely turn off support
22005       for this old (and insecure) protocol. Fixes bug 13426.
22007   o Major bugfixes (openssl bug workaround):
22008     - Avoid crashing when using OpenSSL version 0.9.8zc, 1.0.0o, or
22009       1.0.1j, built with the 'no-ssl3' configuration option. Fixes bug
22010       13471. This is a workaround for an OpenSSL bug.
22012   o Minor bugfixes:
22013     - Disable the sandbox name resolver cache when running tor-resolve:
22014       tor-resolve doesn't use the sandbox code, and turning it on was
22015       breaking attempts to do tor-resolve on a non-default server on
22016       Linux. Fixes bug 13295; bugfix on 0.2.5.3-alpha.
22018   o Compilation fixes:
22019     - Build and run correctly on systems like OpenBSD-current that have
22020       patched OpenSSL to remove get_cipher_by_char and/or its
22021       implementations. Fixes issue 13325.
22023   o Downgraded warnings:
22024     - Downgrade the severity of the 'unexpected sendme cell from client'
22025       from 'warn' to 'protocol warning'. Closes ticket 8093.
22028 Changes in version 0.2.4.25 - 2014-10-20
22029   Tor 0.2.4.25 disables SSL3 in response to the recent "POODLE" attack
22030   (even though POODLE does not affect Tor). It also works around a crash
22031   bug caused by some operating systems' response to the "POODLE" attack
22032   (which does affect Tor).
22034   o Major security fixes (also in 0.2.5.9-rc):
22035     - Disable support for SSLv3. All versions of OpenSSL in use with Tor
22036       today support TLS 1.0 or later, so we can safely turn off support
22037       for this old (and insecure) protocol. Fixes bug 13426.
22039   o Major bugfixes (openssl bug workaround, also in 0.2.5.9-rc):
22040     - Avoid crashing when using OpenSSL version 0.9.8zc, 1.0.0o, or
22041       1.0.1j, built with the 'no-ssl3' configuration option. Fixes bug
22042       13471. This is a workaround for an OpenSSL bug.
22045 Changes in version 0.2.5.8-rc - 2014-09-22
22046   Tor 0.2.5.8-rc is the second release candidate for the Tor 0.2.5.x
22047   series. It fixes a bug that affects consistency and speed when
22048   connecting to hidden services, and it updates the location of one of
22049   the directory authorities.
22051   o Major bugfixes:
22052     - Clients now send the correct address for their chosen rendezvous
22053       point when trying to access a hidden service. They used to send
22054       the wrong address, which would still work some of the time because
22055       they also sent the identity digest of the rendezvous point, and if
22056       the hidden service happened to try connecting to the rendezvous
22057       point from a relay that already had a connection open to it,
22058       the relay would reuse that connection. Now connections to hidden
22059       services should be more robust and faster. Also, this bug meant
22060       that clients were leaking to the hidden service whether they were
22061       on a little-endian (common) or big-endian (rare) system, which for
22062       some users might have reduced their anonymity. Fixes bug 13151;
22063       bugfix on 0.2.1.5-alpha.
22065   o Directory authority changes:
22066     - Change IP address for gabelmoo (v3 directory authority).
22069 Changes in version 0.2.4.24 - 2014-09-22
22070   Tor 0.2.4.24 fixes a bug that affects consistency and speed when
22071   connecting to hidden services, and it updates the location of one of
22072   the directory authorities.
22074   o Major bugfixes:
22075     - Clients now send the correct address for their chosen rendezvous
22076       point when trying to access a hidden service. They used to send
22077       the wrong address, which would still work some of the time because
22078       they also sent the identity digest of the rendezvous point, and if
22079       the hidden service happened to try connecting to the rendezvous
22080       point from a relay that already had a connection open to it,
22081       the relay would reuse that connection. Now connections to hidden
22082       services should be more robust and faster. Also, this bug meant
22083       that clients were leaking to the hidden service whether they were
22084       on a little-endian (common) or big-endian (rare) system, which for
22085       some users might have reduced their anonymity. Fixes bug 13151;
22086       bugfix on 0.2.1.5-alpha.
22088   o Directory authority changes:
22089     - Change IP address for gabelmoo (v3 directory authority).
22091   o Minor features (geoip):
22092     - Update geoip and geoip6 to the August 7 2014 Maxmind GeoLite2
22093       Country database.
22096 Changes in version 0.2.5.7-rc - 2014-09-11
22097   Tor 0.2.5.7-rc fixes several regressions from earlier in the 0.2.5.x
22098   release series, and some long-standing bugs related to ORPort reachability
22099   testing and failure to send CREATE cells. It is the first release
22100   candidate for the Tor 0.2.5.x series.
22102   o Major bugfixes (client, startup):
22103     - Start making circuits as soon as DisabledNetwork is turned off.
22104       When Tor started with DisabledNetwork set, it would correctly
22105       conclude that it shouldn't build circuits, but it would mistakenly
22106       cache this conclusion, and continue believing it even when
22107       DisableNetwork is set to 0. Fixes the bug introduced by the fix
22108       for bug 11200; bugfix on 0.2.5.4-alpha.
22109     - Resume expanding abbreviations for command-line options. The fix
22110       for bug 4647 accidentally removed our hack from bug 586 that
22111       rewrote HashedControlPassword to __HashedControlSessionPassword
22112       when it appears on the commandline (which allowed the user to set
22113       her own HashedControlPassword in the torrc file while the
22114       controller generates a fresh session password for each run). Fixes
22115       bug 12948; bugfix on 0.2.5.1-alpha.
22116     - Warn about attempts to run hidden services and relays in the same
22117       process: that's probably not a good idea. Closes ticket 12908.
22119   o Major bugfixes (relay):
22120     - Avoid queuing or sending destroy cells for circuit ID zero when we
22121       fail to send a CREATE cell. Fixes bug 12848; bugfix on 0.0.8pre1.
22122       Found and fixed by "cypherpunks".
22123     - Fix ORPort reachability detection on relays running behind a
22124       proxy, by correctly updating the "local" mark on the controlling
22125       channel when changing the address of an or_connection_t after the
22126       handshake. Fixes bug 12160; bugfix on 0.2.4.4-alpha.
22128   o Minor features (bridge):
22129     - Add an ExtORPortCookieAuthFileGroupReadable option to make the
22130       cookie file for the ExtORPort g+r by default.
22132   o Minor features (geoip):
22133     - Update geoip and geoip6 to the August 7 2014 Maxmind GeoLite2
22134       Country database.
22136   o Minor bugfixes (logging):
22137     - Reduce the log severity of the "Pluggable transport proxy does not
22138       provide any needed transports and will not be launched." message,
22139       since Tor Browser includes several ClientTransportPlugin lines in
22140       its torrc-defaults file, leading every Tor Browser user who looks
22141       at her logs to see these notices and wonder if they're dangerous.
22142       Resolves bug 13124; bugfix on 0.2.5.3-alpha.
22143     - Downgrade "Unexpected onionskin length after decryption" warning
22144       to a protocol-warn, since there's nothing relay operators can do
22145       about a client that sends them a malformed create cell. Resolves
22146       bug 12996; bugfix on 0.0.6rc1.
22147     - Log more specific warnings when we get an ESTABLISH_RENDEZVOUS
22148       cell on a cannibalized or non-OR circuit. Resolves ticket 12997.
22149     - When logging information about an EXTEND2 or EXTENDED2 cell, log
22150       their names correctly. Fixes part of bug 12700; bugfix
22151       on 0.2.4.8-alpha.
22152     - When logging information about a relay cell whose command we don't
22153       recognize, log its command as an integer. Fixes part of bug 12700;
22154       bugfix on 0.2.1.10-alpha.
22155     - Escape all strings from the directory connection before logging
22156       them. Fixes bug 13071; bugfix on 0.1.1.15. Patch from "teor".
22158   o Minor bugfixes (controller):
22159     - Restore the functionality of CookieAuthFileGroupReadable. Fixes
22160       bug 12864; bugfix on 0.2.5.1-alpha.
22161     - Actually send TRANSPORT_LAUNCHED and HS_DESC events to
22162       controllers. Fixes bug 13085; bugfix on 0.2.5.1-alpha. Patch
22163       by "teor".
22165   o Minor bugfixes (compilation):
22166     - Fix compilation of test.h with MSVC. Patch from Gisle Vanem;
22167       bugfix on 0.2.5.5-alpha.
22168     - Make the nmake make files work again. Fixes bug 13081. Bugfix on
22169       0.2.5.1-alpha. Patch from "NewEraCracker".
22170     - In routerlist_assert_ok(), don't take the address of a
22171       routerinfo's cache_info member unless that routerinfo is non-NULL.
22172       Fixes bug 13096; bugfix on 0.1.1.9-alpha. Patch by "teor".
22173     - Fix a large number of false positive warnings from the clang
22174       analyzer static analysis tool. This should make real warnings
22175       easier for clang analyzer to find. Patch from "teor". Closes
22176       ticket 13036.
22178   o Distribution (systemd):
22179     - Verify configuration file via ExecStartPre in the systemd unit
22180       file. Patch from intrigeri; resolves ticket 12730.
22181     - Explicitly disable RunAsDaemon in the systemd unit file. Our
22182       current systemd unit uses "Type = simple", so systemd does not
22183       expect tor to fork. If the user has "RunAsDaemon 1" in their
22184       torrc, then things won't work as expected. This is e.g. the case
22185       on Debian (and derivatives), since there we pass "--defaults-torrc
22186       /usr/share/tor/tor-service-defaults-torrc" (that contains
22187       "RunAsDaemon 1") by default. Patch by intrigeri; resolves
22188       ticket 12731.
22190   o Documentation:
22191     - Adjust the URLs in the README to refer to the new locations of
22192       several documents on the website. Fixes bug 12830. Patch from
22193       Matt Pagan.
22194     - Document 'reject6' and 'accept6' ExitPolicy entries. Resolves
22195       ticket 12878.
22198 Changes in version 0.2.5.6-alpha - 2014-07-28
22199   Tor 0.2.5.6-alpha brings us a big step closer to slowing down the
22200   risk from guard rotation, and fixes a variety of other issues to get
22201   us closer to a release candidate.
22203   o Major features (also in 0.2.4.23):
22204     - Make the number of entry guards configurable via a new
22205       NumEntryGuards consensus parameter, and the number of directory
22206       guards configurable via a new NumDirectoryGuards consensus
22207       parameter. Implements ticket 12688.
22209   o Major bugfixes (also in 0.2.4.23):
22210     - Fix a bug in the bounds-checking in the 32-bit curve25519-donna
22211       implementation that caused incorrect results on 32-bit
22212       implementations when certain malformed inputs were used along with
22213       a small class of private ntor keys. This bug does not currently
22214       appear to allow an attacker to learn private keys or impersonate a
22215       Tor server, but it could provide a means to distinguish 32-bit Tor
22216       implementations from 64-bit Tor implementations. Fixes bug 12694;
22217       bugfix on 0.2.4.8-alpha. Bug found by Robert Ransom; fix from
22218       Adam Langley.
22220   o Major bugfixes:
22221     - Perform circuit cleanup operations even when circuit
22222       construction operations are disabled (because the network is
22223       disabled, or because there isn't enough directory information).
22224       Previously, when we were not building predictive circuits, we
22225       were not closing expired circuits either. Fixes bug 8387; bugfix on
22226       0.1.1.11-alpha. This bug became visible in 0.2.4.10-alpha when we
22227       became more strict about when we have "enough directory information
22228       to build circuits".
22230   o Minor features:
22231     - Authorities now assign the Guard flag to the fastest 25% of the
22232       network (it used to be the fastest 50%). Also raise the consensus
22233       weight that guarantees the Guard flag from 250 to 2000. For the
22234       current network, this results in about 1100 guards, down from 2500.
22235       This step paves the way for moving the number of entry guards
22236       down to 1 (proposal 236) while still providing reasonable expected
22237       performance for most users. Implements ticket 12690.
22238     - Update geoip and geoip6 to the July 10 2014 Maxmind GeoLite2
22239       Country database.
22240     - Slightly enhance the diagnostic message for bug 12184.
22242   o Minor bugfixes (also in 0.2.4.23):
22243     - Warn and drop the circuit if we receive an inbound 'relay early'
22244       cell. Those used to be normal to receive on hidden service circuits
22245       due to bug 1038, but the buggy Tor versions are long gone from
22246       the network so we can afford to resume watching for them. Resolves
22247       the rest of bug 1038; bugfix on 0.2.1.19.
22248     - Correct a confusing error message when trying to extend a circuit
22249       via the control protocol but we don't know a descriptor or
22250       microdescriptor for one of the specified relays. Fixes bug 12718;
22251       bugfix on 0.2.3.1-alpha.
22253   o Minor bugfixes:
22254     - Fix compilation when building with bufferevents enabled. (This
22255       configuration is still not expected to work, however.)
22256       Fixes bugs 12438, 12474, 11578; bugfixes on 0.2.5.1-alpha and
22257       0.2.5.3-alpha. Patches from Anthony G. Basile and Sathyanarayanan
22258       Gunasekaran.
22259     - Compile correctly with builds and forks of OpenSSL (such as
22260       LibreSSL) that disable compression. Fixes bug 12602; bugfix on
22261       0.2.1.1-alpha. Patch from "dhill".
22264 Changes in version 0.2.4.23 - 2014-07-28
22265   Tor 0.2.4.23 brings us a big step closer to slowing down the risk from
22266   guard rotation, and also backports several important fixes from the
22267   Tor 0.2.5 alpha release series.
22269   o Major features:
22270     - Clients now look at the "usecreatefast" consensus parameter to
22271       decide whether to use CREATE_FAST or CREATE cells for the first hop
22272       of their circuit. This approach can improve security on connections
22273       where Tor's circuit handshake is stronger than the available TLS
22274       connection security levels, but the tradeoff is more computational
22275       load on guard relays. Implements proposal 221. Resolves ticket 9386.
22276     - Make the number of entry guards configurable via a new
22277       NumEntryGuards consensus parameter, and the number of directory
22278       guards configurable via a new NumDirectoryGuards consensus
22279       parameter. Implements ticket 12688.
22281   o Major bugfixes:
22282     - Fix a bug in the bounds-checking in the 32-bit curve25519-donna
22283       implementation that caused incorrect results on 32-bit
22284       implementations when certain malformed inputs were used along with
22285       a small class of private ntor keys. This bug does not currently
22286       appear to allow an attacker to learn private keys or impersonate a
22287       Tor server, but it could provide a means to distinguish 32-bit Tor
22288       implementations from 64-bit Tor implementations. Fixes bug 12694;
22289       bugfix on 0.2.4.8-alpha. Bug found by Robert Ransom; fix from
22290       Adam Langley.
22292   o Minor bugfixes:
22293     - Warn and drop the circuit if we receive an inbound 'relay early'
22294       cell. Those used to be normal to receive on hidden service circuits
22295       due to bug 1038, but the buggy Tor versions are long gone from
22296       the network so we can afford to resume watching for them. Resolves
22297       the rest of bug 1038; bugfix on 0.2.1.19.
22298     - Correct a confusing error message when trying to extend a circuit
22299       via the control protocol but we don't know a descriptor or
22300       microdescriptor for one of the specified relays. Fixes bug 12718;
22301       bugfix on 0.2.3.1-alpha.
22302     - Avoid an illegal read from stack when initializing the TLS
22303       module using a version of OpenSSL without all of the ciphers
22304       used by the v2 link handshake. Fixes bug 12227; bugfix on
22305       0.2.4.8-alpha.  Found by "starlight".
22307   o Minor features:
22308     - Update geoip and geoip6 to the July 10 2014 Maxmind GeoLite2
22309       Country database.
22312 Changes in version 0.2.5.5-alpha - 2014-06-18
22313   Tor 0.2.5.5-alpha fixes a wide variety of remaining issues in the Tor
22314   0.2.5.x release series, including a couple of DoS issues, some
22315   performance regressions, a large number of bugs affecting the Linux
22316   seccomp2 sandbox code, and various other bugfixes. It also adds
22317   diagnostic bugfixes for a few tricky issues that we're trying to
22318   track down.
22320   o Major features (security, traffic analysis resistance):
22321     - Several major improvements to the algorithm used to decide when to
22322       close TLS connections. Previous versions of Tor closed connections
22323       at a fixed interval after the last time a non-padding cell was
22324       sent over the connection, regardless of the target of the
22325       connection. Now, we randomize the intervals by adding up to 50% of
22326       their base value, we measure the length of time since connection
22327       last had at least one circuit, and we allow connections to known
22328       ORs to remain open a little longer (15 minutes instead of 3
22329       minutes minimum). These changes should improve Tor's resistance
22330       against some kinds of traffic analysis, and lower some overhead
22331       from needlessly closed connections. Fixes ticket 6799.
22332       Incidentally fixes ticket 12023; bugfix on 0.2.5.1-alpha.
22334   o Major bugfixes (security, OOM, new since 0.2.5.4-alpha, also in 0.2.4.22):
22335     - Fix a memory leak that could occur if a microdescriptor parse
22336       fails during the tokenizing step. This bug could enable a memory
22337       exhaustion attack by directory servers. Fixes bug 11649; bugfix
22338       on 0.2.2.6-alpha.
22340   o Major bugfixes (security, directory authorities):
22341     - Directory authorities now include a digest of each relay's
22342       identity key as a part of its microdescriptor.
22344       This is a workaround for bug 11743 (reported by "cypherpunks"),
22345       where Tor clients do not support receiving multiple
22346       microdescriptors with the same SHA256 digest in the same
22347       consensus. When clients receive a consensus like this, they only
22348       use one of the relays. Without this fix, a hostile relay could
22349       selectively disable some client use of target relays by
22350       constructing a router descriptor with a different identity and the
22351       same microdescriptor parameters and getting the authorities to
22352       list it in a microdescriptor consensus. This fix prevents an
22353       attacker from causing a microdescriptor collision, because the
22354       router's identity is not forgeable.
22356   o Major bugfixes (relay):
22357     - Use a direct dirport connection when uploading non-anonymous
22358       descriptors to the directory authorities. Previously, relays would
22359       incorrectly use tunnel connections under a fairly wide variety of
22360       circumstances. Fixes bug 11469; bugfix on 0.2.4.3-alpha.
22361     - When a circuit accidentally has the same circuit ID for its
22362       forward and reverse direction, correctly detect the direction of
22363       cells using that circuit. Previously, this bug made roughly one
22364       circuit in a million non-functional. Fixes bug 12195; this is a
22365       bugfix on every version of Tor.
22367   o Major bugfixes (client, pluggable transports):
22368     - When managing pluggable transports, use OS notification facilities
22369       to learn if they have crashed, and don't attempt to kill any
22370       process that has already exited. Fixes bug 8746; bugfix
22371       on 0.2.3.6-alpha.
22373   o Minor features (diagnostic):
22374     - When logging a warning because of bug 7164, additionally check the
22375       hash table for consistency (as proposed on ticket 11737). This may
22376       help diagnose bug 7164.
22377     - When we log a heartbeat, log how many one-hop circuits we have
22378       that are at least 30 minutes old, and log status information about
22379       a few of them. This is an attempt to track down bug 8387.
22380     - When encountering an unexpected CR while writing text to a file on
22381       Windows, log the name of the file. Should help diagnosing
22382       bug 11233.
22383     - Give more specific warnings when a client notices that an onion
22384       handshake has failed. Fixes ticket 9635.
22385     - Add significant new logging code to attempt to diagnose bug 12184,
22386       where relays seem to run out of available circuit IDs.
22387     - Improve the diagnostic log message for bug 8387 even further to
22388       try to improve our odds of figuring out why one-hop directory
22389       circuits sometimes do not get closed.
22391   o Minor features (security, memory management):
22392     - Memory allocation tricks (mempools and buffer freelists) are now
22393       disabled by default. You can turn them back on with
22394       --enable-mempools and --enable-buf-freelists respectively. We're
22395       disabling these features because malloc performance is good enough
22396       on most platforms, and a similar feature in OpenSSL exacerbated
22397       exploitation of the Heartbleed attack. Resolves ticket 11476.
22399   o Minor features (security):
22400     - Apply the secure SipHash-2-4 function to the hash table mapping
22401       circuit IDs and channels to circuits. We missed this one when we
22402       were converting all the other hash functions to use SipHash back
22403       in 0.2.5.3-alpha. Resolves ticket 11750.
22405   o Minor features (build):
22406     - The configure script has a --disable-seccomp option to turn off
22407       support for libseccomp on systems that have it, in case it (or
22408       Tor's use of it) is broken. Resolves ticket 11628.
22410   o Minor features (other):
22411     - Update geoip and geoip6 to the June 4 2014 Maxmind GeoLite2
22412       Country database.
22414   o Minor bugfixes (security, new since 0.2.5.4-alpha, also in 0.2.4.22):
22415     - When running a hidden service, do not allow TunneledDirConns 0;
22416       this will keep the hidden service from running, and also
22417       make it publish its descriptors directly over HTTP. Fixes bug 10849;
22418       bugfix on 0.2.1.1-alpha.
22420   o Minor bugfixes (performance):
22421     - Avoid a bug where every successful connection made us recompute
22422       the flag telling us whether we have sufficient information to
22423       build circuits. Previously, we would forget our cached value
22424       whenever we successfully opened a channel (or marked a router as
22425       running or not running for any other reason), regardless of
22426       whether we had previously believed the router to be running. This
22427       forced us to run an expensive update operation far too often.
22428       Fixes bug 12170; bugfix on 0.1.2.1-alpha.
22429     - Avoid using tor_memeq() for checking relay cell integrity. This
22430       removes a possible performance bottleneck. Fixes part of bug
22431       12169; bugfix on 0.2.1.31.
22433   o Minor bugfixes (compilation):
22434     - Fix compilation of test_status.c when building with MVSC. Bugfix
22435       on 0.2.5.4-alpha. Patch from Gisle Vanem.
22436     - Resolve GCC complaints on OpenBSD about discarding constness in
22437       TO_{ORIGIN,OR}_CIRCUIT functions. Fixes part of bug 11633; bugfix
22438       on 0.1.1.23. Patch from Dana Koch.
22439     - Resolve clang complaints on OpenBSD with -Wshorten-64-to-32 due to
22440       treatment of long and time_t as comparable types. Fixes part of
22441       bug 11633. Patch from Dana Koch.
22442     - Make Tor compile correctly with --disable-buf-freelists. Fixes bug
22443       11623; bugfix on 0.2.5.3-alpha.
22444     - When deciding whether to build the 64-bit curve25519
22445       implementation, detect platforms where we can compile 128-bit
22446       arithmetic but cannot link it. Fixes bug 11729; bugfix on
22447       0.2.4.8-alpha. Patch from "conradev".
22448     - Fix compilation when DNS_CACHE_DEBUG is enabled. Fixes bug 11761;
22449       bugfix on 0.2.3.13-alpha. Found by "cypherpunks".
22450     - Fix compilation with dmalloc. Fixes bug 11605; bugfix
22451       on 0.2.4.10-alpha.
22453   o Minor bugfixes (Directory server):
22454     - When sending a compressed set of descriptors or microdescriptors,
22455       make sure to finalize the zlib stream. Previously, we would write
22456       all the compressed data, but if the last descriptor we wanted to
22457       send was missing or too old, we would not mark the stream as
22458       finished. This caused problems for decompression tools. Fixes bug
22459       11648; bugfix on 0.1.1.23.
22461   o Minor bugfixes (Linux seccomp sandbox):
22462     - Make the seccomp sandbox code compile under ARM Linux. Fixes bug
22463       11622; bugfix on 0.2.5.1-alpha.
22464     - Avoid crashing when re-opening listener ports with the seccomp
22465       sandbox active. Fixes bug 12115; bugfix on 0.2.5.1-alpha.
22466     - Avoid crashing with the seccomp sandbox enabled along with
22467       ConstrainedSockets. Fixes bug 12139; bugfix on 0.2.5.1-alpha.
22468     - When we receive a SIGHUP with the sandbox enabled, correctly
22469       support rotating our log files. Fixes bug 12032; bugfix
22470       on 0.2.5.1-alpha.
22471     - Avoid crash when running with sandboxing enabled and
22472       DirReqStatistics not disabled. Fixes bug 12035; bugfix
22473       on 0.2.5.1-alpha.
22474     - Fix a "BUG" warning when trying to write bridge-stats files with
22475       the Linux syscall sandbox filter enabled. Fixes bug 12041; bugfix
22476       on 0.2.5.1-alpha.
22477     - Prevent the sandbox from crashing on startup when run with the
22478       --enable-expensive-hardening configuration option. Fixes bug
22479       11477; bugfix on 0.2.5.4-alpha.
22480     - When running with DirPortFrontPage and sandboxing both enabled,
22481       reload the DirPortFrontPage correctly when restarting. Fixes bug
22482       12028; bugfix on 0.2.5.1-alpha.
22483     - Don't try to enable the sandbox when using the Tor binary to check
22484       its configuration, hash a passphrase, or so on. Doing so was
22485       crashing on startup for some users. Fixes bug 11609; bugfix
22486       on 0.2.5.1-alpha.
22487     - Avoid warnings when running with sandboxing and node statistics
22488       enabled at the same time. Fixes part of 12064; bugfix on
22489       0.2.5.1-alpha. Patch from Michael Wolf.
22490     - Avoid warnings when running with sandboxing enabled at the same
22491       time as cookie authentication, hidden services, or directory
22492       authority voting. Fixes part of 12064; bugfix on 0.2.5.1-alpha.
22493     - Do not allow options that require calls to exec to be enabled
22494       alongside the seccomp2 sandbox: they will inevitably crash. Fixes
22495       bug 12043; bugfix on 0.2.5.1-alpha.
22496     - Handle failures in getpwnam()/getpwuid() when running with the
22497       User option set and the Linux syscall sandbox enabled. Fixes bug
22498       11946; bugfix on 0.2.5.1-alpha.
22499     - Refactor the getaddrinfo workaround that the seccomp sandbox uses
22500       to avoid calling getaddrinfo() after installing the sandbox
22501       filters. Previously, it preloaded a cache with the IPv4 address
22502       for our hostname, and nothing else. Now, it loads the cache with
22503       every address that it used to initialize the Tor process. Fixes
22504       bug 11970; bugfix on 0.2.5.1-alpha.
22506   o Minor bugfixes (pluggable transports):
22507     - Enable the ExtORPortCookieAuthFile option, to allow changing the
22508       default location of the authentication token for the extended OR
22509       Port as used by sever-side pluggable transports. We had
22510       implemented this option before, but the code to make it settable
22511       had been omitted. Fixes bug 11635; bugfix on 0.2.5.1-alpha.
22512     - Avoid another 60-second delay when starting Tor in a pluggable-
22513       transport-using configuration when we already have cached
22514       descriptors for our bridges. Fixes bug 11965; bugfix
22515       on 0.2.3.6-alpha.
22517   o Minor bugfixes (client):
22518     - Avoid "Tried to open a socket with DisableNetwork set" warnings
22519       when starting a client with bridges configured and DisableNetwork
22520       set. (Tor launcher starts Tor with DisableNetwork set the first
22521       time it runs.) Fixes bug 10405; bugfix on 0.2.3.9-alpha.
22523   o Minor bugfixes (testing):
22524     - The Python parts of the test scripts now work on Python 3 as well
22525       as Python 2, so systems where '/usr/bin/python' is Python 3 will
22526       no longer have the tests break. Fixes bug 11608; bugfix
22527       on 0.2.5.2-alpha.
22528     - When looking for versions of python that we could run the tests
22529       with, check for "python2.7" and "python3.3"; previously we were
22530       only looking for "python", "python2", and "python3". Patch from
22531       Dana Koch. Fixes bug 11632; bugfix on 0.2.5.2-alpha.
22532     - Fix all valgrind warnings produced by the unit tests. There were
22533       over a thousand memory leak warnings previously, mostly produced
22534       by forgetting to free things in the unit test code. Fixes bug
22535       11618, bugfixes on many versions of Tor.
22537   o Minor bugfixes (tor-fw-helper):
22538     - Give a correct log message when tor-fw-helper fails to launch.
22539       (Previously, we would say something like "tor-fw-helper sent us a
22540       string we could not parse".) Fixes bug 9781; bugfix
22541       on 0.2.4.2-alpha.
22543   o Minor bugfixes (relay, threading):
22544     - Check return code on spawn_func() in cpuworker code, so that we
22545       don't think we've spawned a nonworking cpuworker and write junk to
22546       it forever. Fix related to bug 4345; bugfix on all released Tor
22547       versions. Found by "skruffy".
22548     - Use a pthread_attr to make sure that spawn_func() cannot return an
22549       error while at the same time launching a thread. Fix related to
22550       bug 4345; bugfix on all released Tor versions. Reported
22551       by "cypherpunks".
22553   o Minor bugfixes (relay, oom prevention):
22554     - Correctly detect the total available system memory. We tried to do
22555       this in 0.2.5.4-alpha, but the code was set up to always return an
22556       error value, even on success. Fixes bug 11805; bugfix
22557       on 0.2.5.4-alpha.
22559   o Minor bugfixes (relay, other):
22560     - We now drop CREATE cells for already-existent circuit IDs and for
22561       zero-valued circuit IDs, regardless of other factors that might
22562       otherwise have called for DESTROY cells. Fixes bug 12191; bugfix
22563       on 0.0.8pre1.
22564     - Avoid an illegal read from stack when initializing the TLS module
22565       using a version of OpenSSL without all of the ciphers used by the
22566       v2 link handshake. Fixes bug 12227; bugfix on 0.2.4.8-alpha. Found
22567       by "starlight".
22568     - When rejecting DATA cells for stream_id zero, still count them
22569       against the circuit's deliver window so that we don't fail to send
22570       a SENDME. Fixes bug 11246; bugfix on 0.2.4.10-alpha.
22572   o Minor bugfixes (logging):
22573     - Fix a misformatted log message about delayed directory fetches.
22574       Fixes bug 11654; bugfix on 0.2.5.3-alpha.
22575     - Squelch a spurious LD_BUG message "No origin circuit for
22576       successful SOCKS stream" in certain hidden service failure cases;
22577       fixes bug 10616.
22579   o Distribution:
22580     - Include a tor.service file in contrib/dist for use with systemd.
22581       Some distributions will be able to use this file unmodified;
22582       others will need to tweak it, or write their own. Patch from Jamie
22583       Nguyen; resolves ticket 8368.
22585   o Documentation:
22586     - Clean up several option names in the manpage to match their real
22587       names, add the missing documentation for a couple of testing and
22588       directory authority options, remove the documentation for a
22589       V2-directory fetching option that no longer exists. Resolves
22590       ticket 11634.
22591     - Correct the documentation so that it lists the correct directory
22592       for the stats files. (They are in a subdirectory called "stats",
22593       not "status".)
22594     - In the manpage, move more authority-only options into the
22595       directory authority section so that operators of regular directory
22596       caches don't get confused.
22598   o Package cleanup:
22599     - The contrib directory has been sorted and tidied. Before, it was
22600       an unsorted dumping ground for useful and not-so-useful things.
22601       Now, it is divided based on functionality, and the items which
22602       seemed to be nonfunctional or useless have been removed. Resolves
22603       ticket 8966; based on patches from "rl1987".
22605   o Removed code:
22606     - Remove /tor/dbg-stability.txt URL that was meant to help debug WFU
22607       and MTBF calculations, but that nobody was using. Fixes ticket 11742.
22608     - The TunnelDirConns and PreferTunnelledDirConns options no longer
22609       exist; tunneled directory connections have been available since
22610       0.1.2.5-alpha, and turning them off is not a good idea. This is a
22611       brute-force fix for 10849, where "TunnelDirConns 0" would break
22612       hidden services.
22615 Changes in version 0.2.4.22 - 2014-05-16
22616   Tor 0.2.4.22 backports numerous high-priority fixes from the Tor 0.2.5
22617   alpha release series. These include blocking all authority signing
22618   keys that may have been affected by the OpenSSL "heartbleed" bug,
22619   choosing a far more secure set of TLS ciphersuites by default, closing
22620   a couple of memory leaks that could be used to run a target relay out
22621   of RAM, and several others.
22623   o Major features (security, backport from 0.2.5.4-alpha):
22624     - Block authority signing keys that were used on authorities
22625       vulnerable to the "heartbleed" bug in OpenSSL (CVE-2014-0160). (We
22626       don't have any evidence that these keys _were_ compromised; we're
22627       doing this to be prudent.) Resolves ticket 11464.
22629   o Major bugfixes (security, OOM):
22630     - Fix a memory leak that could occur if a microdescriptor parse
22631       fails during the tokenizing step. This bug could enable a memory
22632       exhaustion attack by directory servers. Fixes bug 11649; bugfix
22633       on 0.2.2.6-alpha.
22635   o Major bugfixes (TLS cipher selection, backport from 0.2.5.4-alpha):
22636     - The relay ciphersuite list is now generated automatically based on
22637       uniform criteria, and includes all OpenSSL ciphersuites with
22638       acceptable strength and forward secrecy. Previously, we had left
22639       some perfectly fine ciphersuites unsupported due to omission or
22640       typo. Resolves bugs 11513, 11492, 11498, 11499. Bugs reported by
22641       'cypherpunks'. Bugfix on 0.2.4.8-alpha.
22642     - Relays now trust themselves to have a better view than clients of
22643       which TLS ciphersuites are better than others. (Thanks to bug
22644       11513, the relay list is now well-considered, whereas the client
22645       list has been chosen mainly for anti-fingerprinting purposes.)
22646       Relays prefer: AES over 3DES; then ECDHE over DHE; then GCM over
22647       CBC; then SHA384 over SHA256 over SHA1; and last, AES256 over
22648       AES128. Resolves ticket 11528.
22649     - Clients now try to advertise the same list of ciphersuites as
22650       Firefox 28. This change enables selection of (fast) GCM
22651       ciphersuites, disables some strange old ciphers, and stops
22652       advertising the ECDH (not to be confused with ECDHE) ciphersuites.
22653       Resolves ticket 11438.
22655   o Minor bugfixes (configuration, security):
22656     - When running a hidden service, do not allow TunneledDirConns 0:
22657       trying to set that option together with a hidden service would
22658       otherwise prevent the hidden service from running, and also make
22659       it publish its descriptors directly over HTTP. Fixes bug 10849;
22660       bugfix on 0.2.1.1-alpha.
22662   o Minor bugfixes (controller, backport from 0.2.5.4-alpha):
22663     - Avoid sending a garbage value to the controller when a circuit is
22664       cannibalized. Fixes bug 11519; bugfix on 0.2.3.11-alpha.
22666   o Minor bugfixes (exit relay, backport from 0.2.5.4-alpha):
22667     - Stop leaking memory when we successfully resolve a PTR record.
22668       Fixes bug 11437; bugfix on 0.2.4.7-alpha.
22670   o Minor bugfixes (bridge client, backport from 0.2.5.4-alpha):
22671     - Avoid 60-second delays in the bootstrapping process when Tor is
22672       launching for a second time while using bridges. Fixes bug 9229;
22673       bugfix on 0.2.0.3-alpha.
22675   o Minor bugfixes (relays and bridges, backport from 0.2.5.4-alpha):
22676     - Give the correct URL in the warning message when trying to run a
22677       relay on an ancient version of Windows. Fixes bug 9393.
22679   o Minor bugfixes (compilation):
22680     - Fix a compilation error when compiling with --disable-curve25519.
22681       Fixes bug 9700; bugfix on 0.2.4.17-rc.
22683   o Minor bugfixes:
22684     - Downgrade the warning severity for the the "md was still
22685       referenced 1 node(s)" warning. Tor 0.2.5.4-alpha has better code
22686       for trying to diagnose this bug, and the current warning in
22687       earlier versions of tor achieves nothing useful. Addresses warning
22688       from bug 7164.
22690   o Minor features (log verbosity, backport from 0.2.5.4-alpha):
22691     - When we run out of usable circuit IDs on a channel, log only one
22692       warning for the whole channel, and describe how many circuits
22693       there were on the channel. Fixes part of ticket 11553.
22695   o Minor features (security, backport from 0.2.5.4-alpha):
22696     - Decrease the lower limit of MaxMemInCellQueues to 256 MBytes (but
22697       leave the default at 8GBytes), to better support Raspberry Pi
22698       users. Fixes bug 9686; bugfix on 0.2.4.14-alpha.
22700   o Documentation (backport from 0.2.5.4-alpha):
22701     - Correctly document that we search for a system torrc file before
22702       looking in ~/.torrc. Fixes documentation side of 9213; bugfix on
22703       0.2.3.18-rc.
22706 Changes in version 0.2.5.4-alpha - 2014-04-25
22707   Tor 0.2.5.4-alpha includes several security and performance
22708   improvements for clients and relays, including blacklisting authority
22709   signing keys that were used while susceptible to the OpenSSL
22710   "heartbleed" bug, fixing two expensive functions on busy relays,
22711   improved TLS ciphersuite preference lists, support for run-time
22712   hardening on compilers that support AddressSanitizer, and more work on
22713   the Linux sandbox code.
22715   There are also several usability fixes for clients (especially clients
22716   that use bridges), two new TransPort protocols supported (one on
22717   OpenBSD, one on FreeBSD), and various other bugfixes.
22719   This release marks end-of-life for Tor 0.2.2.x; those Tor versions
22720   have accumulated many known flaws; everyone should upgrade.
22722   o Major features (security):
22723     - If you don't specify MaxMemInQueues yourself, Tor now tries to
22724       pick a good value based on your total system memory. Previously,
22725       the default was always 8 GB. You can still override the default by
22726       setting MaxMemInQueues yourself. Resolves ticket 11396.
22727     - Block authority signing keys that were used on authorities
22728       vulnerable to the "heartbleed" bug in OpenSSL (CVE-2014-0160). (We
22729       don't have any evidence that these keys _were_ compromised; we're
22730       doing this to be prudent.) Resolves ticket 11464.
22732   o Major features (relay performance):
22733     - Speed up server-side lookups of rendezvous and introduction point
22734       circuits by using hashtables instead of linear searches. These
22735       functions previously accounted between 3 and 7% of CPU usage on
22736       some busy relays. Resolves ticket 9841.
22737     - Avoid wasting CPU when extending a circuit over a channel that is
22738       nearly out of circuit IDs. Previously, we would do a linear scan
22739       over possible circuit IDs before finding one or deciding that we
22740       had exhausted our possibilities. Now, we try at most 64 random
22741       circuit IDs before deciding that we probably won't succeed. Fixes
22742       a possible root cause of ticket 11553.
22744   o Major features (seccomp2 sandbox, Linux only):
22745     - The seccomp2 sandbox can now run a test network for multiple hours
22746       without crashing. The sandbox is still experimental, and more bugs
22747       will probably turn up. To try it, enable "Sandbox 1" on a Linux
22748       host. Resolves ticket 11351.
22749     - Strengthen sandbox code: the sandbox can now test the arguments
22750       for rename(), and blocks _sysctl() entirely. Resolves another part
22751       of ticket 11351.
22752     - When the sandbox blocks a system call, it now tries to log a stack
22753       trace before exiting. Resolves ticket 11465.
22755   o Major bugfixes (TLS cipher selection):
22756     - The relay ciphersuite list is now generated automatically based on
22757       uniform criteria, and includes all OpenSSL ciphersuites with
22758       acceptable strength and forward secrecy. Previously, we had left
22759       some perfectly fine ciphersuites unsupported due to omission or
22760       typo. Resolves bugs 11513, 11492, 11498, 11499. Bugs reported by
22761       'cypherpunks'. Bugfix on 0.2.4.8-alpha.
22762     - Relays now trust themselves to have a better view than clients of
22763       which TLS ciphersuites are better than others. (Thanks to bug
22764       11513, the relay list is now well-considered, whereas the client
22765       list has been chosen mainly for anti-fingerprinting purposes.)
22766       Relays prefer: AES over 3DES; then ECDHE over DHE; then GCM over
22767       CBC; then SHA384 over SHA256 over SHA1; and last, AES256 over
22768       AES128. Resolves ticket 11528.
22769     - Clients now try to advertise the same list of ciphersuites as
22770       Firefox 28. This change enables selection of (fast) GCM
22771       ciphersuites, disables some strange old ciphers, and stops
22772       advertising the ECDH (not to be confused with ECDHE) ciphersuites.
22773       Resolves ticket 11438.
22775   o Major bugfixes (bridge client):
22776     - Avoid 60-second delays in the bootstrapping process when Tor is
22777       launching for a second time while using bridges. Fixes bug 9229;
22778       bugfix on 0.2.0.3-alpha.
22780   o Minor features (transparent proxy, *BSD):
22781     - Support FreeBSD's ipfw firewall interface for TransPort ports on
22782       FreeBSD. To enable it, set "TransProxyType ipfw". Resolves ticket
22783       10267; patch from "yurivict".
22784     - Support OpenBSD's divert-to rules with the pf firewall for
22785       transparent proxy ports. To enable it, set "TransProxyType
22786       pf-divert". This allows Tor to run a TransPort transparent proxy
22787       port on OpenBSD 4.4 or later without root privileges. See the
22788       pf.conf(5) manual page for information on configuring pf to use
22789       divert-to rules. Closes ticket 10896; patch from Dana Koch.
22791   o Minor features (security):
22792     - New --enable-expensive-hardening option to enable security
22793       hardening options that consume nontrivial amounts of CPU and
22794       memory. Right now, this includes AddressSanitizer and UbSan, which
22795       are supported in newer versions of GCC and Clang. Closes ticket
22796       11477.
22798   o Minor features (log verbosity):
22799     - Demote the message that we give when a flushing connection times
22800       out for too long from NOTICE to INFO. It was usually meaningless.
22801       Resolves ticket 5286.
22802     - Don't log so many notice-level bootstrapping messages at startup
22803       about downloading descriptors. Previously, we'd log a notice
22804       whenever we learned about more routers. Now, we only log a notice
22805       at every 5% of progress. Fixes bug 9963.
22806     - Warn less verbosely when receiving a malformed
22807       ESTABLISH_RENDEZVOUS cell. Fixes ticket 11279.
22808     - When we run out of usable circuit IDs on a channel, log only one
22809       warning for the whole channel, and describe how many circuits
22810       there were on the channel. Fixes part of ticket 11553.
22812   o Minor features (relay):
22813     - If a circuit timed out for at least 3 minutes, check if we have a
22814       new external IP address, and publish a new descriptor with the new
22815       IP address if it changed. Resolves ticket 2454.
22817   o Minor features (controller):
22818     - Make the entire exit policy available from the control port via
22819       GETINFO exit-policy/*. Implements enhancement 7952. Patch from
22820       "rl1987".
22821     - Because of the fix for ticket 11396, the real limit for memory
22822       usage may no longer match the configured MaxMemInQueues value. The
22823       real limit is now exposed via GETINFO limits/max-mem-in-queues.
22825   o Minor features (bridge client):
22826     - Report a more useful failure message when we can't connect to a
22827       bridge because we don't have the right pluggable transport
22828       configured. Resolves ticket 9665. Patch from Fábio J. Bertinatto.
22830   o Minor features (diagnostic):
22831     - Add more log messages to diagnose bug 7164, which causes
22832       intermittent "microdesc_free() called but md was still referenced"
22833       warnings. We now include more information, to figure out why we
22834       might be cleaning a microdescriptor for being too old if it's
22835       still referenced by a live node_t object.
22837   o Minor bugfixes (client, DNSPort):
22838     - When using DNSPort, try to respond to AAAA requests with AAAA
22839       answers. Previously, we hadn't looked at the request type when
22840       deciding which answer type to prefer. Fixes bug 10468; bugfix on
22841       0.2.4.7-alpha.
22842     - When receiving a DNS query for an unsupported record type, reply
22843       with no answer rather than with a NOTIMPL error. This behavior
22844       isn't correct either, but it will break fewer client programs, we
22845       hope. Fixes bug 10268; bugfix on 0.2.0.1-alpha. Original patch
22846       from "epoch".
22848   o Minor bugfixes (exit relay):
22849     - Stop leaking memory when we successfully resolve a PTR record.
22850       Fixes bug 11437; bugfix on 0.2.4.7-alpha.
22852   o Minor bugfixes (bridge client):
22853     - Stop accepting bridge lines containing hostnames. Doing so would
22854       cause clients to perform DNS requests on the hostnames, which was
22855       not sensible behavior. Fixes bug 10801; bugfix on 0.2.0.1-alpha.
22856     - Avoid a 60-second delay in the bootstrapping process when a Tor
22857       client with pluggable transports re-reads its configuration at
22858       just the wrong time. Re-fixes bug 11156; bugfix on 0.2.5.3-alpha.
22860   o Minor bugfixes (client, logging during bootstrap):
22861     - Warn only once if we start logging in an unsafe way. Previously,
22862       we complain as many times as we had problems. Fixes bug 9870;
22863       bugfix on 0.2.5.1-alpha.
22864     - Only report the first fatal bootstrap error on a given OR
22865       connection. This stops us from telling the controller bogus error
22866       messages like "DONE". Fixes bug 10431; bugfix on 0.2.1.1-alpha.
22867     - Be more helpful when trying to run sandboxed on Linux without
22868       libseccomp. Instead of saying "Sandbox is not implemented on this
22869       platform", we now explain that we need to be built with
22870       libseccomp. Fixes bug 11543; bugfix on 0.2.5.1-alpha.
22871     - Avoid generating spurious warnings when starting with
22872       DisableNetwork enabled. Fixes bug 11200 and bug 10405; bugfix on
22873       0.2.3.9-alpha.
22875   o Minor bugfixes (closing OR connections):
22876     - If write_to_buf() in connection_write_to_buf_impl_() ever fails,
22877       check if it's an or_connection_t and correctly call
22878       connection_or_close_for_error() rather than
22879       connection_mark_for_close() directly. Fixes bug 11304; bugfix on
22880       0.2.4.4-alpha.
22881     - When closing all connections on setting DisableNetwork to 1, use
22882       connection_or_close_normally() rather than closing OR connections
22883       out from under the channel layer. Fixes bug 11306; bugfix on
22884       0.2.4.4-alpha.
22886   o Minor bugfixes (controller):
22887     - Avoid sending a garbage value to the controller when a circuit is
22888       cannibalized. Fixes bug 11519; bugfix on 0.2.3.11-alpha.
22890   o Minor bugfixes (tor-fw-helper):
22891     - Allow tor-fw-helper to build again by adding src/ext to its
22892       CPPFLAGS. Fixes bug 11296; bugfix on 0.2.5.3-alpha.
22894   o Minor bugfixes (bridges):
22895     - Avoid potential crashes or bad behavior when launching a
22896       server-side managed proxy with ORPort or ExtORPort temporarily
22897       disabled. Fixes bug 9650; bugfix on 0.2.3.16-alpha.
22899   o Minor bugfixes (platform-specific):
22900     - Fix compilation on Solaris, which does not have <endian.h>. Fixes
22901       bug 11426; bugfix on 0.2.5.3-alpha.
22902     - When dumping a malformed directory object to disk, save it in
22903       binary mode on Windows, not text mode. Fixes bug 11342; bugfix on
22904       0.2.2.1-alpha.
22905     - Don't report failures from make_socket_reuseable() on incoming
22906       sockets on OSX: this can happen when incoming connections close
22907       early. Fixes bug 10081.
22909   o Minor bugfixes (trivial memory leaks):
22910     - Fix a small memory leak when signing a directory object. Fixes bug
22911       11275; bugfix on 0.2.4.13-alpha.
22912     - Free placeholder entries in our circuit table at exit; fixes a
22913       harmless memory leak. Fixes bug 11278; bugfix on 0.2.5.1-alpha.
22914     - Don't re-initialize a second set of OpenSSL mutexes when starting
22915       up. Previously, we'd make one set of mutexes, and then immediately
22916       replace them with another. Fixes bug 11726; bugfix on
22917       0.2.5.3-alpha.
22918     - Resolve some memory leaks found by coverity in the unit tests, on
22919       exit in tor-gencert, and on a failure to compute digests for our
22920       own keys when generating a v3 networkstatus vote. These leaks
22921       should never have affected anyone in practice.
22923   o Minor bugfixes (hidden service):
22924     - Only retry attempts to connect to a chosen rendezvous point 8
22925       times, not 30. Fixes bug 4241; bugfix on 0.1.0.1-rc.
22927   o Minor bugfixes (misc code correctness):
22928     - Fix various instances of undefined behavior in channeltls.c,
22929       tor_memmem(), and eventdns.c that would cause us to construct
22930       pointers to memory outside an allocated object. (These invalid
22931       pointers were not accessed, but C does not even allow them to
22932       exist.) Fixes bug 10363; bugfixes on 0.1.1.1-alpha, 0.1.2.1-alpha,
22933       0.2.0.10-alpha, and 0.2.3.6-alpha. Reported by "bobnomnom".
22934     - Use the AddressSanitizer and Ubsan sanitizers (in clang-3.4) to
22935       fix some miscellaneous errors in our tests and codebase. Fixes bug
22936       11232. Bugfixes on versions back as far as 0.2.1.11-alpha.
22937     - Always check return values for unlink, munmap, UnmapViewOfFile;
22938       check strftime return values more often. In some cases all we can
22939       do is report a warning, but this may help prevent deeper bugs from
22940       going unnoticed. Closes ticket 8787; bugfixes on many, many tor
22941       versions.
22942     - Fix numerous warnings from the clang "scan-build" static analyzer.
22943       Some of these are programming style issues; some of them are false
22944       positives that indicated awkward code; some are undefined behavior
22945       cases related to constructing (but not using) invalid pointers;
22946       some are assumptions about API behavior; some are (harmlessly)
22947       logging sizeof(ptr) bytes from a token when sizeof(*ptr) would be
22948       correct; and one or two are genuine bugs that weren't reachable
22949       from the rest of the program. Fixes bug 8793; bugfixes on many,
22950       many tor versions.
22952   o Documentation:
22953     - Build the torify.1 manpage again. Previously, we were only trying
22954       to build it when also building tor-fw-helper. That's why we didn't
22955       notice that we'd broken the ability to build it. Fixes bug 11321;
22956       bugfix on 0.2.5.1-alpha.
22957     - Fix the layout of the SOCKSPort flags in the manpage. Fixes bug
22958       11061; bugfix on 0.2.4.7-alpha.
22959     - Correctly document that we search for a system torrc file before
22960       looking in ~/.torrc. Fixes documentation side of 9213; bugfix on
22961       0.2.3.18-rc.
22962     - Resolve warnings from Doxygen.
22964   o Code simplifications and refactoring:
22965     - Remove is_internal_IP() function. Resolves ticket 4645.
22966     - Remove unused function circuit_dump_by_chan from circuitlist.c.
22967       Closes issue 9107; patch from "marek".
22968     - Change our use of the ENUM_BF macro to avoid declarations that
22969       confuse Doxygen.
22971   o Deprecated versions:
22972     - Tor 0.2.2.x has reached end-of-life; it has received no patches or
22973       attention for some while. Directory authorities no longer accept
22974       descriptors from relays running any version of Tor prior to Tor
22975       0.2.3.16-alpha. Resolves ticket 11149.
22977   o Testing:
22978     - New macros in test.h to simplify writing mock-functions for unit
22979       tests. Part of ticket 11507. Patch from Dana Koch.
22980     - Complete tests for the status.c module. Resolves ticket 11507.
22981       Patch from Dana Koch.
22983   o Removed code:
22984     - Remove all code for the long unused v1 directory protocol.
22985       Resolves ticket 11070.
22988 Changes in version 0.2.5.3-alpha - 2014-03-22
22989   Tor 0.2.5.3-alpha includes all the fixes from 0.2.4.21. It contains
22990   two new anti-DoS features for Tor relays, resolves a bug that kept
22991   SOCKS5 support for IPv6 from working, fixes several annoying usability
22992   issues for bridge users, and removes more old code for unused
22993   directory formats.
22995   The Tor 0.2.5.x release series is now in patch-freeze: no feature
22996   patches not already written will be considered for inclusion in 0.2.5.x.
22998   o Major features (relay security, DoS-resistance):
22999     - When deciding whether we have run out of memory and we need to
23000       close circuits, also consider memory allocated in buffers for
23001       streams attached to each circuit.
23003       This change, which extends an anti-DoS feature introduced in
23004       0.2.4.13-alpha and improved in 0.2.4.14-alpha, lets Tor exit relays
23005       better resist more memory-based DoS attacks than before. Since the
23006       MaxMemInCellQueues option now applies to all queues, it is renamed
23007       to MaxMemInQueues. This feature fixes bug 10169.
23008     - Avoid hash-flooding denial-of-service attacks by using the secure
23009       SipHash-2-4 hash function for our hashtables. Without this
23010       feature, an attacker could degrade performance of a targeted
23011       client or server by flooding their data structures with a large
23012       number of entries to be stored at the same hash table position,
23013       thereby slowing down the Tor instance. With this feature, hash
23014       table positions are derived from a randomized cryptographic key,
23015       and an attacker cannot predict which entries will collide. Closes
23016       ticket 4900.
23017     - Decrease the lower limit of MaxMemInQueues to 256 MBytes (but leave
23018       the default at 8GBytes), to better support Raspberry Pi users. Fixes
23019       bug 9686; bugfix on 0.2.4.14-alpha.
23021   o Minor features (bridges, pluggable transports):
23022     - Bridges now write the SHA1 digest of their identity key
23023       fingerprint (that is, a hash of a hash of their public key) to
23024       notice-level logs, and to a new hashed-fingerprint file. This
23025       information will help bridge operators look up their bridge in
23026       Globe and similar tools. Resolves ticket 10884.
23027     - Improve the message that Tor displays when running as a bridge
23028       using pluggable transports without an Extended ORPort listener.
23029       Also, log the message in the log file too. Resolves ticket 11043.
23031   o Minor features (other):
23032     - Add a new option, PredictedPortsRelevanceTime, to control how long
23033       after having received a request to connect to a given port Tor
23034       will try to keep circuits ready in anticipation of future requests
23035       for that port. Patch from "unixninja92"; implements ticket 9176.
23036     - Generate a warning if any ports are listed in the SocksPolicy,
23037       DirPolicy, AuthDirReject, AuthDirInvalid, AuthDirBadDir, or
23038       AuthDirBadExit options. (These options only support address
23039       ranges.) Fixes part of ticket 11108.
23040     - Update geoip and geoip6 to the February 7 2014 Maxmind GeoLite2
23041       Country database.
23043   o Minor bugfixes (new since 0.2.5.2-alpha, also in 0.2.4.21):
23044     - Build without warnings under clang 3.4. (We have some macros that
23045       define static functions only some of which will get used later in
23046       the module. Starting with clang 3.4, these give a warning unless the
23047       unused attribute is set on them.) Resolves ticket 10904.
23048     - Fix build warnings about missing "a2x" comment when building the
23049       manpages from scratch on OpenBSD; OpenBSD calls it "a2x.py".
23050       Fixes bug 10929; bugfix on 0.2.2.9-alpha. Patch from Dana Koch.
23052   o Minor bugfixes (client):
23053     - Improve the log message when we can't connect to a hidden service
23054       because all of the hidden service directory nodes hosting its
23055       descriptor are excluded. Improves on our fix for bug 10722, which
23056       was a bugfix on 0.2.0.10-alpha.
23057     - Raise a control port warning when we fail to connect to all of
23058       our bridges. Previously, we didn't inform the controller, and
23059       the bootstrap process would stall. Fixes bug 11069; bugfix on
23060       0.2.1.2-alpha.
23061     - Exit immediately when a process-owning controller exits.
23062       Previously, tor relays would wait for a little while after their
23063       controller exited, as if they had gotten an INT signal -- but this
23064       was problematic, since there was no feedback for the user. To do a
23065       clean shutdown, controllers should send an INT signal and give Tor
23066       a chance to clean up. Fixes bug 10449; bugfix on 0.2.2.28-beta.
23067     - Stop attempting to connect to bridges before our pluggable
23068       transports are configured (harmless but resulted in some erroneous
23069       log messages). Fixes bug 11156; bugfix on 0.2.3.2-alpha.
23070     - Fix connections to IPv6 addresses over SOCKS5. Previously, we were
23071       generating incorrect SOCKS5 responses, and confusing client
23072       applications. Fixes bug 10987; bugfix on 0.2.4.7-alpha.
23074   o Minor bugfixes (relays and bridges):
23075     - Avoid crashing on a malformed resolv.conf file when running a
23076       relay using Libevent 1. Fixes bug 8788; bugfix on 0.1.1.23.
23077     - Non-exit relays no longer launch mock DNS requests to check for
23078       DNS hijacking. This has been unnecessary since 0.2.1.7-alpha, when
23079       non-exit relays stopped servicing DNS requests. Fixes bug 965;
23080       bugfix on 0.2.1.7-alpha. Patch from Matt Pagan.
23081     - Bridges now report complete directory request statistics. Related
23082       to bug 5824; bugfix on 0.2.2.1-alpha.
23083     - Bridges now never collect statistics that were designed for
23084       relays. Fixes bug 5824; bugfix on 0.2.3.8-alpha.
23085     - Stop giving annoying warning messages when we decide not to launch
23086       a pluggable transport proxy that we don't need (because there are
23087       no bridges configured to use it). Resolves ticket 5018; bugfix
23088       on 0.2.5.2-alpha.
23089     - Give the correct URL in the warning message when trying to run a
23090       relay on an ancient version of Windows. Fixes bug 9393.
23092   o Minor bugfixes (backtrace support):
23093     - Support automatic backtraces on more platforms by using the
23094       "-fasynchronous-unwind-tables" compiler option. This option is
23095       needed for platforms like 32-bit Intel where "-fomit-frame-pointer"
23096       is on by default and table generation is not. This doesn't yet
23097       add Windows support; only Linux, OSX, and some BSDs are affected.
23098       Reported by 'cypherpunks'; fixes bug 11047; bugfix on 0.2.5.2-alpha.
23099     - Avoid strange behavior if two threads hit failed assertions at the
23100       same time and both try to log backtraces at once. (Previously, if
23101       this had happened, both threads would have stored their intermediate
23102       results in the same buffer, and generated junk outputs.) Reported by
23103       "cypherpunks". Fixes bug 11048; bugfix on 0.2.5.2-alpha.
23104     - Fix a compiler warning in format_number_sigsafe(). Bugfix on
23105       0.2.5.2-alpha; patch from Nick Hopper.
23107   o Minor bugfixes (unit tests):
23108     - Fix a small bug in the unit tests that might have made the tests
23109       call 'chmod' with an uninitialized bitmask. Fixes bug 10928;
23110       bugfix on 0.2.5.1-alpha. Patch from Dana Koch.
23112   o Removed code:
23113     - Remove all remaining code related to version-0 hidden service
23114       descriptors: they have not been in use since 0.2.2.1-alpha. Fixes
23115       the rest of bug 10841.
23117   o Documentation:
23118     - Document in the manpage that "KBytes" may also be written as
23119       "kilobytes" or "KB", that "Kbits" may also be written as
23120       "kilobits", and so forth. Closes ticket 9222.
23121     - Document that the ClientOnly config option overrides ORPort.
23122       Our old explanation made ClientOnly sound as though it did
23123       nothing at all. Resolves bug 9059.
23124     - Explain that SocksPolicy, DirPolicy, and similar options don't
23125       take port arguments. Fixes the other part of ticket 11108.
23126     - Fix a comment about the rend_server_descriptor_t.protocols field
23127       to more accurately describe its range. Also, make that field
23128       unsigned, to more accurately reflect its usage. Fixes bug 9099;
23129       bugfix on 0.2.1.5-alpha.
23130     - Fix the manpage's description of HiddenServiceAuthorizeClient:
23131       the maximum client name length is 16, not 19. Fixes bug 11118;
23132       bugfix on 0.2.1.6-alpha.
23134   o Code simplifications and refactoring:
23135     - Get rid of router->address, since in all cases it was just the
23136       string representation of router->addr. Resolves ticket 5528.
23138   o Test infrastructure:
23139     - Update to the latest version of tinytest.
23140     - Improve the tinytest implementation of string operation tests so
23141       that comparisons with NULL strings no longer crash the tests; they
23142       now just fail, normally. Fixes bug 9004; bugfix on 0.2.2.4-alpha.
23145 Changes in version 0.2.4.21 - 2014-02-28
23146   Tor 0.2.4.21 further improves security against potential adversaries who
23147   find breaking 1024-bit crypto doable, and backports several stability
23148   and robustness patches from the 0.2.5 branch.
23150   o Major features (client security):
23151     - When we choose a path for a 3-hop circuit, make sure it contains
23152       at least one relay that supports the NTor circuit extension
23153       handshake. Otherwise, there is a chance that we're building
23154       a circuit that's worth attacking by an adversary who finds
23155       breaking 1024-bit crypto doable, and that chance changes the game
23156       theory. Implements ticket 9777.
23158   o Major bugfixes:
23159     - Do not treat streams that fail with reason
23160       END_STREAM_REASON_INTERNAL as indicating a definite circuit failure,
23161       since it could also indicate an ENETUNREACH connection error. Fixes
23162       part of bug 10777; bugfix on 0.2.4.8-alpha.
23164   o Code simplification and refactoring:
23165     - Remove data structures which were introduced to implement the
23166       CellStatistics option: they are now redundant with the new timestamp
23167       field in the regular packed_cell_t data structure, which we did
23168       in 0.2.4.18-rc in order to resolve bug 9093. Resolves ticket 10870.
23170   o Minor features:
23171     - Always clear OpenSSL bignums before freeing them -- even bignums
23172       that don't contain secrets. Resolves ticket 10793. Patch by
23173       Florent Daigniere.
23174     - Build without warnings under clang 3.4. (We have some macros that
23175       define static functions only some of which will get used later in
23176       the module. Starting with clang 3.4, these give a warning unless the
23177       unused attribute is set on them.) Resolves ticket 10904.
23178     - Update geoip and geoip6 files to the February 7 2014 Maxmind
23179       GeoLite2 Country database.
23181   o Minor bugfixes:
23182     - Set the listen() backlog limit to the largest actually supported
23183       on the system, not to the value in a header file. Fixes bug 9716;
23184       bugfix on every released Tor.
23185     - Treat ENETUNREACH, EACCES, and EPERM connection failures at an
23186       exit node as a NOROUTE error, not an INTERNAL error, since they
23187       can apparently happen when trying to connect to the wrong sort
23188       of netblocks. Fixes part of bug 10777; bugfix on 0.1.0.1-rc.
23189     - Fix build warnings about missing "a2x" comment when building the
23190       manpages from scratch on OpenBSD; OpenBSD calls it "a2x.py".
23191       Fixes bug 10929; bugfix on 0.2.2.9-alpha. Patch from Dana Koch.
23192     - Avoid a segfault on SIGUSR1, where we had freed a connection but did
23193       not entirely remove it from the connection lists. Fixes bug 9602;
23194       bugfix on 0.2.4.4-alpha.
23195     - Fix a segmentation fault in our benchmark code when running with
23196       Fedora's OpenSSL package, or any other OpenSSL that provides
23197       ECDH but not P224. Fixes bug 10835; bugfix on 0.2.4.8-alpha.
23198     - Turn "circuit handshake stats since last time" log messages into a
23199       heartbeat message. Fixes bug 10485; bugfix on 0.2.4.17-rc.
23201   o Documentation fixes:
23202     - Document that all but one DirPort entry must have the NoAdvertise
23203       flag set. Fixes bug 10470; bugfix on 0.2.3.3-alpha / 0.2.3.16-alpha.
23206 Changes in version 0.2.5.2-alpha - 2014-02-13
23207   Tor 0.2.5.2-alpha includes all the fixes from 0.2.4.18-rc and 0.2.4.20,
23208   like the "poor random number generation" fix and the "building too many
23209   circuits" fix. It also further improves security against potential
23210   adversaries who find breaking 1024-bit crypto doable, and launches
23211   pluggable transports on demand (which gets us closer to integrating
23212   pluggable transport support by default -- not to be confused with Tor
23213   bundles enabling pluggable transports and bridges by default).
23215   o Major features (client security):
23216     - When we choose a path for a 3-hop circuit, make sure it contains
23217       at least one relay that supports the NTor circuit extension
23218       handshake. Otherwise, there is a chance that we're building
23219       a circuit that's worth attacking by an adversary who finds
23220       breaking 1024-bit crypto doable, and that chance changes the game
23221       theory. Implements ticket 9777.
23222     - Clients now look at the "usecreatefast" consensus parameter to
23223       decide whether to use CREATE_FAST or CREATE cells for the first hop
23224       of their circuit. This approach can improve security on connections
23225       where Tor's circuit handshake is stronger than the available TLS
23226       connection security levels, but the tradeoff is more computational
23227       load on guard relays. Implements proposal 221. Resolves ticket 9386.
23229   o Major features (bridges):
23230     - Don't launch pluggable transport proxies if we don't have any
23231       bridges configured that would use them. Now we can list many
23232       pluggable transports, and Tor will dynamically start one when it
23233       hears a bridge address that needs it. Resolves ticket 5018.
23234     - The bridge directory authority now assigns status flags (Stable,
23235       Guard, etc) to bridges based on thresholds calculated over all
23236       Running bridges. Now bridgedb can finally make use of its features
23237       to e.g. include at least one Stable bridge in its answers. Fixes
23238       bug 9859.
23240   o Major features (other):
23241     - Extend ORCONN controller event to include an "ID" parameter,
23242       and add four new controller event types CONN_BW, CIRC_BW,
23243       CELL_STATS, and TB_EMPTY that show connection and circuit usage.
23244       The new events are emitted in private Tor networks only, with the
23245       goal of being able to better track performance and load during
23246       full-network simulations. Implements proposal 218 and ticket 7359.
23247     - On some platforms (currently: recent OSX versions, glibc-based
23248       platforms that support the ELF format, and a few other
23249       Unix-like operating systems), Tor can now dump stack traces
23250       when a crash occurs or an assertion fails. By default, traces
23251       are dumped to stderr (if possible) and to any logs that are
23252       reporting errors. Implements ticket 9299.
23254   o Major bugfixes:
23255     - Avoid a segfault on SIGUSR1, where we had freed a connection but did
23256       not entirely remove it from the connection lists. Fixes bug 9602;
23257       bugfix on 0.2.4.4-alpha.
23258     - Do not treat streams that fail with reason
23259       END_STREAM_REASON_INTERNAL as indicating a definite circuit failure,
23260       since it could also indicate an ENETUNREACH connection error. Fixes
23261       part of bug 10777; bugfix on 0.2.4.8-alpha.
23263   o Major bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.20):
23264     - Do not allow OpenSSL engines to replace the PRNG, even when
23265       HardwareAccel is set. The only default builtin PRNG engine uses
23266       the Intel RDRAND instruction to replace the entire PRNG, and
23267       ignores all attempts to seed it with more entropy. That's
23268       cryptographically stupid: the right response to a new alleged
23269       entropy source is never to discard all previously used entropy
23270       sources. Fixes bug 10402; works around behavior introduced in
23271       OpenSSL 1.0.0. Diagnosis and investigation thanks to "coderman"
23272       and "rl1987".
23273     - Fix assertion failure when AutomapHostsOnResolve yields an IPv6
23274       address. Fixes bug 10465; bugfix on 0.2.4.7-alpha.
23275     - Avoid launching spurious extra circuits when a stream is pending.
23276       This fixes a bug where any circuit that _wasn't_ unusable for new
23277       streams would be treated as if it were, causing extra circuits to
23278       be launched. Fixes bug 10456; bugfix on 0.2.4.12-alpha.
23280   o Major bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
23281     - No longer stop reading or writing on cpuworker connections when
23282       our rate limiting buckets go empty. Now we should handle circuit
23283       handshake requests more promptly. Resolves bug 9731.
23284     - Stop trying to bootstrap all our directory information from
23285       only our first guard. Discovered while fixing bug 9946; bugfix
23286       on 0.2.4.8-alpha.
23288   o Minor features (bridges, pluggable transports):
23289     - Add threshold cutoffs to the networkstatus document created by
23290       the Bridge Authority. Fixes bug 1117.
23291     - On Windows, spawn background processes using the CREATE_NO_WINDOW
23292       flag. Now Tor Browser Bundle 3.5 with pluggable transports enabled
23293       doesn't pop up a blank console window. (In Tor Browser Bundle 2.x,
23294       Vidalia set this option for us.) Implements ticket 10297.
23296   o Minor features (security):
23297     - Always clear OpenSSL bignums before freeing them -- even bignums
23298       that don't contain secrets. Resolves ticket 10793. Patch by
23299       Florent Daignière.
23301   o Minor features (config options and command line):
23302     - Add an --allow-missing-torrc commandline option that tells Tor to
23303       run even if the configuration file specified by -f is not available.
23304       Implements ticket 10060.
23305     - Add support for the TPROXY transparent proxying facility on Linux.
23306       See documentation for the new TransProxyType option for more
23307       details. Implementation by "thomo". Closes ticket 10582.
23309   o Minor features (controller):
23310     - Add a new "HS_DESC" controller event that reports activities
23311       related to hidden service descriptors. Resolves ticket 8510.
23312     - New "DROPGUARDS" controller command to forget all current entry
23313       guards. Not recommended for ordinary use, since replacing guards
23314       too frequently makes several attacks easier. Resolves ticket 9934;
23315       patch from "ra".
23317   o Minor features (build):
23318     - Assume that a user using ./configure --host wants to cross-compile,
23319       and give an error if we cannot find a properly named
23320       tool-chain. Add a --disable-tool-name-check option to proceed
23321       nevertheless. Addresses ticket 9869. Patch by Benedikt Gollatz.
23322     - If we run ./configure and the compiler recognizes -fstack-protector
23323       but the linker rejects it, warn the user about a potentially missing
23324       libssp package. Addresses ticket 9948. Patch from Benedikt Gollatz.
23326   o Minor features (testing):
23327     - If Python is installed, "make check" now runs extra tests beyond
23328       the unit test scripts.
23329     - When bootstrapping a test network, sometimes very few relays get
23330       the Guard flag. Now a new option "TestingDirAuthVoteGuard" can
23331       specify a set of relays which should be voted Guard regardless of
23332       their uptime or bandwidth. Addresses ticket 9206.
23334   o Minor features (log messages):
23335     - When ServerTransportPlugin is set on a bridge, Tor can write more
23336       useful statistics about bridge use in its extrainfo descriptors,
23337       but only if the Extended ORPort ("ExtORPort") is set too. Add a
23338       log message to inform the user in this case. Resolves ticket 9651.
23339     - When receiving a new controller connection, log the origin address.
23340       Resolves ticket 9698; patch from "sigpipe".
23341     - When logging OpenSSL engine status at startup, log the status of
23342       more engines. Fixes ticket 10043; patch from Joshua Datko.
23343     - Turn "circuit handshake stats since last time" log messages into a
23344       heartbeat message. Fixes bug 10485; bugfix on 0.2.4.17-rc.
23346   o Minor features (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
23347     - Improve the circuit queue out-of-memory handler. Previously, when
23348       we ran low on memory, we'd close whichever circuits had the most
23349       queued cells. Now, we close those that have the *oldest* queued
23350       cells, on the theory that those are most responsible for us
23351       running low on memory. Based on analysis from a forthcoming paper
23352       by Jansen, Tschorsch, Johnson, and Scheuermann. Fixes bug 9093.
23353     - Generate bootstrapping status update events correctly when fetching
23354       microdescriptors. Fixes bug 9927.
23355     - Update to the October 2 2013 Maxmind GeoLite Country database.
23357   o Minor bugfixes (clients):
23358     - When closing a channel that has already been open, do not close
23359       pending circuits that were waiting to connect to the same relay.
23360       Fixes bug 9880; bugfix on 0.2.5.1-alpha. Thanks to skruffy for
23361       finding this bug.
23363   o Minor bugfixes (relays):
23364     - Treat ENETUNREACH, EACCES, and EPERM connection failures at an
23365       exit node as a NOROUTE error, not an INTERNAL error, since they
23366       can apparently happen when trying to connect to the wrong sort
23367       of netblocks. Fixes part of bug 10777; bugfix on 0.1.0.1-rc.
23369   o Minor bugfixes (bridges):
23370     - Fix a bug where the first connection works to a bridge that uses a
23371       pluggable transport with client-side parameters, but we don't send
23372       the client-side parameters on subsequent connections. (We don't
23373       use any pluggable transports with client-side parameters yet,
23374       but ScrambleSuit will soon become the first one.) Fixes bug 9162;
23375       bugfix on 0.2.0.3-alpha. Based on a patch from "rl1987".
23377   o Minor bugfixes (node selection):
23378     - If ExcludeNodes is set, consider non-excluded hidden service
23379       directory servers before excluded ones. Do not consider excluded
23380       hidden service directory servers at all if StrictNodes is
23381       set. (Previously, we would sometimes decide to connect to those
23382       servers, and then realize before we initiated a connection that
23383       we had excluded them.) Fixes bug 10722; bugfix on 0.2.0.10-alpha.
23384       Reported by "mr-4".
23385     - If we set the ExitNodes option but it doesn't include any nodes
23386       that have the Exit flag, we would choose not to bootstrap. Now we
23387       bootstrap so long as ExitNodes includes nodes which can exit to
23388       some port. Fixes bug 10543; bugfix on 0.2.4.10-alpha.
23390   o Minor bugfixes (controller and command-line):
23391     - If changing a config option via "setconf" fails in a recoverable
23392       way, we used to nonetheless write our new control ports to the
23393       file described by the "ControlPortWriteToFile" option. Now we only
23394       write out that file if we successfully switch to the new config
23395       option. Fixes bug 5605; bugfix on 0.2.2.26-beta. Patch from "Ryman".
23396     - When a command-line option such as --version or --help that
23397       ordinarily implies --hush appears on the command line along with
23398       --quiet, then actually obey --quiet. Previously, we obeyed --quiet
23399       only if it appeared later on the command line. Fixes bug 9578;
23400       bugfix on 0.2.5.1-alpha.
23402   o Minor bugfixes (code correctness):
23403     - Previously we used two temporary files when writing descriptors to
23404       disk; now we only use one. Fixes bug 1376.
23405     - Remove an erroneous (but impossible and thus harmless) pointer
23406       comparison that would have allowed compilers to skip a bounds
23407       check in channeltls.c. Fixes bugs 10313 and 9980; bugfix on
23408       0.2.0.10-alpha. Noticed by Jared L Wong and David Fifield.
23409     - Fix an always-true assertion in pluggable transports code so it
23410       actually checks what it was trying to check. Fixes bug 10046;
23411       bugfix on 0.2.3.9-alpha. Found by "dcb".
23413   o Minor bugfixes (protocol correctness):
23414     - When receiving a VERSIONS cell with an odd number of bytes, close
23415       the connection immediately since the cell is malformed. Fixes bug
23416       10365; bugfix on 0.2.0.10-alpha. Spotted by "bobnomnom"; fix by
23417       "rl1987".
23419   o Minor bugfixes (build):
23420     - Restore the ability to compile Tor with V2_HANDSHAKE_SERVER
23421       turned off (that is, without support for v2 link handshakes). Fixes
23422       bug 4677; bugfix on 0.2.3.2-alpha. Patch from "piet".
23423     - Fix compilation warnings and startup issues when running with
23424       "Sandbox 1" and libseccomp-2.1.0. Fixes bug 10563; bugfix on
23425       0.2.5.1-alpha.
23426     - Fix compilation on Solaris 9, which didn't like us having an
23427       identifier named "sun". Fixes bug 10565; bugfix in 0.2.5.1-alpha.
23429   o Minor bugfixes (testing):
23430     - Fix a segmentation fault in our benchmark code when running with
23431       Fedora's OpenSSL package, or any other OpenSSL that provides
23432       ECDH but not P224. Fixes bug 10835; bugfix on 0.2.4.8-alpha.
23434   o Minor bugfixes (log messages):
23435     - Fix a bug where clients using bridges would report themselves
23436       as 50% bootstrapped even without a live consensus document.
23437       Fixes bug 9922; bugfix on 0.2.1.1-alpha.
23438     - Suppress a warning where, if there's only one directory authority
23439       in the network, we would complain that votes and signatures cannot
23440       be uploaded to other directory authorities. Fixes bug 10842;
23441       bugfix on 0.2.2.26-beta.
23442     - Report bootstrapping progress correctly when we're downloading
23443       microdescriptors. We had updated our "do we have enough microdescs
23444       to begin building circuits?" logic most recently in 0.2.4.10-alpha
23445       (see bug 5956), but we left the bootstrap status event logic at
23446       "how far through getting 1/4 of them are we?" Fixes bug 9958;
23447       bugfix on 0.2.2.36, which is where they diverged (see bug 5343).
23449   o Minor bugfixes (new since 0.2.5.1-alpha, also in 0.2.4.20):
23450     - Avoid a crash bug when starting with a corrupted microdescriptor
23451       cache file. Fixes bug 10406; bugfix on 0.2.2.6-alpha.
23452     - If we fail to dump a previously cached microdescriptor to disk, avoid
23453       freeing duplicate data later on. Fixes bug 10423; bugfix on
23454       0.2.4.13-alpha. Spotted by "bobnomnom".
23456   o Minor bugfixes on 0.2.4.x (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
23457     - Correctly log long IPv6 exit policies, instead of truncating them
23458       or reporting an error. Fixes bug 9596; bugfix on 0.2.4.7-alpha.
23459     - Our default TLS ecdhe groups were backwards: we meant to be using
23460       P224 for relays (for performance win) and P256 for bridges (since
23461       it is more common in the wild). Instead we had it backwards. After
23462       reconsideration, we decided that the default should be P256 on all
23463       hosts, since its security is probably better, and since P224 is
23464       reportedly used quite little in the wild.  Found by "skruffy" on
23465       IRC. Fix for bug 9780; bugfix on 0.2.4.8-alpha.
23466     - Free directory authority certificate download statuses on exit
23467       rather than leaking them. Fixes bug 9644; bugfix on 0.2.4.13-alpha.
23469   o Minor bugfixes on 0.2.3.x (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
23470     - If the guard we choose first doesn't answer, we would try the
23471       second guard, but once we connected to the second guard we would
23472       abandon it and retry the first one, slowing down bootstrapping.
23473       The fix is to treat all our initially chosen guards as acceptable
23474       to use. Fixes bug 9946; bugfix on 0.1.1.11-alpha.
23475     - Fix an assertion failure that would occur when disabling the
23476       ORPort setting on a running Tor process while accounting was
23477       enabled. Fixes bug 6979; bugfix on 0.2.2.18-alpha.
23478     - When examining the list of network interfaces to find our address,
23479       do not consider non-running or disabled network interfaces. Fixes
23480       bug 9904; bugfix on 0.2.3.11-alpha. Patch from "hantwister".
23481     - Avoid an off-by-one error when checking buffer boundaries when
23482       formatting the exit status of a pluggable transport helper.
23483       This is probably not an exploitable bug, but better safe than
23484       sorry. Fixes bug 9928; bugfix on 0.2.3.18-rc. Bug found by
23485       Pedro Ribeiro.
23487   o Removed code and features:
23488     - Clients now reject any directory authority certificates lacking
23489       a dir-key-crosscert element. These have been included since
23490       0.2.1.9-alpha, so there's no real reason for them to be optional
23491       any longer. Completes proposal 157. Resolves ticket 10162.
23492     - Remove all code that existed to support the v2 directory system,
23493       since there are no longer any v2 directory authorities. Resolves
23494       ticket 10758.
23495     - Remove the HSAuthoritativeDir and AlternateHSAuthority torrc
23496       options, which were used for designating authorities as "Hidden
23497       service authorities". There has been no use of hidden service
23498       authorities since 0.2.2.1-alpha, when we stopped uploading or
23499       downloading v0 hidden service descriptors. Fixes bug 10881; also
23500       part of a fix for bug 10841.
23502   o Code simplification and refactoring:
23503     - Remove some old fallback code designed to keep Tor clients working
23504       in a network with only two working relays. Elsewhere in the code we
23505       have long since stopped supporting such networks, so there wasn't
23506       much point in keeping it around. Addresses ticket 9926.
23507     - Reject 0-length EXTEND2 cells more explicitly. Fixes bug 10536;
23508       bugfix on 0.2.4.8-alpha. Reported by "cypherpunks".
23509     - Remove data structures which were introduced to implement the
23510       CellStatistics option: they are now redundant with the addition
23511       of a timestamp to the regular packed_cell_t data structure, which
23512       we did in 0.2.4.18-rc in order to resolve ticket 9093. Implements
23513       ticket 10870.
23515   o Documentation (man page) fixes:
23516     - Update manpage to describe some of the files you can expect to
23517       find in Tor's DataDirectory. Addresses ticket 9839.
23518     - Document that all but one DirPort entry must have the NoAdvertise
23519       flag set. Fixes bug 10470; bugfix on 0.2.3.3-alpha / 0.2.3.16-alpha.
23521   o Documentation fixes (new since 0.2.5.1-alpha, also in 0.2.4.18-rc):
23522     - Clarify the usage and risks of setting the ContactInfo torrc line
23523       for your relay or bridge. Resolves ticket 9854.
23524     - Add anchors to the manpage so we can link to the html version of
23525       the documentation for specific options. Resolves ticket 9866.
23526     - Replace remaining references to DirServer in man page and
23527       log entries. Resolves ticket 10124.
23529   o Tool changes:
23530     - Make the "tor-gencert" tool used by directory authority operators
23531       create 2048-bit signing keys by default (rather than 1024-bit, since
23532       1024-bit is uncomfortably small these days). Addresses ticket 10324.
23535 Changes in version 0.2.4.20 - 2013-12-22
23536   Tor 0.2.4.20 fixes potentially poor random number generation for users
23537   who 1) use OpenSSL 1.0.0 or later, 2) set "HardwareAccel 1" in their
23538   torrc file, 3) have "Sandy Bridge" or "Ivy Bridge" Intel processors,
23539   and 4) have no state file in their DataDirectory (as would happen on
23540   first start). Users who generated relay or hidden service identity
23541   keys in such a situation should discard them and generate new ones.
23543   This release also fixes a logic error that caused Tor clients to build
23544   many more preemptive circuits than they actually need.
23546   o Major bugfixes:
23547     - Do not allow OpenSSL engines to replace the PRNG, even when
23548       HardwareAccel is set. The only default builtin PRNG engine uses
23549       the Intel RDRAND instruction to replace the entire PRNG, and
23550       ignores all attempts to seed it with more entropy. That's
23551       cryptographically stupid: the right response to a new alleged
23552       entropy source is never to discard all previously used entropy
23553       sources. Fixes bug 10402; works around behavior introduced in
23554       OpenSSL 1.0.0. Diagnosis and investigation thanks to "coderman"
23555       and "rl1987".
23556     - Fix assertion failure when AutomapHostsOnResolve yields an IPv6
23557       address. Fixes bug 10465; bugfix on 0.2.4.7-alpha.
23558     - Avoid launching spurious extra circuits when a stream is pending.
23559       This fixes a bug where any circuit that _wasn't_ unusable for new
23560       streams would be treated as if it were, causing extra circuits to
23561       be launched. Fixes bug 10456; bugfix on 0.2.4.12-alpha.
23563   o Minor bugfixes:
23564     - Avoid a crash bug when starting with a corrupted microdescriptor
23565       cache file. Fixes bug 10406; bugfix on 0.2.2.6-alpha.
23566     - If we fail to dump a previously cached microdescriptor to disk, avoid
23567       freeing duplicate data later on. Fixes bug 10423; bugfix on
23568       0.2.4.13-alpha. Spotted by "bobnomnom".
23571 Changes in version 0.2.4.19 - 2013-12-11
23572   The Tor 0.2.4 release series is dedicated to the memory of Aaron Swartz
23573   (1986-2013). Aaron worked on diverse projects including helping to guide
23574   Creative Commons, playing a key role in stopping SOPA/PIPA, bringing
23575   transparency to the U.S government's PACER documents, and contributing
23576   design and development for Tor and Tor2Web. Aaron was one of the latest
23577   martyrs in our collective fight for civil liberties and human rights,
23578   and his death is all the more painful because he was one of us.
23580   Tor 0.2.4.19, the first stable release in the 0.2.4 branch, features
23581   a new circuit handshake and link encryption that use ECC to provide
23582   better security and efficiency; makes relays better manage circuit
23583   creation requests; uses "directory guards" to reduce client enumeration
23584   risks; makes bridges collect and report statistics about the pluggable
23585   transports they support; cleans up and improves our geoip database;
23586   gets much closer to IPv6 support for clients, bridges, and relays; makes
23587   directory authorities use measured bandwidths rather than advertised
23588   ones when computing flags and thresholds; disables client-side DNS
23589   caching to reduce tracking risks; and fixes a big bug in bridge
23590   reachability testing. This release introduces two new design
23591   abstractions in the code: a new "channel" abstraction between circuits
23592   and or_connections to allow for implementing alternate relay-to-relay
23593   transports, and a new "circuitmux" abstraction storing the queue of
23594   circuits for a channel. The release also includes many stability,
23595   security, and privacy fixes.
23598 Changes in version 0.2.4.18-rc - 2013-11-16
23599   Tor 0.2.4.18-rc is the fourth release candidate for the Tor 0.2.4.x
23600   series. It takes a variety of fixes from the 0.2.5.x branch to improve
23601   stability, performance, and better handling of edge cases.
23603   o Major features:
23604     - Re-enable TLS 1.1 and 1.2 when built with OpenSSL 1.0.1e or later.
23605       Resolves ticket 6055. (OpenSSL before 1.0.1 didn't have TLS 1.1 or
23606       1.2, and OpenSSL from 1.0.1 through 1.0.1d had bugs that prevented
23607       renegotiation from working with TLS 1.1 or 1.2, so we had disabled
23608       them to solve bug 6033.)
23610   o Major bugfixes:
23611     - No longer stop reading or writing on cpuworker connections when
23612       our rate limiting buckets go empty. Now we should handle circuit
23613       handshake requests more promptly. Resolves bug 9731.
23614     - If we are unable to save a microdescriptor to the journal, do not
23615       drop it from memory and then reattempt downloading it. Fixes bug
23616       9645; bugfix on 0.2.2.6-alpha.
23617     - Stop trying to bootstrap all our directory information from
23618       only our first guard. Discovered while fixing bug 9946; bugfix
23619       on 0.2.4.8-alpha.
23620     - The new channel code sometimes lost track of in-progress circuits,
23621       causing long-running clients to stop building new circuits. The
23622       fix is to always call circuit_n_chan_done(chan, 0) from
23623       channel_closed(). Fixes bug 9776; bugfix on 0.2.4.17-rc.
23625   o Minor bugfixes (on 0.2.4.x):
23626     - Correctly log long IPv6 exit policies, instead of truncating them
23627       or reporting an error. Fixes bug 9596; bugfix on 0.2.4.7-alpha.
23628     - Our default TLS ecdhe groups were backwards: we meant to be using
23629       P224 for relays (for performance win) and P256 for bridges (since
23630       it is more common in the wild). Instead we had it backwards. After
23631       reconsideration, we decided that the default should be P256 on all
23632       hosts, since its security is probably better, and since P224 is
23633       reportedly used quite little in the wild.  Found by "skruffy" on
23634       IRC. Fix for bug 9780; bugfix on 0.2.4.8-alpha.
23635     - Free directory authority certificate download statuses on exit
23636       rather than leaking them. Fixes bug 9644; bugfix on 0.2.4.13-alpha.
23638   o Minor bugfixes (on 0.2.3.x and earlier):
23639     - If the guard we choose first doesn't answer, we would try the
23640       second guard, but once we connected to the second guard we would
23641       abandon it and retry the first one, slowing down bootstrapping.
23642       The fix is to treat all our initially chosen guards as acceptable
23643       to use. Fixes bug 9946; bugfix on 0.1.1.11-alpha.
23644     - Fix an assertion failure that would occur when disabling the
23645       ORPort setting on a running Tor process while accounting was
23646       enabled. Fixes bug 6979; bugfix on 0.2.2.18-alpha.
23647     - When examining the list of network interfaces to find our address,
23648       do not consider non-running or disabled network interfaces. Fixes
23649       bug 9904; bugfix on 0.2.3.11-alpha. Patch from "hantwister".
23650     - Avoid an off-by-one error when checking buffer boundaries when
23651       formatting the exit status of a pluggable transport helper.
23652       This is probably not an exploitable bug, but better safe than
23653       sorry. Fixes bug 9928; bugfix on 0.2.3.18-rc. Bug found by
23654       Pedro Ribeiro.
23656   o Minor features (protecting client timestamps):
23657     - Clients no longer send timestamps in their NETINFO cells. These were
23658       not used for anything, and they provided one small way for clients
23659       to be distinguished from each other as they moved from network to
23660       network or behind NAT. Implements part of proposal 222.
23661     - Clients now round timestamps in INTRODUCE cells down to the nearest
23662       10 minutes. If a new Support022HiddenServices option is set to 0, or
23663       if it's set to "auto" and the feature is disabled in the consensus,
23664       the timestamp is sent as 0 instead. Implements part of proposal 222.
23665     - Stop sending timestamps in AUTHENTICATE cells. This is not such
23666       a big deal from a security point of view, but it achieves no actual
23667       good purpose, and isn't needed. Implements part of proposal 222.
23668     - Reduce down accuracy of timestamps in hidden service descriptors.
23669       Implements part of proposal 222.
23671   o Minor features (other):
23672     - Improve the circuit queue out-of-memory handler. Previously, when
23673       we ran low on memory, we'd close whichever circuits had the most
23674       queued cells. Now, we close those that have the *oldest* queued
23675       cells, on the theory that those are most responsible for us
23676       running low on memory. Based on analysis from a forthcoming paper
23677       by Jansen, Tschorsch, Johnson, and Scheuermann. Fixes bug 9093.
23678     - Generate bootstrapping status update events correctly when fetching
23679       microdescriptors. Fixes bug 9927.
23680     - Update to the October 2 2013 Maxmind GeoLite Country database.
23682   o Documentation fixes:
23683     - Clarify the usage and risks of setting the ContactInfo torrc line
23684       for your relay or bridge. Resolves ticket 9854.
23685     - Add anchors to the manpage so we can link to the html version of
23686       the documentation for specific options. Resolves ticket 9866.
23687     - Replace remaining references to DirServer in man page and
23688       log entries. Resolves ticket 10124.
23691 Changes in version 0.2.5.1-alpha - 2013-10-02
23692   Tor 0.2.5.1-alpha introduces experimental support for syscall sandboxing
23693   on Linux, allows bridges that offer pluggable transports to report usage
23694   statistics, fixes many issues to make testing easier, and provides
23695   a pile of minor features and bugfixes that have been waiting for a
23696   release of the new branch.
23698   This is the first alpha release in a new series, so expect there to
23699   be bugs. Users who would rather test out a more stable branch should
23700   stay with 0.2.4.x for now.
23702   o Major features (security):
23703     - Use the seccomp2 syscall filtering facility on Linux to limit
23704       which system calls Tor can invoke. This is an experimental,
23705       Linux-only feature to provide defense-in-depth against unknown
23706       attacks. To try turning it on, set "Sandbox 1" in your torrc
23707       file. Please be ready to report bugs. We hope to add support
23708       for better sandboxing in the future, including more fine-grained
23709       filters, better division of responsibility, and support for more
23710       platforms. This work has been done by Cristian-Matei Toader for
23711       Google Summer of Code.
23712     - Re-enable TLS 1.1 and 1.2 when built with OpenSSL 1.0.1e or later.
23713       Resolves ticket 6055. (OpenSSL before 1.0.1 didn't have TLS 1.1 or
23714       1.2, and OpenSSL from 1.0.1 through 1.0.1d had bugs that prevented
23715       renegotiation from working with TLS 1.1 or 1.2, so we had disabled
23716       them to solve bug 6033.)
23718   o Major features (other):
23719     - Add support for passing arguments to managed pluggable transport
23720       proxies. Implements ticket 3594.
23721     - Bridges now track GeoIP information and the number of their users
23722       even when pluggable transports are in use, and report usage
23723       statistics in their extra-info descriptors. Resolves tickets 4773
23724       and 5040.
23725     - Make testing Tor networks bootstrap better: lower directory fetch
23726       retry schedules and maximum interval without directory requests,
23727       and raise maximum download tries. Implements ticket 6752.
23728     - Add make target 'test-network' to run tests on a Chutney network.
23729       Implements ticket 8530.
23730     - The ntor handshake is now on-by-default, no matter what the
23731       directory authorities recommend. Implements ticket 8561.
23733   o Major bugfixes:
23734     - Instead of writing destroy cells directly to outgoing connection
23735       buffers, queue them and intersperse them with other outgoing cells.
23736       This can prevent a set of resource starvation conditions where too
23737       many pending destroy cells prevent data cells from actually getting
23738       delivered. Reported by "oftc_must_be_destroyed". Fixes bug 7912;
23739       bugfix on 0.2.0.1-alpha.
23740     - If we are unable to save a microdescriptor to the journal, do not
23741       drop it from memory and then reattempt downloading it. Fixes bug
23742       9645; bugfix on 0.2.2.6-alpha.
23743     - The new channel code sometimes lost track of in-progress circuits,
23744       causing long-running clients to stop building new circuits. The
23745       fix is to always call circuit_n_chan_done(chan, 0) from
23746       channel_closed(). Fixes bug 9776; bugfix on 0.2.4.17-rc.
23748   o Build features:
23749     - Tor now builds each source file in two modes: a mode that avoids
23750       exposing identifiers needlessly, and another mode that exposes
23751       more identifiers for testing. This lets the compiler do better at
23752       optimizing the production code, while enabling us to take more
23753       radical measures to let the unit tests test things.
23754     - The production builds no longer include functions used only in
23755       the unit tests; all functions exposed from a module only for
23756       unit-testing are now static in production builds.
23757     - Add an --enable-coverage configuration option to make the unit
23758       tests (and a new src/or/tor-cov target) to build with gcov test
23759       coverage support.
23761   o Testing:
23762     - We now have rudimentary function mocking support that our unit
23763       tests can use to test functions in isolation. Function mocking
23764       lets the tests temporarily replace a function's dependencies with
23765       stub functions, so that the tests can check the function without
23766       invoking the other functions it calls.
23767     - Add more unit tests for the <circid,channel>->circuit map, and
23768       the destroy-cell-tracking code to fix bug 7912.
23769     - Unit tests for failing cases of the TAP onion handshake.
23770     - More unit tests for address-manipulation functions.
23772   o Minor features (protecting client timestamps):
23773     - Clients no longer send timestamps in their NETINFO cells. These were
23774       not used for anything, and they provided one small way for clients
23775       to be distinguished from each other as they moved from network to
23776       network or behind NAT. Implements part of proposal 222.
23777     - Clients now round timestamps in INTRODUCE cells down to the nearest
23778       10 minutes. If a new Support022HiddenServices option is set to 0, or
23779       if it's set to "auto" and the feature is disabled in the consensus,
23780       the timestamp is sent as 0 instead. Implements part of proposal 222.
23781     - Stop sending timestamps in AUTHENTICATE cells. This is not such
23782       a big deal from a security point of view, but it achieves no actual
23783       good purpose, and isn't needed. Implements part of proposal 222.
23784     - Reduce down accuracy of timestamps in hidden service descriptors.
23785       Implements part of proposal 222.
23787   o Minor features (config options):
23788     - Config (torrc) lines now handle fingerprints which are missing
23789       their initial '$'. Resolves ticket 4341; improvement over 0.0.9pre5.
23790     - Support a --dump-config option to print some or all of the
23791       configured options. Mainly useful for debugging the command-line
23792       option parsing code. Helps resolve ticket 4647.
23793     - Raise awareness of safer logging: notify user of potentially
23794       unsafe config options, like logging more verbosely than severity
23795       "notice" or setting SafeLogging to 0. Resolves ticket 5584.
23796     - Add a new configuration option TestingV3AuthVotingStartOffset
23797       that bootstraps a network faster by changing the timing for
23798       consensus votes. Addresses ticket 8532.
23799     - Add a new torrc option "ServerTransportOptions" that allows
23800       bridge operators to pass configuration parameters to their
23801       pluggable transports. Resolves ticket 8929.
23802     - The config (torrc) file now accepts bandwidth and space limits in
23803       bits as well as bytes. (Anywhere that you can say "2 Kilobytes",
23804       you can now say "16 kilobits", and so on.) Resolves ticket 9214.
23805       Patch by CharlieB.
23807   o Minor features (build):
23808     - Add support for `--library-versions` flag. Implements ticket 6384.
23809     - Return the "unexpected sendme" warnings to a warn severity, but make
23810       them rate limited, to help diagnose ticket 8093.
23811     - Detect a missing asciidoc, and warn the user about it, during
23812       configure rather than at build time. Fixes issue 6506. Patch from
23813       Arlo Breault.
23815   o Minor features (other):
23816     - Use the SOCK_NONBLOCK socket type, if supported, to open nonblocking
23817       sockets in a single system call. Implements ticket 5129.
23818     - Log current accounting state (bytes sent and received + remaining
23819       time for the current accounting period) in the relay's heartbeat
23820       message. Implements ticket 5526; patch from Peter Retzlaff.
23821     - Implement the TRANSPORT_LAUNCHED control port event that
23822       notifies controllers about new launched pluggable
23823       transports. Resolves ticket 5609.
23824     - If we're using the pure-C 32-bit curve25519_donna implementation
23825       of curve25519, build it with the -fomit-frame-pointer option to
23826       make it go faster on register-starved hosts. This improves our
23827       handshake performance by about 6% on i386 hosts without nacl.
23828       Closes ticket 8109.
23829     - Update to the September 4 2013 Maxmind GeoLite Country database.
23831   o Minor bugfixes:
23832     - Set the listen() backlog limit to the largest actually supported
23833       on the system, not to the value in a header file. Fixes bug 9716;
23834       bugfix on every released Tor.
23835     - No longer accept malformed http headers when parsing urls from
23836       headers. Now we reply with Bad Request ("400"). Fixes bug 2767;
23837       bugfix on 0.0.6pre1.
23838     - In munge_extrainfo_into_routerinfo(), check the return value of
23839       memchr(). This would have been a serious issue if we ever passed
23840       it a non-extrainfo. Fixes bug 8791; bugfix on 0.2.0.6-alpha. Patch
23841       from Arlo Breault.
23842     - On the chance that somebody manages to build Tor on a
23843       platform where time_t is unsigned, correct the way that
23844       microdesc_add_to_cache() handles negative time arguments.
23845       Fixes bug 8042; bugfix on 0.2.3.1-alpha.
23846     - Reject relative control socket paths and emit a warning. Previously,
23847       single-component control socket paths would be rejected, but Tor
23848       would not log why it could not validate the config. Fixes bug 9258;
23849       bugfix on 0.2.3.16-alpha.
23851   o Minor bugfixes (command line):
23852     - Use a single command-line parser for parsing torrc options on the
23853       command line and for finding special command-line options to avoid
23854       inconsistent behavior for torrc option arguments that have the same
23855       names as command-line options. Fixes bugs 4647 and 9578; bugfix on
23856       0.0.9pre5.
23857     - No longer allow 'tor --hash-password' with no arguments. Fixes bug
23858       9573; bugfix on 0.0.9pre5.
23860   o Minor fixes (build, auxiliary programs):
23861     - Stop preprocessing the "torify" script with autoconf, since
23862       it no longer refers to LOCALSTATEDIR. Fixes bug 5505; patch
23863       from Guilhem.
23864     - The tor-fw-helper program now follows the standard convention and
23865       exits with status code "0" on success. Fixes bug 9030; bugfix on
23866       0.2.3.1-alpha. Patch by Arlo Breault.
23867     - Corrected ./configure advice for what openssl dev package you should
23868       install on Debian. Fixes bug 9207; bugfix on 0.2.0.1-alpha.
23870   o Minor code improvements:
23871     - Remove constants and tests for PKCS1 padding; it's insecure and
23872       shouldn't be used for anything new. Fixes bug 8792; patch
23873       from Arlo Breault.
23874     - Remove instances of strcpy() from the unit tests. They weren't
23875       hurting anything, since they were only in the unit tests, but it's
23876       embarrassing to have strcpy() in the code at all, and some analysis
23877       tools don't like it. Fixes bug 8790; bugfix on 0.2.3.6-alpha and
23878       0.2.3.8-alpha. Patch from Arlo Breault.
23880   o Removed features:
23881     - Remove migration code from when we renamed the "cached-routers"
23882       file to "cached-descriptors" back in 0.2.0.8-alpha. This
23883       incidentally resolves ticket 6502 by cleaning up the related code
23884       a bit. Patch from Akshay Hebbar.
23886   o Code simplification and refactoring:
23887     - Extract the common duplicated code for creating a subdirectory
23888       of the data directory and writing to a file in it. Fixes ticket
23889       4282; patch from Peter Retzlaff.
23890     - Since OpenSSL 0.9.7, the i2d_*() functions support allocating output
23891       buffer. Avoid calling twice: i2d_RSAPublicKey(), i2d_DHparams(),
23892       i2d_X509(), and i2d_PublicKey(). Resolves ticket 5170.
23893     - Add a set of accessor functions for the circuit timeout data
23894       structure. Fixes ticket 6153; patch from "piet".
23895     - Clean up exit paths from connection_listener_new(). Closes ticket
23896       8789. Patch from Arlo Breault.
23897     - Since we rely on OpenSSL 0.9.8 now, we can use EVP_PKEY_cmp()
23898       and drop our own custom pkey_eq() implementation. Fixes bug 9043.
23899     - Use a doubly-linked list to implement the global circuit list.
23900       Resolves ticket 9108. Patch from Marek Majkowski.
23901     - Remove contrib/id_to_fp.c since it wasn't used anywhere.
23904 Changes in version 0.2.4.17-rc - 2013-09-05
23905   Tor 0.2.4.17-rc is the third release candidate for the Tor 0.2.4.x
23906   series. It adds an emergency step to help us tolerate the massive
23907   influx of users: 0.2.4 clients using the new (faster and safer) "NTor"
23908   circuit-level handshakes now effectively jump the queue compared to
23909   the 0.2.3 clients using "TAP" handshakes. This release also fixes a
23910   big bug hindering bridge reachability tests.
23912   o Major features:
23913     - Relays now process the new "NTor" circuit-level handshake requests
23914       with higher priority than the old "TAP" circuit-level handshake
23915       requests. We still process some TAP requests to not totally starve
23916       0.2.3 clients when NTor becomes popular. A new consensus parameter
23917       "NumNTorsPerTAP" lets us tune the balance later if we need to.
23918       Implements ticket 9574.
23920   o Major bugfixes:
23921     - If the circuit build timeout logic is disabled (via the consensus,
23922       or because we are an authority), then don't build testing circuits.
23923       Fixes bug 9657; bugfix on 0.2.2.14-alpha.
23924     - Bridges now send AUTH_CHALLENGE cells during their v3 handshakes;
23925       previously they did not, which prevented them from receiving
23926       successful connections from relays for self-test or bandwidth
23927       testing. Also, when a relay is extending a circuit to a bridge,
23928       it needs to send a NETINFO cell, even when the bridge hasn't sent
23929       an AUTH_CHALLENGE cell. Fixes bug 9546; bugfix on 0.2.3.6-alpha.
23930     - If the time to download the next old-style networkstatus is in
23931       the future, do not decline to consider whether to download the
23932       next microdescriptor networkstatus. Fixes bug 9564; bugfix on
23933       0.2.3.14-alpha.
23935   o Minor bugfixes:
23936     - Avoid double-closing the listener socket in our socketpair()
23937       replacement (used on Windows) in the case where the addresses on
23938       our opened sockets don't match what we expected. Fixes bug 9400;
23939       bugfix on 0.0.2pre7. Found by Coverity.
23941   o Minor fixes (config options):
23942     - Avoid overflows when the user sets MaxCircuitDirtiness to a
23943       ridiculously high value, by imposing a (ridiculously high) 30-day
23944       maximum on MaxCircuitDirtiness.
23945     - Fix the documentation of HeartbeatPeriod to say that the heartbeat
23946       message is logged at notice, not at info.
23947     - Warn and fail if a server is configured not to advertise any
23948       ORPorts at all. (We need *something* to put in our descriptor,
23949       or we just won't work.)
23951   o Minor features:
23952     - Track how many "TAP" and "NTor" circuit handshake requests we get,
23953       and how many we complete, and log it every hour to help relay
23954       operators follow trends in network load. Addresses ticket 9658.
23955     - Update to the August 7 2013 Maxmind GeoLite Country database.
23958 Changes in version 0.2.4.16-rc - 2013-08-10
23959   Tor 0.2.4.16-rc is the second release candidate for the Tor 0.2.4.x
23960   series. It fixes several crash bugs in the 0.2.4 branch.
23962   o Major bugfixes:
23963     - Fix a bug in the voting algorithm that could yield incorrect results
23964       when a non-naming authority declared too many flags. Fixes bug 9200;
23965       bugfix on 0.2.0.3-alpha.
23966     - Fix an uninitialized read that could in some cases lead to a remote
23967       crash while parsing INTRODUCE2 cells. Bugfix on 0.2.4.1-alpha.
23968       Anybody running a hidden service on the experimental 0.2.4.x
23969       branch should upgrade. (This is, so far as we know, unrelated to
23970       the recent news.)
23971     - Avoid an assertion failure when processing DNS replies without the
23972       answer types we expected. Fixes bug 9337; bugfix on 0.2.4.7-alpha.
23973     - Avoid a crash when using --hash-password. Fixes bug 9295; bugfix on
23974       0.2.4.15-rc. Found by stem integration tests.
23976   o Minor bugfixes:
23977     - Fix an invalid memory read that occurred when a pluggable
23978       transport proxy failed its configuration protocol.
23979       Fixes bug 9288; bugfix on 0.2.4.1-alpha.
23980     - When evaluating whether to use a connection that we haven't
23981       decided is canonical using a recent link protocol version,
23982       decide that it's canonical only if it used address _does_
23983       match the desired address. Fixes bug 9309; bugfix on
23984       0.2.4.4-alpha. Reported by skruffy.
23985     - Make the default behavior of NumDirectoryGuards be to track
23986       NumEntryGuards. Now a user who changes only NumEntryGuards will get
23987       the behavior she expects. Fixes bug 9354; bugfix on 0.2.4.8-alpha.
23988     - Fix a spurious compilation warning with some older versions of
23989       GCC on FreeBSD. Fixes bug 9254; bugfix on 0.2.4.14-alpha.
23991   o Minor features:
23992     - Update to the July 3 2013 Maxmind GeoLite Country database.
23995 Changes in version 0.2.4.15-rc - 2013-07-01
23996   Tor 0.2.4.15-rc is the first release candidate for the Tor 0.2.4.x
23997   series. It fixes a few smaller bugs, but generally appears stable.
23998   Please test it and let us know whether it is!
24000   o Major bugfixes:
24001     - When receiving a new configuration file via the control port's
24002       LOADCONF command, do not treat the defaults file as absent.
24003       Fixes bug 9122; bugfix on 0.2.3.9-alpha.
24005   o Minor features:
24006     - Issue a warning when running with the bufferevents backend enabled.
24007       It's still not stable, and people should know that they're likely
24008       to hit unexpected problems. Closes ticket 9147.
24011 Changes in version 0.2.4.14-alpha - 2013-06-18
24012   Tor 0.2.4.14-alpha fixes a pair of client guard enumeration problems
24013   present in 0.2.4.13-alpha.
24015   o Major bugfixes:
24016     - When we have too much memory queued in circuits (according to a new
24017       MaxMemInCellQueues option), close the circuits consuming the most
24018       memory. This prevents us from running out of memory as a relay if
24019       circuits fill up faster than they can be drained. Fixes bug 9063;
24020       bugfix on the 54th commit of Tor. This bug is a further fix beyond
24021       bug 6252, whose fix was merged into 0.2.3.21-rc.
24023       This change also fixes an earlier approach taken in 0.2.4.13-alpha,
24024       where we tried to solve this issue simply by imposing an upper limit
24025       on the number of queued cells for a single circuit. That approach
24026       proved to be problematic, since there are ways to provoke clients to
24027       send a number of cells in excess of any such reasonable limit. Fixes
24028       bug 9072; bugfix on 0.2.4.13-alpha.
24030     - Limit hidden service descriptors to at most ten introduction
24031       points, to slow one kind of guard enumeration. Fixes bug 9002;
24032       bugfix on 0.1.1.11-alpha.
24035 Changes in version 0.2.4.13-alpha - 2013-06-14
24036   Tor 0.2.4.13-alpha fixes a variety of potential remote crash
24037   vulnerabilities, makes socks5 username/password circuit isolation
24038   actually actually work (this time for sure!), and cleans up a bunch
24039   of other issues in preparation for a release candidate.
24041   o Major bugfixes (robustness):
24042     - Close any circuit that has too many cells queued on it. Fixes
24043       bug 9063; bugfix on the 54th commit of Tor. This bug is a further
24044       fix beyond bug 6252, whose fix was merged into 0.2.3.21-rc.
24045     - Prevent the get_freelists() function from running off the end of
24046       the list of freelists if it somehow gets an unrecognized
24047       allocation. Fixes bug 8844; bugfix on 0.2.0.16-alpha. Reported by
24048       eugenis.
24049     - Avoid an assertion failure on OpenBSD (and perhaps other BSDs)
24050       when an exit connection with optimistic data succeeds immediately
24051       rather than returning EINPROGRESS. Fixes bug 9017; bugfix on
24052       0.2.3.1-alpha.
24053     - Fix a directory authority crash bug when building a consensus
24054       using an older consensus as its basis. Fixes bug 8833. Bugfix
24055       on 0.2.4.12-alpha.
24057   o Major bugfixes:
24058     - Avoid a memory leak where we would leak a consensus body when we
24059       find that a consensus which we couldn't previously verify due to
24060       missing certificates is now verifiable. Fixes bug 8719; bugfix
24061       on 0.2.0.10-alpha.
24062     - We used to always request authority certificates by identity digest,
24063       meaning we'd get the newest one even when we wanted one with a
24064       different signing key. Then we would complain about being given
24065       a certificate we already had, and never get the one we really
24066       wanted. Now we use the "fp-sk/" resource as well as the "fp/"
24067       resource to request the one we want. Fixes bug 5595; bugfix on
24068       0.2.0.8-alpha.
24069     - Follow the socks5 protocol when offering username/password
24070       authentication. The fix for bug 8117 exposed this bug, and it
24071       turns out real-world applications like Pidgin do care. Bugfix on
24072       0.2.3.2-alpha; fixes bug 8879.
24073     - Prevent failures on Windows Vista and later when rebuilding the
24074       microdescriptor cache. Diagnosed by Robert Ransom. Fixes bug 8822;
24075       bugfix on 0.2.4.12-alpha.
24077   o Minor bugfixes:
24078     - Fix an impossible buffer overrun in the AES unit tests. Fixes
24079       bug 8845; bugfix on 0.2.0.7-alpha. Found by eugenis.
24080     - If for some reason we fail to write a microdescriptor while
24081       rebuilding the cache, do not let the annotations from that
24082       microdescriptor linger in the cache file, and do not let the
24083       microdescriptor stay recorded as present in its old location.
24084       Fixes bug 9047; bugfix on 0.2.2.6-alpha.
24085     - Fix a memory leak that would occur whenever a configuration
24086       option changed. Fixes bug 8718; bugfix on 0.2.3.3-alpha.
24087     - Paste the description for PathBias parameters from the man
24088       page into or.h, so the code documents them too. Fixes bug 7982;
24089       bugfix on 0.2.3.17-beta and 0.2.4.8-alpha.
24090     - Relays now treat a changed IPv6 ORPort as sufficient reason to
24091       publish an updated descriptor. Fixes bug 6026; bugfix on
24092       0.2.4.1-alpha.
24093     - When launching a resolve request on behalf of an AF_UNIX control
24094       socket, omit the address field of the new entry connection, used in
24095       subsequent controller events, rather than letting tor_dup_addr()
24096       set it to "<unknown address type>". Fixes bug 8639; bugfix on
24097       0.2.4.12-alpha.
24099   o Minor bugfixes (log messages):
24100     - Fix a scaling issue in the path bias accounting code that
24101       resulted in "Bug:" log messages from either
24102       pathbias_scale_close_rates() or pathbias_count_build_success().
24103       This represents a bugfix on a previous bugfix: the original fix
24104       attempted in 0.2.4.10-alpha was incomplete. Fixes bug 8235; bugfix
24105       on 0.2.4.1-alpha.
24106     - Give a less useless error message when the user asks for an IPv4
24107       address on an IPv6-only port, or vice versa. Fixes bug 8846; bugfix
24108       on 0.2.4.7-alpha.
24110   o Minor features:
24111     - Downgrade "unexpected SENDME" warnings to protocol-warn for 0.2.4.x,
24112       to tolerate bug 8093 for now.
24113     - Add an "ignoring-advertised-bws" boolean to the flag-threshold lines
24114       in directory authority votes to describe whether they have enough
24115       measured bandwidths to ignore advertised (relay descriptor)
24116       bandwidth claims. Resolves ticket 8711.
24117     - Update to the June 5 2013 Maxmind GeoLite Country database.
24119   o Removed documentation:
24120     - Remove some of the older contents of doc/ as obsolete; move others
24121       to torspec.git. Fixes bug 8965.
24123   o Code simplification and refactoring:
24124     - Avoid using character buffers when constructing most directory
24125       objects: this approach was unwieldy and error-prone. Instead,
24126       build smartlists of strings, and concatenate them when done.
24129 Changes in version 0.2.4.12-alpha - 2013-04-18
24130   Tor 0.2.4.12-alpha moves Tor forward on several fronts: it starts the
24131   process for lengthening the guard rotation period, makes directory
24132   authority opinions in the consensus a bit less gameable, makes socks5
24133   username/password circuit isolation actually work, and fixes a wide
24134   variety of other issues.
24136   o Major features:
24137     - Raise the default time that a client keeps an entry guard from
24138       "1-2 months" to "2-3 months", as suggested by Tariq Elahi's WPES
24139       2012 paper. (We would make it even longer, but we need better client
24140       load balancing first.) Also, make the guard lifetime controllable
24141       via a new GuardLifetime torrc option and a GuardLifetime consensus
24142       parameter. Start of a fix for bug 8240; bugfix on 0.1.1.11-alpha.
24143     - Directory authorities now prefer using measured bandwidths to
24144       advertised ones when computing flags and thresholds. Resolves
24145       ticket 8273.
24146     - Directory authorities that have more than a threshold number
24147       of relays with measured bandwidths now treat relays with unmeasured
24148       bandwidths as having bandwidth 0. Resolves ticket 8435.
24150   o Major bugfixes (assert / resource use):
24151     - Avoid a bug where our response to TLS renegotiation under certain
24152       network conditions could lead to a busy-loop, with 100% CPU
24153       consumption. Fixes bug 5650; bugfix on 0.2.0.16-alpha.
24154     - Avoid an assertion when we discover that we'd like to write a cell
24155       onto a closing connection: just discard the cell. Fixes another
24156       case of bug 7350; bugfix on 0.2.4.4-alpha.
24158   o Major bugfixes (client-side privacy):
24159     - When we mark a circuit as unusable for new circuits, have it
24160       continue to be unusable for new circuits even if MaxCircuitDirtiness
24161       is increased too much at the wrong time, or the system clock jumps
24162       backwards. Fixes bug 6174; bugfix on 0.0.2pre26.
24163     - If ClientDNSRejectInternalAddresses ("do not believe DNS queries
24164       which have resolved to internal addresses") is set, apply that
24165       rule to IPv6 as well. Fixes bug 8475; bugfix on 0.2.0.7-alpha.
24166     - When an exit relay rejects a stream with reason "exit policy", but
24167       we only know an exit policy summary (e.g. from the microdesc
24168       consensus) for it, do not mark the relay as useless for all exiting.
24169       Instead, mark just the circuit as unsuitable for that particular
24170       address. Fixes part of bug 7582; bugfix on 0.2.3.2-alpha.
24171     - Allow applications to get proper stream isolation with
24172       IsolateSOCKSAuth. Many SOCKS5 clients that want to offer
24173       username/password authentication also offer "no authentication". Tor
24174       had previously preferred "no authentication", so the applications
24175       never actually sent Tor their auth details. Now Tor selects
24176       username/password authentication if it's offered. You can disable
24177       this behavior on a per-SOCKSPort basis via PreferSOCKSNoAuth. Fixes
24178       bug 8117; bugfix on 0.2.3.3-alpha.
24180   o Major bugfixes (other):
24181     - When unable to find any working directory nodes to use as a
24182       directory guard, give up rather than adding the same non-working
24183       nodes to the directory guard list over and over. Fixes bug 8231;
24184       bugfix on 0.2.4.8-alpha.
24186   o Minor features:
24187     - Reject as invalid most directory objects containing a NUL.
24188       Belt-and-suspender fix for bug 8037.
24189     - In our testsuite, create temporary directories with a bit more
24190       entropy in their name to make name collisions less likely. Fixes
24191       bug 8638.
24192     - Add CACHED keyword to ADDRMAP events in the control protocol
24193       to indicate whether a DNS result will be cached or not. Resolves
24194       ticket 8596.
24195     - Update to the April 3 2013 Maxmind GeoLite Country database.
24197   o Minor features (build):
24198     - Detect and reject attempts to build Tor with threading support
24199       when OpenSSL has been compiled without threading support.
24200       Fixes bug 6673.
24201     - Clarify that when autoconf is checking for nacl, it is checking
24202       specifically for nacl with a fast curve25519 implementation.
24203       Fixes bug 8014.
24204     - Warn if building on a platform with an unsigned time_t: there
24205       are too many places where Tor currently assumes that time_t can
24206       hold negative values. We'd like to fix them all, but probably
24207       some will remain.
24209   o Minor bugfixes (build):
24210     - Fix some bugs in tor-fw-helper-natpmp when trying to build and
24211       run it on Windows. More bugs likely remain. Patch from Gisle Vanem.
24212       Fixes bug 7280; bugfix on 0.2.3.1-alpha.
24213     - Add the old src/or/micro-revision.i filename to CLEANFILES.
24214       On the off chance that somebody has one, it will go away as soon
24215       as they run "make clean". Fix for bug 7143; bugfix on 0.2.4.1-alpha.
24216     - Build Tor correctly on 32-bit platforms where the compiler can build
24217       but not run code using the "uint128_t" construction. Fixes bug 8587;
24218       bugfix on 0.2.4.8-alpha.
24219     - Fix compilation warning with some versions of clang that would
24220       prefer the -Wswitch-enum compiler flag to warn about switch
24221       statements with missing enum values, even if those switch
24222       statements have a "default:" statement. Fixes bug 8598; bugfix
24223       on 0.2.4.10-alpha.
24225   o Minor bugfixes (protocol):
24226     - Fix the handling of a TRUNCATE cell when it arrives while the
24227       circuit extension is in progress. Fixes bug 7947; bugfix on 0.0.7.1.
24228     - Fix a misframing issue when reading the version numbers in a
24229       VERSIONS cell. Previously we would recognize [00 01 00 02] as
24230       'version 1, version 2, and version 0x100', when it should have
24231       only included versions 1 and 2. Fixes bug 8059; bugfix on
24232       0.2.0.10-alpha. Reported pseudonymously.
24233     - Make the format and order of STREAM events for DNS lookups
24234       consistent among the various ways to launch DNS lookups. Fixes
24235       bug 8203; bugfix on 0.2.0.24-rc. Patch by "Desoxy".
24236     - Correct our check for which versions of Tor support the EXTEND2
24237       cell. We had been willing to send it to Tor 0.2.4.7-alpha and
24238       later, when support was really added in version 0.2.4.8-alpha.
24239       Fixes bug 8464; bugfix on 0.2.4.8-alpha.
24241   o Minor bugfixes (other):
24242     - Correctly store microdescriptors and extrainfo descriptors with
24243       an internal NUL byte. Fixes bug 8037; bugfix on 0.2.0.1-alpha.
24244       Bug reported by "cypherpunks".
24245     - Increase the width of the field used to remember a connection's
24246       link protocol version to two bytes. Harmless for now, since the
24247       only currently recognized versions are one byte long. Reported
24248       pseudonymously. Fixes bug 8062; bugfix on 0.2.0.10-alpha.
24249     - If the state file's path bias counts are invalid (presumably from a
24250       buggy Tor prior to 0.2.4.10-alpha), make them correct. Also add
24251       additional checks and log messages to the scaling of Path Bias
24252       counts, in case there still are remaining issues with scaling.
24253       Should help resolve bug 8235.
24254     - Eliminate several instances where we use "Nickname=ID" to refer to
24255       nodes in logs. Use "Nickname (ID)" instead. (Elsewhere, we still use
24256       "$ID=Nickname", which is also acceptable.) Fixes bug 7065. Bugfix
24257       on 0.2.3.21-rc, 0.2.4.5-alpha, 0.2.4.8-alpha, and 0.2.4.10-alpha.
24259   o Minor bugfixes (syscalls):
24260     - Always check the return values of functions fcntl() and
24261       setsockopt(). We don't believe these are ever actually failing in
24262       practice, but better safe than sorry. Also, checking these return
24263       values should please analysis tools like Coverity. Patch from
24264       'flupzor'. Fixes bug 8206; bugfix on all versions of Tor.
24265     - Use direct writes rather than stdio when building microdescriptor
24266       caches, in an attempt to mitigate bug 8031, or at least make it
24267       less common.
24269   o Minor bugfixes (config):
24270     - When rejecting a configuration because we were unable to parse a
24271       quoted string, log an actual error message. Fixes bug 7950; bugfix
24272       on 0.2.0.16-alpha.
24273     - Behave correctly when the user disables LearnCircuitBuildTimeout
24274       but doesn't tell us what they would like the timeout to be. Fixes
24275       bug 6304; bugfix on 0.2.2.14-alpha.
24276     - When autodetecting the number of CPUs, use the number of available
24277       CPUs in preference to the number of configured CPUs. Inform the
24278       user if this reduces the number of available CPUs. Fixes bug 8002;
24279       bugfix on 0.2.3.1-alpha.
24280     - Make it an error when you set EntryNodes but disable UseGuardNodes,
24281       since it will (surprisingly to some users) ignore EntryNodes. Fixes
24282       bug 8180; bugfix on 0.2.3.11-alpha.
24283     - Allow TestingTorNetworks to override the 4096-byte minimum for
24284       the Fast threshold. Otherwise they can't bootstrap until they've
24285       observed more traffic. Fixes bug 8508; bugfix on 0.2.4.10-alpha.
24286     - Fix some logic errors when the user manually overrides the
24287       PathsNeededToBuildCircuits option in torrc. Fixes bug 8599; bugfix
24288       on 0.2.4.10-alpha.
24290   o Minor bugfixes (log messages to help diagnose bugs):
24291     - If we fail to free a microdescriptor because of bug 7164, log
24292       the filename and line number from which we tried to free it.
24293     - Add another diagnostic to the heartbeat message: track and log
24294       overhead that TLS is adding to the data we write. If this is
24295       high, we are sending too little data to SSL_write at a time.
24296       Diagnostic for bug 7707.
24297     - Add more detail to a log message about relaxed timeouts, to help
24298       track bug 7799.
24299     - Warn more aggressively when flushing microdescriptors to a
24300       microdescriptor cache fails, in an attempt to mitigate bug 8031,
24301       or at least make it more diagnosable.
24302     - Improve debugging output to help track down bug 8185 ("Bug:
24303       outgoing relay cell has n_chan==NULL. Dropping.")
24304     - Log the purpose of a path-bias testing circuit correctly.
24305       Improves a log message from bug 8477; bugfix on 0.2.4.8-alpha.
24307   o Minor bugfixes (0.2.4.x log messages that were too noisy):
24308     - Don't attempt to relax the timeout of already opened 1-hop circuits.
24309       They might never timeout. This should eliminate some/all cases of
24310       the relaxed timeout log message.
24311     - Use circuit creation time for network liveness evaluation. This
24312       should eliminate warning log messages about liveness caused
24313       by changes in timeout evaluation. Fixes bug 6572; bugfix on
24314       0.2.4.8-alpha.
24315     - Reduce a path bias length check from notice to info. The message
24316       is triggered when creating controller circuits. Fixes bug 8196;
24317       bugfix on 0.2.4.8-alpha.
24318     - Fix a path state issue that triggered a notice during relay startup.
24319       Fixes bug 8320; bugfix on 0.2.4.10-alpha.
24320     - Reduce occurrences of warns about circuit purpose in
24321       connection_ap_expire_building(). Fixes bug 8477; bugfix on
24322       0.2.4.11-alpha.
24324   o Minor bugfixes (pre-0.2.4.x log messages that were too noisy):
24325     - If we encounter a write failure on a SOCKS connection before we
24326       finish our SOCKS handshake, don't warn that we closed the
24327       connection before we could send a SOCKS reply. Fixes bug 8427;
24328       bugfix on 0.1.0.1-rc.
24329     - Correctly recognize that [::1] is a loopback address. Fixes
24330       bug 8377; bugfix on 0.2.1.3-alpha.
24331     - Fix a directory authority warn caused when we have a large amount
24332       of badexit bandwidth. Fixes bug 8419; bugfix on 0.2.2.10-alpha.
24333     - Don't log inappropriate heartbeat messages when hibernating: a
24334       hibernating node is _expected_ to drop out of the consensus,
24335       decide it isn't bootstrapped, and so forth. Fixes bug 7302;
24336       bugfix on 0.2.3.1-alpha.
24337     - Don't complain about bootstrapping problems while hibernating.
24338       These complaints reflect a general code problem, but not one
24339       with any problematic effects (no connections are actually
24340       opened). Fixes part of bug 7302; bugfix on 0.2.3.2-alpha.
24342   o Documentation fixes:
24343     - Update tor-fw-helper.1.txt and tor-fw-helper.c to make option
24344       names match. Fixes bug 7768.
24345     - Make the torify manpage no longer refer to tsocks; torify hasn't
24346       supported tsocks since 0.2.3.14-alpha.
24347     - Make the tor manpage no longer reference tsocks.
24348     - Fix the GeoIPExcludeUnknown documentation to refer to
24349       ExcludeExitNodes rather than the currently nonexistent
24350       ExcludeEntryNodes. Spotted by "hamahangi" on tor-talk.
24352   o Removed files:
24353     - The tor-tsocks.conf is no longer distributed or installed. We
24354       recommend that tsocks users use torsocks instead. Resolves
24355       ticket 8290.
24358 Changes in version 0.2.4.11-alpha - 2013-03-11
24359   Tor 0.2.4.11-alpha makes relay measurement by directory authorities
24360   more robust, makes hidden service authentication work again, and
24361   resolves a DPI fingerprint for Tor's SSL transport.
24363   o Major features (directory authorities):
24364     - Directory authorities now support a new consensus method (17)
24365       where they cap the published bandwidth of servers for which
24366       insufficient bandwidth measurements exist. Fixes part of bug 2286.
24367     - Directory authorities that set "DisableV2DirectoryInfo_ 1" no longer
24368       serve any v2 directory information. Now we can test disabling the
24369       old deprecated v2 directory format, and see whether doing so has
24370       any effect on network load. Begins to fix bug 6783.
24371     - Directory authorities now include inside each vote a statement of
24372       the performance thresholds they used when assigning flags.
24373       Implements ticket 8151.
24375   o Major bugfixes (directory authorities):
24376     - Stop marking every relay as having been down for one hour every
24377       time we restart a directory authority. These artificial downtimes
24378       were messing with our Stable and Guard flag calculations. Fixes
24379       bug 8218 (introduced by the fix for 1035). Bugfix on 0.2.2.23-alpha.
24381   o Major bugfixes (hidden services):
24382     - Allow hidden service authentication to succeed again. When we
24383       refactored the hidden service introduction code back
24384       in 0.2.4.1-alpha, we didn't update the code that checks
24385       whether authentication information is present, causing all
24386       authentication checks to return "false". Fix for bug 8207; bugfix
24387       on 0.2.4.1-alpha. Found by Coverity; this is CID 718615.
24389   o Minor features (relays, bridges):
24390     - Make bridge relays check once a minute for whether their IP
24391       address has changed, rather than only every 15 minutes. Resolves
24392       bugs 1913 and 1992.
24393     - Refactor resolve_my_address() so it returns the method by which we
24394       decided our public IP address (explicitly configured, resolved from
24395       explicit hostname, guessed from interfaces, learned by gethostname).
24396       Now we can provide more helpful log messages when a relay guesses
24397       its IP address incorrectly (e.g. due to unexpected lines in
24398       /etc/hosts). Resolves ticket 2267.
24399     - Teach bridge-using clients to avoid 0.2.2 bridges when making
24400       microdescriptor-related dir requests, and only fall back to normal
24401       descriptors if none of their bridges can handle microdescriptors
24402       (as opposed to the fix in ticket 4013, which caused them to fall
24403       back to normal descriptors if *any* of their bridges preferred
24404       them). Resolves ticket 4994.
24405     - Randomize the lifetime of our SSL link certificate, so censors can't
24406       use the static value for filtering Tor flows. Resolves ticket 8443;
24407       related to ticket 4014 which was included in 0.2.2.33.
24408     - Support a new version of the link protocol that allows 4-byte circuit
24409       IDs. Previously, circuit IDs were limited to 2 bytes, which presented
24410       a possible resource exhaustion issue. Closes ticket 7351; implements
24411       proposal 214.
24413   o Minor features (portability):
24414     - Tweak the curve25519-donna*.c implementations to tolerate systems
24415       that lack stdint.h. Fixes bug 3894; bugfix on 0.2.4.8-alpha.
24416     - Use Ville Laurikari's implementation of AX_CHECK_SIGN() to determine
24417       the signs of types during autoconf. This is better than our old
24418       approach, which didn't work when cross-compiling.
24419     - Detect the sign of enum values, rather than assuming that MSC is the
24420       only compiler where enum types are all signed. Fixes bug 7727;
24421       bugfix on 0.2.4.10-alpha.
24423   o Minor features (other):
24424     - Say "KBytes" rather than "KB" in the man page (for various values
24425       of K), to further reduce confusion about whether Tor counts in
24426       units of memory or fractions of units of memory. Resolves ticket 7054.
24427     - Clear the high bit on curve25519 public keys before passing them to
24428       our backend, in case we ever wind up using a backend that doesn't do
24429       so itself. If we used such a backend, and *didn't* clear the high bit,
24430       we could wind up in a situation where users with such backends would
24431       be distinguishable from users without. Fixes bug 8121; bugfix on
24432       0.2.4.8-alpha.
24433     - Update to the March 6 2013 Maxmind GeoLite Country database.
24435   o Minor bugfixes (clients):
24436     - When we receive a RELAY_END cell with the reason DONE, or with no
24437       reason, before receiving a RELAY_CONNECTED cell, report the SOCKS
24438       status as "connection refused". Previously we reported these cases
24439       as success but then immediately closed the connection. Fixes bug
24440       7902; bugfix on 0.1.0.1-rc. Reported by "oftc_must_be_destroyed".
24441     - Downgrade an assertion in connection_ap_expire_beginning to an
24442       LD_BUG message. The fix for bug 8024 should prevent this message
24443       from displaying, but just in case, a warn that we can diagnose
24444       is better than more assert crashes. Fixes bug 8065; bugfix on
24445       0.2.4.8-alpha.
24446     - Lower path use bias thresholds to .80 for notice and .60 for warn.
24447       Also make the rate limiting flags for the path use bias log messages
24448       independent from the original path bias flags. Fixes bug 8161;
24449       bugfix on 0.2.4.10-alpha.
24451   o Minor bugfixes (relays):
24452     - Stop trying to resolve our hostname so often (e.g. every time we
24453       think about doing a directory fetch). Now we reuse the cached
24454       answer in some cases. Fixes bugs 1992 (bugfix on 0.2.0.20-rc)
24455       and 2410 (bugfix on 0.1.2.2-alpha).
24456     - Stop sending a stray "(null)" in some cases for the server status
24457       "EXTERNAL_ADDRESS" controller event. Resolves bug 8200; bugfix
24458       on 0.1.2.6-alpha.
24459     - When choosing which stream on a formerly stalled circuit to wake
24460       first, make better use of the platform's weak RNG. Previously,
24461       we had been using the % ("modulo") operator to try to generate a
24462       1/N chance of picking each stream, but this behaves badly with
24463       many platforms' choice of weak RNG. Fixes bug 7801; bugfix on
24464       0.2.2.20-alpha.
24465     - Use our own weak RNG when we need a weak RNG. Windows's rand() and
24466       Irix's random() only return 15 bits; Solaris's random() returns more
24467       bits but its RAND_MAX says it only returns 15, and so on. Motivated
24468       by the fix for bug 7801; bugfix on 0.2.2.20-alpha.
24470   o Minor bugfixes (directory authorities):
24471     - Directory authorities now use less space when formatting identical
24472       microdescriptor lines in directory votes. Fixes bug 8158; bugfix
24473       on 0.2.4.1-alpha.
24475   o Minor bugfixes (memory leaks spotted by Coverity -- bug 7816):
24476     - Avoid leaking memory if we fail to compute a consensus signature
24477       or we generate a consensus we can't parse. Bugfix on 0.2.0.5-alpha.
24478     - Fix a memory leak when receiving headers from an HTTPS proxy. Bugfix
24479       on 0.2.1.1-alpha.
24480     - Fix a memory leak during safe-cookie controller authentication.
24481       Bugfix on 0.2.3.13-alpha.
24482     - Avoid memory leak of IPv6 policy content if we fail to format it into
24483       a router descriptor. Bugfix on 0.2.4.7-alpha.
24485   o Minor bugfixes (other code correctness issues):
24486     - Avoid a crash if we fail to generate an extrainfo descriptor.
24487       Fixes bug 8208; bugfix on 0.2.3.16-alpha. Found by Coverity;
24488       this is CID 718634.
24489     - When detecting the largest possible file descriptor (in order to
24490       close all file descriptors when launching a new program), actually
24491       use _SC_OPEN_MAX. The old code for doing this was very, very broken.
24492       Fixes bug 8209; bugfix on 0.2.3.1-alpha. Found by Coverity; this
24493       is CID 743383.
24494     - Fix a copy-and-paste error when adding a missing A1 to a routerset
24495       because of GeoIPExcludeUnknown. Fix for Coverity CID 980650.
24496       Bugfix on 0.2.4.10-alpha.
24497     - Fix an impossible-to-trigger integer overflow when estimating how
24498       long our onionskin queue would take. (This overflow would require us
24499       to accept 4 million onionskins before processing 100 of them.) Fixes
24500       bug 8210; bugfix on 0.2.4.10-alpha.
24502   o Code simplification and refactoring:
24503     - Add a wrapper function for the common "log a message with a
24504       rate-limit" case.
24507 Changes in version 0.2.4.10-alpha - 2013-02-04
24508   Tor 0.2.4.10-alpha adds defenses at the directory authority level from
24509   certain attacks that flood the network with relays; changes the queue
24510   for circuit create requests from a sized-based limit to a time-based
24511   limit; resumes building with MSVC on Windows; and fixes a wide variety
24512   of other issues.
24514   o Major bugfixes (directory authority):
24515     - When computing directory thresholds, ignore any rejected-as-sybil
24516       nodes during the computation so that they can't influence Fast,
24517       Guard, etc. (We should have done this for proposal 109.) Fixes
24518       bug 8146.
24519     - When marking a node as a likely sybil, reset its uptime metrics
24520       to zero, so that it cannot time towards getting marked as Guard,
24521       Stable, or HSDir. (We should have done this for proposal 109.) Fixes
24522       bug 8147.
24524   o Major bugfixes:
24525     - When a TLS write is partially successful but incomplete, remember
24526       that the flushed part has been flushed, and notice that bytes were
24527       actually written. Reported and fixed pseudonymously. Fixes bug
24528       7708; bugfix on Tor 0.1.0.5-rc.
24529     - Reject bogus create and relay cells with 0 circuit ID or 0 stream
24530       ID: these could be used to create unexpected streams and circuits
24531       which would count as "present" to some parts of Tor but "absent"
24532       to others, leading to zombie circuits and streams or to a bandwidth
24533       denial-of-service. Fixes bug 7889; bugfix on every released version
24534       of Tor. Reported by "oftc_must_be_destroyed".
24535     - Rename all macros in our local copy of queue.h to begin with "TOR_".
24536       This change seems the only good way to permanently prevent conflicts
24537       with queue.h on various operating systems. Fixes bug 8107; bugfix
24538       on 0.2.4.6-alpha.
24540   o Major features (relay):
24541     - Instead of limiting the number of queued onionskins (aka circuit
24542       create requests) to a fixed, hard-to-configure number, we limit
24543       the size of the queue based on how many we expect to be able to
24544       process in a given amount of time. We estimate the time it will
24545       take to process an onionskin based on average processing time
24546       of previous onionskins. Closes ticket 7291. You'll never have to
24547       configure MaxOnionsPending again.
24549   o Major features (portability):
24550     - Resume building correctly with MSVC and Makefile.nmake. This patch
24551       resolves numerous bugs and fixes reported by ultramage, including
24552       7305, 7308, 7309, 7310, 7312, 7313, 7315, 7316, and 7669.
24553     - Make the ntor and curve25519 code build correctly with MSVC.
24554       Fix on 0.2.4.8-alpha.
24556   o Minor features:
24557     - When directory authorities are computing thresholds for flags,
24558       never let the threshold for the Fast flag fall below 4096
24559       bytes. Also, do not consider nodes with extremely low bandwidths
24560       when deciding thresholds for various directory flags. This change
24561       should raise our threshold for Fast relays, possibly in turn
24562       improving overall network performance; see ticket 1854. Resolves
24563       ticket 8145.
24564     - The Tor client now ignores sub-domain components of a .onion
24565       address. This change makes HTTP "virtual" hosting
24566       possible: http://foo.aaaaaaaaaaaaaaaa.onion/ and
24567       http://bar.aaaaaaaaaaaaaaaa.onion/ can be two different websites
24568       hosted on the same hidden service. Implements proposal 204.
24569     - We compute the overhead from passing onionskins back and forth to
24570       cpuworkers, and report it when dumping statistics in response to
24571       SIGUSR1. Supports ticket 7291.
24573   o Minor features (path selection):
24574     - When deciding whether we have enough descriptors to build circuits,
24575       instead of looking at raw relay counts, look at which fraction
24576       of (bandwidth-weighted) paths we're able to build. This approach
24577       keeps clients from building circuits if their paths are likely to
24578       stand out statistically. The default fraction of paths needed is
24579       taken from the consensus directory; you can override it with the
24580       new PathsNeededToBuildCircuits option. Fixes ticket 5956.
24581     - When any country code is listed in ExcludeNodes or ExcludeExitNodes,
24582       and we have GeoIP information, also exclude all nodes with unknown
24583       countries "??" and "A1". This behavior is controlled by the
24584       new GeoIPExcludeUnknown option: you can make such nodes always
24585       excluded with "GeoIPExcludeUnknown 1", and disable the feature
24586       with "GeoIPExcludeUnknown 0". Setting "GeoIPExcludeUnknown auto"
24587       gets you the default behavior. Implements feature 7706.
24588     - Path Use Bias: Perform separate accounting for successful circuit
24589       use. Keep separate statistics on stream attempt rates versus stream
24590       success rates for each guard. Provide configurable thresholds to
24591       determine when to emit log messages or disable use of guards that
24592       fail too many stream attempts. Resolves ticket 7802.
24594   o Minor features (log messages):
24595     - When learning a fingerprint for a bridge, log its corresponding
24596       transport type. Implements ticket 7896.
24597     - Improve the log message when "Bug/attack: unexpected sendme cell
24598       from client" occurs, to help us track bug 8093.
24600   o Minor bugfixes:
24601     - Remove a couple of extraneous semicolons that were upsetting the
24602       cparser library. Patch by Christian Grothoff. Fixes bug 7115;
24603       bugfix on 0.2.2.1-alpha.
24604     - Remove a source of rounding error during path bias count scaling;
24605       don't count cannibalized circuits as used for path bias until we
24606       actually try to use them; and fix a circuit_package_relay_cell()
24607       warning message about n_chan==NULL. Fixes bug 7802.
24608     - Detect nacl when its headers are in a nacl/ subdirectory. Also,
24609       actually link against nacl when we're configured to use it. Fixes
24610       bug 7972; bugfix on 0.2.4.8-alpha.
24611     - Compile correctly with the --disable-curve25519 option. Fixes
24612       bug 8153; bugfix on 0.2.4.8-alpha.
24614   o Build improvements:
24615     - Do not report status verbosely from autogen.sh unless the -v flag
24616       is specified. Fixes issue 4664. Patch from Onizuka.
24617     - Replace all calls to snprintf() outside of src/ext with
24618       tor_snprintf(). Also remove the #define to replace snprintf with
24619       _snprintf on Windows; they have different semantics, and all of
24620       our callers should be using tor_snprintf() anyway. Fixes bug 7304.
24621     - Try to detect if we are ever building on a platform where
24622       memset(...,0,...) does not set the value of a double to 0.0. Such
24623       platforms are permitted by the C standard, though in practice
24624       they're pretty rare (since IEEE 754 is nigh-ubiquitous). We don't
24625       currently support them, but it's better to detect them and fail
24626       than to perform erroneously.
24628   o Removed features:
24629     - Stop exporting estimates of v2 and v3 directory traffic shares
24630       in extrainfo documents. They were unneeded and sometimes inaccurate.
24631       Also stop exporting any v2 directory request statistics. Resolves
24632       ticket 5823.
24633     - Drop support for detecting and warning about versions of Libevent
24634       before 1.3e. Nothing reasonable ships with them any longer;
24635       warning the user about them shouldn't be needed. Resolves ticket
24636       6826.
24638   o Code simplifications and refactoring:
24639     - Rename "isin" functions to "contains", for grammar. Resolves
24640       ticket 5285.
24641     - Rename Tor's logging function log() to tor_log(), to avoid conflicts
24642       with the natural logarithm function from the system libm. Resolves
24643       ticket 7599.
24646 Changes in version 0.2.4.9-alpha - 2013-01-15
24647   Tor 0.2.4.9-alpha provides a quick fix to make the new ntor handshake
24648   work more robustly.
24650   o Major bugfixes:
24651     - Fix backward compatibility logic when receiving an embedded ntor
24652       handshake tunneled in a CREATE cell. This clears up the "Bug:
24653       couldn't format CREATED cell" warning. Fixes bug 7959; bugfix
24654       on 0.2.4.8-alpha.
24657 Changes in version 0.2.4.8-alpha - 2013-01-14
24658   Tor 0.2.4.8-alpha introduces directory guards to reduce user enumeration
24659   risks, adds a new stronger and faster circuit handshake, and offers
24660   stronger and faster link encryption when both sides support it.
24662   o Major features:
24663     - Preliminary support for directory guards (proposal 207): when
24664       possible, clients now use their entry guards for non-anonymous
24665       directory requests. This can help prevent client enumeration. Note
24666       that this behavior only works when we have a usable consensus
24667       directory, and when options about what to download are more or less
24668       standard. In the future we should re-bootstrap from our guards,
24669       rather than re-bootstrapping from the preconfigured list of
24670       directory sources that ships with Tor. Resolves ticket 6526.
24671     - Tor relays and clients now support a better CREATE/EXTEND cell
24672       format, allowing the sender to specify multiple address, identity,
24673       and handshake types. Implements Robert Ransom's proposal 200;
24674       closes ticket 7199.
24676   o Major features (new circuit handshake):
24677     - Tor now supports a new circuit extension handshake designed by Ian
24678       Goldberg, Douglas Stebila, and Berkant Ustaoglu. Our original
24679       circuit extension handshake, later called "TAP", was a bit slow
24680       (especially on the relay side), had a fragile security proof, and
24681       used weaker keys than we'd now prefer. The new circuit handshake
24682       uses Dan Bernstein's "curve25519" elliptic-curve Diffie-Hellman
24683       function, making it significantly more secure than the older
24684       handshake, and significantly faster. Tor can use one of two built-in
24685       pure-C curve25519-donna implementations by Adam Langley, or it
24686       can link against the "nacl" library for a tuned version if present.
24688       The built-in version is very fast for 64-bit systems when building
24689       with GCC. The built-in 32-bit version is still faster than the
24690       old TAP protocol, but using libnacl is better on most such hosts.
24692       Clients don't currently use this protocol by default, since
24693       comparatively few clients support it so far. To try it, set
24694       UseNTorHandshake to 1.
24696       Implements proposal 216; closes ticket 7202.
24698   o Major features (better link encryption):
24699     - Relays can now enable the ECDHE TLS ciphersuites when available
24700       and appropriate. These ciphersuites let us negotiate forward-secure
24701       TLS secret keys more safely and more efficiently than with our
24702       previous use of Diffie-Hellman modulo a 1024-bit prime. By default,
24703       public relays prefer the (faster) P224 group, and bridges prefer
24704       the (more common) P256 group; you can override this with the
24705       TLSECGroup option.
24707       Enabling these ciphers was a little tricky, since for a long time,
24708       clients had been claiming to support them without actually doing
24709       so, in order to foil fingerprinting. But with the client-side
24710       implementation of proposal 198 in 0.2.3.17-beta, clients can now
24711       match the ciphers from recent Firefox versions *and* list the
24712       ciphers they actually mean, so relays can believe such clients
24713       when they advertise ECDHE support in their TLS ClientHello messages.
24715       This feature requires clients running 0.2.3.17-beta or later,
24716       and requires both sides to be running OpenSSL 1.0.0 or later
24717       with ECC support. OpenSSL 1.0.1, with the compile-time option
24718       "enable-ec_nistp_64_gcc_128", is highly recommended.
24720       Implements the relay side of proposal 198; closes ticket 7200.
24722   o Major bugfixes:
24723     - Avoid crashing when, as a relay without IPv6-exit support, a
24724       client insists on getting an IPv6 address or nothing. Fixes bug
24725       7814; bugfix on 0.2.4.7-alpha.
24727   o Minor features:
24728     - Improve circuit build timeout handling for hidden services.
24729       In particular: adjust build timeouts more accurately depending
24730       upon the number of hop-RTTs that a particular circuit type
24731       undergoes. Additionally, launch intro circuits in parallel
24732       if they timeout, and take the first one to reply as valid.
24733     - Work correctly on Unix systems where EAGAIN and EWOULDBLOCK are
24734       separate error codes; or at least, don't break for that reason.
24735       Fixes bug 7935. Reported by "oftc_must_be_destroyed".
24736     - Update to the January 2 2013 Maxmind GeoLite Country database.
24738   o Minor features (testing):
24739     - Add benchmarks for DH (1024-bit multiplicative group) and ECDH
24740       (P-256) Diffie-Hellman handshakes to src/or/bench.
24741     - Add benchmark functions to test onion handshake performance.
24743   o Minor features (path bias detection):
24744     - Alter the Path Bias log messages to be more descriptive in terms
24745       of reporting timeouts and other statistics.
24746     - Create three levels of Path Bias log messages, as opposed to just
24747       two. These are configurable via consensus as well as via the torrc
24748       options PathBiasNoticeRate, PathBiasWarnRate, PathBiasExtremeRate.
24749       The default values are 0.70, 0.50, and 0.30 respectively.
24750     - Separate the log message levels from the decision to drop guards,
24751       which also is available via torrc option PathBiasDropGuards.
24752       PathBiasDropGuards still defaults to 0 (off).
24753     - Deprecate PathBiasDisableRate in favor of PathBiasDropGuards
24754       in combination with PathBiasExtremeRate.
24755     - Increase the default values for PathBiasScaleThreshold and
24756       PathBiasCircThreshold from (200, 20) to (300, 150).
24757     - Add in circuit usage accounting to path bias. If we try to use a
24758       built circuit but fail for any reason, it counts as path bias.
24759       Certain classes of circuits where the adversary gets to pick your
24760       destination node are exempt from this accounting. Usage accounting
24761       can be specifically disabled via consensus parameter or torrc.
24762     - Convert all internal path bias state to double-precision floating
24763       point, to avoid roundoff error and other issues.
24764     - Only record path bias information for circuits that have completed
24765       *two* hops. Assuming end-to-end tagging is the attack vector, this
24766       makes us more resilient to ambient circuit failure without any
24767       detection capability loss.
24769   o Minor bugfixes (log messages):
24770     - Rate-limit the "No circuits are opened. Relaxed timeout for a
24771       circuit with channel state open..." message to once per hour to
24772       keep it from filling the notice logs. Mitigates bug 7799 but does
24773       not fix the underlying cause. Bugfix on 0.2.4.7-alpha.
24774     - Avoid spurious warnings when configuring multiple client ports of
24775       which only some are nonlocal. Previously, we had claimed that some
24776       were nonlocal when in fact they weren't. Fixes bug 7836; bugfix on
24777       0.2.3.3-alpha.
24779   o Code simplifications and refactoring:
24780     - Get rid of a couple of harmless clang warnings, where we compared
24781       enums to ints. These warnings are newly introduced in clang 3.2.
24782     - Split the onion.c file into separate modules for the onion queue
24783       and the different handshakes it supports.
24784     - Remove the marshalling/unmarshalling code for sending requests to
24785       cpuworkers over a socket, and instead just send structs. The
24786       recipient will always be the same Tor binary as the sender, so
24787       any encoding is overkill.
24790 Changes in version 0.2.4.7-alpha - 2012-12-24
24791   Tor 0.2.4.7-alpha introduces a new approach to providing fallback
24792   directory mirrors for more robust bootstrapping; fixes more issues where
24793   clients with changing network conditions refuse to make any circuits;
24794   adds initial support for exiting to IPv6 addresses; resumes being able
24795   to update our GeoIP database, and includes the geoip6 file this time;
24796   turns off the client-side DNS cache by default due to privacy risks;
24797   and fixes a variety of other issues.
24799   o Major features (client resilience):
24800     - Add a new "FallbackDir" torrc option to use when we can't use
24801       a directory mirror from the consensus (either because we lack a
24802       consensus, or because they're all down). Currently, all authorities
24803       are fallbacks by default, and there are no other default fallbacks,
24804       but that will change. This option will allow us to give clients a
24805       longer list of servers to try to get a consensus from when first
24806       connecting to the Tor network, and thereby reduce load on the
24807       directory authorities. Implements proposal 206, "Preconfigured
24808       directory sources for bootstrapping". We also removed the old
24809       "FallbackNetworkstatus" option, since we never got it working well
24810       enough to use it. Closes bug 572.
24811     - If we have no circuits open, use a relaxed timeout (the
24812       95-percentile cutoff) until a circuit succeeds. This heuristic
24813       should allow Tor to succeed at building circuits even when the
24814       network connection drastically changes. Should help with bug 3443.
24816   o Major features (IPv6):
24817     - Relays can now exit to IPv6 addresses: make sure that you have IPv6
24818       connectivity, then set the IPv6Exit flag to 1. Also make sure your
24819       exit policy reads as you would like: the address * applies to all
24820       address families, whereas *4 is IPv4 address only, and *6 is IPv6
24821       addresses only. On the client side, you'll need to wait until the
24822       authorities have upgraded, wait for enough exits to support IPv6,
24823       apply the "IPv6Traffic" flag to a SocksPort, and use Socks5. Closes
24824       ticket 5547, implements proposal 117 as revised in proposal 208.
24826       We DO NOT recommend that clients with actual anonymity needs start
24827       using IPv6 over Tor yet, since not enough exits support it yet.
24829   o Major features (geoip database):
24830     - Maxmind began labelling Tor relays as being in country "A1",
24831       which breaks by-country node selection inside Tor. Now we use a
24832       script to replace "A1" ("Anonymous Proxy") entries in our geoip
24833       file with real country codes. This script fixes about 90% of "A1"
24834       entries automatically and uses manual country code assignments to
24835       fix the remaining 10%. See src/config/README.geoip for details.
24836       Fixes bug 6266. Also update to the December 5 2012 Maxmind GeoLite
24837       Country database, as modified above.
24839   o Major bugfixes (client-side DNS):
24840     - Turn off the client-side DNS cache by default. Updating and using
24841       the DNS cache is now configurable on a per-client-port
24842       level. SOCKSPort, DNSPort, etc lines may now contain
24843       {No,}Cache{IPv4,IPv6,}DNS lines to indicate that we shouldn't
24844       cache these types of DNS answers when we receive them from an
24845       exit node in response to an application request on this port, and
24846       {No,}UseCached{IPv4,IPv6,DNS} lines to indicate that if we have
24847       cached DNS answers of these types, we shouldn't use them. It's
24848       potentially risky to use cached DNS answers at the client, since
24849       doing so can indicate to one exit what answers we've gotten
24850       for DNS lookups in the past. With IPv6, this becomes especially
24851       problematic. Using cached DNS answers for requests on the same
24852       circuit would present less linkability risk, since all traffic
24853       on a circuit is already linkable, but it would also provide
24854       little performance benefit: the exit node caches DNS replies
24855       too. Implements a simplified version of Proposal 205. Implements
24856       ticket 7570.
24858   o Major bugfixes (other):
24859     - Alter circuit build timeout measurement to start at the point
24860       where we begin the CREATE/CREATE_FAST step (as opposed to circuit
24861       initialization). This should make our timeout measurements more
24862       uniform. Previously, we were sometimes including ORconn setup time
24863       in our circuit build time measurements. Should resolve bug 3443.
24864     - Fix an assertion that could trigger in hibernate_go_dormant() when
24865       closing an or_connection_t: call channel_mark_for_close() rather
24866       than connection_mark_for_close(). Fixes bug 7267. Bugfix on
24867       0.2.4.4-alpha.
24868     - Include the geoip6 IPv6 GeoIP database in the tarball. Fixes bug
24869       7655; bugfix on 0.2.4.6-alpha.
24871   o Minor features:
24872     - Add a new torrc option "ServerTransportListenAddr" to let bridge
24873       operators select the address where their pluggable transports will
24874       listen for connections. Resolves ticket 7013.
24875     - Allow an optional $ before the node identity digest in the
24876       controller command GETINFO ns/id/<identity>, for consistency with
24877       md/id/<identity> and desc/id/<identity>. Resolves ticket 7059.
24878     - Log packaged cell fullness as part of the heartbeat message.
24879       Diagnosis to try to determine the extent of bug 7743.
24881   o Minor features (IPv6):
24882     - AutomapHostsOnResolve now supports IPv6 addresses. By default, we
24883       prefer to hand out virtual IPv6 addresses, since there are more of
24884       them and we can't run out. To override this behavior and make IPv4
24885       addresses preferred, set NoPreferIPv6Automap on whatever SOCKSPort
24886       or DNSPort you're using for resolving. Implements ticket 7571.
24887     - AutomapHostsOnResolve responses are now randomized, to avoid
24888       annoying situations where Tor is restarted and applications
24889       connect to the wrong addresses.
24890     - Never try more than 1000 times to pick a new virtual address when
24891       AutomapHostsOnResolve is set. That's good enough so long as we
24892       aren't close to handing out our entire virtual address space;
24893       if you're getting there, it's best to switch to IPv6 virtual
24894       addresses anyway.
24896   o Minor bugfixes:
24897     - The ADDRMAP command can no longer generate an ill-formed error
24898       code on a failed MAPADDRESS. It now says "internal" rather than
24899       an English sentence fragment with spaces in the middle. Bugfix on
24900       Tor 0.2.0.19-alpha.
24901     - Fix log messages and comments to avoid saying "GMT" when we mean
24902       "UTC". Fixes bug 6113.
24903     - Compile on win64 using mingw64. Fixes bug 7260; patches from
24904       "yayooo".
24905     - Fix a crash when debugging unit tests on Windows: deallocate a
24906       shared library with FreeLibrary, not CloseHandle. Fixes bug 7306;
24907       bugfix on 0.2.2.17-alpha. Reported by "ultramage".
24909   o Renamed options:
24910     - The DirServer option is now DirAuthority, for consistency with
24911       current naming patterns. You can still use the old DirServer form.
24913   o Code simplification and refactoring:
24914     - Move the client-side address-map/virtual-address/DNS-cache code
24915       out of connection_edge.c into a new addressmap.c module.
24916     - Remove unused code for parsing v1 directories and "running routers"
24917       documents. Fixes bug 6887.
24920 Changes in version 0.2.3.25 - 2012-11-19
24921   The Tor 0.2.3 release series is dedicated to the memory of Len "rabbi"
24922   Sassaman (1980-2011), a long-time cypherpunk, anonymity researcher,
24923   Mixmaster maintainer, Pynchon Gate co-designer, CodeCon organizer,
24924   programmer, and friend. Unstinting in his dedication to the cause of
24925   freedom, he inspired and helped many of us as we began our work on
24926   anonymity, and inspires us still. Please honor his memory by writing
24927   software to protect people's freedoms, and by helping others to do so.
24929   Tor 0.2.3.25, the first stable release in the 0.2.3 branch, features
24930   significantly reduced directory overhead (via microdescriptors),
24931   enormous crypto performance improvements for fast relays on new
24932   enough hardware, a new v3 TLS handshake protocol that can better
24933   resist fingerprinting, support for protocol obfuscation plugins (aka
24934   pluggable transports), better scalability for hidden services, IPv6
24935   support for bridges, performance improvements like allowing clients
24936   to skip the first round-trip on the circuit ("optimistic data") and
24937   refilling token buckets more often, a new "stream isolation" design
24938   to isolate different applications on different circuits, and many
24939   stability, security, and privacy fixes.
24941   o Major bugfixes:
24942     - Tor tries to wipe potentially sensitive data after using it, so
24943       that if some subsequent security failure exposes Tor's memory,
24944       the damage will be limited. But we had a bug where the compiler
24945       was eliminating these wipe operations when it decided that the
24946       memory was no longer visible to a (correctly running) program,
24947       hence defeating our attempt at defense in depth. We fix that
24948       by using OpenSSL's OPENSSL_cleanse() operation, which a compiler
24949       is unlikely to optimize away. Future versions of Tor may use
24950       a less ridiculously heavy approach for this. Fixes bug 7352.
24951       Reported in an article by Andrey Karpov.
24953   o Minor bugfixes:
24954     - Fix a harmless bug when opting against publishing a relay descriptor
24955       because DisableNetwork is set. Fixes bug 7464; bugfix on
24956       0.2.3.9-alpha.
24959 Changes in version 0.2.4.6-alpha - 2012-11-13
24960   Tor 0.2.4.6-alpha fixes an assert bug that has been plaguing relays,
24961   makes our defense-in-depth memory wiping more reliable, and begins to
24962   count IPv6 addresses in bridge statistics,
24964   o Major bugfixes:
24965     - Fix an assertion failure that could occur when closing a connection
24966       with a spliced rendezvous circuit. Fix for bug 7212; bugfix on
24967       Tor 0.2.4.4-alpha.
24968     - Tor tries to wipe potentially sensitive data after using it, so
24969       that if some subsequent security failure exposes Tor's memory,
24970       the damage will be limited. But we had a bug where the compiler
24971       was eliminating these wipe operations when it decided that the
24972       memory was no longer visible to a (correctly running) program,
24973       hence defeating our attempt at defense in depth. We fix that
24974       by using OpenSSL's OPENSSL_cleanse() operation, which a compiler
24975       is unlikely to optimize away. Future versions of Tor may use
24976       a less ridiculously heavy approach for this. Fixes bug 7352.
24977       Reported in an article by Andrey Karpov.
24979   o Minor features:
24980     - Add GeoIP database for IPv6 addresses. The new config option
24981       is GeoIPv6File.
24982     - Bridge statistics now count bridge clients connecting over IPv6:
24983       bridge statistics files now list "bridge-ip-versions" and
24984       extra-info documents list "geoip6-db-digest". The control protocol
24985       "CLIENTS_SEEN" and "ip-to-country" queries now support IPv6. Initial
24986       implementation by "shkoo", addressing ticket 5055.
24988   o Minor bugfixes:
24989     - Warn when we are binding low ports when hibernation is enabled;
24990       previously we had warned when we were _advertising_ low ports with
24991       hibernation enabled. Fixes bug 7285; bugfix on 0.2.3.9-alpha.
24992     - Fix a harmless bug when opting against publishing a relay descriptor
24993       because DisableNetwork is set. Fixes bug 7464; bugfix on
24994       0.2.3.9-alpha.
24995     - Add warning message when a managed proxy dies during configuration.
24996       Fixes bug 7195; bugfix on 0.2.4.2-alpha.
24997     - Fix a linking error when building tor-fw-helper without miniupnp.
24998       Fixes bug 7235; bugfix on 0.2.4.2-alpha. Fix by Anthony G. Basile.
24999     - Check for closing an or_connection_t without going through correct
25000       channel functions; emit a warning and then call
25001       connection_or_close_for_error() so we don't assert as in bugs 7212
25002       and 7267.
25003     - Compile correctly on compilers without C99 designated initializer
25004       support. Fixes bug 7286; bugfix on 0.2.4.4-alpha.
25005     - Avoid a possible assert that can occur when channel_send_destroy() is
25006       called on a channel in CHANNEL_STATE_CLOSING, CHANNEL_STATE_CLOSED,
25007       or CHANNEL_STATE_ERROR when the Tor process is resumed after being
25008       blocked for a long interval. Fixes bug 7350; bugfix on 0.2.4.4-alpha.
25009     - Fix a memory leak on failing cases of channel_tls_process_certs_cell.
25010       Fixes bug 7422; bugfix on 0.2.4.4-alpha.
25012   o Code simplification and refactoring:
25013     - Start using OpenBSD's implementation of queue.h, so that we don't
25014       need to hand-roll our own pointer and list structures whenever we
25015       need them. (We can't rely on a sys/queue.h, since some operating
25016       systems don't have them, and the ones that do have them don't all
25017       present the same extensions.)
25020 Changes in version 0.2.4.5-alpha - 2012-10-25
25021   Tor 0.2.4.5-alpha comes hard at the heels of 0.2.4.4-alpha, to fix
25022   two important security vulnerabilities that could lead to remotely
25023   triggerable relay crashes, fix a major bug that was preventing clients
25024   from choosing suitable exit nodes, and refactor some of our code.
25026   o Major bugfixes (security, also in 0.2.3.24-rc):
25027     - Fix a group of remotely triggerable assertion failures related to
25028       incorrect link protocol negotiation. Found, diagnosed, and fixed
25029       by "some guy from France". Fix for CVE-2012-2250; bugfix on
25030       0.2.3.6-alpha.
25031     - Fix a denial of service attack by which any directory authority
25032       could crash all the others, or by which a single v2 directory
25033       authority could crash everybody downloading v2 directory
25034       information. Fixes bug 7191; bugfix on 0.2.0.10-alpha.
25036   o Major bugfixes (also in 0.2.3.24-rc):
25037     - When parsing exit policy summaries from microdescriptors, we had
25038       previously been ignoring the last character in each one, so that
25039       "accept 80,443,8080" would be treated by clients as indicating
25040       a node that allows access to ports 80, 443, and 808. That would
25041       lead to clients attempting connections that could never work,
25042       and ignoring exit nodes that would support their connections. Now
25043       clients parse these exit policy summaries correctly. Fixes bug 7192;
25044       bugfix on 0.2.3.1-alpha.
25046   o Minor bugfixes (also in 0.2.3.24-rc):
25047     - Clients now consider the ClientRejectInternalAddresses config option
25048       when using a microdescriptor consensus stanza to decide whether
25049       an exit relay would allow exiting to an internal address. Fixes
25050       bug 7190; bugfix on 0.2.3.1-alpha.
25052   o Minor bugfixes:
25053     - Only disable TLS session ticket support when running as a TLS
25054       server. Now clients will blend better with regular Firefox
25055       connections. Fixes bug 7189; bugfix on Tor 0.2.3.23-rc.
25057   o Code simplification and refactoring:
25058     - Start using OpenBSD's implementation of queue.h (originally by
25059       Niels Provos).
25060     - Move the entry node code from circuitbuild.c to its own file.
25061     - Move the circuit build timeout tracking code from circuitbuild.c
25062       to its own file.
25065 Changes in version 0.2.3.24-rc - 2012-10-25
25066   Tor 0.2.3.24-rc fixes two important security vulnerabilities that
25067   could lead to remotely triggerable relay crashes, and fixes
25068   a major bug that was preventing clients from choosing suitable exit
25069   nodes.
25071   o Major bugfixes (security):
25072     - Fix a group of remotely triggerable assertion failures related to
25073       incorrect link protocol negotiation. Found, diagnosed, and fixed
25074       by "some guy from France". Fix for CVE-2012-2250; bugfix on
25075       0.2.3.6-alpha.
25076     - Fix a denial of service attack by which any directory authority
25077       could crash all the others, or by which a single v2 directory
25078       authority could crash everybody downloading v2 directory
25079       information. Fixes bug 7191; bugfix on 0.2.0.10-alpha.
25081   o Major bugfixes:
25082     - When parsing exit policy summaries from microdescriptors, we had
25083       previously been ignoring the last character in each one, so that
25084       "accept 80,443,8080" would be treated by clients as indicating
25085       a node that allows access to ports 80, 443, and 808. That would
25086       lead to clients attempting connections that could never work,
25087       and ignoring exit nodes that would support their connections. Now
25088       clients parse these exit policy summaries correctly. Fixes bug 7192;
25089       bugfix on 0.2.3.1-alpha.
25091   o Minor bugfixes:
25092     - Clients now consider the ClientRejectInternalAddresses config option
25093       when using a microdescriptor consensus stanza to decide whether
25094       an exit relay would allow exiting to an internal address. Fixes
25095       bug 7190; bugfix on 0.2.3.1-alpha.
25098 Changes in version 0.2.4.4-alpha - 2012-10-20
25099   Tor 0.2.4.4-alpha adds a new v3 directory authority, fixes a privacy
25100   vulnerability introduced by a change in OpenSSL, fixes a remotely
25101   triggerable assert, and adds new channel_t and circuitmux_t abstractions
25102   that will make it easier to test new connection transport and cell
25103   scheduling algorithms.
25105   o New directory authorities (also in 0.2.3.23-rc):
25106     - Add Faravahar (run by Sina Rabbani) as the ninth v3 directory
25107       authority. Closes ticket 5749.
25109   o Major bugfixes (security/privacy, also in 0.2.3.23-rc):
25110     - Disable TLS session tickets. OpenSSL's implementation was giving
25111       our TLS session keys the lifetime of our TLS context objects, when
25112       perfect forward secrecy would want us to discard anything that
25113       could decrypt a link connection as soon as the link connection
25114       was closed. Fixes bug 7139; bugfix on all versions of Tor linked
25115       against OpenSSL 1.0.0 or later. Found by Florent Daignière.
25116     - Discard extraneous renegotiation attempts once the V3 link
25117       protocol has been initiated. Failure to do so left us open to
25118       a remotely triggerable assertion failure. Fixes CVE-2012-2249;
25119       bugfix on 0.2.3.6-alpha. Reported by "some guy from France".
25121   o Internal abstraction features:
25122     - Introduce new channel_t abstraction between circuits and
25123       or_connection_t to allow for implementing alternate OR-to-OR
25124       transports. A channel_t is an abstract object which can either be a
25125       cell-bearing channel, which is responsible for authenticating and
25126       handshaking with the remote OR and transmitting cells to and from
25127       it, or a listening channel, which spawns new cell-bearing channels
25128       at the request of remote ORs. Implements part of ticket 6465.
25129     - Also new is the channel_tls_t subclass of channel_t, adapting it
25130       to the existing or_connection_t code. The V2/V3 protocol handshaking
25131       code which formerly resided in command.c has been moved below the
25132       channel_t abstraction layer and may be found in channeltls.c now.
25133       Implements the rest of ticket 6465.
25134     - Introduce new circuitmux_t storing the queue of circuits for
25135       a channel; this encapsulates and abstracts the queue logic and
25136       circuit selection policy, and allows the latter to be overridden
25137       easily by switching out a policy object. The existing EWMA behavior
25138       is now implemented as a circuitmux_policy_t. Resolves ticket 6816.
25140   o Required libraries:
25141     - Tor now requires OpenSSL 0.9.8 or later. OpenSSL 1.0.0 or later is
25142       strongly recommended.
25144   o Minor features:
25145     - Warn users who run hidden services on a Tor client with
25146       UseEntryGuards disabled that their hidden services will be
25147       vulnerable to http://freehaven.net/anonbib/#hs-attack06 (the
25148       attack which motivated Tor to support entry guards in the first
25149       place). Resolves ticket 6889.
25150     - Tor now builds correctly on Bitrig, an OpenBSD fork. Patch from
25151       dhill. Resolves ticket 6982.
25152     - Option OutboundBindAddress can be specified multiple times and
25153       accepts IPv6 addresses. Resolves ticket 6876.
25155   o Minor bugfixes (also in 0.2.3.23-rc):
25156     - Don't serve or accept v2 hidden service descriptors over a
25157       relay's DirPort. It's never correct to do so, and disabling it
25158       might make it more annoying to exploit any bugs that turn up in the
25159       descriptor-parsing code. Fixes bug 7149.
25160     - Fix two cases in src/or/transports.c where we were calling
25161       fmt_addr() twice in a parameter list. Bug found by David
25162       Fifield. Fixes bug 7014; bugfix on 0.2.3.9-alpha.
25163     - Fix memory leaks whenever we logged any message about the "path
25164       bias" detection. Fixes bug 7022; bugfix on 0.2.3.21-rc.
25165     - When relays refuse a "create" cell because their queue of pending
25166       create cells is too big (typically because their cpu can't keep up
25167       with the arrival rate), send back reason "resource limit" rather
25168       than reason "internal", so network measurement scripts can get a
25169       more accurate picture. Fixes bug 7037; bugfix on 0.1.1.11-alpha.
25171   o Minor bugfixes:
25172     - Command-line option "--version" implies "--quiet". Fixes bug 6997.
25173     - Free some more still-in-use memory at exit, to make hunting for
25174       memory leaks easier. Resolves bug 7029.
25175     - When a Tor client gets a "truncated" relay cell, the first byte of
25176       its payload specifies why the circuit was truncated. We were
25177       ignoring this 'reason' byte when tearing down the circuit, resulting
25178       in the controller not being told why the circuit closed. Now we
25179       pass the reason from the truncated cell to the controller. Bugfix
25180       on 0.1.2.3-alpha; fixes bug 7039.
25181     - Downgrade "Failed to hand off onionskin" messages to "debug"
25182       severity, since they're typically redundant with the "Your computer
25183       is too slow" messages. Fixes bug 7038; bugfix on 0.2.2.16-alpha.
25184     - Make clients running with IPv6 bridges connect over IPv6 again,
25185       even without setting new config options ClientUseIPv6 and
25186       ClientPreferIPv6ORPort. Fixes bug 6757; bugfix on 0.2.4.1-alpha.
25187     - Use square brackets around IPv6 addresses in numerous places
25188       that needed them, including log messages, HTTPS CONNECT proxy
25189       requests, TransportProxy statefile entries, and pluggable transport
25190       extra-info lines. Fixes bug 7011; patch by David Fifield.
25192   o Code refactoring and cleanup:
25193     - Source files taken from other packages now reside in src/ext;
25194       previously they were scattered around the rest of Tor.
25195     - Avoid use of reserved identifiers in our C code. The C standard
25196       doesn't like us declaring anything that starts with an
25197       underscore, so let's knock it off before we get in trouble. Fix
25198       for bug 1031; bugfix on the first Tor commit.
25201 Changes in version 0.2.3.23-rc - 2012-10-20
25202   Tor 0.2.3.23-rc adds a new v3 directory authority, fixes a privacy
25203   vulnerability introduced by a change in OpenSSL, and fixes a variety
25204   of smaller bugs in preparation for the release.
25206   o New directory authorities:
25207     - Add Faravahar (run by Sina Rabbani) as the ninth v3 directory
25208       authority. Closes ticket 5749.
25210   o Major bugfixes (security/privacy):
25211     - Disable TLS session tickets. OpenSSL's implementation was giving
25212       our TLS session keys the lifetime of our TLS context objects, when
25213       perfect forward secrecy would want us to discard anything that
25214       could decrypt a link connection as soon as the link connection
25215       was closed. Fixes bug 7139; bugfix on all versions of Tor linked
25216       against OpenSSL 1.0.0 or later. Found by Florent Daignière.
25217     - Discard extraneous renegotiation attempts once the V3 link
25218       protocol has been initiated. Failure to do so left us open to
25219       a remotely triggerable assertion failure. Fixes CVE-2012-2249;
25220       bugfix on 0.2.3.6-alpha. Reported by "some guy from France".
25222   o Major bugfixes:
25223     - Fix a possible crash bug when checking for deactivated circuits
25224       in connection_or_flush_from_first_active_circuit(). Fixes bug 6341;
25225       bugfix on 0.2.2.7-alpha. Bug report and fix received pseudonymously.
25227   o Minor bugfixes (on 0.2.3.x):
25228     - Fix two cases in src/or/transports.c where we were calling
25229       fmt_addr() twice in a parameter list. Bug found by David
25230       Fifield. Fixes bug 7014; bugfix on 0.2.3.9-alpha.
25231     - Convert an assert in the pathbias code to a log message. The assert
25232       appears to only be triggerable by Tor2Web mode. Fixes bug 6866;
25233       bugfix on 0.2.3.17-beta.
25234     - Fix memory leaks whenever we logged any message about the "path
25235       bias" detection. Fixes bug 7022; bugfix on 0.2.3.21-rc.
25237   o Minor bugfixes (on 0.2.2.x and earlier):
25238     - Don't serve or accept v2 hidden service descriptors over a relay's
25239       DirPort. It's never correct to do so, and disabling it might
25240       make it more annoying to exploit any bugs that turn up in the
25241       descriptor-parsing code. Fixes bug 7149.
25242     - When relays refuse a "create" cell because their queue of pending
25243       create cells is too big (typically because their cpu can't keep up
25244       with the arrival rate), send back reason "resource limit" rather
25245       than reason "internal", so network measurement scripts can get a
25246       more accurate picture. Bugfix on 0.1.1.11-alpha; fixes bug 7037.
25247     - Correct file sizes when reading binary files on Cygwin, to avoid
25248       a bug where Tor would fail to read its state file. Fixes bug 6844;
25249       bugfix on 0.1.2.7-alpha.
25250     - Avoid undefined behavior when parsing the list of supported
25251       rendezvous/introduction protocols in a hidden service descriptor.
25252       Previously, Tor would have confused (as-yet-unused) protocol version
25253       numbers greater than 32 with lower ones on many platforms. Fixes
25254       bug 6827; bugfix on 0.2.0.10-alpha. Found by George Kadianakis.
25256   o Documentation fixes:
25257     - Clarify that hidden services are TCP only. Fixes bug 6024.
25260 Changes in version 0.2.4.3-alpha - 2012-09-22
25261   Tor 0.2.4.3-alpha fixes another opportunity for a remotely triggerable
25262   assertion, resumes letting relays test reachability of their DirPort,
25263   and cleans up a bunch of smaller bugs.
25265   o Security fixes:
25266     - Fix an assertion failure in tor_timegm() that could be triggered
25267       by a badly formatted directory object. Bug found by fuzzing with
25268       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
25270   o Major bugfixes:
25271     - Fix a possible crash bug when checking for deactivated circuits
25272       in connection_or_flush_from_first_active_circuit(). Fixes bug 6341;
25273       bugfix on 0.2.2.7-alpha. Bug report and fix received pseudonymously.
25274     - Allow routers to detect that their own DirPorts are running. When
25275       we removed support for versions_supports_begindir, we also
25276       accidentally removed the mechanism we used to self-test our
25277       DirPort. Diagnosed with help from kargig. Fixes bugs 6814 and 6815;
25278       bugfix on 0.2.4.2-alpha.
25280   o Security features:
25281     - Switch to a completely time-invariant approach for picking nodes
25282       weighted by bandwidth. Our old approach would run through the
25283       part of the loop after it had made its choice slightly slower
25284       than it ran through the part of the loop before it had made its
25285       choice. Addresses ticket 6538.
25286     - Disable the use of Guard nodes when in Tor2WebMode. Guard usage
25287       by tor2web clients allows hidden services to identify tor2web
25288       clients through their repeated selection of the same rendezvous
25289       and introduction point circuit endpoints (their guards). Resolves
25290       ticket 6888.
25292   o Minor features:
25293     - Enable Tor to read configuration, state, and key information from
25294       a FIFO. Previously Tor would only read from files with a positive
25295       stat.st_size. Code from meejah; fixes bug 6044.
25297   o Minor bugfixes:
25298     - Correct file sizes when reading binary files on Cygwin, to avoid
25299       a bug where Tor would fail to read its state file. Fixes bug 6844;
25300       bugfix on 0.1.2.7-alpha.
25301     - Correctly handle votes with more than 31 flags. Fixes bug 6853;
25302       bugfix on 0.2.0.3-alpha.
25303     - When complaining about a client port on a public address, log
25304       which address we're complaining about. Fixes bug 4020; bugfix on
25305       0.2.3.3-alpha. Patch by Tom Fitzhenry.
25306     - Convert an assert in the pathbias code to a log message. The assert
25307       appears to only be triggerable by Tor2Web mode. Fixes bug 6866;
25308       bugfix on 0.2.3.17-beta.
25309     - Our new buildsystem was overzealous about rebuilding manpages: it
25310       would rebuild them all whenever any one of them changed. Now our
25311       dependency checking should be correct. Fixes bug 6843; bugfix on
25312       0.2.4.1-alpha.
25313     - Don't do reachability testing over IPv6 unless AuthDirPublishIPv6
25314       is set. Fixes bug 6880. Bugfix on 0.2.4.1-alpha.
25315     - Correct log printout about which address family is preferred
25316       when connecting to a bridge with both an IPv4 and IPv6 OR port.
25317       Fixes bug 6884; bugfix on 0.2.4.1-alpha.
25319   o Minor bugfixes (code cleanliness):
25320     - Fix round_to_power_of_2() so it doesn't invoke undefined behavior
25321       with large values. This situation was untriggered, but nevertheless
25322       incorrect. Fixes bug 6831; bugfix on 0.2.0.1-alpha.
25323     - Reject consensus votes with more than 64 known-flags. We aren't even
25324       close to that limit yet, and our code doesn't handle it correctly.
25325       Fixes bug 6833; bugfix on 0.2.0.1-alpha.
25326     - Avoid undefined behavior when parsing the list of supported
25327       rendezvous/introduction protocols in a hidden service descriptor.
25328       Previously, Tor would have confused (as-yet-unused) protocol version
25329       numbers greater than 32 with lower ones on many platforms. Fixes
25330       bug 6827; bugfix on 0.2.0.10-alpha. Found by George Kadianakis.
25331     - Fix handling of rendezvous client authorization types over 8.
25332       Fixes bug 6861; bugfix on 0.2.1.5-alpha.
25333     - Fix building with older versions of GCC (2.95, for one) that don't
25334       like preprocessor directives inside macro arguments. Found by
25335       grarpamp. Fixes bug 6842; bugfix on 0.2.4.2-alpha.
25336     - Switch weighted node selection rule from using a list of doubles
25337       to using a list of int64_t. This change should make the process
25338       slightly easier to debug and maintain. Needed to finish ticket 6538.
25340   o Code simplification and refactoring:
25341     - Move the generic "config" code into a new file, and have "config.c"
25342       hold only torrc- and state-related code. Resolves ticket 6823.
25343     - Move the core of our "choose a weighted element at random" logic
25344       into its own function, and give it unit tests. Now the logic is
25345       testable, and a little less fragile too.
25346     - Removed the testing_since field of node_t, which hasn't been used
25347       for anything since 0.2.0.9-alpha.
25349   o Documentation fixes:
25350     - Clarify that hidden services are TCP only. Fixes bug 6024.
25351     - Resolve a typo in torrc.sample.in. Fixes bug 6819; bugfix on
25352       0.2.3.14-alpha.
25355 Changes in version 0.2.3.22-rc - 2012-09-11
25356   Tor 0.2.3.22-rc fixes another opportunity for a remotely triggerable
25357   assertion.
25359   o Security fixes:
25360     - Fix an assertion failure in tor_timegm() that could be triggered
25361       by a badly formatted directory object. Bug found by fuzzing with
25362       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
25364   o Minor bugfixes:
25365     - Avoid segfault when starting up having run with an extremely old
25366       version of Tor and parsing its state file. Fixes bug 6801; bugfix
25367       on 0.2.2.23-alpha.
25370 Changes in version 0.2.2.39 - 2012-09-11
25371   Tor 0.2.2.39 fixes two more opportunities for remotely triggerable
25372   assertions.
25374   o Security fixes:
25375     - Fix an assertion failure in tor_timegm() that could be triggered
25376       by a badly formatted directory object. Bug found by fuzzing with
25377       Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc.
25378     - Do not crash when comparing an address with port value 0 to an
25379       address policy. This bug could have been used to cause a remote
25380       assertion failure by or against directory authorities, or to
25381       allow some applications to crash clients. Fixes bug 6690; bugfix
25382       on 0.2.1.10-alpha.
25385 Changes in version 0.2.4.2-alpha - 2012-09-10
25386   Tor 0.2.4.2-alpha enables port forwarding for pluggable transports,
25387   raises the default rate limiting even more, and makes the bootstrapping
25388   log messages less noisy.
25390   o Major features:
25391     - Automatically forward the TCP ports of pluggable transport
25392       proxies using tor-fw-helper if PortForwarding is enabled. Implements
25393       ticket 4567.
25395   o Major bugfixes:
25396     - Raise the default BandwidthRate/BandwidthBurst values from 5MB/10MB
25397       to 1GB/1GB. The previous defaults were intended to be "basically
25398       infinite", but it turns out they're now limiting our 100mbit+
25399       relays and bridges. Fixes bug 6605; bugfix on 0.2.0.10-alpha (the
25400       last time we raised it).
25402   o Minor features:
25403     - Detect when we're running with a version of OpenSSL other than the
25404       one we compiled with. This has occasionally given people hard-to-
25405       track-down errors.
25406     - Log fewer lines at level "notice" about our OpenSSL and Libevent
25407       versions and capabilities when everything is going right. Resolves
25408       part of ticket 6736.
25409     - Directory authorities no long accept descriptors for any version of
25410       Tor before 0.2.2.35, or for any 0.2.3 release before 0.2.3.10-alpha.
25411       These versions are insecure, unsupported, or both. Implements
25412       ticket 6789.
25414   o Minor bugfixes:
25415     - Rename the (internal-use-only) UsingTestingNetworkDefaults option
25416       to start with a triple-underscore so the controller won't touch it.
25417       Patch by Meejah. Fixes bug 3155. Bugfix on 0.2.2.23-alpha.
25418     - Avoid segfault when starting up having run with an extremely old
25419       version of Tor and parsing its state file. Fixes bug 6801; bugfix
25420       on 0.2.2.23-alpha.
25421     - Rename the (testing-use-only) _UseFilteringSSLBufferevents option
25422       so it doesn't start with _. Fixes bug 3155. Bugfix on 0.2.3.1-alpha.
25423     - Don't follow the NULL pointer if microdescriptor generation fails.
25424       (This does not appear to be triggerable, but it's best to be safe.)
25425       Found by "f. tp.". Fixes bug 6797; bugfix on 0.2.4.1-alpha.
25426     - Fix mis-declared dependencies on src/common/crypto.c and
25427       src/or/tor_main.c that could break out-of-tree builds under some
25428       circumstances. Fixes bug 6778; bugfix on 0.2.4.1-alpha.
25429     - Avoid a warning when building common_sha1.i out of tree. Fixes bug
25430       6778; bugfix on 0.2.4.1-alpha.
25431     - Fix a harmless (in this case) build warning for implicitly
25432       converting a strlen() to an int. Bugfix on 0.2.4.1-alpha.
25434   o Removed features:
25435     - Now that all versions before 0.2.2.x are disallowed, we no longer
25436       need to work around their missing features. Thus we can remove a
25437       bunch of compatibility code.
25439   o Code refactoring:
25440     - Tweak tor-fw-helper to accept an arbitrary amount of arbitrary
25441       TCP ports to forward. In the past it only accepted two ports:
25442       the ORPort and the DirPort.
25445 Changes in version 0.2.4.1-alpha - 2012-09-05
25446   Tor 0.2.4.1-alpha lets bridges publish their pluggable transports to
25447   bridgedb; lets relays use IPv6 addresses and directory authorities
25448   advertise them; and switches to a cleaner build interface.
25450   This is the first alpha release in a new series, so expect there to
25451   be bugs. Users who would rather test out a more stable branch should
25452   stay with 0.2.3.x for now.
25454   o Major features (bridges):
25455     - Bridges now report the pluggable transports they support to the
25456       bridge authority, so it can pass the supported transports on to
25457       bridgedb and/or eventually do reachability testing. Implements
25458       ticket 3589.
25460   o Major features (IPv6):
25461     - Bridge authorities now accept IPv6 bridge addresses and include
25462       them in network status documents. Implements ticket 5534.
25463     - Clients who set "ClientUseIPv6 1" may connect to entry nodes over
25464       IPv6. Set "ClientPreferIPv6ORPort 1" to make this even more likely
25465       to happen. Implements ticket 5535.
25466     - All kind of relays, not just bridges, can now advertise an IPv6
25467       OR port. Implements ticket 6362.
25468     - Directory authorities vote on IPv6 OR ports using the new consensus
25469       method 14. Implements ticket 6363.
25471   o Major features (build):
25472     - Switch to a nonrecursive Makefile structure. Now instead of each
25473       Makefile.am invoking other Makefile.am's, there is a master
25474       Makefile.am that includes the others. This change makes our build
25475       process slightly more maintainable, and improves parallelism for
25476       building with make -j. Original patch by Stewart Smith; various
25477       fixes by Jim Meyering.
25478     - Where available, we now use automake's "silent" make rules by
25479       default, so that warnings are easier to spot. You can get the old
25480       behavior with "make V=1". Patch by Stewart Smith for ticket 6522.
25482   o Minor features (code security and spec conformance):
25483     - Clear keys and key-derived material left on the stack in
25484       rendservice.c and rendclient.c. Check return value of
25485       crypto_pk_write_private_key_to_string() in rend_service_load_keys().
25486       These fixes should make us more forward-secure against cold-boot
25487       attacks and the like. Fixes bug 2385.
25488     - Reject EXTEND cells sent to nonexistent streams. According to the
25489       spec, an EXTEND cell sent to _any_ nonzero stream ID is invalid, but
25490       we were only checking for stream IDs that were currently in use.
25491       Found while hunting for more instances of bug 6271. Bugfix on
25492       0.0.2pre8, which introduced incremental circuit construction.
25494   o Minor features (streamlining);
25495     - No longer include the "opt" prefix when generating routerinfos
25496       or v2 directories: it has been needless since Tor 0.1.2. Closes
25497       ticket 5124.
25498     - Remove some now-needless code that tried to aggressively flush
25499       OR connections as data was added to them. Since 0.2.0.1-alpha, our
25500       cell queue logic has saved us from the failure mode that this code
25501       was supposed to prevent. Removing this code will limit the number
25502       of baroque control flow paths through Tor's network logic. Reported
25503       pseudonymously on IRC. Fixes bug 6468; bugfix on 0.2.0.1-alpha.
25505   o Minor features (controller):
25506     - Add a "GETINFO signal/names" control port command. Implements
25507       ticket 3842.
25508     - Provide default values for all options via "GETINFO config/defaults".
25509       Implements ticket 4971.
25511   o Minor features (IPv6):
25512     - New config option "AuthDirHasIPv6Connectivity 1" that directory
25513       authorities should set if they have IPv6 connectivity and want to
25514       do reachability tests for IPv6 relays. Implements feature 5974.
25515     - A relay with an IPv6 OR port now sends that address in NETINFO
25516       cells (in addition to its other address). Implements ticket 6364.
25518   o Minor features (log messages):
25519     - Omit the first heartbeat log message, because it never has anything
25520       useful to say, and it clutters up the bootstrapping messages.
25521       Resolves ticket 6758.
25522     - Don't log about reloading the microdescriptor cache at startup. Our
25523       bootstrap warnings are supposed to tell the user when there's a
25524       problem, and our bootstrap notices say when there isn't. Resolves
25525       ticket 6759; bugfix on 0.2.2.6-alpha.
25526     - Don't log "I learned some more directory information" when we're
25527       reading cached directory information. Reserve it for when new
25528       directory information arrives in response to a fetch. Resolves
25529       ticket 6760.
25530     - Prevent rounding error in path bias counts when scaling
25531       them down, and use the correct scale factor default. Also demote
25532       some path bias related log messages down a level and make others
25533       less scary sounding. Fixes bug 6647. Bugfix against 0.2.3.17-beta.
25534     - We no longer warn so much when generating manpages from their
25535       asciidoc source.
25537   o Code simplifications and refactoring:
25538     - Enhance our internal sscanf replacement so that we can eliminate
25539       the last remaining uses of the system sscanf. (Though those uses
25540       of sscanf were safe, sscanf itself is generally error prone, so
25541       we want to eliminate when we can.) Fixes ticket 4195 and Coverity
25542       CID 448.
25543     - Move ipv6_preferred from routerinfo_t to node_t. Addresses bug 4620.
25544     - Move last_reachable and testing_since from routerinfo_t to node_t.
25545       Implements ticket 5529.
25546     - Add replaycache_t structure, functions and unit tests, then refactor
25547       rend_service_introduce() to be more clear to read, improve, debug,
25548       and test. Resolves bug 6177.
25549     - Finally remove support for malloc_good_size and malloc_usable_size.
25550       We had hoped that these functions would let us eke a little more
25551       memory out of our malloc implementation. Unfortunately, the only
25552       implementations that provided these functions are also ones that
25553       are already efficient about not overallocation: they never got us
25554       more than 7 or so bytes per allocation. Removing them saves us a
25555       little code complexity and a nontrivial amount of build complexity.
25557   o New requirements:
25558     - Tor maintainers now require Automake version 1.9 or later to build
25559       Tor from the Git repository. (Automake is not required when building
25560       from a source distribution.)
25563 Changes in version 0.2.3.21-rc - 2012-09-05
25564   Tor 0.2.3.21-rc is the fourth release candidate for the Tor 0.2.3.x
25565   series. It fixes a trio of potential security bugs, fixes a bug where
25566   we were leaving some of the fast relays out of the microdescriptor
25567   consensus, resumes interpreting "ORPort 0" and "DirPort 0" correctly,
25568   and cleans up other smaller issues.
25570   o Major bugfixes (security):
25571     - Tear down the circuit if we get an unexpected SENDME cell. Clients
25572       could use this trick to make their circuits receive cells faster
25573       than our flow control would have allowed, or to gum up the network,
25574       or possibly to do targeted memory denial-of-service attacks on
25575       entry nodes. Fixes bug 6252. Bugfix on the 54th commit on Tor --
25576       from July 2002, before the release of Tor 0.0.0. We had committed
25577       this patch previously, but we had to revert it because of bug 6271.
25578       Now that 6271 is fixed, this patch appears to work.
25579     - Reject any attempt to extend to an internal address. Without
25580       this fix, a router could be used to probe addresses on an internal
25581       network to see whether they were accepting connections. Fixes bug
25582       6710; bugfix on 0.0.8pre1.
25583     - Do not crash when comparing an address with port value 0 to an
25584       address policy. This bug could have been used to cause a remote
25585       assertion failure by or against directory authorities, or to
25586       allow some applications to crash clients. Fixes bug 6690; bugfix
25587       on 0.2.1.10-alpha.
25589   o Major bugfixes:
25590     - Remove the upper bound on microdescriptor length. We were hitting
25591       the limit for routers with complex exit policies or family
25592       declarations, causing clients to not use them. Fixes the first
25593       piece of bug 6404; fix on 0.2.2.6-alpha.
25594     - Detect "ORPort 0" as meaning, uniformly, that we're not running
25595       as a relay. Previously, some of our code would treat the presence
25596       of any ORPort line as meaning that we should act like a relay,
25597       even though our new listener code would correctly not open any
25598       ORPorts for ORPort 0. Similar bugs in other Port options are also
25599       fixed. Fixes the first half of bug 6507; bugfix on 0.2.3.3-alpha.
25601   o Minor bugfixes:
25602     - Avoid a pair of double-free and use-after-mark bugs that can
25603       occur with certain timings in canceled and re-received DNS
25604       requests. Fixes bug 6472; bugfix on 0.0.7rc1.
25605     - Fix build and 64-bit compile warnings from --enable-openbsd-malloc.
25606       Fixes bug 6379. Bugfix on 0.2.0.20-rc.
25607     - Allow one-hop directory fetching circuits the full "circuit build
25608       timeout" period, rather than just half of it, before failing them
25609       and marking the relay down. This fix should help reduce cases where
25610       clients declare relays (or worse, bridges) unreachable because
25611       the TLS handshake takes a few seconds to complete. Fixes bug 6743;
25612       bugfix on 0.2.2.2-alpha, where we changed the timeout from a static
25613       30 seconds.
25614     - Authorities no longer include any router in their microdescriptor
25615       consensuses for which they couldn't generate or agree on a
25616       microdescriptor. Fixes the second piece of bug 6404; fix on
25617       0.2.2.6-alpha.
25618     - Detect and reject attempts to specify both "FooPort" and
25619       "FooPort 0" in the same configuration domain. (It's still okay
25620       to have a FooPort in your configuration file, and use "FooPort 0"
25621       on the command line to disable it.) Fixes the second half of bug
25622       6507; bugfix on 0.2.3.3-alpha.
25623     - Make wildcarded addresses (that is, ones beginning with "*.") work
25624       when provided via the controller's MapAddress command. Previously,
25625       they were accepted, but we never actually noticed that they were
25626       wildcards. Fixes bug 6244; bugfix on 0.2.3.9-alpha.
25627     - Avoid crashing on a malformed state file where EntryGuardPathBias
25628       precedes EntryGuard. Fix for bug 6774; bugfix on 0.2.3.17-beta.
25629     - Add a (probably redundant) memory clear between iterations of
25630       the router status voting loop, to prevent future coding errors
25631       where data might leak between iterations of the loop. Resolves
25632       ticket 6514.
25634   o Minor bugfixes (log messages):
25635     - Downgrade "set buildtimeout to low value" messages to "info"
25636       severity; they were never an actual problem, there was never
25637       anything reasonable to do about them, and they tended to spam logs
25638       from time to time. Fixes bug 6251; bugfix on 0.2.2.2-alpha.
25639     - Downgrade path-bias warning messages to "info". We'll try to get
25640       them working better in 0.2.4. Add internal circuit construction
25641       state to protect against the noisy warn message "Unexpectedly high
25642       circuit_successes". Also add some additional rate-limited notice
25643       messages to help determine the root cause of the warn. Fixes bug
25644       6475. Bugfix against 0.2.3.17-beta.
25645     - Move log message when unable to find a microdesc in a routerstatus
25646       entry to parse time. Previously we'd spam this warning every time
25647       we tried to figure out which microdescriptors to download. Fixes
25648       the third piece of bug 6404; fix on 0.2.3.18-rc.
25650   o Minor features:
25651     - Consider new, removed or changed IPv6 OR ports a non-cosmetic
25652       change when the authority is deciding whether to accept a newly
25653       uploaded descriptor. Implements ticket 6423.
25654     - Add missing documentation for consensus and microdesc files.
25655       Resolves ticket 6732.
25658 Changes in version 0.2.2.38 - 2012-08-12
25659   Tor 0.2.2.38 fixes a remotely triggerable crash bug, and fixes a timing
25660   attack that could in theory leak path information.
25662   o Security fixes:
25663     - Avoid an uninitialized memory read when reading a vote or consensus
25664       document that has an unrecognized flavor name. This read could
25665       lead to a remote crash bug. Fixes bug 6530; bugfix on 0.2.2.6-alpha.
25666     - Try to leak less information about what relays a client is
25667       choosing to a side-channel attacker. Previously, a Tor client would
25668       stop iterating through the list of available relays as soon as it
25669       had chosen one, thus finishing a little earlier when it picked
25670       a router earlier in the list. If an attacker can recover this
25671       timing information (nontrivial but not proven to be impossible),
25672       they could learn some coarse-grained information about which relays
25673       a client was picking (middle nodes in particular are likelier to
25674       be affected than exits). The timing attack might be mitigated by
25675       other factors (see bug 6537 for some discussion), but it's best
25676       not to take chances. Fixes bug 6537; bugfix on 0.0.8rc1.
25679 Changes in version 0.2.3.20-rc - 2012-08-05
25680   Tor 0.2.3.20-rc is the third release candidate for the Tor 0.2.3.x
25681   series. It fixes a pair of code security bugs and a potential anonymity
25682   issue, updates our RPM spec files, and cleans up other smaller issues.
25684   o Security fixes:
25685     - Avoid read-from-freed-memory and double-free bugs that could occur
25686       when a DNS request fails while launching it. Fixes bug 6480;
25687       bugfix on 0.2.0.1-alpha.
25688     - Avoid an uninitialized memory read when reading a vote or consensus
25689       document that has an unrecognized flavor name. This read could
25690       lead to a remote crash bug. Fixes bug 6530; bugfix on 0.2.2.6-alpha.
25691     - Try to leak less information about what relays a client is
25692       choosing to a side-channel attacker. Previously, a Tor client would
25693       stop iterating through the list of available relays as soon as it
25694       had chosen one, thus finishing a little earlier when it picked
25695       a router earlier in the list. If an attacker can recover this
25696       timing information (nontrivial but not proven to be impossible),
25697       they could learn some coarse-grained information about which relays
25698       a client was picking (middle nodes in particular are likelier to
25699       be affected than exits). The timing attack might be mitigated by
25700       other factors (see bug 6537 for some discussion), but it's best
25701       not to take chances. Fixes bug 6537; bugfix on 0.0.8rc1.
25703   o Minor features:
25704     - Try to make the warning when giving an obsolete SOCKSListenAddress
25705       a little more useful.
25706     - Terminate active server managed proxies if Tor stops being a
25707       relay. Addresses parts of bug 6274; bugfix on 0.2.3.6-alpha.
25708     - Provide a better error message about possible OSX Asciidoc failure
25709       reasons. Fixes bug 6436.
25710     - Warn when Tor is configured to use accounting in a way that can
25711       link a hidden service to some other hidden service or public
25712       address. Resolves ticket 6490.
25714   o Minor bugfixes:
25715     - Check return value of fputs() when writing authority certificate
25716       file. Fixes Coverity issue 709056; bugfix on 0.2.0.1-alpha.
25717     - Ignore ServerTransportPlugin lines when Tor is not configured as
25718       a relay. Fixes bug 6274; bugfix on 0.2.3.6-alpha.
25719     - When disabling guards for having too high a proportion of failed
25720       circuits, make sure to look at each guard. Fixes bug 6397; bugfix
25721       on 0.2.3.17-beta.
25723   o Packaging (RPM):
25724     - Update our default RPM spec files to work with mock and rpmbuild
25725       on RHEL/Fedora. They have an updated set of dependencies and
25726       conflicts, a fix for an ancient typo when creating the "_tor"
25727       user, and better instructions. Thanks to Ondrej Mikle for the
25728       patch series. Fixes bug 6043.
25730   o Testing:
25731     - Make it possible to set the TestingTorNetwork configuration
25732       option using AlternateDirAuthority and AlternateBridgeAuthority
25733       as an alternative to setting DirServer. Addresses ticket 6377.
25735   o Documentation:
25736     - Clarify the documentation for the Alternate*Authority options.
25737       Fixes bug 6387.
25738     - Fix some typos in the manpages. Patch from A. Costa. Fixes bug 6500.
25740   o Code simplification and refactoring:
25741     - Do not use SMARTLIST_FOREACH for any loop whose body exceeds
25742       10 lines. Also, don't nest them. Doing so in the past has
25743       led to hard-to-debug code. The new style is to use the
25744       SMARTLIST_FOREACH_{BEGIN,END} pair. Addresses issue 6400.
25747 Changes in version 0.2.3.19-rc - 2012-07-06
25748   Tor 0.2.3.19-rc is the second release candidate for the Tor 0.2.3.x
25749   series. It fixes the compile on Windows, reverts to a GeoIP database
25750   that isn't as broken, and fixes a flow control bug that has been around
25751   since the beginning of Tor.
25753   o Major bugfixes:
25754     - Fix a bug handling SENDME cells on nonexistent streams that could
25755       result in bizarre window values. Report and patch contributed
25756       pseudonymously. Fixes part of bug 6271. This bug was introduced
25757       before the first Tor release, in svn commit r152.
25758     - Revert to the May 1 2012 Maxmind GeoLite Country database. In the
25759       June 2012 database, Maxmind marked many Tor relays as country "A1",
25760       which will cause risky behavior for clients that set EntryNodes
25761       or ExitNodes. Addresses bug 6334; bugfix on 0.2.3.17-beta.
25762     - Instead of ENOBUFS on Windows, say WSAENOBUFS. Fixes compilation
25763       on Windows. Fixes bug 6296; bugfix on 0.2.3.18-rc.
25765   o Minor bugfixes:
25766     - Fix wrong TCP port range in parse_port_range(). Fixes bug 6218;
25767       bugfix on 0.2.1.10-alpha.
25770 Changes in version 0.2.3.18-rc - 2012-06-28
25771   Tor 0.2.3.18-rc is the first release candidate for the Tor 0.2.3.x
25772   series. It fixes a few smaller bugs, but generally appears stable.
25773   Please test it and let us know whether it is!
25775   o Major bugfixes:
25776     - Allow wildcarded mapaddress targets to be specified on the
25777       controlport. Partially fixes bug 6244; bugfix on 0.2.3.9-alpha.
25778     - Make our linker option detection code more robust against linkers
25779       such as on FreeBSD 8, where a bad combination of options completes
25780       successfully but makes an unrunnable binary. Fixes bug 6173;
25781       bugfix on 0.2.3.17-beta.
25783   o Minor bugfixes (on 0.2.2.x and earlier):
25784     - Avoid a false positive in the util/threads unit test by increasing
25785       the maximum timeout time. Fixes bug 6227; bugfix on 0.2.0.4-alpha.
25786     - Replace "Sending publish request" log messages with "Launching
25787       upload", so that they no longer confusingly imply that we're
25788       sending something to a directory we might not even be connected
25789       to yet. Fixes bug 3311; bugfix on 0.2.0.10-alpha.
25790     - Make sure to set *socket_error in all error cases in
25791       connection_connect(), so it can't produce a warning about
25792       errno being zero from errno_to_orconn_end_reason(). Bugfix on
25793       0.2.1.1-alpha; resolves ticket 6028.
25794     - Downgrade "Got a certificate, but we already have it" log messages
25795       from warning to info, except when we're a dirauth. Fixes bug 5238;
25796       bugfix on 0.2.1.7-alpha.
25797     - When checking for requested signatures on the latest consensus
25798       before serving it to a client, make sure to check the right
25799       consensus flavor. Bugfix on 0.2.2.6-alpha.
25800     - Downgrade "eventdns rejected address" message to LOG_PROTOCOL_WARN.
25801       Fixes bug 5932; bugfix on 0.2.2.7-alpha.
25803   o Minor bugfixes (on 0.2.3.x):
25804     - Make format_helper_exit_status() avoid unnecessary space padding
25805       and stop confusing log_from_pipe(). Fixes ticket 5557; bugfix
25806       on 0.2.3.1-alpha.
25807     - Downgrade a message about cleaning the microdescriptor cache to
25808       "info" from "notice". Fixes bug 6238; bugfix on 0.2.3.1-alpha.
25809     - Log a BUG message at severity INFO if we have a networkstatus with
25810       a missing entry for some microdescriptor. Continues on a patch
25811       to 0.2.3.2-alpha.
25812     - Improve the log message when a managed proxy fails to launch. Fixes
25813       bug 5099; bugfix on 0.2.3.6-alpha.
25814     - Don't do DNS lookups when parsing corrupted managed proxy protocol
25815       messages. Fixes bug 6226; bugfix on 0.2.3.6-alpha.
25816     - When formatting wildcarded address mappings for the controller,
25817       be sure to include "*." as appropriate. Partially fixes bug 6244;
25818       bugfix on 0.2.3.9-alpha.
25819     - Avoid a warning caused by using strcspn() from glibc with clang 3.0.
25820       Bugfix on 0.2.3.13-alpha.
25821     - Stop logging messages about running with circuit timeout learning
25822       enabled at severity LD_BUG. Fixes bug 6169; bugfix on 0.2.3.17-beta.
25823     - Disable a spurious warning about reading on a marked and flushing
25824       connection. We shouldn't be doing that, but apparently we
25825       sometimes do. Fixes bug 6203; bugfix on 0.2.3.17-beta.
25826     - Fix a bug that stopped AllowDotExit from working on addresses
25827       that had an entry in the DNS cache. Fixes bug 6211; bugfix on
25828       0.2.3.17-beta.
25830   o Code simplification, refactoring, unit tests:
25831     - Move tor_gettimeofday_cached() into compat_libevent.c, and use
25832       Libevent's notion of cached time when possible.
25833     - Remove duplicate code for invoking getrlimit() from control.c.
25834     - Add a unit test for the environment_variable_names_equal function.
25836   o Documentation:
25837     - Document the --defaults-torrc option, and the new (in 0.2.3)
25838       semantics for overriding, extending, and clearing lists of
25839       options. Closes bug 4748.
25842 Changes in version 0.2.3.17-beta - 2012-06-15
25843   Tor 0.2.3.17-beta enables compiler and linker hardening by default,
25844   gets our TLS handshake back on track for being able to blend in with
25845   Firefox, fixes a big bug in 0.2.3.16-alpha that broke Tor's interaction
25846   with Vidalia, and otherwise continues to get us closer to a release
25847   candidate.
25849   o Major features:
25850     - Enable gcc and ld hardening by default. Resolves ticket 5210.
25851     - Update TLS cipher list to match Firefox 8 and later. Resolves
25852       ticket 4744.
25853     - Implement the client side of proposal 198: remove support for
25854       clients falsely claiming to support standard ciphersuites that
25855       they can actually provide. As of modern OpenSSL versions, it's not
25856       necessary to fake any standard ciphersuite, and doing so prevents
25857       us from using better ciphersuites in the future, since servers
25858       can't know whether an advertised ciphersuite is really supported or
25859       not. Some hosts -- notably, ones with very old versions of OpenSSL
25860       or where OpenSSL has been built with ECC disabled -- will stand
25861       out because of this change; TBB users should not be affected.
25863   o Major bugfixes:
25864     - Change the default value for DynamicDHGroups (introduced in
25865       0.2.3.9-alpha) to 0. This feature can make Tor relays less
25866       identifiable by their use of the mod_ssl DH group, but at
25867       the cost of some usability (#4721) and bridge tracing (#6087)
25868       regressions. Resolves ticket 5598.
25869     - Send a CRLF at the end of each STATUS_* control protocol event. This
25870       bug tickled a bug in Vidalia which would make it freeze. Fixes
25871       bug 6094; bugfix on 0.2.3.16-alpha.
25873   o Minor bugfixes:
25874     - Disable writing on marked-for-close connections when they are
25875       blocked on bandwidth, to prevent busy-looping in Libevent. Fixes
25876       bug 5263; bugfix on 0.0.2pre13, where we first added a special
25877       case for flushing marked connections.
25878     - Detect SSL handshake even when the initial attempt to write the
25879       server hello fails. Fixes bug 4592; bugfix on 0.2.0.13-alpha.
25880     - Change the AllowDotExit rules so they should actually work.
25881       We now enforce AllowDotExit only immediately after receiving an
25882       address via SOCKS or DNSPort: other sources are free to provide
25883       .exit addresses after the resolution occurs. Fixes bug 3940;
25884       bugfix on 0.2.2.1-alpha.
25885     - Fix a (harmless) integer overflow in cell statistics reported by
25886       some fast relays. Fixes bug 5849; bugfix on 0.2.2.1-alpha.
25887     - Make sure circuitbuild.c checks LearnCircuitBuildTimeout in all the
25888       right places and never depends on the consensus parameters or
25889       computes adaptive timeouts when it is disabled. Fixes bug 5049;
25890       bugfix on 0.2.2.14-alpha.
25891     - When building Tor on Windows with -DUNICODE (not default), ensure
25892       that error messages, filenames, and DNS server names are always
25893       NUL-terminated when we convert them to a single-byte encoding.
25894       Fixes bug 5909; bugfix on 0.2.2.16-alpha.
25895     - Make Tor build correctly again with -DUNICODE -D_UNICODE defined.
25896       Fixes bug 6097; bugfix on 0.2.2.16-alpha.
25897     - Fix an edge case where TestingTorNetwork is set but the authorities
25898       and relays all have an uptime of zero, where the private Tor network
25899       could briefly lack support for hidden services. Fixes bug 3886;
25900       bugfix on 0.2.2.18-alpha.
25901     - Correct the manpage's descriptions for the default values of
25902       DirReqStatistics and ExtraInfoStatistics. Fixes bug 2865; bugfix
25903       on 0.2.3.1-alpha.
25904     - Fix the documentation for the --hush and --quiet command line
25905       options, which changed their behavior back in 0.2.3.3-alpha.
25906     - Fix compilation warning with clang 3.1. Fixes bug 6141; bugfix on
25907       0.2.3.11-alpha.
25909   o Minor features:
25910     - Rate-limit the "Weighted bandwidth is 0.000000" message, and add
25911       more information to it, so that we can track it down in case it
25912       returns again. Mitigates bug 5235.
25913     - Check CircuitBuildTimeout and LearnCircuitBuildTimeout in
25914       options_validate(); warn if LearnCircuitBuildTimeout is disabled and
25915       CircuitBuildTimeout is set unreasonably low. Resolves ticket 5452.
25916     - Warn the user when HTTPProxy, but no other proxy type, is
25917       configured. This can cause surprising behavior: it doesn't send
25918       all of Tor's traffic over the HTTPProxy -- it sends unencrypted
25919       directory traffic only. Resolves ticket 4663.
25920     - Issue a notice if a guard completes less than 40% of your circuits.
25921       Threshold is configurable by torrc option PathBiasNoticeRate and
25922       consensus parameter pb_noticepct. There is additional, off-by-
25923       default code to disable guards which fail too many circuits.
25924       Addresses ticket 5458.
25925     - Update to the June 6 2012 Maxmind GeoLite Country database.
25927   o Code simplifications and refactoring:
25928     - Remove validate_pluggable_transports_config(): its warning
25929       message is now handled by connection_or_connect().
25932 Changes in version 0.2.2.37 - 2012-06-06
25933   Tor 0.2.2.37 introduces a workaround for a critical renegotiation
25934   bug in OpenSSL 1.0.1 (where 20% of the Tor network can't talk to itself
25935   currently).
25937   o Major bugfixes:
25938     - Work around a bug in OpenSSL that broke renegotiation with TLS
25939       1.1 and TLS 1.2. Without this workaround, all attempts to speak
25940       the v2 Tor connection protocol when both sides were using OpenSSL
25941       1.0.1 would fail. Resolves ticket 6033.
25942     - When waiting for a client to renegotiate, don't allow it to add
25943       any bytes to the input buffer. This fixes a potential DoS issue.
25944       Fixes bugs 5934 and 6007; bugfix on 0.2.0.20-rc.
25945     - Fix an edge case where if we fetch or publish a hidden service
25946       descriptor, we might build a 4-hop circuit and then use that circuit
25947       for exiting afterwards -- even if the new last hop doesn't obey our
25948       ExitNodes config option. Fixes bug 5283; bugfix on 0.2.0.10-alpha.
25950   o Minor bugfixes:
25951     - Fix a build warning with Clang 3.1 related to our use of vasprintf.
25952       Fixes bug 5969. Bugfix on 0.2.2.11-alpha.
25954   o Minor features:
25955     - Tell GCC and Clang to check for any errors in format strings passed
25956       to the tor_v*(print|scan)f functions.
25959 Changes in version 0.2.3.16-alpha - 2012-06-05
25960   Tor 0.2.3.16-alpha introduces a workaround for a critical renegotiation
25961   bug in OpenSSL 1.0.1 (where 20% of the Tor network can't talk to itself
25962   currently). It also fixes a variety of smaller bugs and other cleanups
25963   that get us closer to a release candidate.
25965   o Major bugfixes (general):
25966     - Work around a bug in OpenSSL that broke renegotiation with TLS
25967       1.1 and TLS 1.2. Without this workaround, all attempts to speak
25968       the v2 Tor connection protocol when both sides were using OpenSSL
25969       1.0.1 would fail. Resolves ticket 6033.
25970     - When waiting for a client to renegotiate, don't allow it to add
25971       any bytes to the input buffer. This fixes a potential DoS issue.
25972       Fixes bugs 5934 and 6007; bugfix on 0.2.0.20-rc.
25973     - Pass correct OR address to managed proxies (like obfsproxy),
25974       even when ORListenAddress is used. Fixes bug 4865; bugfix on
25975       0.2.3.9-alpha.
25976     - The advertised platform of a router now includes only its operating
25977       system's name (e.g., "Linux", "Darwin", "Windows 7"), and not its
25978       service pack level (for Windows) or its CPU architecture (for Unix).
25979       We also no longer include the "git-XYZ" tag in the version. Resolves
25980       part of bug 2988.
25982   o Major bugfixes (clients):
25983     - If we are unable to find any exit that supports our predicted ports,
25984       stop calling them predicted, so that we don't loop and build
25985       hopeless circuits indefinitely. Fixes bug 3296; bugfix on 0.0.9pre6,
25986       which introduced predicted ports.
25987     - Fix an edge case where if we fetch or publish a hidden service
25988       descriptor, we might build a 4-hop circuit and then use that circuit
25989       for exiting afterwards -- even if the new last hop doesn't obey our
25990       ExitNodes config option. Fixes bug 5283; bugfix on 0.2.0.10-alpha.
25991     - Check at each new consensus whether our entry guards were picked
25992       long enough ago that we should rotate them. Previously, we only
25993       did this check at startup, which could lead to us holding a guard
25994       indefinitely. Fixes bug 5380; bugfix on 0.2.1.14-rc.
25995     - When fetching a bridge descriptor from a bridge authority,
25996       always do so anonymously, whether we have been able to open
25997       circuits or not. Partial fix for bug 1938; bugfix on 0.2.0.7-alpha.
25998       This behavior makes it *safer* to use UpdateBridgesFromAuthority,
25999       but we'll need to wait for bug 6010 before it's actually usable.
26001   o Major bugfixes (directory authorities):
26002     - When computing weight parameters, behave more robustly in the
26003       presence of a bad bwweightscale value. Previously, the authorities
26004       would crash if they agreed on a sufficiently broken weight_scale
26005       value: now, they use a reasonable default and carry on. Partial
26006       fix for 5786; bugfix on 0.2.2.17-alpha.
26007     - Check more thoroughly to prevent a rogue authority from
26008       double-voting on any consensus directory parameter. Previously,
26009       authorities would crash in this case if the total number of
26010       votes for any parameter exceeded the number of active voters,
26011       but would let it pass otherwise. Partial fix for bug 5786; bugfix
26012       on 0.2.2.2-alpha.
26014   o Minor features:
26015     - Rate-limit log messages when asked to connect anonymously to
26016       a private address. When these hit, they tended to hit fast and
26017       often. Also, don't bother trying to connect to addresses that we
26018       are sure will resolve to 127.0.0.1: getting 127.0.0.1 in a directory
26019       reply makes us think we have been lied to, even when the address the
26020       client tried to connect to was "localhost." Resolves ticket 2822.
26021     - Allow packagers to insert an extra string in server descriptor
26022       platform lines by setting the preprocessor variable TOR_BUILD_TAG.
26023       Resolves the rest of ticket 2988.
26024     - Raise the threshold of server descriptors needed (75%) and exit
26025       server descriptors needed (50%) before we will declare ourselves
26026       bootstrapped. This will make clients start building circuits a
26027       little later, but makes the initially constructed circuits less
26028       skewed and less in conflict with further directory fetches. Fixes
26029       ticket 3196.
26030     - Close any connection that sends unrecognized junk before the
26031       handshake. Solves an issue noted in bug 4369.
26032     - Improve log messages about managed transports. Resolves ticket 5070.
26033     - Tag a bridge's descriptor as "never to be sent unencrypted".
26034       This shouldn't matter, since bridges don't open non-anonymous
26035       connections to the bridge authority and don't allow unencrypted
26036       directory connections from clients, but we might as well make
26037       sure. Closes bug 5139.
26038     - Expose our view of whether we have gone dormant to the controller,
26039       via a new "GETINFO dormant" value. Torbutton and other controllers
26040       can use this to avoid doing periodic requests through Tor while
26041       it's dormant (bug 4718). Fixes bug 5954.
26042     - Tell GCC and Clang to check for any errors in format strings passed
26043       to the tor_v*(print|scan)f functions.
26044     - Update to the May 1 2012 Maxmind GeoLite Country database.
26046   o Minor bugfixes (already included in 0.2.2.36):
26047     - Reject out-of-range times like 23:59:61 in parse_rfc1123_time().
26048       Fixes bug 5346; bugfix on 0.0.8pre3.
26049     - Correct parsing of certain date types in parse_http_time().
26050       Without this patch, If-Modified-Since would behave
26051       incorrectly. Fixes bug 5346; bugfix on 0.2.0.2-alpha. Patch from
26052       Esteban Manchado Velázques.
26053     - Make our number-parsing functions always treat too-large values
26054       as an error, even when those values exceed the width of the
26055       underlying type. Previously, if the caller provided these
26056       functions with minima or maxima set to the extreme values of the
26057       underlying integer type, these functions would return those
26058       values on overflow rather than treating overflow as an error.
26059       Fixes part of bug 5786; bugfix on 0.0.9.
26060     - If we hit the error case where routerlist_insert() replaces an
26061       existing (old) server descriptor, make sure to remove that
26062       server descriptor from the old_routers list. Fix related to bug
26063       1776. Bugfix on 0.2.2.18-alpha.
26064     - Clarify the behavior of MaxCircuitDirtiness with hidden service
26065       circuits. Fixes issue 5259.
26067   o Minor bugfixes (coding cleanup, on 0.2.2.x and earlier):
26068     - Prevent a null-pointer dereference when receiving a data cell
26069       for a nonexistent stream when the circuit in question has an
26070       empty deliver window. We don't believe this is triggerable,
26071       since we don't currently allow deliver windows to become empty,
26072       but the logic is tricky enough that it's better to make the code
26073       robust. Fixes bug 5541; bugfix on 0.0.2pre14.
26074     - Fix a memory leak when trying to launch a DNS request when the
26075       network is disabled or the nameservers are unconfigurable. Fixes
26076       bug 5916; bugfix on Tor 0.1.2.1-alpha (for the unconfigurable
26077       nameserver case) and on 0.2.3.9-alpha (for the DisableNetwork case).
26078     - Don't hold a Windows file handle open for every file mapping;
26079       the file mapping handle is sufficient. Fixes bug 5951; bugfix on
26080       0.1.2.1-alpha.
26081     - Avoid O(n^2) performance characteristics when parsing a large
26082       extrainfo cache. Fixes bug 5828; bugfix on 0.2.0.1-alpha.
26083     - Format more doubles with %f, not %lf. Patch from grarpamp to make
26084       Tor build correctly on older BSDs again. Fixes bug 3894; bugfix on
26085       Tor 0.2.0.8-alpha.
26086     - Make our replacement implementation of strtok_r() compatible with
26087       the standard behavior of strtok_r(). Patch by nils. Fixes bug 5091;
26088       bugfix on 0.2.2.1-alpha.
26089     - Fix a NULL-pointer dereference on a badly formed
26090       SETCIRCUITPURPOSE command. Found by mikeyc. Fixes bug 5796;
26091       bugfix on 0.2.2.9-alpha.
26092     - Fix a build warning with Clang 3.1 related to our use of vasprintf.
26093       Fixes bug 5969. Bugfix on 0.2.2.11-alpha.
26094     - Defensively refactor rend_mid_rendezvous() so that protocol
26095       violations and length checks happen in the beginning. Fixes
26096       bug 5645.
26097     - Set _WIN32_WINNT to 0x0501 consistently throughout the code, so
26098       that IPv6 stuff will compile on MSVC, and compilation issues
26099       will be easier to track down. Fixes bug 5861.
26101   o Minor bugfixes (correctness, on 0.2.2.x and earlier):
26102     - Exit nodes now correctly report EADDRINUSE and EADDRNOTAVAIL as
26103       resource exhaustion, so that clients can adjust their load to
26104       try other exits. Fixes bug 4710; bugfix on 0.1.0.1-rc, which
26105       started using END_STREAM_REASON_RESOURCELIMIT.
26106     - Don't check for whether the address we're using for outbound
26107       connections has changed until after the outbound connection has
26108       completed. On Windows, getsockname() doesn't succeed until the
26109       connection is finished. Fixes bug 5374; bugfix on 0.1.1.14-alpha.
26110     - If the configuration tries to set MyFamily on a bridge, refuse to
26111       do so, and warn about the security implications. Fixes bug 4657;
26112       bugfix on 0.2.0.3-alpha.
26113     - If the client fails to set a reasonable set of ciphersuites
26114       during its v2 handshake renegotiation, allow the renegotiation to
26115       continue nevertheless (i.e. send all the required certificates).
26116       Fixes bug 4591; bugfix on 0.2.0.20-rc.
26117     - When we receive a SIGHUP and the controller __ReloadTorrcOnSIGHUP
26118       option is set to 0 (which Vidalia version 0.2.16 now does when
26119       a SAVECONF attempt fails), perform other actions that SIGHUP
26120       usually causes (like reopening the logs). Fixes bug 5095; bugfix
26121       on 0.2.1.9-alpha.
26122     - If we fail to write a microdescriptor to the disk cache, do not
26123       continue replacing the old microdescriptor file. Fixes bug 2954;
26124       bugfix on 0.2.2.6-alpha.
26125     - Exit nodes don't need to fetch certificates for authorities that
26126       they don't recognize; only directory authorities, bridges,
26127       and caches need to do that. Fixes part of bug 2297; bugfix on
26128       0.2.2.11-alpha.
26129     - Correctly handle checking the permissions on the parent
26130       directory of a control socket in the root directory. Bug found
26131       by Esteban Manchado Velázquez. Fixes bug 5089; bugfix on Tor
26132       0.2.2.26-beta.
26133     - When told to add a bridge with the same digest as a preexisting
26134       bridge but a different addr:port, change the addr:port as
26135       requested. Previously we would not notice the change. Fixes half
26136       of bug 5603; fix on 0.2.2.26-beta.
26137     - End AUTHCHALLENGE error messages (in the control protocol) with
26138       a CRLF. Fixes bug 5760; bugfix on 0.2.2.36 and 0.2.3.13-alpha.
26140   o Minor bugfixes (on 0.2.3.x):
26141     - Turn an assertion (that the number of handshakes received as a
26142       server is not < 1) into a warning. Fixes bug 4873; bugfix on
26143       0.2.3.1-alpha.
26144     - Format IPv4 addresses correctly in ADDRMAP events. (Previously,
26145       we had reversed them when the answer was cached.) Fixes bug
26146       5723; bugfix on 0.2.3.1-alpha.
26147     - Work correctly on Linux systems with accept4 support advertised in
26148       their headers, but without accept4 support in the kernel. Fix
26149       by murb. Fixes bug 5762; bugfix on 0.2.3.1-alpha.
26150     - When told to add a bridge with the same addr:port as a preexisting
26151       bridge but a different transport, change the transport as
26152       requested. Previously we would not notice the change. Fixes half
26153       of bug 5603; fix on 0.2.3.2-alpha.
26154     - Avoid a "double-reply" warning when replying to a SOCKS request
26155       with a parse error. Patch from Fabian Keil. Fixes bug 4108;
26156       bugfix on 0.2.3.4-alpha.
26157     - Fix a bug where a bridge authority crashes if it has seen no
26158       directory requests when it's time to write statistics to disk.
26159       Fixes bug 5891; bugfix on 0.2.3.6-alpha. Also fixes bug 5508 in
26160       a better way.
26161     - Don't try to open non-control listeners when DisableNetwork is set.
26162       Previously, we'd open all listeners, then immediately close them.
26163       Fixes bug 5604; bugfix on 0.2.3.9-alpha.
26164     - Don't abort the managed proxy protocol if the managed proxy
26165       sends us an unrecognized line; ignore it instead. Fixes bug
26166       5910; bugfix on 0.2.3.9-alpha.
26167     - Fix a compile warning in crypto.c when compiling with clang 3.1.
26168       Fixes bug 5969, bugfix on 0.2.3.9-alpha.
26169     - Fix a compilation issue on GNU Hurd, which doesn't have PATH_MAX.
26170       Fixes bug 5355; bugfix on 0.2.3.11-alpha.
26171     - Remove bogus definition of "_WIN32" from src/win32/orconfig.h, to
26172       unbreak the MSVC build. Fixes bug 5858; bugfix on 0.2.3.12-alpha.
26173     - Resolve numerous small warnings and build issues with MSVC. Resolves
26174       bug 5859.
26176   o Documentation fixes:
26177     - Improve the manual's documentation for the NT Service command-line
26178       options. Addresses ticket 3964.
26179     - Clarify SessionGroup documentation slightly; resolves ticket 5437.
26180     - Document the changes to the ORPort and DirPort options, and the
26181       fact that {OR/Dir}ListenAddress is now unnecessary (and
26182       therefore deprecated). Resolves ticket 5597.
26184   o Removed files:
26185     - Remove the torrc.bridge file: we don't use it for anything, and
26186       it had become badly desynchronized from torrc.sample. Resolves
26187       bug 5622.
26190 Changes in version 0.2.2.36 - 2012-05-24
26191   Tor 0.2.2.36 updates the addresses for two of the eight directory
26192   authorities, fixes some potential anonymity and security issues,
26193   and fixes several crash bugs.
26195   Tor 0.2.1.x has reached its end-of-life. Those Tor versions have many
26196   known flaws, and nobody should be using them. You should upgrade. If
26197   you're using a Linux or BSD and its packages are obsolete, stop using
26198   those packages and upgrade anyway.
26200   o Directory authority changes:
26201     - Change IP address for maatuska (v3 directory authority).
26202     - Change IP address for ides (v3 directory authority), and rename
26203       it to turtles.
26205   o Security fixes:
26206     - When building or running with any version of OpenSSL earlier
26207       than 0.9.8s or 1.0.0f, disable SSLv3 support. These OpenSSL
26208       versions have a bug (CVE-2011-4576) in which their block cipher
26209       padding includes uninitialized data, potentially leaking sensitive
26210       information to any peer with whom they make a SSLv3 connection. Tor
26211       does not use SSL v3 by default, but a hostile client or server
26212       could force an SSLv3 connection in order to gain information that
26213       they shouldn't have been able to get. The best solution here is to
26214       upgrade to OpenSSL 0.9.8s or 1.0.0f (or later). But when building
26215       or running with a non-upgraded OpenSSL, we disable SSLv3 entirely
26216       to make sure that the bug can't happen.
26217     - Never use a bridge or a controller-supplied node as an exit, even
26218       if its exit policy allows it. Found by wanoskarnet. Fixes bug
26219       5342. Bugfix on 0.1.1.15-rc (for controller-purpose descriptors)
26220       and 0.2.0.3-alpha (for bridge-purpose descriptors).
26221     - Only build circuits if we have a sufficient threshold of the total
26222       descriptors that are marked in the consensus with the "Exit"
26223       flag. This mitigates an attack proposed by wanoskarnet, in which
26224       all of a client's bridges collude to restrict the exit nodes that
26225       the client knows about. Fixes bug 5343.
26226     - Provide controllers with a safer way to implement the cookie
26227       authentication mechanism. With the old method, if another locally
26228       running program could convince a controller that it was the Tor
26229       process, then that program could trick the controller into telling
26230       it the contents of an arbitrary 32-byte file. The new "SAFECOOKIE"
26231       authentication method uses a challenge-response approach to prevent
26232       this attack. Fixes bug 5185; implements proposal 193.
26234   o Major bugfixes:
26235     - Avoid logging uninitialized data when unable to decode a hidden
26236       service descriptor cookie. Fixes bug 5647; bugfix on 0.2.1.5-alpha.
26237     - Avoid a client-side assertion failure when receiving an INTRODUCE2
26238       cell on a general purpose circuit. Fixes bug 5644; bugfix on
26239       0.2.1.6-alpha.
26240     - Fix builds when the path to sed, openssl, or sha1sum contains
26241       spaces, which is pretty common on Windows. Fixes bug 5065; bugfix
26242       on 0.2.2.1-alpha.
26243     - Correct our replacements for the timeradd() and timersub() functions
26244       on platforms that lack them (for example, Windows). The timersub()
26245       function is used when expiring circuits, while timeradd() is
26246       currently unused. Bug report and patch by Vektor. Fixes bug 4778;
26247       bugfix on 0.2.2.24-alpha.
26248     - Fix the SOCKET_OK test that we use to tell when socket
26249       creation fails so that it works on Win64. Fixes part of bug 4533;
26250       bugfix on 0.2.2.29-beta. Bug found by wanoskarnet.
26252   o Minor bugfixes:
26253     - Reject out-of-range times like 23:59:61 in parse_rfc1123_time().
26254       Fixes bug 5346; bugfix on 0.0.8pre3.
26255     - Make our number-parsing functions always treat too-large values
26256       as an error, even when those values exceed the width of the
26257       underlying type. Previously, if the caller provided these
26258       functions with minima or maxima set to the extreme values of the
26259       underlying integer type, these functions would return those
26260       values on overflow rather than treating overflow as an error.
26261       Fixes part of bug 5786; bugfix on 0.0.9.
26262     - Older Linux kernels erroneously respond to strange nmap behavior
26263       by having accept() return successfully with a zero-length
26264       socket. When this happens, just close the connection. Previously,
26265       we would try harder to learn the remote address: but there was
26266       no such remote address to learn, and our method for trying to
26267       learn it was incorrect. Fixes bugs 1240, 4745, and 4747. Bugfix
26268       on 0.1.0.3-rc. Reported and diagnosed by "r1eo".
26269     - Correct parsing of certain date types in parse_http_time().
26270       Without this patch, If-Modified-Since would behave
26271       incorrectly. Fixes bug 5346; bugfix on 0.2.0.2-alpha. Patch from
26272       Esteban Manchado Velázques.
26273     - Change the BridgePassword feature (part of the "bridge community"
26274       design, which is not yet implemented) to use a time-independent
26275       comparison. The old behavior might have allowed an adversary
26276       to use timing to guess the BridgePassword value. Fixes bug 5543;
26277       bugfix on 0.2.0.14-alpha.
26278     - Detect and reject certain misformed escape sequences in
26279       configuration values. Previously, these values would cause us
26280       to crash if received in a torrc file or over an authenticated
26281       control port. Bug found by Esteban Manchado Velázquez, and
26282       independently by Robert Connolly from Matta Consulting who further
26283       noted that it allows a post-authentication heap overflow. Patch
26284       by Alexander Schrijver. Fixes bugs 5090 and 5402 (CVE 2012-1668);
26285       bugfix on 0.2.0.16-alpha.
26286     - Fix a compile warning when using the --enable-openbsd-malloc
26287       configure option. Fixes bug 5340; bugfix on 0.2.0.20-rc.
26288     - During configure, detect when we're building with clang version
26289       3.0 or lower and disable the -Wnormalized=id and -Woverride-init
26290       CFLAGS. clang doesn't support them yet.
26291     - When sending an HTTP/1.1 proxy request, include a Host header.
26292       Fixes bug 5593; bugfix on 0.2.2.1-alpha.
26293     - Fix a NULL-pointer dereference on a badly formed SETCIRCUITPURPOSE
26294       command. Found by mikeyc. Fixes bug 5796; bugfix on 0.2.2.9-alpha.
26295     - If we hit the error case where routerlist_insert() replaces an
26296       existing (old) server descriptor, make sure to remove that
26297       server descriptor from the old_routers list. Fix related to bug
26298       1776. Bugfix on 0.2.2.18-alpha.
26300   o Minor bugfixes (documentation and log messages):
26301     - Fix a typo in a log message in rend_service_rendezvous_has_opened().
26302       Fixes bug 4856; bugfix on Tor 0.0.6.
26303     - Update "ClientOnly" man page entry to explain that there isn't
26304       really any point to messing with it. Resolves ticket 5005.
26305     - Document the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays
26306       directory authority option (introduced in Tor 0.2.2.34).
26307     - Downgrade the "We're missing a certificate" message from notice
26308       to info: people kept mistaking it for a real problem, whereas it
26309       is seldom the problem even when we are failing to bootstrap. Fixes
26310       bug 5067; bugfix on 0.2.0.10-alpha.
26311     - Correctly spell "connect" in a log message on failure to create a
26312       controlsocket. Fixes bug 4803; bugfix on 0.2.2.26-beta.
26313     - Clarify the behavior of MaxCircuitDirtiness with hidden service
26314       circuits. Fixes issue 5259.
26316   o Minor features:
26317     - Directory authorities now reject versions of Tor older than
26318       0.2.1.30, and Tor versions between 0.2.2.1-alpha and 0.2.2.20-alpha
26319       inclusive. These versions accounted for only a small fraction of
26320       the Tor network, and have numerous known security issues. Resolves
26321       issue 4788.
26322     - Update to the May 1 2012 Maxmind GeoLite Country database.
26324   o Feature removal:
26325     - When sending or relaying a RELAY_EARLY cell, we used to convert
26326       it to a RELAY cell if the connection was using the v1 link
26327       protocol. This was a workaround for older versions of Tor, which
26328       didn't handle RELAY_EARLY cells properly. Now that all supported
26329       versions can handle RELAY_EARLY cells, and now that we're enforcing
26330       the "no RELAY_EXTEND commands except in RELAY_EARLY cells" rule,
26331       remove this workaround. Addresses bug 4786.
26334 Changes in version 0.2.3.15-alpha - 2012-04-30
26335   Tor 0.2.3.15-alpha fixes a variety of smaller bugs, including making
26336   the development branch build on Windows again.
26338   o Minor bugfixes (on 0.2.2.x and earlier):
26339     - Make sure that there are no unhandled pending TLS errors before
26340       reading from a TLS stream. We had checks in 0.1.0.3-rc, but
26341       lost them in 0.1.0.5-rc when we refactored read_to_buf_tls().
26342       Bugfix on 0.1.0.5-rc; fixes bug 4528.
26343     - Fix an assert that directory authorities could trigger on sighup
26344       during some configuration state transitions. We now don't treat
26345       it as a fatal error when the new descriptor we just generated in
26346       init_keys() isn't accepted. Fixes bug 4438; bugfix on 0.2.1.9-alpha.
26347     - After we pick a directory mirror, we would refuse to use it if
26348       it's in our ExcludeExitNodes list, resulting in mysterious failures
26349       to bootstrap for people who just wanted to avoid exiting from
26350       certain locations. Fixes bug 5623; bugfix on 0.2.2.25-alpha.
26351     - When building with --enable-static-tor on OpenBSD, do not
26352       erroneously attempt to link -lrt. Fixes bug 5103.
26354   o Minor bugfixes (on 0.2.3.x):
26355     - When Tor is built with kernel headers from a recent (last few
26356       years) Linux kernel, do not fail to run on older (pre-2.6.28
26357       Linux kernels). Fixes bug 5112; bugfix on 0.2.3.1-alpha.
26358     - Fix cross-compilation issues with mingw. Bugfixes on 0.2.3.6-alpha
26359       and 0.2.3.12-alpha.
26360     - Fix compilation with miniupnpc version 1.6; patch from
26361       Anthony G. Basile. Fixes bug 5434; bugfix on 0.2.3.12-alpha.
26362     - Fix compilation with MSVC, which had defined MS_WINDOWS. Bugfix
26363       on 0.2.3.13-alpha; found and fixed by Gisle Vanem.
26364     - Fix compilation on platforms without unistd.h, or where environ
26365       is defined in stdlib.h. Fixes bug 5704; bugfix on 0.2.3.13-alpha.
26367   o Minor features:
26368     - Directory authorities are now a little more lenient at accepting
26369       older router descriptors, or newer router descriptors that don't
26370       make big changes. This should help ameliorate past and future
26371       issues where routers think they have uploaded valid descriptors,
26372       but the authorities don't think so. Fix for ticket 2479.
26373     - Make the code that clients use to detect an address change be
26374       IPv6-aware, so that it won't fill clients' logs with error
26375       messages when trying to get the IPv4 address of an IPv6
26376       connection. Implements ticket 5537.
26378   o Removed features:
26379     - Remove the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays option;
26380       authorities needed to use it for a while to keep the network working
26381       as people upgraded to 0.2.1.31, 0.2.2.34, or 0.2.3.6-alpha, but
26382       that was six months ago. As of now, it should no longer be needed
26383       or used.
26386 Changes in version 0.2.3.14-alpha - 2012-04-23
26387   Tor 0.2.3.14-alpha fixes yet more bugs to get us closer to a release
26388   candidate. It also dramatically speeds up AES: fast relays should
26389   consider switching to the newer OpenSSL library.
26391   o Directory authority changes:
26392     - Change IP address for ides (v3 directory authority), and rename
26393       it to turtles.
26395   o Major bugfixes:
26396     - Avoid logging uninitialized data when unable to decode a hidden
26397       service descriptor cookie. Fixes bug 5647; bugfix on 0.2.1.5-alpha.
26398     - Avoid a client-side assertion failure when receiving an INTRODUCE2
26399       cell on a general purpose circuit. Fixes bug 5644; bugfix on
26400       0.2.1.6-alpha.
26401     - If authorities are unable to get a v2 consensus document from other
26402       directory authorities, they no longer fall back to fetching
26403       them from regular directory caches. Fixes bug 5635; bugfix on
26404       0.2.2.26-beta, where routers stopped downloading v2 consensus
26405       documents entirely.
26406     - When we start a Tor client with a normal consensus already cached,
26407       be willing to download a microdescriptor consensus. Fixes bug 4011;
26408       fix on 0.2.3.1-alpha.
26410   o Major features (performance):
26411     - When built to use OpenSSL 1.0.1, and built for an x86 or x86_64
26412       instruction set, take advantage of OpenSSL's AESNI, bitsliced, or
26413       vectorized AES implementations as appropriate. These can be much,
26414       much faster than other AES implementations.
26416   o Minor bugfixes (0.2.2.x and earlier):
26417     - Don't launch more than 10 service-side introduction-point circuits
26418       for a hidden service in five minutes. Previously, we would consider
26419       launching more introduction-point circuits if at least one second
26420       had passed without any introduction-point circuits failing. Fixes
26421       bug 4607; bugfix on 0.0.7pre1.
26422     - Change the BridgePassword feature (part of the "bridge community"
26423       design, which is not yet implemented) to use a time-independent
26424       comparison. The old behavior might have allowed an adversary
26425       to use timing to guess the BridgePassword value. Fixes bug 5543;
26426       bugfix on 0.2.0.14-alpha.
26427     - Enforce correct return behavior of tor_vsscanf() when the '%%'
26428       pattern is used. Fixes bug 5558. Bugfix on 0.2.1.13.
26429     - When sending an HTTP/1.1 proxy request, include a Host header.
26430       Fixes bug 5593; bugfix on 0.2.2.1-alpha.
26431     - Don't log that we have "decided to publish new relay descriptor"
26432       unless we are actually publishing a descriptor. Fixes bug 3942;
26433       bugfix on 0.2.2.28-beta.
26435   o Minor bugfixes (0.2.3.x):
26436     - Fix a bug where a bridge authority crashes (on a failed assert)
26437       if it has seen no directory requests when it's time to write
26438       statistics to disk. Fixes bug 5508. Bugfix on 0.2.3.6-alpha.
26439     - Fix bug stomping on ORPort option NoListen and ignoring option
26440       NoAdvertise. Fixes bug 5151; bugfix on 0.2.3.9-alpha.
26441     - In the testsuite, provide a large enough buffer in the tor_sscanf
26442       unit test. Otherwise we'd overrun that buffer and crash during
26443       the unit tests. Found by weasel. Fixes bug 5449; bugfix on
26444       0.2.3.12-alpha.
26445     - Make sure we create the keys directory if it doesn't exist and we're
26446       about to store the dynamic Diffie-Hellman parameters. Fixes bug
26447       5572; bugfix on 0.2.3.13-alpha.
26448     - Fix a small memory leak when trying to decode incorrect base16
26449       authenticator during SAFECOOKIE authentication. Found by
26450       Coverity Scan. Fixes CID 507. Bugfix on 0.2.3.13-alpha.
26452   o Minor features:
26453     - Add more information to a log statement that might help track down
26454       bug 4091. If you're seeing "Bug: tor_addr_is_internal() called with a
26455       non-IP address" messages (or any Bug messages, for that matter!),
26456       please let us know about it.
26457     - Relays now understand an IPv6 address when they get one from a
26458       directory server. Resolves ticket 4875.
26459     - Resolve IPv6 addresses in bridge and entry statistics to country
26460       code "??" which means we at least count them. Resolves ticket 5053;
26461       improves on 0.2.3.9-alpha.
26462     - Update to the April 3 2012 Maxmind GeoLite Country database.
26463     - Begin a doc/state-contents.txt file to explain the contents of
26464       the Tor state file. Fixes bug 2987.
26466   o Default torrc changes:
26467     - Stop listing "socksport 9050" in torrc.sample. We open a socks
26468       port on 9050 by default anyway, so this should not change anything
26469       in practice.
26470     - Stop mentioning the deprecated *ListenAddress options in
26471       torrc.sample. Fixes bug 5438.
26472     - Document unit of bandwidth related options in sample torrc.
26473       Fixes bug 5621.
26475   o Removed features:
26476     - The "torify" script no longer supports the "tsocks" socksifier
26477       tool, since tsocks doesn't support DNS and UDP right for Tor.
26478       Everyone should be using torsocks instead. Fixes bugs 3530 and
26479       5180. Based on a patch by "ugh".
26481   o Code refactoring:
26482     - Change the symmetric cipher interface so that creating and
26483       initializing a stream cipher are no longer separate functions.
26484     - Remove all internal support for unpadded RSA. We never used it, and
26485       it would be a bad idea to start.
26488 Changes in version 0.2.3.13-alpha - 2012-03-26
26489   Tor 0.2.3.13-alpha fixes a variety of stability and correctness bugs
26490   in managed pluggable transports, as well as providing other cleanups
26491   that get us closer to a release candidate.
26493   o Directory authority changes:
26494     - Change IP address for maatuska (v3 directory authority).
26496   o Security fixes:
26497     - Provide controllers with a safer way to implement the cookie
26498       authentication mechanism. With the old method, if another locally
26499       running program could convince a controller that it was the Tor
26500       process, then that program could trick the controller into telling
26501       it the contents of an arbitrary 32-byte file. The new "SAFECOOKIE"
26502       authentication method uses a challenge-response approach to prevent
26503       this attack. Fixes bug 5185, implements proposal 193.
26504     - Never use a bridge or a controller-supplied node as an exit, even
26505       if its exit policy allows it. Found by wanoskarnet. Fixes bug
26506       5342. Bugfix on 0.1.1.15-rc (for controller-purpose descriptors)
26507       and 0.2.0.3-alpha (for bridge-purpose descriptors).
26508     - Only build circuits if we have a sufficient threshold of the total
26509       descriptors that are marked in the consensus with the "Exit"
26510       flag. This mitigates an attack proposed by wanoskarnet, in which
26511       all of a client's bridges collude to restrict the exit nodes that
26512       the client knows about. Fixes bug 5343.
26514   o Major bugfixes (on Tor 0.2.3.x):
26515     - Avoid an assert when managed proxies like obfsproxy are configured,
26516       and we receive HUP signals or setconf attempts too rapidly. This
26517       situation happens most commonly when Vidalia tries to attach to
26518       Tor or tries to configure the Tor it's attached to. Fixes bug 5084;
26519       bugfix on 0.2.3.6-alpha.
26520     - Fix a relay-side pluggable transports bug where managed proxies were
26521       unreachable from the Internet, because Tor asked them to bind on
26522       localhost. Fixes bug 4725; bugfix on 0.2.3.9-alpha.
26523     - Stop discarding command-line arguments when TestingTorNetwork
26524       is set. Discovered by Kevin Bauer. Fixes bug 5373; bugfix on
26525       0.2.3.9-alpha, where task 4552 added support for two layers of
26526       torrc files.
26527     - Resume allowing the unit tests to run in gdb. This was accidentally
26528       made impossible when the DisableDebuggerAttachment option was
26529       introduced. Fixes bug 5448; bugfix on 0.2.3.9-alpha.
26530     - Resume building with nat-pmp support. Fixes bug 4955; bugfix on
26531       0.2.3.11-alpha. Reported by Anthony G. Basile.
26533   o Minor bugfixes (on 0.2.2.x and earlier):
26534     - Ensure we don't cannibalize circuits that are longer than three hops
26535       already, so we don't end up making circuits with 5 or more
26536       hops. Patch contributed by wanoskarnet. Fixes bug 5231; bugfix on
26537       0.1.0.1-rc which introduced cannibalization.
26538     - Detect and reject certain misformed escape sequences in
26539       configuration values. Previously, these values would cause us
26540       to crash if received in a torrc file or over an authenticated
26541       control port. Bug found by Esteban Manchado Velázquez, and
26542       independently by Robert Connolly from Matta Consulting who further
26543       noted that it allows a post-authentication heap overflow. Patch
26544       by Alexander Schrijver. Fixes bugs 5090 and 5402 (CVE 2012-1668);
26545       bugfix on 0.2.0.16-alpha.
26546     - Fix a compile warning when using the --enable-openbsd-malloc
26547       configure option. Fixes bug 5340; bugfix on 0.2.0.20-rc.
26548     - Directory caches no longer refuse to clean out descriptors because
26549       of missing v2 networkstatus documents, unless they're configured
26550       to retrieve v2 networkstatus documents. Fixes bug 4838; bugfix on
26551       0.2.2.26-beta. Patch by Daniel Bryg.
26552     - Update to the latest version of the tinytest unit testing framework.
26553       This includes a couple of bugfixes that can be relevant for
26554       running forked unit tests on Windows, and removes all reserved
26555       identifiers.
26557   o Minor bugfixes (on 0.2.3.x):
26558     - On a failed pipe() call, don't leak file descriptors. Fixes bug
26559       4296; bugfix on 0.2.3.1-alpha.
26560     - Spec conformance: on a v3 handshake, do not send a NETINFO cell
26561       until after we have received a CERTS cell. Fixes bug 4361; bugfix
26562       on 0.2.3.6-alpha. Patch by "frosty".
26563     - When binding to an IPv6 address, set the IPV6_V6ONLY socket
26564       option, so that the IP stack doesn't decide to use it for IPv4
26565       too. Fixes bug 4760; bugfix on 0.2.3.9-alpha.
26566     - Ensure that variables set in Tor's environment cannot override
26567       environment variables that Tor passes to a managed
26568       pluggable-transport proxy. Previously, Tor would pass every
26569       variable in its environment to managed proxies along with the new
26570       ones, in such a way that on many operating systems, the inherited
26571       environment variables would override those which Tor tried to
26572       explicitly set. Bugfix on 0.2.3.12-alpha for most Unixoid systems;
26573       bugfix on 0.2.3.9-alpha for Windows.
26575   o Minor features:
26576     - A wide variety of new unit tests by Esteban Manchado Velázquez.
26577     - Shorten links in the tor-exit-notice file. Patch by Christian Kujau.
26578     - Update to the March 6 2012 Maxmind GeoLite Country database.
26581 Changes in version 0.2.3.12-alpha - 2012-02-13
26582   Tor 0.2.3.12-alpha lets fast exit relays scale better, allows clients
26583   to use bridges that run Tor 0.2.2.x, and resolves several big bugs
26584   when Tor is configured to use a pluggable transport like obfsproxy.
26586   o Major bugfixes:
26587     - Fix builds when the path to sed, openssl, or sha1sum contains
26588       spaces, which is pretty common on Windows. Fixes bug 5065; bugfix
26589       on 0.2.2.1-alpha.
26590     - Set the SO_REUSEADDR socket option before we call bind() on outgoing
26591       connections. This change should allow busy exit relays to stop
26592       running out of available sockets as quickly. Fixes bug 4950;
26593       bugfix on 0.2.2.26-beta.
26594     - Allow 0.2.3.x clients to use 0.2.2.x bridges. Previously the client
26595       would ask the bridge for microdescriptors, which are only supported
26596       in 0.2.3.x, and then fail to bootstrap when it didn't get the
26597       answers it wanted. Fixes bug 4013; bugfix on 0.2.3.2-alpha.
26598     - Properly set up obfsproxy's environment when in managed mode. The
26599       Tor Browser Bundle needs LD_LIBRARY_PATH to be passed to obfsproxy,
26600       and when you run your Tor as a daemon, there's no HOME. Fixes bugs
26601       5076 and 5082; bugfix on 0.2.3.6-alpha.
26603   o Minor features:
26604     - Use the dead_strip option when building Tor on OS X. This reduces
26605       binary size by almost 19% when linking openssl and libevent
26606       statically, which we do for Tor Browser Bundle.
26607     - Fix broken URLs in the sample torrc file, and tell readers about
26608       the OutboundBindAddress, ExitPolicyRejectPrivate, and
26609       PublishServerDescriptor options. Addresses bug 4652.
26610     - Update to the February 7 2012 Maxmind GeoLite Country database.
26612   o Minor bugfixes:
26613     - Downgrade the "We're missing a certificate" message from notice
26614       to info: people kept mistaking it for a real problem, whereas it
26615       is seldom the problem even when we are failing to bootstrap. Fixes
26616       bug 5067; bugfix on 0.2.0.10-alpha.
26617     - Don't put "TOR_PT_EXTENDED_SERVER_PORT=127.0.0.1:4200" in a
26618       managed pluggable transport server proxy's environment.
26619       Previously, we would put it there, even though Tor doesn't
26620       implement an 'extended server port' yet, and even though Tor
26621       almost certainly isn't listening at that address. For now, we set
26622       it to an empty string to avoid crashing older obfsproxies. Bugfix
26623       on 0.2.3.6-alpha.
26624     - Log the heartbeat message every HeartbeatPeriod seconds, not every
26625       HeartbeatPeriod + 1 seconds. Fixes bug 4942; bugfix on
26626       0.2.3.1-alpha. Bug reported by Scott Bennett.
26627     - Calculate absolute paths correctly on Windows. Fixes bug 4973;
26628       bugfix on 0.2.3.11-alpha.
26629     - Update "ClientOnly" man page entry to explain that there isn't
26630       really any point to messing with it. Resolves ticket 5005.
26631     - Use the correct CVE number for CVE-2011-4576 in our comments and
26632       log messages. Found by "fermenthor". Resolves bug 5066; bugfix on
26633       0.2.3.11-alpha.
26635   o Code simplifications and refactoring:
26636     - Use the _WIN32 macro throughout our code to detect Windows.
26637       (Previously we had used the obsolete 'WIN32' and the idiosyncratic
26638       'MS_WINDOWS'.)
26641 Changes in version 0.2.3.11-alpha - 2012-01-22
26642   Tor 0.2.3.11-alpha marks feature-freeze for the 0.2.3 tree. It deploys
26643   the last step of the plan to limit maximum circuit length, includes
26644   a wide variety of hidden service performance and correctness fixes,
26645   works around an OpenSSL security flaw if your distro is too stubborn
26646   to upgrade, and fixes a bunch of smaller issues.
26648   o Major features:
26649     - Now that Tor 0.2.0.x is completely deprecated, enable the final
26650       part of "Proposal 110: Avoiding infinite length circuits" by
26651       refusing all circuit-extend requests that do not use a relay_early
26652       cell. This change helps Tor resist a class of denial-of-service
26653       attacks by limiting the maximum circuit length.
26654     - Adjust the number of introduction points that a hidden service
26655       will try to maintain based on how long its introduction points
26656       remain in use and how many introductions they handle. Fixes
26657       part of bug 3825.
26658     - Try to use system facilities for enumerating local interface
26659       addresses, before falling back to our old approach (which was
26660       binding a UDP socket, and calling getsockname() on it). That
26661       approach was scaring OS X users whose draconian firewall
26662       software warned about binding to UDP sockets, regardless of
26663       whether packets were sent. Now we try to use getifaddrs(),
26664       SIOCGIFCONF, or GetAdaptersAddresses(), depending on what the
26665       system supports. Resolves ticket 1827.
26667   o Major security workaround:
26668     - When building or running with any version of OpenSSL earlier
26669       than 0.9.8s or 1.0.0f, disable SSLv3 support. These OpenSSL
26670       versions have a bug (CVE-2011-4576) in which their block cipher
26671       padding includes uninitialized data, potentially leaking sensitive
26672       information to any peer with whom they make a SSLv3 connection. Tor
26673       does not use SSL v3 by default, but a hostile client or server
26674       could force an SSLv3 connection in order to gain information that
26675       they shouldn't have been able to get. The best solution here is to
26676       upgrade to OpenSSL 0.9.8s or 1.0.0f (or later). But when building
26677       or running with a non-upgraded OpenSSL, we disable SSLv3 entirely
26678       to make sure that the bug can't happen.
26680   o Major bugfixes:
26681     - Fix the SOCKET_OK test that we use to tell when socket
26682       creation fails so that it works on Win64. Fixes part of bug 4533;
26683       bugfix on 0.2.2.29-beta. Bug found by wanoskarnet.
26684     - Correct our replacements for the timeradd() and timersub() functions
26685       on platforms that lack them (for example, Windows). The timersub()
26686       function is used when expiring circuits, while timeradd() is
26687       currently unused. Bug report and patch by Vektor. Fixes bug 4778;
26688       bugfix on 0.2.2.24-alpha and 0.2.3.1-alpha.
26689     - Do not use OpenSSL 1.0.0's counter mode: it has a critical bug
26690       that was fixed in OpenSSL 1.0.0a. We test for the counter mode
26691       bug at runtime, not compile time, because some distributions hack
26692       their OpenSSL to mis-report its version. Fixes bug 4779; bugfix
26693       on 0.2.3.9-alpha. Found by Pascal.
26695   o Minor features (controller):
26696     - Use absolute path names when reporting the torrc filename in the
26697       control protocol, so a controller can more easily find the torrc
26698       file. Resolves bug 1101.
26699     - Extend the control protocol to report flags that control a circuit's
26700       path selection in CIRC events and in replies to 'GETINFO
26701       circuit-status'. Implements part of ticket 2411.
26702     - Extend the control protocol to report the hidden service address
26703       and current state of a hidden-service-related circuit in CIRC
26704       events and in replies to 'GETINFO circuit-status'. Implements part
26705       of ticket 2411.
26706     - When reporting the path to the cookie file to the controller,
26707       give an absolute path. Resolves ticket 4881.
26708     - Allow controllers to request an event notification whenever a
26709       circuit is cannibalized or its purpose is changed. Implements
26710       part of ticket 3457.
26711     - Include the creation time of a circuit in CIRC and CIRC2
26712       control-port events and the list produced by the 'GETINFO
26713       circuit-status' control-port command.
26715   o Minor features (directory authorities):
26716     - Directory authorities now reject versions of Tor older than
26717       0.2.1.30, and Tor versions between 0.2.2.1-alpha and 0.2.2.20-alpha
26718       inclusive. These versions accounted for only a small fraction of
26719       the Tor network, and have numerous known security issues. Resolves
26720       issue 4788.
26721     - Authority operators can now vote for all relays in a given
26722       set of countries to be BadDir/BadExit/Invalid/Rejected.
26723     - Provide two consensus parameters (FastFlagMinThreshold and
26724       FastFlagMaxThreshold) to control the range of allowable bandwidths
26725       for the Fast directory flag. These allow authorities to run
26726       experiments on appropriate requirements for being a "Fast" node.
26727       The AuthDirFastGuarantee config value still applies. Implements
26728       ticket 3946.
26729     - Document the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays
26730       directory authority option (introduced in Tor 0.2.2.34).
26732   o Minor features (other):
26733     - Don't disable the DirPort when we cannot exceed our AccountingMax
26734       limit during this interval because the effective bandwidthrate is
26735       low enough. This is useful in a situation where AccountMax is only
26736       used as an additional safeguard or to provide statistics.
26737     - Prepend an informative header to generated dynamic_dh_params files.
26738     - If EntryNodes are given, but UseEntryGuards is set to 0, warn that
26739       EntryNodes will have no effect. Resolves issue 2571.
26740     - Log more useful messages when we fail to disable debugger
26741       attachment.
26742     - Log which authority we're missing votes from when we go to fetch
26743       them from the other auths.
26744     - Log (at debug level) whenever a circuit's purpose is changed.
26745     - Add missing documentation for the MaxClientCircuitsPending,
26746       UseMicrodescriptors, UserspaceIOCPBuffers, and
26747       _UseFilteringSSLBufferevents options, all introduced during
26748       the 0.2.3.x series.
26749     - Update to the January 3 2012 Maxmind GeoLite Country database.
26751   o Minor bugfixes (hidden services):
26752     - Don't close hidden service client circuits which have almost
26753       finished connecting to their destination when they reach
26754       the normal circuit-build timeout. Previously, we would close
26755       introduction circuits which are waiting for an acknowledgement
26756       from the introduction point, and rendezvous circuits which have
26757       been specified in an INTRODUCE1 cell sent to a hidden service,
26758       after the normal CBT. Now, we mark them as 'timed out', and launch
26759       another rendezvous attempt in parallel. This behavior change can
26760       be disabled using the new CloseHSClientCircuitsImmediatelyOnTimeout
26761       option. Fixes part of bug 1297; bugfix on 0.2.2.2-alpha.
26762     - Don't close hidden-service-side rendezvous circuits when they
26763       reach the normal circuit-build timeout. This behavior change can
26764       be disabled using the new
26765       CloseHSServiceRendCircuitsImmediatelyOnTimeout option. Fixes the
26766       remaining part of bug 1297; bugfix on 0.2.2.2-alpha.
26767     - Make sure we never mark the wrong rendezvous circuit as having
26768       had its introduction cell acknowledged by the introduction-point
26769       relay. Previously, when we received an INTRODUCE_ACK cell on a
26770       client-side hidden-service introduction circuit, we might have
26771       marked a rendezvous circuit other than the one we specified in
26772       the INTRODUCE1 cell as INTRO_ACKED, which would have produced
26773       a warning message and interfered with the hidden service
26774       connection-establishment process. Fixes bug 4759; bugfix on
26775       0.2.3.3-alpha, when we added the stream-isolation feature which
26776       might cause Tor to open multiple rendezvous circuits for the same
26777       hidden service.
26778     - Don't trigger an assertion failure when we mark a new client-side
26779       hidden-service introduction circuit for close during the process
26780       of creating it. Fixes bug 4796; bugfix on 0.2.3.6-alpha. Reported
26781       by murb.
26783   o Minor bugfixes (log messages):
26784     - Correctly spell "connect" in a log message on failure to create a
26785       controlsocket. Fixes bug 4803; bugfix on 0.2.2.26-beta and
26786       0.2.3.2-alpha.
26787     - Fix a typo in a log message in rend_service_rendezvous_has_opened().
26788       Fixes bug 4856; bugfix on Tor 0.0.6.
26789     - Fix the log message describing how we work around discovering
26790       that our version is the ill-fated OpenSSL 0.9.8l. Fixes bug
26791       4837; bugfix on 0.2.2.9-alpha.
26792     - When logging about a disallowed .exit name, do not also call it
26793       an "invalid onion address". Fixes bug 3325; bugfix on 0.2.2.9-alpha.
26795   o Minor bugfixes (build fixes):
26796     - During configure, detect when we're building with clang version
26797       3.0 or lower and disable the -Wnormalized=id and -Woverride-init
26798       CFLAGS. clang doesn't support them yet.
26799     - During configure, search for library containing cos function as
26800       libm lives in libcore on some platforms (BeOS/Haiku). Linking
26801       against libm was hard-coded before. Fixes the first part of bug
26802       4727; bugfix on 0.2.2.2-alpha. Patch and analysis by Martin Hebnes
26803       Pedersen.
26804     - Detect attempts to build Tor on (as yet hypothetical) versions
26805       of Windows where sizeof(intptr_t) != sizeof(SOCKET). Partial
26806       fix for bug 4533. Bugfix on 0.2.2.28-beta.
26807     - Preprocessor directives should not be put inside the arguments
26808       of a macro. This would break compilation with GCC releases prior
26809       to version 3.3. We would never recommend such an old GCC version,
26810       but it is apparently required for binary compatibility on some
26811       platforms (namely, certain builds of Haiku). Fixes the other part
26812       of bug 4727; bugfix on 0.2.3.3-alpha. Patch and analysis by Martin
26813       Hebnes Pedersen.
26815   o Minor bugfixes (other):
26816     - Older Linux kernels erroneously respond to strange nmap behavior
26817       by having accept() return successfully with a zero-length
26818       socket. When this happens, just close the connection. Previously,
26819       we would try harder to learn the remote address: but there was
26820       no such remote address to learn, and our method for trying to
26821       learn it was incorrect. Fixes bugs 1240, 4745, and 4747. Bugfix
26822       on 0.1.0.3-rc. Reported and diagnosed by "r1eo".
26823     - Fix null-pointer access that could occur if TLS allocation failed.
26824       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un". This was
26825       erroneously listed as fixed in 0.2.3.9-alpha, but the fix had
26826       accidentally been reverted.
26827     - Fix our implementation of crypto_random_hostname() so it can't
26828       overflow on ridiculously large inputs. (No Tor version has ever
26829       provided this kind of bad inputs, but let's be correct in depth.)
26830       Fixes bug 4413; bugfix on 0.2.2.9-alpha. Fix by Stephen Palmateer.
26831     - Find more places in the code that should have been testing for
26832       invalid sockets using the SOCKET_OK macro. Required for a fix
26833       for bug 4533. Bugfix on 0.2.2.28-beta.
26834     - Fix an assertion failure when, while running with bufferevents, a
26835       connection finishes connecting after it is marked for close, but
26836       before it is closed. Fixes bug 4697; bugfix on 0.2.3.1-alpha.
26837     - test_util_spawn_background_ok() hardcoded the expected value
26838       for ENOENT to 2. This isn't portable as error numbers are
26839       platform specific, and particularly the hurd has ENOENT at
26840       0x40000002. Construct expected string at runtime, using the correct
26841       value for ENOENT. Fixes bug 4733; bugfix on 0.2.3.1-alpha.
26842     - Reject attempts to disable DisableDebuggerAttachment while Tor is
26843       running. Fixes bug 4650; bugfix on 0.2.3.9-alpha.
26844     - Use an appropriate-width type for sockets in tor-fw-helper on
26845       win64. Fixes bug 1983 at last. Bugfix on 0.2.3.9-alpha.
26847   o Feature removal:
26848     - When sending or relaying a RELAY_EARLY cell, we used to convert
26849       it to a RELAY cell if the connection was using the v1 link
26850       protocol. This was a workaround for older versions of Tor, which
26851       didn't handle RELAY_EARLY cells properly. Now that all supported
26852       versions can handle RELAY_EARLY cells, and now that we're enforcing
26853       the "no RELAY_EXTEND commands except in RELAY_EARLY cells" rule,
26854       remove this workaround. Addresses bug 4786.
26856   o Code simplifications and refactoring:
26857     - Use OpenSSL's built-in SSL_state_string_long() instead of our
26858       own homebrewed ssl_state_to_string() replacement. Patch from
26859       Emile Snyder. Fixes bug 4653.
26860     - Use macros to indicate OpenSSL versions, so we don't need to worry
26861       about accidental hexadecimal bit shifts.
26862     - Remove some workaround code for OpenSSL 0.9.6 (which is no longer
26863       supported).
26864     - Convert more instances of tor_snprintf+tor_strdup into tor_asprintf.
26865     - Use the smartlist_add_asprintf() alias more consistently.
26866     - Use a TOR_INVALID_SOCKET macro when initializing a socket to an
26867       invalid value, rather than just -1.
26868     - Rename a handful of old identifiers, mostly related to crypto
26869       structures and crypto functions. By convention, our "create an
26870       object" functions are called "type_new()", our "free an object"
26871       functions are called "type_free()", and our types indicate that
26872       they are types only with a final "_t". But a handful of older
26873       types and functions broke these rules, with function names like
26874       "type_create" or "subsystem_op_type", or with type names like
26875       type_env_t.
26878 Changes in version 0.2.3.10-alpha - 2011-12-16
26879   Tor 0.2.3.10-alpha fixes a critical heap-overflow security issue in
26880   Tor's buffers code. Absolutely everybody should upgrade.
26882   The bug relied on an incorrect calculation when making data continuous
26883   in one of our IO buffers, if the first chunk of the buffer was
26884   misaligned by just the wrong amount. The miscalculation would allow an
26885   attacker to overflow a piece of heap-allocated memory. To mount this
26886   attack, the attacker would need to either open a SOCKS connection to
26887   Tor's SocksPort (usually restricted to localhost), or target a Tor
26888   instance configured to make its connections through a SOCKS proxy
26889   (which Tor does not do by default).
26891   Good security practice requires that all heap-overflow bugs should be
26892   presumed to be exploitable until proven otherwise, so we are treating
26893   this as a potential code execution attack. Please upgrade immediately!
26894   This bug does not affect bufferevents-based builds of Tor. Special
26895   thanks to "Vektor" for reporting this issue to us!
26897   This release also contains a few minor bugfixes for issues discovered
26898   in 0.2.3.9-alpha.
26900   o Major bugfixes:
26901     - Fix a heap overflow bug that could occur when trying to pull
26902       data into the first chunk of a buffer, when that chunk had
26903       already had some data drained from it. Fixes CVE-2011-2778;
26904       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
26906   o Minor bugfixes:
26907     - If we can't attach streams to a rendezvous circuit when we
26908       finish connecting to a hidden service, clear the rendezvous
26909       circuit's stream-isolation state and try to attach streams
26910       again. Previously, we cleared rendezvous circuits' isolation
26911       state either too early (if they were freshly built) or not at all
26912       (if they had been built earlier and were cannibalized). Bugfix on
26913       0.2.3.3-alpha; fixes bug 4655.
26914     - Fix compilation of the libnatpmp helper on non-Windows. Bugfix on
26915       0.2.3.9-alpha; fixes bug 4691. Reported by Anthony G. Basile.
26916     - Fix an assertion failure when a relay with accounting enabled
26917       starts up while dormant. Fixes bug 4702; bugfix on 0.2.3.9-alpha.
26919   o Minor features:
26920     - Update to the December 6 2011 Maxmind GeoLite Country database.
26923 Changes in version 0.2.2.35 - 2011-12-16
26924   Tor 0.2.2.35 fixes a critical heap-overflow security issue in Tor's
26925   buffers code. Absolutely everybody should upgrade.
26927   The bug relied on an incorrect calculation when making data continuous
26928   in one of our IO buffers, if the first chunk of the buffer was
26929   misaligned by just the wrong amount. The miscalculation would allow an
26930   attacker to overflow a piece of heap-allocated memory. To mount this
26931   attack, the attacker would need to either open a SOCKS connection to
26932   Tor's SocksPort (usually restricted to localhost), or target a Tor
26933   instance configured to make its connections through a SOCKS proxy
26934   (which Tor does not do by default).
26936   Good security practice requires that all heap-overflow bugs should be
26937   presumed to be exploitable until proven otherwise, so we are treating
26938   this as a potential code execution attack. Please upgrade immediately!
26939   This bug does not affect bufferevents-based builds of Tor. Special
26940   thanks to "Vektor" for reporting this issue to us!
26942   Tor 0.2.2.35 also fixes several bugs in previous versions, including
26943   crash bugs for unusual configurations, and a long-term bug that
26944   would prevent Tor from starting on Windows machines with draconian
26945   AV software.
26947   With this release, we remind everyone that 0.2.0.x has reached its
26948   formal end-of-life. Those Tor versions have many known flaws, and
26949   nobody should be using them. You should upgrade -- ideally to the
26950   0.2.2.x series. If you're using a Linux or BSD and its packages are
26951   obsolete, stop using those packages and upgrade anyway.
26953   The Tor 0.2.1.x series is also approaching its end-of-life: it will no
26954   longer receive support after some time in early 2012.
26956   o Major bugfixes:
26957     - Fix a heap overflow bug that could occur when trying to pull
26958       data into the first chunk of a buffer, when that chunk had
26959       already had some data drained from it. Fixes CVE-2011-2778;
26960       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
26961     - Initialize Libevent with the EVENT_BASE_FLAG_NOLOCK flag enabled, so
26962       that it doesn't attempt to allocate a socketpair. This could cause
26963       some problems on Windows systems with overzealous firewalls. Fix for
26964       bug 4457; workaround for Libevent versions 2.0.1-alpha through
26965       2.0.15-stable.
26966     - If we mark an OR connection for close based on a cell we process,
26967       don't process any further cells on it. We already avoid further
26968       reads on marked-for-close connections, but now we also discard the
26969       cells we'd already read. Fixes bug 4299; bugfix on 0.2.0.10-alpha,
26970       which was the first version where we might mark a connection for
26971       close based on processing a cell on it.
26972     - Correctly sanity-check that we don't underflow on a memory
26973       allocation (and then assert) for hidden service introduction
26974       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
26975       bugfix on 0.2.1.5-alpha.
26976     - Fix a memory leak when we check whether a hidden service
26977       descriptor has any usable introduction points left. Fixes bug
26978       4424. Bugfix on 0.2.2.25-alpha.
26979     - Don't crash when we're running as a relay and don't have a GeoIP
26980       file. Bugfix on 0.2.2.34; fixes bug 4340. This backports a fix
26981       we've had in the 0.2.3.x branch already.
26982     - When running as a client, do not print a misleading (and plain
26983       wrong) log message that we're collecting "directory request"
26984       statistics: clients don't collect statistics. Also don't create a
26985       useless (because empty) stats file in the stats/ directory. Fixes
26986       bug 4353; bugfix on 0.2.2.34.
26988   o Minor bugfixes:
26989     - Detect failure to initialize Libevent. This fix provides better
26990       detection for future instances of bug 4457.
26991     - Avoid frequent calls to the fairly expensive cull_wedged_cpuworkers
26992       function. This was eating up hideously large amounts of time on some
26993       busy servers. Fixes bug 4518; bugfix on 0.0.9.8.
26994     - Resolve an integer overflow bug in smartlist_ensure_capacity().
26995       Fixes bug 4230; bugfix on Tor 0.1.0.1-rc. Based on a patch by
26996       Mansour Moufid.
26997     - Don't warn about unused log_mutex in log.c when building with
26998       --disable-threads using a recent GCC. Fixes bug 4437; bugfix on
26999       0.1.0.6-rc which introduced --disable-threads.
27000     - When configuring, starting, or stopping an NT service, stop
27001       immediately after the service configuration attempt has succeeded
27002       or failed. Fixes bug 3963; bugfix on 0.2.0.7-alpha.
27003     - When sending a NETINFO cell, include the original address
27004       received for the other side, not its canonical address. Found
27005       by "troll_un"; fixes bug 4349; bugfix on 0.2.0.10-alpha.
27006     - Fix a typo in a hibernation-related log message. Fixes bug 4331;
27007       bugfix on 0.2.2.23-alpha; found by "tmpname0901".
27008     - Fix a memory leak in launch_direct_bridge_descriptor_fetch() that
27009       occurred when a client tried to fetch a descriptor for a bridge
27010       in ExcludeNodes. Fixes bug 4383; bugfix on 0.2.2.25-alpha.
27011     - Backport fixes for a pair of compilation warnings on Windows.
27012       Fixes bug 4521; bugfix on 0.2.2.28-beta and on 0.2.2.29-beta.
27013     - If we had ever tried to call tor_addr_to_str on an address of
27014       unknown type, we would have done a strdup on an uninitialized
27015       buffer. Now we won't. Fixes bug 4529; bugfix on 0.2.1.3-alpha.
27016       Reported by "troll_un".
27017     - Correctly detect and handle transient lookup failures from
27018       tor_addr_lookup. Fixes bug 4530; bugfix on 0.2.1.5-alpha.
27019       Reported by "troll_un".
27020     - Fix null-pointer access that could occur if TLS allocation failed.
27021       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un".
27022     - Use tor_socket_t type for listener argument to accept(). Fixes bug
27023       4535; bugfix on 0.2.2.28-beta. Found by "troll_un".
27025   o Minor features:
27026     - Add two new config options for directory authorities:
27027       AuthDirFastGuarantee sets a bandwidth threshold for guaranteeing the
27028       Fast flag, and AuthDirGuardBWGuarantee sets a bandwidth threshold
27029       that is always sufficient to satisfy the bandwidth requirement for
27030       the Guard flag. Now it will be easier for researchers to simulate
27031       Tor networks with different values. Resolves ticket 4484.
27032     - When Tor ignores a hidden service specified in its configuration,
27033       include the hidden service's directory in the warning message.
27034       Previously, we would only tell the user that some hidden service
27035       was ignored. Bugfix on 0.0.6; fixes bug 4426.
27036     - Update to the December 6 2011 Maxmind GeoLite Country database.
27038   o Packaging changes:
27039     - Make it easier to automate expert package builds on Windows,
27040       by removing an absolute path from makensis.exe command.
27043 Changes in version 0.2.1.32 - 2011-12-16
27044   Tor 0.2.1.32 backports important security and privacy fixes for
27045   oldstable. This release is intended only for package maintainers and
27046   others who cannot use the 0.2.2 stable series. All others should be
27047   using Tor 0.2.2.x or newer.
27049   The Tor 0.2.1.x series will reach formal end-of-life some time in
27050   early 2012; we will stop releasing patches for it then.
27052   o Major bugfixes (also included in 0.2.2.x):
27053     - Correctly sanity-check that we don't underflow on a memory
27054       allocation (and then assert) for hidden service introduction
27055       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
27056       bugfix on 0.2.1.5-alpha.
27057     - Fix a heap overflow bug that could occur when trying to pull
27058       data into the first chunk of a buffer, when that chunk had
27059       already had some data drained from it. Fixes CVE-2011-2778;
27060       bugfix on 0.2.0.16-alpha. Reported by "Vektor".
27062   o Minor features:
27063     - Update to the December 6 2011 Maxmind GeoLite Country database.
27066 Changes in version 0.2.3.9-alpha - 2011-12-08
27067   Tor 0.2.3.9-alpha introduces initial IPv6 support for bridges, adds
27068   a "DisableNetwork" security feature that bundles can use to avoid
27069   touching the network until bridges are configured, moves forward on
27070   the pluggable transport design, fixes a flaw in the hidden service
27071   design that unnecessarily prevented clients with wrong clocks from
27072   reaching hidden services, and fixes a wide variety of other issues.
27074   o Major features:
27075     - Clients can now connect to private bridges over IPv6. Bridges
27076       still need at least one IPv4 address in order to connect to
27077       other relays. Note that we don't yet handle the case where the
27078       user has two bridge lines for the same bridge (one IPv4, one
27079       IPv6). Implements parts of proposal 186.
27080     - New "DisableNetwork" config option to prevent Tor from launching any
27081       connections or accepting any connections except on a control port.
27082       Bundles and controllers can set this option before letting Tor talk
27083       to the rest of the network, for example to prevent any connections
27084       to a non-bridge address. Packages like Orbot can also use this
27085       option to instruct Tor to save power when the network is off.
27086     - Clients and bridges can now be configured to use a separate
27087       "transport" proxy. This approach makes the censorship arms race
27088       easier by allowing bridges to use protocol obfuscation plugins. It
27089       implements the "managed proxy" part of proposal 180 (ticket 3472).
27090     - When using OpenSSL 1.0.0 or later, use OpenSSL's counter mode
27091       implementation. It makes AES_CTR about 7% faster than our old one
27092       (which was about 10% faster than the one OpenSSL used to provide).
27093       Resolves ticket 4526.
27094     - Add a "tor2web mode" for clients that want to connect to hidden
27095       services non-anonymously (and possibly more quickly). As a safety
27096       measure to try to keep users from turning this on without knowing
27097       what they are doing, tor2web mode must be explicitly enabled at
27098       compile time, and a copy of Tor compiled to run in tor2web mode
27099       cannot be used as a normal Tor client. Implements feature 2553.
27100     - Add experimental support for running on Windows with IOCP and no
27101       kernel-space socket buffers. This feature is controlled by a new
27102       "UserspaceIOCPBuffers" config option (off by default), which has
27103       no effect unless Tor has been built with support for bufferevents,
27104       is running on Windows, and has enabled IOCP. This may, in the long
27105       run, help solve or mitigate bug 98.
27106     - Use a more secure consensus parameter voting algorithm. Now at
27107       least three directory authorities or a majority of them must
27108       vote on a given parameter before it will be included in the
27109       consensus. Implements proposal 178.
27111   o Major bugfixes:
27112     - Hidden services now ignore the timestamps on INTRODUCE2 cells.
27113       They used to check that the timestamp was within 30 minutes
27114       of their system clock, so they could cap the size of their
27115       replay-detection cache, but that approach unnecessarily refused
27116       service to clients with wrong clocks. Bugfix on 0.2.1.6-alpha, when
27117       the v3 intro-point protocol (the first one which sent a timestamp
27118       field in the INTRODUCE2 cell) was introduced; fixes bug 3460.
27119     - Only use the EVP interface when AES acceleration is enabled,
27120       to avoid a 5-7% performance regression. Resolves issue 4525;
27121       bugfix on 0.2.3.8-alpha.
27123   o Privacy/anonymity features (bridge detection):
27124     - Make bridge SSL certificates a bit more stealthy by using random
27125       serial numbers, in the same fashion as OpenSSL when generating
27126       self-signed certificates. Implements ticket 4584.
27127     - Introduce a new config option "DynamicDHGroups", enabled by
27128       default, which provides each bridge with a unique prime DH modulus
27129       to be used during SSL handshakes. This option attempts to help
27130       against censors who might use the Apache DH modulus as a static
27131       identifier for bridges. Addresses ticket 4548.
27133   o Minor features (new/different config options):
27134     - New configuration option "DisableDebuggerAttachment" (on by default)
27135       to prevent basic debugging attachment attempts by other processes.
27136       Supports Mac OS X and Gnu/Linux. Resolves ticket 3313.
27137     - Allow MapAddress directives to specify matches against super-domains,
27138       as in "MapAddress *.torproject.org *.torproject.org.torserver.exit".
27139       Implements issue 933.
27140     - Slightly change behavior of "list" options (that is, config
27141       options that can appear more than once) when they appear both in
27142       torrc and on the command line. Previously, the command-line options
27143       would be appended to the ones from torrc. Now, the command-line
27144       options override the torrc options entirely. This new behavior
27145       allows the user to override list options (like exit policies and
27146       ports to listen on) from the command line, rather than simply
27147       appending to the list.
27148     - You can get the old (appending) command-line behavior for "list"
27149       options by prefixing the option name with a "+".
27150     - You can remove all the values for a "list" option from the command
27151       line without adding any new ones by prefixing the option name
27152       with a "/".
27153     - Add experimental support for a "defaults" torrc file to be parsed
27154       before the regular torrc. Torrc options override the defaults file's
27155       options in the same way that the command line overrides the torrc.
27156       The SAVECONF controller command saves only those options which
27157       differ between the current configuration and the defaults file. HUP
27158       reloads both files. (Note: This is an experimental feature; its
27159       behavior will probably be refined in future 0.2.3.x-alpha versions
27160       to better meet packagers' needs.) Implements task 4552.
27162   o Minor features:
27163     - Try to make the introductory warning message that Tor prints on
27164       startup more useful for actually finding help and information.
27165       Resolves ticket 2474.
27166     - Running "make version" now displays the version of Tor that
27167       we're about to build. Idea from katmagic; resolves issue 4400.
27168     - Expire old or over-used hidden service introduction points.
27169       Required by fix for bug 3460.
27170     - Move the replay-detection cache for the RSA-encrypted parts of
27171       INTRODUCE2 cells to the introduction point data structures.
27172       Previously, we would use one replay-detection cache per hidden
27173       service. Required by fix for bug 3460.
27174     - Reduce the lifetime of elements of hidden services' Diffie-Hellman
27175       public key replay-detection cache from 60 minutes to 5 minutes. This
27176       replay-detection cache is now used only to detect multiple
27177       INTRODUCE2 cells specifying the same rendezvous point, so we can
27178       avoid launching multiple simultaneous attempts to connect to it.
27180   o Minor bugfixes (on Tor 0.2.2.x and earlier):
27181     - Resolve an integer overflow bug in smartlist_ensure_capacity().
27182       Fixes bug 4230; bugfix on Tor 0.1.0.1-rc. Based on a patch by
27183       Mansour Moufid.
27184     - Fix a minor formatting issue in one of tor-gencert's error messages.
27185       Fixes bug 4574.
27186     - Prevent a false positive from the check-spaces script, by disabling
27187       the "whitespace between function name and (" check for functions
27188       named 'op()'.
27189     - Fix a log message suggesting that people contact a non-existent
27190       email address. Fixes bug 3448.
27191     - Fix null-pointer access that could occur if TLS allocation failed.
27192       Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un".
27193     - Report a real bootstrap problem to the controller on router
27194       identity mismatch. Previously we just said "foo", which probably
27195       made a lot of sense at the time. Fixes bug 4169; bugfix on
27196       0.2.1.1-alpha.
27197     - If we had ever tried to call tor_addr_to_str() on an address of
27198       unknown type, we would have done a strdup() on an uninitialized
27199       buffer. Now we won't. Fixes bug 4529; bugfix on 0.2.1.3-alpha.
27200       Reported by "troll_un".
27201     - Correctly detect and handle transient lookup failures from
27202       tor_addr_lookup(). Fixes bug 4530; bugfix on 0.2.1.5-alpha.
27203       Reported by "troll_un".
27204     - Use tor_socket_t type for listener argument to accept(). Fixes bug
27205       4535; bugfix on 0.2.2.28-beta. Found by "troll_un".
27206     - Initialize conn->addr to a valid state in spawn_cpuworker(). Fixes
27207       bug 4532; found by "troll_un".
27209   o Minor bugfixes (on Tor 0.2.3.x):
27210     - Fix a compile warning in tor_inet_pton(). Bugfix on 0.2.3.8-alpha;
27211       fixes bug 4554.
27212     - Don't send two ESTABLISH_RENDEZVOUS cells when opening a new
27213       circuit for use as a hidden service client's rendezvous point.
27214       Fixes bugs 4641 and 4171; bugfix on 0.2.3.3-alpha. Diagnosed
27215       with help from wanoskarnet.
27216     - Restore behavior of overriding SocksPort, ORPort, and similar
27217       options from the command line. Bugfix on 0.2.3.3-alpha.
27219   o Build fixes:
27220     - Properly handle the case where the build-tree is not the same
27221       as the source tree when generating src/common/common_sha1.i,
27222       src/or/micro-revision.i, and src/or/or_sha1.i. Fixes bug 3953;
27223       bugfix on 0.2.0.1-alpha.
27225   o Code simplifications, cleanups, and refactorings:
27226     - Remove the pure attribute from all functions that used it
27227       previously. In many cases we assigned it incorrectly, because the
27228       functions might assert or call impure functions, and we don't have
27229       evidence that keeping the pure attribute is worthwhile. Implements
27230       changes suggested in ticket 4421.
27231     - Remove some dead code spotted by coverity. Fixes cid 432.
27232       Bugfix on 0.2.3.1-alpha, closes bug 4637.
27235 Changes in version 0.2.3.8-alpha - 2011-11-22
27236   Tor 0.2.3.8-alpha fixes some crash and assert bugs, including a
27237   socketpair-related bug that has been bothering Windows users. It adds
27238   support to serve microdescriptors to controllers, so Vidalia's network
27239   map can resume listing relays (once Vidalia implements its side),
27240   and adds better support for hardware AES acceleration. Finally, it
27241   starts the process of adjusting the bandwidth cutoff for getting the
27242   "Fast" flag from 20KB to (currently) 32KB -- preliminary results show
27243   that tiny relays harm performance more than they help network capacity.
27245   o Major bugfixes:
27246     - Initialize Libevent with the EVENT_BASE_FLAG_NOLOCK flag enabled, so
27247       that it doesn't attempt to allocate a socketpair. This could cause
27248       some problems on Windows systems with overzealous firewalls. Fix for
27249       bug 4457; workaround for Libevent versions 2.0.1-alpha through
27250       2.0.15-stable.
27251     - Correctly sanity-check that we don't underflow on a memory
27252       allocation (and then assert) for hidden service introduction
27253       point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410;
27254       bugfix on 0.2.1.5-alpha.
27255     - Remove the artificially low cutoff of 20KB to guarantee the Fast
27256       flag. In the past few years the average relay speed has picked
27257       up, and while the "top 7/8 of the network get the Fast flag" and
27258       "all relays with 20KB or more of capacity get the Fast flag" rules
27259       used to have the same result, now the top 7/8 of the network has
27260       a capacity more like 32KB. Bugfix on 0.2.1.14-rc. Fixes bug 4489.
27261     - Fix a rare assertion failure when checking whether a v0 hidden
27262       service descriptor has any usable introduction points left, and
27263       we don't have enough information to build a circuit to the first
27264       intro point named in the descriptor. The HS client code in
27265       0.2.3.x no longer uses v0 HS descriptors, but this assertion can
27266       trigger on (and crash) v0 HS authorities. Fixes bug 4411.
27267       Bugfix on 0.2.3.1-alpha; diagnosed by frosty_un.
27268     - Make bridge authorities not crash when they are asked for their own
27269       descriptor. Bugfix on 0.2.3.7-alpha, reported by Lucky Green.
27270     - When running as a client, do not print a misleading (and plain
27271       wrong) log message that we're collecting "directory request"
27272       statistics: clients don't collect statistics. Also don't create a
27273       useless (because empty) stats file in the stats/ directory. Fixes
27274       bug 4353; bugfix on 0.2.2.34 and 0.2.3.7-alpha.
27276   o Major features:
27277     - Allow Tor controllers like Vidalia to obtain the microdescriptor
27278       for a relay by identity digest or nickname. Previously,
27279       microdescriptors were only available by their own digests, so a
27280       controller would have to ask for and parse the whole microdescriptor
27281       consensus in order to look up a single relay's microdesc. Fixes
27282       bug 3832; bugfix on 0.2.3.1-alpha.
27283     - Use OpenSSL's EVP interface for AES encryption, so that all AES
27284       operations can use hardware acceleration (if present). Resolves
27285       ticket 4442.
27287   o Minor bugfixes (on 0.2.2.x and earlier):
27288     - Detect failure to initialize Libevent. This fix provides better
27289       detection for future instances of bug 4457.
27290     - Avoid frequent calls to the fairly expensive cull_wedged_cpuworkers
27291       function. This was eating up hideously large amounts of time on some
27292       busy servers. Fixes bug 4518; bugfix on 0.0.9.8.
27293     - Don't warn about unused log_mutex in log.c when building with
27294       --disable-threads using a recent GCC. Fixes bug 4437; bugfix on
27295       0.1.0.6-rc which introduced --disable-threads.
27296     - Allow manual 'authenticate' commands to the controller interface
27297       from netcat (nc) as well as telnet. We were rejecting them because
27298       they didn't come with the expected whitespace at the end of the
27299       command. Bugfix on 0.1.1.1-alpha; fixes bug 2893.
27300     - Fix some (not actually triggerable) buffer size checks in usage of
27301       tor_inet_ntop. Fixes bug 4434; bugfix on Tor 0.2.0.1-alpha. Patch
27302       by Anders Sundman.
27303     - Fix parsing of some corner-cases with tor_inet_pton(). Fixes
27304       bug 4515; bugfix on 0.2.0.1-alpha; fix by Anders Sundman.
27305     - When configuring, starting, or stopping an NT service, stop
27306       immediately after the service configuration attempt has succeeded
27307       or failed. Fixes bug 3963; bugfix on 0.2.0.7-alpha.
27308     - When sending a NETINFO cell, include the original address
27309       received for the other side, not its canonical address. Found
27310       by "troll_un"; fixes bug 4349; bugfix on 0.2.0.10-alpha.
27311     - Rename the bench_{aes,dmap} functions to test_*, so that tinytest
27312       can pick them up when the tests aren't disabled. Bugfix on
27313       0.2.2.4-alpha which introduced tinytest.
27314     - Fix a memory leak when we check whether a hidden service
27315       descriptor has any usable introduction points left. Fixes bug
27316       4424. Bugfix on 0.2.2.25-alpha.
27317     - Fix a memory leak in launch_direct_bridge_descriptor_fetch() that
27318       occurred when a client tried to fetch a descriptor for a bridge
27319       in ExcludeNodes. Fixes bug 4383; bugfix on 0.2.2.25-alpha.
27321   o Minor bugfixes (on 0.2.3.x):
27322     - Make util unit tests build correctly with MSVC. Bugfix on
27323       0.2.3.3-alpha. Patch by Gisle Vanem.
27324     - Successfully detect AUTH_CHALLENGE cells with no recognized
27325       authentication type listed. Fixes bug 4367; bugfix on 0.2.3.6-alpha.
27326       Found by frosty_un.
27327     - If a relay receives an AUTH_CHALLENGE cell it can't answer,
27328       it should still send a NETINFO cell to allow the connection to
27329       become open. Fixes bug 4368; fix on 0.2.3.6-alpha; bug found by
27330       "frosty".
27331     - Log less loudly when we get an invalid authentication certificate
27332       from a source other than a directory authority: it's not unusual
27333       to see invalid certs because of clock skew. Fixes bug 4370; bugfix
27334       on 0.2.3.6-alpha.
27335     - Tolerate servers with more clock skew in their authentication
27336       certificates than previously. Fixes bug 4371; bugfix on
27337       0.2.3.6-alpha.
27338     - Fix a couple of compile warnings on Windows. Fixes bug 4469; bugfix
27339       on 0.2.3.4-alpha and 0.2.3.6-alpha.
27341   o Minor features:
27342     - Add two new config options for directory authorities:
27343       AuthDirFastGuarantee sets a bandwidth threshold for guaranteeing the
27344       Fast flag, and AuthDirGuardBWGuarantee sets a bandwidth threshold
27345       that is always sufficient to satisfy the bandwidth requirement for
27346       the Guard flag. Now it will be easier for researchers to simulate
27347       Tor networks with different values. Resolves ticket 4484.
27348     - When Tor ignores a hidden service specified in its configuration,
27349       include the hidden service's directory in the warning message.
27350       Previously, we would only tell the user that some hidden service
27351       was ignored. Bugfix on 0.0.6; fixes bug 4426.
27352     - When we fail to initialize Libevent, retry with IOCP disabled so we
27353       don't need to turn on multi-threading support in Libevent, which in
27354       turn requires a working socketpair(). This is a workaround for bug
27355       4457, which affects Libevent versions from 2.0.1-alpha through
27356       2.0.15-stable.
27357     - Detect when we try to build on a platform that doesn't define
27358       AF_UNSPEC to 0. We don't work there, so refuse to compile.
27359     - Update to the November 1 2011 Maxmind GeoLite Country database.
27361   o Packaging changes:
27362     - Make it easier to automate expert package builds on Windows,
27363       by removing an absolute path from makensis.exe command.
27365   o Code simplifications and refactoring:
27366     - Remove some redundant #include directives throughout the code.
27367       Patch from Andrea Gelmini.
27368     - Unconditionally use OpenSSL's AES implementation instead of our
27369       old built-in one. OpenSSL's AES has been better for a while, and
27370       relatively few servers should still be on any version of OpenSSL
27371       that doesn't have good optimized assembly AES.
27372     - Use the name "CERTS" consistently to refer to the new cell type;
27373       we were calling it CERT in some places and CERTS in others.
27375   o Testing:
27376     - Numerous new unit tests for functions in util.c and address.c by
27377       Anders Sundman.
27378     - The long-disabled benchmark tests are now split into their own
27379       ./src/test/bench binary.
27380     - The benchmark tests can now use more accurate timers than
27381       gettimeofday() when such timers are available.
27384 Changes in version 0.2.3.7-alpha - 2011-10-30
27385   Tor 0.2.3.7-alpha fixes a crash bug in 0.2.3.6-alpha introduced by
27386   the new v3 handshake. It also resolves yet another bridge address
27387   enumeration issue.
27389   o Major bugfixes:
27390     - If we mark an OR connection for close based on a cell we process,
27391       don't process any further cells on it. We already avoid further
27392       reads on marked-for-close connections, but now we also discard the
27393       cells we'd already read. Fixes bug 4299; bugfix on 0.2.0.10-alpha,
27394       which was the first version where we might mark a connection for
27395       close based on processing a cell on it.
27396     - Fix a double-free bug that would occur when we received an invalid
27397       certificate in a CERT cell in the new v3 handshake. Fixes bug 4343;
27398       bugfix on 0.2.3.6-alpha.
27399     - Bridges no longer include their address in NETINFO cells on outgoing
27400       OR connections, to allow them to blend in better with clients.
27401       Removes another avenue for enumerating bridges. Reported by
27402       "troll_un". Fixes bug 4348; bugfix on 0.2.0.10-alpha, when NETINFO
27403       cells were introduced.
27405   o Trivial fixes:
27406     - Fixed a typo in a hibernation-related log message. Fixes bug 4331;
27407       bugfix on 0.2.2.23-alpha; found by "tmpname0901".
27410 Changes in version 0.2.3.6-alpha - 2011-10-26
27411   Tor 0.2.3.6-alpha includes the fix from 0.2.2.34 for a critical
27412   anonymity vulnerability where an attacker can deanonymize Tor
27413   users. Everybody should upgrade.
27415   This release also features support for a new v3 connection handshake
27416   protocol, and fixes to make hidden service connections more robust.
27418   o Major features:
27419     - Implement a new handshake protocol (v3) for authenticating Tors to
27420       each other over TLS. It should be more resistant to fingerprinting
27421       than previous protocols, and should require less TLS hacking for
27422       future Tor implementations. Implements proposal 176.
27423     - Allow variable-length padding cells to disguise the length of
27424       Tor's TLS records. Implements part of proposal 184.
27426   o Privacy/anonymity fixes (clients):
27427     - Clients and bridges no longer send TLS certificate chains on
27428       outgoing OR connections. Previously, each client or bridge would
27429       use the same cert chain for all outgoing OR connections until
27430       its IP address changes, which allowed any relay that the client
27431       or bridge contacted to determine which entry guards it is using.
27432       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
27433     - If a relay receives a CREATE_FAST cell on a TLS connection, it
27434       no longer considers that connection as suitable for satisfying a
27435       circuit EXTEND request. Now relays can protect clients from the
27436       CVE-2011-2768 issue even if the clients haven't upgraded yet.
27437     - Directory authorities no longer assign the Guard flag to relays
27438       that haven't upgraded to the above "refuse EXTEND requests
27439       to client connections" fix. Now directory authorities can
27440       protect clients from the CVE-2011-2768 issue even if neither
27441       the clients nor the relays have upgraded yet. There's a new
27442       "GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays" config option
27443       to let us transition smoothly, else tomorrow there would be no
27444       guard relays.
27446   o Major bugfixes (hidden services):
27447     - Improve hidden service robustness: when an attempt to connect to
27448       a hidden service ends, be willing to refetch its hidden service
27449       descriptors from each of the HSDir relays responsible for them
27450       immediately. Previously, we would not consider refetching the
27451       service's descriptors from each HSDir for 15 minutes after the last
27452       fetch, which was inconvenient if the hidden service was not running
27453       during the first attempt. Bugfix on 0.2.0.18-alpha; fixes bug 3335.
27454     - When one of a hidden service's introduction points appears to be
27455       unreachable, stop trying it. Previously, we would keep trying
27456       to build circuits to the introduction point until we lost the
27457       descriptor, usually because the user gave up and restarted Tor.
27458       Partly fixes bug 3825.
27459     - Don't launch a useless circuit after failing to use one of a
27460       hidden service's introduction points. Previously, we would
27461       launch a new introduction circuit, but not set the hidden service
27462       which that circuit was intended to connect to, so it would never
27463       actually be used. A different piece of code would then create a
27464       new introduction circuit correctly. Bug reported by katmagic and
27465       found by Sebastian Hahn. Bugfix on 0.2.1.13-alpha; fixes bug 4212.
27467   o Major bugfixes (other):
27468     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
27469       that they initiated. Relays could distinguish incoming bridge
27470       connections from client connections, creating another avenue for
27471       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
27472       Found by "frosty_un".
27473     - Don't update the AccountingSoftLimitHitAt state file entry whenever
27474       tor gets started. This prevents a wrong average bandwidth
27475       estimate, which would cause relays to always start a new accounting
27476       interval at the earliest possible moment. Fixes bug 2003; bugfix
27477       on 0.2.2.7-alpha. Reported by BryonEldridge, who also helped
27478       immensely in tracking this bug down.
27479     - Fix a crash bug when changing node restrictions while a DNS lookup
27480       is in-progress. Fixes bug 4259; bugfix on 0.2.2.25-alpha. Bugfix
27481       by "Tey'".
27483   o Minor bugfixes (on 0.2.2.x and earlier):
27484     - When a hidden service turns an extra service-side introduction
27485       circuit into a general-purpose circuit, free the rend_data and
27486       intro_key fields first, so we won't leak memory if the circuit
27487       is cannibalized for use as another service-side introduction
27488       circuit. Bugfix on 0.2.1.7-alpha; fixes bug 4251.
27489     - Rephrase the log message emitted if the TestSocks check is
27490       successful. Patch from Fabian Keil; fixes bug 4094.
27491     - Bridges now skip DNS self-tests, to act a little more stealthily.
27492       Fixes bug 4201; bugfix on 0.2.0.3-alpha, which first introduced
27493       bridges. Patch by "warms0x".
27494     - Remove a confusing dollar sign from the example fingerprint in the
27495       man page, and also make the example fingerprint a valid one. Fixes
27496       bug 4309; bugfix on 0.2.1.3-alpha.
27497     - Fix internal bug-checking logic that was supposed to catch
27498       failures in digest generation so that it will fail more robustly
27499       if we ask for a nonexistent algorithm. Found by Coverity Scan.
27500       Bugfix on 0.2.2.1-alpha; fixes Coverity CID 479.
27501     - Report any failure in init_keys() calls launched because our
27502       IP address has changed. Spotted by Coverity Scan. Bugfix on
27503       0.1.1.4-alpha; fixes CID 484.
27505   o Minor bugfixes (on 0.2.3.x):
27506     - Fix a bug in configure.in that kept it from building a configure
27507       script with autoconf versions earlier than 2.61. Fixes bug 2430;
27508       bugfix on 0.2.3.1-alpha.
27509     - Don't warn users that they are exposing a client port to the
27510       Internet if they have specified an RFC1918 address. Previously,
27511       we would warn if the user had specified any non-loopback
27512       address. Bugfix on 0.2.3.3-alpha. Fixes bug 4018; reported by Tas.
27513     - Fix memory leaks in the failing cases of the new SocksPort and
27514       ControlPort code. Found by Coverity Scan. Bugfix on 0.2.3.3-alpha;
27515       fixes coverity CIDs 485, 486, and 487.
27517   o Minor features:
27518     - When a hidden service's introduction point times out, consider
27519       trying it again during the next attempt to connect to the
27520       HS. Previously, we would not try it again unless a newly fetched
27521       descriptor contained it. Required by fixes for bugs 1297 and 3825.
27522     - The next version of Windows will be called Windows 8, and it has
27523       a major version of 6, minor version of 2. Correctly identify that
27524       version instead of calling it "Very recent version". Resolves
27525       ticket 4153; reported by funkstar.
27526     - The Bridge Authority now writes statistics on how many bridge
27527       descriptors it gave out in total, and how many unique descriptors
27528       it gave out. It also lists how often the most and least commonly
27529       fetched descriptors were given out, as well as the median and
27530       25th/75th percentile. Implements tickets 4200 and 4294.
27531     - Update to the October 4 2011 Maxmind GeoLite Country database.
27533   o Code simplifications and refactoring:
27534     - Remove some old code to remember statistics about which descriptors
27535       we've served as a directory mirror. The feature wasn't used and
27536       is outdated now that microdescriptors are around.
27537     - Rename Tor functions that turn strings into addresses, so that
27538       "parse" indicates that no hostname resolution occurs, and
27539       "lookup" indicates that hostname resolution may occur. This
27540       should help prevent mistakes in the future. Fixes bug 3512.
27543 Changes in version 0.2.2.34 - 2011-10-26
27544   Tor 0.2.2.34 fixes a critical anonymity vulnerability where an attacker
27545   can deanonymize Tor users. Everybody should upgrade.
27547   The attack relies on four components: 1) Clients reuse their TLS cert
27548   when talking to different relays, so relays can recognize a user by
27549   the identity key in her cert. 2) An attacker who knows the client's
27550   identity key can probe each guard relay to see if that identity key
27551   is connected to that guard relay right now. 3) A variety of active
27552   attacks in the literature (starting from "Low-Cost Traffic Analysis
27553   of Tor" by Murdoch and Danezis in 2005) allow a malicious website to
27554   discover the guard relays that a Tor user visiting the website is using.
27555   4) Clients typically pick three guards at random, so the set of guards
27556   for a given user could well be a unique fingerprint for her. This
27557   release fixes components #1 and #2, which is enough to block the attack;
27558   the other two remain as open research problems. Special thanks to
27559   "frosty_un" for reporting the issue to us!
27561   Clients should upgrade so they are no longer recognizable by the TLS
27562   certs they present. Relays should upgrade so they no longer allow a
27563   remote attacker to probe them to test whether unpatched clients are
27564   currently connected to them.
27566   This release also fixes several vulnerabilities that allow an attacker
27567   to enumerate bridge relays. Some bridge enumeration attacks still
27568   remain; see for example proposal 188.
27570   o Privacy/anonymity fixes (clients):
27571     - Clients and bridges no longer send TLS certificate chains on
27572       outgoing OR connections. Previously, each client or bridge would
27573       use the same cert chain for all outgoing OR connections until
27574       its IP address changes, which allowed any relay that the client
27575       or bridge contacted to determine which entry guards it is using.
27576       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
27577     - If a relay receives a CREATE_FAST cell on a TLS connection, it
27578       no longer considers that connection as suitable for satisfying a
27579       circuit EXTEND request. Now relays can protect clients from the
27580       CVE-2011-2768 issue even if the clients haven't upgraded yet.
27581     - Directory authorities no longer assign the Guard flag to relays
27582       that haven't upgraded to the above "refuse EXTEND requests
27583       to client connections" fix. Now directory authorities can
27584       protect clients from the CVE-2011-2768 issue even if neither
27585       the clients nor the relays have upgraded yet. There's a new
27586       "GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays" config option
27587       to let us transition smoothly, else tomorrow there would be no
27588       guard relays.
27590   o Privacy/anonymity fixes (bridge enumeration):
27591     - Bridge relays now do their directory fetches inside Tor TLS
27592       connections, like all the other clients do, rather than connecting
27593       directly to the DirPort like public relays do. Removes another
27594       avenue for enumerating bridges. Fixes bug 4115; bugfix on 0.2.0.35.
27595     - Bridges relays now build circuits for themselves in a more similar
27596       way to how clients build them. Removes another avenue for
27597       enumerating bridges. Fixes bug 4124; bugfix on 0.2.0.3-alpha,
27598       when bridges were introduced.
27599     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
27600       that they initiated. Relays could distinguish incoming bridge
27601       connections from client connections, creating another avenue for
27602       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
27603       Found by "frosty_un".
27605   o Major bugfixes:
27606     - Fix a crash bug when changing node restrictions while a DNS lookup
27607       is in-progress. Fixes bug 4259; bugfix on 0.2.2.25-alpha. Bugfix
27608       by "Tey'".
27609     - Don't launch a useless circuit after failing to use one of a
27610       hidden service's introduction points. Previously, we would
27611       launch a new introduction circuit, but not set the hidden service
27612       which that circuit was intended to connect to, so it would never
27613       actually be used. A different piece of code would then create a
27614       new introduction circuit correctly. Bug reported by katmagic and
27615       found by Sebastian Hahn. Bugfix on 0.2.1.13-alpha; fixes bug 4212.
27617   o Minor bugfixes:
27618     - Change an integer overflow check in the OpenBSD_Malloc code so
27619       that GCC is less likely to eliminate it as impossible. Patch
27620       from Mansour Moufid. Fixes bug 4059.
27621     - When a hidden service turns an extra service-side introduction
27622       circuit into a general-purpose circuit, free the rend_data and
27623       intro_key fields first, so we won't leak memory if the circuit
27624       is cannibalized for use as another service-side introduction
27625       circuit. Bugfix on 0.2.1.7-alpha; fixes bug 4251.
27626     - Bridges now skip DNS self-tests, to act a little more stealthily.
27627       Fixes bug 4201; bugfix on 0.2.0.3-alpha, which first introduced
27628       bridges. Patch by "warms0x".
27629     - Fix internal bug-checking logic that was supposed to catch
27630       failures in digest generation so that it will fail more robustly
27631       if we ask for a nonexistent algorithm. Found by Coverity Scan.
27632       Bugfix on 0.2.2.1-alpha; fixes Coverity CID 479.
27633     - Report any failure in init_keys() calls launched because our
27634       IP address has changed. Spotted by Coverity Scan. Bugfix on
27635       0.1.1.4-alpha; fixes CID 484.
27637   o Minor bugfixes (log messages and documentation):
27638     - Remove a confusing dollar sign from the example fingerprint in the
27639       man page, and also make the example fingerprint a valid one. Fixes
27640       bug 4309; bugfix on 0.2.1.3-alpha.
27641     - The next version of Windows will be called Windows 8, and it has
27642       a major version of 6, minor version of 2. Correctly identify that
27643       version instead of calling it "Very recent version". Resolves
27644       ticket 4153; reported by funkstar.
27645     - Downgrade log messages about circuit timeout calibration from
27646       "notice" to "info": they don't require or suggest any human
27647       intervention. Patch from Tom Lowenthal. Fixes bug 4063;
27648       bugfix on 0.2.2.14-alpha.
27650   o Minor features:
27651     - Turn on directory request statistics by default and include them in
27652       extra-info descriptors. Don't break if we have no GeoIP database.
27653       Backported from 0.2.3.1-alpha; implements ticket 3951.
27654     - Update to the October 4 2011 Maxmind GeoLite Country database.
27657 Changes in version 0.2.1.31 - 2011-10-26
27658   Tor 0.2.1.31 backports important security and privacy fixes for
27659   oldstable. This release is intended only for package maintainers and
27660   others who cannot use the 0.2.2 stable series. All others should be
27661   using Tor 0.2.2.x or newer.
27663   o Security fixes (also included in 0.2.2.x):
27664     - Replace all potentially sensitive memory comparison operations
27665       with versions whose runtime does not depend on the data being
27666       compared. This will help resist a class of attacks where an
27667       adversary can use variations in timing information to learn
27668       sensitive data. Fix for one case of bug 3122. (Safe memcmp
27669       implementation by Robert Ransom based partially on code by DJB.)
27670     - Fix an assert in parsing router descriptors containing IPv6
27671       addresses. This one took down the directory authorities when
27672       somebody tried some experimental code. Bugfix on 0.2.1.3-alpha.
27674   o Privacy/anonymity fixes (also included in 0.2.2.x):
27675     - Clients and bridges no longer send TLS certificate chains on
27676       outgoing OR connections. Previously, each client or bridge would
27677       use the same cert chain for all outgoing OR connections until
27678       its IP address changes, which allowed any relay that the client
27679       or bridge contacted to determine which entry guards it is using.
27680       Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un".
27681     - If a relay receives a CREATE_FAST cell on a TLS connection, it
27682       no longer considers that connection as suitable for satisfying a
27683       circuit EXTEND request. Now relays can protect clients from the
27684       CVE-2011-2768 issue even if the clients haven't upgraded yet.
27685     - Bridges now refuse CREATE or CREATE_FAST cells on OR connections
27686       that they initiated. Relays could distinguish incoming bridge
27687       connections from client connections, creating another avenue for
27688       enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha.
27689       Found by "frosty_un".
27690     - When receiving a hidden service descriptor, check that it is for
27691       the hidden service we wanted. Previously, Tor would store any
27692       hidden service descriptors that a directory gave it, whether it
27693       wanted them or not. This wouldn't have let an attacker impersonate
27694       a hidden service, but it did let directories pre-seed a client
27695       with descriptors that it didn't want. Bugfix on 0.0.6.
27696     - Avoid linkability based on cached hidden service descriptors: forget
27697       all hidden service descriptors cached as a client when processing a
27698       SIGNAL NEWNYM command. Fixes bug 3000; bugfix on 0.0.6.
27699     - Make the bridge directory authority refuse to answer directory
27700       requests for "all" descriptors. It used to include bridge
27701       descriptors in its answer, which was a major information leak.
27702       Found by "piebeer". Bugfix on 0.2.0.3-alpha.
27703     - Don't attach new streams to old rendezvous circuits after SIGNAL
27704       NEWNYM. Previously, we would keep using an existing rendezvous
27705       circuit if it remained open (i.e. if it were kept open by a
27706       long-lived stream, or if a new stream were attached to it before
27707       Tor could notice that it was old and no longer in use). Bugfix on
27708       0.1.1.15-rc; fixes bug 3375.
27710   o Minor bugfixes (also included in 0.2.2.x):
27711     - When we restart our relay, we might get a successful connection
27712       from the outside before we've started our reachability tests,
27713       triggering a warning: "ORPort found reachable, but I have no
27714       routerinfo yet. Failing to inform controller of success." This
27715       bug was harmless unless Tor is running under a controller
27716       like Vidalia, in which case the controller would never get a
27717       REACHABILITY_SUCCEEDED status event. Bugfix on 0.1.2.6-alpha;
27718       fixes bug 1172.
27719     - Build correctly on OSX with zlib 1.2.4 and higher with all warnings
27720       enabled. Fixes bug 1526.
27721     - Remove undocumented option "-F" from tor-resolve: it hasn't done
27722       anything since 0.2.1.16-rc.
27723     - Avoid signed/unsigned comparisons by making SIZE_T_CEILING unsigned.
27724       None of the cases where we did this before were wrong, but by making
27725       this change we avoid warnings. Fixes bug 2475; bugfix on 0.2.1.28.
27726     - Fix a rare crash bug that could occur when a client was configured
27727       with a large number of bridges. Fixes bug 2629; bugfix on
27728       0.2.1.2-alpha. Bugfix by trac user "shitlei".
27729     - Correct the warning displayed when a rendezvous descriptor exceeds
27730       the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found by
27731       John Brooks.
27732     - Fix an uncommon assertion failure when running with DNSPort under
27733       heavy load. Fixes bug 2933; bugfix on 0.2.0.1-alpha.
27734     - When warning about missing zlib development packages during compile,
27735       give the correct package names. Bugfix on 0.2.0.1-alpha.
27736     - Require that introduction point keys and onion keys have public
27737       exponent 65537. Bugfix on 0.2.0.10-alpha.
27738     - Do not crash when our configuration file becomes unreadable, for
27739       example due to a permissions change, between when we start up
27740       and when a controller calls SAVECONF. Fixes bug 3135; bugfix
27741       on 0.0.9pre6.
27742     - Fix warnings from GCC 4.6's "-Wunused-but-set-variable" option.
27743       Fixes bug 3208.
27744     - Always NUL-terminate the sun_path field of a sockaddr_un before
27745       passing it to the kernel. (Not a security issue: kernels are
27746       smart enough to reject bad sockaddr_uns.) Found by Coverity;
27747       CID #428. Bugfix on Tor 0.2.0.3-alpha.
27748     - Don't stack-allocate the list of supplementary GIDs when we're
27749       about to log them. Stack-allocating NGROUPS_MAX gid_t elements
27750       could take up to 256K, which is way too much stack. Found by
27751       Coverity; CID #450. Bugfix on 0.2.1.7-alpha.
27753   o Minor bugfixes (only in 0.2.1.x):
27754     - Resume using micro-version numbers in 0.2.1.x: our Debian packages
27755       rely on them. Bugfix on 0.2.1.30.
27756     - Use git revisions instead of svn revisions when generating our
27757       micro-version numbers. Bugfix on 0.2.1.15-rc; fixes bug 2402.
27759   o Minor features (also included in 0.2.2.x):
27760     - Adjust the expiration time on our SSL session certificates to
27761       better match SSL certs seen in the wild. Resolves ticket 4014.
27762     - Allow nameservers with IPv6 address. Resolves bug 2574.
27763     - Update to the October 4 2011 Maxmind GeoLite Country database.
27766 Changes in version 0.2.3.5-alpha - 2011-09-28
27767   Tor 0.2.3.5-alpha fixes two bugs that make it possible to enumerate
27768   bridge relays; fixes an assertion error that many users started hitting
27769   today; and adds the ability to refill token buckets more often than
27770   once per second, allowing significant performance improvements.
27772   o Security fixes:
27773     - Bridge relays now do their directory fetches inside Tor TLS
27774       connections, like all the other clients do, rather than connecting
27775       directly to the DirPort like public relays do. Removes another
27776       avenue for enumerating bridges. Fixes bug 4115; bugfix on 0.2.0.35.
27777     - Bridges relays now build circuits for themselves in a more similar
27778       way to how clients build them. Removes another avenue for
27779       enumerating bridges. Fixes bug 4124; bugfix on 0.2.0.3-alpha,
27780       when bridges were introduced.
27782   o Major bugfixes:
27783     - Fix an "Assertion md->held_by_node == 1 failed" error that could
27784       occur when the same microdescriptor was referenced by two node_t
27785       objects at once. Fix for bug 4118; bugfix on Tor 0.2.3.1-alpha.
27787   o Major features (networking):
27788     - Add a new TokenBucketRefillInterval option to refill token buckets
27789       more frequently than once per second. This should improve network
27790       performance, alleviate queueing problems, and make traffic less
27791       bursty. Implements proposal 183; closes ticket 3630. Design by
27792       Florian Tschorsch and Björn Scheuermann; implementation by
27793       Florian Tschorsch.
27795   o Minor bugfixes:
27796     - Change an integer overflow check in the OpenBSD_Malloc code so
27797       that GCC is less likely to eliminate it as impossible. Patch
27798       from Mansour Moufid. Fixes bug 4059.
27800   o Minor bugfixes (usability):
27801     - Downgrade log messages about circuit timeout calibration from
27802       "notice" to "info": they don't require or suggest any human
27803       intervention. Patch from Tom Lowenthal. Fixes bug 4063;
27804       bugfix on 0.2.2.14-alpha.
27806   o Minor features (diagnostics):
27807     - When the system call to create a listener socket fails, log the
27808       error message explaining why. This may help diagnose bug 4027.
27811 Changes in version 0.2.3.4-alpha - 2011-09-13
27812   Tor 0.2.3.4-alpha includes the fixes from 0.2.2.33, including a slight
27813   tweak to Tor's TLS handshake that makes relays and bridges that run
27814   this new version reachable from Iran again. It also fixes a few new
27815   bugs in 0.2.3.x, and teaches relays to recognize when they're not
27816   listed in the network consensus and republish.
27818   o Major bugfixes (also part of 0.2.2.33):
27819     - Avoid an assertion failure when reloading a configuration with
27820       TrackExitHosts changes. Found and fixed by 'laruldan'. Fixes bug
27821       3923; bugfix on 0.2.2.25-alpha.
27823   o Minor features (security, also part of 0.2.2.33):
27824     - Check for replays of the public-key encrypted portion of an
27825       INTRODUCE1 cell, in addition to the current check for replays of
27826       the g^x value. This prevents a possible class of active attacks
27827       by an attacker who controls both an introduction point and a
27828       rendezvous point, and who uses the malleability of AES-CTR to
27829       alter the encrypted g^x portion of the INTRODUCE1 cell. We think
27830       that these attacks are infeasible (requiring the attacker to send
27831       on the order of zettabytes of altered cells in a short interval),
27832       but we'd rather block them off in case there are any classes of
27833       this attack that we missed. Reported by Willem Pinckaers.
27835   o Minor features (also part of 0.2.2.33):
27836     - Adjust the expiration time on our SSL session certificates to
27837       better match SSL certs seen in the wild. Resolves ticket 4014.
27838     - Change the default required uptime for a relay to be accepted as
27839       a HSDir (hidden service directory) from 24 hours to 25 hours.
27840       Improves on 0.2.0.10-alpha; resolves ticket 2649.
27841     - Add a VoteOnHidServDirectoriesV2 config option to allow directory
27842       authorities to abstain from voting on assignment of the HSDir
27843       consensus flag. Related to bug 2649.
27844     - Update to the September 6 2011 Maxmind GeoLite Country database.
27846   o Minor bugfixes (also part of 0.2.2.33):
27847     - Demote the 'replay detected' log message emitted when a hidden
27848       service receives the same Diffie-Hellman public key in two different
27849       INTRODUCE2 cells to info level. A normal Tor client can cause that
27850       log message during its normal operation. Bugfix on 0.2.1.6-alpha;
27851       fixes part of bug 2442.
27852     - Demote the 'INTRODUCE2 cell is too {old,new}' log message to info
27853       level. There is nothing that a hidden service's operator can do
27854       to fix its clients' clocks. Bugfix on 0.2.1.6-alpha; fixes part
27855       of bug 2442.
27856     - Clarify a log message specifying the characters permitted in
27857       HiddenServiceAuthorizeClient client names. Previously, the log
27858       message said that "[A-Za-z0-9+-_]" were permitted; that could have
27859       given the impression that every ASCII character between "+" and "_"
27860       was permitted. Now we say "[A-Za-z0-9+_-]". Bugfix on 0.2.1.5-alpha.
27862   o Build fixes (also part of 0.2.2.33):
27863     - Clean up some code issues that prevented Tor from building on older
27864       BSDs. Fixes bug 3894; reported by "grarpamp".
27865     - Search for a platform-specific version of "ar" when cross-compiling.
27866       Should fix builds on iOS. Resolves bug 3909, found by Marco Bonetti.
27868   o Major bugfixes:
27869     - Fix a bug where the SocksPort option (for example) would get
27870       ignored and replaced by the default if a SocksListenAddress
27871       option was set. Bugfix on 0.2.3.3-alpha; fixes bug 3936. Fix by
27872       Fabian Keil.
27874   o Major features:
27875     - Relays now try regenerating and uploading their descriptor more
27876       frequently if they are not listed in the consensus, or if the
27877       version of their descriptor listed in the consensus is too
27878       old. This fix should prevent situations where a server declines
27879       to re-publish itself because it has done so too recently, even
27880       though the authorities decided not to list its recent-enough
27881       descriptor. Fix for bug 3327.
27883   o Minor features:
27884     - Relays now include a reason for regenerating their descriptors
27885       in an HTTP header when uploading to the authorities. This will
27886       make it easier to debug descriptor-upload issues in the future.
27887     - When starting as root and then changing our UID via the User
27888       control option, and we have a ControlSocket configured, make sure
27889       that the ControlSocket is owned by the same account that Tor will
27890       run under. Implements ticket 3421; fix by Jérémy Bobbio.
27892   o Minor bugfixes:
27893     - Abort if tor_vasprintf fails in connection_printf_to_buf (a
27894       utility function used in the control-port code). This shouldn't
27895       ever happen unless Tor is completely out of memory, but if it did
27896       happen and Tor somehow recovered from it, Tor could have sent a log
27897       message to a control port in the middle of a reply to a controller
27898       command. Fixes part of bug 3428; bugfix on 0.1.2.3-alpha.
27899     - Make 'FetchUselessDescriptors' cause all descriptor types and
27900       all consensus types (including microdescriptors) to get fetched.
27901       Fixes bug 3851; bugfix on 0.2.3.1-alpha.
27903   o Code refactoring:
27904     - Make a new "entry connection" struct as an internal subtype of "edge
27905       connection", to simplify the code and make exit connections smaller.
27908 Changes in version 0.2.2.33 - 2011-09-13
27909   Tor 0.2.2.33 fixes several bugs, and includes a slight tweak to Tor's
27910   TLS handshake that makes relays and bridges that run this new version
27911   reachable from Iran again.
27913   o Major bugfixes:
27914     - Avoid an assertion failure when reloading a configuration with
27915       TrackExitHosts changes. Found and fixed by 'laruldan'. Fixes bug
27916       3923; bugfix on 0.2.2.25-alpha.
27918   o Minor features (security):
27919     - Check for replays of the public-key encrypted portion of an
27920       INTRODUCE1 cell, in addition to the current check for replays of
27921       the g^x value. This prevents a possible class of active attacks
27922       by an attacker who controls both an introduction point and a
27923       rendezvous point, and who uses the malleability of AES-CTR to
27924       alter the encrypted g^x portion of the INTRODUCE1 cell. We think
27925       that these attacks are infeasible (requiring the attacker to send
27926       on the order of zettabytes of altered cells in a short interval),
27927       but we'd rather block them off in case there are any classes of
27928       this attack that we missed. Reported by Willem Pinckaers.
27930   o Minor features:
27931     - Adjust the expiration time on our SSL session certificates to
27932       better match SSL certs seen in the wild. Resolves ticket 4014.
27933     - Change the default required uptime for a relay to be accepted as
27934       a HSDir (hidden service directory) from 24 hours to 25 hours.
27935       Improves on 0.2.0.10-alpha; resolves ticket 2649.
27936     - Add a VoteOnHidServDirectoriesV2 config option to allow directory
27937       authorities to abstain from voting on assignment of the HSDir
27938       consensus flag. Related to bug 2649.
27939     - Update to the September 6 2011 Maxmind GeoLite Country database.
27941   o Minor bugfixes (documentation and log messages):
27942     - Correct the man page to explain that HashedControlPassword and
27943       CookieAuthentication can both be set, in which case either method
27944       is sufficient to authenticate to Tor. Bugfix on 0.2.0.7-alpha,
27945       when we decided to allow these config options to both be set. Issue
27946       raised by bug 3898.
27947     - Demote the 'replay detected' log message emitted when a hidden
27948       service receives the same Diffie-Hellman public key in two different
27949       INTRODUCE2 cells to info level. A normal Tor client can cause that
27950       log message during its normal operation. Bugfix on 0.2.1.6-alpha;
27951       fixes part of bug 2442.
27952     - Demote the 'INTRODUCE2 cell is too {old,new}' log message to info
27953       level. There is nothing that a hidden service's operator can do
27954       to fix its clients' clocks. Bugfix on 0.2.1.6-alpha; fixes part
27955       of bug 2442.
27956     - Clarify a log message specifying the characters permitted in
27957       HiddenServiceAuthorizeClient client names. Previously, the log
27958       message said that "[A-Za-z0-9+-_]" were permitted; that could have
27959       given the impression that every ASCII character between "+" and "_"
27960       was permitted. Now we say "[A-Za-z0-9+_-]". Bugfix on 0.2.1.5-alpha.
27962   o Build fixes:
27963     - Provide a substitute implementation of lround() for MSVC, which
27964       apparently lacks it. Patch from Gisle Vanem.
27965     - Clean up some code issues that prevented Tor from building on older
27966       BSDs. Fixes bug 3894; reported by "grarpamp".
27967     - Search for a platform-specific version of "ar" when cross-compiling.
27968       Should fix builds on iOS. Resolves bug 3909, found by Marco Bonetti.
27971 Changes in version 0.2.3.3-alpha - 2011-09-01
27972   Tor 0.2.3.3-alpha adds a new "stream isolation" feature to improve Tor's
27973   security, and provides client-side support for the microdescriptor
27974   and optimistic data features introduced earlier in the 0.2.3.x
27975   series. It also includes numerous critical bugfixes in the (optional)
27976   bufferevent-based networking backend.
27978   o Major features (stream isolation):
27979     - You can now configure Tor so that streams from different
27980       applications are isolated on different circuits, to prevent an
27981       attacker who sees your streams as they leave an exit node from
27982       linking your sessions to one another. To do this, choose some way
27983       to distinguish the applications: have them connect to different
27984       SocksPorts, or have one of them use SOCKS4 while the other uses
27985       SOCKS5, or have them pass different authentication strings to the
27986       SOCKS proxy. Then, use the new SocksPort syntax to configure the
27987       degree of isolation you need. This implements Proposal 171.
27988     - There's a new syntax for specifying multiple client ports (such as
27989       SOCKSPort, TransPort, DNSPort, NATDPort): you can now just declare
27990       multiple *Port entries with full addr:port syntax on each.
27991       The old *ListenAddress format is still supported, but you can't
27992       mix it with the new *Port syntax.
27994   o Major features (other):
27995     - Enable microdescriptor fetching by default for clients. This allows
27996       clients to download a much smaller amount of directory information.
27997       To disable it (and go back to the old-style consensus and
27998       descriptors), set "UseMicrodescriptors 0" in your torrc file.
27999     - Tor's firewall-helper feature, introduced in 0.2.3.1-alpha (see the
28000       "PortForwarding" config option), now supports Windows.
28001     - When using an exit relay running 0.2.3.x, clients can now
28002       "optimistically" send data before the exit relay reports that
28003       the stream has opened. This saves a round trip when starting
28004       connections where the client speaks first (such as web browsing).
28005       This behavior is controlled by a consensus parameter (currently
28006       disabled). To turn it on or off manually, use the "OptimisticData"
28007       torrc option. Implements proposal 181; code by Ian Goldberg.
28009   o Major bugfixes (bufferevents, fixes on 0.2.3.1-alpha):
28010     - When using IOCP on Windows, we need to enable Libevent windows
28011       threading support.
28012     - The IOCP backend now works even when the user has not specified
28013       the (internal, debugging-only) _UseFilteringSSLBufferevents option.
28014       Fixes part of bug 3752.
28015     - Correctly record the bytes we've read and written when using
28016       bufferevents, so that we can include them in our bandwidth history
28017       and advertised bandwidth. Fixes bug 3803.
28018     - Apply rate-limiting only at the bottom of a chain of filtering
28019       bufferevents. This prevents us from filling up internal read
28020       buffers and violating rate-limits when filtering bufferevents
28021       are enabled. Fixes part of bug 3804.
28022     - Add high-watermarks to the output buffers for filtered
28023       bufferevents. This prevents us from filling up internal write
28024       buffers and wasting CPU cycles when filtering bufferevents are
28025       enabled. Fixes part of bug 3804.
28026     - Correctly notice when data has been written from a bufferevent
28027       without flushing it completely. Fixes bug 3805.
28028     - Fix a bug where server-side tunneled bufferevent-based directory
28029       streams would get closed prematurely. Fixes bug 3814.
28030     - Fix a use-after-free error with per-connection rate-limiting
28031       buckets. Fixes bug 3888.
28033   o Major bugfixes (also part of 0.2.2.31-rc):
28034     - If we're configured to write our ControlPorts to disk, only write
28035       them after switching UID and creating the data directory. This way,
28036       we don't fail when starting up with a nonexistent DataDirectory
28037       and a ControlPortWriteToFile setting based on that directory. Fixes
28038       bug 3747; bugfix on Tor 0.2.2.26-beta.
28040   o Minor features:
28041     - Added a new CONF_CHANGED event so that controllers can be notified
28042       of any configuration changes made by other controllers, or by the
28043       user. Implements ticket 1692.
28044     - Use evbuffer_copyout() in inspect_evbuffer(). This fixes a memory
28045       leak when using bufferevents, and lets Libevent worry about how to
28046       best copy data out of a buffer.
28047     - Replace files in stats/ rather than appending to them. Now that we
28048       include statistics in extra-info descriptors, it makes no sense to
28049       keep old statistics forever. Implements ticket 2930.
28051   o Minor features (build compatibility):
28052     - Limited, experimental support for building with nmake and MSVC.
28053     - Provide a substitute implementation of lround() for MSVC, which
28054       apparently lacks it. Patch from Gisle Vanem.
28056   o Minor features (also part of 0.2.2.31-rc):
28057     - Update to the August 2 2011 Maxmind GeoLite Country database.
28059   o Minor bugfixes (on 0.2.3.x-alpha):
28060     - Fix a spurious warning when parsing SOCKS requests with
28061       bufferevents enabled. Fixes bug 3615; bugfix on 0.2.3.2-alpha.
28062     - Get rid of a harmless warning that could happen on relays running
28063       with bufferevents. The warning was caused by someone doing an http
28064       request to a relay's orport. Also don't warn for a few related
28065       non-errors. Fixes bug 3700; bugfix on 0.2.3.1-alpha.
28067   o Minor bugfixes (on 2.2.x and earlier):
28068     - Correct the man page to explain that HashedControlPassword and
28069       CookieAuthentication can both be set, in which case either method
28070       is sufficient to authenticate to Tor. Bugfix on 0.2.0.7-alpha,
28071       when we decided to allow these config options to both be set. Issue
28072       raised by bug 3898.
28073     - The "--quiet" and "--hush" options now apply not only to Tor's
28074       behavior before logs are configured, but also to Tor's behavior in
28075       the absence of configured logs. Fixes bug 3550; bugfix on
28076       0.2.0.10-alpha.
28078   o Minor bugfixes (also part of 0.2.2.31-rc):
28079     - Write several files in text mode, on OSes that distinguish text
28080       mode from binary mode (namely, Windows). These files are:
28081       'buffer-stats', 'dirreq-stats', and 'entry-stats' on relays
28082       that collect those statistics; 'client_keys' and 'hostname' for
28083       hidden services that use authentication; and (in the tor-gencert
28084       utility) newly generated identity and signing keys. Previously,
28085       we wouldn't specify text mode or binary mode, leading to an
28086       assertion failure. Fixes bug 3607. Bugfix on 0.2.1.1-alpha (when
28087       the DirRecordUsageByCountry option which would have triggered
28088       the assertion failure was added), although this assertion failure
28089       would have occurred in tor-gencert on Windows in 0.2.0.1-alpha.
28090     - Selectively disable deprecation warnings on OS X because Lion
28091       started deprecating the shipped copy of openssl. Fixes bug 3643.
28092     - Remove an extra pair of quotation marks around the error
28093       message in control-port STATUS_GENERAL BUG events. Bugfix on
28094       0.1.2.6-alpha; fixes bug 3732.
28095     - When unable to format an address as a string, report its value
28096       as "???" rather than reusing the last formatted address. Bugfix
28097       on 0.2.1.5-alpha.
28099   o Code simplifications and refactoring:
28100     - Rewrite the listener-selection logic so that parsing which ports
28101       we want to listen on is now separate from binding to the ports
28102       we want.
28104   o Build changes:
28105     - Building Tor with bufferevent support now requires Libevent
28106       2.0.13-stable or later. Previous versions of Libevent had bugs in
28107       SSL-related bufferevents and related issues that would make Tor
28108       work badly with bufferevents. Requiring 2.0.13-stable also allows
28109       Tor with bufferevents to take advantage of Libevent APIs
28110       introduced after 2.0.8-rc.
28113 Changes in version 0.2.2.32 - 2011-08-27
28114   The Tor 0.2.2 release series is dedicated to the memory of Andreas
28115   Pfitzmann (1958-2010), a pioneer in anonymity and privacy research,
28116   a founder of the PETS community, a leader in our field, a mentor,
28117   and a friend. He left us with these words: "I had the possibility
28118   to contribute to this world that is not as it should be. I hope I
28119   could help in some areas to make the world a better place, and that
28120   I could also encourage other people to be engaged in improving the
28121   world. Please, stay engaged. This world needs you, your love, your
28122   initiative -- now I cannot be part of that anymore."
28124   Tor 0.2.2.32, the first stable release in the 0.2.2 branch, is finally
28125   ready. More than two years in the making, this release features improved
28126   client performance and hidden service reliability, better compatibility
28127   for Android, correct behavior for bridges that listen on more than
28128   one address, more extensible and flexible directory object handling,
28129   better reporting of network statistics, improved code security, and
28130   many many other features and bugfixes.
28133 Changes in version 0.2.2.31-rc - 2011-08-17
28134   Tor 0.2.2.31-rc is the second and hopefully final release candidate
28135   for the Tor 0.2.2.x series.
28137   o Major bugfixes:
28138     - Remove an extra pair of quotation marks around the error
28139       message in control-port STATUS_GENERAL BUG events. Bugfix on
28140       0.1.2.6-alpha; fixes bug 3732.
28141     - If we're configured to write our ControlPorts to disk, only write
28142       them after switching UID and creating the data directory. This way,
28143       we don't fail when starting up with a nonexistent DataDirectory
28144       and a ControlPortWriteToFile setting based on that directory. Fixes
28145       bug 3747; bugfix on Tor 0.2.2.26-beta.
28147   o Minor features:
28148     - Update to the August 2 2011 Maxmind GeoLite Country database.
28150   o Minor bugfixes:
28151     - Allow GETINFO fingerprint to return a fingerprint even when
28152       we have not yet built a router descriptor. Fixes bug 3577;
28153       bugfix on 0.2.0.1-alpha.
28154     - Write several files in text mode, on OSes that distinguish text
28155       mode from binary mode (namely, Windows). These files are:
28156       'buffer-stats', 'dirreq-stats', and 'entry-stats' on relays
28157       that collect those statistics; 'client_keys' and 'hostname' for
28158       hidden services that use authentication; and (in the tor-gencert
28159       utility) newly generated identity and signing keys. Previously,
28160       we wouldn't specify text mode or binary mode, leading to an
28161       assertion failure. Fixes bug 3607. Bugfix on 0.2.1.1-alpha (when
28162       the DirRecordUsageByCountry option which would have triggered
28163       the assertion failure was added), although this assertion failure
28164       would have occurred in tor-gencert on Windows in 0.2.0.1-alpha.
28165     - Selectively disable deprecation warnings on OS X because Lion
28166       started deprecating the shipped copy of openssl. Fixes bug 3643.
28167     - When unable to format an address as a string, report its value
28168       as "???" rather than reusing the last formatted address. Bugfix
28169       on 0.2.1.5-alpha.
28172 Changes in version 0.2.3.2-alpha - 2011-07-18
28173   Tor 0.2.3.2-alpha introduces two new experimental features:
28174   microdescriptors and pluggable transports. It also continues cleaning
28175   up a variety of recently introduced features.
28177   o Major features:
28178     - Clients can now use microdescriptors instead of regular descriptors
28179       to build circuits. Microdescriptors are authority-generated
28180       summaries of regular descriptors' contents, designed to change
28181       very rarely (see proposal 158 for details). This feature is
28182       designed to save bandwidth, especially for clients on slow internet
28183       connections. It's off by default for now, since nearly no caches
28184       support it, but it will be on-by-default for clients in a future
28185       version. You can use the UseMicrodescriptors option to turn it on.
28186     - Tor clients using bridges can now be configured to use a separate
28187       'transport' proxy for each bridge. This approach helps to resist
28188       censorship by allowing bridges to use protocol obfuscation
28189       plugins. It implements part of proposal 180. Implements ticket 2841.
28190     - While we're trying to bootstrap, record how many TLS connections
28191       fail in each state, and report which states saw the most failures
28192       in response to any bootstrap failures. This feature may speed up
28193       diagnosis of censorship events. Implements ticket 3116.
28195   o Major bugfixes (on 0.2.3.1-alpha):
28196     - When configuring a large set of nodes in EntryNodes (as with
28197       'EntryNodes {cc}' or 'EntryNodes 1.1.1.1/16'), choose only a
28198       random subset to be guards, and choose them in random
28199       order. Fixes bug 2798.
28200     - Tor could crash when remembering a consensus in a non-used consensus
28201       flavor without having a current consensus set. Fixes bug 3361.
28202     - Comparing an unknown address to a microdescriptor's shortened exit
28203       policy would always give a "rejected" result. Fixes bug 3599.
28204     - Using microdescriptors as a client no longer prevents Tor from
28205       uploading and downloading hidden service descriptors. Fixes
28206       bug 3601.
28208   o Minor features:
28209     - Allow nameservers with IPv6 address. Resolves bug 2574.
28210     - Accept attempts to include a password authenticator in the
28211       handshake, as supported by SOCKS5. This handles SOCKS clients that
28212       don't know how to omit a password when authenticating. Resolves
28213       bug 1666.
28214     - When configuring a large set of nodes in EntryNodes, and there are
28215       enough of them listed as Guard so that we don't need to consider
28216       the non-guard entries, prefer the ones listed with the Guard flag.
28217     - Check for and recover from inconsistency in the microdescriptor
28218       cache. This will make it harder for us to accidentally free a
28219       microdescriptor without removing it from the appropriate data
28220       structures. Fixes issue 3135; issue noted by "wanoskarnet".
28221     - Log SSL state transitions at log level DEBUG, log domain
28222       HANDSHAKE. This can be useful for debugging censorship events.
28223       Implements ticket 3264.
28224     - Add port 6523 (Gobby) to LongLivedPorts. Patch by intrigeri;
28225       implements ticket 3439.
28227   o Minor bugfixes (on 0.2.3.1-alpha):
28228     - Do not free all general-purpose regular descriptors just
28229       because microdescriptor use is enabled. Fixes bug 3113.
28230     - Correctly link libevent_openssl when --enable-static-libevent
28231       is passed to configure. Fixes bug 3118.
28232     - Bridges should not complain during their heartbeat log messages that
28233       they are unlisted in the consensus: that's more or less the point
28234       of being a bridge. Fixes bug 3183.
28235     - Report a SIGNAL event to controllers when acting on a delayed
28236       SIGNAL NEWNYM command. Previously, we would report a SIGNAL
28237       event to the controller if we acted on a SIGNAL NEWNYM command
28238       immediately, and otherwise not report a SIGNAL event for the
28239       command at all. Fixes bug 3349.
28240     - Fix a crash when handling the SIGNAL controller command or
28241       reporting ERR-level status events with bufferevents enabled. Found
28242       by Robert Ransom. Fixes bug 3367.
28243     - Always ship the tor-fw-helper manpage in our release tarballs.
28244       Fixes bug 3389. Reported by Stephen Walker.
28245     - Fix a class of double-mark-for-close bugs when bufferevents
28246       are enabled. Fixes bug 3403.
28247     - Update tor-fw-helper to support libnatpmp-20110618. Fixes bug 3434.
28248     - Add SIGNAL to the list returned by the 'GETINFO events/names'
28249       control-port command. Fixes part of bug 3465.
28250     - Prevent using negative indices during unit test runs when read_all()
28251       fails. Spotted by coverity.
28252     - Fix a rare memory leak when checking the nodelist without it being
28253       present. Found by coverity.
28254     - Only try to download a microdescriptor-flavored consensus from
28255       a directory cache that provides them.
28257   o Minor bugfixes (on 0.2.2.x and earlier):
28258     - Assert that hidden-service-related operations are not performed
28259       using single-hop circuits. Previously, Tor would assert that
28260       client-side streams are not attached to single-hop circuits,
28261       but not that other sensitive operations on the client and service
28262       side are not performed using single-hop circuits. Fixes bug 3332;
28263       bugfix on 0.0.6.
28264     - Don't publish a new relay descriptor when we reload our onion key,
28265       unless the onion key has actually changed. Fixes bug 3263 and
28266       resolves another cause of bug 1810. Bugfix on 0.1.1.11-alpha.
28267     - Allow GETINFO fingerprint to return a fingerprint even when
28268       we have not yet built a router descriptor. Fixes bug 3577;
28269       bugfix on 0.2.0.1-alpha.
28270     - Make 'tor --digests' list hashes of all Tor source files. Bugfix
28271       on 0.2.2.4-alpha; fixes bug 3427.
28273   o Code simplification and refactoring:
28274     - Use tor_sscanf() in place of scanf() in more places through the
28275       code. This makes us a little more locale-independent, and
28276       should help shut up code-analysis tools that can't tell
28277       a safe sscanf string from a dangerous one.
28278     - Use tt_assert(), not tor_assert(), for checking for test failures.
28279       This makes the unit tests more able to go on in the event that
28280       one of them fails.
28281     - Split connection_about_to_close() into separate functions for each
28282       connection type.
28284   o Build changes:
28285     - On Windows, we now define the _WIN32_WINNT macros only if they
28286       are not already defined. This lets the person building Tor decide,
28287       if they want, to require a later version of Windows.
28290 Changes in version 0.2.2.30-rc - 2011-07-07
28291   Tor 0.2.2.30-rc is the first release candidate for the Tor 0.2.2.x
28292   series. It fixes a few smaller bugs, but generally appears stable.
28293   Please test it and let us know whether it is!
28295   o Minor bugfixes:
28296     - Send a SUCCEEDED stream event to the controller when a reverse
28297       resolve succeeded. Fixes bug 3536; bugfix on 0.0.8pre1. Issue
28298       discovered by katmagic.
28299     - Always NUL-terminate the sun_path field of a sockaddr_un before
28300       passing it to the kernel. (Not a security issue: kernels are
28301       smart enough to reject bad sockaddr_uns.) Found by Coverity;
28302       CID #428. Bugfix on Tor 0.2.0.3-alpha.
28303     - Don't stack-allocate the list of supplementary GIDs when we're
28304       about to log them. Stack-allocating NGROUPS_MAX gid_t elements
28305       could take up to 256K, which is way too much stack. Found by
28306       Coverity; CID #450. Bugfix on 0.2.1.7-alpha.
28307     - Add BUILDTIMEOUT_SET to the list returned by the 'GETINFO
28308       events/names' control-port command. Bugfix on 0.2.2.9-alpha;
28309       fixes part of bug 3465.
28310     - Fix a memory leak when receiving a descriptor for a hidden
28311       service we didn't ask for. Found by Coverity; CID #30. Bugfix
28312       on 0.2.2.26-beta.
28314   o Minor features:
28315     - Update to the July 1 2011 Maxmind GeoLite Country database.
28318 Changes in version 0.2.2.29-beta - 2011-06-20
28319   Tor 0.2.2.29-beta reverts an accidental behavior change for users who
28320   have bridge lines in their torrc but don't want to use them; gets
28321   us closer to having the control socket feature working on Debian;
28322   and fixes a variety of smaller bugs.
28324   o Major bugfixes:
28325     - Revert the UseBridges option to its behavior before 0.2.2.28-beta.
28326       When we changed the default behavior to "use bridges if any
28327       are listed in the torrc", we surprised users who had bridges
28328       in their torrc files but who didn't actually want to use them.
28329       Partial resolution for bug 3354.
28331   o Privacy fixes:
28332     - Don't attach new streams to old rendezvous circuits after SIGNAL
28333       NEWNYM. Previously, we would keep using an existing rendezvous
28334       circuit if it remained open (i.e. if it were kept open by a
28335       long-lived stream, or if a new stream were attached to it before
28336       Tor could notice that it was old and no longer in use). Bugfix on
28337       0.1.1.15-rc; fixes bug 3375.
28339   o Minor bugfixes:
28340     - Fix a bug when using ControlSocketsGroupWritable with User. The
28341       directory's group would be checked against the current group, not
28342       the configured group. Patch by Jérémy Bobbio. Fixes bug 3393;
28343       bugfix on 0.2.2.26-beta.
28344     - Make connection_printf_to_buf()'s behavior sane. Its callers
28345       expect it to emit a CRLF iff the format string ends with CRLF;
28346       it actually emitted a CRLF iff (a) the format string ended with
28347       CRLF or (b) the resulting string was over 1023 characters long or
28348       (c) the format string did not end with CRLF *and* the resulting
28349       string was 1021 characters long or longer. Bugfix on 0.1.1.9-alpha;
28350       fixes part of bug 3407.
28351     - Make send_control_event_impl()'s behavior sane. Its callers
28352       expect it to always emit a CRLF at the end of the string; it
28353       might have emitted extra control characters as well. Bugfix on
28354       0.1.1.9-alpha; fixes another part of bug 3407.
28355     - Make crypto_rand_int() check the value of its input correctly.
28356       Previously, it accepted values up to UINT_MAX, but could return a
28357       negative number if given a value above INT_MAX+1. Found by George
28358       Kadianakis. Fixes bug 3306; bugfix on 0.2.2pre14.
28359     - Avoid a segfault when reading a malformed circuit build state
28360       with more than INT_MAX entries. Found by wanoskarnet. Bugfix on
28361       0.2.2.4-alpha.
28362     - When asked about a DNS record type we don't support via a
28363       client DNSPort, reply with NOTIMPL rather than an empty
28364       reply. Patch by intrigeri. Fixes bug 3369; bugfix on 2.0.1-alpha.
28365     - Fix a rare memory leak during stats writing. Found by coverity.
28367   o Minor features:
28368     - Update to the June 1 2011 Maxmind GeoLite Country database.
28370   o Code simplifications and refactoring:
28371     - Remove some dead code as indicated by coverity.
28372     - Remove a few dead assignments during router parsing. Found by
28373       coverity.
28374     - Add some forgotten return value checks during unit tests. Found
28375       by coverity.
28376     - Don't use 1-bit wide signed bit fields. Found by coverity.
28379 Changes in version 0.2.2.28-beta - 2011-06-04
28380   Tor 0.2.2.28-beta makes great progress towards a new stable release: we
28381   fixed a big bug in whether relays stay in the consensus consistently,
28382   we moved closer to handling bridges and hidden services correctly,
28383   and we started the process of better handling the dreaded "my Vidalia
28384   died, and now my Tor demands a password when I try to reconnect to it"
28385   usability issue.
28387   o Major bugfixes:
28388     - Don't decide to make a new descriptor when receiving a HUP signal.
28389       This bug has caused a lot of 0.2.2.x relays to disappear from the
28390       consensus periodically. Fixes the most common case of triggering
28391       bug 1810; bugfix on 0.2.2.7-alpha.
28392     - Actually allow nameservers with IPv6 addresses. Fixes bug 2574.
28393     - Don't try to build descriptors if "ORPort auto" is set and we
28394       don't know our actual ORPort yet. Fix for bug 3216; bugfix on
28395       0.2.2.26-beta.
28396     - Resolve a crash that occurred when setting BridgeRelay to 1 with
28397       accounting enabled. Fixes bug 3228; bugfix on 0.2.2.18-alpha.
28398     - Apply circuit timeouts to opened hidden-service-related circuits
28399       based on the correct start time. Previously, we would apply the
28400       circuit build timeout based on time since the circuit's creation;
28401       it was supposed to be applied based on time since the circuit
28402       entered its current state. Bugfix on 0.0.6; fixes part of bug 1297.
28403     - Use the same circuit timeout for client-side introduction
28404       circuits as for other four-hop circuits, rather than the timeout
28405       for single-hop directory-fetch circuits; the shorter timeout may
28406       have been appropriate with the static circuit build timeout in
28407       0.2.1.x and earlier, but caused many hidden service access attempts
28408       to fail with the adaptive CBT introduced in 0.2.2.2-alpha. Bugfix
28409       on 0.2.2.2-alpha; fixes another part of bug 1297.
28410     - In ticket 2511 we fixed a case where you could use an unconfigured
28411       bridge if you had configured it as a bridge the last time you ran
28412       Tor. Now fix another edge case: if you had configured it as a bridge
28413       but then switched to a different bridge via the controller, you
28414       would still be willing to use the old one. Bugfix on 0.2.0.1-alpha;
28415       fixes bug 3321.
28417   o Major features:
28418     - Add an __OwningControllerProcess configuration option and a
28419       TAKEOWNERSHIP control-port command. Now a Tor controller can ensure
28420       that when it exits, Tor will shut down. Implements feature 3049.
28421     - If "UseBridges 1" is set and no bridges are configured, Tor will
28422       now refuse to build any circuits until some bridges are set.
28423       If "UseBridges auto" is set, Tor will use bridges if they are
28424       configured and we are not running as a server, but otherwise will
28425       make circuits as usual. The new default is "auto". Patch by anonym,
28426       so the Tails LiveCD can stop automatically revealing you as a Tor
28427       user on startup.
28429   o Minor bugfixes:
28430     - Fix warnings from GCC 4.6's "-Wunused-but-set-variable" option.
28431     - Remove a trailing asterisk from "exit-policy/default" in the
28432       output of the control port command "GETINFO info/names". Bugfix
28433       on 0.1.2.5-alpha.
28434     - Use a wide type to hold sockets when built for 64-bit Windows builds.
28435       Fixes bug 3270.
28436     - Warn when the user configures two HiddenServiceDir lines that point
28437       to the same directory. Bugfix on 0.0.6 (the version introducing
28438       HiddenServiceDir); fixes bug 3289.
28439     - Remove dead code from rend_cache_lookup_v2_desc_as_dir. Fixes
28440       part of bug 2748; bugfix on 0.2.0.10-alpha.
28441     - Log malformed requests for rendezvous descriptors as protocol
28442       warnings, not warnings. Also, use a more informative log message
28443       in case someone sees it at log level warning without prior
28444       info-level messages. Fixes the other part of bug 2748; bugfix
28445       on 0.2.0.10-alpha.
28446     - Clear the table recording the time of the last request for each
28447       hidden service descriptor from each HS directory on SIGNAL NEWNYM.
28448       Previously, we would clear our HS descriptor cache on SIGNAL
28449       NEWNYM, but if we had previously retrieved a descriptor (or tried
28450       to) from every directory responsible for it, we would refuse to
28451       fetch it again for up to 15 minutes. Bugfix on 0.2.2.25-alpha;
28452       fixes bug 3309.
28453     - Fix a log message that said "bits" while displaying a value in
28454       bytes. Found by wanoskarnet. Fixes bug 3318; bugfix on
28455       0.2.0.1-alpha.
28456     - When checking for 1024-bit keys, check for 1024 bits, not 128
28457       bytes. This allows Tor to correctly discard keys of length 1017
28458       through 1023. Bugfix on 0.0.9pre5.
28460   o Minor features:
28461     - Relays now log the reason for publishing a new relay descriptor,
28462       so we have a better chance of hunting down instances of bug 1810.
28463       Resolves ticket 3252.
28464     - Revise most log messages that refer to nodes by nickname to
28465       instead use the "$key=nickname at address" format. This should be
28466       more useful, especially since nicknames are less and less likely
28467       to be unique. Resolves ticket 3045.
28468     - Log (at info level) when purging pieces of hidden-service-client
28469       state because of SIGNAL NEWNYM.
28471   o Removed options:
28472     - Remove undocumented option "-F" from tor-resolve: it hasn't done
28473       anything since 0.2.1.16-rc.
28476 Changes in version 0.2.2.27-beta - 2011-05-18
28477   Tor 0.2.2.27-beta fixes a bridge-related stability bug in the previous
28478   release, and also adds a few more general bugfixes.
28480   o Major bugfixes:
28481     - Fix a crash bug when changing bridges in a running Tor process.
28482       Fixes bug 3213; bugfix on 0.2.2.26-beta.
28483     - When the controller configures a new bridge, don't wait 10 to 60
28484       seconds before trying to fetch its descriptor. Bugfix on
28485       0.2.0.3-alpha; fixes bug 3198 (suggested by 2355).
28487   o Minor bugfixes:
28488     - Require that onion keys have exponent 65537 in microdescriptors too.
28489       Fixes more of bug 3207; bugfix on 0.2.2.26-beta.
28490     - Tor used to limit HttpProxyAuthenticator values to 48 characters.
28491       Changed the limit to 512 characters by removing base64 newlines.
28492       Fixes bug 2752. Fix by Michael Yakubovich.
28493     - When a client starts or stops using bridges, never use a circuit
28494       that was built before the configuration change. This behavior could
28495       put at risk a user who uses bridges to ensure that her traffic
28496       only goes to the chosen addresses. Bugfix on 0.2.0.3-alpha; fixes
28497       bug 3200.
28500 Changes in version 0.2.2.26-beta - 2011-05-17
28501   Tor 0.2.2.26-beta fixes a variety of potential privacy problems. It
28502   also introduces a new "socksport auto" approach that should make it
28503   easier to run multiple Tors on the same system, and does a lot of
28504   cleanup to get us closer to a release candidate.
28506   o Security/privacy fixes:
28507     - Replace all potentially sensitive memory comparison operations
28508       with versions whose runtime does not depend on the data being
28509       compared. This will help resist a class of attacks where an
28510       adversary can use variations in timing information to learn
28511       sensitive data. Fix for one case of bug 3122. (Safe memcmp
28512       implementation by Robert Ransom based partially on code by DJB.)
28513     - When receiving a hidden service descriptor, check that it is for
28514       the hidden service we wanted. Previously, Tor would store any
28515       hidden service descriptors that a directory gave it, whether it
28516       wanted them or not. This wouldn't have let an attacker impersonate
28517       a hidden service, but it did let directories pre-seed a client
28518       with descriptors that it didn't want. Bugfix on 0.0.6.
28519     - On SIGHUP, do not clear out all TrackHostExits mappings, client
28520       DNS cache entries, and virtual address mappings: that's what
28521       NEWNYM is for. Fixes bug 1345; bugfix on 0.1.0.1-rc.
28523   o Major features:
28524     - The options SocksPort, ControlPort, and so on now all accept a
28525       value "auto" that opens a socket on an OS-selected port. A
28526       new ControlPortWriteToFile option tells Tor to write its
28527       actual control port or ports to a chosen file. If the option
28528       ControlPortFileGroupReadable is set, the file is created as
28529       group-readable. Now users can run two Tor clients on the same
28530       system without needing to manually mess with parameters. Resolves
28531       part of ticket 3076.
28532     - Set SO_REUSEADDR on all sockets, not just listeners. This should
28533       help busy exit nodes avoid running out of useable ports just
28534       because all the ports have been used in the near past. Resolves
28535       issue 2850.
28537   o Minor features:
28538     - New "GETINFO net/listeners/(type)" controller command to return
28539       a list of addresses and ports that are bound for listeners for a
28540       given connection type. This is useful when the user has configured
28541       "SocksPort auto" and the controller needs to know which port got
28542       chosen. Resolves another part of ticket 3076.
28543     - Add a new ControlSocketsGroupWritable configuration option: when
28544       it is turned on, ControlSockets are group-writeable by the default
28545       group of the current user. Patch by Jérémy Bobbio; implements
28546       ticket 2972.
28547     - Tor now refuses to create a ControlSocket in a directory that is
28548       world-readable (or group-readable if ControlSocketsGroupWritable
28549       is 0). This is necessary because some operating systems do not
28550       enforce permissions on an AF_UNIX sockets. Permissions on the
28551       directory holding the socket, however, seems to work everywhere.
28552     - Rate-limit a warning about failures to download v2 networkstatus
28553       documents. Resolves part of bug 1352.
28554     - Backport code from 0.2.3.x that allows directory authorities to
28555       clean their microdescriptor caches. Needed to resolve bug 2230.
28556     - When an HTTPS proxy reports "403 Forbidden", we now explain
28557       what it means rather than calling it an unexpected status code.
28558       Closes bug 2503. Patch from Michael Yakubovich.
28559     - Update to the May 1 2011 Maxmind GeoLite Country database.
28561   o Minor bugfixes:
28562     - Authorities now clean their microdesc cache periodically and when
28563       reading from disk initially, not only when adding new descriptors.
28564       This prevents a bug where we could lose microdescriptors. Bugfix
28565       on 0.2.2.6-alpha. Fixes bug 2230.
28566     - Do not crash when our configuration file becomes unreadable, for
28567       example due to a permissions change, between when we start up
28568       and when a controller calls SAVECONF. Fixes bug 3135; bugfix
28569       on 0.0.9pre6.
28570     - Avoid a bug that would keep us from replacing a microdescriptor
28571       cache on Windows. (We would try to replace the file while still
28572       holding it open. That's fine on Unix, but Windows doesn't let us
28573       do that.) Bugfix on 0.2.2.6-alpha; bug found by wanoskarnet.
28574     - Add missing explanations for the authority-related torrc options
28575       RephistTrackTime, BridgePassword, and V3AuthUseLegacyKey in the
28576       man page. Resolves issue 2379.
28577     - As an authority, do not upload our own vote or signature set to
28578       ourself. It would tell us nothing new, and as of 0.2.2.24-alpha,
28579       it would get flagged as a duplicate. Resolves bug 3026.
28580     - Accept hidden service descriptors if we think we might be a hidden
28581       service directory, regardless of what our consensus says. This
28582       helps robustness, since clients and hidden services can sometimes
28583       have a more up-to-date view of the network consensus than we do,
28584       and if they think that the directory authorities list us a HSDir,
28585       we might actually be one. Related to bug 2732; bugfix on
28586       0.2.0.10-alpha.
28587     - When a controller changes TrackHostExits, remove mappings for
28588       hosts that should no longer have their exits tracked. Bugfix on
28589       0.1.0.1-rc.
28590     - When a controller changes VirtualAddrNetwork, remove any mappings
28591       for hosts that were automapped to the old network. Bugfix on
28592       0.1.1.19-rc.
28593     - When a controller changes one of the AutomapHosts* options, remove
28594       any mappings for hosts that should no longer be automapped. Bugfix
28595       on 0.2.0.1-alpha.
28596     - Do not reset the bridge descriptor download status every time we
28597       re-parse our configuration or get a configuration change. Fixes
28598       bug 3019; bugfix on 0.2.0.3-alpha.
28600   o Minor bugfixes (code cleanup):
28601     - When loading the microdesc journal, remember its current size.
28602       In 0.2.2, this helps prevent the microdesc journal from growing
28603       without limit on authorities (who are the only ones to use it in
28604       0.2.2). Fixes a part of bug 2230; bugfix on 0.2.2.6-alpha.
28605       Fix posted by "cypherpunks."
28606     - The microdesc journal is supposed to get rebuilt only if it is
28607       at least _half_ the length of the store, not _twice_ the length
28608       of the store. Bugfix on 0.2.2.6-alpha; fixes part of bug 2230.
28609     - Fix a potential null-pointer dereference while computing a
28610       consensus. Bugfix on 0.2.0.3-alpha, found with the help of
28611       clang's analyzer.
28612     - Avoid a possible null-pointer dereference when rebuilding the mdesc
28613       cache without actually having any descriptors to cache. Bugfix on
28614       0.2.2.6-alpha. Issue discovered using clang's static analyzer.
28615     - If we fail to compute the identity digest of a v3 legacy keypair,
28616       warn, and don't use a buffer-full of junk instead. Bugfix on
28617       0.2.1.1-alpha; fixes bug 3106.
28618     - Resolve an untriggerable issue in smartlist_string_num_isin(),
28619       where if the function had ever in the future been used to check
28620       for the presence of a too-large number, it would have given an
28621       incorrect result. (Fortunately, we only used it for 16-bit
28622       values.) Fixes bug 3175; bugfix on 0.1.0.1-rc.
28623     - Require that introduction point keys and onion handshake keys
28624       have a public exponent of 65537. Starts to fix bug 3207; bugfix
28625       on 0.2.0.10-alpha.
28627   o Removed features:
28628     - Caches no longer download and serve v2 networkstatus documents
28629       unless FetchV2Networkstatus flag is set: these documents haven't
28630       haven't been used by clients or relays since 0.2.0.x. Resolves
28631       bug 3022.
28634 Changes in version 0.2.3.1-alpha - 2011-05-05
28635   Tor 0.2.3.1-alpha adds some new experimental features, including support
28636   for an improved network IO backend, IOCP networking on Windows,
28637   microdescriptor caching, "fast-start" support for streams, and automatic
28638   home router configuration. There are also numerous internal improvements
28639   to try to make the code easier for developers to work with.
28641   This is the first alpha release in a new series, so expect there to be
28642   bugs. Users who would rather test out a more stable branch should
28643   stay with 0.2.2.x for now.
28645   o Major features:
28646     - Tor can now optionally build with the "bufferevents" buffered IO
28647       backend provided by Libevent 2. To use this feature, make sure you
28648       have the latest possible version of Libevent, and pass the
28649       --enable-bufferevents flag to configure when building Tor from
28650       source. This feature will make our networking code more flexible,
28651       let us stack layers on each other, and let us use more efficient
28652       zero-copy transports where available.
28653     - As an experimental feature, Tor can use IOCP for networking on Windows.
28654       Once this code is tuned and optimized, it promises much better
28655       performance than the select-based backend we've used in the past. To
28656       try this feature, you must build Tor with Libevent 2, configure Tor
28657       with the "bufferevents" buffered IO backend, and add "DisableIOCP 0" to
28658       your torrc. There are known bugs here: only try this if you can help
28659       debug it as it breaks.
28660     - The EntryNodes option can now include country codes like {de} or IP
28661       addresses or network masks. Previously we had disallowed these options
28662       because we didn't have an efficient way to keep the list up to
28663       date. Fixes bug 1982, but see bug 2798 for an unresolved issue here.
28664     - Exit nodes now accept and queue data on not-yet-connected streams.
28665       Previously, the client wasn't allowed to send data until the stream was
28666       connected, which slowed down all connections. This change will enable
28667       clients to perform a "fast-start" on streams and send data without
28668       having to wait for a confirmation that the stream has opened. (Patch
28669       from Ian Goldberg; implements the server side of Proposal 174.)
28670     - Tor now has initial support for automatic port mapping on the many
28671       home routers that support NAT-PMP or UPnP. (Not yet supported on
28672       Windows). To build the support code, you'll need to have libnatpnp
28673       library and/or the libminiupnpc library, and you'll need to enable the
28674       feature specifically by passing "--enable-upnp" and/or
28675       "--enable-natpnp" to configure. To turn it on, use the new
28676       PortForwarding option.
28677     - Caches now download, cache, and serve multiple "flavors" of the
28678       consensus, including a flavor that describes microdescriptors.
28679     - Caches now download, cache, and serve microdescriptors -- small
28680       summaries of router descriptors that are authenticated by all of the
28681       directory authorities. Once enough caches are running this code,
28682       clients will be able to save significant amounts of directory bandwidth
28683       by downloading microdescriptors instead of router descriptors.
28685   o Minor features:
28686     - Make logging resolution configurable with a new LogTimeGranularity
28687       option, and change the default from 1 millisecond to 1 second.
28688       Implements enhancement 1668.
28689     - We log which torrc file we're using on startup. Implements ticket
28690       2444.
28691     - Ordinarily, Tor does not count traffic from private addresses (like
28692       127.0.0.1 or 10.0.0.1) when calculating rate limits or accounting.
28693       There is now a new option, CountPrivateBandwidth, to disable this
28694       behavior. Patch from Daniel Cagara.
28695     - New --enable-static-tor configure option for building Tor as
28696       statically as possible. Idea, general hackery and thoughts from
28697       Alexei Czeskis, John Gilmore, Jacob Appelbaum. Implements ticket
28698       2702.
28699     - If you set the NumCPUs option to 0, Tor will now try to detect how
28700       many CPUs you have. This is the new default behavior.
28701     - Turn on directory request statistics by default and include them in
28702       extra-info descriptors. Don't break if we have no GeoIP database.
28703     - Relays that set "ConnDirectionStatistics 1" write statistics on the
28704       bidirectional use of connections to disk every 24 hours.
28705     - Add a GeoIP file digest to the extra-info descriptor. Implements
28706       enhancement 1883.
28707     - The NodeFamily option -- which let you declare that you want to
28708       consider nodes to be part of a family whether they list themselves
28709       that way or not -- now allows IP address ranges and country codes.
28710     - Add a new 'Heartbeat' log message type to periodically log a message
28711       describing Tor's status at level Notice. This feature is meant for
28712       operators who log at notice, and want to make sure that their Tor
28713       server is still working. Implementation by George Kadianakis.
28715   o Minor bugfixes (on 0.2.2.25-alpha):
28716     - When loading the microdesc journal, remember its current size.
28717       In 0.2.2, this helps prevent the microdesc journal from growing
28718       without limit on authorities (who are the only ones to use it in
28719       0.2.2). Fixes a part of bug 2230; bugfix on 0.2.2.6-alpha.
28720       Fix posted by "cypherpunks."
28721     - The microdesc journal is supposed to get rebuilt only if it is
28722       at least _half_ the length of the store, not _twice_ the length
28723       of the store. Bugfix on 0.2.2.6-alpha; fixes part of bug 2230.
28724     - If as an authority we fail to compute the identity digest of a v3
28725       legacy keypair, warn, and don't use a buffer-full of junk instead.
28726       Bugfix on 0.2.1.1-alpha; fixes bug 3106.
28727     - Authorities now clean their microdesc cache periodically and when
28728       reading from disk initially, not only when adding new descriptors.
28729       This prevents a bug where we could lose microdescriptors. Bugfix
28730       on 0.2.2.6-alpha.
28732   o Minor features (controller):
28733     - Add a new SIGNAL event to the controller interface so that
28734       controllers can be notified when Tor handles a signal. Resolves
28735       issue 1955. Patch by John Brooks.
28736     - Add a new GETINFO option to get total bytes read and written. Patch
28737       from pipe, revised by atagar. Resolves ticket 2345.
28738     - Implement some GETINFO controller fields to provide information about
28739       the Tor process's pid, euid, username, and resource limits.
28741   o Build changes:
28742     - Our build system requires automake 1.6 or later to create the
28743       Makefile.in files. Previously, you could have used 1.4.
28744       This only affects developers and people building Tor from git;
28745       people who build Tor from the source distribution without changing
28746       the Makefile.am files should be fine.
28747     - Our autogen.sh script uses autoreconf to launch autoconf, automake, and
28748       so on. This is more robust against some of the failure modes
28749       associated with running the autotools pieces on their own.
28751   o Minor packaging issues:
28752     - On OpenSUSE, create the /var/run/tor directory on startup if it is not
28753       already created. Patch from Andreas Stieger. Fixes bug 2573.
28755   o Code simplifications and refactoring:
28756     - A major revision to our internal node-selecting and listing logic.
28757       Tor already had at least two major ways to look at the question of
28758       "which Tor servers do we know about": a list of router descriptors,
28759       and a list of entries in the current consensus. With
28760       microdescriptors, we're adding a third. Having so many systems
28761       without an abstraction layer over them was hurting the codebase.
28762       Now, we have a new "node_t" abstraction that presents a consistent
28763       interface to a client's view of a Tor node, and holds (nearly) all
28764       of the mutable state formerly in routerinfo_t and routerstatus_t.
28765     - The helper programs tor-gencert, tor-resolve, and tor-checkkey
28766       no longer link against Libevent: they never used it, but
28767       our library structure used to force them to link it.
28769   o Removed features:
28770     - Remove some old code to work around even older versions of Tor that
28771       used forked processes to handle DNS requests. Such versions of Tor
28772       are no longer in use as servers.
28774   o Documentation fixes:
28775     - Correct a broken faq link in the INSTALL file. Fixes bug 2307.
28776     - Add missing documentation for the authority-related torrc options
28777       RephistTrackTime, BridgePassword, and V3AuthUseLegacyKey. Resolves
28778       issue 2379.
28781 Changes in version 0.2.2.25-alpha - 2011-04-29
28782   Tor 0.2.2.25-alpha fixes many bugs: hidden service clients are more
28783   robust, routers no longer overreport their bandwidth, Win7 should crash
28784   a little less, and NEWNYM (as used by Vidalia's "new identity" button)
28785   now prevents hidden service-related activity from being linkable. It
28786   provides more information to Vidalia so you can see if your bridge is
28787   working. Also, 0.2.2.25-alpha revamps the Entry/Exit/ExcludeNodes and
28788   StrictNodes configuration options to make them more reliable, more
28789   understandable, and more regularly applied. If you use those options,
28790   please see the revised documentation for them in the manual page.
28792   o Major bugfixes:
28793     - Relays were publishing grossly inflated bandwidth values because
28794       they were writing their state files wrong--now they write the
28795       correct value. Also, resume reading bandwidth history from the
28796       state file correctly. Fixes bug 2704; bugfix on 0.2.2.23-alpha.
28797     - Improve hidden service robustness: When we find that we have
28798       extended a hidden service's introduction circuit to a relay not
28799       listed as an introduction point in the HS descriptor we currently
28800       have, retry with an introduction point from the current
28801       descriptor. Previously we would just give up. Fixes bugs 1024 and
28802       1930; bugfix on 0.2.0.10-alpha.
28803     - Clients now stop trying to use an exit node associated with a given
28804       destination by TrackHostExits if they fail to reach that exit node.
28805       Fixes bug 2999. Bugfix on 0.2.0.20-rc.
28806     - Fix crash bug on platforms where gmtime and localtime can return
28807       NULL. Windows 7 users were running into this one. Fixes part of bug
28808       2077. Bugfix on all versions of Tor. Found by boboper.
28810   o Security and stability fixes:
28811     - Don't double-free a parsable, but invalid, microdescriptor, even if
28812       it is followed in the blob we're parsing by an unparsable
28813       microdescriptor. Fixes an issue reported in a comment on bug 2954.
28814       Bugfix on 0.2.2.6-alpha; fix by "cypherpunks".
28815     - If the Nickname configuration option isn't given, Tor would pick a
28816       nickname based on the local hostname as the nickname for a relay.
28817       Because nicknames are not very important in today's Tor and the
28818       "Unnamed" nickname has been implemented, this is now problematic
28819       behavior: It leaks information about the hostname without being
28820       useful at all. Fixes bug 2979; bugfix on 0.1.2.2-alpha, which
28821       introduced the Unnamed nickname. Reported by tagnaq.
28822     - Fix an uncommon assertion failure when running with DNSPort under
28823       heavy load. Fixes bug 2933; bugfix on 0.2.0.1-alpha.
28824     - Avoid linkability based on cached hidden service descriptors: forget
28825       all hidden service descriptors cached as a client when processing a
28826       SIGNAL NEWNYM command. Fixes bug 3000; bugfix on 0.0.6.
28828   o Major features:
28829     - Export GeoIP information on bridge usage to controllers even if we
28830       have not yet been running for 24 hours. Now Vidalia bridge operators
28831       can get more accurate and immediate feedback about their
28832       contributions to the network.
28834   o Major features and bugfixes (node selection):
28835     - Revise and reconcile the meaning of the ExitNodes, EntryNodes,
28836       ExcludeEntryNodes, ExcludeExitNodes, ExcludeNodes, and StrictNodes
28837       options. Previously, we had been ambiguous in describing what
28838       counted as an "exit" node, and what operations exactly "StrictNodes
28839       0" would permit. This created confusion when people saw nodes built
28840       through unexpected circuits, and made it hard to tell real bugs from
28841       surprises. Now the intended behavior is:
28842         . "Exit", in the context of ExitNodes and ExcludeExitNodes, means
28843           a node that delivers user traffic outside the Tor network.
28844         . "Entry", in the context of EntryNodes, means a node used as the
28845           first hop of a multihop circuit. It doesn't include direct
28846           connections to directory servers.
28847         . "ExcludeNodes" applies to all nodes.
28848         . "StrictNodes" changes the behavior of ExcludeNodes only. When
28849           StrictNodes is set, Tor should avoid all nodes listed in
28850           ExcludeNodes, even when it will make user requests fail. When
28851           StrictNodes is *not* set, then Tor should follow ExcludeNodes
28852           whenever it can, except when it must use an excluded node to
28853           perform self-tests, connect to a hidden service, provide a
28854           hidden service, fulfill a .exit request, upload directory
28855           information, or fetch directory information.
28856       Collectively, the changes to implement the behavior fix bug 1090.
28857     - ExcludeNodes now takes precedence over EntryNodes and ExitNodes: if
28858       a node is listed in both, it's treated as excluded.
28859     - ExcludeNodes now applies to directory nodes -- as a preference if
28860       StrictNodes is 0, or an absolute requirement if StrictNodes is 1.
28861       Don't exclude all the directory authorities and set StrictNodes to 1
28862       unless you really want your Tor to break.
28863     - ExcludeNodes and ExcludeExitNodes now override exit enclaving.
28864     - ExcludeExitNodes now overrides .exit requests.
28865     - We don't use bridges listed in ExcludeNodes.
28866     - When StrictNodes is 1:
28867        . We now apply ExcludeNodes to hidden service introduction points
28868          and to rendezvous points selected by hidden service users. This
28869          can make your hidden service less reliable: use it with caution!
28870        . If we have used ExcludeNodes on ourself, do not try relay
28871          reachability self-tests.
28872        . If we have excluded all the directory authorities, we will not
28873          even try to upload our descriptor if we're a relay.
28874        . Do not honor .exit requests to an excluded node.
28875     - Remove a misfeature that caused us to ignore the Fast/Stable flags
28876       when ExitNodes is set. Bugfix on 0.2.2.7-alpha.
28877     - When the set of permitted nodes changes, we now remove any mappings
28878       introduced via TrackExitHosts to now-excluded nodes. Bugfix on
28879       0.1.0.1-rc.
28880     - We never cannibalize a circuit that had excluded nodes on it, even
28881       if StrictNodes is 0. Bugfix on 0.1.0.1-rc.
28882     - Revert a change where we would be laxer about attaching streams to
28883       circuits than when building the circuits. This was meant to prevent
28884       a set of bugs where streams were never attachable, but our improved
28885       code here should make this unnecessary. Bugfix on 0.2.2.7-alpha.
28886     - Keep track of how many times we launch a new circuit to handle a
28887       given stream. Too many launches could indicate an inconsistency
28888       between our "launch a circuit to handle this stream" logic and our
28889       "attach this stream to one of the available circuits" logic.
28890     - Improve log messages related to excluded nodes.
28892   o Minor bugfixes:
28893     - Fix a spurious warning when moving from a short month to a long
28894       month on relays with month-based BandwidthAccounting. Bugfix on
28895       0.2.2.17-alpha; fixes bug 3020.
28896     - When a client finds that an origin circuit has run out of 16-bit
28897       stream IDs, we now mark it as unusable for new streams. Previously,
28898       we would try to close the entire circuit. Bugfix on 0.0.6.
28899     - Add a forgotten cast that caused a compile warning on OS X 10.6.
28900       Bugfix on 0.2.2.24-alpha.
28901     - Be more careful about reporting the correct error from a failed
28902       connect() system call. Under some circumstances, it was possible to
28903       look at an incorrect value for errno when sending the end reason.
28904       Bugfix on 0.1.0.1-rc.
28905     - Correctly handle an "impossible" overflow cases in connection byte
28906       counting, where we write or read more than 4GB on an edge connection
28907       in a single second. Bugfix on 0.1.2.8-beta.
28908     - Correct the warning displayed when a rendezvous descriptor exceeds
28909       the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found by
28910       John Brooks.
28911     - Clients and hidden services now use HSDir-flagged relays for hidden
28912       service descriptor downloads and uploads even if the relays have no
28913       DirPort set and the client has disabled TunnelDirConns. This will
28914       eventually allow us to give the HSDir flag to relays with no
28915       DirPort. Fixes bug 2722; bugfix on 0.2.1.6-alpha.
28916     - Downgrade "no current certificates known for authority" message from
28917       Notice to Info. Fixes bug 2899; bugfix on 0.2.0.10-alpha.
28918     - Make the SIGNAL DUMP control-port command work on FreeBSD. Fixes bug
28919       2917. Bugfix on 0.1.1.1-alpha.
28920     - Only limit the lengths of single HS descriptors, even when multiple
28921       HS descriptors are published to an HSDir relay in a single POST
28922       operation. Fixes bug 2948; bugfix on 0.2.1.5-alpha. Found by hsdir.
28923     - Write the current time into the LastWritten line in our state file,
28924       rather than the time from the previous write attempt. Also, stop
28925       trying to use a time of -1 in our log statements. Fixes bug 3039;
28926       bugfix on 0.2.2.14-alpha.
28927     - Be more consistent in our treatment of file system paths. "~" should
28928       get expanded to the user's home directory in the Log config option.
28929       Fixes bug 2971; bugfix on 0.2.0.1-alpha, which introduced the
28930       feature for the -f and --DataDirectory options.
28932   o Minor features:
28933     - Make sure every relay writes a state file at least every 12 hours.
28934       Previously, a relay could go for weeks without writing its state
28935       file, and on a crash could lose its bandwidth history, capacity
28936       estimates, client country statistics, and so on. Addresses bug 3012.
28937     - Send END_STREAM_REASON_NOROUTE in response to EHOSTUNREACH errors.
28938       Clients before 0.2.1.27 didn't handle NOROUTE correctly, but such
28939       clients are already deprecated because of security bugs.
28940     - Don't allow v0 hidden service authorities to act as clients.
28941       Required by fix for bug 3000.
28942     - Ignore SIGNAL NEWNYM commands on relay-only Tor instances. Required
28943       by fix for bug 3000.
28944     - Ensure that no empty [dirreq-](read|write)-history lines are added
28945       to an extrainfo document. Implements ticket 2497.
28947   o Code simplification and refactoring:
28948     - Remove workaround code to handle directory responses from servers
28949       that had bug 539 (they would send HTTP status 503 responses _and_
28950       send a body too). Since only server versions before
28951       0.2.0.16-alpha/0.1.2.19 were affected, there is no longer reason to
28952       keep the workaround in place.
28953     - Remove the old 'fuzzy time' logic. It was supposed to be used for
28954       handling calculations where we have a known amount of clock skew and
28955       an allowed amount of unknown skew. But we only used it in three
28956       places, and we never adjusted the known/unknown skew values. This is
28957       still something we might want to do someday, but if we do, we'll
28958       want to do it differently.
28959     - Avoid signed/unsigned comparisons by making SIZE_T_CEILING unsigned.
28960       None of the cases where we did this before were wrong, but by making
28961       this change we avoid warnings. Fixes bug 2475; bugfix on 0.2.1.28.
28962     - Use GetTempDir to find the proper temporary directory location on
28963       Windows when generating temporary files for the unit tests. Patch by
28964       Gisle Vanem.
28967 Changes in version 0.2.2.24-alpha - 2011-04-08
28968   Tor 0.2.2.24-alpha fixes a variety of bugs, including a big bug that
28969   prevented Tor clients from effectively using "multihomed" bridges,
28970   that is, bridges that listen on multiple ports or IP addresses so users
28971   can continue to use some of their addresses even if others get blocked.
28973   o Major bugfixes:
28974     - Fix a bug where bridge users who configure the non-canonical
28975       address of a bridge automatically switch to its canonical
28976       address. If a bridge listens at more than one address, it should be
28977       able to advertise those addresses independently and any non-blocked
28978       addresses should continue to work. Bugfix on Tor 0.2.0.x. Fixes
28979       bug 2510.
28980     - If you configured Tor to use bridge A, and then quit and
28981       configured Tor to use bridge B instead, it would happily continue
28982       to use bridge A if it's still reachable. While this behavior is
28983       a feature if your goal is connectivity, in some scenarios it's a
28984       dangerous bug. Bugfix on Tor 0.2.0.1-alpha; fixes bug 2511.
28985     - Directory authorities now use data collected from their own
28986       uptime observations when choosing whether to assign the HSDir flag
28987       to relays, instead of trusting the uptime value the relay reports in
28988       its descriptor. This change helps prevent an attack where a small
28989       set of nodes with frequently-changing identity keys can blackhole
28990       a hidden service. (Only authorities need upgrade; others will be
28991       fine once they do.) Bugfix on 0.2.0.10-alpha; fixes bug 2709.
28993   o Minor bugfixes:
28994     - When we restart our relay, we might get a successful connection
28995       from the outside before we've started our reachability tests,
28996       triggering a warning: "ORPort found reachable, but I have no
28997       routerinfo yet. Failing to inform controller of success." This
28998       bug was harmless unless Tor is running under a controller
28999       like Vidalia, in which case the controller would never get a
29000       REACHABILITY_SUCCEEDED status event. Bugfix on 0.1.2.6-alpha;
29001       fixes bug 1172.
29002     - Make directory authorities more accurate at recording when
29003       relays that have failed several reachability tests became
29004       unreachable, so we can provide more accuracy at assigning Stable,
29005       Guard, HSDir, etc flags. Bugfix on 0.2.0.6-alpha. Resolves bug 2716.
29006     - Fix an issue that prevented static linking of libevent on
29007       some platforms (notably Linux). Fixes bug 2698; bugfix on
29008       versions 0.2.1.23/0.2.2.8-alpha (the versions introducing
29009       the --with-static-libevent configure option).
29010     - We now ask the other side of a stream (the client or the exit)
29011       for more data on that stream when the amount of queued data on
29012       that stream dips low enough. Previously, we wouldn't ask the
29013       other side for more data until either it sent us more data (which
29014       it wasn't supposed to do if it had exhausted its window!) or we
29015       had completely flushed all our queued data. This flow control fix
29016       should improve throughput. Fixes bug 2756; bugfix on the earliest
29017       released versions of Tor (svn commit r152).
29018     - Avoid a double-mark-for-free warning when failing to attach a
29019       transparent proxy connection. (We thought we had fixed this in
29020       0.2.2.23-alpha, but it turns out our fix was checking the wrong
29021       connection.) Fixes bug 2757; bugfix on 0.1.2.1-alpha (the original
29022       bug) and 0.2.2.23-alpha (the incorrect fix).
29023     - When warning about missing zlib development packages during compile,
29024       give the correct package names. Bugfix on 0.2.0.1-alpha.
29026   o Minor features:
29027     - Directory authorities now log the source of a rejected POSTed v3
29028       networkstatus vote.
29029     - Make compilation with clang possible when using
29030       --enable-gcc-warnings by removing two warning options that clang
29031       hasn't implemented yet and by fixing a few warnings. Implements
29032       ticket 2696.
29033     - When expiring circuits, use microsecond timers rather than
29034       one-second timers. This can avoid an unpleasant situation where a
29035       circuit is launched near the end of one second and expired right
29036       near the beginning of the next, and prevent fluctuations in circuit
29037       timeout values.
29038     - Use computed circuit-build timeouts to decide when to launch
29039       parallel introduction circuits for hidden services. (Previously,
29040       we would retry after 15 seconds.)
29041     - Update to the April 1 2011 Maxmind GeoLite Country database.
29043   o Packaging fixes:
29044     - Create the /var/run/tor directory on startup on OpenSUSE if it is
29045       not already created. Patch from Andreas Stieger. Fixes bug 2573.
29047   o Documentation changes:
29048     - Modernize the doxygen configuration file slightly. Fixes bug 2707.
29049     - Resolve all doxygen warnings except those for missing documentation.
29050       Fixes bug 2705.
29051     - Add doxygen documentation for more functions, fields, and types.
29054 Changes in version 0.2.2.23-alpha - 2011-03-08
29055   Tor 0.2.2.23-alpha lets relays record their bandwidth history so when
29056   they restart they don't lose their bandwidth capacity estimate. This
29057   release also fixes a diverse set of user-facing bugs, ranging from
29058   relays overrunning their rate limiting to clients falsely warning about
29059   clock skew to bridge descriptor leaks by our bridge directory authority.
29061   o Major bugfixes:
29062     - Stop sending a CLOCK_SKEW controller status event whenever
29063       we fetch directory information from a relay that has a wrong clock.
29064       Instead, only inform the controller when it's a trusted authority
29065       that claims our clock is wrong. Bugfix on 0.1.2.6-alpha; fixes
29066       the rest of bug 1074.
29067     - Fix an assert in parsing router descriptors containing IPv6
29068       addresses. This one took down the directory authorities when
29069       somebody tried some experimental code. Bugfix on 0.2.1.3-alpha.
29070     - Make the bridge directory authority refuse to answer directory
29071       requests for "all" descriptors. It used to include bridge
29072       descriptors in its answer, which was a major information leak.
29073       Found by "piebeer". Bugfix on 0.2.0.3-alpha.
29074     - If relays set RelayBandwidthBurst but not RelayBandwidthRate,
29075       Tor would ignore their RelayBandwidthBurst setting,
29076       potentially using more bandwidth than expected. Bugfix on
29077       0.2.0.1-alpha. Reported by Paul Wouters. Fixes bug 2470.
29078     - Ignore and warn if the user mistakenly sets "PublishServerDescriptor
29079       hidserv" in her torrc. The 'hidserv' argument never controlled
29080       publication of hidden service descriptors. Bugfix on 0.2.0.1-alpha.
29082   o Major features:
29083     - Relays now save observed peak bandwidth throughput rates to their
29084       state file (along with total usage, which was already saved)
29085       so that they can determine their correct estimated bandwidth on
29086       restart. Resolves bug 1863, where Tor relays would reset their
29087       estimated bandwidth to 0 after restarting.
29088     - Directory authorities now take changes in router IP address and
29089       ORPort into account when determining router stability. Previously,
29090       if a router changed its IP or ORPort, the authorities would not
29091       treat it as having any downtime for the purposes of stability
29092       calculation, whereas clients would experience downtime since the
29093       change could take a while to propagate to them. Resolves issue 1035.
29094     - Enable Address Space Layout Randomization (ASLR) and Data Execution
29095       Prevention (DEP) by default on Windows to make it harder for
29096       attackers to exploit vulnerabilities. Patch from John Brooks.
29098   o Minor bugfixes (on 0.2.1.x and earlier):
29099     - Fix a rare crash bug that could occur when a client was configured
29100       with a large number of bridges. Fixes bug 2629; bugfix on
29101       0.2.1.2-alpha. Bugfix by trac user "shitlei".
29102     - Avoid a double mark-for-free warning when failing to attach a
29103       transparent proxy connection. Bugfix on 0.1.2.1-alpha. Fixes
29104       bug 2279.
29105     - Correctly detect failure to allocate an OpenSSL BIO. Fixes bug 2378;
29106       found by "cypherpunks". This bug was introduced before the first
29107       Tor release, in svn commit r110.
29108     - Country codes aren't supported in EntryNodes until 0.2.3.x, so
29109       don't mention them in the manpage. Fixes bug 2450; issue
29110       spotted by keb and G-Lo.
29111     - Fix a bug in bandwidth history state parsing that could have been
29112       triggered if a future version of Tor ever changed the timing
29113       granularity at which bandwidth history is measured. Bugfix on
29114       Tor 0.1.1.11-alpha.
29115     - When a relay decides that its DNS is too broken for it to serve
29116       as an exit server, it advertised itself as a non-exit, but
29117       continued to act as an exit. This could create accidental
29118       partitioning opportunities for users. Instead, if a relay is
29119       going to advertise reject *:* as its exit policy, it should
29120       really act with exit policy "reject *:*". Fixes bug 2366.
29121       Bugfix on Tor 0.1.2.5-alpha. Bugfix by user "postman" on trac.
29122     - In the special case where you configure a public exit relay as your
29123       bridge, Tor would be willing to use that exit relay as the last
29124       hop in your circuit as well. Now we fail that circuit instead.
29125       Bugfix on 0.2.0.12-alpha. Fixes bug 2403. Reported by "piebeer".
29126     - Fix a bug with our locking implementation on Windows that couldn't
29127       correctly detect when a file was already locked. Fixes bug 2504,
29128       bugfix on 0.2.1.6-alpha.
29129     - Fix IPv6-related connect() failures on some platforms (BSD, OS X).
29130       Bugfix on 0.2.0.3-alpha; fixes first part of bug 2660. Patch by
29131       "piebeer".
29132     - Set target port in get_interface_address6() correctly. Bugfix
29133       on 0.1.1.4-alpha and 0.2.0.3-alpha; fixes second part of bug 2660.
29134     - Directory authorities are now more robust to hops back in time
29135       when calculating router stability. Previously, if a run of uptime
29136       or downtime appeared to be negative, the calculation could give
29137       incorrect results. Bugfix on 0.2.0.6-alpha; noticed when fixing
29138       bug 1035.
29139     - Fix an assert that got triggered when using the TestingTorNetwork
29140       configuration option and then issuing a GETINFO config-text control
29141       command. Fixes bug 2250; bugfix on 0.2.1.2-alpha.
29143   o Minor bugfixes (on 0.2.2.x):
29144     - Clients should not weight BadExit nodes as Exits in their node
29145       selection. Similarly, directory authorities should not count BadExit
29146       bandwidth as Exit bandwidth when computing bandwidth-weights.
29147       Bugfix on 0.2.2.10-alpha; fixes bug 2203.
29148     - Correctly clear our dir_read/dir_write history when there is an
29149       error parsing any bw history value from the state file. Bugfix on
29150       Tor 0.2.2.15-alpha.
29151     - Resolve a bug in verifying signatures of directory objects
29152       with digests longer than SHA1. Bugfix on 0.2.2.20-alpha.
29153       Fixes bug 2409. Found by "piebeer".
29154     - Bridge authorities no longer crash on SIGHUP when they try to
29155       publish their relay descriptor to themselves. Fixes bug 2572. Bugfix
29156       on 0.2.2.22-alpha.
29158   o Minor features:
29159     - Log less aggressively about circuit timeout changes, and improve
29160       some other circuit timeout messages. Resolves bug 2004.
29161     - Log a little more clearly about the times at which we're no longer
29162       accepting new connections. Resolves bug 2181.
29163     - Reject attempts at the client side to open connections to private
29164       IP addresses (like 127.0.0.1, 10.0.0.1, and so on) with
29165       a randomly chosen exit node. Attempts to do so are always
29166       ill-defined, generally prevented by exit policies, and usually
29167       in error. This will also help to detect loops in transparent
29168       proxy configurations. You can disable this feature by setting
29169       "ClientRejectInternalAddresses 0" in your torrc.
29170     - Always treat failure to allocate an RSA key as an unrecoverable
29171       allocation error.
29172     - Update to the March 1 2011 Maxmind GeoLite Country database.
29174   o Minor features (log subsystem):
29175     - Add documentation for configuring logging at different severities in
29176       different log domains. We've had this feature since 0.2.1.1-alpha,
29177       but for some reason it never made it into the manpage. Fixes
29178       bug 2215.
29179     - Make it simpler to specify "All log domains except for A and B".
29180       Previously you needed to say "[*,~A,~B]". Now you can just say
29181       "[~A,~B]".
29182     - Add a "LogMessageDomains 1" option to include the domains of log
29183       messages along with the messages. Without this, there's no way
29184       to use log domains without reading the source or doing a lot
29185       of guessing.
29187   o Packaging changes:
29188     - Stop shipping the Tor specs files and development proposal documents
29189       in the tarball. They are now in a separate git repository at
29190       git://git.torproject.org/torspec.git
29193 Changes in version 0.2.1.30 - 2011-02-23
29194   Tor 0.2.1.30 fixes a variety of less critical bugs. The main other
29195   change is a slight tweak to Tor's TLS handshake that makes relays
29196   and bridges that run this new version reachable from Iran again.
29197   We don't expect this tweak will win the arms race long-term, but it
29198   buys us time until we roll out a better solution.
29200   o Major bugfixes:
29201     - Stop sending a CLOCK_SKEW controller status event whenever
29202       we fetch directory information from a relay that has a wrong clock.
29203       Instead, only inform the controller when it's a trusted authority
29204       that claims our clock is wrong. Bugfix on 0.1.2.6-alpha; fixes
29205       the rest of bug 1074.
29206     - Fix a bounds-checking error that could allow an attacker to
29207       remotely crash a directory authority. Bugfix on 0.2.1.5-alpha.
29208       Found by "piebeer".
29209     - If relays set RelayBandwidthBurst but not RelayBandwidthRate,
29210       Tor would ignore their RelayBandwidthBurst setting,
29211       potentially using more bandwidth than expected. Bugfix on
29212       0.2.0.1-alpha. Reported by Paul Wouters. Fixes bug 2470.
29213     - Ignore and warn if the user mistakenly sets "PublishServerDescriptor
29214       hidserv" in her torrc. The 'hidserv' argument never controlled
29215       publication of hidden service descriptors. Bugfix on 0.2.0.1-alpha.
29217   o Minor features:
29218     - Adjust our TLS Diffie-Hellman parameters to match those used by
29219       Apache's mod_ssl.
29220     - Update to the February 1 2011 Maxmind GeoLite Country database.
29222   o Minor bugfixes:
29223     - Check for and reject overly long directory certificates and
29224       directory tokens before they have a chance to hit any assertions.
29225       Bugfix on 0.2.1.28. Found by "doorss".
29226     - Bring the logic that gathers routerinfos and assesses the
29227       acceptability of circuits into line. This prevents a Tor OP from
29228       getting locked in a cycle of choosing its local OR as an exit for a
29229       path (due to a .exit request) and then rejecting the circuit because
29230       its OR is not listed yet. It also prevents Tor clients from using an
29231       OR running in the same instance as an exit (due to a .exit request)
29232       if the OR does not meet the same requirements expected of an OR
29233       running elsewhere. Fixes bug 1859; bugfix on 0.1.0.1-rc.
29235   o Packaging changes:
29236     - Stop shipping the Tor specs files and development proposal documents
29237       in the tarball. They are now in a separate git repository at
29238       git://git.torproject.org/torspec.git
29239     - Do not include Git version tags as though they are SVN tags when
29240       generating a tarball from inside a repository that has switched
29241       between branches. Bugfix on 0.2.1.15-rc; fixes bug 2402.
29244 Changes in version 0.2.2.22-alpha - 2011-01-25
29245   Tor 0.2.2.22-alpha fixes a few more less-critical security issues. The
29246   main other change is a slight tweak to Tor's TLS handshake that makes
29247   relays and bridges that run this new version reachable from Iran again.
29248   We don't expect this tweak will win the arms race long-term, but it
29249   will buy us a bit more time until we roll out a better solution.
29251   o Major bugfixes:
29252     - Fix a bounds-checking error that could allow an attacker to
29253       remotely crash a directory authority. Bugfix on 0.2.1.5-alpha.
29254       Found by "piebeer".
29255     - Don't assert when changing from bridge to relay or vice versa
29256       via the controller. The assert happened because we didn't properly
29257       initialize our keys in this case. Bugfix on 0.2.2.18-alpha; fixes
29258       bug 2433. Reported by bastik.
29260   o Minor features:
29261     - Adjust our TLS Diffie-Hellman parameters to match those used by
29262       Apache's mod_ssl.
29263     - Provide a log message stating which geoip file we're parsing
29264       instead of just stating that we're parsing the geoip file.
29265       Implements ticket 2432.
29267   o Minor bugfixes:
29268     - Check for and reject overly long directory certificates and
29269       directory tokens before they have a chance to hit any assertions.
29270       Bugfix on 0.2.1.28 / 0.2.2.20-alpha. Found by "doorss".
29273 Changes in version 0.2.2.21-alpha - 2011-01-15
29274   Tor 0.2.2.21-alpha includes all the patches from Tor 0.2.1.29, which
29275   continues our recent code security audit work. The main fix resolves
29276   a remote heap overflow vulnerability that can allow remote code
29277   execution (CVE-2011-0427). Other fixes address a variety of assert
29278   and crash bugs, most of which we think are hard to exploit remotely.
29280   o Major bugfixes (security), also included in 0.2.1.29:
29281     - Fix a heap overflow bug where an adversary could cause heap
29282       corruption. This bug probably allows remote code execution
29283       attacks. Reported by "debuger". Fixes CVE-2011-0427. Bugfix on
29284       0.1.2.10-rc.
29285     - Prevent a denial-of-service attack by disallowing any
29286       zlib-compressed data whose compression factor is implausibly
29287       high. Fixes part of bug 2324; reported by "doorss".
29288     - Zero out a few more keys in memory before freeing them. Fixes
29289       bug 2384 and part of bug 2385. These key instances found by
29290       "cypherpunks", based on Andrew Case's report about being able
29291       to find sensitive data in Tor's memory space if you have enough
29292       permissions. Bugfix on 0.0.2pre9.
29294   o Major bugfixes (crashes), also included in 0.2.1.29:
29295     - Prevent calls to Libevent from inside Libevent log handlers.
29296       This had potential to cause a nasty set of crashes, especially
29297       if running Libevent with debug logging enabled, and running
29298       Tor with a controller watching for low-severity log messages.
29299       Bugfix on 0.1.0.2-rc. Fixes bug 2190.
29300     - Add a check for SIZE_T_MAX to tor_realloc() to try to avoid
29301       underflow errors there too. Fixes the other part of bug 2324.
29302     - Fix a bug where we would assert if we ever had a
29303       cached-descriptors.new file (or another file read directly into
29304       memory) of exactly SIZE_T_CEILING bytes. Fixes bug 2326; bugfix
29305       on 0.2.1.25. Found by doorss.
29306     - Fix some potential asserts and parsing issues with grossly
29307       malformed router caches. Fixes bug 2352; bugfix on Tor 0.2.1.27.
29308       Found by doorss.
29310   o Minor bugfixes (other), also included in 0.2.1.29:
29311     - Fix a bug with handling misformed replies to reverse DNS lookup
29312       requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a
29313       bug reported by doorss.
29314     - Fix compilation on mingw when a pthreads compatibility library
29315       has been installed. (We don't want to use it, so we shouldn't
29316       be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc.
29317     - Fix a bug where we would declare that we had run out of virtual
29318       addresses when the address space was only half-exhausted. Bugfix
29319       on 0.1.2.1-alpha.
29320     - Correctly handle the case where AutomapHostsOnResolve is set but
29321       no virtual addresses are available. Fixes bug 2328; bugfix on
29322       0.1.2.1-alpha. Bug found by doorss.
29323     - Correctly handle wrapping around when we run out of virtual
29324       address space. Found by cypherpunks; bugfix on 0.2.0.5-alpha.
29326   o Minor features, also included in 0.2.1.29:
29327     - Update to the January 1 2011 Maxmind GeoLite Country database.
29328     - Introduce output size checks on all of our decryption functions.
29330   o Build changes, also included in 0.2.1.29:
29331     - Tor does not build packages correctly with Automake 1.6 and earlier;
29332       added a check to Makefile.am to make sure that we're building with
29333       Automake 1.7 or later.
29334     - The 0.2.1.28 tarball was missing src/common/OpenBSD_malloc_Linux.c
29335       because we built it with a too-old version of automake. Thus that
29336       release broke ./configure --enable-openbsd-malloc, which is popular
29337       among really fast exit relays on Linux.
29339   o Major bugfixes, new in 0.2.2.21-alpha:
29340     - Prevent crash/heap corruption when the cbtnummodes consensus
29341       parameter is set to 0 or large values. Fixes bug 2317; bugfix
29342       on 0.2.2.14-alpha.
29344   o Major features, new in 0.2.2.21-alpha:
29345     - Introduce minimum/maximum values that clients will believe
29346       from the consensus. Now we'll have a better chance to avoid crashes
29347       or worse when a consensus param has a weird value.
29349   o Minor features, new in 0.2.2.21-alpha:
29350     - Make sure to disable DirPort if running as a bridge. DirPorts aren't
29351       used on bridges, and it makes bridge scanning somewhat easier.
29352     - If writing the state file to disk fails, wait up to an hour before
29353       retrying again, rather than trying again each second. Fixes bug
29354       2346; bugfix on Tor 0.1.1.3-alpha.
29355     - Make Libevent log messages get delivered to controllers later,
29356       and not from inside the Libevent log handler. This prevents unsafe
29357       reentrant Libevent calls while still letting the log messages
29358       get through.
29359     - Detect platforms that brokenly use a signed size_t, and refuse to
29360       build there. Found and analyzed by doorss and rransom.
29361     - Fix a bunch of compile warnings revealed by mingw with gcc 4.5.
29362       Resolves bug 2314.
29364   o Minor bugfixes, new in 0.2.2.21-alpha:
29365     - Handle SOCKS messages longer than 128 bytes long correctly, rather
29366       than waiting forever for them to finish. Fixes bug 2330; bugfix
29367       on 0.2.0.16-alpha. Found by doorss.
29368     - Add assertions to check for overflow in arguments to
29369       base32_encode() and base32_decode(); fix a signed-unsigned
29370       comparison there too. These bugs are not actually reachable in Tor,
29371       but it's good to prevent future errors too. Found by doorss.
29372     - Correctly detect failures to create DNS requests when using Libevent
29373       versions before v2. (Before Libevent 2, we used our own evdns
29374       implementation. Its return values for Libevent's evdns_resolve_*()
29375       functions are not consistent with those from Libevent.) Fixes bug
29376       2363; bugfix on 0.2.2.6-alpha. Found by "lodger".
29378   o Documentation, new in 0.2.2.21-alpha:
29379     - Document the default socks host and port (127.0.0.1:9050) for
29380       tor-resolve.
29383 Changes in version 0.2.1.29 - 2011-01-15
29384   Tor 0.2.1.29 continues our recent code security audit work. The main
29385   fix resolves a remote heap overflow vulnerability that can allow remote
29386   code execution. Other fixes address a variety of assert and crash bugs,
29387   most of which we think are hard to exploit remotely.
29389   o Major bugfixes (security):
29390     - Fix a heap overflow bug where an adversary could cause heap
29391       corruption. This bug probably allows remote code execution
29392       attacks. Reported by "debuger". Fixes CVE-2011-0427. Bugfix on
29393       0.1.2.10-rc.
29394     - Prevent a denial-of-service attack by disallowing any
29395       zlib-compressed data whose compression factor is implausibly
29396       high. Fixes part of bug 2324; reported by "doorss".
29397     - Zero out a few more keys in memory before freeing them. Fixes
29398       bug 2384 and part of bug 2385. These key instances found by
29399       "cypherpunks", based on Andrew Case's report about being able
29400       to find sensitive data in Tor's memory space if you have enough
29401       permissions. Bugfix on 0.0.2pre9.
29403   o Major bugfixes (crashes):
29404     - Prevent calls to Libevent from inside Libevent log handlers.
29405       This had potential to cause a nasty set of crashes, especially
29406       if running Libevent with debug logging enabled, and running
29407       Tor with a controller watching for low-severity log messages.
29408       Bugfix on 0.1.0.2-rc. Fixes bug 2190.
29409     - Add a check for SIZE_T_MAX to tor_realloc() to try to avoid
29410       underflow errors there too. Fixes the other part of bug 2324.
29411     - Fix a bug where we would assert if we ever had a
29412       cached-descriptors.new file (or another file read directly into
29413       memory) of exactly SIZE_T_CEILING bytes. Fixes bug 2326; bugfix
29414       on 0.2.1.25. Found by doorss.
29415     - Fix some potential asserts and parsing issues with grossly
29416       malformed router caches. Fixes bug 2352; bugfix on Tor 0.2.1.27.
29417       Found by doorss.
29419   o Minor bugfixes (other):
29420     - Fix a bug with handling misformed replies to reverse DNS lookup
29421       requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a
29422       bug reported by doorss.
29423     - Fix compilation on mingw when a pthreads compatibility library
29424       has been installed. (We don't want to use it, so we shouldn't
29425       be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc.
29426     - Fix a bug where we would declare that we had run out of virtual
29427       addresses when the address space was only half-exhausted. Bugfix
29428       on 0.1.2.1-alpha.
29429     - Correctly handle the case where AutomapHostsOnResolve is set but
29430       no virtual addresses are available. Fixes bug 2328; bugfix on
29431       0.1.2.1-alpha. Bug found by doorss.
29432     - Correctly handle wrapping around to when we run out of virtual
29433       address space. Found by cypherpunks, bugfix on 0.2.0.5-alpha.
29434     - The 0.2.1.28 tarball was missing src/common/OpenBSD_malloc_Linux.c
29435       because we built it with a too-old version of automake. Thus that
29436       release broke ./configure --enable-openbsd-malloc, which is popular
29437       among really fast exit relays on Linux.
29439   o Minor features:
29440     - Update to the January 1 2011 Maxmind GeoLite Country database.
29441     - Introduce output size checks on all of our decryption functions.
29443   o Build changes:
29444     - Tor does not build packages correctly with Automake 1.6 and earlier;
29445       added a check to Makefile.am to make sure that we're building with
29446       Automake 1.7 or later.
29449 Changes in version 0.2.2.20-alpha - 2010-12-17
29450   Tor 0.2.2.20-alpha does some code cleanup to reduce the risk of remotely
29451   exploitable bugs. We also fix a variety of other significant bugs,
29452   change the IP address for one of our directory authorities, and update
29453   the minimum version that Tor relays must run to join the network.
29455   o Major bugfixes:
29456     - Fix a remotely exploitable bug that could be used to crash instances
29457       of Tor remotely by overflowing on the heap. Remote-code execution
29458       hasn't been confirmed, but can't be ruled out. Everyone should
29459       upgrade. Bugfix on the 0.1.1 series and later.
29460     - Fix a bug that could break accounting on 64-bit systems with large
29461       time_t values, making them hibernate for impossibly long intervals.
29462       Fixes bug 2146. Bugfix on 0.0.9pre6; fix by boboper.
29463     - Fix a logic error in directory_fetches_from_authorities() that
29464       would cause all _non_-exits refusing single-hop-like circuits
29465       to fetch from authorities, when we wanted to have _exits_ fetch
29466       from authorities. Fixes more of 2097. Bugfix on 0.2.2.16-alpha;
29467       fix by boboper.
29468     - Fix a stream fairness bug that would cause newer streams on a given
29469       circuit to get preference when reading bytes from the origin or
29470       destination. Fixes bug 2210. Fix by Mashael AlSabah. This bug was
29471       introduced before the first Tor release, in svn revision r152.
29473   o Directory authority changes:
29474     - Change IP address and ports for gabelmoo (v3 directory authority).
29476   o Minor bugfixes:
29477     - Avoid crashes when AccountingMax is set on clients. Fixes bug 2235.
29478       Bugfix on 0.2.2.18-alpha. Diagnosed by boboper.
29479     - Fix an off-by-one error in calculating some controller command
29480       argument lengths. Fortunately, this mistake is harmless since
29481       the controller code does redundant NUL termination too. Found by
29482       boboper. Bugfix on 0.1.1.1-alpha.
29483     - Do not dereference NULL if a bridge fails to build its
29484       extra-info descriptor. Found by an anonymous commenter on
29485       Trac. Bugfix on 0.2.2.19-alpha.
29487   o Minor features:
29488     - Update to the December 1 2010 Maxmind GeoLite Country database.
29489     - Directory authorities now reject relays running any versions of
29490       Tor between 0.2.1.3-alpha and 0.2.1.18 inclusive; they have
29491       known bugs that keep RELAY_EARLY cells from working on rendezvous
29492       circuits. Followup to fix for bug 2081.
29493     - Directory authorities now reject relays running any version of Tor
29494       older than 0.2.0.26-rc. That version is the earliest that fetches
29495       current directory information correctly. Fixes bug 2156.
29496     - Report only the top 10 ports in exit-port stats in order not to
29497       exceed the maximum extra-info descriptor length of 50 KB. Implements
29498       task 2196.
29501 Changes in version 0.2.1.28 - 2010-12-17
29502   Tor 0.2.1.28 does some code cleanup to reduce the risk of remotely
29503   exploitable bugs. We also took this opportunity to change the IP address
29504   for one of our directory authorities, and to update the geoip database
29505   we ship.
29507   o Major bugfixes:
29508     - Fix a remotely exploitable bug that could be used to crash instances
29509       of Tor remotely by overflowing on the heap. Remote-code execution
29510       hasn't been confirmed, but can't be ruled out. Everyone should
29511       upgrade. Bugfix on the 0.1.1 series and later.
29513   o Directory authority changes:
29514     - Change IP address and ports for gabelmoo (v3 directory authority).
29516   o Minor features:
29517     - Update to the December 1 2010 Maxmind GeoLite Country database.
29520 Changes in version 0.2.1.27 - 2010-11-23
29521   Yet another OpenSSL security patch broke its compatibility with Tor:
29522   Tor 0.2.1.27 makes relays work with openssl 0.9.8p and 1.0.0.b. We
29523   also took this opportunity to fix several crash bugs, integrate a new
29524   directory authority, and update the bundled GeoIP database.
29526   o Major bugfixes:
29527     - Resolve an incompatibility with OpenSSL 0.9.8p and OpenSSL 1.0.0b:
29528       No longer set the tlsext_host_name extension on server SSL objects;
29529       but continue to set it on client SSL objects. Our goal in setting
29530       it was to imitate a browser, not a vhosting server. Fixes bug 2204;
29531       bugfix on 0.2.1.1-alpha.
29532     - Do not log messages to the controller while shrinking buffer
29533       freelists. Doing so would sometimes make the controller connection
29534       try to allocate a buffer chunk, which would mess up the internals
29535       of the freelist and cause an assertion failure. Fixes bug 1125;
29536       fixed by Robert Ransom. Bugfix on 0.2.0.16-alpha.
29537     - Learn our external IP address when we're a relay or bridge, even if
29538       we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha,
29539       where we introduced bridge relays that don't need to publish to
29540       be useful. Fixes bug 2050.
29541     - Do even more to reject (and not just ignore) annotations on
29542       router descriptors received anywhere but from the cache. Previously
29543       we would ignore such annotations at first, but cache them to disk
29544       anyway. Bugfix on 0.2.0.8-alpha. Found by piebeer.
29545     - When you're using bridges and your network goes away and your
29546       bridges get marked as down, recover when you attempt a new socks
29547       connection (if the network is back), rather than waiting up to an
29548       hour to try fetching new descriptors for your bridges. Bugfix on
29549       0.2.0.3-alpha; fixes bug 1981.
29551   o Major features:
29552     - Move to the November 2010 Maxmind GeoLite country db (rather
29553       than the June 2009 ip-to-country GeoIP db) for our statistics that
29554       count how many users relays are seeing from each country. Now we'll
29555       have more accurate data, especially for many African countries.
29557   o New directory authorities:
29558     - Set up maatuska (run by Linus Nordberg) as the eighth v3 directory
29559       authority.
29561   o Minor bugfixes:
29562     - Fix an assertion failure that could occur in directory caches or
29563       bridge users when using a very short voting interval on a testing
29564       network. Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on
29565       0.2.0.8-alpha.
29566     - Enforce multiplicity rules when parsing annotations. Bugfix on
29567       0.2.0.8-alpha. Found by piebeer.
29568     - Allow handshaking OR connections to take a full KeepalivePeriod
29569       seconds to handshake. Previously, we would close them after
29570       IDLE_OR_CONN_TIMEOUT (180) seconds, the same timeout as if they
29571       were open. Bugfix on 0.2.1.26; fixes bug 1840. Thanks to mingw-san
29572       for analysis help.
29573     - When building with --enable-gcc-warnings on OpenBSD, disable
29574       warnings in system headers. This makes --enable-gcc-warnings
29575       pass on OpenBSD 4.8.
29577   o Minor features:
29578     - Exit nodes didn't recognize EHOSTUNREACH as a plausible error code,
29579       and so sent back END_STREAM_REASON_MISC. Clients now recognize a new
29580       stream ending reason for this case: END_STREAM_REASON_NOROUTE.
29581       Servers can start sending this code when enough clients recognize
29582       it. Bugfix on 0.1.0.1-rc; fixes part of bug 1793.
29583     - Build correctly on mingw with more recent versions of OpenSSL 0.9.8.
29584       Patch from mingw-san.
29586   o Removed files:
29587     - Remove the old debian/ directory from the main Tor distribution.
29588       The official Tor-for-debian git repository lives at the URL
29589       https://git.torproject.org/debian/tor.git
29590     - Stop shipping the old doc/website/ directory in the tarball. We
29591       changed the website format in late 2010, and what we shipped in
29592       0.2.1.26 really wasn't that useful anyway.
29595 Changes in version 0.2.2.19-alpha - 2010-11-22
29596   Yet another OpenSSL security patch broke its compatibility with Tor:
29597   Tor 0.2.2.19-alpha makes relays work with OpenSSL 0.9.8p and 1.0.0.b.
29599   o Major bugfixes:
29600     - Resolve an incompatibility with OpenSSL 0.9.8p and OpenSSL 1.0.0b:
29601       No longer set the tlsext_host_name extension on server SSL objects;
29602       but continue to set it on client SSL objects. Our goal in setting
29603       it was to imitate a browser, not a vhosting server. Fixes bug 2204;
29604       bugfix on 0.2.1.1-alpha.
29606   o Minor bugfixes:
29607     - Try harder not to exceed the maximum length of 50 KB when writing
29608       statistics to extra-info descriptors. This bug was triggered by very
29609       fast relays reporting exit-port, entry, and dirreq statistics.
29610       Reported by Olaf Selke. Bugfix on 0.2.2.1-alpha. Fixes bug 2183.
29611     - Publish a router descriptor even if generating an extra-info
29612       descriptor fails. Previously we would not publish a router
29613       descriptor without an extra-info descriptor; this can cause fast
29614       exit relays collecting exit-port statistics to drop from the
29615       consensus. Bugfix on 0.1.2.9-rc; fixes bug 2195.
29618 Changes in version 0.2.2.18-alpha - 2010-11-16
29619   Tor 0.2.2.18-alpha fixes several crash bugs that have been nagging
29620   us lately, makes unpublished bridge relays able to detect their IP
29621   address, and fixes a wide variety of other bugs to get us much closer
29622   to a stable release.
29624   o Major bugfixes:
29625     - Do even more to reject (and not just ignore) annotations on
29626       router descriptors received anywhere but from the cache. Previously
29627       we would ignore such annotations at first, but cache them to disk
29628       anyway. Bugfix on 0.2.0.8-alpha. Found by piebeer.
29629     - Do not log messages to the controller while shrinking buffer
29630       freelists. Doing so would sometimes make the controller connection
29631       try to allocate a buffer chunk, which would mess up the internals
29632       of the freelist and cause an assertion failure. Fixes bug 1125;
29633       fixed by Robert Ransom. Bugfix on 0.2.0.16-alpha.
29634     - Learn our external IP address when we're a relay or bridge, even if
29635       we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha,
29636       where we introduced bridge relays that don't need to publish to
29637       be useful. Fixes bug 2050.
29638     - Maintain separate TLS contexts and certificates for incoming and
29639       outgoing connections in bridge relays. Previously we would use the
29640       same TLS contexts and certs for incoming and outgoing connections.
29641       Bugfix on 0.2.0.3-alpha; addresses bug 988.
29642     - Maintain separate identity keys for incoming and outgoing TLS
29643       contexts in bridge relays. Previously we would use the same
29644       identity keys for incoming and outgoing TLS contexts. Bugfix on
29645       0.2.0.3-alpha; addresses the other half of bug 988.
29646     - Avoid an assertion failure when we as an authority receive a
29647       duplicate upload of a router descriptor that we already have,
29648       but which we previously considered an obsolete descriptor.
29649       Fixes another case of bug 1776. Bugfix on 0.2.2.16-alpha.
29650     - Avoid a crash bug triggered by looking at a dangling pointer while
29651       setting the network status consensus. Found by Robert Ransom.
29652       Bugfix on 0.2.2.17-alpha. Fixes bug 2097.
29653     - Fix a logic error where servers that _didn't_ act as exits would
29654       try to keep their server lists more aggressively up to date than
29655       exits, when it was supposed to be the other way around. Bugfix
29656       on 0.2.2.17-alpha.
29658   o Minor bugfixes (on Tor 0.2.1.x and earlier):
29659     - When we're trying to guess whether we know our IP address as
29660       a relay, we would log various ways that we failed to guess
29661       our address, but never log that we ended up guessing it
29662       successfully. Now add a log line to help confused and anxious
29663       relay operators. Bugfix on 0.1.2.1-alpha; fixes bug 1534.
29664     - Bring the logic that gathers routerinfos and assesses the
29665       acceptability of circuits into line. This prevents a Tor OP from
29666       getting locked in a cycle of choosing its local OR as an exit for a
29667       path (due to a .exit request) and then rejecting the circuit because
29668       its OR is not listed yet. It also prevents Tor clients from using an
29669       OR running in the same instance as an exit (due to a .exit request)
29670       if the OR does not meet the same requirements expected of an OR
29671       running elsewhere. Fixes bug 1859; bugfix on 0.1.0.1-rc.
29672     - Correctly describe errors that occur when generating a TLS object.
29673       Previously we would attribute them to a failure while generating a
29674       TLS context. Patch by Robert Ransom. Bugfix on 0.1.0.4-rc; fixes
29675       bug 1994.
29676     - Enforce multiplicity rules when parsing annotations. Bugfix on
29677       0.2.0.8-alpha. Found by piebeer.
29678     - Fix warnings that newer versions of autoconf produced during
29679       ./autogen.sh. These warnings appear to be harmless in our case,
29680       but they were extremely verbose. Fixes bug 2020.
29682   o Minor bugfixes (on Tor 0.2.2.x):
29683     - Enable protection of small arrays whenever we build with gcc
29684       hardening features, not only when also building with warnings
29685       enabled. Fixes bug 2031; bugfix on 0.2.2.14-alpha. Reported by keb.
29687   o Minor features:
29688     - Make hidden services work better in private Tor networks by not
29689       requiring any uptime to join the hidden service descriptor
29690       DHT. Implements ticket 2088.
29691     - Rate-limit the "your application is giving Tor only an IP address"
29692       warning. Addresses bug 2000; bugfix on 0.0.8pre2.
29693     - When AllowSingleHopExits is set, print a warning to explain to the
29694       relay operator why most clients are avoiding her relay.
29695     - Update to the November 1 2010 Maxmind GeoLite Country database.
29697   o Code simplifications and refactoring:
29698     - When we fixed bug 1038 we had to put in a restriction not to send
29699       RELAY_EARLY cells on rend circuits. This was necessary as long
29700       as relays using Tor 0.2.1.3-alpha through 0.2.1.18-alpha were
29701       active. Now remove this obsolete check. Resolves bug 2081.
29702     - Some options used different conventions for uppercasing of acronyms
29703       when comparing manpage and source. Fix those in favor of the
29704       manpage, as it makes sense to capitalize acronyms.
29705     - Remove the torrc.complete file. It hasn't been kept up to date
29706       and users will have better luck checking out the manpage.
29707     - Remove the obsolete "NoPublish" option; it has been flagged
29708       as obsolete and has produced a warning since 0.1.1.18-rc.
29709     - Remove everything related to building the expert bundle for OS X.
29710       It has confused many users, doesn't work right on OS X 10.6,
29711       and is hard to get rid of once installed. Resolves bug 1274.
29714 Changes in version 0.2.2.17-alpha - 2010-09-30
29715   Tor 0.2.2.17-alpha introduces a feature to make it harder for clients
29716   to use one-hop circuits (which can put the exit relays at higher risk,
29717   plus unbalance the network); fixes a big bug in bandwidth accounting
29718   for relays that want to limit their monthly bandwidth use; fixes a
29719   big pile of bugs in how clients tolerate temporary network failure;
29720   and makes our adaptive circuit build timeout feature (which improves
29721   client performance if your network is fast while not breaking things
29722   if your network is slow) better handle bad networks.
29724   o Major features:
29725     - Exit relays now try harder to block exit attempts from unknown
29726       relays, to make it harder for people to use them as one-hop proxies
29727       a la tortunnel. Controlled by the refuseunknownexits consensus
29728       parameter (currently enabled), or you can override it on your
29729       relay with the RefuseUnknownExits torrc option. Resolves bug 1751.
29731   o Major bugfixes (0.2.1.x and earlier):
29732     - Fix a bug in bandwidth accounting that could make us use twice
29733       the intended bandwidth when our interval start changes due to
29734       daylight saving time. Now we tolerate skew in stored vs computed
29735       interval starts: if the start of the period changes by no more than
29736       50% of the period's duration, we remember bytes that we transferred
29737       in the old period. Fixes bug 1511; bugfix on 0.0.9pre5.
29738     - Always search the Windows system directory for system DLLs, and
29739       nowhere else. Bugfix on 0.1.1.23; fixes bug 1954.
29740     - When you're using bridges and your network goes away and your
29741       bridges get marked as down, recover when you attempt a new socks
29742       connection (if the network is back), rather than waiting up to an
29743       hour to try fetching new descriptors for your bridges. Bugfix on
29744       0.2.0.3-alpha; fixes bug 1981.
29746   o Major bugfixes (on 0.2.2.x):
29747     - Fix compilation on Windows. Bugfix on 0.2.2.16-alpha; related to
29748       bug 1797.
29749     - Fix a segfault that could happen when operating a bridge relay with
29750       no GeoIP database set. Fixes bug 1964; bugfix on 0.2.2.15-alpha.
29751     - The consensus bandwidth-weights (used by clients to choose fast
29752       relays) entered an unexpected edge case in September where
29753       Exits were much scarcer than Guards, resulting in bad weight
29754       recommendations. Now we compute them using new constraints that
29755       should succeed in all cases. Also alter directory authorities to
29756       not include the bandwidth-weights line if they fail to produce
29757       valid values. Fixes bug 1952; bugfix on 0.2.2.10-alpha.
29758     - When weighting bridges during path selection, we used to trust
29759       the bandwidths they provided in their descriptor, only capping them
29760       at 10MB/s. This turned out to be problematic for two reasons:
29761       Bridges could claim to handle a lot more traffic then they
29762       actually would, thus making more clients pick them and have a
29763       pretty effective DoS attack. The other issue is that new bridges
29764       that might not have a good estimate for their bw capacity yet
29765       would not get used at all unless no other bridges are available
29766       to a client. Fixes bug 1912; bugfix on 0.2.2.7-alpha.
29768   o Major bugfixes (on the circuit build timeout feature, 0.2.2.x):
29769     - Ignore cannibalized circuits when recording circuit build times.
29770       This should provide for a minor performance improvement for hidden
29771       service users using 0.2.2.14-alpha, and should remove two spurious
29772       notice log messages. Bugfix on 0.2.2.14-alpha; fixes bug 1740.
29773     - Simplify the logic that causes us to decide if the network is
29774       unavailable for purposes of recording circuit build times. If we
29775       receive no cells whatsoever for the entire duration of a circuit's
29776       full measured lifetime, the network is probably down. Also ignore
29777       one-hop directory fetching circuit timeouts when calculating our
29778       circuit build times. These changes should hopefully reduce the
29779       cases where we see ridiculous circuit build timeouts for people
29780       with spotty wireless connections. Fixes part of bug 1772; bugfix
29781       on 0.2.2.2-alpha.
29782     - Prevent the circuit build timeout from becoming larger than
29783       the maximum build time we have ever seen. Also, prevent the time
29784       period for measurement circuits from becoming larger than twice that
29785       value. Fixes the other part of bug 1772; bugfix on 0.2.2.2-alpha.
29787   o Minor features:
29788     - When we run out of directory information such that we can't build
29789       circuits, but then get enough that we can build circuits, log when
29790       we actually construct a circuit, so the user has a better chance of
29791       knowing what's going on. Fixes bug 1362.
29792     - Be more generous with how much bandwidth we'd use up (with
29793       accounting enabled) before entering "soft hibernation". Previously,
29794       we'd refuse new connections and circuits once we'd used up 95% of
29795       our allotment. Now, we use up 95% of our allotment, AND make sure
29796       that we have no more than 500MB (or 3 hours of expected traffic,
29797       whichever is lower) remaining before we enter soft hibernation.
29798     - If we've configured EntryNodes and our network goes away and/or all
29799       our entrynodes get marked down, optimistically retry them all when
29800       a new socks application request appears. Fixes bug 1882.
29801     - Add some more defensive programming for architectures that can't
29802       handle unaligned integer accesses. We don't know of any actual bugs
29803       right now, but that's the best time to fix them. Fixes bug 1943.
29804     - Support line continuations in the torrc config file. If a line
29805       ends with a single backslash character, the newline is ignored, and
29806       the configuration value is treated as continuing on the next line.
29807       Resolves bug 1929.
29809   o Minor bugfixes (on 0.2.1.x and earlier):
29810     - For bandwidth accounting, calculate our expected bandwidth rate
29811       based on the time during which we were active and not in
29812       soft-hibernation during the last interval. Previously, we were
29813       also considering the time spent in soft-hibernation. If this
29814       was a long time, we would wind up underestimating our bandwidth
29815       by a lot, and skewing our wakeup time towards the start of the
29816       accounting interval. Fixes bug 1789. Bugfix on 0.0.9pre5.
29818   o Minor bugfixes (on 0.2.2.x):
29819     - Resume generating CIRC FAILED REASON=TIMEOUT control port messages,
29820       which were disabled by the circuit build timeout changes in
29821       0.2.2.14-alpha. Bugfix on 0.2.2.14-alpha; fixes bug 1739.
29822     - Make sure we don't warn about missing bandwidth weights when
29823       choosing bridges or other relays not in the consensus. Bugfix on
29824       0.2.2.10-alpha; fixes bug 1805.
29825     - In our logs, do not double-report signatures from unrecognized
29826       authorities both as "from unknown authority" and "not
29827       present". Fixes bug 1956, bugfix on 0.2.2.16-alpha.
29830 Changes in version 0.2.2.16-alpha - 2010-09-17
29831   Tor 0.2.2.16-alpha fixes a variety of old stream fairness bugs (most
29832   evident at exit relays), and also continues to resolve all the little
29833   bugs that have been filling up trac lately.
29835   o Major bugfixes (stream-level fairness):
29836     - When receiving a circuit-level SENDME for a blocked circuit, try
29837       to package cells fairly from all the streams that had previously
29838       been blocked on that circuit. Previously, we had started with the
29839       oldest stream, and allowed each stream to potentially exhaust
29840       the circuit's package window. This gave older streams on any
29841       given circuit priority over newer ones. Fixes bug 1937. Detected
29842       originally by Camilo Viecco. This bug was introduced before the
29843       first Tor release, in svn commit r152: it is the new winner of
29844       the longest-lived bug prize.
29845     - When the exit relay got a circuit-level sendme cell, it started
29846       reading on the exit streams, even if had 500 cells queued in the
29847       circuit queue already, so the circuit queue just grew and grew in
29848       some cases. We fix this by not re-enabling reading on receipt of a
29849       sendme cell when the cell queue is blocked. Fixes bug 1653. Bugfix
29850       on 0.2.0.1-alpha. Detected by Mashael AlSabah. Original patch by
29851       "yetonetime".
29852     - Newly created streams were allowed to read cells onto circuits,
29853       even if the circuit's cell queue was blocked and waiting to drain.
29854       This created potential unfairness, as older streams would be
29855       blocked, but newer streams would gladly fill the queue completely.
29856       We add code to detect this situation and prevent any stream from
29857       getting more than one free cell. Bugfix on 0.2.0.1-alpha. Partially
29858       fixes bug 1298.
29860   o Minor features:
29861     - Update to the September 1 2010 Maxmind GeoLite Country database.
29862     - Warn when CookieAuthFileGroupReadable is set but CookieAuthFile is
29863       not. This would lead to a cookie that is still not group readable.
29864       Closes bug 1843. Suggested by katmagic.
29865     - When logging a rate-limited warning, we now mention how many messages
29866       got suppressed since the last warning.
29867     - Add new "perconnbwrate" and "perconnbwburst" consensus params to
29868       do individual connection-level rate limiting of clients. The torrc
29869       config options with the same names trump the consensus params, if
29870       both are present. Replaces the old "bwconnrate" and "bwconnburst"
29871       consensus params which were broken from 0.2.2.7-alpha through
29872       0.2.2.14-alpha. Closes bug 1947.
29873     - When a router changes IP address or port, authorities now launch
29874       a new reachability test for it. Implements ticket 1899.
29875     - Make the formerly ugly "2 unknown, 7 missing key, 0 good, 0 bad,
29876       2 no signature, 4 required" messages about consensus signatures
29877       easier to read, and make sure they get logged at the same severity
29878       as the messages explaining which keys are which. Fixes bug 1290.
29879     - Don't warn when we have a consensus that we can't verify because
29880       of missing certificates, unless those certificates are ones
29881       that we have been trying and failing to download. Fixes bug 1145.
29882     - If you configure your bridge with a known identity fingerprint,
29883       and the bridge authority is unreachable (as it is in at least
29884       one country now), fall back to directly requesting the descriptor
29885       from the bridge. Finishes the feature started in 0.2.0.10-alpha;
29886       closes bug 1138.
29887     - When building with --enable-gcc-warnings on OpenBSD, disable
29888       warnings in system headers. This makes --enable-gcc-warnings
29889       pass on OpenBSD 4.8.
29891   o Minor bugfixes (on 0.2.1.x and earlier):
29892     - Authorities will now attempt to download consensuses if their
29893       own efforts to make a live consensus have failed. This change
29894       means authorities that restart will fetch a valid consensus, and
29895       it means authorities that didn't agree with the current consensus
29896       will still fetch and serve it if it has enough signatures. Bugfix
29897       on 0.2.0.9-alpha; fixes bug 1300.
29898     - Ensure DNS requests launched by "RESOLVE" commands from the
29899       controller respect the __LeaveStreamsUnattached setconf options. The
29900       same goes for requests launched via DNSPort or transparent
29901       proxying. Bugfix on 0.2.0.1-alpha; fixes bug 1525.
29902     - Allow handshaking OR connections to take a full KeepalivePeriod
29903       seconds to handshake. Previously, we would close them after
29904       IDLE_OR_CONN_TIMEOUT (180) seconds, the same timeout as if they
29905       were open. Bugfix on 0.2.1.26; fixes bug 1840. Thanks to mingw-san
29906       for analysis help.
29907     - Rate-limit "Failed to hand off onionskin" warnings.
29908     - Never relay a cell for a circuit we have already destroyed.
29909       Between marking a circuit as closeable and finally closing it,
29910       it may have been possible for a few queued cells to get relayed,
29911       even though they would have been immediately dropped by the next
29912       OR in the circuit. Fixes bug 1184; bugfix on 0.2.0.1-alpha.
29913     - Never queue a cell for a circuit that's already been marked
29914       for close.
29915     - Never vote for a server as "Running" if we have a descriptor for
29916       it claiming to be hibernating, and that descriptor was published
29917       more recently than our last contact with the server. Bugfix on
29918       0.2.0.3-alpha; fixes bug 911.
29919     - Squash a compile warning on OpenBSD. Reported by Tas; fixes
29920       bug 1848.
29922   o Minor bugfixes (on 0.2.2.x):
29923     - Fix a regression introduced in 0.2.2.7-alpha that marked relays
29924       down if a directory fetch fails and you've configured either
29925       bridges or EntryNodes. The intent was to mark the relay as down
29926       _unless_ you're using bridges or EntryNodes, since if you are
29927       then you could quickly run out of entry points.
29928     - Fix the Windows directory-listing code. A bug introduced in
29929       0.2.2.14-alpha could make Windows directory servers forget to load
29930       some of their cached v2 networkstatus files.
29931     - Really allow clients to use relays as bridges. Fixes bug 1776;
29932       bugfix on 0.2.2.15-alpha.
29933     - Demote a warn to info that happens when the CellStatistics option
29934       was just enabled. Bugfix on 0.2.2.15-alpha; fixes bug 1921.
29935       Reported by Moritz Bartl.
29936     - On Windows, build correctly either with or without Unicode support.
29937       This is necessary so that Tor can support fringe platforms like
29938       Windows 98 (which has no Unicode), or Windows CE (which has no
29939       non-Unicode). Bugfix on 0.2.2.14-alpha; fixes bug 1797.
29941   o Testing
29942     - Add a unit test for cross-platform directory-listing code.
29945 Changes in version 0.2.2.15-alpha - 2010-08-18
29946   Tor 0.2.2.15-alpha fixes a big bug in hidden service availability,
29947   fixes a variety of other bugs that were preventing performance
29948   experiments from moving forward, fixes several bothersome memory leaks,
29949   and generally closes a lot of smaller bugs that have been filling up
29950   trac lately.
29952   o Major bugfixes:
29953     - Stop assigning the HSDir flag to relays that disable their
29954       DirPort (and thus will refuse to answer directory requests). This
29955       fix should dramatically improve the reachability of hidden services:
29956       hidden services and hidden service clients pick six HSDir relays
29957       to store and retrieve the hidden service descriptor, and currently
29958       about half of the HSDir relays will refuse to work. Bugfix on
29959       0.2.0.10-alpha; fixes part of bug 1693.
29960     - The PerConnBWRate and Burst config options, along with the
29961       bwconnrate and bwconnburst consensus params, initialized each conn's
29962       token bucket values only when the connection is established. Now we
29963       update them if the config options change, and update them every time
29964       we get a new consensus. Otherwise we can encounter an ugly edge
29965       case where we initialize an OR conn to client-level bandwidth,
29966       but then later the relay joins the consensus and we leave it
29967       throttled. Bugfix on 0.2.2.7-alpha; fixes bug 1830.
29968     - Fix a regression that caused Tor to rebind its ports if it receives
29969       SIGHUP while hibernating. Bugfix in 0.1.1.6-alpha; closes bug 919.
29971   o Major features:
29972     - Lower the maximum weighted-fractional-uptime cutoff to 98%. This
29973       should give us approximately 40-50% more Guard-flagged nodes,
29974       improving the anonymity the Tor network can provide and also
29975       decreasing the dropoff in throughput that relays experience when
29976       they first get the Guard flag.
29977     - Allow enabling or disabling the *Statistics config options while
29978       Tor is running.
29980   o Minor features:
29981     - Update to the August 1 2010 Maxmind GeoLite Country database.
29982     - Have the controller interface give a more useful message than
29983       "Internal Error" in response to failed GETINFO requests.
29984     - Warn when the same option is provided more than once in a torrc
29985       file, on the command line, or in a single SETCONF statement, and
29986       the option is one that only accepts a single line. Closes bug 1384.
29987     - Build correctly on mingw with more recent versions of OpenSSL 0.9.8.
29988       Patch from mingw-san.
29989     - Add support for the country code "{??}" in torrc options like
29990       ExcludeNodes, to indicate all routers of unknown country. Closes
29991       bug 1094.
29992     - Relays report the number of bytes spent on answering directory
29993       requests in extra-info descriptors similar to {read,write}-history.
29994       Implements enhancement 1790.
29996   o Minor bugfixes (on 0.2.1.x and earlier):
29997     - Complain if PublishServerDescriptor is given multiple arguments that
29998       include 0 or 1. This configuration will be rejected in the future.
29999       Bugfix on 0.2.0.1-alpha; closes bug 1107.
30000     - Disallow BridgeRelay 1 and ORPort 0 at once in the configuration.
30001       Bugfix on 0.2.0.13-alpha; closes bug 928.
30002     - Change "Application request when we're believed to be offline."
30003       notice to "Application request when we haven't used client
30004       functionality lately.", to clarify that it's not an error. Bugfix
30005       on 0.0.9.3; fixes bug 1222.
30006     - Fix a bug in the controller interface where "GETINFO ns/asdaskljkl"
30007       would return "551 Internal error" rather than "552 Unrecognized key
30008       ns/asdaskljkl". Bugfix on 0.1.2.3-alpha.
30009     - Users can't configure a regular relay to be their bridge. It didn't
30010       work because when Tor fetched the bridge descriptor, it found
30011       that it already had it, and didn't realize that the purpose of the
30012       descriptor had changed. Now we replace routers with a purpose other
30013       than bridge with bridge descriptors when fetching them. Bugfix on
30014       0.1.1.9-alpha. Bug 1776 not yet fixed because now we immediately
30015       refetch the descriptor with router purpose 'general', disabling
30016       it as a bridge.
30017     - Fix a rare bug in rend_fn unit tests: we would fail a test when
30018       a randomly generated port is 0. Diagnosed by Matt Edman. Bugfix
30019       on 0.2.0.10-alpha; fixes bug 1808.
30020     - Exit nodes didn't recognize EHOSTUNREACH as a plausible error code,
30021       and so sent back END_STREAM_REASON_MISC. Clients now recognize a new
30022       stream ending reason for this case: END_STREAM_REASON_NOROUTE.
30023       Servers can start sending this code when enough clients recognize
30024       it. Also update the spec to reflect this new reason. Bugfix on
30025       0.1.0.1-rc; fixes part of bug 1793.
30026     - Delay geoip stats collection by bridges for 6 hours, not 2 hours,
30027       when we switch from being a public relay to a bridge. Otherwise
30028       there will still be clients that see the relay in their consensus,
30029       and the stats will end up wrong. Bugfix on 0.2.1.15-rc; fixes bug
30030       932 even more.
30031     - Instead of giving an assertion failure on an internal mismatch
30032       on estimated freelist size, just log a BUG warning and try later.
30033       Mitigates but does not fix bug 1125.
30034     - Fix an assertion failure that could occur in caches or bridge users
30035       when using a very short voting interval on a testing network.
30036       Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on 0.2.0.8-alpha.
30038   o Minor bugfixes (on 0.2.2.x):
30039     - Alter directory authorities to always consider Exit-flagged nodes
30040       as potential Guard nodes in their votes. The actual decision to
30041       use Exits as Guards is done in the consensus bandwidth weights.
30042       Fixes bug 1294; bugfix on 0.2.2.10-alpha.
30043     - When the controller is reporting the purpose of circuits that
30044       didn't finish building before the circuit build timeout, it was
30045       printing UNKNOWN_13. Now print EXPIRED. Bugfix on 0.2.2.14-alpha.
30046     - Our libevent version parsing code couldn't handle versions like
30047       1.4.14b-stable and incorrectly warned the user about using an
30048       old and broken version of libevent. Treat 1.4.14b-stable like
30049       1.4.14-stable when parsing the version. Fixes bug 1731; bugfix
30050       on 0.2.2.1-alpha.
30051     - Don't use substitution references like $(VAR:MOD) when
30052       $(asciidoc_files) is empty -- make(1) on NetBSD transforms
30053       '$(:x)' to 'x' rather than the empty string. This bites us in
30054       doc/ when configured with --disable-asciidoc. Bugfix on
30055       0.2.2.9-alpha; fixes bug 1773.
30056     - Remove a spurious hidden service server-side log notice about
30057       "Ancient non-dirty circuits". Bugfix on 0.2.2.14-alpha; fixes
30058       bug 1741.
30059     - Fix compilation with --with-dmalloc set. Bugfix on 0.2.2.6-alpha;
30060       fixes bug 1832.
30061     - Correctly report written bytes on linked connections. Found while
30062       implementing 1790. Bugfix on 0.2.2.4-alpha.
30063     - Fix three memory leaks: one in circuit_build_times_parse_state(),
30064       one in dirvote_add_signatures_to_pending_consensus(), and one every
30065       time we parse a v3 network consensus. Bugfixes on 0.2.2.14-alpha,
30066       0.2.2.6-alpha, and 0.2.2.10-alpha respectively; fixes bug 1831.
30068   o Code simplifications and refactoring:
30069     - Take a first step towards making or.h smaller by splitting out
30070       function definitions for all source files in src/or/. Leave
30071       structures and defines in or.h for now.
30072     - Remove a bunch of unused function declarations as well as a block of
30073       #if 0'd code from the unit tests. Closes bug 1824.
30074     - New unit tests for exit-port history statistics; refactored exit
30075       statistics code to be more easily tested.
30076     - Remove the old debian/ directory from the main Tor distribution.
30077       The official Tor-for-debian git repository lives at the URL
30078       https://git.torproject.org/debian/tor.git
30081 Changes in version 0.2.2.14-alpha - 2010-07-12
30082   Tor 0.2.2.14-alpha greatly improves client-side handling of
30083   circuit build timeouts, which are used to estimate speed and improve
30084   performance. We also move to a much better GeoIP database, port Tor to
30085   Windows CE, introduce new compile flags that improve code security,
30086   add an eighth v3 directory authority, and address a lot of more
30087   minor issues.
30089   o Major bugfixes:
30090     - Tor directory authorities no longer crash when started with a
30091       cached-microdesc-consensus file in their data directory. Bugfix
30092       on 0.2.2.6-alpha; fixes bug 1532.
30093     - Treat an unset $HOME like an empty $HOME rather than triggering an
30094       assert. Bugfix on 0.0.8pre1; fixes bug 1522.
30095     - Ignore negative and large circuit build timeout values that can
30096       happen during a suspend or hibernate. These values caused various
30097       asserts to fire. Bugfix on 0.2.2.2-alpha; fixes bug 1245.
30098     - Alter calculation of Pareto distribution parameter 'Xm' for
30099       Circuit Build Timeout learning to use the weighted average of the
30100       top N=3 modes (because we have three entry guards). Considering
30101       multiple modes should improve the timeout calculation in some cases,
30102       and prevent extremely high timeout values. Bugfix on 0.2.2.2-alpha;
30103       fixes bug 1335.
30104     - Alter calculation of Pareto distribution parameter 'Alpha' to use a
30105       right censored distribution model. This approach improves over the
30106       synthetic timeout generation approach that was producing insanely
30107       high timeout values. Now we calculate build timeouts using truncated
30108       times. Bugfix on 0.2.2.2-alpha; fixes bugs 1245 and 1335.
30109     - Do not close circuits that are under construction when they reach
30110       the circuit build timeout. Instead, leave them building (but do not
30111       use them) for up until the time corresponding to the 95th percentile
30112       on the Pareto CDF or 60 seconds, whichever is greater. This is done
30113       to provide better data for the new Pareto model. This percentile
30114       can be controlled by the consensus.
30116   o Major features:
30117     - Move to the June 2010 Maxmind GeoLite country db (rather than the
30118       June 2009 ip-to-country GeoIP db) for our statistics that count
30119       how many users relays are seeing from each country. Now we have
30120       more accurate data for many African countries.
30121     - Port Tor to build and run correctly on Windows CE systems, using
30122       the wcecompat library. Contributed by Valerio Lupi.
30123     - New "--enable-gcc-hardening" ./configure flag (off by default)
30124       to turn on gcc compile time hardening options. It ensures
30125       that signed ints have defined behavior (-fwrapv), enables
30126       -D_FORTIFY_SOURCE=2 (requiring -O2), adds stack smashing protection
30127       with canaries (-fstack-protector-all), turns on ASLR protection if
30128       supported by the kernel (-fPIE, -pie), and adds additional security
30129       related warnings. Verified to work on Mac OS X and Debian Lenny.
30130     - New "--enable-linker-hardening" ./configure flag (off by default)
30131       to turn on ELF specific hardening features (relro, now). This does
30132       not work with Mac OS X or any other non-ELF binary format.
30134   o New directory authorities:
30135     - Set up maatuska (run by Linus Nordberg) as the eighth v3 directory
30136       authority.
30138   o Minor features:
30139     - New config option "WarnUnsafeSocks 0" disables the warning that
30140       occurs whenever Tor receives a socks handshake using a version of
30141       the socks protocol that can only provide an IP address (rather
30142       than a hostname). Setups that do DNS locally over Tor are fine,
30143       and we shouldn't spam the logs in that case.
30144     - Convert the HACKING file to asciidoc, and add a few new sections
30145       to it, explaining how we use Git, how we make changelogs, and
30146       what should go in a patch.
30147     - Add a TIMEOUT_RATE keyword to the BUILDTIMEOUT_SET control port
30148       event, to give information on the current rate of circuit timeouts
30149       over our stored history.
30150     - Add ability to disable circuit build time learning via consensus
30151       parameter and via a LearnCircuitBuildTimeout config option. Also
30152       automatically disable circuit build time calculation if we are
30153       either a AuthoritativeDirectory, or if we fail to write our state
30154       file. Fixes bug 1296.
30155     - More gracefully handle corrupt state files, removing asserts
30156       in favor of saving a backup and resetting state.
30157     - Rename the "log.h" header to "torlog.h" so as to conflict with fewer
30158       system headers.
30160   o Minor bugfixes:
30161     - Build correctly on OSX with zlib 1.2.4 and higher with all warnings
30162       enabled.
30163     - When a2x fails, mention that the user could disable manpages instead
30164       of trying to fix their asciidoc installation.
30165     - Where available, use Libevent 2.0's periodic timers so that our
30166       once-per-second cleanup code gets called even more closely to
30167       once per second than it would otherwise. Fixes bug 943.
30168     - If you run a bridge that listens on multiple IP addresses, and
30169       some user configures a bridge address that uses a different IP
30170       address than your bridge writes in its router descriptor, and the
30171       user doesn't specify an identity key, their Tor would discard the
30172       descriptor because "it isn't one of our configured bridges", and
30173       fail to bootstrap. Now believe the descriptor and bootstrap anyway.
30174       Bugfix on 0.2.0.3-alpha.
30175     - If OpenSSL fails to make a duplicate of a private or public key, log
30176       an error message and try to exit cleanly. May help with debugging
30177       if bug 1209 ever remanifests.
30178     - Save a couple bytes in memory allocation every time we escape
30179       certain characters in a string. Patch from Florian Zumbiehl.
30180     - Make it explicit that we don't cannibalize one-hop circuits. This
30181       happens in the wild, but doesn't turn out to be a problem because
30182       we fortunately don't use those circuits. Many thanks to outofwords
30183       for the initial analysis and to swissknife who confirmed that
30184       two-hop circuits are actually created.
30185     - Make directory mirrors report non-zero dirreq-v[23]-shares again.
30186       Fixes bug 1564; bugfix on 0.2.2.9-alpha.
30187     - Eliminate a case where a circuit build time warning was displayed
30188       after network connectivity resumed. Bugfix on 0.2.2.2-alpha.
30191 Changes in version 0.2.1.26 - 2010-05-02
30192   Tor 0.2.1.26 addresses the recent connection and memory overload
30193   problems we've been seeing on relays, especially relays with their
30194   DirPort open. If your relay has been crashing, or you turned it off
30195   because it used too many resources, give this release a try.
30197   This release also fixes yet another instance of broken OpenSSL libraries
30198   that was causing some relays to drop out of the consensus.
30200   o Major bugfixes:
30201     - Teach relays to defend themselves from connection overload. Relays
30202       now close idle circuits early if it looks like they were intended
30203       for directory fetches. Relays are also more aggressive about closing
30204       TLS connections that have no circuits on them. Such circuits are
30205       unlikely to be re-used, and tens of thousands of them were piling
30206       up at the fast relays, causing the relays to run out of sockets
30207       and memory. Bugfix on 0.2.0.22-rc (where clients started tunneling
30208       their directory fetches over TLS).
30209     - Fix SSL renegotiation behavior on OpenSSL versions like on Centos
30210       that claim to be earlier than 0.9.8m, but which have in reality
30211       backported huge swaths of 0.9.8m or 0.9.8n renegotiation
30212       behavior. Possible fix for some cases of bug 1346.
30213     - Directory mirrors were fetching relay descriptors only from v2
30214       directory authorities, rather than v3 authorities like they should.
30215       Only 2 v2 authorities remain (compared to 7 v3 authorities), leading
30216       to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324.
30218   o Minor bugfixes:
30219     - Finally get rid of the deprecated and now harmful notion of "clique
30220       mode", where directory authorities maintain TLS connections to
30221       every other relay.
30223   o Testsuite fixes:
30224     - In the util/threads test, no longer free the test_mutex before all
30225       worker threads have finished. Bugfix on 0.2.1.6-alpha.
30226     - The master thread could starve the worker threads quite badly on
30227       certain systems, causing them to run only partially in the allowed
30228       window. This resulted in test failures. Now the master thread sleeps
30229       occasionally for a few microseconds while the two worker-threads
30230       compete for the mutex. Bugfix on 0.2.0.1-alpha.
30233 Changes in version 0.2.2.13-alpha - 2010-04-24
30234   Tor 0.2.2.13-alpha addresses the recent connection and memory overload
30235   problems we've been seeing on relays, especially relays with their
30236   DirPort open. If your relay has been crashing, or you turned it off
30237   because it used too many resources, give this release a try.
30239   o Major bugfixes:
30240     - Teach relays to defend themselves from connection overload. Relays
30241       now close idle circuits early if it looks like they were intended
30242       for directory fetches. Relays are also more aggressive about closing
30243       TLS connections that have no circuits on them. Such circuits are
30244       unlikely to be re-used, and tens of thousands of them were piling
30245       up at the fast relays, causing the relays to run out of sockets
30246       and memory. Bugfix on 0.2.0.22-rc (where clients started tunneling
30247       their directory fetches over TLS).
30249   o Minor features:
30250     - Finally get rid of the deprecated and now harmful notion of "clique
30251       mode", where directory authorities maintain TLS connections to
30252       every other relay.
30253     - Directory authorities now do an immediate reachability check as soon
30254       as they hear about a new relay. This change should slightly reduce
30255       the time between setting up a relay and getting listed as running
30256       in the consensus. It should also improve the time between setting
30257       up a bridge and seeing use by bridge users.
30258     - Directory authorities no longer launch a TLS connection to every
30259       relay as they startup. Now that we have 2k+ descriptors cached,
30260       the resulting network hiccup is becoming a burden. Besides,
30261       authorities already avoid voting about Running for the first half
30262       hour of their uptime.
30265 Changes in version 0.2.2.12-alpha - 2010-04-20
30266   Tor 0.2.2.12-alpha fixes a critical bug in how directory authorities
30267   handle and vote on descriptors. It was causing relays to drop out of
30268   the consensus.
30270   o Major bugfixes:
30271     - Many relays have been falling out of the consensus lately because
30272       not enough authorities know about their descriptor for them to get
30273       a majority of votes. When we deprecated the v2 directory protocol,
30274       we got rid of the only way that v3 authorities can hear from each
30275       other about other descriptors. Now authorities examine every v3
30276       vote for new descriptors, and fetch them from that authority. Bugfix
30277       on 0.2.1.23.
30278     - Fix two typos in tor_vasprintf() that broke the compile on Windows,
30279       and a warning in or.h related to bandwidth_weight_rule_t that
30280       prevented clean compile on OS X. Fixes bug 1363; bugfix on
30281       0.2.2.11-alpha.
30282     - Fix a segfault on relays when DirReqStatistics is enabled
30283       and 24 hours pass. Bug found by keb. Fixes bug 1365; bugfix on
30284       0.2.2.11-alpha.
30286   o Minor bugfixes:
30287     - Demote a confusing TLS warning that relay operators might get when
30288       someone tries to talk to their OrPort. It is neither the operator's
30289       fault nor can they do anything about it. Fixes bug 1364; bugfix
30290       on 0.2.0.14-alpha.
30293 Changes in version 0.2.2.11-alpha - 2010-04-15
30294   Tor 0.2.2.11-alpha fixes yet another instance of broken OpenSSL
30295   libraries that was causing some relays to drop out of the consensus.
30297   o Major bugfixes:
30298     - Directory mirrors were fetching relay descriptors only from v2
30299       directory authorities, rather than v3 authorities like they should.
30300       Only 2 v2 authorities remain (compared to 7 v3 authorities), leading
30301       to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324.
30302     - Fix a parsing error that made every possible value of
30303       CircPriorityHalflifeMsec get treated as "1 msec". Bugfix
30304       on 0.2.2.7-alpha. Rename CircPriorityHalflifeMsec to
30305       CircuitPriorityHalflifeMsec, so authorities can tell newer relays
30306       about the option without breaking older ones.
30307     - Fix SSL renegotiation behavior on OpenSSL versions like on Centos
30308       that claim to be earlier than 0.9.8m, but which have in reality
30309       backported huge swaths of 0.9.8m or 0.9.8n renegotiation
30310       behavior. Possible fix for some cases of bug 1346.
30312   o Minor features:
30313     - Experiment with a more aggressive approach to preventing clients
30314       from making one-hop exit streams. Exit relays who want to try it
30315       out can set "RefuseUnknownExits 1" in their torrc, and then look
30316       for "Attempt by %s to open a stream" log messages. Let us know
30317       how it goes!
30318     - Add support for statically linking zlib by specifying
30319       --enable-static-zlib, to go with our support for statically linking
30320       openssl and libevent. Resolves bug 1358.
30322   o Minor bugfixes:
30323     - Fix a segfault that happens whenever a Tor client that is using
30324       libevent2's bufferevents gets a hup signal. Bugfix on 0.2.2.5-alpha;
30325       fixes bug 1341.
30326     - When we cleaned up the contrib/tor-exit-notice.html file, we left
30327       out the first line. Fixes bug 1295.
30328     - When building the manpage from a tarball, we required asciidoc, but
30329       the asciidoc -> roff/html conversion was already done for the
30330       tarball. Make 'make' complain only when we need asciidoc (either
30331       because we're compiling directly from git, or because we altered
30332       the asciidoc manpage in the tarball). Bugfix on 0.2.2.9-alpha.
30333     - When none of the directory authorities vote on any params, Tor
30334       segfaulted when trying to make the consensus from the votes. We
30335       didn't trigger the bug in practice, because authorities do include
30336       params in their votes. Bugfix on 0.2.2.10-alpha; fixes bug 1322.
30338   o Testsuite fixes:
30339     - In the util/threads test, no longer free the test_mutex before all
30340       worker threads have finished. Bugfix on 0.2.1.6-alpha.
30341     - The master thread could starve the worker threads quite badly on
30342       certain systems, causing them to run only partially in the allowed
30343       window. This resulted in test failures. Now the master thread sleeps
30344       occasionally for a few microseconds while the two worker-threads
30345       compete for the mutex. Bugfix on 0.2.0.1-alpha.
30348 Changes in version 0.2.2.10-alpha - 2010-03-07
30349   Tor 0.2.2.10-alpha fixes a regression introduced in 0.2.2.9-alpha that
30350   could prevent relays from guessing their IP address correctly. It also
30351   starts the groundwork for another client-side performance boost, since
30352   currently we're not making efficient use of relays that have both the
30353   Guard flag and the Exit flag.
30355   o Major bugfixes:
30356     - Fix a regression from our patch for bug 1244 that caused relays
30357       to guess their IP address incorrectly if they didn't set Address
30358       in their torrc and/or their address fails to resolve. Bugfix on
30359       0.2.2.9-alpha; fixes bug 1269.
30361   o Major features (performance):
30362     - Directory authorities now compute consensus weightings that instruct
30363       clients how to weight relays flagged as Guard, Exit, Guard+Exit,
30364       and no flag. Clients that use these weightings will distribute
30365       network load more evenly across these different relay types. The
30366       weightings are in the consensus so we can change them globally in
30367       the future. Extra thanks to "outofwords" for finding some nasty
30368       security bugs in the first implementation of this feature.
30370   o Minor features (performance):
30371     - Always perform router selections using weighted relay bandwidth,
30372       even if we don't need a high capacity circuit at the time. Non-fast
30373       circuits now only differ from fast ones in that they can use relays
30374       not marked with the Fast flag. This "feature" could turn out to
30375       be a horrible bug; we should investigate more before it goes into
30376       a stable release.
30378   o Minor features:
30379     - Allow disabling building of the manpages. Skipping the manpage
30380       speeds up the build considerably.
30382   o Minor bugfixes (on 0.2.2.x):
30383     - Fix a memleak in the EXTENDCIRCUIT logic. Spotted by coverity.
30384       Bugfix on 0.2.2.9-alpha.
30385     - Disallow values larger than INT32_MAX for PerConnBWRate|Burst
30386       config option. Bugfix on 0.2.2.7-alpha.
30387     - Ship the asciidoc-helper file in the tarball, so that people can
30388       build from source if they want to, and touching the .1.txt files
30389       doesn't break the build. Bugfix on 0.2.2.9-alpha.
30391   o Minor bugfixes (on 0.2.1.x or earlier):
30392     - Fix a dereference-then-NULL-check sequence when publishing
30393       descriptors. Bugfix on 0.2.1.5-alpha. Discovered by ekir; fixes
30394       bug 1255.
30395     - Fix another dereference-then-NULL-check sequence. Bugfix on
30396       0.2.1.14-rc. Discovered by ekir; fixes bug 1256.
30397     - Make sure we treat potentially not NUL-terminated strings correctly.
30398       Bugfix on 0.1.1.13-alpha. Discovered by rieo; fixes bug 1257.
30400   o Code simplifications and refactoring:
30401     - Fix some urls in the exit notice file and make it XHTML1.1 strict
30402       compliant. Based on a patch from Christian Kujau.
30403     - Don't use sed in asciidoc-helper anymore.
30404     - Make the build process fail if asciidoc cannot be found and
30405       building with asciidoc isn't disabled.
30408 Changes in version 0.2.2.9-alpha - 2010-02-22
30409   Tor 0.2.2.9-alpha makes Tor work again on the latest OS X, updates the
30410   location of a directory authority, and cleans up a bunch of small bugs.
30412   o Directory authority changes:
30413     - Change IP address for dannenberg (v3 directory authority), and
30414       remove moria2 (obsolete v1, v2 directory authority and v0 hidden
30415       service directory authority) from the list.
30417   o Major bugfixes:
30418     - Make Tor work again on the latest OS X: when deciding whether to
30419       use strange flags to turn TLS renegotiation on, detect the OpenSSL
30420       version at run-time, not compile time. We need to do this because
30421       Apple doesn't update its dev-tools headers when it updates its
30422       libraries in a security patch.
30423     - Fix a potential buffer overflow in lookup_last_hid_serv_request()
30424       that could happen on 32-bit platforms with 64-bit time_t. Also fix
30425       a memory leak when requesting a hidden service descriptor we've
30426       requested before. Fixes bug 1242, bugfix on 0.2.0.18-alpha. Found
30427       by aakova.
30428     - Authorities could be tricked into giving out the Exit flag to relays
30429       that didn't allow exiting to any ports. This bug could screw
30430       with load balancing and stats. Bugfix on 0.1.1.6-alpha; fixes bug
30431       1238. Bug discovered by Martin Kowalczyk.
30432     - When freeing a session key, zero it out completely. We only zeroed
30433       the first ptrsize bytes. Bugfix on 0.0.2pre8. Discovered and
30434       patched by ekir. Fixes bug 1254.
30436   o Minor bugfixes:
30437     - Fix static compilation by listing the openssl libraries in the right
30438       order. Bugfix on Tor 0.2.2.8-alpha; fixes bug 1237.
30439     - Resume handling .exit hostnames in a special way: originally we
30440       stripped the .exit part and used the requested exit relay. In
30441       0.2.2.1-alpha we stopped treating them in any special way, meaning
30442       if you use a .exit address then Tor will pass it on to the exit
30443       relay. Now we reject the .exit stream outright, since that behavior
30444       might be more expected by the user. Found and diagnosed by Scott
30445       Bennett and Downie on or-talk.
30446     - Don't spam the controller with events when we have no file
30447       descriptors available. Bugfix on 0.2.1.5-alpha. (Rate-limiting
30448       for log messages was already solved from bug 748.)
30449     - Avoid a bogus overlapped memcpy in tor_addr_copy(). Reported by
30450       "memcpyfail".
30451     - Make the DNSPort option work with libevent 2.x. Don't alter the
30452       behavior for libevent 1.x. Fixes bug 1143. Found by SwissTorExit.
30453     - Emit a GUARD DROPPED controller event for a case we missed.
30454     - Make more fields in the controller protocol case-insensitive, since
30455       control-spec.txt said they were.
30456     - Refactor resolve_my_address() to not use gethostbyname() anymore.
30457       Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.
30458     - Fix a spec conformance issue: the network-status-version token
30459       must be the first token in a v3 consensus or vote. Discovered by
30460       parakeep. Bugfix on 0.2.0.3-alpha.
30462   o Code simplifications and refactoring:
30463     - Generate our manpage and HTML documentation using Asciidoc. This
30464       change should make it easier to maintain the documentation, and
30465       produce nicer HTML.
30466     - Remove the --enable-iphone option. According to reports from Marco
30467       Bonetti, Tor builds fine without any special tweaking on recent
30468       iPhone SDK versions.
30469     - Removed some unnecessary files from the source distribution. The
30470       AUTHORS file has now been merged into the people page on the
30471       website. The roadmaps and design doc can now be found in the
30472       projects directory in svn.
30473     - Enabled various circuit build timeout constants to be controlled
30474       by consensus parameters. Also set better defaults for these
30475       parameters based on experimentation on broadband and simulated
30476       high latency links.
30478   o Minor features:
30479     - The 'EXTENDCIRCUIT' control port command can now be used with
30480       a circ id of 0 and no path. This feature will cause Tor to build
30481       a new 'fast' general purpose circuit using its own path selection
30482       algorithms.
30483     - Added a BUILDTIMEOUT_SET controller event to describe changes
30484       to the circuit build timeout.
30485     - Future-proof the controller protocol a bit by ignoring keyword
30486       arguments we do not recognize.
30487     - Expand homedirs passed to tor-checkkey. This should silence a
30488       coverity complaint about passing a user-supplied string into
30489       open() without checking it.
30492 Changes in version 0.2.1.25 - 2010-03-16
30493   Tor 0.2.1.25 fixes a regression introduced in 0.2.1.23 that could
30494   prevent relays from guessing their IP address correctly. It also fixes
30495   several minor potential security bugs.
30497   o Major bugfixes:
30498     - Fix a regression from our patch for bug 1244 that caused relays
30499       to guess their IP address incorrectly if they didn't set Address
30500       in their torrc and/or their address fails to resolve. Bugfix on
30501       0.2.1.23; fixes bug 1269.
30502     - When freeing a session key, zero it out completely. We only zeroed
30503       the first ptrsize bytes. Bugfix on 0.0.2pre8. Discovered and
30504       patched by ekir. Fixes bug 1254.
30506   o Minor bugfixes:
30507     - Fix a dereference-then-NULL-check sequence when publishing
30508       descriptors. Bugfix on 0.2.1.5-alpha. Discovered by ekir; fixes
30509       bug 1255.
30510     - Fix another dereference-then-NULL-check sequence. Bugfix on
30511       0.2.1.14-rc. Discovered by ekir; fixes bug 1256.
30512     - Make sure we treat potentially not NUL-terminated strings correctly.
30513       Bugfix on 0.1.1.13-alpha. Discovered by rieo; fixes bug 1257.
30517 Changes in version 0.2.1.24 - 2010-02-21
30518   Tor 0.2.1.24 makes Tor work again on the latest OS X -- this time
30519   for sure!
30521   o Minor bugfixes:
30522     - Work correctly out-of-the-box with even more vendor-patched versions
30523       of OpenSSL. In particular, make it so Debian and OS X don't need
30524       customized patches to run/build.
30527 Changes in version 0.2.1.23 - 2010-02-13
30528   Tor 0.2.1.23 fixes a huge client-side performance bug, makes Tor work
30529   again on the latest OS X, and updates the location of a directory
30530   authority.
30532   o Major bugfixes (performance):
30533     - We were selecting our guards uniformly at random, and then weighting
30534       which of our guards we'd use uniformly at random. This imbalance
30535       meant that Tor clients were severely limited on throughput (and
30536       probably latency too) by the first hop in their circuit. Now we
30537       select guards weighted by currently advertised bandwidth. We also
30538       automatically discard guards picked using the old algorithm. Fixes
30539       bug 1217; bugfix on 0.2.1.3-alpha. Found by Mike Perry.
30541   o Major bugfixes:
30542     - Make Tor work again on the latest OS X: when deciding whether to
30543       use strange flags to turn TLS renegotiation on, detect the OpenSSL
30544       version at run-time, not compile time. We need to do this because
30545       Apple doesn't update its dev-tools headers when it updates its
30546       libraries in a security patch.
30547     - Fix a potential buffer overflow in lookup_last_hid_serv_request()
30548       that could happen on 32-bit platforms with 64-bit time_t. Also fix
30549       a memory leak when requesting a hidden service descriptor we've
30550       requested before. Fixes bug 1242, bugfix on 0.2.0.18-alpha. Found
30551       by aakova.
30553   o Directory authority changes:
30554     - Change IP address for dannenberg (v3 directory authority), and
30555       remove moria2 (obsolete v1, v2 directory authority and v0 hidden
30556       service directory authority) from the list.
30558   o Minor bugfixes:
30559     - Refactor resolve_my_address() to not use gethostbyname() anymore.
30560       Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik.
30562   o Minor features:
30563     - Avoid a mad rush at the beginning of each month when each client
30564       rotates half of its guards. Instead we spread the rotation out
30565       throughout the month, but we still avoid leaving a precise timestamp
30566       in the state file about when we first picked the guard. Improves
30567       over the behavior introduced in 0.1.2.17.
30570 Changes in version 0.2.2.8-alpha - 2010-01-26
30571   Tor 0.2.2.8-alpha fixes a crash bug in 0.2.2.7-alpha that has been
30572   causing bridge relays to disappear. If you're running a bridge,
30573   please upgrade.
30575   o Major bugfixes:
30576     - Fix a memory corruption bug on bridges that occurred during the
30577       inclusion of stats data in extra-info descriptors. Also fix the
30578       interface for geoip_get_bridge_stats* to prevent similar bugs in
30579       the future. Diagnosis by Tas, patch by Karsten and Sebastian.
30580       Fixes bug 1208; bugfix on 0.2.2.7-alpha.
30582   o Minor bugfixes:
30583     - Ignore OutboundBindAddress when connecting to localhost.
30584       Connections to localhost need to come _from_ localhost, or else
30585       local servers (like DNS and outgoing HTTP/SOCKS proxies) will often
30586       refuse to listen.
30589 Changes in version 0.2.2.7-alpha - 2010-01-19
30590   Tor 0.2.2.7-alpha fixes a huge client-side performance bug, as well
30591   as laying the groundwork for further relay-side performance fixes. It
30592   also starts cleaning up client behavior with respect to the EntryNodes,
30593   ExitNodes, and StrictNodes config options.
30595   This release also rotates two directory authority keys, due to a
30596   security breach of some of the Torproject servers.
30598   o Directory authority changes:
30599     - Rotate keys (both v3 identity and relay identity) for moria1
30600       and gabelmoo.
30602   o Major features (performance):
30603     - We were selecting our guards uniformly at random, and then weighting
30604       which of our guards we'd use uniformly at random. This imbalance
30605       meant that Tor clients were severely limited on throughput (and
30606       probably latency too) by the first hop in their circuit. Now we
30607       select guards weighted by currently advertised bandwidth. We also
30608       automatically discard guards picked using the old algorithm. Fixes
30609       bug 1217; bugfix on 0.2.1.3-alpha. Found by Mike Perry.
30610     - When choosing which cells to relay first, relays can now favor
30611       circuits that have been quiet recently, to provide lower latency
30612       for low-volume circuits. By default, relays enable or disable this
30613       feature based on a setting in the consensus. You can override
30614       this default by using the new "CircuitPriorityHalflife" config
30615       option. Design and code by Ian Goldberg, Can Tang, and Chris
30616       Alexander.
30617     - Add separate per-conn write limiting to go with the per-conn read
30618       limiting. We added a global write limit in Tor 0.1.2.5-alpha,
30619       but never per-conn write limits.
30620     - New consensus params "bwconnrate" and "bwconnburst" to let us
30621       rate-limit client connections as they enter the network. It's
30622       controlled in the consensus so we can turn it on and off for
30623       experiments. It's starting out off. Based on proposal 163.
30625   o Major features (relay selection options):
30626     - Switch to a StrictNodes config option, rather than the previous
30627       "StrictEntryNodes" / "StrictExitNodes" separation that was missing a
30628       "StrictExcludeNodes" option.
30629     - If EntryNodes, ExitNodes, ExcludeNodes, or ExcludeExitNodes
30630       change during a config reload, mark and discard all our origin
30631       circuits. This fix should address edge cases where we change the
30632       config options and but then choose a circuit that we created before
30633       the change.
30634     - If EntryNodes or ExitNodes are set, be more willing to use an
30635       unsuitable (e.g. slow or unstable) circuit. The user asked for it,
30636       they get it.
30637     - Make EntryNodes config option much more aggressive even when
30638       StrictNodes is not set. Before it would prepend your requested
30639       entrynodes to your list of guard nodes, but feel free to use others
30640       after that. Now it chooses only from your EntryNodes if any of
30641       those are available, and only falls back to others if a) they're
30642       all down and b) StrictNodes is not set.
30643     - Now we refresh your entry guards from EntryNodes at each consensus
30644       fetch -- rather than just at startup and then they slowly rot as
30645       the network changes.
30647   o Major bugfixes:
30648     - Stop bridge directory authorities from answering dbg-stability.txt
30649       directory queries, which would let people fetch a list of all
30650       bridge identities they track. Bugfix on 0.2.1.6-alpha.
30652   o Minor features:
30653     - Log a notice when we get a new control connection. Now it's easier
30654       for security-conscious users to recognize when a local application
30655       is knocking on their controller door. Suggested by bug 1196.
30656     - New config option "CircuitStreamTimeout" to override our internal
30657       timeout schedule for how many seconds until we detach a stream from
30658       a circuit and try a new circuit. If your network is particularly
30659       slow, you might want to set this to a number like 60.
30660     - New controller command "getinfo config-text". It returns the
30661       contents that Tor would write if you send it a SAVECONF command,
30662       so the controller can write the file to disk itself.
30663     - New options for SafeLogging to allow scrubbing only log messages
30664       generated while acting as a relay.
30665     - Ship the bridges spec file in the tarball too.
30666     - Avoid a mad rush at the beginning of each month when each client
30667       rotates half of its guards. Instead we spread the rotation out
30668       throughout the month, but we still avoid leaving a precise timestamp
30669       in the state file about when we first picked the guard. Improves
30670       over the behavior introduced in 0.1.2.17.
30672   o Minor bugfixes (compiling):
30673     - Fix compilation on OS X 10.3, which has a stub mlockall() but
30674       hides it. Bugfix on 0.2.2.6-alpha.
30675     - Fix compilation on Solaris by removing support for the
30676       DisableAllSwap config option. Solaris doesn't have an rlimit for
30677       mlockall, so we cannot use it safely. Fixes bug 1198; bugfix on
30678       0.2.2.6-alpha.
30680   o Minor bugfixes (crashes):
30681     - Do not segfault when writing buffer stats when we haven't observed
30682       a single circuit to report about. Found by Fabian Lanze. Bugfix on
30683       0.2.2.1-alpha.
30684     - If we're in the pathological case where there's no exit bandwidth
30685       but there is non-exit bandwidth, or no guard bandwidth but there
30686       is non-guard bandwidth, don't crash during path selection. Bugfix
30687       on 0.2.0.3-alpha.
30688     - Fix an impossible-to-actually-trigger buffer overflow in relay
30689       descriptor generation. Bugfix on 0.1.0.15.
30691   o Minor bugfixes (privacy):
30692     - Fix an instance where a Tor directory mirror might accidentally
30693       log the IP address of a misbehaving Tor client. Bugfix on
30694       0.1.0.1-rc.
30695     - Don't list Windows capabilities in relay descriptors. We never made
30696       use of them, and maybe it's a bad idea to publish them. Bugfix
30697       on 0.1.1.8-alpha.
30699   o Minor bugfixes (other):
30700     - Resolve an edge case in path weighting that could make us misweight
30701       our relay selection. Fixes bug 1203; bugfix on 0.0.8rc1.
30702     - Fix statistics on client numbers by country as seen by bridges that
30703       were broken in 0.2.2.1-alpha. Also switch to reporting full 24-hour
30704       intervals instead of variable 12-to-48-hour intervals.
30705     - After we free an internal connection structure, overwrite it
30706       with a different memory value than we use for overwriting a freed
30707       internal circuit structure. Should help with debugging. Suggested
30708       by bug 1055.
30709     - Update our OpenSSL 0.9.8l fix so that it works with OpenSSL 0.9.8m
30710       too.
30712   o Removed features:
30713     - Remove the HSAuthorityRecordStats option that version 0 hidden
30714       service authorities could have used to track statistics of overall
30715       hidden service usage.
30718 Changes in version 0.2.1.22 - 2010-01-19
30719   Tor 0.2.1.22 fixes a critical privacy problem in bridge directory
30720   authorities -- it would tell you its whole history of bridge descriptors
30721   if you make the right directory request. This stable update also
30722   rotates two of the seven v3 directory authority keys and locations.
30724   o Directory authority changes:
30725     - Rotate keys (both v3 identity and relay identity) for moria1
30726       and gabelmoo.
30728   o Major bugfixes:
30729     - Stop bridge directory authorities from answering dbg-stability.txt
30730       directory queries, which would let people fetch a list of all
30731       bridge identities they track. Bugfix on 0.2.1.6-alpha.
30734 Changes in version 0.2.1.21 - 2009-12-21
30735   Tor 0.2.1.21 fixes an incompatibility with the most recent OpenSSL
30736   library. If you use Tor on Linux / Unix and you're getting SSL
30737   renegotiation errors, upgrading should help. We also recommend an
30738   upgrade if you're an exit relay.
30740   o Major bugfixes:
30741     - Work around a security feature in OpenSSL 0.9.8l that prevents our
30742       handshake from working unless we explicitly tell OpenSSL that we
30743       are using SSL renegotiation safely. We are, of course, but OpenSSL
30744       0.9.8l won't work unless we say we are.
30745     - Avoid crashing if the client is trying to upload many bytes and the
30746       circuit gets torn down at the same time, or if the flip side
30747       happens on the exit relay. Bugfix on 0.2.0.1-alpha; fixes bug 1150.
30749   o Minor bugfixes:
30750     - Do not refuse to learn about authority certs and v2 networkstatus
30751       documents that are older than the latest consensus. This bug might
30752       have degraded client bootstrapping. Bugfix on 0.2.0.10-alpha.
30753       Spotted and fixed by xmux.
30754     - Fix a couple of very-hard-to-trigger memory leaks, and one hard-to-
30755       trigger platform-specific option misparsing case found by Coverity
30756       Scan.
30757     - Fix a compilation warning on Fedora 12 by removing an impossible-to-
30758       trigger assert. Fixes bug 1173.
30761 Changes in version 0.2.2.6-alpha - 2009-11-19
30762   Tor 0.2.2.6-alpha lays the groundwork for many upcoming features:
30763   support for the new lower-footprint "microdescriptor" directory design,
30764   future-proofing our consensus format against new hash functions or
30765   other changes, and an Android port. It also makes Tor compatible with
30766   the upcoming OpenSSL 0.9.8l release, and fixes a variety of bugs.
30768   o Major features:
30769     - Directory authorities can now create, vote on, and serve multiple
30770       parallel formats of directory data as part of their voting process.
30771       Partially implements Proposal 162: "Publish the consensus in
30772       multiple flavors".
30773     - Directory authorities can now agree on and publish small summaries
30774       of router information that clients can use in place of regular
30775       server descriptors. This transition will eventually allow clients
30776       to use far less bandwidth for downloading information about the
30777       network. Begins the implementation of Proposal 158: "Clients
30778       download consensus + microdescriptors".
30779     - The directory voting system is now extensible to use multiple hash
30780       algorithms for signatures and resource selection. Newer formats
30781       are signed with SHA256, with a possibility for moving to a better
30782       hash algorithm in the future.
30783     - New DisableAllSwap option. If set to 1, Tor will attempt to lock all
30784       current and future memory pages via mlockall(). On supported
30785       platforms (modern Linux and probably BSD but not Windows or OS X),
30786       this should effectively disable any and all attempts to page out
30787       memory. This option requires that you start your Tor as root --
30788       if you use DisableAllSwap, please consider using the User option
30789       to properly reduce the privileges of your Tor.
30790     - Numerous changes, bugfixes, and workarounds from Nathan Freitas
30791       to help Tor build correctly for Android phones.
30793   o Major bugfixes:
30794     - Work around a security feature in OpenSSL 0.9.8l that prevents our
30795       handshake from working unless we explicitly tell OpenSSL that we
30796       are using SSL renegotiation safely. We are, but OpenSSL 0.9.8l
30797       won't work unless we say we are.
30799   o Minor bugfixes:
30800     - Fix a crash bug when trying to initialize the evdns module in
30801       Libevent 2. Bugfix on 0.2.1.16-rc.
30802     - Stop logging at severity 'warn' when some other Tor client tries
30803       to establish a circuit with us using weak DH keys. It's a protocol
30804       violation, but that doesn't mean ordinary users need to hear about
30805       it. Fixes the bug part of bug 1114. Bugfix on 0.1.0.13.
30806     - Do not refuse to learn about authority certs and v2 networkstatus
30807       documents that are older than the latest consensus. This bug might
30808       have degraded client bootstrapping. Bugfix on 0.2.0.10-alpha.
30809       Spotted and fixed by xmux.
30810     - Fix numerous small code-flaws found by Coverity Scan Rung 3.
30811     - If all authorities restart at once right before a consensus vote,
30812       nobody will vote about "Running", and clients will get a consensus
30813       with no usable relays. Instead, authorities refuse to build a
30814       consensus if this happens. Bugfix on 0.2.0.10-alpha; fixes bug 1066.
30815     - If your relay can't keep up with the number of incoming create
30816       cells, it would log one warning per failure into your logs. Limit
30817       warnings to 1 per minute. Bugfix on 0.0.2pre10; fixes bug 1042.
30818     - Bridges now use "reject *:*" as their default exit policy. Bugfix
30819       on 0.2.0.3-alpha; fixes bug 1113.
30820     - Fix a memory leak on directory authorities during voting that was
30821       introduced in 0.2.2.1-alpha. Found via valgrind.
30824 Changes in version 0.2.1.20 - 2009-10-15
30825   Tor 0.2.1.20 fixes a crash bug when you're accessing many hidden
30826   services at once, prepares for more performance improvements, and
30827   fixes a bunch of smaller bugs.
30829   The Windows and OS X bundles also include a more recent Vidalia,
30830   and switch from Privoxy to Polipo.
30832   The OS X installers are now drag and drop. It's best to un-install
30833   Tor/Vidalia and then install this new bundle, rather than upgrade. If
30834   you want to upgrade, you'll need to update the paths for Tor and Polipo
30835   in the Vidalia Settings window.
30837   o Major bugfixes:
30838     - Send circuit or stream sendme cells when our window has decreased
30839       by 100 cells, not when it has decreased by 101 cells. Bug uncovered
30840       by Karsten when testing the "reduce circuit window" performance
30841       patch. Bugfix on the 54th commit on Tor -- from July 2002,
30842       before the release of Tor 0.0.0. This is the new winner of the
30843       oldest-bug prize.
30844     - Fix a remotely triggerable memory leak when a consensus document
30845       contains more than one signature from the same voter. Bugfix on
30846       0.2.0.3-alpha.
30847     - Avoid segfault in rare cases when finishing an introduction circuit
30848       as a client and finding out that we don't have an introduction key
30849       for it. Fixes bug 1073. Reported by Aaron Swartz.
30851   o Major features:
30852     - Tor now reads the "circwindow" parameter out of the consensus,
30853       and uses that value for its circuit package window rather than the
30854       default of 1000 cells. Begins the implementation of proposal 168.
30856   o New directory authorities:
30857     - Set up urras (run by Jacob Appelbaum) as the seventh v3 directory
30858       authority.
30859     - Move moria1 and tonga to alternate IP addresses.
30861   o Minor bugfixes:
30862     - Fix a signed/unsigned compile warning in 0.2.1.19.
30863     - Fix possible segmentation fault on directory authorities. Bugfix on
30864       0.2.1.14-rc.
30865     - Fix an extremely rare infinite recursion bug that could occur if
30866       we tried to log a message after shutting down the log subsystem.
30867       Found by Matt Edman. Bugfix on 0.2.0.16-alpha.
30868     - Fix an obscure bug where hidden services on 64-bit big-endian
30869       systems might mis-read the timestamp in v3 introduce cells, and
30870       refuse to connect back to the client. Discovered by "rotor".
30871       Bugfix on 0.2.1.6-alpha.
30872     - We were triggering a CLOCK_SKEW controller status event whenever
30873       we connect via the v2 connection protocol to any relay that has
30874       a wrong clock. Instead, we should only inform the controller when
30875       it's a trusted authority that claims our clock is wrong. Bugfix
30876       on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
30877     - We were telling the controller about CHECKING_REACHABILITY and
30878       REACHABILITY_FAILED status events whenever we launch a testing
30879       circuit or notice that one has failed. Instead, only tell the
30880       controller when we want to inform the user of overall success or
30881       overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported
30882       by SwissTorExit.
30883     - Don't warn when we're using a circuit that ends with a node
30884       excluded in ExcludeExitNodes, but the circuit is not used to access
30885       the outside world. This should help fix bug 1090. Bugfix on
30886       0.2.1.6-alpha.
30887     - Work around a small memory leak in some versions of OpenSSL that
30888       stopped the memory used by the hostname TLS extension from being
30889       freed.
30891   o Minor features:
30892     - Add a "getinfo status/accepted-server-descriptor" controller
30893       command, which is the recommended way for controllers to learn
30894       whether our server descriptor has been successfully received by at
30895       least on directory authority. Un-recommend good-server-descriptor
30896       getinfo and status events until we have a better design for them.
30899 Changes in version 0.2.2.5-alpha - 2009-10-11
30900   Tor 0.2.2.5-alpha fixes a few compile problems in 0.2.2.4-alpha.
30902   o Major bugfixes:
30903     - Make the tarball compile again. Oops. Bugfix on 0.2.2.4-alpha.
30905   o Directory authorities:
30906     - Temporarily (just for this release) move dizum to an alternate
30907       IP address.
30910 Changes in version 0.2.2.4-alpha - 2009-10-10
30911   Tor 0.2.2.4-alpha fixes more crash bugs in 0.2.2.2-alpha. It also
30912   introduces a new unit test framework, shifts directry authority
30913   addresses around to reduce the impact from recent blocking events,
30914   and fixes a few smaller bugs.
30916   o Major bugfixes:
30917     - Fix several more asserts in the circuit_build_times code, for
30918       example one that causes Tor to fail to start once we have
30919       accumulated 5000 build times in the state file. Bugfixes on
30920       0.2.2.2-alpha; fixes bug 1108.
30922   o New directory authorities:
30923     - Move moria1 and Tonga to alternate IP addresses.
30925   o Minor features:
30926     - Log SSL state transitions at debug level during handshake, and
30927       include SSL states in error messages. This may help debug future
30928       SSL handshake issues.
30929     - Add a new "Handshake" log domain for activities that happen
30930       during the TLS handshake.
30931     - Revert to the "June 3 2009" ip-to-country file. The September one
30932       seems to have removed most US IP addresses.
30933     - Directory authorities now reject Tor relays with versions less than
30934       0.1.2.14. This step cuts out four relays from the current network,
30935       none of which are very big.
30937   o Minor bugfixes:
30938     - Fix a couple of smaller issues with gathering statistics. Bugfixes
30939       on 0.2.2.1-alpha.
30940     - Fix two memory leaks in the error case of
30941       circuit_build_times_parse_state(). Bugfix on 0.2.2.2-alpha.
30942     - Don't count one-hop circuits when we're estimating how long it
30943       takes circuits to build on average. Otherwise we'll set our circuit
30944       build timeout lower than we should. Bugfix on 0.2.2.2-alpha.
30945     - Directory authorities no longer change their opinion of, or vote on,
30946       whether a router is Running, unless they have themselves been
30947       online long enough to have some idea. Bugfix on 0.2.0.6-alpha.
30948       Fixes bug 1023.
30950   o Code simplifications and refactoring:
30951     - Revise our unit tests to use the "tinytest" framework, so we
30952       can run tests in their own processes, have smarter setup/teardown
30953       code, and so on. The unit test code has moved to its own
30954       subdirectory, and has been split into multiple modules.
30957 Changes in version 0.2.2.3-alpha - 2009-09-23
30958   Tor 0.2.2.3-alpha fixes a few crash bugs in 0.2.2.2-alpha.
30960   o Major bugfixes:
30961     - Fix an overzealous assert in our new circuit build timeout code.
30962       Bugfix on 0.2.2.2-alpha; fixes bug 1103.
30964   o Minor bugfixes:
30965     - If the networkstatus consensus tells us that we should use a
30966       negative circuit package window, ignore it. Otherwise we'll
30967       believe it and then trigger an assert. Bugfix on 0.2.2.2-alpha.
30970 Changes in version 0.2.2.2-alpha - 2009-09-21
30971   Tor 0.2.2.2-alpha introduces our latest performance improvement for
30972   clients: Tor tracks the average time it takes to build a circuit, and
30973   avoids using circuits that take too long to build. For fast connections,
30974   this feature can cut your expected latency in half. For slow or flaky
30975   connections, it could ruin your Tor experience. Let us know if it does!
30977   o Major features:
30978     - Tor now tracks how long it takes to build client-side circuits
30979       over time, and adapts its timeout to local network performance.
30980       Since a circuit that takes a long time to build will also provide
30981       bad performance, we get significant latency improvements by
30982       discarding the slowest 20% of circuits. Specifically, Tor creates
30983       circuits more aggressively than usual until it has enough data
30984       points for a good timeout estimate. Implements proposal 151.
30985       We are especially looking for reports (good and bad) from users with
30986       both EDGE and broadband connections that can move from broadband
30987       to EDGE and find out if the build-time data in the .tor/state gets
30988       reset without loss of Tor usability. You should also see a notice
30989       log message telling you that Tor has reset its timeout.
30990     - Directory authorities can now vote on arbitrary integer values as
30991       part of the consensus process. This is designed to help set
30992       network-wide parameters. Implements proposal 167.
30993     - Tor now reads the "circwindow" parameter out of the consensus,
30994       and uses that value for its circuit package window rather than the
30995       default of 1000 cells. Begins the implementation of proposal 168.
30997   o Major bugfixes:
30998     - Fix a remotely triggerable memory leak when a consensus document
30999       contains more than one signature from the same voter. Bugfix on
31000       0.2.0.3-alpha.
31002   o Minor bugfixes:
31003     - Fix an extremely rare infinite recursion bug that could occur if
31004       we tried to log a message after shutting down the log subsystem.
31005       Found by Matt Edman. Bugfix on 0.2.0.16-alpha.
31006     - Fix parsing for memory or time units given without a space between
31007       the number and the unit. Bugfix on 0.2.2.1-alpha; fixes bug 1076.
31008     - A networkstatus vote must contain exactly one signature. Spec
31009       conformance issue. Bugfix on 0.2.0.3-alpha.
31010     - Fix an obscure bug where hidden services on 64-bit big-endian
31011       systems might mis-read the timestamp in v3 introduce cells, and
31012       refuse to connect back to the client. Discovered by "rotor".
31013       Bugfix on 0.2.1.6-alpha.
31014     - We were triggering a CLOCK_SKEW controller status event whenever
31015       we connect via the v2 connection protocol to any relay that has
31016       a wrong clock. Instead, we should only inform the controller when
31017       it's a trusted authority that claims our clock is wrong. Bugfix
31018       on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit.
31019     - We were telling the controller about CHECKING_REACHABILITY and
31020       REACHABILITY_FAILED status events whenever we launch a testing
31021       circuit or notice that one has failed. Instead, only tell the
31022       controller when we want to inform the user of overall success or
31023       overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported
31024       by SwissTorExit.
31025     - Don't warn when we're using a circuit that ends with a node
31026       excluded in ExcludeExitNodes, but the circuit is not used to access
31027       the outside world. This should help fix bug 1090, but more problems
31028       remain. Bugfix on 0.2.1.6-alpha.
31029     - Work around a small memory leak in some versions of OpenSSL that
31030       stopped the memory used by the hostname TLS extension from being
31031       freed.
31032     - Make our 'torify' script more portable; if we have only one of
31033       'torsocks' or 'tsocks' installed, don't complain to the user;
31034       and explain our warning about tsocks better.
31036   o Minor features:
31037     - Add a "getinfo status/accepted-server-descriptor" controller
31038       command, which is the recommended way for controllers to learn
31039       whether our server descriptor has been successfully received by at
31040       least on directory authority. Un-recommend good-server-descriptor
31041       getinfo and status events until we have a better design for them.
31042     - Update to the "September 4 2009" ip-to-country file.
31045 Changes in version 0.2.2.1-alpha - 2009-08-26
31046   Tor 0.2.2.1-alpha disables ".exit" address notation by default, allows
31047   Tor clients to bootstrap on networks where only port 80 is reachable,
31048   makes it more straightforward to support hardware crypto accelerators,
31049   and starts the groundwork for gathering stats safely at relays.
31051   o Security fixes:
31052     - Start the process of disabling ".exit" address notation, since it
31053       can be used for a variety of esoteric application-level attacks
31054       on users. To reenable it, set "AllowDotExit 1" in your torrc. Fix
31055       on 0.0.9rc5.
31057   o New directory authorities:
31058     - Set up urras (run by Jacob Appelbaum) as the seventh v3 directory
31059       authority.
31061   o Major features:
31062     - New AccelName and AccelDir options add support for dynamic OpenSSL
31063       hardware crypto acceleration engines.
31064     - Tor now supports tunneling all of its outgoing connections over
31065       a SOCKS proxy, using the SOCKS4Proxy and/or SOCKS5Proxy
31066       configuration options. Code by Christopher Davis.
31068   o Major bugfixes:
31069     - Send circuit or stream sendme cells when our window has decreased
31070       by 100 cells, not when it has decreased by 101 cells. Bug uncovered
31071       by Karsten when testing the "reduce circuit window" performance
31072       patch. Bugfix on the 54th commit on Tor -- from July 2002,
31073       before the release of Tor 0.0.0. This is the new winner of the
31074       oldest-bug prize.
31076   o New options for gathering stats safely:
31077     - Directory mirrors that set "DirReqStatistics 1" write statistics
31078       about directory requests to disk every 24 hours. As compared to the
31079       --enable-geoip-stats flag in 0.2.1.x, there are a few improvements:
31080       1) stats are written to disk exactly every 24 hours; 2) estimated
31081       shares of v2 and v3 requests are determined as mean values, not at
31082       the end of a measurement period; 3) unresolved requests are listed
31083       with country code '??'; 4) directories also measure download times.
31084     - Exit nodes that set "ExitPortStatistics 1" write statistics on the
31085       number of exit streams and transferred bytes per port to disk every
31086       24 hours.
31087     - Relays that set "CellStatistics 1" write statistics on how long
31088       cells spend in their circuit queues to disk every 24 hours.
31089     - Entry nodes that set "EntryStatistics 1" write statistics on the
31090       rough number and origins of connecting clients to disk every 24
31091       hours.
31092     - Relays that write any of the above statistics to disk and set
31093       "ExtraInfoStatistics 1" include the past 24 hours of statistics in
31094       their extra-info documents.
31096   o Minor features:
31097     - New --digests command-line switch to output the digests of the
31098       source files Tor was built with.
31099     - The "torify" script now uses torsocks where available.
31100     - The memarea code now uses a sentinel value at the end of each area
31101       to make sure nothing writes beyond the end of an area. This might
31102       help debug some conceivable causes of bug 930.
31103     - Time and memory units in the configuration file can now be set to
31104       fractional units. For example, "2.5 GB" is now a valid value for
31105       AccountingMax.
31106     - Certain Tor clients (such as those behind check.torproject.org) may
31107       want to fetch the consensus in an extra early manner. To enable this
31108       a user may now set FetchDirInfoExtraEarly to 1. This also depends on
31109       setting FetchDirInfoEarly to 1. Previous behavior will stay the same
31110       as only certain clients who must have this information sooner should
31111       set this option.
31112     - Instead of adding the svn revision to the Tor version string, report
31113       the git commit (when we're building from a git checkout).
31115   o Minor bugfixes:
31116     - If any of the v3 certs we download are unparseable, we should
31117       actually notice the failure so we don't retry indefinitely. Bugfix
31118       on 0.2.0.x; reported by "rotator".
31119     - If the cached cert file is unparseable, warn but don't exit.
31120     - Fix possible segmentation fault on directory authorities. Bugfix on
31121       0.2.1.14-rc.
31122     - When Tor fails to parse a descriptor of any kind, dump it to disk.
31123       Might help diagnosing bug 1051.
31125   o Deprecated and removed features:
31126     - The controller no longer accepts the old obsolete "addr-mappings/"
31127       or "unregistered-servers-" GETINFO values.
31128     - Hidden services no longer publish version 0 descriptors, and clients
31129       do not request or use version 0 descriptors. However, the old hidden
31130       service authorities still accept and serve version 0 descriptors
31131       when contacted by older hidden services/clients.
31132     - The EXTENDED_EVENTS and VERBOSE_NAMES controller features are now
31133       always on; using them is necessary for correct forward-compatible
31134       controllers.
31135     - Remove support for .noconnect style addresses. Nobody was using
31136       them, and they provided another avenue for detecting Tor users
31137       via application-level web tricks.
31139   o Packaging changes:
31140     - Upgrade Vidalia from 0.1.15 to 0.2.3 in the Windows and OS X
31141       installer bundles. See
31142       https://trac.vidalia-project.net/browser/vidalia/tags/vidalia-0.2.3/CHANGELOG
31143       for details of what's new in Vidalia 0.2.3.
31144     - Windows Vidalia Bundle: update Privoxy from 3.0.6 to 3.0.14-beta.
31145     - OS X Vidalia Bundle: move to Polipo 1.0.4 with Tor specific
31146       configuration file, rather than the old Privoxy.
31147     - OS X Vidalia Bundle: Vidalia, Tor, and Polipo are compiled as
31148       x86-only for better compatibility with OS X 10.6, aka Snow Leopard.
31149     - OS X Tor Expert Bundle: Tor is compiled as x86-only for
31150       better compatibility with OS X 10.6, aka Snow Leopard.
31151     - OS X Vidalia Bundle: The multi-package installer is now replaced
31152       by a simple drag and drop to the /Applications folder. This change
31153       occurred with the upgrade to Vidalia 0.2.3.
31156 Changes in version 0.2.1.19 - 2009-07-28
31157   Tor 0.2.1.19 fixes a major bug with accessing and providing hidden
31158   services on Tor 0.2.1.3-alpha through 0.2.1.18.
31160   o Major bugfixes:
31161     - Make accessing hidden services on 0.2.1.x work right again.
31162       Bugfix on 0.2.1.3-alpha; workaround for bug 1038. Diagnosis and
31163       part of patch provided by "optimist".
31165   o Minor features:
31166     - When a relay/bridge is writing out its identity key fingerprint to
31167       the "fingerprint" file and to its logs, write it without spaces. Now
31168       it will look like the fingerprints in our bridges documentation,
31169       and confuse fewer users.
31171   o Minor bugfixes:
31172     - Relays no longer publish a new server descriptor if they change
31173       their MaxAdvertisedBandwidth config option but it doesn't end up
31174       changing their advertised bandwidth numbers. Bugfix on 0.2.0.28-rc;
31175       fixes bug 1026. Patch from Sebastian.
31176     - Avoid leaking memory every time we get a create cell but we have
31177       so many already queued that we refuse it. Bugfix on 0.2.0.19-alpha;
31178       fixes bug 1034. Reported by BarkerJr.
31181 Changes in version 0.2.1.18 - 2009-07-24
31182   Tor 0.2.1.18 lays the foundations for performance improvements,
31183   adds status events to help users diagnose bootstrap problems, adds
31184   optional authentication/authorization for hidden services, fixes a
31185   variety of potential anonymity problems, and includes a huge pile of
31186   other features and bug fixes.
31188   o Build fixes:
31189     - Add LIBS=-lrt to Makefile.am so the Tor RPMs use a static libevent.
31192 Changes in version 0.2.1.17-rc - 2009-07-07
31193   Tor 0.2.1.17-rc marks the fourth -- and hopefully last -- release
31194   candidate for the 0.2.1.x series. It lays the groundwork for further
31195   client performance improvements, and also fixes a big bug with directory
31196   authorities that were causing them to assign Guard and Stable flags
31197   poorly.
31199   The Windows bundles also finally include the geoip database that we
31200   thought we'd been shipping since 0.2.0.x (oops), and the OS X bundles
31201   should actually install Torbutton rather than giving you a cryptic
31202   failure message (oops).
31204   o Major features:
31205     - Clients now use the bandwidth values in the consensus, rather than
31206       the bandwidth values in each relay descriptor. This approach opens
31207       the door to more accurate bandwidth estimates once the directory
31208       authorities start doing active measurements. Implements more of
31209       proposal 141.
31211   o Major bugfixes:
31212     - When Tor clients restart after 1-5 days, they discard all their
31213       cached descriptors as too old, but they still use the cached
31214       consensus document. This approach is good for robustness, but
31215       bad for performance: since they don't know any bandwidths, they
31216       end up choosing at random rather than weighting their choice by
31217       speed. Fixed by the above feature of putting bandwidths in the
31218       consensus. Bugfix on 0.2.0.x.
31219     - Directory authorities were neglecting to mark relays down in their
31220       internal histories if the relays fall off the routerlist without
31221       ever being found unreachable. So there were relays in the histories
31222       that haven't been seen for eight months, and are listed as being
31223       up for eight months. This wreaked havoc on the "median wfu"
31224       and "median mtbf" calculations, in turn making Guard and Stable
31225       flags very wrong, hurting network performance. Fixes bugs 696 and
31226       969. Bugfix on 0.2.0.6-alpha.
31228   o Minor bugfixes:
31229     - Serve the DirPortFrontPage page even when we have been approaching
31230       our quotas recently. Fixes bug 1013; bugfix on 0.2.1.8-alpha.
31231     - The control port would close the connection before flushing long
31232       replies, such as the network consensus, if a QUIT command was issued
31233       before the reply had completed. Now, the control port flushes all
31234       pending replies before closing the connection. Also fixed a spurious
31235       warning when a QUIT command is issued after a malformed or rejected
31236       AUTHENTICATE command, but before the connection was closed. Patch
31237       by Marcus Griep. Bugfix on 0.2.0.x; fixes bugs 1015 and 1016.
31238     - When we can't find an intro key for a v2 hidden service descriptor,
31239       fall back to the v0 hidden service descriptor and log a bug message.
31240       Workaround for bug 1024.
31241     - Fix a log message that did not respect the SafeLogging option.
31242       Resolves bug 1027.
31244   o Minor features:
31245     - If we're a relay and we change our IP address, be more verbose
31246       about the reason that made us change. Should help track down
31247       further bugs for relays on dynamic IP addresses.
31250 Changes in version 0.2.0.35 - 2009-06-24
31251   o Security fix:
31252     - Avoid crashing in the presence of certain malformed descriptors.
31253       Found by lark, and by automated fuzzing.
31254     - Fix an edge case where a malicious exit relay could convince a
31255       controller that the client's DNS question resolves to an internal IP
31256       address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
31258   o Major bugfixes:
31259     - Finally fix the bug where dynamic-IP relays disappear when their
31260       IP address changes: directory mirrors were mistakenly telling
31261       them their old address if they asked via begin_dir, so they
31262       never got an accurate answer about their new address, so they
31263       just vanished after a day. For belt-and-suspenders, relays that
31264       don't set Address in their config now avoid using begin_dir for
31265       all direct connections. Should fix bugs 827, 883, and 900.
31266     - Fix a timing-dependent, allocator-dependent, DNS-related crash bug
31267       that would occur on some exit nodes when DNS failures and timeouts
31268       occurred in certain patterns. Fix for bug 957.
31270   o Minor bugfixes:
31271     - When starting with a cache over a few days old, do not leak
31272       memory for the obsolete router descriptors in it. Bugfix on
31273       0.2.0.33; fixes bug 672.
31274     - Hidden service clients didn't use a cached service descriptor that
31275       was older than 15 minutes, but wouldn't fetch a new one either,
31276       because there was already one in the cache. Now, fetch a v2
31277       descriptor unless the same descriptor was added to the cache within
31278       the last 15 minutes. Fixes bug 997; reported by Marcus Griep.
31281 Changes in version 0.2.1.16-rc - 2009-06-20
31282   Tor 0.2.1.16-rc speeds up performance for fast exit relays, and fixes
31283   a bunch of minor bugs.
31285   o Security fixes:
31286     - Fix an edge case where a malicious exit relay could convince a
31287       controller that the client's DNS question resolves to an internal IP
31288       address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta.
31290   o Major performance improvements (on 0.2.0.x):
31291     - Disable and refactor some debugging checks that forced a linear scan
31292       over the whole server-side DNS cache. These accounted for over 50%
31293       of CPU time on a relatively busy exit node's gprof profile. Found
31294       by Jacob.
31295     - Disable some debugging checks that appeared in exit node profile
31296       data.
31298   o Minor features:
31299     - Update to the "June 3 2009" ip-to-country file.
31300     - Do not have tor-resolve automatically refuse all .onion addresses;
31301       if AutomapHostsOnResolve is set in your torrc, this will work fine.
31303   o Minor bugfixes (on 0.2.0.x):
31304     - Log correct error messages for DNS-related network errors on
31305       Windows.
31306     - Fix a race condition that could cause crashes or memory corruption
31307       when running as a server with a controller listening for log
31308       messages.
31309     - Avoid crashing when we have a policy specified in a DirPolicy or
31310       SocksPolicy or ReachableAddresses option with ports set on it,
31311       and we re-load the policy. May fix bug 996.
31312     - Hidden service clients didn't use a cached service descriptor that
31313       was older than 15 minutes, but wouldn't fetch a new one either,
31314       because there was already one in the cache. Now, fetch a v2
31315       descriptor unless the same descriptor was added to the cache within
31316       the last 15 minutes. Fixes bug 997; reported by Marcus Griep.
31318   o Minor bugfixes (on 0.2.1.x):
31319     - Don't warn users about low port and hibernation mix when they
31320       provide a *ListenAddress directive to fix that. Bugfix on
31321       0.2.1.15-rc.
31322     - When switching back and forth between bridge mode, do not start
31323       gathering GeoIP data until two hours have passed.
31324     - Do not complain that the user has requested an excluded node as
31325       an exit when the node is not really an exit. This could happen
31326       because the circuit was for testing, or an introduction point.
31327       Fix for bug 984.
31330 Changes in version 0.2.1.15-rc - 2009-05-25
31331   Tor 0.2.1.15-rc marks the second release candidate for the 0.2.1.x
31332   series. It fixes a major bug on fast exit relays, as well as a variety
31333   of more minor bugs.
31335   o Major bugfixes (on 0.2.0.x):
31336     - Fix a timing-dependent, allocator-dependent, DNS-related crash bug
31337       that would occur on some exit nodes when DNS failures and timeouts
31338       occurred in certain patterns. Fix for bug 957.
31340   o Minor bugfixes (on 0.2.0.x):
31341     - Actually return -1 in the error case for read_bandwidth_usage().
31342       Harmless bug, since we currently don't care about the return value
31343       anywhere. Bugfix on 0.2.0.9-alpha.
31344     - Provide a more useful log message if bug 977 (related to buffer
31345       freelists) ever reappears, and do not crash right away.
31346     - Fix an assertion failure on 64-bit platforms when we allocated
31347       memory right up to the end of a memarea, then realigned the memory
31348       one step beyond the end. Fixes a possible cause of bug 930.
31349     - Protect the count of open sockets with a mutex, so we can't
31350       corrupt it when two threads are closing or opening sockets at once.
31351       Fix for bug 939. Bugfix on 0.2.0.1-alpha.
31352     - Don't allow a bridge to publish its router descriptor to a
31353       non-bridge directory authority. Fixes part of bug 932.
31354     - When we change to or from being a bridge, reset our counts of
31355       client usage by country. Fixes bug 932.
31356     - Fix a bug that made stream bandwidth get misreported to the
31357       controller.
31358     - Stop using malloc_usable_size() to use more area than we had
31359       actually allocated: it was safe, but made valgrind really unhappy.
31360     - Fix a memory leak when v3 directory authorities load their keys
31361       and cert from disk. Bugfix on 0.2.0.1-alpha.
31363   o Minor bugfixes (on 0.2.1.x):
31364     - Fix use of freed memory when deciding to mark a non-addable
31365       descriptor as never-downloadable. Bugfix on 0.2.1.9-alpha.
31368 Changes in version 0.2.1.14-rc - 2009-04-12
31369   Tor 0.2.1.14-rc marks the first release candidate for the 0.2.1.x
31370   series. It begins fixing some major performance problems, and also
31371   finally addresses the bug that was causing relays on dynamic IP
31372   addresses to fall out of the directory.
31374   o Major features:
31375     - Clients replace entry guards that were chosen more than a few months
31376       ago. This change should significantly improve client performance,
31377       especially once more people upgrade, since relays that have been
31378       a guard for a long time are currently overloaded.
31380   o Major bugfixes (on 0.2.0):
31381     - Finally fix the bug where dynamic-IP relays disappear when their
31382       IP address changes: directory mirrors were mistakenly telling
31383       them their old address if they asked via begin_dir, so they
31384       never got an accurate answer about their new address, so they
31385       just vanished after a day. For belt-and-suspenders, relays that
31386       don't set Address in their config now avoid using begin_dir for
31387       all direct connections. Should fix bugs 827, 883, and 900.
31388     - Relays were falling out of the networkstatus consensus for
31389       part of a day if they changed their local config but the
31390       authorities discarded their new descriptor as "not sufficiently
31391       different". Now directory authorities accept a descriptor as changed
31392       if bandwidthrate or bandwidthburst changed. Partial fix for bug 962;
31393       patch by Sebastian.
31394     - Avoid crashing in the presence of certain malformed descriptors.
31395       Found by lark, and by automated fuzzing.
31397   o Minor features:
31398     - When generating circuit events with verbose nicknames for
31399       controllers, try harder to look up nicknames for routers on a
31400       circuit. (Previously, we would look in the router descriptors we had
31401       for nicknames, but not in the consensus.) Partial fix for bug 941.
31402     - If the bridge config line doesn't specify a port, assume 443.
31403       This makes bridge lines a bit smaller and easier for users to
31404       understand.
31405     - Raise the minimum bandwidth to be a relay from 20000 bytes to 20480
31406       bytes (aka 20KB/s), to match our documentation. Also update
31407       directory authorities so they always assign the Fast flag to relays
31408       with 20KB/s of capacity. Now people running relays won't suddenly
31409       find themselves not seeing any use, if the network gets faster
31410       on average.
31411     - Update to the "April 3 2009" ip-to-country file.
31413   o Minor bugfixes:
31414     - Avoid trying to print raw memory to the logs when we decide to
31415       give up on downloading a given relay descriptor. Bugfix on
31416       0.2.1.9-alpha.
31417     - In tor-resolve, when the Tor client to use is specified by
31418       <hostname>:<port>, actually use the specified port rather than
31419       defaulting to 9050. Bugfix on 0.2.1.6-alpha.
31420     - Make directory usage recording work again. Bugfix on 0.2.1.6-alpha.
31421     - When starting with a cache over a few days old, do not leak
31422       memory for the obsolete router descriptors in it. Bugfix on
31423       0.2.0.33.
31424     - Avoid double-free on list of successfully uploaded hidden
31425       service discriptors. Fix for bug 948. Bugfix on 0.2.1.6-alpha.
31426     - Change memarea_strndup() implementation to work even when
31427       duplicating a string at the end of a page. This bug was
31428       harmless for now, but could have meant crashes later. Fix by
31429       lark. Bugfix on 0.2.1.1-alpha.
31430     - Limit uploaded directory documents to be 16M rather than 500K.
31431       The directory authorities were refusing v3 consensus votes from
31432       other authorities, since the votes are now 504K. Fixes bug 959;
31433       bugfix on 0.0.2pre17 (where we raised it from 50K to 500K ;).
31434     - Directory authorities should never send a 503 "busy" response to
31435       requests for votes or keys. Bugfix on 0.2.0.8-alpha; exposed by
31436       bug 959.
31439 Changes in version 0.2.1.13-alpha - 2009-03-09
31440   Tor 0.2.1.13-alpha includes another big pile of minor bugfixes and
31441   cleanups. We're finally getting close to a release candidate.
31443   o Major bugfixes:
31444     - Correctly update the list of which countries we exclude as
31445       exits, when the GeoIP file is loaded or reloaded. Diagnosed by
31446       lark. Bugfix on 0.2.1.6-alpha.
31448   o Minor bugfixes (on 0.2.0.x and earlier):
31449     - Automatically detect MacOSX versions earlier than 10.4.0, and
31450       disable kqueue from inside Tor when running with these versions.
31451       We previously did this from the startup script, but that was no
31452       help to people who didn't use the startup script. Resolves bug 863.
31453     - When we had picked an exit node for a connection, but marked it as
31454       "optional", and it turned out we had no onion key for the exit,
31455       stop wanting that exit and try again. This situation may not
31456       be possible now, but will probably become feasible with proposal
31457       158. Spotted by rovv. Fixes another case of bug 752.
31458     - Clients no longer cache certificates for authorities they do not
31459       recognize. Bugfix on 0.2.0.9-alpha.
31460     - When we can't transmit a DNS request due to a network error, retry
31461       it after a while, and eventually transmit a failing response to
31462       the RESOLVED cell. Bugfix on 0.1.2.5-alpha.
31463     - If the controller claimed responsibility for a stream, but that
31464       stream never finished making its connection, it would live
31465       forever in circuit_wait state. Now we close it after SocksTimeout
31466       seconds. Bugfix on 0.1.2.7-alpha; reported by Mike Perry.
31467     - Drop begin cells to a hidden service if they come from the middle
31468       of a circuit. Patch from lark.
31469     - When we erroneously receive two EXTEND cells for the same circuit
31470       ID on the same connection, drop the second. Patch from lark.
31471     - Fix a crash that occurs on exit nodes when a nameserver request
31472       timed out. Bugfix on 0.1.2.1-alpha; our CLEAR debugging code had
31473       been suppressing the bug since 0.1.2.10-alpha. Partial fix for
31474       bug 929.
31475     - Do not assume that a stack-allocated character array will be
31476       64-bit aligned on platforms that demand that uint64_t access is
31477       aligned. Possible fix for bug 604.
31478     - Parse dates and IPv4 addresses in a locale- and libc-independent
31479       manner, to avoid platform-dependent behavior on malformed input.
31480     - Build correctly when configured to build outside the main source
31481       path. Patch from Michael Gold.
31482     - We were already rejecting relay begin cells with destination port
31483       of 0. Now also reject extend cells with destination port or address
31484       of 0. Suggested by lark.
31486   o Minor bugfixes (on 0.2.1.x):
31487     - Don't re-extend introduction circuits if we ran out of RELAY_EARLY
31488       cells. Bugfix on 0.2.1.3-alpha. Fixes more of bug 878.
31489     - If we're an exit node, scrub the IP address to which we are exiting
31490       in the logs. Bugfix on 0.2.1.8-alpha.
31492   o Minor features:
31493     - On Linux, use the prctl call to re-enable core dumps when the user
31494       is option is set.
31495     - New controller event NEWCONSENSUS that lists the networkstatus
31496       lines for every recommended relay. Now controllers like Torflow
31497       can keep up-to-date on which relays they should be using.
31498     - Update to the "February 26 2009" ip-to-country file.
31501 Changes in version 0.2.0.34 - 2009-02-08
31502   Tor 0.2.0.34 features several more security-related fixes. You should
31503   upgrade, especially if you run an exit relay (remote crash) or a
31504   directory authority (remote infinite loop), or you're on an older
31505   (pre-XP) or not-recently-patched Windows (remote exploit).
31507   This release marks end-of-life for Tor 0.1.2.x. Those Tor versions
31508   have many known flaws, and nobody should be using them. You should
31509   upgrade. If you're using a Linux or BSD and its packages are obsolete,
31510   stop using those packages and upgrade anyway.
31512   o Security fixes:
31513     - Fix an infinite-loop bug on handling corrupt votes under certain
31514       circumstances. Bugfix on 0.2.0.8-alpha.
31515     - Fix a temporary DoS vulnerability that could be performed by
31516       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
31517     - Avoid a potential crash on exit nodes when processing malformed
31518       input. Remote DoS opportunity. Bugfix on 0.2.0.33.
31519     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
31520       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
31522   o Minor bugfixes:
31523     - Fix compilation on systems where time_t is a 64-bit integer.
31524       Patch from Matthias Drochner.
31525     - Don't consider expiring already-closed client connections. Fixes
31526       bug 893. Bugfix on 0.0.2pre20.
31529 Changes in version 0.2.1.12-alpha - 2009-02-08
31530   Tor 0.2.1.12-alpha features several more security-related fixes. You
31531   should upgrade, especially if you run an exit relay (remote crash) or
31532   a directory authority (remote infinite loop), or you're on an older
31533   (pre-XP) or not-recently-patched Windows (remote exploit). It also
31534   includes a big pile of minor bugfixes and cleanups.
31536   o Security fixes:
31537     - Fix an infinite-loop bug on handling corrupt votes under certain
31538       circumstances. Bugfix on 0.2.0.8-alpha.
31539     - Fix a temporary DoS vulnerability that could be performed by
31540       a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark.
31541     - Avoid a potential crash on exit nodes when processing malformed
31542       input. Remote DoS opportunity. Bugfix on 0.2.1.7-alpha.
31544   o Minor bugfixes:
31545     - Let controllers actually ask for the "clients_seen" event for
31546       getting usage summaries on bridge relays. Bugfix on 0.2.1.10-alpha;
31547       reported by Matt Edman.
31548     - Fix a compile warning on OSX Panther. Fixes bug 913; bugfix against
31549       0.2.1.11-alpha.
31550     - Fix a bug in address parsing that was preventing bridges or hidden
31551       service targets from being at IPv6 addresses.
31552     - Solve a bug that kept hardware crypto acceleration from getting
31553       enabled when accounting was turned on. Fixes bug 907. Bugfix on
31554       0.0.9pre6.
31555     - Remove a bash-ism from configure.in to build properly on non-Linux
31556       platforms. Bugfix on 0.2.1.1-alpha.
31557     - Fix code so authorities _actually_ send back X-Descriptor-Not-New
31558       headers. Bugfix on 0.2.0.10-alpha.
31559     - Don't consider expiring already-closed client connections. Fixes
31560       bug 893. Bugfix on 0.0.2pre20.
31561     - Fix another interesting corner-case of bug 891 spotted by rovv:
31562       Previously, if two hosts had different amounts of clock drift, and
31563       one of them created a new connection with just the wrong timing,
31564       the other might decide to deprecate the new connection erroneously.
31565       Bugfix on 0.1.1.13-alpha.
31566     - Resolve a very rare crash bug that could occur when the user forced
31567       a nameserver reconfiguration during the middle of a nameserver
31568       probe. Fixes bug 526. Bugfix on 0.1.2.1-alpha.
31569     - Support changing value of ServerDNSRandomizeCase during SIGHUP.
31570       Bugfix on 0.2.1.7-alpha.
31571     - If we're using bridges and our network goes away, be more willing
31572       to forgive our bridges and try again when we get an application
31573       request. Bugfix on 0.2.0.x.
31575   o Minor features:
31576     - Support platforms where time_t is 64 bits long. (Congratulations,
31577       NetBSD!) Patch from Matthias Drochner.
31578     - Add a 'getinfo status/clients-seen' controller command, in case
31579       controllers want to hear clients_seen events but connect late.
31581   o Build changes:
31582     - Disable GCC's strict alias optimization by default, to avoid the
31583       likelihood of its introducing subtle bugs whenever our code violates
31584       the letter of C99's alias rules.
31587 Changes in version 0.2.0.33 - 2009-01-21
31588   Tor 0.2.0.33 fixes a variety of bugs that were making relays less
31589   useful to users. It also finally fixes a bug where a relay or client
31590   that's been off for many days would take a long time to bootstrap.
31592   This update also fixes an important security-related bug reported by
31593   Ilja van Sprundel. You should upgrade. (We'll send out more details
31594   about the bug once people have had some time to upgrade.)
31596   o Security fixes:
31597     - Fix a heap-corruption bug that may be remotely triggerable on
31598       some platforms. Reported by Ilja van Sprundel.
31600   o Major bugfixes:
31601     - When a stream at an exit relay is in state "resolving" or
31602       "connecting" and it receives an "end" relay cell, the exit relay
31603       would silently ignore the end cell and not close the stream. If
31604       the client never closes the circuit, then the exit relay never
31605       closes the TCP connection. Bug introduced in Tor 0.1.2.1-alpha;
31606       reported by "wood".
31607     - When sending CREATED cells back for a given circuit, use a 64-bit
31608       connection ID to find the right connection, rather than an addr:port
31609       combination. Now that we can have multiple OR connections between
31610       the same ORs, it is no longer possible to use addr:port to uniquely
31611       identify a connection.
31612     - Bridge relays that had DirPort set to 0 would stop fetching
31613       descriptors shortly after startup, and then briefly resume
31614       after a new bandwidth test and/or after publishing a new bridge
31615       descriptor. Bridge users that try to bootstrap from them would
31616       get a recent networkstatus but would get descriptors from up to
31617       18 hours earlier, meaning most of the descriptors were obsolete
31618       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
31619     - Prevent bridge relays from serving their 'extrainfo' document
31620       to anybody who asks, now that extrainfo docs include potentially
31621       sensitive aggregated client geoip summaries. Bugfix on
31622       0.2.0.13-alpha.
31623     - If the cached networkstatus consensus is more than five days old,
31624       discard it rather than trying to use it. In theory it could be
31625       useful because it lists alternate directory mirrors, but in practice
31626       it just means we spend many minutes trying directory mirrors that
31627       are long gone from the network. Also discard router descriptors as
31628       we load them if they are more than five days old, since the onion
31629       key is probably wrong by now. Bugfix on 0.2.0.x. Fixes bug 887.
31631   o Minor bugfixes:
31632     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
31633       could make gcc generate non-functional binary search code. Bugfix
31634       on 0.2.0.10-alpha.
31635     - Build correctly on platforms without socklen_t.
31636     - Compile without warnings on solaris.
31637     - Avoid potential crash on internal error during signature collection.
31638       Fixes bug 864. Patch from rovv.
31639     - Correct handling of possible malformed authority signing key
31640       certificates with internal signature types. Fixes bug 880.
31641       Bugfix on 0.2.0.3-alpha.
31642     - Fix a hard-to-trigger resource leak when logging credential status.
31643       CID 349.
31644     - When we can't initialize DNS because the network is down, do not
31645       automatically stop Tor from starting. Instead, we retry failed
31646       dns_init() every 10 minutes, and change the exit policy to reject
31647       *:* until one succeeds. Fixes bug 691.
31648     - Use 64 bits instead of 32 bits for connection identifiers used with
31649       the controller protocol, to greatly reduce risk of identifier reuse.
31650     - When we're choosing an exit node for a circuit, and we have
31651       no pending streams, choose a good general exit rather than one that
31652       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
31653     - Fix another case of assuming, when a specific exit is requested,
31654       that we know more than the user about what hosts it allows.
31655       Fixes one case of bug 752. Patch from rovv.
31656     - Clip the MaxCircuitDirtiness config option to a minimum of 10
31657       seconds. Warn the user if lower values are given in the
31658       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
31659     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
31660       user if lower values are given in the configuration. Bugfix on
31661       0.1.1.17-rc. Patch by Sebastian.
31662     - Fix a memory leak when we decline to add a v2 rendezvous descriptor to
31663       the cache because we already had a v0 descriptor with the same ID.
31664       Bugfix on 0.2.0.18-alpha.
31665     - Fix a race condition when freeing keys shared between main thread
31666       and CPU workers that could result in a memory leak. Bugfix on
31667       0.1.0.1-rc. Fixes bug 889.
31668     - Send a valid END cell back when a client tries to connect to a
31669       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
31670       840. Patch from rovv.
31671     - Check which hops rendezvous stream cells are associated with to
31672       prevent possible guess-the-streamid injection attacks from
31673       intermediate hops. Fixes another case of bug 446. Based on patch
31674       from rovv.
31675     - If a broken client asks a non-exit router to connect somewhere,
31676       do not even do the DNS lookup before rejecting the connection.
31677       Fixes another case of bug 619. Patch from rovv.
31678     - When a relay gets a create cell it can't decrypt (e.g. because it's
31679       using the wrong onion key), we were dropping it and letting the
31680       client time out. Now actually answer with a destroy cell. Fixes
31681       bug 904. Bugfix on 0.0.2pre8.
31683   o Minor bugfixes (hidden services):
31684     - Do not throw away existing introduction points on SIGHUP. Bugfix on
31685       0.0.6pre1. Patch by Karsten. Fixes bug 874.
31687   o Minor features:
31688     - Report the case where all signatures in a detached set are rejected
31689       differently than the case where there is an error handling the
31690       detached set.
31691     - When we realize that another process has modified our cached
31692       descriptors, print out a more useful error message rather than
31693       triggering an assertion. Fixes bug 885. Patch from Karsten.
31694     - Implement the 0x20 hack to better resist DNS poisoning: set the
31695       case on outgoing DNS requests randomly, and reject responses that do
31696       not match the case correctly. This logic can be disabled with the
31697       ServerDNSRandomizeCase setting, if you are using one of the 0.3%
31698       of servers that do not reliably preserve case in replies. See
31699       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
31700       for more info.
31701     - Check DNS replies for more matching fields to better resist DNS
31702       poisoning.
31703     - Never use OpenSSL compression: it wastes RAM and CPU trying to
31704       compress cells, which are basically all encrypted, compressed, or
31705       both.
31708 Changes in version 0.2.1.11-alpha - 2009-01-20
31709   Tor 0.2.1.11-alpha finishes fixing the "if your Tor is off for a
31710   week it will take a long time to bootstrap again" bug. It also fixes
31711   an important security-related bug reported by Ilja van Sprundel. You
31712   should upgrade. (We'll send out more details about the bug once people
31713   have had some time to upgrade.)
31715   o Security fixes:
31716     - Fix a heap-corruption bug that may be remotely triggerable on
31717       some platforms. Reported by Ilja van Sprundel.
31719   o Major bugfixes:
31720     - Discard router descriptors as we load them if they are more than
31721       five days old. Otherwise if Tor is off for a long time and then
31722       starts with cached descriptors, it will try to use the onion
31723       keys in those obsolete descriptors when building circuits. Bugfix
31724       on 0.2.0.x. Fixes bug 887.
31726   o Minor features:
31727     - Try to make sure that the version of Libevent we're running with
31728       is binary-compatible with the one we built with. May address bug
31729       897 and others.
31730     - Make setting ServerDNSRandomizeCase to 0 actually work. Bugfix
31731       for bug 905. Bugfix on 0.2.1.7-alpha.
31732     - Add a new --enable-local-appdata configuration switch to change
31733       the default location of the datadir on win32 from APPDATA to
31734       LOCAL_APPDATA. In the future, we should migrate to LOCAL_APPDATA
31735       entirely. Patch from coderman.
31737   o Minor bugfixes:
31738     - Make outbound DNS packets respect the OutboundBindAddress setting.
31739       Fixes the bug part of bug 798. Bugfix on 0.1.2.2-alpha.
31740     - When our circuit fails at the first hop (e.g. we get a destroy
31741       cell back), avoid using that OR connection anymore, and also
31742       tell all the one-hop directory requests waiting for it that they
31743       should fail. Bugfix on 0.2.1.3-alpha.
31744     - In the torify(1) manpage, mention that tsocks will leak your
31745       DNS requests.
31748 Changes in version 0.2.1.10-alpha - 2009-01-06
31749   Tor 0.2.1.10-alpha fixes two major bugs in bridge relays (one that
31750   would make the bridge relay not so useful if it had DirPort set to 0,
31751   and one that could let an attacker learn a little bit of information
31752   about the bridge's users), and a bug that would cause your Tor relay
31753   to ignore a circuit create request it can't decrypt (rather than reply
31754   with an error). It also fixes a wide variety of other bugs.
31756   o Major bugfixes:
31757     - If the cached networkstatus consensus is more than five days old,
31758       discard it rather than trying to use it. In theory it could
31759       be useful because it lists alternate directory mirrors, but in
31760       practice it just means we spend many minutes trying directory
31761       mirrors that are long gone from the network. Helps bug 887 a bit;
31762       bugfix on 0.2.0.x.
31763     - Bridge relays that had DirPort set to 0 would stop fetching
31764       descriptors shortly after startup, and then briefly resume
31765       after a new bandwidth test and/or after publishing a new bridge
31766       descriptor. Bridge users that try to bootstrap from them would
31767       get a recent networkstatus but would get descriptors from up to
31768       18 hours earlier, meaning most of the descriptors were obsolete
31769       already. Reported by Tas; bugfix on 0.2.0.13-alpha.
31770     - Prevent bridge relays from serving their 'extrainfo' document
31771       to anybody who asks, now that extrainfo docs include potentially
31772       sensitive aggregated client geoip summaries. Bugfix on
31773       0.2.0.13-alpha.
31775   o Minor features:
31776     - New controller event "clients_seen" to report a geoip-based summary
31777       of which countries we've seen clients from recently. Now controllers
31778       like Vidalia can show bridge operators that they're actually making
31779       a difference.
31780     - Build correctly against versions of OpenSSL 0.9.8 or later built
31781       without support for deprecated functions.
31782     - Update to the "December 19 2008" ip-to-country file.
31784   o Minor bugfixes (on 0.2.0.x):
31785     - Authorities now vote for the Stable flag for any router whose
31786       weighted MTBF is at least 5 days, regardless of the mean MTBF.
31787     - Do not remove routers as too old if we do not have any consensus
31788       document. Bugfix on 0.2.0.7-alpha.
31789     - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid.
31790       Spec conformance issue. Bugfix on Tor 0.0.2pre27.
31791     - When an exit relay resolves a stream address to a local IP address,
31792       do not just keep retrying that same exit relay over and
31793       over. Instead, just close the stream. Addresses bug 872. Bugfix
31794       on 0.2.0.32. Patch from rovv.
31795     - If a hidden service sends us an END cell, do not consider
31796       retrying the connection; just close it. Patch from rovv.
31797     - When we made bridge authorities stop serving bridge descriptors over
31798       unencrypted links, we also broke DirPort reachability testing for
31799       bridges. So bridges with a non-zero DirPort were printing spurious
31800       warns to their logs. Bugfix on 0.2.0.16-alpha. Fixes bug 709.
31801     - When a relay gets a create cell it can't decrypt (e.g. because it's
31802       using the wrong onion key), we were dropping it and letting the
31803       client time out. Now actually answer with a destroy cell. Fixes
31804       bug 904. Bugfix on 0.0.2pre8.
31805     - Squeeze 2-5% out of client performance (according to oprofile) by
31806       improving the implementation of some policy-manipulation functions.
31808   o Minor bugfixes (on 0.2.1.x):
31809     - Make get_interface_address() function work properly again; stop
31810       guessing the wrong parts of our address as our address.
31811     - Do not cannibalize a circuit if we're out of RELAY_EARLY cells to
31812       send on that circuit. Otherwise we might violate the proposal-110
31813       limit. Bugfix on 0.2.1.3-alpha. Partial fix for bug 878. Diagnosis
31814       thanks to Karsten.
31815     - When we're sending non-EXTEND cells to the first hop in a circuit,
31816       for example to use an encrypted directory connection, we don't need
31817       to use RELAY_EARLY cells: the first hop knows what kind of cell
31818       it is, and nobody else can even see the cell type. Conserving
31819       RELAY_EARLY cells makes it easier to cannibalize circuits like
31820       this later.
31821     - Stop logging nameserver addresses in reverse order.
31822     - If we are retrying a directory download slowly over and over, do
31823       not automatically give up after the 254th failure. Bugfix on
31824       0.2.1.9-alpha.
31825     - Resume reporting accurate "stream end" reasons to the local control
31826       port. They were lost in the changes for Proposal 148. Bugfix on
31827       0.2.1.9-alpha.
31829   o Deprecated and removed features:
31830     - The old "tor --version --version" command, which would print out
31831       the subversion "Id" of most of the source files, is now removed. It
31832       turned out to be less useful than we'd expected, and harder to
31833       maintain.
31835   o Code simplifications and refactoring:
31836     - Change our header file guard macros to be less likely to conflict
31837       with system headers. Adam Langley noticed that we were conflicting
31838       with log.h on Android.
31839     - Tool-assisted documentation cleanup. Nearly every function or
31840       static variable in Tor should have its own documentation now.
31843 Changes in version 0.2.1.9-alpha - 2008-12-25
31844   Tor 0.2.1.9-alpha fixes many more bugs, some of them security-related.
31846   o New directory authorities:
31847     - gabelmoo (the authority run by Karsten Loesing) now has a new
31848       IP address.
31850   o Security fixes:
31851     - Never use a connection with a mismatched address to extend a
31852       circuit, unless that connection is canonical. A canonical
31853       connection is one whose address is authenticated by the router's
31854       identity key, either in a NETINFO cell or in a router descriptor.
31855     - Avoid a possible memory corruption bug when receiving hidden service
31856       descriptors. Bugfix on 0.2.1.6-alpha.
31858   o Major bugfixes:
31859     - Fix a logic error that would automatically reject all but the first
31860       configured DNS server. Bugfix on 0.2.1.5-alpha. Possible fix for
31861       part of bug 813/868. Bug spotted by coderman.
31862     - When a stream at an exit relay is in state "resolving" or
31863       "connecting" and it receives an "end" relay cell, the exit relay
31864       would silently ignore the end cell and not close the stream. If
31865       the client never closes the circuit, then the exit relay never
31866       closes the TCP connection. Bug introduced in 0.1.2.1-alpha;
31867       reported by "wood".
31868     - When we can't initialize DNS because the network is down, do not
31869       automatically stop Tor from starting. Instead, retry failed
31870       dns_init() every 10 minutes, and change the exit policy to reject
31871       *:* until one succeeds. Fixes bug 691.
31873   o Minor features:
31874     - Give a better error message when an overzealous init script says
31875       "sudo -u username tor --user username". Makes Bug 882 easier for
31876       users to diagnose.
31877     - When a directory authority gives us a new guess for our IP address,
31878       log which authority we used. Hopefully this will help us debug
31879       the recent complaints about bad IP address guesses.
31880     - Detect svn revision properly when we're using git-svn.
31881     - Try not to open more than one descriptor-downloading connection
31882       to an authority at once. This should reduce load on directory
31883       authorities. Fixes bug 366.
31884     - Add cross-certification to newly generated certificates, so that
31885       a signing key is enough information to look up a certificate.
31886       Partial implementation of proposal 157.
31887     - Start serving certificates by <identity digest, signing key digest>
31888       pairs. Partial implementation of proposal 157.
31889     - Clients now never report any stream end reason except 'MISC'.
31890       Implements proposal 148.
31891     - On platforms with a maximum syslog string length, truncate syslog
31892       messages to that length ourselves, rather than relying on the
31893       system to do it for us.
31894     - Optimize out calls to time(NULL) that occur for every IO operation,
31895       or for every cell. On systems where time() is a slow syscall,
31896       this fix will be slightly helpful.
31897     - Exit servers can now answer resolve requests for ip6.arpa addresses.
31898     - When we download a descriptor that we then immediately (as
31899       a directory authority) reject, do not retry downloading it right
31900       away. Should save some bandwidth on authorities. Fix for bug
31901       888. Patch by Sebastian Hahn.
31902     - When a download gets us zero good descriptors, do not notify
31903       Tor that new directory information has arrived.
31904     - Avoid some nasty corner cases in the logic for marking connections
31905       as too old or obsolete or noncanonical for circuits. Partial
31906       bugfix on bug 891.
31908   o Minor features (controller):
31909     - New CONSENSUS_ARRIVED event to note when a new consensus has
31910       been fetched and validated.
31911     - When we realize that another process has modified our cached
31912       descriptors file, print out a more useful error message rather
31913       than triggering an assertion. Fixes bug 885. Patch from Karsten.
31914     - Add an internal-use-only __ReloadTorrcOnSIGHUP option for
31915       controllers to prevent SIGHUP from reloading the
31916       configuration. Fixes bug 856.
31918   o Minor bugfixes:
31919     - Resume using the correct "REASON=" stream when telling the
31920       controller why we closed a stream. Bugfix in 0.2.1.1-alpha.
31921     - When a canonical connection appears later in our internal list
31922       than a noncanonical one for a given OR ID, always use the
31923       canonical one. Bugfix on 0.2.0.12-alpha. Fixes bug 805.
31924       Spotted by rovv.
31925     - Clip the MaxCircuitDirtiness config option to a minimum of 10
31926       seconds. Warn the user if lower values are given in the
31927       configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian.
31928     - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the
31929       user if lower values are given in the configuration. Bugfix on
31930       0.1.1.17-rc. Patch by Sebastian.
31931     - Fix a race condition when freeing keys shared between main thread
31932       and CPU workers that could result in a memory leak. Bugfix on
31933       0.1.0.1-rc. Fixes bug 889.
31935   o Minor bugfixes (hidden services):
31936     - Do not throw away existing introduction points on SIGHUP (bugfix on
31937       0.0.6pre1); also, do not stall hidden services because we're
31938       throwing away introduction points; bugfix on 0.2.1.7-alpha. Spotted
31939       by John Brooks. Patch by Karsten. Fixes bug 874.
31940     - Fix a memory leak when we decline to add a v2 rendezvous
31941       descriptor to the cache because we already had a v0 descriptor
31942       with the same ID. Bugfix on 0.2.0.18-alpha.
31944   o Deprecated and removed features:
31945     - RedirectExits has been removed. It was deprecated since
31946       0.2.0.3-alpha.
31947     - Finally remove deprecated "EXTENDED_FORMAT" controller feature. It
31948       has been called EXTENDED_EVENTS since 0.1.2.4-alpha.
31949     - Cell pools are now always enabled; --disable-cell-pools is ignored.
31951   o Code simplifications and refactoring:
31952     - Rename the confusing or_is_obsolete field to the more appropriate
31953       is_bad_for_new_circs, and move it to or_connection_t where it
31954       belongs.
31955     - Move edge-only flags from connection_t to edge_connection_t: not
31956       only is this better coding, but on machines of plausible alignment,
31957       it should save 4-8 bytes per connection_t. "Every little bit helps."
31958     - Rename ServerDNSAllowBrokenResolvConf to ServerDNSAllowBrokenConfig
31959       for consistency; keep old option working for backward compatibility.
31960     - Simplify the code for finding connections to use for a circuit.
31963 Changes in version 0.2.1.8-alpha - 2008-12-08
31964   Tor 0.2.1.8-alpha fixes some crash bugs in earlier alpha releases,
31965   builds better on unusual platforms like Solaris and old OS X, and
31966   fixes a variety of other issues.
31968   o Major features:
31969     - New DirPortFrontPage option that takes an html file and publishes
31970       it as "/" on the DirPort. Now relay operators can provide a
31971       disclaimer without needing to set up a separate webserver. There's
31972       a sample disclaimer in contrib/tor-exit-notice.html.
31974   o Security fixes:
31975     - When the client is choosing entry guards, now it selects at most
31976       one guard from a given relay family. Otherwise we could end up with
31977       all of our entry points into the network run by the same operator.
31978       Suggested by Camilo Viecco. Fix on 0.1.1.11-alpha.
31980   o Major bugfixes:
31981     - Fix a DOS opportunity during the voting signature collection process
31982       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
31983     - Fix a possible segfault when establishing an exit connection. Bugfix
31984       on 0.2.1.5-alpha.
31986   o Minor bugfixes:
31987     - Get file locking working on win32. Bugfix on 0.2.1.6-alpha. Fixes
31988       bug 859.
31989     - Made Tor a little less aggressive about deleting expired
31990       certificates. Partial fix for bug 854.
31991     - Stop doing unaligned memory access that generated bus errors on
31992       sparc64. Bugfix on 0.2.0.10-alpha. Fix for bug 862.
31993     - Fix a crash bug when changing EntryNodes from the controller. Bugfix
31994       on 0.2.1.6-alpha. Fix for bug 867. Patched by Sebastian.
31995     - Make USR2 log-level switch take effect immediately. Bugfix on
31996       0.1.2.8-beta.
31997     - If one win32 nameserver fails to get added, continue adding the
31998       rest, and don't automatically fail.
31999     - Use fcntl() for locking when flock() is not available. Should fix
32000       compilation on Solaris. Should fix Bug 873. Bugfix on 0.2.1.6-alpha.
32001     - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug
32002       could make gcc generate non-functional binary search code. Bugfix
32003       on 0.2.0.10-alpha.
32004     - Build correctly on platforms without socklen_t.
32005     - Avoid potential crash on internal error during signature collection.
32006       Fixes bug 864. Patch from rovv.
32007     - Do not use C's stdio library for writing to log files. This will
32008       improve logging performance by a minute amount, and will stop
32009       leaking fds when our disk is full. Fixes bug 861.
32010     - Stop erroneous use of O_APPEND in cases where we did not in fact
32011       want to re-seek to the end of a file before every last write().
32012     - Correct handling of possible malformed authority signing key
32013       certificates with internal signature types. Fixes bug 880. Bugfix
32014       on 0.2.0.3-alpha.
32015     - Fix a hard-to-trigger resource leak when logging credential status.
32016       CID 349.
32018   o Minor features:
32019     - Directory mirrors no longer fetch the v1 directory or
32020       running-routers files. They are obsolete, and nobody asks for them
32021       anymore. This is the first step to making v1 authorities obsolete.
32023   o Minor features (controller):
32024     - Return circuit purposes in response to GETINFO circuit-status. Fixes
32025       bug 858.
32028 Changes in version 0.2.0.32 - 2008-11-20
32029   Tor 0.2.0.32 fixes a major security problem in Debian and Ubuntu
32030   packages (and maybe other packages) noticed by Theo de Raadt, fixes
32031   a smaller security flaw that might allow an attacker to access local
32032   services, further improves hidden service performance, and fixes a
32033   variety of other issues.
32035   o Security fixes:
32036     - The "User" and "Group" config options did not clear the
32037       supplementary group entries for the Tor process. The "User" option
32038       is now more robust, and we now set the groups to the specified
32039       user's primary group. The "Group" option is now ignored. For more
32040       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
32041       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
32042       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848 and 857.
32043     - The "ClientDNSRejectInternalAddresses" config option wasn't being
32044       consistently obeyed: if an exit relay refuses a stream because its
32045       exit policy doesn't allow it, we would remember what IP address
32046       the relay said the destination address resolves to, even if it's
32047       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
32049   o Major bugfixes:
32050     - Fix a DOS opportunity during the voting signature collection process
32051       at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x.
32053   o Major bugfixes (hidden services):
32054     - When fetching v0 and v2 rendezvous service descriptors in parallel,
32055       we were failing the whole hidden service request when the v0
32056       descriptor fetch fails, even if the v2 fetch is still pending and
32057       might succeed. Similarly, if the last v2 fetch fails, we were
32058       failing the whole hidden service request even if a v0 fetch is
32059       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
32060     - When extending a circuit to a hidden service directory to upload a
32061       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
32062       requests failed, because the router descriptor has not been
32063       downloaded yet. In these cases, do not attempt to upload the
32064       rendezvous descriptor, but wait until the router descriptor is
32065       downloaded and retry. Likewise, do not attempt to fetch a rendezvous
32066       descriptor from a hidden service directory for which the router
32067       descriptor has not yet been downloaded. Fixes bug 767. Bugfix
32068       on 0.2.0.10-alpha.
32070   o Minor bugfixes:
32071     - Fix several infrequent memory leaks spotted by Coverity.
32072     - When testing for libevent functions, set the LDFLAGS variable
32073       correctly. Found by Riastradh.
32074     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
32075       bootstrapping with tunneled directory connections. Bugfix on
32076       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
32077     - When asked to connect to A.B.exit:80, if we don't know the IP for A
32078       and we know that server B rejects most-but-not all connections to
32079       port 80, we would previously reject the connection. Now, we assume
32080       the user knows what they were asking for. Fixes bug 752. Bugfix
32081       on 0.0.9rc5. Diagnosed by BarkerJr.
32082     - If we overrun our per-second write limits a little, count this as
32083       having used up our write allocation for the second, and choke
32084       outgoing directory writes. Previously, we had only counted this when
32085       we had met our limits precisely. Fixes bug 824. Patch from by rovv.
32086       Bugfix on 0.2.0.x (??).
32087     - Remove the old v2 directory authority 'lefkada' from the default
32088       list. It has been gone for many months.
32089     - Stop doing unaligned memory access that generated bus errors on
32090       sparc64. Bugfix on 0.2.0.10-alpha. Fixes bug 862.
32091     - Make USR2 log-level switch take effect immediately. Bugfix on
32092       0.1.2.8-beta.
32094   o Minor bugfixes (controller):
32095     - Make DNS resolved events into "CLOSED", not "FAILED". Bugfix on
32096       0.1.2.5-alpha. Fix by Robert Hogan. Resolves bug 807.
32099 Changes in version 0.2.1.7-alpha - 2008-11-08
32100   Tor 0.2.1.7-alpha fixes a major security problem in Debian and Ubuntu
32101   packages (and maybe other packages) noticed by Theo de Raadt, fixes
32102   a smaller security flaw that might allow an attacker to access local
32103   services, adds better defense against DNS poisoning attacks on exit
32104   relays, further improves hidden service performance, and fixes a
32105   variety of other issues.
32107   o Security fixes:
32108     - The "ClientDNSRejectInternalAddresses" config option wasn't being
32109       consistently obeyed: if an exit relay refuses a stream because its
32110       exit policy doesn't allow it, we would remember what IP address
32111       the relay said the destination address resolves to, even if it's
32112       an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv.
32113     - The "User" and "Group" config options did not clear the
32114       supplementary group entries for the Tor process. The "User" option
32115       is now more robust, and we now set the groups to the specified
32116       user's primary group. The "Group" option is now ignored. For more
32117       detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL
32118       in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum
32119       and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848.
32120     - Do not use or believe expired v3 authority certificates. Patch
32121       from Karsten. Bugfix in 0.2.0.x. Fixes bug 851.
32123   o Minor features:
32124     - Now NodeFamily and MyFamily config options allow spaces in
32125       identity fingerprints, so it's easier to paste them in.
32126       Suggested by Lucky Green.
32127     - Implement the 0x20 hack to better resist DNS poisoning: set the
32128       case on outgoing DNS requests randomly, and reject responses that do
32129       not match the case correctly. This logic can be disabled with the
32130       ServerDNSRandomizeCase setting, if you are using one of the 0.3%
32131       of servers that do not reliably preserve case in replies. See
32132       "Increased DNS Forgery Resistance through 0x20-Bit Encoding"
32133       for more info.
32134     - Preserve case in replies to DNSPort requests in order to support
32135       the 0x20 hack for resisting DNS poisoning attacks.
32137   o Hidden service performance improvements:
32138     - When the client launches an introduction circuit, retry with a
32139       new circuit after 30 seconds rather than 60 seconds.
32140     - Launch a second client-side introduction circuit in parallel
32141       after a delay of 15 seconds (based on work by Christian Wilms).
32142     - Hidden services start out building five intro circuits rather
32143       than three, and when the first three finish they publish a service
32144       descriptor using those. Now we publish our service descriptor much
32145       faster after restart.
32147   o Minor bugfixes:
32148     - Minor fix in the warning messages when you're having problems
32149       bootstrapping; also, be more forgiving of bootstrap problems when
32150       we're still making incremental progress on a given bootstrap phase.
32151     - When we're choosing an exit node for a circuit, and we have
32152       no pending streams, choose a good general exit rather than one that
32153       supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv.
32154     - Send a valid END cell back when a client tries to connect to a
32155       nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug
32156       840. Patch from rovv.
32157     - If a broken client asks a non-exit router to connect somewhere,
32158       do not even do the DNS lookup before rejecting the connection.
32159       Fixes another case of bug 619. Patch from rovv.
32160     - Fix another case of assuming, when a specific exit is requested,
32161       that we know more than the user about what hosts it allows.
32162       Fixes another case of bug 752. Patch from rovv.
32163     - Check which hops rendezvous stream cells are associated with to
32164       prevent possible guess-the-streamid injection attacks from
32165       intermediate hops. Fixes another case of bug 446. Based on patch
32166       from rovv.
32167     - Avoid using a negative right-shift when comparing 32-bit
32168       addresses. Possible fix for bug 845 and bug 811.
32169     - Make the assert_circuit_ok() function work correctly on circuits that
32170       have already been marked for close.
32171     - Fix read-off-the-end-of-string error in unit tests when decoding
32172       introduction points.
32173     - Fix uninitialized size field for memory area allocation: may improve
32174       memory performance during directory parsing.
32175     - Treat duplicate certificate fetches as failures, so that we do
32176       not try to re-fetch an expired certificate over and over and over.
32177     - Do not say we're fetching a certificate when we'll in fact skip it
32178       because of a pending download.
32181 Changes in version 0.2.1.6-alpha - 2008-09-30
32182   Tor 0.2.1.6-alpha further improves performance and robustness of
32183   hidden services, starts work on supporting per-country relay selection,
32184   and fixes a variety of smaller issues.
32186   o Major features:
32187     - Implement proposal 121: make it possible to build hidden services
32188       that only certain clients are allowed to connect to. This is
32189       enforced at several points, so that unauthorized clients are unable
32190       to send INTRODUCE cells to the service, or even (depending on the
32191       type of authentication) to learn introduction points. This feature
32192       raises the bar for certain kinds of active attacks against hidden
32193       services. Code by Karsten Loesing.
32194     - Relays now store and serve v2 hidden service descriptors by default,
32195       i.e., the new default value for HidServDirectoryV2 is 1. This is
32196       the last step in proposal 114, which aims to make hidden service
32197       lookups more reliable.
32198     - Start work to allow node restrictions to include country codes. The
32199       syntax to exclude nodes in a country with country code XX is
32200       "ExcludeNodes {XX}". Patch from Robert Hogan. It still needs some
32201       refinement to decide what config options should take priority if
32202       you ask to both use a particular node and exclude it.
32203     - Allow ExitNodes list to include IP ranges and country codes, just
32204       like the Exclude*Nodes lists. Patch from Robert Hogan.
32206   o Major bugfixes:
32207     - Fix a bug when parsing ports in tor_addr_port_parse() that caused
32208       Tor to fail to start if you had it configured to use a bridge
32209       relay. Fixes bug 809. Bugfix on 0.2.1.5-alpha.
32210     - When extending a circuit to a hidden service directory to upload a
32211       rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all
32212       requests failed, because the router descriptor had not been
32213       downloaded yet. In these cases, we now wait until the router
32214       descriptor is downloaded, and then retry. Likewise, clients
32215       now skip over a hidden service directory if they don't yet have
32216       its router descriptor, rather than futilely requesting it and
32217       putting mysterious complaints in the logs. Fixes bug 767. Bugfix
32218       on 0.2.0.10-alpha.
32219     - When fetching v0 and v2 rendezvous service descriptors in parallel,
32220       we were failing the whole hidden service request when the v0
32221       descriptor fetch fails, even if the v2 fetch is still pending and
32222       might succeed. Similarly, if the last v2 fetch fails, we were
32223       failing the whole hidden service request even if a v0 fetch is
32224       still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha.
32225     - DNS replies need to have names matching their requests, but
32226       these names should be in the questions section, not necessarily
32227       in the answers section. Fixes bug 823. Bugfix on 0.2.1.5-alpha.
32229   o Minor features:
32230     - Update to the "September 1 2008" ip-to-country file.
32231     - Allow ports 465 and 587 in the default exit policy again. We had
32232       rejected them in 0.1.0.15, because back in 2005 they were commonly
32233       misconfigured and ended up as spam targets. We hear they are better
32234       locked down these days.
32235     - Use a lockfile to make sure that two Tor processes are not
32236       simultaneously running with the same datadir.
32237     - Serve the latest v3 networkstatus consensus via the control
32238       port. Use "getinfo dir/status-vote/current/consensus" to fetch it.
32239     - Better logging about stability/reliability calculations on directory
32240       servers.
32241     - Drop the requirement to have an open dir port for storing and
32242       serving v2 hidden service descriptors.
32243     - Directory authorities now serve a /tor/dbg-stability.txt URL to
32244       help debug WFU and MTBF calculations.
32245     - Implement most of Proposal 152: allow specialized servers to permit
32246       single-hop circuits, and clients to use those servers to build
32247       single-hop circuits when using a specialized controller. Patch
32248       from Josh Albrecht. Resolves feature request 768.
32249     - Add a -p option to tor-resolve for specifying the SOCKS port: some
32250       people find host:port too confusing.
32251     - Make TrackHostExit mappings expire a while after their last use, not
32252       after their creation. Patch from Robert Hogan.
32253     - Provide circuit purposes along with circuit events to the controller.
32255   o Minor bugfixes:
32256     - Fix compile on OpenBSD 4.4-current. Bugfix on 0.2.1.5-alpha.
32257       Reported by Tas.
32258     - Fixed some memory leaks -- some quite frequent, some almost
32259       impossible to trigger -- based on results from Coverity.
32260     - When testing for libevent functions, set the LDFLAGS variable
32261       correctly. Found by Riastradh.
32262     - Fix an assertion bug in parsing policy-related options; possible fix
32263       for bug 811.
32264     - Catch and report a few more bootstrapping failure cases when Tor
32265       fails to establish a TCP connection. Cleanup on 0.2.1.x.
32266     - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from
32267       bootstrapping with tunneled directory connections. Bugfix on
32268       0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam.
32269     - When asked to connect to A.B.exit:80, if we don't know the IP for A
32270       and we know that server B rejects most-but-not all connections to
32271       port 80, we would previously reject the connection. Now, we assume
32272       the user knows what they were asking for. Fixes bug 752. Bugfix
32273       on 0.0.9rc5. Diagnosed by BarkerJr.
32274     - If we are not using BEGIN_DIR cells, don't attempt to contact hidden
32275       service directories if they have no advertised dir port. Bugfix
32276       on 0.2.0.10-alpha.
32277     - If we overrun our per-second write limits a little, count this as
32278       having used up our write allocation for the second, and choke
32279       outgoing directory writes. Previously, we had only counted this when
32280       we had met our limits precisely. Fixes bug 824. Patch by rovv.
32281       Bugfix on 0.2.0.x (??).
32282     - Avoid a "0 divided by 0" calculation when calculating router uptime
32283       at directory authorities. Bugfix on 0.2.0.8-alpha.
32284     - Make DNS resolved controller events into "CLOSED", not
32285       "FAILED". Bugfix on 0.1.2.5-alpha. Fix by Robert Hogan. Resolves
32286       bug 807.
32287     - Fix a bug where an unreachable relay would establish enough
32288       reachability testing circuits to do a bandwidth test -- if
32289       we already have a connection to the middle hop of the testing
32290       circuit, then it could establish the last hop by using the existing
32291       connection. Bugfix on 0.1.2.2-alpha, exposed when we made testing
32292       circuits no longer use entry guards in 0.2.1.3-alpha.
32293     - If we have correct permissions on $datadir, we complain to stdout
32294       and fail to start. But dangerous permissions on
32295       $datadir/cached-status/ would cause us to open a log and complain
32296       there. Now complain to stdout and fail to start in both cases. Fixes
32297       bug 820, reported by seeess.
32298     - Remove the old v2 directory authority 'lefkada' from the default
32299       list. It has been gone for many months.
32301   o Code simplifications and refactoring:
32302     - Revise the connection_new functions so that a more typesafe variant
32303       exists. This will work better with Coverity, and let us find any
32304       actual mistakes we're making here.
32305     - Refactor unit testing logic so that dmalloc can be used sensibly
32306       with unit tests to check for memory leaks.
32307     - Move all hidden-service related fields from connection and circuit
32308       structure to substructures: this way they won't eat so much memory.
32311 Changes in version 0.2.0.31 - 2008-09-03
32312   Tor 0.2.0.31 addresses two potential anonymity issues, starts to fix
32313   a big bug we're seeing where in rare cases traffic from one Tor stream
32314   gets mixed into another stream, and fixes a variety of smaller issues.
32316   o Major bugfixes:
32317     - Make sure that two circuits can never exist on the same connection
32318       with the same circuit ID, even if one is marked for close. This
32319       is conceivably a bugfix for bug 779. Bugfix on 0.1.0.4-rc.
32320     - Relays now reject risky extend cells: if the extend cell includes
32321       a digest of all zeroes, or asks to extend back to the relay that
32322       sent the extend cell, tear down the circuit. Ideas suggested
32323       by rovv.
32324     - If not enough of our entry guards are available so we add a new
32325       one, we might use the new one even if it overlapped with the
32326       current circuit's exit relay (or its family). Anonymity bugfix
32327       pointed out by rovv.
32329   o Minor bugfixes:
32330     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
32331       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
32332     - Correctly detect the presence of the linux/netfilter_ipv4.h header
32333       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
32334     - Pick size of default geoip filename string correctly on windows.
32335       Fixes bug 806. Bugfix on 0.2.0.30.
32336     - Make the autoconf script accept the obsolete --with-ssl-dir
32337       option as an alias for the actually-working --with-openssl-dir
32338       option. Fix the help documentation to recommend --with-openssl-dir.
32339       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
32340     - When using the TransPort option on OpenBSD, and using the User
32341       option to change UID and drop privileges, make sure to open
32342       /dev/pf before dropping privileges. Fixes bug 782. Patch from
32343       Christopher Davis. Bugfix on 0.1.2.1-alpha.
32344     - Try to attach connections immediately upon receiving a RENDEZVOUS2
32345       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
32346       on the client side when connecting to a hidden service. Bugfix
32347       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
32348     - When closing an application-side connection because its circuit is
32349       getting torn down, generate the stream event correctly. Bugfix on
32350       0.1.2.x. Anonymous patch.
32353 Changes in version 0.2.1.5-alpha - 2008-08-31
32354   Tor 0.2.1.5-alpha moves us closer to handling IPv6 destinations, puts
32355   in a lot of the infrastructure for adding authorization to hidden
32356   services, lays the groundwork for having clients read their load
32357   balancing information out of the networkstatus consensus rather than
32358   the individual router descriptors, addresses two potential anonymity
32359   issues, and fixes a variety of smaller issues.
32361   o Major features:
32362     - Convert many internal address representations to optionally hold
32363       IPv6 addresses.
32364     - Generate and accept IPv6 addresses in many protocol elements.
32365     - Make resolver code handle nameservers located at ipv6 addresses.
32366     - Begin implementation of proposal 121 ("Client authorization for
32367       hidden services"): configure hidden services with client
32368       authorization, publish descriptors for them, and configure
32369       authorization data for hidden services at clients. The next
32370       step is to actually access hidden services that perform client
32371       authorization.
32372     - More progress toward proposal 141: Network status consensus
32373       documents and votes now contain bandwidth information for each
32374       router and a summary of that router's exit policy. Eventually this
32375       will be used by clients so that they do not have to download every
32376       known descriptor before building circuits.
32378   o Major bugfixes (on 0.2.0.x and before):
32379     - When sending CREATED cells back for a given circuit, use a 64-bit
32380       connection ID to find the right connection, rather than an addr:port
32381       combination. Now that we can have multiple OR connections between
32382       the same ORs, it is no longer possible to use addr:port to uniquely
32383       identify a connection.
32384     - Relays now reject risky extend cells: if the extend cell includes
32385       a digest of all zeroes, or asks to extend back to the relay that
32386       sent the extend cell, tear down the circuit. Ideas suggested
32387       by rovv.
32388     - If not enough of our entry guards are available so we add a new
32389       one, we might use the new one even if it overlapped with the
32390       current circuit's exit relay (or its family). Anonymity bugfix
32391       pointed out by rovv.
32393   o Minor bugfixes:
32394     - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug
32395       794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha.
32396     - When using the TransPort option on OpenBSD, and using the User
32397       option to change UID and drop privileges, make sure to open /dev/pf
32398       before dropping privileges. Fixes bug 782. Patch from Christopher
32399       Davis. Bugfix on 0.1.2.1-alpha.
32400     - Correctly detect the presence of the linux/netfilter_ipv4.h header
32401       when building against recent kernels. Bugfix on 0.1.2.1-alpha.
32402     - Add a missing safe_str() call for a debug log message.
32403     - Use 64 bits instead of 32 bits for connection identifiers used with
32404       the controller protocol, to greatly reduce risk of identifier reuse.
32405     - Make the autoconf script accept the obsolete --with-ssl-dir
32406       option as an alias for the actually-working --with-openssl-dir
32407       option. Fix the help documentation to recommend --with-openssl-dir.
32408       Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha.
32410   o Minor features:
32411     - Rate-limit too-many-sockets messages: when they happen, they happen
32412       a lot. Resolves bug 748.
32413     - Resist DNS poisoning a little better by making sure that names in
32414       answer sections match.
32415     - Print the SOCKS5 error message string as well as the error code
32416       when a tor-resolve request fails. Patch from Jacob.
32419 Changes in version 0.2.1.4-alpha - 2008-08-04
32420   Tor 0.2.1.4-alpha fixes a pair of crash bugs in 0.2.1.3-alpha.
32422   o Major bugfixes:
32423     - The address part of exit policies was not correctly written
32424       to router descriptors. This generated router descriptors that failed
32425       their self-checks. Noticed by phobos, fixed by Karsten. Bugfix
32426       on 0.2.1.3-alpha.
32427     - Tor triggered a false assert when extending a circuit to a relay
32428       but we already have a connection open to that relay. Noticed by
32429       phobos, fixed by Karsten. Bugfix on 0.2.1.3-alpha.
32431   o Minor bugfixes:
32432     - Fix a hidden service logging bug: in some edge cases, the router
32433       descriptor of a previously picked introduction point becomes
32434       obsolete and we need to give up on it rather than continually
32435       complaining that it has become obsolete. Observed by xiando. Bugfix
32436       on 0.2.1.3-alpha.
32438   o Removed features:
32439     - Take out the TestVia config option, since it was a workaround for
32440       a bug that was fixed in Tor 0.1.1.21.
32443 Changes in version 0.2.1.3-alpha - 2008-08-03
32444   Tor 0.2.1.3-alpha implements most of the pieces to prevent
32445   infinite-length circuit attacks (see proposal 110); fixes a bug that
32446   might cause exit relays to corrupt streams they send back; allows
32447   address patterns (e.g. 255.128.0.0/16) to appear in ExcludeNodes and
32448   ExcludeExitNodes config options; and fixes a big pile of bugs.
32450   o Bootstrapping bugfixes (on 0.2.1.x-alpha):
32451     - Send a bootstrap problem "warn" event on the first problem if the
32452       reason is NO_ROUTE (that is, our network is down).
32454   o Major features:
32455     - Implement most of proposal 110: The first K cells to be sent
32456       along a circuit are marked as special "early" cells; only K "early"
32457       cells will be allowed. Once this code is universal, we can block
32458       certain kinds of DOS attack by requiring that EXTEND commands must
32459       be sent using an "early" cell.
32461   o Major bugfixes:
32462     - Try to attach connections immediately upon receiving a RENDEZVOUS2
32463       or RENDEZVOUS_ESTABLISHED cell. This can save a second or two
32464       on the client side when connecting to a hidden service. Bugfix
32465       on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743.
32466     - Ensure that two circuits can never exist on the same connection
32467       with the same circuit ID, even if one is marked for close. This
32468       is conceivably a bugfix for bug 779; fixes a bug on 0.1.0.4-rc.
32470   o Minor features:
32471     - When relays do their initial bandwidth measurement, don't limit
32472       to just our entry guards for the test circuits. Otherwise we tend
32473       to have multiple test circuits going through a single entry guard,
32474       which makes our bandwidth test less accurate. Fixes part of bug 654;
32475       patch contributed by Josh Albrecht.
32476     - Add an ExcludeExitNodes option so users can list a set of nodes
32477       that should be be excluded from the exit node position, but
32478       allowed elsewhere. Implements proposal 151.
32479     - Allow address patterns (e.g., 255.128.0.0/16) to appear in
32480       ExcludeNodes and ExcludeExitNodes lists.
32481     - Change the implementation of ExcludeNodes and ExcludeExitNodes to
32482       be more efficient. Formerly it was quadratic in the number of
32483       servers; now it should be linear. Fixes bug 509.
32484     - Save 16-22 bytes per open circuit by moving the n_addr, n_port,
32485       and n_conn_id_digest fields into a separate structure that's
32486       only needed when the circuit has not yet attached to an n_conn.
32488   o Minor bugfixes:
32489     - Change the contrib/tor.logrotate script so it makes the new
32490       logs as "_tor:_tor" rather than the default, which is generally
32491       "root:wheel". Fixes bug 676, reported by Serge Koksharov.
32492     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
32493       warnings (occasionally), but it can also cause the compiler to
32494       eliminate error-checking code. Suggested by Peter Gutmann.
32495     - When a hidden service is giving up on an introduction point candidate
32496       that was not included in the last published rendezvous descriptor,
32497       don't reschedule publication of the next descriptor. Fixes bug 763.
32498       Bugfix on 0.0.9.3.
32499     - Mark RendNodes, RendExcludeNodes, HiddenServiceNodes, and
32500       HiddenServiceExcludeNodes as obsolete: they never worked properly,
32501       and nobody claims to be using them. Fixes bug 754. Bugfix on
32502       0.1.0.1-rc. Patch from Christian Wilms.
32503     - Fix a small alignment and memory-wasting bug on buffer chunks.
32504       Spotted by rovv.
32506   o Minor bugfixes (controller):
32507     - When closing an application-side connection because its circuit
32508       is getting torn down, generate the stream event correctly.
32509       Bugfix on 0.1.2.x. Anonymous patch.
32511   o Removed features:
32512     - Remove all backward-compatibility code to support relays running
32513       versions of Tor so old that they no longer work at all on the
32514       Tor network.
32517 Changes in version 0.2.0.30 - 2008-07-15
32518   o Minor bugfixes:
32519     - Stop using __attribute__((nonnull)) with GCC: it can give us useful
32520       warnings (occasionally), but it can also cause the compiler to
32521       eliminate error-checking code. Suggested by Peter Gutmann.
32524 Changes in version 0.2.0.29-rc - 2008-07-08
32525   Tor 0.2.0.29-rc fixes two big bugs with using bridges, fixes more
32526   hidden-service performance bugs, and fixes a bunch of smaller bugs.
32528   o Major bugfixes:
32529     - If you have more than one bridge but don't know their keys,
32530       you would only launch a request for the descriptor of the first one
32531       on your list. (Tor considered launching requests for the others, but
32532       found that it already had a connection on the way for $0000...0000
32533       so it didn't open another.) Bugfix on 0.2.0.x.
32534     - If you have more than one bridge but don't know their keys, and the
32535       connection to one of the bridges failed, you would cancel all
32536       pending bridge connections. (After all, they all have the same
32537       digest.) Bugfix on 0.2.0.x.
32538     - When a hidden service was trying to establish an introduction point,
32539       and Tor had built circuits preemptively for such purposes, we
32540       were ignoring all the preemptive circuits and launching a new one
32541       instead. Bugfix on 0.2.0.14-alpha.
32542     - When a hidden service was trying to establish an introduction point,
32543       and Tor *did* manage to reuse one of the preemptively built
32544       circuits, it didn't correctly remember which one it used,
32545       so it asked for another one soon after, until there were no
32546       more preemptive circuits, at which point it launched one from
32547       scratch. Bugfix on 0.0.9.x.
32548     - Make directory servers include the X-Your-Address-Is: http header in
32549       their responses even for begin_dir conns. Now clients who only
32550       ever use begin_dir connections still have a way to learn their IP
32551       address. Fixes bug 737; bugfix on 0.2.0.22-rc. Reported by goldy.
32553   o Minor bugfixes:
32554     - Fix a macro/CPP interaction that was confusing some compilers:
32555       some GCCs don't like #if/#endif pairs inside macro arguments.
32556       Fixes bug 707.
32557     - Fix macro collision between OpenSSL 0.9.8h and Windows headers.
32558       Fixes bug 704; fix from Steven Murdoch.
32559     - When opening /dev/null in finish_daemonize(), do not pass the
32560       O_CREAT flag. Fortify was complaining, and correctly so. Fixes
32561       bug 742; fix from Michael Scherer. Bugfix on 0.0.2pre19.
32562     - Correctly detect transparent proxy support on Linux hosts that
32563       require in.h to be included before netfilter_ipv4.h. Patch
32564       from coderman.
32565     - Disallow session resumption attempts during the renegotiation
32566       stage of the v2 handshake protocol. Clients should never be trying
32567       session resumption at this point, but apparently some did, in
32568       ways that caused the handshake to fail. Bugfix on 0.2.0.20-rc. Bug
32569       found by Geoff Goodell.
32572 Changes in version 0.2.1.2-alpha - 2008-06-20
32573   Tor 0.2.1.2-alpha includes a new "TestingTorNetwork" config option to
32574   make it easier to set up your own private Tor network; fixes several
32575   big bugs with using more than one bridge relay; fixes a big bug with
32576   offering hidden services quickly after Tor starts; and uses a better
32577   API for reporting potential bootstrapping problems to the controller.
32579   o Major features:
32580     - New TestingTorNetwork config option to allow adjustment of
32581       previously constant values that, while reasonable, could slow
32582       bootstrapping. Implements proposal 135. Patch from Karsten.
32584   o Major bugfixes:
32585     - If you have more than one bridge but don't know their digests,
32586       you would only learn a request for the descriptor of the first one
32587       on your list. (Tor considered launching requests for the others, but
32588       found that it already had a connection on the way for $0000...0000
32589       so it didn't open another.) Bugfix on 0.2.0.x.
32590     - If you have more than one bridge but don't know their digests,
32591       and the connection to one of the bridges failed, you would cancel
32592       all pending bridge connections. (After all, they all have the
32593       same digest.) Bugfix on 0.2.0.x.
32594     - When establishing a hidden service, introduction points that
32595       originate from cannibalized circuits are completely ignored and not
32596       included in rendezvous service descriptors. This might be another
32597       reason for delay in making a hidden service available. Bugfix
32598       from long ago (0.0.9.x?)
32600   o Minor features:
32601     - Allow OpenSSL to use dynamic locks if it wants.
32602     - When building a consensus, do not include routers that are down.
32603       This will cut down 30% to 40% on consensus size. Implements
32604       proposal 138.
32605     - In directory authorities' approved-routers files, allow
32606       fingerprints with or without space.
32607     - Add a "GETINFO /status/bootstrap-phase" controller option, so the
32608       controller can query our current bootstrap state in case it attaches
32609       partway through and wants to catch up.
32610     - Send an initial "Starting" bootstrap status event, so we have a
32611       state to start out in.
32613   o Minor bugfixes:
32614     - Asking for a conditional consensus at .../consensus/<fingerprints>
32615       would crash a dirserver if it did not already have a
32616       consensus. Bugfix on 0.2.1.1-alpha.
32617     - Clean up some macro/CPP interactions: some GCC versions don't like
32618       #if/#endif pairs inside macro arguments. Fixes bug 707. Bugfix on
32619       0.2.0.x.
32621   o Bootstrapping bugfixes (on 0.2.1.1-alpha):
32622     - Directory authorities shouldn't complain about bootstrapping
32623       problems just because they do a lot of reachability testing and
32624       some of the connection attempts fail.
32625     - Start sending "count" and "recommendation" key/value pairs in
32626       bootstrap problem status events, so the controller can hear about
32627       problems even before Tor decides they're worth reporting for sure.
32628     - If you're using bridges, generate "bootstrap problem" warnings
32629       as soon as you run out of working bridges, rather than waiting
32630       for ten failures -- which will never happen if you have less than
32631       ten bridges.
32632     - If we close our OR connection because there's been a circuit
32633       pending on it for too long, we were telling our bootstrap status
32634       events "REASON=NONE". Now tell them "REASON=TIMEOUT".
32637 Changes in version 0.2.1.1-alpha - 2008-06-13
32638   Tor 0.2.1.1-alpha fixes a lot of memory fragmentation problems that
32639   were making the Tor process bloat especially on Linux; makes our TLS
32640   handshake blend in better; sends "bootstrap phase" status events to
32641   the controller, so it can keep the user informed of progress (and
32642   problems) fetching directory information and establishing circuits;
32643   and adds a variety of smaller features.
32645   o Major features:
32646     - More work on making our TLS handshake blend in: modify the list
32647       of ciphers advertised by OpenSSL in client mode to even more
32648       closely resemble a common web browser. We cheat a little so that
32649       we can advertise ciphers that the locally installed OpenSSL doesn't
32650       know about.
32651     - Start sending "bootstrap phase" status events to the controller,
32652       so it can keep the user informed of progress fetching directory
32653       information and establishing circuits. Also inform the controller
32654       if we think we're stuck at a particular bootstrap phase. Implements
32655       proposal 137.
32656     - Resume using OpenSSL's RAND_poll() for better (and more portable)
32657       cross-platform entropy collection again. We used to use it, then
32658       stopped using it because of a bug that could crash systems that
32659       called RAND_poll when they had a lot of fds open. It looks like the
32660       bug got fixed in late 2006. Our new behavior is to call RAND_poll()
32661       at startup, and to call RAND_poll() when we reseed later only if
32662       we have a non-buggy OpenSSL version.
32664   o Major bugfixes:
32665     - When we choose to abandon a new entry guard because we think our
32666       older ones might be better, close any circuits pending on that
32667       new entry guard connection. This fix should make us recover much
32668       faster when our network is down and then comes back. Bugfix on
32669       0.1.2.8-beta; found by lodger.
32671   o Memory fixes and improvements:
32672     - Add a malloc_good_size implementation to OpenBSD_malloc_linux.c,
32673       to avoid unused RAM in buffer chunks and memory pools.
32674     - Speed up parsing and cut down on memory fragmentation by using
32675       stack-style allocations for parsing directory objects. Previously,
32676       this accounted for over 40% of allocations from within Tor's code
32677       on a typical directory cache.
32678     - Use a Bloom filter rather than a digest-based set to track which
32679       descriptors we need to keep around when we're cleaning out old
32680       router descriptors. This speeds up the computation significantly,
32681       and may reduce fragmentation.
32682     - Reduce the default smartlist size from 32 to 16; it turns out that
32683       most smartlists hold around 8-12 elements tops.
32684     - Make dumpstats() log the fullness and size of openssl-internal
32685       buffers.
32686     - If the user has applied the experimental SSL_MODE_RELEASE_BUFFERS
32687       patch to their OpenSSL, turn it on to save memory on servers. This
32688       patch will (with any luck) get included in a mainline distribution
32689       before too long.
32690     - Never use OpenSSL compression: it wastes RAM and CPU trying to
32691       compress cells, which are basically all encrypted, compressed,
32692       or both.
32694   o Minor bugfixes:
32695     - Stop reloading the router list from disk for no reason when we
32696       run out of reachable directory mirrors. Once upon a time reloading
32697       it would set the 'is_running' flag back to 1 for them. It hasn't
32698       done that for a long time.
32699     - In very rare situations new hidden service descriptors were
32700       published earlier than 30 seconds after the last change to the
32701       service. (We currently think that a hidden service descriptor
32702       that's been stable for 30 seconds is worth publishing.)
32704   o Minor features:
32705     - Allow separate log levels to be configured for different logging
32706       domains. For example, this allows one to log all notices, warnings,
32707       or errors, plus all memory management messages of level debug or
32708       higher, with: Log [MM] debug-err [*] notice-err file /var/log/tor.
32709     - Add a couple of extra warnings to --enable-gcc-warnings for GCC 4.3,
32710       and stop using a warning that had become unfixably verbose under
32711       GCC 4.3.
32712     - New --hush command-line option similar to --quiet. While --quiet
32713       disables all logging to the console on startup, --hush limits the
32714       output to messages of warning and error severity.
32715     - Servers support a new URL scheme for consensus downloads that
32716       allows the client to specify which authorities are trusted.
32717       The server then only sends the consensus if the client will trust
32718       it. Otherwise a 404 error is sent back. Clients use this
32719       new scheme when the server supports it (meaning it's running
32720       0.2.1.1-alpha or later). Implements proposal 134.
32721     - New configure/torrc options (--enable-geoip-stats,
32722       DirRecordUsageByCountry) to record how many IPs we've served
32723       directory info to in each country code, how many status documents
32724       total we've sent to each country code, and what share of the total
32725       directory requests we should expect to see.
32726     - Use the TLS1 hostname extension to more closely resemble browser
32727       behavior.
32728     - Lots of new unit tests.
32729     - Add a macro to implement the common pattern of iterating through
32730       two parallel lists in lockstep.
32733 Changes in version 0.2.0.28-rc - 2008-06-13
32734   Tor 0.2.0.28-rc fixes an anonymity-related bug, fixes a hidden-service
32735   performance bug, and fixes a bunch of smaller bugs.
32737   o Anonymity fixes:
32738     - Fix a bug where, when we were choosing the 'end stream reason' to
32739       put in our relay end cell that we send to the exit relay, Tor
32740       clients on Windows were sometimes sending the wrong 'reason'. The
32741       anonymity problem is that exit relays may be able to guess whether
32742       the client is running Windows, thus helping partition the anonymity
32743       set. Down the road we should stop sending reasons to exit relays,
32744       or otherwise prevent future versions of this bug.
32746   o Major bugfixes:
32747     - While setting up a hidden service, some valid introduction circuits
32748       were overlooked and abandoned. This might be the reason for
32749       the long delay in making a hidden service available. Bugfix on
32750       0.2.0.14-alpha.
32752   o Minor features:
32753     - Update to the "June 9 2008" ip-to-country file.
32754     - Run 'make test' as part of 'make dist', so we stop releasing so
32755       many development snapshots that fail their unit tests.
32757   o Minor bugfixes:
32758     - When we're checking if we have enough dir info for each relay
32759       to begin establishing circuits, make sure that we actually have
32760       the descriptor listed in the consensus, not just any descriptor.
32761       Bugfix on 0.1.2.x.
32762     - Bridge relays no longer print "xx=0" in their extrainfo document
32763       for every single country code in the geoip db. Bugfix on
32764       0.2.0.27-rc.
32765     - Only warn when we fail to load the geoip file if we were planning to
32766       include geoip stats in our extrainfo document. Bugfix on 0.2.0.27-rc.
32767     - If we change our MaxAdvertisedBandwidth and then reload torrc,
32768       Tor won't realize it should publish a new relay descriptor. Fixes
32769       bug 688, reported by mfr. Bugfix on 0.1.2.x.
32770     - When we haven't had any application requests lately, don't bother
32771       logging that we have expired a bunch of descriptors. Bugfix
32772       on 0.1.2.x.
32773     - Make relay cells written on a connection count as non-padding when
32774       tracking how long a connection has been in use. Bugfix on
32775       0.2.0.1-alpha. Spotted by lodger.
32776     - Fix unit tests in 0.2.0.27-rc.
32777     - Fix compile on Windows.
32780 Changes in version 0.2.0.27-rc - 2008-06-03
32781   Tor 0.2.0.27-rc adds a few features we left out of the earlier
32782   release candidates. In particular, we now include an IP-to-country
32783   GeoIP database, so controllers can easily look up what country a
32784   given relay is in, and so bridge relays can give us some sanitized
32785   summaries about which countries are making use of bridges. (See proposal
32786   126-geoip-fetching.txt for details.)
32788   o Major features:
32789     - Include an IP-to-country GeoIP file in the tarball, so bridge
32790       relays can report sanitized summaries of the usage they're seeing.
32792   o Minor features:
32793     - Add a "PURPOSE=" argument to "STREAM NEW" events, as suggested by
32794       Robert Hogan. Fixes the first part of bug 681.
32795     - Make bridge authorities never serve extrainfo docs.
32796     - Add support to detect Libevent versions in the 1.4.x series
32797       on mingw.
32798     - Fix build on gcc 4.3 with --enable-gcc-warnings set.
32799     - Include a new contrib/tor-exit-notice.html file that exit relay
32800       operators can put on their website to help reduce abuse queries.
32802   o Minor bugfixes:
32803     - When tunneling an encrypted directory connection, and its first
32804       circuit fails, do not leave it unattached and ask the controller
32805       to deal. Fixes the second part of bug 681.
32806     - Make bridge authorities correctly expire old extrainfo documents
32807       from time to time.
32810 Changes in version 0.2.0.26-rc - 2008-05-13
32811   Tor 0.2.0.26-rc fixes a major security vulnerability caused by a bug
32812   in Debian's OpenSSL packages. All users running any 0.2.0.x version
32813   should upgrade, whether they're running Debian or not.
32815   o Major security fixes:
32816     - Use new V3 directory authority keys on the tor26, gabelmoo, and
32817       moria1 V3 directory authorities. The old keys were generated with
32818       a vulnerable version of Debian's OpenSSL package, and must be
32819       considered compromised. Other authorities' keys were not generated
32820       with an affected version of OpenSSL.
32822   o Major bugfixes:
32823     - List authority signatures as "unrecognized" based on DirServer
32824       lines, not on cert cache. Bugfix on 0.2.0.x.
32826   o Minor features:
32827     - Add a new V3AuthUseLegacyKey option to make it easier for
32828       authorities to change their identity keys if they have to.
32831 Changes in version 0.2.0.25-rc - 2008-04-23
32832   Tor 0.2.0.25-rc makes Tor work again on OS X and certain BSDs.
32834   o Major bugfixes:
32835     - Remember to initialize threading before initializing logging.
32836       Otherwise, many BSD-family implementations will crash hard on
32837       startup. Fixes bug 671. Bugfix on 0.2.0.24-rc.
32839   o Minor bugfixes:
32840     - Authorities correctly free policies on bad servers on
32841       exit. Fixes bug 672. Bugfix on 0.2.0.x.
32844 Changes in version 0.2.0.24-rc - 2008-04-22
32845   Tor 0.2.0.24-rc adds dizum (run by Alex de Joode) as the new sixth
32846   v3 directory authority, makes relays with dynamic IP addresses and no
32847   DirPort notice more quickly when their IP address changes, fixes a few
32848   rare crashes and memory leaks, and fixes a few other miscellaneous bugs.
32850   o New directory authorities:
32851     - Take lefkada out of the list of v3 directory authorities, since
32852       it has been down for months.
32853     - Set up dizum (run by Alex de Joode) as the new sixth v3 directory
32854       authority.
32856   o Major bugfixes:
32857     - Detect address changes more quickly on non-directory mirror
32858       relays. Bugfix on 0.2.0.18-alpha; fixes bug 652.
32860   o Minor features (security):
32861     - Reject requests for reverse-dns lookup of names that are in
32862       a private address space. Patch from lodger.
32863     - Non-exit relays no longer allow DNS requests. Fixes bug 619. Patch
32864       from lodger.
32866   o Minor bugfixes (crashes):
32867     - Avoid a rare assert that can trigger when Tor doesn't have much
32868       directory information yet and it tries to fetch a v2 hidden
32869       service descriptor. Fixes bug 651, reported by nwf.
32870     - Initialize log mutex before initializing dmalloc. Otherwise,
32871       running with dmalloc would crash. Bugfix on 0.2.0.x-alpha.
32872     - Use recursive pthread mutexes in order to avoid deadlock when
32873       logging debug-level messages to a controller. Bug spotted by nwf,
32874       bugfix on 0.2.0.16-alpha.
32876   o Minor bugfixes (resource management):
32877     - Keep address policies from leaking memory: start their refcount
32878       at 1, not 2. Bugfix on 0.2.0.16-alpha.
32879     - Free authority certificates on exit, so they don't look like memory
32880       leaks. Bugfix on 0.2.0.19-alpha.
32881     - Free static hashtables for policy maps and for TLS connections on
32882       shutdown, so they don't look like memory leaks. Bugfix on 0.2.0.x.
32883     - Avoid allocating extra space when computing consensuses on 64-bit
32884       platforms. Bug spotted by aakova.
32886   o Minor bugfixes (misc):
32887     - Do not read the configuration file when we've only been told to
32888       generate a password hash. Fixes bug 643. Bugfix on 0.0.9pre5. Fix
32889       based on patch from Sebastian Hahn.
32890     - Exit relays that are used as a client can now reach themselves
32891       using the .exit notation, rather than just launching an infinite
32892       pile of circuits. Fixes bug 641. Reported by Sebastian Hahn.
32893     - When attempting to open a logfile fails, tell us why.
32894     - Fix a dumb bug that was preventing us from knowing that we should
32895       preemptively build circuits to handle expected directory requests.
32896       Fixes bug 660. Bugfix on 0.1.2.x.
32897     - Warn less verbosely about clock skew from netinfo cells from
32898       untrusted sources. Fixes bug 663.
32899     - Make controller stream events for DNS requests more consistent,
32900       by adding "new stream" events for DNS requests, and removing
32901       spurious "stream closed" events" for cached reverse resolves.
32902       Patch from mwenge. Fixes bug 646.
32903     - Correctly notify one-hop connections when a circuit build has
32904       failed. Possible fix for bug 669. Found by lodger.
32907 Changes in version 0.2.0.23-rc - 2008-03-24
32908   Tor 0.2.0.23-rc is the fourth release candidate for the 0.2.0 series. It
32909   makes bootstrapping faster if the first directory mirror you contact
32910   is down. The bundles also include the new Vidalia 0.1.2 release.
32912   o Major bugfixes:
32913     - When a tunneled directory request is made to a directory server
32914       that's down, notice after 30 seconds rather than 120 seconds. Also,
32915       fail any begindir streams that are pending on it, so they can
32916       retry elsewhere. This was causing multi-minute delays on bootstrap.
32919 Changes in version 0.2.0.22-rc - 2008-03-18
32920   Tor 0.2.0.22-rc is the third release candidate for the 0.2.0 series. It
32921   enables encrypted directory connections by default for non-relays, fixes
32922   some broken TLS behavior we added in 0.2.0.20-rc, and resolves many
32923   other bugs. The bundles also include Vidalia 0.1.1 and Torbutton 1.1.17.
32925   o Major features:
32926     - Enable encrypted directory connections by default for non-relays,
32927       so censor tools that block Tor directory connections based on their
32928       plaintext patterns will no longer work. This means Tor works in
32929       certain censored countries by default again.
32931   o Major bugfixes:
32932     - Make sure servers always request certificates from clients during
32933       TLS renegotiation. Reported by lodger; bugfix on 0.2.0.20-rc.
32934     - Do not enter a CPU-eating loop when a connection is closed in
32935       the middle of client-side TLS renegotiation. Fixes bug 622. Bug
32936       diagnosed by lodger; bugfix on 0.2.0.20-rc.
32937     - Fix assertion failure that could occur when a blocked circuit
32938       became unblocked, and it had pending client DNS requests. Bugfix
32939       on 0.2.0.1-alpha. Fixes bug 632.
32941   o Minor bugfixes (on 0.1.2.x):
32942     - Generate "STATUS_SERVER" events rather than misspelled
32943       "STATUS_SEVER" events. Caught by mwenge.
32944     - When counting the number of bytes written on a TLS connection,
32945       look at the BIO actually used for writing to the network, not
32946       at the BIO used (sometimes) to buffer data for the network.
32947       Looking at different BIOs could result in write counts on the
32948       order of ULONG_MAX. Fixes bug 614.
32949     - On Windows, correctly detect errors when listing the contents of
32950       a directory. Fix from lodger.
32952   o Minor bugfixes (on 0.2.0.x):
32953     - Downgrade "sslv3 alert handshake failure" message to INFO.
32954     - If we set RelayBandwidthRate and RelayBandwidthBurst very high but
32955       left BandwidthRate and BandwidthBurst at the default, we would be
32956       silently limited by those defaults. Now raise them to match the
32957       RelayBandwidth* values.
32958     - Fix the SVK version detection logic to work correctly on a branch.
32959     - Make --enable-openbsd-malloc work correctly on Linux with alpha
32960       CPUs. Fixes bug 625.
32961     - Logging functions now check that the passed severity is sane.
32962     - Use proper log levels in the testsuite call of
32963       get_interface_address6().
32964     - When using a nonstandard malloc, do not use the platform values for
32965       HAVE_MALLOC_GOOD_SIZE or HAVE_MALLOC_USABLE_SIZE.
32966     - Make the openbsd malloc code use 8k pages on alpha CPUs and
32967       16k pages on ia64.
32968     - Detect mismatched page sizes when using --enable-openbsd-malloc.
32969     - Avoid double-marked-for-close warning when certain kinds of invalid
32970       .in-addr.arpa addresses are passed to the DNSPort. Part of a fix
32971       for bug 617. Bugfix on 0.2.0.1-alpha.
32972     - Make sure that the "NULL-means-reject *:*" convention is followed by
32973       all the policy manipulation functions, avoiding some possible crash
32974       bugs. Bug found by lodger. Bugfix on 0.2.0.16-alpha.
32975     - Fix the implementation of ClientDNSRejectInternalAddresses so that it
32976       actually works, and doesn't warn about every single reverse lookup.
32977       Fixes the other part of bug 617. Bugfix on 0.2.0.1-alpha.
32979   o Minor features:
32980     - Only log guard node status when guard node status has changed.
32981     - Downgrade the 3 most common "INFO" messages to "DEBUG". This will
32982       make "INFO" 75% less verbose.
32985 Changes in version 0.2.0.21-rc - 2008-03-02
32986   Tor 0.2.0.21-rc is the second release candidate for the 0.2.0 series. It
32987   makes Tor work well with Vidalia again, fixes a rare assert bug,
32988   and fixes a pair of more minor bugs. The bundles also include Vidalia
32989   0.1.0 and Torbutton 1.1.16.
32991   o Major bugfixes:
32992     - The control port should declare that it requires password auth
32993       when HashedControlSessionPassword is set too. Patch from Matt Edman;
32994       bugfix on 0.2.0.20-rc. Fixes bug 615.
32995     - Downgrade assert in connection_buckets_decrement() to a log message.
32996       This may help us solve bug 614, and in any case will make its
32997       symptoms less severe. Bugfix on 0.2.0.20-rc. Reported by fredzupy.
32998     - We were sometimes miscounting the number of bytes read from the
32999       network, causing our rate limiting to not be followed exactly.
33000       Bugfix on 0.2.0.16-alpha. Reported by lodger.
33002   o Minor bugfixes:
33003     - Fix compilation with OpenSSL 0.9.8 and 0.9.8a. All other supported
33004       OpenSSL versions should have been working fine. Diagnosis and patch
33005       from lodger, Karsten Loesing, and Sebastian Hahn. Fixes bug 616.
33006       Bugfix on 0.2.0.20-rc.
33009 Changes in version 0.2.0.20-rc - 2008-02-24
33010   Tor 0.2.0.20-rc is the first release candidate for the 0.2.0 series. It
33011   makes more progress towards normalizing Tor's TLS handshake, makes
33012   hidden services work better again, helps relays bootstrap if they don't
33013   know their IP address, adds optional support for linking in openbsd's
33014   allocator or tcmalloc, allows really fast relays to scale past 15000
33015   sockets, and fixes a bunch of minor bugs reported by Veracode.
33017   o Major features:
33018     - Enable the revised TLS handshake based on the one designed by
33019       Steven Murdoch in proposal 124, as revised in proposal 130. It
33020       includes version negotiation for OR connections as described in
33021       proposal 105. The new handshake is meant to be harder for censors
33022       to fingerprint, and it adds the ability to detect certain kinds of
33023       man-in-the-middle traffic analysis attacks. The version negotiation
33024       feature will allow us to improve Tor's link protocol more safely
33025       in the future.
33026     - Choose which bridge to use proportional to its advertised bandwidth,
33027       rather than uniformly at random. This should speed up Tor for
33028       bridge users. Also do this for people who set StrictEntryNodes.
33029     - When a TrackHostExits-chosen exit fails too many times in a row,
33030       stop using it. Bugfix on 0.1.2.x; fixes bug 437.
33032   o Major bugfixes:
33033     - Resolved problems with (re-)fetching hidden service descriptors.
33034       Patch from Karsten Loesing; fixes problems with 0.2.0.18-alpha
33035       and 0.2.0.19-alpha.
33036     - If we only ever used Tor for hidden service lookups or posts, we
33037       would stop building circuits and start refusing connections after
33038       24 hours, since we falsely believed that Tor was dormant. Reported
33039       by nwf; bugfix on 0.1.2.x.
33040     - Servers that don't know their own IP address should go to the
33041       authorities for their first directory fetch, even if their DirPort
33042       is off or if they don't know they're reachable yet. This will help
33043       them bootstrap better. Bugfix on 0.2.0.18-alpha; fixes bug 609.
33044     - When counting the number of open sockets, count not only the number
33045       of sockets we have received from the socket() call, but also
33046       the number we've gotten from accept() and socketpair(). This bug
33047       made us fail to count all sockets that we were using for incoming
33048       connections. Bugfix on 0.2.0.x.
33049     - Fix code used to find strings within buffers, when those strings
33050       are not in the first chunk of the buffer. Bugfix on 0.2.0.x.
33051     - Fix potential segfault when parsing HTTP headers. Bugfix on 0.2.0.x.
33052     - Add a new __HashedControlSessionPassword option for controllers
33053       to use for one-off session password hashes that shouldn't get
33054       saved to disk by SAVECONF --- Vidalia users were accumulating a
33055       pile of HashedControlPassword lines in their torrc files, one for
33056       each time they had restarted Tor and then clicked Save. Make Tor
33057       automatically convert "HashedControlPassword" to this new option but
33058       only when it's given on the command line. Partial fix for bug 586.
33060   o Minor features (performance):
33061     - Tune parameters for cell pool allocation to minimize amount of
33062       RAM overhead used.
33063     - Add OpenBSD malloc code from phk as an optional malloc
33064       replacement on Linux: some glibc libraries do very poorly
33065       with Tor's memory allocation patterns. Pass
33066       --enable-openbsd-malloc to get the replacement malloc code.
33067     - Add a --with-tcmalloc option to the configure script to link
33068       against tcmalloc (if present). Does not yet search for
33069       non-system include paths.
33070     - Stop imposing an arbitrary maximum on the number of file descriptors
33071       used for busy servers. Bug reported by Olaf Selke; patch from
33072       Sebastian Hahn.
33074   o Minor features (other):
33075     - When SafeLogging is disabled, log addresses along with all TLS
33076       errors.
33077     - When building with --enable-gcc-warnings, check for whether Apple's
33078       warning "-Wshorten-64-to-32" is available.
33079     - Add a --passphrase-fd argument to the tor-gencert command for
33080       scriptability.
33082   o Minor bugfixes (memory leaks and code problems):
33083     - We were leaking a file descriptor if Tor started with a zero-length
33084       cached-descriptors file. Patch by freddy77; bugfix on 0.1.2.
33085     - Detect size overflow in zlib code. Reported by Justin Ferguson and
33086       Dan Kaminsky.
33087     - We were comparing the raw BridgePassword entry with a base64'ed
33088       version of it, when handling a "/tor/networkstatus-bridges"
33089       directory request. Now compare correctly. Noticed by Veracode.
33090     - Recover from bad tracked-since value in MTBF-history file.
33091       Should fix bug 537.
33092     - Alter the code that tries to recover from unhandled write
33093       errors, to not try to flush onto a socket that's given us
33094       unhandled errors. Bugfix on 0.1.2.x.
33095     - Make Unix controlsockets work correctly on OpenBSD. Patch from
33096       tup. Bugfix on 0.2.0.3-alpha.
33098   o Minor bugfixes (other):
33099     - If we have an extra-info document for our server, always make
33100       it available on the control port, even if we haven't gotten
33101       a copy of it from an authority yet. Patch from mwenge.
33102     - Log the correct memory chunk sizes for empty RAM chunks in mempool.c.
33103     - Directory mirrors no longer include a guess at the client's IP
33104       address if the connection appears to be coming from the same /24
33105       network; it was producing too many wrong guesses.
33106     - Make the new hidden service code respect the SafeLogging setting.
33107       Bugfix on 0.2.0.x. Patch from Karsten.
33108     - When starting as an authority, do not overwrite all certificates
33109       cached from other authorities. Bugfix on 0.2.0.x. Fixes bug 606.
33110     - If we're trying to flush the last bytes on a connection (for
33111       example, when answering a directory request), reset the
33112       time-to-give-up timeout every time we manage to write something
33113       on the socket. Bugfix on 0.1.2.x.
33114     - Change the behavior of "getinfo status/good-server-descriptor"
33115       so it doesn't return failure when any authority disappears.
33116     - Even though the man page said that "TrackHostExits ." should
33117       work, nobody had ever implemented it. Bugfix on 0.1.0.x.
33118     - Report TLS "zero return" case as a "clean close" and "IO error"
33119       as a "close". Stop calling closes "unexpected closes": existing
33120       Tors don't use SSL_close(), so having a connection close without
33121       the TLS shutdown handshake is hardly unexpected.
33122     - Send NAMESERVER_STATUS messages for a single failed nameserver
33123       correctly.
33125   o Code simplifications and refactoring:
33126     - Remove the tor_strpartition function: its logic was confused,
33127       and it was only used for one thing that could be implemented far
33128       more easily.
33131 Changes in version 0.2.0.19-alpha - 2008-02-09
33132   Tor 0.2.0.19-alpha makes more progress towards normalizing Tor's TLS
33133   handshake, makes path selection for relays more secure and IP address
33134   guessing more robust, and generally fixes a lot of bugs in preparation
33135   for calling the 0.2.0 branch stable.
33137   o Major features:
33138     - Do not include recognizeable strings in the commonname part of
33139       Tor's x509 certificates.
33141   o Major bugfixes:
33142     - If we're a relay, avoid picking ourselves as an introduction point,
33143       a rendezvous point, or as the final hop for internal circuits. Bug
33144       reported by taranis and lodger. Bugfix on 0.1.2.x.
33145     - Patch from "Andrew S. Lists" to catch when we contact a directory
33146       mirror at IP address X and he says we look like we're coming from
33147       IP address X. Bugfix on 0.1.2.x.
33149   o Minor features (security):
33150     - Be more paranoid about overwriting sensitive memory on free(),
33151       as a defensive programming tactic to ensure forward secrecy.
33153   o Minor features (directory authority):
33154     - Actually validate the options passed to AuthDirReject,
33155       AuthDirInvalid, AuthDirBadDir, and AuthDirBadExit.
33156     - Reject router descriptors with out-of-range bandwidthcapacity or
33157       bandwidthburst values.
33159   o Minor features (controller):
33160     - Reject controller commands over 1MB in length. This keeps rogue
33161       processes from running us out of memory.
33163   o Minor features (misc):
33164     - Give more descriptive well-formedness errors for out-of-range
33165       hidden service descriptor/protocol versions.
33166     - Make memory debugging information describe more about history
33167       of cell allocation, so we can help reduce our memory use.
33169   o Deprecated features (controller):
33170     - The status/version/num-versioning and status/version/num-concurring
33171       GETINFO options are no longer useful in the v3 directory protocol:
33172       treat them as deprecated, and warn when they're used.
33174   o Minor bugfixes:
33175     - When our consensus networkstatus has been expired for a while, stop
33176       being willing to build circuits using it. Fixes bug 401. Bugfix
33177       on 0.1.2.x.
33178     - Directory caches now fetch certificates from all authorities
33179       listed in a networkstatus consensus, even when they do not
33180       recognize them. Fixes bug 571. Bugfix on 0.2.0.x.
33181     - When connecting to a bridge without specifying its key, insert
33182       the connection into the identity-to-connection map as soon as
33183       a key is learned. Fixes bug 574. Bugfix on 0.2.0.x.
33184     - Detect versions of OS X where malloc_good_size() is present in the
33185       library but never actually declared. Resolves bug 587. Bugfix
33186       on 0.2.0.x.
33187     - Stop incorrectly truncating zlib responses to directory authority
33188       signature download requests. Fixes bug 593. Bugfix on 0.2.0.x.
33189     - Stop recommending that every server operator send mail to tor-ops.
33190       Resolves bug 597. Bugfix on 0.1.2.x.
33191     - Don't trigger an assert if we start a directory authority with a
33192       private IP address (like 127.0.0.1).
33193     - Avoid possible failures when generating a directory with routers
33194       with over-long versions strings, or too many flags set. Bugfix
33195       on 0.1.2.x.
33196     - If an attempt to launch a DNS resolve request over the control
33197       port fails because we have overrun the limit on the number of
33198       connections, tell the controller that the request has failed.
33199     - Avoid using too little bandwidth when our clock skips a few
33200       seconds. Bugfix on 0.1.2.x.
33201     - Fix shell error when warning about missing packages in configure
33202       script, on Fedora or Red Hat machines. Bugfix on 0.2.0.x.
33203     - Do not become confused when receiving a spurious VERSIONS-like
33204       cell from a confused v1 client. Bugfix on 0.2.0.x.
33205     - Re-fetch v2 (as well as v0) rendezvous descriptors when all
33206       introduction points for a hidden service have failed. Patch from
33207       Karsten Loesing. Bugfix on 0.2.0.x.
33209   o Code simplifications and refactoring:
33210     - Remove some needless generality from cpuworker code, for improved
33211       type-safety.
33212     - Stop overloading the circuit_t.onionskin field for both "onionskin
33213       from a CREATE cell that we are waiting for a cpuworker to be
33214       assigned" and "onionskin from an EXTEND cell that we are going to
33215       send to an OR as soon as we are connected". Might help with bug 600.
33216     - Add an in-place version of aes_crypt() so that we can avoid doing a
33217       needless memcpy() call on each cell payload.
33220 Changes in version 0.2.0.18-alpha - 2008-01-25
33221   Tor 0.2.0.18-alpha adds a sixth v3 directory authority run by CCC,
33222   fixes a big memory leak in 0.2.0.17-alpha, and adds new config options
33223   that can warn or reject connections to ports generally associated with
33224   vulnerable-plaintext protocols.
33226   o New directory authorities:
33227     - Set up dannenberg (run by CCC) as the sixth v3 directory
33228       authority.
33230   o Major bugfixes:
33231     - Fix a major memory leak when attempting to use the v2 TLS
33232       handshake code. Bugfix on 0.2.0.x; fixes bug 589.
33233     - We accidentally enabled the under-development v2 TLS handshake
33234       code, which was causing log entries like "TLS error while
33235       renegotiating handshake". Disable it again. Resolves bug 590.
33236     - We were computing the wrong Content-Length: header for directory
33237       responses that need to be compressed on the fly, causing clients
33238       asking for those items to always fail. Bugfix on 0.2.0.x; partially
33239       fixes bug 593.
33241   o Major features:
33242     - Avoid going directly to the directory authorities even if you're a
33243       relay, if you haven't found yourself reachable yet or if you've
33244       decided not to advertise your dirport yet. Addresses bug 556.
33245     - If we've gone 12 hours since our last bandwidth check, and we
33246       estimate we have less than 50KB bandwidth capacity but we could
33247       handle more, do another bandwidth test.
33248     - New config options WarnPlaintextPorts and RejectPlaintextPorts so
33249       Tor can warn and/or refuse connections to ports commonly used with
33250       vulnerable-plaintext protocols. Currently we warn on ports 23,
33251       109, 110, and 143, but we don't reject any.
33253   o Minor bugfixes:
33254     - When we setconf ClientOnly to 1, close any current OR and Dir
33255       listeners. Reported by mwenge.
33256     - When we get a consensus that's been signed by more people than
33257       we expect, don't log about it; it's not a big deal. Reported
33258       by Kyle Williams.
33260   o Minor features:
33261     - Don't answer "/tor/networkstatus-bridges" directory requests if
33262       the request isn't encrypted.
33263     - Make "ClientOnly 1" config option disable directory ports too.
33264     - Patches from Karsten Loesing to make v2 hidden services more
33265       robust: work even when there aren't enough HSDir relays available;
33266       retry when a v2 rend desc fetch fails; but don't retry if we
33267       already have a usable v0 rend desc.
33270 Changes in version 0.2.0.17-alpha - 2008-01-17
33271   Tor 0.2.0.17-alpha makes the tarball build cleanly again (whoops).
33273   o Compile fixes:
33274     - Make the tor-gencert man page get included correctly in the tarball.
33277 Changes in version 0.2.0.16-alpha - 2008-01-17
33278   Tor 0.2.0.16-alpha adds a fifth v3 directory authority run by Karsten
33279   Loesing, and generally cleans up a lot of features and minor bugs.
33281   o New directory authorities:
33282     - Set up gabelmoo (run by Karsten Loesing) as the fifth v3 directory
33283       authority.
33285   o Major performance improvements:
33286     - Switch our old ring buffer implementation for one more like that
33287       used by free Unix kernels. The wasted space in a buffer with 1mb
33288       of data will now be more like 8k than 1mb. The new implementation
33289       also avoids realloc();realloc(); patterns that can contribute to
33290       memory fragmentation.
33292   o Minor features:
33293     - Configuration files now accept C-style strings as values. This
33294       helps encode characters not allowed in the current configuration
33295       file format, such as newline or #. Addresses bug 557.
33296     - Although we fixed bug 539 (where servers would send HTTP status 503
33297       responses _and_ send a body too), there are still servers out
33298       there that haven't upgraded. Therefore, make clients parse such
33299       bodies when they receive them.
33300     - When we're not serving v2 directory information, there is no reason
33301       to actually keep any around. Remove the obsolete files and directory
33302       on startup if they are very old and we aren't going to serve them.
33304   o Minor performance improvements:
33305     - Reference-count and share copies of address policy entries; only 5%
33306       of them were actually distinct.
33307     - Never walk through the list of logs if we know that no log is
33308       interested in a given message.
33310   o Minor bugfixes:
33311     - When an authority has not signed a consensus, do not try to
33312       download a nonexistent "certificate with key 00000000". Bugfix
33313       on 0.2.0.x. Fixes bug 569.
33314     - Fix a rare assert error when we're closing one of our threads:
33315       use a mutex to protect the list of logs, so we never write to the
33316       list as it's being freed. Bugfix on 0.1.2.x. Fixes the very rare
33317       bug 575, which is kind of the revenge of bug 222.
33318     - Patch from Karsten Loesing to complain less at both the client
33319       and the relay when a relay used to have the HSDir flag but doesn't
33320       anymore, and we try to upload a hidden service descriptor.
33321     - Stop leaking one cert per TLS context. Fixes bug 582. Bugfix on
33322       0.2.0.15-alpha.
33323     - Do not try to download missing certificates until we have tried
33324       to check our fallback consensus. Fixes bug 583.
33325     - Make bridges round reported GeoIP stats info up to the nearest
33326       estimate, not down. Now we can distinguish between "0 people from
33327       this country" and "1 person from this country".
33328     - Avoid a spurious free on base64 failure. Bugfix on 0.1.2.
33329     - Avoid possible segfault if key generation fails in
33330       crypto_pk_hybrid_encrypt. Bugfix on 0.2.0.
33331     - Avoid segfault in the case where a badly behaved v2 versioning
33332       directory sends a signed networkstatus with missing client-versions.
33333       Bugfix on 0.1.2.
33334     - Avoid segfaults on certain complex invocations of
33335       router_get_by_hexdigest(). Bugfix on 0.1.2.
33336     - Correct bad index on array access in parse_http_time(). Bugfix
33337       on 0.2.0.
33338     - Fix possible bug in vote generation when server versions are present
33339       but client versions are not.
33340     - Fix rare bug on REDIRECTSTREAM control command when called with no
33341       port set: it could erroneously report an error when none had
33342       happened.
33343     - Avoid bogus crash-prone, leak-prone tor_realloc when we're
33344       compressing large objects and find ourselves with more than 4k
33345       left over. Bugfix on 0.2.0.
33346     - Fix a small memory leak when setting up a hidden service.
33347     - Fix a few memory leaks that could in theory happen under bizarre
33348       error conditions.
33349     - Fix an assert if we post a general-purpose descriptor via the
33350       control port but that descriptor isn't mentioned in our current
33351       network consensus. Bug reported by Jon McLachlan; bugfix on
33352       0.2.0.9-alpha.
33354   o Minor features (controller):
33355     - Get NS events working again. Patch from tup.
33356     - The GETCONF command now escapes and quotes configuration values
33357       that don't otherwise fit into the torrc file.
33358     - The SETCONF command now handles quoted values correctly.
33360   o Minor features (directory authorities):
33361     - New configuration options to override default maximum number of
33362       servers allowed on a single IP address. This is important for
33363       running a test network on a single host.
33364     - Actually implement the -s option to tor-gencert.
33365     - Add a manual page for tor-gencert.
33367   o Minor features (bridges):
33368     - Bridge authorities no longer serve bridge descriptors over
33369       unencrypted connections.
33371   o Minor features (other):
33372     - Add hidden services and DNSPorts to the list of things that make
33373       Tor accept that it has running ports. Change starting Tor with no
33374       ports from a fatal error to a warning; we might change it back if
33375       this turns out to confuse anybody. Fixes bug 579.
33378 Changes in version 0.1.2.19 - 2008-01-17
33379   Tor 0.1.2.19 fixes a huge memory leak on exit relays, makes the default
33380   exit policy a little bit more conservative so it's safer to run an
33381   exit relay on a home system, and fixes a variety of smaller issues.
33383   o Security fixes:
33384     - Exit policies now reject connections that are addressed to a
33385       relay's public (external) IP address too, unless
33386       ExitPolicyRejectPrivate is turned off. We do this because too
33387       many relays are running nearby to services that trust them based
33388       on network address.
33390   o Major bugfixes:
33391     - When the clock jumps forward a lot, do not allow the bandwidth
33392       buckets to become negative. Fixes bug 544.
33393     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
33394       on every successful resolve. Reported by Mike Perry.
33395     - Purge old entries from the "rephist" database and the hidden
33396       service descriptor database even when DirPort is zero.
33397     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
33398       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
33399       crashing or mis-answering these requests.
33400     - When we decide to send a 503 response to a request for servers, do
33401       not then also send the server descriptors: this defeats the whole
33402       purpose. Fixes bug 539.
33404   o Minor bugfixes:
33405     - Changing the ExitPolicyRejectPrivate setting should cause us to
33406       rebuild our server descriptor.
33407     - Fix handling of hex nicknames when answering controller requests for
33408       networkstatus by name, or when deciding whether to warn about
33409       unknown routers in a config option. (Patch from mwenge.)
33410     - Fix a couple of hard-to-trigger autoconf problems that could result
33411       in really weird results on platforms whose sys/types.h files define
33412       nonstandard integer types.
33413     - Don't try to create the datadir when running --verify-config or
33414       --hash-password. Resolves bug 540.
33415     - If we were having problems getting a particular descriptor from the
33416       directory caches, and then we learned about a new descriptor for
33417       that router, we weren't resetting our failure count. Reported
33418       by lodger.
33419     - Although we fixed bug 539 (where servers would send HTTP status 503
33420       responses _and_ send a body too), there are still servers out there
33421       that haven't upgraded. Therefore, make clients parse such bodies
33422       when they receive them.
33423     - Run correctly on systems where rlim_t is larger than unsigned long.
33424       This includes some 64-bit systems.
33425     - Run correctly on platforms (like some versions of OS X 10.5) where
33426       the real limit for number of open files is OPEN_FILES, not rlim_max
33427       from getrlimit(RLIMIT_NOFILES).
33428     - Avoid a spurious free on base64 failure.
33429     - Avoid segfaults on certain complex invocations of
33430       router_get_by_hexdigest().
33431     - Fix rare bug on REDIRECTSTREAM control command when called with no
33432       port set: it could erroneously report an error when none had
33433       happened.
33436 Changes in version 0.2.0.15-alpha - 2007-12-25
33437   Tor 0.2.0.14-alpha and 0.2.0.15-alpha fix a bunch of bugs with the
33438   features added in 0.2.0.13-alpha.
33440   o Major bugfixes:
33441     - Fix several remotely triggerable asserts based on DirPort requests
33442       for a v2 or v3 networkstatus object before we were prepared. This
33443       was particularly bad for 0.2.0.13 and later bridge relays, who
33444       would never have a v2 networkstatus and would thus always crash
33445       when used. Bugfixes on 0.2.0.x.
33446     - Estimate the v3 networkstatus size more accurately, rather than
33447       estimating it at zero bytes and giving it artificially high priority
33448       compared to other directory requests. Bugfix on 0.2.0.x.
33450   o Minor bugfixes:
33451     - Fix configure.in logic for cross-compilation.
33452     - When we load a bridge descriptor from the cache, and it was
33453       previously unreachable, mark it as retriable so we won't just
33454       ignore it. Also, try fetching a new copy immediately. Bugfixes
33455       on 0.2.0.13-alpha.
33456     - The bridge GeoIP stats were counting other relays, for example
33457       self-reachability and authority-reachability tests.
33459   o Minor features:
33460     - Support compilation to target iPhone; patch from cjacker huang.
33461       To build for iPhone, pass the --enable-iphone option to configure.
33464 Changes in version 0.2.0.14-alpha - 2007-12-23
33465   o Major bugfixes:
33466     - Fix a crash on startup if you install Tor 0.2.0.13-alpha fresh
33467       without a datadirectory from a previous Tor install. Reported
33468       by Zax.
33469     - Fix a crash when we fetch a descriptor that turns out to be
33470       unexpected (it used to be in our networkstatus when we started
33471       fetching it, but it isn't in our current networkstatus), and we
33472       aren't using bridges. Bugfix on 0.2.0.x.
33473     - Fix a crash when accessing hidden services: it would work the first
33474       time you use a given introduction point for your service, but
33475       on subsequent requests we'd be using garbage memory. Fixed by
33476       Karsten Loesing. Bugfix on 0.2.0.13-alpha.
33477     - Fix a crash when we load a bridge descriptor from disk but we don't
33478       currently have a Bridge line for it in our torrc. Bugfix on
33479       0.2.0.13-alpha.
33481   o Major features:
33482     - If bridge authorities set BridgePassword, they will serve a
33483       snapshot of known bridge routerstatuses from their DirPort to
33484       anybody who knows that password. Unset by default.
33486   o Minor bugfixes:
33487     - Make the unit tests build again.
33488     - Make "GETINFO/desc-annotations/id/<OR digest>" actually work.
33489     - Make PublishServerDescriptor default to 1, so the default doesn't
33490       have to change as we invent new directory protocol versions.
33491     - Fix test for rlim_t on OSX 10.3: sys/resource.h doesn't want to
33492       be included unless sys/time.h is already included. Fixes
33493       bug 553. Bugfix on 0.2.0.x.
33494     - If we receive a general-purpose descriptor and then receive an
33495       identical bridge-purpose descriptor soon after, don't discard
33496       the next one as a duplicate.
33498   o Minor features:
33499     - If BridgeRelay is set to 1, then the default for
33500       PublishServerDescriptor is now "bridge" rather than "v2,v3".
33501     - If the user sets RelayBandwidthRate but doesn't set
33502       RelayBandwidthBurst, then make them equal rather than erroring out.
33505 Changes in version 0.2.0.13-alpha - 2007-12-21
33506   Tor 0.2.0.13-alpha adds a fourth v3 directory authority run by Geoff
33507   Goodell, fixes many more bugs, and adds a lot of infrastructure for
33508   upcoming features.
33510   o New directory authorities:
33511     - Set up lefkada (run by Geoff Goodell) as the fourth v3 directory
33512       authority.
33514   o Major bugfixes:
33515     - Only update guard status (usable / not usable) once we have
33516       enough directory information. This was causing us to always pick
33517       two new guards on startup (bugfix on 0.2.0.9-alpha), and it was
33518       causing us to discard all our guards on startup if we hadn't been
33519       running for a few weeks (bugfix on 0.1.2.x). Fixes bug 448.
33520     - Purge old entries from the "rephist" database and the hidden
33521       service descriptor databases even when DirPort is zero. Bugfix
33522       on 0.1.2.x.
33523     - We were ignoring our RelayBandwidthRate for the first 30 seconds
33524       after opening a circuit -- even a relayed circuit. Bugfix on
33525       0.2.0.3-alpha.
33526     - Stop thinking that 0.1.2.x directory servers can handle "begin_dir"
33527       requests. Should ease bugs 406 and 419 where 0.1.2.x relays are
33528       crashing or mis-answering these types of requests.
33529     - Relays were publishing their server descriptor to v1 and v2
33530       directory authorities, but they didn't try publishing to v3-only
33531       authorities. Fix this; and also stop publishing to v1 authorities.
33532       Bugfix on 0.2.0.x.
33533     - When we were reading router descriptors from cache, we were ignoring
33534       the annotations -- so for example we were reading in bridge-purpose
33535       descriptors as general-purpose descriptors. Bugfix on 0.2.0.8-alpha.
33536     - When we decided to send a 503 response to a request for servers, we
33537       were then also sending the server descriptors: this defeats the
33538       whole purpose. Fixes bug 539; bugfix on 0.1.2.x.
33540   o Major features:
33541     - Bridge relays now behave like clients with respect to time
33542       intervals for downloading new consensus documents -- otherwise they
33543       stand out. Bridge users now wait until the end of the interval,
33544       so their bridge relay will be sure to have a new consensus document.
33545     - Three new config options (AlternateDirAuthority,
33546       AlternateBridgeAuthority, and AlternateHSAuthority) that let the
33547       user selectively replace the default directory authorities by type,
33548       rather than the all-or-nothing replacement that DirServer offers.
33549     - Tor can now be configured to read a GeoIP file from disk in one
33550       of two formats. This can be used by controllers to map IP addresses
33551       to countries. Eventually, it may support exit-by-country.
33552     - When possible, bridge relays remember which countries users
33553       are coming from, and report aggregate information in their
33554       extra-info documents, so that the bridge authorities can learn
33555       where Tor is blocked.
33556     - Bridge directory authorities now do reachability testing on the
33557       bridges they know. They provide router status summaries to the
33558       controller via "getinfo ns/purpose/bridge", and also dump summaries
33559       to a file periodically.
33560     - Stop fetching directory info so aggressively if your DirPort is
33561       on but your ORPort is off; stop fetching v2 dir info entirely.
33562       You can override these choices with the new FetchDirInfoEarly
33563       config option.
33565   o Minor bugfixes:
33566     - The fix in 0.2.0.12-alpha cleared the "hsdir" flag in v3 network
33567       consensus documents when there are too many relays at a single
33568       IP address. Now clear it in v2 network status documents too, and
33569       also clear it in routerinfo_t when the relay is no longer listed
33570       in the relevant networkstatus document.
33571     - Don't crash if we get an unexpected value for the
33572       PublishServerDescriptor config option. Reported by Matt Edman;
33573       bugfix on 0.2.0.9-alpha.
33574     - Our new v2 hidden service descriptor format allows descriptors
33575       that have no introduction points. But Tor crashed when we tried
33576       to build a descriptor with no intro points (and it would have
33577       crashed if we had tried to parse one). Bugfix on 0.2.0.x; patch
33578       by Karsten Loesing.
33579     - Fix building with dmalloc 5.5.2 with glibc.
33580     - Reject uploaded descriptors and extrainfo documents if they're
33581       huge. Otherwise we'll cache them all over the network and it'll
33582       clog everything up. Reported by Aljosha Judmayer.
33583     - Check for presence of s6_addr16 and s6_addr32 fields in in6_addr
33584       via autoconf. Should fix compile on solaris. Bugfix on 0.2.0.x.
33585     - When the DANGEROUS_VERSION controller status event told us we're
33586       running an obsolete version, it used the string "OLD" to describe
33587       it. Yet the "getinfo" interface used the string "OBSOLETE". Now use
33588       "OBSOLETE" in both cases. Bugfix on 0.1.2.x.
33589     - If we can't expand our list of entry guards (e.g. because we're
33590       using bridges or we have StrictEntryNodes set), don't mark relays
33591       down when they fail a directory request. Otherwise we're too quick
33592       to mark all our entry points down. Bugfix on 0.1.2.x.
33593     - Fix handling of hex nicknames when answering controller requests for
33594       networkstatus by name, or when deciding whether to warn about unknown
33595       routers in a config option. Bugfix on 0.1.2.x. (Patch from mwenge.)
33596     - Fix a couple of hard-to-trigger autoconf problems that could result
33597       in really weird results on platforms whose sys/types.h files define
33598       nonstandard integer types. Bugfix on 0.1.2.x.
33599     - Fix compilation with --disable-threads set. Bugfix on 0.2.0.x.
33600     - Don't crash on name lookup when we have no current consensus. Fixes
33601       bug 538; bugfix on 0.2.0.x.
33602     - Only Tors that want to mirror the v2 directory info should
33603       create the "cached-status" directory in their datadir. (All Tors
33604       used to create it.) Bugfix on 0.2.0.9-alpha.
33605     - Directory authorities should only automatically download Extra Info
33606       documents if they're v1, v2, or v3 authorities. Bugfix on 0.1.2.x.
33608   o Minor features:
33609     - On the USR1 signal, when dmalloc is in use, log the top 10 memory
33610       consumers. (We already do this on HUP.)
33611     - Authorities and caches fetch the v2 networkstatus documents
33612       less often, now that v3 is encouraged.
33613     - Add a new config option BridgeRelay that specifies you want to
33614       be a bridge relay. Right now the only difference is that it makes
33615       you answer begin_dir requests, and it makes you cache dir info,
33616       even if your DirPort isn't on.
33617     - Add "GETINFO/desc-annotations/id/<OR digest>" so controllers can
33618       ask about source, timestamp of arrival, purpose, etc. We need
33619       something like this to help Vidalia not do GeoIP lookups on bridge
33620       addresses.
33621     - Allow multiple HashedControlPassword config lines, to support
33622       multiple controller passwords.
33623     - Authorities now decide whether they're authoritative for a given
33624       router based on the router's purpose.
33625     - New config options AuthDirBadDir and AuthDirListBadDirs for
33626       authorities to mark certain relays as "bad directories" in the
33627       networkstatus documents. Also supports the "!baddir" directive in
33628       the approved-routers file.
33631 Changes in version 0.2.0.12-alpha - 2007-11-16
33632   This twelfth development snapshot fixes some more build problems as
33633   well as a few minor bugs.
33635   o Compile fixes:
33636     - Make it build on OpenBSD again. Patch from tup.
33637     - Substitute BINDIR and LOCALSTATEDIR in scripts. Fixes
33638       package-building for Red Hat, OS X, etc.
33640   o Minor bugfixes (on 0.1.2.x):
33641     - Changing the ExitPolicyRejectPrivate setting should cause us to
33642       rebuild our server descriptor.
33644   o Minor bugfixes (on 0.2.0.x):
33645     - When we're lacking a consensus, don't try to perform rendezvous
33646       operations. Reported by Karsten Loesing.
33647     - Fix a small memory leak whenever we decide against using a
33648       newly picked entry guard. Reported by Mike Perry.
33649     - When authorities detected more than two relays running on the same
33650       IP address, they were clearing all the status flags but forgetting
33651       to clear the "hsdir" flag. So clients were being told that a
33652       given relay was the right choice for a v2 hsdir lookup, yet they
33653       never had its descriptor because it was marked as 'not running'
33654       in the consensus.
33655     - If we're trying to fetch a bridge descriptor and there's no way
33656       the bridge authority could help us (for example, we don't know
33657       a digest, or there is no bridge authority), don't be so eager to
33658       fall back to asking the bridge authority.
33659     - If we're using bridges or have strictentrynodes set, and our
33660       chosen exit is in the same family as all our bridges/entry guards,
33661       then be flexible about families.
33663   o Minor features:
33664     - When we negotiate a v2 link-layer connection (not yet implemented),
33665       accept RELAY_EARLY cells and turn them into RELAY cells if we've
33666       negotiated a v1 connection for their next step. Initial code for
33667       proposal 110.
33670 Changes in version 0.2.0.11-alpha - 2007-11-12
33671   This eleventh development snapshot fixes some build problems with
33672   the previous snapshot. It also includes a more secure-by-default exit
33673   policy for relays, fixes an enormous memory leak for exit relays, and
33674   fixes another bug where servers were falling out of the directory list.
33676   o Security fixes:
33677     - Exit policies now reject connections that are addressed to a
33678       relay's public (external) IP address too, unless
33679       ExitPolicyRejectPrivate is turned off. We do this because too
33680       many relays are running nearby to services that trust them based
33681       on network address. Bugfix on 0.1.2.x.
33683   o Major bugfixes:
33684     - Fix a memory leak on exit relays; we were leaking a cached_resolve_t
33685       on every successful resolve. Reported by Mike Perry; bugfix
33686       on 0.1.2.x.
33687     - On authorities, never downgrade to old router descriptors simply
33688       because they're listed in the consensus. This created a catch-22
33689       where we wouldn't list a new descriptor because there was an
33690       old one in the consensus, and we couldn't get the new one in the
33691       consensus because we wouldn't list it. Possible fix for bug 548.
33692       Also, this might cause bug 543 to appear on authorities; if so,
33693       we'll need a band-aid for that. Bugfix on 0.2.0.9-alpha.
33695   o Packaging fixes on 0.2.0.10-alpha:
33696     - We were including instructions about what to do with the
33697       src/config/fallback-consensus file, but we weren't actually
33698       including it in the tarball. Disable all of that for now.
33700   o Minor features:
33701     - Allow people to say PreferTunnelledDirConns rather than
33702       PreferTunneledDirConns, for those alternate-spellers out there.
33704   o Minor bugfixes:
33705     - Don't reevaluate all the information from our consensus document
33706       just because we've downloaded a v2 networkstatus that we intend
33707       to cache. Fixes bug 545; bugfix on 0.2.0.x.
33710 Changes in version 0.2.0.10-alpha - 2007-11-10
33711   This tenth development snapshot adds a third v3 directory authority
33712   run by Mike Perry, adds most of Karsten Loesing's new hidden service
33713   descriptor format, fixes a bad crash bug and new bridge bugs introduced
33714   in 0.2.0.9-alpha, fixes many bugs with the v3 directory implementation,
33715   fixes some minor memory leaks in previous 0.2.0.x snapshots, and
33716   addresses many more minor issues.
33718   o New directory authorities:
33719     - Set up ides (run by Mike Perry) as the third v3 directory authority.
33721   o Major features:
33722     - Allow tunnelled directory connections to ask for an encrypted
33723       "begin_dir" connection or an anonymized "uses a full Tor circuit"
33724       connection independently. Now we can make anonymized begin_dir
33725       connections for (e.g.) more secure hidden service posting and
33726       fetching.
33727     - More progress on proposal 114: code from Karsten Loesing to
33728       implement new hidden service descriptor format.
33729     - Raise the default BandwidthRate/BandwidthBurst to 5MB/10MB, to
33730       accommodate the growing number of servers that use the default
33731       and are reaching it.
33732     - Directory authorities use a new formula for selecting which nodes
33733       to advertise as Guards: they must be in the top 7/8 in terms of
33734       how long we have known about them, and above the median of those
33735       nodes in terms of weighted fractional uptime.
33736     - Make "not enough dir info yet" warnings describe *why* Tor feels
33737       it doesn't have enough directory info yet.
33739   o Major bugfixes:
33740     - Stop servers from crashing if they set a Family option (or
33741       maybe in other situations too). Bugfix on 0.2.0.9-alpha; reported
33742       by Fabian Keil.
33743     - Make bridge users work again -- the move to v3 directories in
33744       0.2.0.9-alpha had introduced a number of bugs that made bridges
33745       no longer work for clients.
33746     - When the clock jumps forward a lot, do not allow the bandwidth
33747       buckets to become negative. Bugfix on 0.1.2.x; fixes bug 544.
33749   o Major bugfixes (v3 dir, bugfixes on 0.2.0.9-alpha):
33750     - When the consensus lists a router descriptor that we previously were
33751       mirroring, but that we considered non-canonical, reload the
33752       descriptor as canonical. This fixes bug 543 where Tor servers
33753       would start complaining after a few days that they don't have
33754       enough directory information to build a circuit.
33755     - Consider replacing the current consensus when certificates arrive
33756       that make the pending consensus valid. Previously, we were only
33757       considering replacement when the new certs _didn't_ help.
33758     - Fix an assert error on startup if we didn't already have the
33759       consensus and certs cached in our datadirectory: we were caching
33760       the consensus in consensus_waiting_for_certs but then free'ing it
33761       right after.
33762     - Avoid sending a request for "keys/fp" (for which we'll get a 400 Bad
33763       Request) if we need more v3 certs but we've already got pending
33764       requests for all of them.
33765     - Correctly back off from failing certificate downloads. Fixes
33766       bug 546.
33767     - Authorities don't vote on the Running flag if they have been running
33768       for less than 30 minutes themselves. Fixes bug 547, where a newly
33769       started authority would vote that everyone was down.
33771   o New requirements:
33772     - Drop support for OpenSSL version 0.9.6. Just about nobody was using
33773       it, it had no AES, and it hasn't seen any security patches since
33774       2004.
33776   o Minor features:
33777     - Clients now hold circuitless TLS connections open for 1.5 times
33778       MaxCircuitDirtiness (15 minutes), since it is likely that they'll
33779       rebuild a new circuit over them within that timeframe. Previously,
33780       they held them open only for KeepalivePeriod (5 minutes).
33781     - Use "If-Modified-Since" to avoid retrieving consensus
33782       networkstatuses that we already have.
33783     - When we have no consensus, check FallbackNetworkstatusFile (defaults
33784       to $PREFIX/share/tor/fallback-consensus) for a consensus. This way
33785       we start knowing some directory caches.
33786     - When we receive a consensus from the future, warn about skew.
33787     - Improve skew reporting: try to give the user a better log message
33788       about how skewed they are, and how much this matters.
33789     - When we have a certificate for an authority, believe that
33790       certificate's claims about the authority's IP address.
33791     - New --quiet command-line option to suppress the default console log.
33792       Good in combination with --hash-password.
33793     - Authorities send back an X-Descriptor-Not-New header in response to
33794       an accepted-but-discarded descriptor upload. Partially implements
33795       fix for bug 535.
33796     - Make the log message for "tls error. breaking." more useful.
33797     - Better log messages about certificate downloads, to attempt to
33798       track down the second incarnation of bug 546.
33800   o Minor features (bridges):
33801     - If bridge users set UpdateBridgesFromAuthority, but the digest
33802       they ask for is a 404 from the bridge authority, they now fall
33803       back to trying the bridge directly.
33804     - Bridges now use begin_dir to publish their server descriptor to
33805       the bridge authority, even when they haven't set TunnelDirConns.
33807   o Minor features (controller):
33808     - When reporting clock skew, and we know that the clock is _at least
33809       as skewed_ as some value, but we don't know the actual value,
33810       report the value as a "minimum skew."
33812   o Utilities:
33813     - Update linux-tor-prio.sh script to allow QoS based on the uid of
33814       the Tor process. Patch from Marco Bonetti with tweaks from Mike
33815       Perry.
33817   o Minor bugfixes:
33818     - Refuse to start if both ORPort and UseBridges are set. Bugfix
33819       on 0.2.0.x, suggested by Matt Edman.
33820     - Don't stop fetching descriptors when FetchUselessDescriptors is
33821       set, even if we stop asking for circuits. Bugfix on 0.1.2.x;
33822       reported by tup and ioerror.
33823     - Better log message on vote from unknown authority.
33824     - Don't log "Launching 0 request for 0 router" message.
33826   o Minor bugfixes (memory leaks):
33827     - Stop leaking memory every time we parse a v3 certificate. Bugfix
33828       on 0.2.0.1-alpha.
33829     - Stop leaking memory every time we load a v3 certificate. Bugfix
33830       on 0.2.0.1-alpha. Fixes bug 536.
33831     - Stop leaking a cached networkstatus on exit. Bugfix on
33832       0.2.0.3-alpha.
33833     - Stop leaking voter information every time we free a consensus.
33834       Bugfix on 0.2.0.3-alpha.
33835     - Stop leaking signed data every time we check a voter signature.
33836       Bugfix on 0.2.0.3-alpha.
33837     - Stop leaking a signature every time we fail to parse a consensus or
33838       a vote. Bugfix on 0.2.0.3-alpha.
33839     - Stop leaking v2_download_status_map on shutdown. Bugfix on
33840       0.2.0.9-alpha.
33841     - Stop leaking conn->nickname every time we make a connection to a
33842       Tor relay without knowing its expected identity digest (e.g. when
33843       using bridges). Bugfix on 0.2.0.3-alpha.
33845   - Minor bugfixes (portability):
33846     - Run correctly on platforms where rlim_t is larger than unsigned
33847       long, and/or where the real limit for number of open files is
33848       OPEN_FILES, not rlim_max from getrlimit(RLIMIT_NOFILES). In
33849       particular, these may be needed for OS X 10.5.
33852 Changes in version 0.1.2.18 - 2007-10-28
33853   Tor 0.1.2.18 fixes many problems including crash bugs, problems with
33854   hidden service introduction that were causing huge delays, and a big
33855   bug that was causing some servers to disappear from the network status
33856   lists for a few hours each day.
33858   o Major bugfixes (crashes):
33859     - If a connection is shut down abruptly because of something that
33860       happened inside connection_flushed_some(), do not call
33861       connection_finished_flushing(). Should fix bug 451:
33862       "connection_stop_writing: Assertion conn->write_event failed"
33863       Bugfix on 0.1.2.7-alpha.
33864     - Fix possible segfaults in functions called from
33865       rend_process_relay_cell().
33867   o Major bugfixes (hidden services):
33868     - Hidden services were choosing introduction points uniquely by
33869       hexdigest, but when constructing the hidden service descriptor
33870       they merely wrote the (potentially ambiguous) nickname.
33871     - Clients now use the v2 intro format for hidden service
33872       connections: they specify their chosen rendezvous point by identity
33873       digest rather than by (potentially ambiguous) nickname. These
33874       changes could speed up hidden service connections dramatically.
33876   o Major bugfixes (other):
33877     - Stop publishing a new server descriptor just because we get a
33878       HUP signal. This led (in a roundabout way) to some servers getting
33879       dropped from the networkstatus lists for a few hours each day.
33880     - When looking for a circuit to cannibalize, consider family as well
33881       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
33882       circuit cannibalization).
33883     - When a router wasn't listed in a new networkstatus, we were leaving
33884       the flags for that router alone -- meaning it remained Named,
33885       Running, etc -- even though absence from the networkstatus means
33886       that it shouldn't be considered to exist at all anymore. Now we
33887       clear all the flags for routers that fall out of the networkstatus
33888       consensus. Fixes bug 529.
33890   o Minor bugfixes:
33891     - Don't try to access (or alter) the state file when running
33892       --list-fingerprint or --verify-config or --hash-password. Resolves
33893       bug 499.
33894     - When generating information telling us how to extend to a given
33895       router, do not try to include the nickname if it is
33896       absent. Resolves bug 467.
33897     - Fix a user-triggerable segfault in expand_filename(). (There isn't
33898       a way to trigger this remotely.)
33899     - When sending a status event to the controller telling it that an
33900       OR address is reachable, set the port correctly. (Previously we
33901       were reporting the dir port.)
33902     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
33903       command. Bugfix on 0.1.2.17.
33904     - When loading bandwidth history, do not believe any information in
33905       the future. Fixes bug 434.
33906     - When loading entry guard information, do not believe any information
33907       in the future.
33908     - When we have our clock set far in the future and generate an
33909       onion key, then re-set our clock to be correct, we should not stop
33910       the onion key from getting rotated.
33911     - On some platforms, accept() can return a broken address. Detect
33912       this more quietly, and deal accordingly. Fixes bug 483.
33913     - It's not actually an error to find a non-pending entry in the DNS
33914       cache when canceling a pending resolve. Don't log unless stuff
33915       is fishy. Resolves bug 463.
33916     - Don't reset trusted dir server list when we set a configuration
33917       option. Patch from Robert Hogan.
33918     - Don't try to create the datadir when running --verify-config or
33919       --hash-password. Resolves bug 540.
33922 Changes in version 0.2.0.9-alpha - 2007-10-24
33923   This ninth development snapshot switches clients to the new v3 directory
33924   system; allows servers to be listed in the network status even when they
33925   have the same nickname as a registered server; and fixes many other
33926   bugs including a big one that was causing some servers to disappear
33927   from the network status lists for a few hours each day.
33929   o Major features (directory system):
33930     - Clients now download v3 consensus networkstatus documents instead
33931       of v2 networkstatus documents. Clients and caches now base their
33932       opinions about routers on these consensus documents. Clients only
33933       download router descriptors listed in the consensus.
33934     - Authorities now list servers who have the same nickname as
33935       a different named server, but list them with a new flag,
33936       "Unnamed". Now we can list servers that happen to pick the same
33937       nickname as a server that registered two years ago and then
33938       disappeared. Partially implements proposal 122.
33939     - If the consensus lists a router as "Unnamed", the name is assigned
33940       to a different router: do not identify the router by that name.
33941       Partially implements proposal 122.
33942     - Authorities can now come to a consensus on which method to use to
33943       compute the consensus. This gives us forward compatibility.
33945   o Major bugfixes:
33946     - Stop publishing a new server descriptor just because we HUP or
33947       when we find our DirPort to be reachable but won't actually publish
33948       it. New descriptors without any real changes are dropped by the
33949       authorities, and can screw up our "publish every 18 hours" schedule.
33950       Bugfix on 0.1.2.x.
33951     - When a router wasn't listed in a new networkstatus, we were leaving
33952       the flags for that router alone -- meaning it remained Named,
33953       Running, etc -- even though absence from the networkstatus means
33954       that it shouldn't be considered to exist at all anymore. Now we
33955       clear all the flags for routers that fall out of the networkstatus
33956       consensus. Fixes bug 529; bugfix on 0.1.2.x.
33957     - Fix awful behavior in DownloadExtraInfo option where we'd fetch
33958       extrainfo documents and then discard them immediately for not
33959       matching the latest router. Bugfix on 0.2.0.1-alpha.
33961   o Minor features (v3 directory protocol):
33962     - Allow tor-gencert to generate a new certificate without replacing
33963       the signing key.
33964     - Allow certificates to include an address.
33965     - When we change our directory-cache settings, reschedule all voting
33966       and download operations.
33967     - Reattempt certificate downloads immediately on failure, as long as
33968       we haven't failed a threshold number of times yet.
33969     - Delay retrying consensus downloads while we're downloading
33970       certificates to verify the one we just got. Also, count getting a
33971       consensus that we already have (or one that isn't valid) as a failure,
33972       and count failing to get the certificates after 20 minutes as a
33973       failure.
33974     - Build circuits and download descriptors even if our consensus is a
33975       little expired. (This feature will go away once authorities are
33976       more reliable.)
33978   o Minor features (router descriptor cache):
33979     - If we find a cached-routers file that's been sitting around for more
33980       than 28 days unmodified, then most likely it's a leftover from
33981       when we upgraded to 0.2.0.8-alpha. Remove it. It has no good
33982       routers anyway.
33983     - When we (as a cache) download a descriptor because it was listed
33984       in a consensus, remember when the consensus was supposed to expire,
33985       and don't expire the descriptor until then.
33987   o Minor features (performance):
33988     - Call routerlist_remove_old_routers() much less often. This should
33989       speed startup, especially on directory caches.
33990     - Don't try to launch new descriptor downloads quite so often when we
33991       already have enough directory information to build circuits.
33992     - Base64 decoding was actually showing up on our profile when parsing
33993       the initial descriptor file; switch to an in-process all-at-once
33994       implementation that's about 3.5x times faster than calling out to
33995       OpenSSL.
33997   o Minor features (compilation):
33998     - Detect non-ASCII platforms (if any still exist) and refuse to
33999       build there: some of our code assumes that 'A' is 65 and so on.
34001   o Minor bugfixes (v3 directory authorities, bugfixes on 0.2.0.x):
34002     - Make the "next period" votes into "current period" votes immediately
34003       after publishing the consensus; avoid a heisenbug that made them
34004       stick around indefinitely.
34005     - When we discard a vote as a duplicate, do not report this as
34006       an error.
34007     - Treat missing v3 keys or certificates as an error when running as a
34008       v3 directory authority.
34009     - When we're configured to be a v3 authority, but we're only listed
34010       as a non-v3 authority in our DirServer line for ourself, correct
34011       the listing.
34012     - If an authority doesn't have a qualified hostname, just put
34013       its address in the vote. This fixes the problem where we referred to
34014       "moria on moria:9031."
34015     - Distinguish between detached signatures for the wrong period, and
34016       detached signatures for a divergent vote.
34017     - Fix a small memory leak when computing a consensus.
34018     - When there's no consensus, we were forming a vote every 30
34019       minutes, but writing the "valid-after" line in our vote based
34020       on our configured V3AuthVotingInterval: so unless the intervals
34021       matched up, we immediately rejected our own vote because it didn't
34022       start at the voting interval that caused us to construct a vote.
34024   o Minor bugfixes (v3 directory protocol, bugfixes on 0.2.0.x):
34025     - Delete unverified-consensus when the real consensus is set.
34026     - Consider retrying a consensus networkstatus fetch immediately
34027       after one fails: don't wait 60 seconds to notice.
34028     - When fetching a consensus as a cache, wait until a newer consensus
34029       should exist before trying to replace the current one.
34030     - Use a more forgiving schedule for retrying failed consensus
34031       downloads than for other types.
34033   o Minor bugfixes (other directory issues):
34034     - Correct the implementation of "download votes by digest." Bugfix on
34035       0.2.0.8-alpha.
34036     - Authorities no longer send back "400 you're unreachable please fix
34037       it" errors to Tor servers that aren't online all the time. We're
34038       supposed to tolerate these servers now. Bugfix on 0.1.2.x.
34040   o Minor bugfixes (controller):
34041     - Don't reset trusted dir server list when we set a configuration
34042       option. Patch from Robert Hogan; bugfix on 0.1.2.x.
34043     - Respond to INT and TERM SIGNAL commands before we execute the
34044       signal, in case the signal shuts us down. We had a patch in
34045       0.1.2.1-alpha that tried to do this by queueing the response on
34046       the connection's buffer before shutting down, but that really
34047       isn't the same thing at all. Bug located by Matt Edman.
34049   o Minor bugfixes (misc):
34050     - Correctly check for bad options to the "PublishServerDescriptor"
34051       config option. Bugfix on 0.2.0.1-alpha; reported by Matt Edman.
34052     - Stop leaking memory on failing case of base32_decode, and make
34053       it accept upper-case letters. Bugfixes on 0.2.0.7-alpha.
34054     - Don't try to download extrainfo documents when we're trying to
34055       fetch enough directory info to build a circuit: having enough
34056       info should get priority. Bugfix on 0.2.0.x.
34057     - Don't complain that "your server has not managed to confirm that its
34058       ports are reachable" if we haven't been able to build any circuits
34059       yet. Bug found by spending four hours without a v3 consensus. Bugfix
34060       on 0.1.2.x.
34061     - Detect the reason for failing to mmap a descriptor file we just
34062       wrote, and give a more useful log message. Fixes bug 533. Bugfix
34063       on 0.1.2.x.
34065   o Code simplifications and refactoring:
34066     - Remove support for the old bw_accounting file: we've been storing
34067       bandwidth accounting information in the state file since
34068       0.1.2.5-alpha. This may result in bandwidth accounting errors
34069       if you try to upgrade from 0.1.1.x or earlier, or if you try to
34070       downgrade to 0.1.1.x or earlier.
34071     - New convenience code to locate a file within the DataDirectory.
34072     - Move non-authority functionality out of dirvote.c.
34073     - Refactor the arguments for router_pick_{directory_|trusteddir}server
34074       so that they all take the same named flags.
34076   o Utilities
34077     - Include the "tor-ctrl.sh" bash script by Stefan Behte to provide
34078       Unix users an easy way to script their Tor process (e.g. by
34079       adjusting bandwidth based on the time of the day).
34082 Changes in version 0.2.0.8-alpha - 2007-10-12
34083   This eighth development snapshot fixes a crash bug that's been bothering
34084   us since February 2007, lets bridge authorities store a list of bridge
34085   descriptors they've seen, gets v3 directory voting closer to working,
34086   starts caching v3 directory consensus documents on directory mirrors,
34087   and fixes a variety of smaller issues including some minor memory leaks.
34089   o Major features (router descriptor cache):
34090     - Store routers in a file called cached-descriptors instead of in
34091       cached-routers. Initialize cached-descriptors from cached-routers
34092       if the old format is around. The new format allows us to store
34093       annotations along with descriptors.
34094     - Use annotations to record the time we received each descriptor, its
34095       source, and its purpose.
34096     - Disable the SETROUTERPURPOSE controller command: it is now
34097       obsolete.
34098     - Controllers should now specify cache=no or cache=yes when using
34099       the +POSTDESCRIPTOR command.
34100     - Bridge authorities now write bridge descriptors to disk, meaning
34101       we can export them to other programs and begin distributing them
34102       to blocked users.
34104   o Major features (directory authorities):
34105     - When a v3 authority is missing votes or signatures, it now tries
34106       to fetch them.
34107     - Directory authorities track weighted fractional uptime as well as
34108       weighted mean-time-between failures. WFU is suitable for deciding
34109       whether a node is "usually up", while MTBF is suitable for deciding
34110       whether a node is "likely to stay up." We need both, because
34111       "usually up" is a good requirement for guards, while "likely to
34112       stay up" is a good requirement for long-lived connections.
34114   o Major features (v3 directory system):
34115     - Caches now download v3 network status documents as needed,
34116       and download the descriptors listed in them.
34117     - All hosts now attempt to download and keep fresh v3 authority
34118       certificates, and re-attempt after failures.
34119     - More internal-consistency checks for vote parsing.
34121   o Major bugfixes (crashes):
34122     - If a connection is shut down abruptly because of something that
34123       happened inside connection_flushed_some(), do not call
34124       connection_finished_flushing(). Should fix bug 451. Bugfix on
34125       0.1.2.7-alpha.
34127   o Major bugfixes (performance):
34128     - Fix really bad O(n^2) performance when parsing a long list of
34129       routers: Instead of searching the entire list for an "extra-info "
34130       string which usually wasn't there, once for every routerinfo
34131       we read, just scan lines forward until we find one we like.
34132       Bugfix on 0.2.0.1.
34133     - When we add data to a write buffer in response to the data on that
34134       write buffer getting low because of a flush, do not consider the
34135       newly added data as a candidate for immediate flushing, but rather
34136       make it wait until the next round of writing. Otherwise, we flush
34137       and refill recursively, and a single greedy TLS connection can
34138       eat all of our bandwidth. Bugfix on 0.1.2.7-alpha.
34140   o Minor features (v3 authority system):
34141     - Add more ways for tools to download the votes that lead to the
34142       current consensus.
34143     - Send a 503 when low on bandwidth and a vote, consensus, or
34144       certificate is requested.
34145     - If-modified-since is now implemented properly for all kinds of
34146       certificate requests.
34148   o Minor bugfixes (network statuses):
34149     - Tweak the implementation of proposal 109 slightly: allow at most
34150       two Tor servers on the same IP address, except if it's the location
34151       of a directory authority, in which case allow five. Bugfix on
34152       0.2.0.3-alpha.
34154   o Minor bugfixes (controller):
34155     - When sending a status event to the controller telling it that an
34156       OR address is reachable, set the port correctly. (Previously we
34157       were reporting the dir port.) Bugfix on 0.1.2.x.
34159   o Minor bugfixes (v3 directory system):
34160     - Fix logic to look up a cert by its signing key digest. Bugfix on
34161       0.2.0.7-alpha.
34162     - Only change the reply to a vote to "OK" if it's not already
34163       set. This gets rid of annoying "400 OK" log messages, which may
34164       have been masking some deeper issue. Bugfix on 0.2.0.7-alpha.
34165     - When we get a valid consensus, recompute the voting schedule.
34166     - Base the valid-after time of a vote on the consensus voting
34167       schedule, not on our preferred schedule.
34168     - Make the return values and messages from signature uploads and
34169       downloads more sensible.
34170     - Fix a memory leak when serving votes and consensus documents, and
34171       another when serving certificates.
34173   o Minor bugfixes (performance):
34174     - Use a slightly simpler string hashing algorithm (copying Python's
34175       instead of Java's) and optimize our digest hashing algorithm to take
34176       advantage of 64-bit platforms and to remove some possibly-costly
34177       voodoo.
34178     - Fix a minor memory leak whenever we parse guards from our state
34179       file. Bugfix on 0.2.0.7-alpha.
34180     - Fix a minor memory leak whenever we write out a file. Bugfix on
34181       0.2.0.7-alpha.
34182     - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO
34183       command. Bugfix on 0.2.0.5-alpha.
34185   o Minor bugfixes (portability):
34186     - On some platforms, accept() can return a broken address. Detect
34187       this more quietly, and deal accordingly. Fixes bug 483.
34188     - Stop calling tor_strlower() on uninitialized memory in some cases.
34189       Bugfix in 0.2.0.7-alpha.
34191   o Minor bugfixes (usability):
34192     - Treat some 403 responses from directory servers as INFO rather than
34193       WARN-severity events.
34194     - It's not actually an error to find a non-pending entry in the DNS
34195       cache when canceling a pending resolve. Don't log unless stuff is
34196       fishy. Resolves bug 463.
34198   o Minor bugfixes (anonymity):
34199     - Never report that we've used more bandwidth than we're willing to
34200       relay: it leaks how much non-relay traffic we're using. Resolves
34201       bug 516.
34202     - When looking for a circuit to cannibalize, consider family as well
34203       as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced
34204       circuit cannibalization).
34206   o Code simplifications and refactoring:
34207     - Make a bunch of functions static. Remove some dead code.
34208     - Pull out about a third of the really big routerlist.c; put it in a
34209       new module, networkstatus.c.
34210     - Merge the extra fields in local_routerstatus_t back into
34211       routerstatus_t: we used to need one routerstatus_t for each
34212       authority's opinion, plus a local_routerstatus_t for the locally
34213       computed consensus opinion. To save space, we put the locally
34214       modified fields into local_routerstatus_t, and only the common
34215       stuff into routerstatus_t. But once v3 directories are in use,
34216       clients and caches will no longer need to hold authority opinions;
34217       thus, the rationale for keeping the types separate is now gone.
34218     - Make the code used to reschedule and reattempt downloads more
34219       uniform.
34220     - Turn all 'Are we a directory server/mirror?' logic into a call to
34221       dirserver_mode().
34222     - Remove the code to generate the oldest (v1) directory format.
34223       The code has been disabled since 0.2.0.5-alpha.
34226 Changes in version 0.2.0.7-alpha - 2007-09-21
34227   This seventh development snapshot makes bridges work again, makes bridge
34228   authorities work for the first time, fixes two huge performance flaws
34229   in hidden services, and fixes a variety of minor issues.
34231   o New directory authorities:
34232     - Set up moria1 and tor26 as the first v3 directory authorities. See
34233       doc/spec/dir-spec.txt for details on the new directory design.
34235   o Major bugfixes (crashes):
34236     - Fix possible segfaults in functions called from
34237       rend_process_relay_cell(). Bugfix on 0.1.2.x.
34239   o Major bugfixes (bridges):
34240     - Fix a bug that made servers send a "404 Not found" in response to
34241       attempts to fetch their server descriptor. This caused Tor servers
34242       to take many minutes to establish reachability for their DirPort,
34243       and it totally crippled bridges. Bugfix on 0.2.0.5-alpha.
34244     - Make "UpdateBridgesFromAuthority" torrc option work: when bridge
34245       users configure that and specify a bridge with an identity
34246       fingerprint, now they will lookup the bridge descriptor at the
34247       default bridge authority via a one-hop tunnel, but once circuits
34248       are established they will switch to a three-hop tunnel for later
34249       connections to the bridge authority. Bugfix in 0.2.0.3-alpha.
34251   o Major bugfixes (hidden services):
34252     - Hidden services were choosing introduction points uniquely by
34253       hexdigest, but when constructing the hidden service descriptor
34254       they merely wrote the (potentially ambiguous) nickname.
34255     - Clients now use the v2 intro format for hidden service
34256       connections: they specify their chosen rendezvous point by identity
34257       digest rather than by (potentially ambiguous) nickname. Both
34258       are bugfixes on 0.1.2.x, and they could speed up hidden service
34259       connections dramatically. Thanks to Karsten Loesing.
34261   o Minor features (security):
34262     - As a client, do not believe any server that tells us that an
34263       address maps to an internal address space.
34264     - Make it possible to enable HashedControlPassword and
34265       CookieAuthentication at the same time.
34267   o Minor features (guard nodes):
34268     - Tag every guard node in our state file with the version that
34269       we believe added it, or with our own version if we add it. This way,
34270       if a user temporarily runs an old version of Tor and then switches
34271       back to a new one, she doesn't automatically lose her guards.
34273   o Minor features (speed):
34274     - When implementing AES counter mode, update only the portions of the
34275       counter buffer that need to change, and don't keep separate
34276       network-order and host-order counters when they are the same (i.e.,
34277       on big-endian hosts.)
34279   o Minor features (controller):
34280     - Accept LF instead of CRLF on controller, since some software has a
34281       hard time generating real Internet newlines.
34282     - Add GETINFO values for the server status events
34283       "REACHABILITY_SUCCEEDED" and "GOOD_SERVER_DESCRIPTOR". Patch from
34284       Robert Hogan.
34286   o Removed features:
34287      - Routers no longer include bandwidth-history lines in their
34288        descriptors; this information is already available in extra-info
34289        documents, and including it in router descriptors took up 60%
34290        (!) of compressed router descriptor downloads. Completes
34291        implementation of proposal 104.
34292      - Remove the contrib scripts ExerciseServer.py, PathDemo.py,
34293        and TorControl.py, as they use the old v0 controller protocol,
34294        and are obsoleted by TorFlow anyway.
34295      - Drop support for v1 rendezvous descriptors, since we never used
34296        them anyway, and the code has probably rotted by now. Based on
34297        patch from Karsten Loesing.
34298      - On OSX, stop warning the user that kqueue support in libevent is
34299       "experimental", since it seems to have worked fine for ages.
34301   o Minor bugfixes:
34302     - When generating information telling us how to extend to a given
34303       router, do not try to include the nickname if it is absent. Fixes
34304       bug 467. Bugfix on 0.2.0.3-alpha.
34305     - Fix a user-triggerable (but not remotely-triggerable) segfault
34306       in expand_filename(). Bugfix on 0.1.2.x.
34307     - Fix a memory leak when freeing incomplete requests from DNSPort.
34308       Found by Niels Provos with valgrind. Bugfix on 0.2.0.1-alpha.
34309     - Don't try to access (or alter) the state file when running
34310       --list-fingerprint or --verify-config or --hash-password. (Resolves
34311       bug 499.) Bugfix on 0.1.2.x.
34312     - Servers used to decline to publish their DirPort if their
34313       BandwidthRate, RelayBandwidthRate, or MaxAdvertisedBandwidth
34314       were below a threshold. Now they only look at BandwidthRate and
34315       RelayBandwidthRate. Bugfix on 0.1.2.x.
34316     - Remove an optimization in the AES counter-mode code that assumed
34317       that the counter never exceeded 2^68. When the counter can be set
34318       arbitrarily as an IV (as it is by Karsten's new hidden services
34319       code), this assumption no longer holds. Bugfix on 0.1.2.x.
34320     - Resume listing "AUTHORITY" flag for authorities in network status.
34321       Bugfix on 0.2.0.3-alpha; reported by Alex de Joode.
34323   o Code simplifications and refactoring:
34324     - Revamp file-writing logic so we don't need to have the entire
34325       contents of a file in memory at once before we write to disk. Tor,
34326       meet stdio.
34327     - Turn "descriptor store" into a full-fledged type.
34328     - Move all NT services code into a separate source file.
34329     - Unify all code that computes medians, percentile elements, etc.
34330     - Get rid of a needless malloc when parsing address policies.
34333 Changes in version 0.1.2.17 - 2007-08-30
34334   Tor 0.1.2.17 features a new Vidalia version in the Windows and OS
34335   X bundles. Vidalia 0.0.14 makes authentication required for the
34336   ControlPort in the default configuration, which addresses important
34337   security risks. Everybody who uses Vidalia (or another controller)
34338   should upgrade.
34340   In addition, this Tor update fixes major load balancing problems with
34341   path selection, which should speed things up a lot once many people
34342   have upgraded.
34344   o Major bugfixes (security):
34345     - We removed support for the old (v0) control protocol. It has been
34346       deprecated since Tor 0.1.1.1-alpha, and keeping it secure has
34347       become more of a headache than it's worth.
34349   o Major bugfixes (load balancing):
34350     - When choosing nodes for non-guard positions, weight guards
34351       proportionally less, since they already have enough load. Patch
34352       from Mike Perry.
34353     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
34354       will allow fast Tor servers to get more attention.
34355     - When we're upgrading from an old Tor version, forget our current
34356       guards and pick new ones according to the new weightings. These
34357       three load balancing patches could raise effective network capacity
34358       by a factor of four. Thanks to Mike Perry for measurements.
34360   o Major bugfixes (stream expiration):
34361     - Expire not-yet-successful application streams in all cases if
34362       they've been around longer than SocksTimeout. Right now there are
34363       some cases where the stream will live forever, demanding a new
34364       circuit every 15 seconds. Fixes bug 454; reported by lodger.
34366   o Minor features (controller):
34367     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
34368       is valid before any authentication has been received. It tells
34369       a controller what kind of authentication is expected, and what
34370       protocol is spoken. Implements proposal 119.
34372   o Minor bugfixes (performance):
34373     - Save on most routerlist_assert_ok() calls in routerlist.c, thus
34374       greatly speeding up loading cached-routers from disk on startup.
34375     - Disable sentinel-based debugging for buffer code: we squashed all
34376       the bugs that this was supposed to detect a long time ago, and now
34377       its only effect is to change our buffer sizes from nice powers of
34378       two (which platform mallocs tend to like) to values slightly over
34379       powers of two (which make some platform mallocs sad).
34381   o Minor bugfixes (misc):
34382     - If exit bandwidth ever exceeds one third of total bandwidth, then
34383       use the correct formula to weight exit nodes when choosing paths.
34384       Based on patch from Mike Perry.
34385     - Choose perfectly fairly among routers when choosing by bandwidth and
34386       weighting by fraction of bandwidth provided by exits. Previously, we
34387       would choose with only approximate fairness, and correct ourselves
34388       if we ran off the end of the list.
34389     - If we require CookieAuthentication but we fail to write the
34390       cookie file, we would warn but not exit, and end up in a state
34391       where no controller could authenticate. Now we exit.
34392     - If we require CookieAuthentication, stop generating a new cookie
34393       every time we change any piece of our config.
34394     - Refuse to start with certain directory authority keys, and
34395       encourage people using them to stop.
34396     - Terminate multi-line control events properly. Original patch
34397       from tup.
34398     - Fix a minor memory leak when we fail to find enough suitable
34399       servers to choose a circuit.
34400     - Stop leaking part of the descriptor when we run into a particularly
34401       unparseable piece of it.
34404 Changes in version 0.2.0.6-alpha - 2007-08-26
34405   This sixth development snapshot features a new Vidalia version in the
34406   Windows and OS X bundles. Vidalia 0.0.14 makes authentication required for
34407   the ControlPort in the default configuration, which addresses important
34408   security risks.
34410   In addition, this snapshot fixes major load balancing problems
34411   with path selection, which should speed things up a lot once many
34412   people have upgraded. The directory authorities also use a new
34413   mean-time-between-failure approach to tracking which servers are stable,
34414   rather than just looking at the most recent uptime.
34416   o New directory authorities:
34417     - Set up Tonga as the default bridge directory authority.
34419   o Major features:
34420     - Directory authorities now track servers by weighted
34421       mean-times-between-failures. When we have 4 or more days of data,
34422       use measured MTBF rather than declared uptime to decide whether
34423       to call a router Stable. Implements proposal 108.
34425   o Major bugfixes (load balancing):
34426     - When choosing nodes for non-guard positions, weight guards
34427       proportionally less, since they already have enough load. Patch
34428       from Mike Perry.
34429     - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This
34430       will allow fast Tor servers to get more attention.
34431     - When we're upgrading from an old Tor version, forget our current
34432       guards and pick new ones according to the new weightings. These
34433       three load balancing patches could raise effective network capacity
34434       by a factor of four. Thanks to Mike Perry for measurements.
34436   o Major bugfixes (descriptor parsing):
34437     - Handle unexpected whitespace better in malformed descriptors. Bug
34438       found using Benedikt Boss's new Tor fuzzer! Bugfix on 0.2.0.x.
34440   o Minor features:
34441     - There is now an ugly, temporary "desc/all-recent-extrainfo-hack"
34442       GETINFO for Torstat to use until it can switch to using extrainfos.
34443     - Optionally (if built with -DEXPORTMALLINFO) export the output
34444       of mallinfo via http, as tor/mallinfo.txt. Only accessible
34445       from localhost.
34447   o Minor bugfixes:
34448     - Do not intermix bridge routers with controller-added
34449       routers. (Bugfix on 0.2.0.x)
34450     - Do not fail with an assert when accept() returns an unexpected
34451       address family. Addresses but does not wholly fix bug 483. (Bugfix
34452       on 0.2.0.x)
34453     - Let directory authorities startup even when they can't generate
34454       a descriptor immediately, e.g. because they don't know their
34455       address.
34456     - Stop putting the authentication cookie in a file called "0"
34457       in your working directory if you don't specify anything for the
34458       new CookieAuthFile option. Reported by Matt Edman.
34459     - Make it possible to read the PROTOCOLINFO response in a way that
34460       conforms to our control-spec. Reported by Matt Edman.
34461     - Fix a minor memory leak when we fail to find enough suitable
34462       servers to choose a circuit. Bugfix on 0.1.2.x.
34463     - Stop leaking part of the descriptor when we run into a particularly
34464       unparseable piece of it. Bugfix on 0.1.2.x.
34465     - Unmap the extrainfo cache file on exit.
34468 Changes in version 0.2.0.5-alpha - 2007-08-19
34469   This fifth development snapshot fixes compilation on Windows again;
34470   fixes an obnoxious client-side bug that slowed things down and put
34471   extra load on the network; gets us closer to using the v3 directory
34472   voting scheme; makes it easier for Tor controllers to use cookie-based
34473   authentication; and fixes a variety of other bugs.
34475   o Removed features:
34476     - Version 1 directories are no longer generated in full. Instead,
34477       authorities generate and serve "stub" v1 directories that list
34478       no servers. This will stop Tor versions 0.1.0.x and earlier from
34479       working, but (for security reasons) nobody should be running those
34480       versions anyway.
34482   o Major bugfixes (compilation, 0.2.0.x):
34483     - Try to fix Win32 compilation again: improve checking for IPv6 types.
34484     - Try to fix MSVC compilation: build correctly on platforms that do
34485       not define s6_addr16 or s6_addr32.
34486     - Fix compile on platforms without getaddrinfo: bug found by Li-Hui
34487       Zhou.
34489   o Major bugfixes (stream expiration):
34490     - Expire not-yet-successful application streams in all cases if
34491       they've been around longer than SocksTimeout. Right now there are
34492       some cases where the stream will live forever, demanding a new
34493       circuit every 15 seconds. Bugfix on 0.1.2.7-alpha; fixes bug 454;
34494       reported by lodger.
34496   o Minor features (directory servers):
34497     - When somebody requests a list of statuses or servers, and we have
34498       none of those, return a 404 rather than an empty 200.
34500   o Minor features (directory voting):
34501     - Store v3 consensus status consensuses on disk, and reload them
34502       on startup.
34504   o Minor features (security):
34505     - Warn about unsafe ControlPort configurations.
34506     - Refuse to start with certain directory authority keys, and
34507       encourage people using them to stop.
34509   o Minor features (controller):
34510     - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it
34511       is valid before any authentication has been received. It tells
34512       a controller what kind of authentication is expected, and what
34513       protocol is spoken. Implements proposal 119.
34514     - New config option CookieAuthFile to choose a new location for the
34515       cookie authentication file, and config option
34516       CookieAuthFileGroupReadable to make it group-readable.
34518   o Minor features (unit testing):
34519     - Add command-line arguments to unit-test executable so that we can
34520       invoke any chosen test from the command line rather than having
34521       to run the whole test suite at once; and so that we can turn on
34522       logging for the unit tests.
34524   o Minor bugfixes (on 0.1.2.x):
34525     - If we require CookieAuthentication but we fail to write the
34526       cookie file, we would warn but not exit, and end up in a state
34527       where no controller could authenticate. Now we exit.
34528     - If we require CookieAuthentication, stop generating a new cookie
34529       every time we change any piece of our config.
34530     - When loading bandwidth history, do not believe any information in
34531       the future. Fixes bug 434.
34532     - When loading entry guard information, do not believe any information
34533       in the future.
34534     - When we have our clock set far in the future and generate an
34535       onion key, then re-set our clock to be correct, we should not stop
34536       the onion key from getting rotated.
34537     - Clean up torrc sample config file.
34538     - Do not automatically run configure from autogen.sh. This
34539       non-standard behavior tended to annoy people who have built other
34540       programs.
34542   o Minor bugfixes (on 0.2.0.x):
34543     - Fix a bug with AutomapHostsOnResolve that would always cause
34544       the second request to fail. Bug reported by Kate. Bugfix on
34545       0.2.0.3-alpha.
34546     - Fix a bug in ADDRMAP controller replies that would sometimes
34547       try to print a NULL. Patch from tup.
34548     - Read v3 directory authority keys from the right location.
34549     - Numerous bugfixes to directory voting code.
34552 Changes in version 0.1.2.16 - 2007-08-01
34553   Tor 0.1.2.16 fixes a critical security vulnerability that allows a
34554   remote attacker in certain situations to rewrite the user's torrc
34555   configuration file. This can completely compromise anonymity of users
34556   in most configurations, including those running the Vidalia bundles,
34557   TorK, etc. Or worse.
34559   o Major security fixes:
34560     - Close immediately after missing authentication on control port;
34561       do not allow multiple authentication attempts.
34564 Changes in version 0.2.0.4-alpha - 2007-08-01
34565   This fourth development snapshot fixes a critical security vulnerability
34566   for most users, specifically those running Vidalia, TorK, etc. Everybody
34567   should upgrade to either 0.1.2.16 or 0.2.0.4-alpha.
34569   o Major security fixes:
34570     - Close immediately after missing authentication on control port;
34571       do not allow multiple authentication attempts.
34573   o Major bugfixes (compilation):
34574     - Fix win32 compilation: apparently IN_ADDR and IN6_ADDR are already
34575       defined there.
34577   o Minor features (performance):
34578     - Be even more aggressive about releasing RAM from small
34579       empty buffers. Thanks to our free-list code, this shouldn't be too
34580       performance-intensive.
34581     - Disable sentinel-based debugging for buffer code: we squashed all
34582       the bugs that this was supposed to detect a long time ago, and
34583       now its only effect is to change our buffer sizes from nice
34584       powers of two (which platform mallocs tend to like) to values
34585       slightly over powers of two (which make some platform mallocs sad).
34586     - Log malloc statistics from mallinfo() on platforms where it
34587       exists.
34590 Changes in version 0.2.0.3-alpha - 2007-07-29
34591   This third development snapshot introduces new experimental
34592   blocking-resistance features and a preliminary version of the v3
34593   directory voting design, and includes many other smaller features
34594   and bugfixes.
34596   o Major features:
34597     - The first pieces of our "bridge" design for blocking-resistance
34598       are implemented. People can run bridge directory authorities;
34599       people can run bridges; and people can configure their Tor clients
34600       with a set of bridges to use as the first hop into the Tor network.
34601       See http://archives.seul.org/or/talk/Jul-2007/msg00249.html for
34602       details.
34603     - Create listener connections before we setuid to the configured
34604       User and Group. Now non-Windows users can choose port values
34605       under 1024, start Tor as root, and have Tor bind those ports
34606       before it changes to another UID. (Windows users could already
34607       pick these ports.)
34608     - Added a new ConstrainedSockets config option to set SO_SNDBUF and
34609       SO_RCVBUF on TCP sockets. Hopefully useful for Tor servers running
34610       on "vserver" accounts. (Patch from coderman.)
34611     - Be even more aggressive about separating local traffic from relayed
34612       traffic when RelayBandwidthRate is set. (Refines proposal 111.)
34614   o Major features (experimental):
34615     - First cut of code for "v3 dir voting": directory authorities will
34616       vote on a common network status document rather than each publishing
34617       their own opinion. This code needs more testing and more corner-case
34618       handling before it's ready for use.
34620   o Security fixes:
34621     - Directory authorities now call routers Fast if their bandwidth is
34622       at least 100KB/s, and consider their bandwidth adequate to be a
34623       Guard if it is at least 250KB/s, no matter the medians. This fix
34624       complements proposal 107. [Bugfix on 0.1.2.x]
34625     - Directory authorities now never mark more than 3 servers per IP as
34626       Valid and Running. (Implements proposal 109, by Kevin Bauer and
34627       Damon McCoy.)
34628     - Minor change to organizationName and commonName generation
34629       procedures in TLS certificates during Tor handshakes, to invalidate
34630       some earlier censorware approaches. This is not a long-term
34631       solution, but applying it will give us a bit of time to look into
34632       the epidemiology of countermeasures as they spread.
34634   o Major bugfixes (directory):
34635     - Rewrite directory tokenization code to never run off the end of
34636       a string. Fixes bug 455. Patch from croup. [Bugfix on 0.1.2.x]
34638   o Minor features (controller):
34639     - Add a SOURCE_ADDR field to STREAM NEW events so that controllers can
34640       match requests to applications. (Patch from Robert Hogan.)
34641     - Report address and port correctly on connections to DNSPort. (Patch
34642       from Robert Hogan.)
34643     - Add a RESOLVE command to launch hostname lookups. (Original patch
34644       from Robert Hogan.)
34645     - Add GETINFO status/enough-dir-info to let controllers tell whether
34646       Tor has downloaded sufficient directory information. (Patch
34647       from Tup.)
34648     - You can now use the ControlSocket option to tell Tor to listen for
34649       controller connections on Unix domain sockets on systems that
34650       support them. (Patch from Peter Palfrader.)
34651     - STREAM NEW events are generated for DNSPort requests and for
34652       tunneled directory connections. (Patch from Robert Hogan.)
34653     - New "GETINFO address-mappings/*" command to get address mappings
34654       with expiry information. "addr-mappings/*" is now deprecated.
34655       (Patch from Tup.)
34657   o Minor features (misc):
34658     - Merge in some (as-yet-unused) IPv6 address manipulation code. (Patch
34659       from croup.)
34660     - The tor-gencert tool for v3 directory authorities now creates all
34661       files as readable to the file creator only, and write-protects
34662       the authority identity key.
34663     - When dumping memory usage, list bytes used in buffer memory
34664       free-lists.
34665     - When running with dmalloc, dump more stats on hup and on exit.
34666     - Directory authorities now fail quickly and (relatively) harmlessly
34667       if they generate a network status document that is somehow
34668       malformed.
34670   o Traffic load balancing improvements:
34671     - If exit bandwidth ever exceeds one third of total bandwidth, then
34672       use the correct formula to weight exit nodes when choosing paths.
34673       (Based on patch from Mike Perry.)
34674     - Choose perfectly fairly among routers when choosing by bandwidth and
34675       weighting by fraction of bandwidth provided by exits. Previously, we
34676       would choose with only approximate fairness, and correct ourselves
34677       if we ran off the end of the list. [Bugfix on 0.1.2.x]
34679   o Performance improvements:
34680     - Be more aggressive with freeing buffer RAM or putting it on the
34681       memory free lists.
34682     - Use Critical Sections rather than Mutexes for synchronizing threads
34683       on win32; Mutexes are heavier-weight, and designed for synchronizing
34684       between processes.
34686   o Deprecated and removed features:
34687     - RedirectExits is now deprecated.
34688     - Stop allowing address masks that do not correspond to bit prefixes.
34689       We have warned about these for a really long time; now it's time
34690       to reject them. (Patch from croup.)
34692   o Minor bugfixes (directory):
34693     - Fix another crash bug related to extra-info caching. (Bug found by
34694       Peter Palfrader.) [Bugfix on 0.2.0.2-alpha]
34695     - Directories no longer return a "304 not modified" when they don't
34696       have the networkstatus the client asked for. Also fix a memory
34697       leak when returning 304 not modified. [Bugfixes on 0.2.0.2-alpha]
34698     - We had accidentally labelled 0.1.2.x directory servers as not
34699       suitable for begin_dir requests, and had labelled no directory
34700       servers as suitable for uploading extra-info documents. [Bugfix
34701       on 0.2.0.1-alpha]
34703   o Minor bugfixes (dns):
34704     - Fix a crash when DNSPort is set more than once. (Patch from Robert
34705       Hogan.) [Bugfix on 0.2.0.2-alpha]
34706     - Add DNSPort connections to the global connection list, so that we
34707       can time them out correctly. (Bug found by Robert Hogan.) [Bugfix
34708       on 0.2.0.2-alpha]
34709     - Fix a dangling reference that could lead to a crash when DNSPort is
34710       changed or closed (Patch from Robert Hogan.) [Bugfix on
34711       0.2.0.2-alpha]
34713   o Minor bugfixes (controller):
34714     - Provide DNS expiry times in GMT, not in local time. For backward
34715       compatibility, ADDRMAP events only provide GMT expiry in an extended
34716       field. "GETINFO address-mappings" always does the right thing.
34717     - Use CRLF line endings properly in NS events.
34718     - Terminate multi-line control events properly. (Original patch
34719       from tup.) [Bugfix on 0.1.2.x-alpha]
34720     - Do not include spaces in SOURCE_ADDR fields in STREAM
34721       events. Resolves bug 472. [Bugfix on 0.2.0.x-alpha]
34724 Changes in version 0.1.2.15 - 2007-07-17
34725   Tor 0.1.2.15 fixes several crash bugs, fixes some anonymity-related
34726   problems, fixes compilation on BSD, and fixes a variety of other
34727   bugs. Everybody should upgrade.
34729   o Major bugfixes (compilation):
34730     - Fix compile on FreeBSD/NetBSD/OpenBSD. Oops.
34732   o Major bugfixes (crashes):
34733     - Try even harder not to dereference the first character after
34734       an mmap(). Reported by lodger.
34735     - Fix a crash bug in directory authorities when we re-number the
34736       routerlist while inserting a new router.
34737     - When the cached-routers file is an even multiple of the page size,
34738       don't run off the end and crash. (Fixes bug 455; based on idea
34739       from croup.)
34740     - Fix eventdns.c behavior on Solaris: It is critical to include
34741       orconfig.h _before_ sys/types.h, so that we can get the expected
34742       definition of _FILE_OFFSET_BITS.
34744   o Major bugfixes (security):
34745     - Fix a possible buffer overrun when using BSD natd support. Bug
34746       found by croup.
34747     - When sending destroy cells from a circuit's origin, don't include
34748       the reason for tearing down the circuit. The spec says we didn't,
34749       and now we actually don't. Reported by lodger.
34750     - Keep streamids from different exits on a circuit separate. This
34751       bug may have allowed other routers on a given circuit to inject
34752       cells into streams. Reported by lodger; fixes bug 446.
34753     - If there's a never-before-connected-to guard node in our list,
34754       never choose any guards past it. This way we don't expand our
34755       guard list unless we need to.
34757   o Minor bugfixes (guard nodes):
34758     - Weight guard selection by bandwidth, so that low-bandwidth nodes
34759       don't get overused as guards.
34761   o Minor bugfixes (directory):
34762     - Correctly count the number of authorities that recommend each
34763       version. Previously, we were under-counting by 1.
34764     - Fix a potential crash bug when we load many server descriptors at
34765       once and some of them make others of them obsolete. Fixes bug 458.
34767   o Minor bugfixes (hidden services):
34768     - Stop tearing down the whole circuit when the user asks for a
34769       connection to a port that the hidden service didn't configure.
34770       Resolves bug 444.
34772   o Minor bugfixes (misc):
34773     - On Windows, we were preventing other processes from reading
34774       cached-routers while Tor was running. Reported by janbar.
34775     - Fix a possible (but very unlikely) bug in picking routers by
34776       bandwidth. Add a log message to confirm that it is in fact
34777       unlikely. Patch from lodger.
34778     - Backport a couple of memory leak fixes.
34779     - Backport miscellaneous cosmetic bugfixes.
34782 Changes in version 0.2.0.2-alpha - 2007-06-02
34783   o Major bugfixes on 0.2.0.1-alpha:
34784     - Fix an assertion failure related to servers without extra-info digests.
34785       Resolves bugs 441 and 442.
34787   o Minor features (directory):
34788     - Support "If-Modified-Since" when answering HTTP requests for
34789       directories, running-routers documents, and network-status documents.
34790       (There's no need to support it for router descriptors, since those
34791       are downloaded by descriptor digest.)
34793   o Minor build issues:
34794     - Clear up some MIPSPro compiler warnings.
34795     - When building from a tarball on a machine that happens to have SVK
34796       installed, report the micro-revision as whatever version existed
34797       in the tarball, not as "x".
34800 Changes in version 0.2.0.1-alpha - 2007-06-01
34801   This early development snapshot provides new features for people running
34802   Tor as both a client and a server (check out the new RelayBandwidth
34803   config options); lets Tor run as a DNS proxy; and generally moves us
34804   forward on a lot of fronts.
34806   o Major features, server usability:
34807     - New config options RelayBandwidthRate and RelayBandwidthBurst:
34808       a separate set of token buckets for relayed traffic. Right now
34809       relayed traffic is defined as answers to directory requests, and
34810       OR connections that don't have any local circuits on them.
34812   o Major features, client usability:
34813     - A client-side DNS proxy feature to replace the need for
34814       dns-proxy-tor: Just set "DNSPort 9999", and Tor will now listen
34815       for DNS requests on port 9999, use the Tor network to resolve them
34816       anonymously, and send the reply back like a regular DNS server.
34817       The code still only implements a subset of DNS.
34818     - Make PreferTunneledDirConns and TunnelDirConns work even when
34819       we have no cached directory info. This means Tor clients can now
34820       do all of their connections protected by TLS.
34822   o Major features, performance and efficiency:
34823     - Directory authorities accept and serve "extra info" documents for
34824       routers. These documents contain fields from router descriptors
34825       that aren't usually needed, and that use a lot of excess
34826       bandwidth. Once these fields are removed from router descriptors,
34827       the bandwidth savings should be about 60%. [Partially implements
34828       proposal 104.]
34829     - Servers upload extra-info documents to any authority that accepts
34830       them. Authorities (and caches that have been configured to download
34831       extra-info documents) download them as needed. [Partially implements
34832       proposal 104.]
34833     - Change the way that Tor buffers data that it is waiting to write.
34834       Instead of queueing data cells in an enormous ring buffer for each
34835       client->OR or OR->OR connection, we now queue cells on a separate
34836       queue for each circuit. This lets us use less slack memory, and
34837       will eventually let us be smarter about prioritizing different kinds
34838       of traffic.
34839     - Use memory pools to allocate cells with better speed and memory
34840       efficiency, especially on platforms where malloc() is inefficient.
34841     - Stop reading on edge connections when their corresponding circuit
34842       buffers are full; start again as the circuits empty out.
34844   o Major features, other:
34845     - Add an HSAuthorityRecordStats option that hidden service authorities
34846       can use to track statistics of overall hidden service usage without
34847       logging information that would be very useful to an attacker.
34848     - Start work implementing multi-level keys for directory authorities:
34849       Add a standalone tool to generate key certificates. (Proposal 103.)
34851   o Security fixes:
34852     - Directory authorities now call routers Stable if they have an
34853       uptime of at least 30 days, even if that's not the median uptime
34854       in the network. Implements proposal 107, suggested by Kevin Bauer
34855       and Damon McCoy.
34857   o Minor fixes (resource management):
34858     - Count the number of open sockets separately from the number
34859       of active connection_t objects. This will let us avoid underusing
34860       our allocated connection limit.
34861     - We no longer use socket pairs to link an edge connection to an
34862       anonymous directory connection or a DirPort test connection.
34863       Instead, we track the link internally and transfer the data
34864       in-process. This saves two sockets per "linked" connection (at the
34865       client and at the server), and avoids the nasty Windows socketpair()
34866       workaround.
34867     - Keep unused 4k and 16k buffers on free lists, rather than wasting 8k
34868       for every single inactive connection_t. Free items from the
34869       4k/16k-buffer free lists when they haven't been used for a while.
34871   o Minor features (build):
34872     - Make autoconf search for libevent, openssl, and zlib consistently.
34873     - Update deprecated macros in configure.in.
34874     - When warning about missing headers, tell the user to let us
34875       know if the compile succeeds anyway, so we can downgrade the
34876       warning.
34877     - Include the current subversion revision as part of the version
34878       string: either fetch it directly if we're in an SVN checkout, do
34879       some magic to guess it if we're in an SVK checkout, or use
34880       the last-detected version if we're building from a .tar.gz.
34881       Use this version consistently in log messages.
34883   o Minor features (logging):
34884     - Always prepend "Bug: " to any log message about a bug.
34885     - Put a platform string (e.g. "Linux i686") in the startup log
34886       message, so when people paste just their logs, we know if it's
34887       OpenBSD or Windows or what.
34888     - When logging memory usage, break down memory used in buffers by
34889       buffer type.
34891   o Minor features (directory system):
34892     - New config option V2AuthoritativeDirectory that all directory
34893       authorities should set. This will let future authorities choose
34894       not to serve V2 directory information.
34895     - Directory authorities allow multiple router descriptors and/or extra
34896       info documents to be uploaded in a single go. This will make
34897       implementing proposal 104 simpler.
34899   o Minor features (controller):
34900     - Add a new config option __DisablePredictedCircuits designed for
34901       use by the controller, when we don't want Tor to build any circuits
34902       preemptively.
34903     - Let the controller specify HOP=%d as an argument to ATTACHSTREAM,
34904       so we can exit from the middle of the circuit.
34905     - Implement "getinfo status/circuit-established".
34906     - Implement "getinfo status/version/..." so a controller can tell
34907       whether the current version is recommended, and whether any versions
34908       are good, and how many authorities agree. (Patch from shibz.)
34910   o Minor features (hidden services):
34911     - Allow multiple HiddenServicePort directives with the same virtual
34912       port; when they occur, the user is sent round-robin to one
34913       of the target ports chosen at random. Partially fixes bug 393 by
34914       adding limited ad-hoc round-robining.
34916   o Minor features (other):
34917     - More unit tests.
34918     - Add a new AutomapHostsOnResolve option: when it is enabled, any
34919       resolve request for hosts matching a given pattern causes Tor to
34920       generate an internal virtual address mapping for that host. This
34921       allows DNSPort to work sensibly with hidden service users. By
34922       default, .exit and .onion addresses are remapped; the list of
34923       patterns can be reconfigured with AutomapHostsSuffixes.
34924     - Add an "-F" option to tor-resolve to force a resolve for a .onion
34925       address. Thanks to the AutomapHostsOnResolve option, this is no
34926       longer a completely silly thing to do.
34927     - If Tor is invoked from something that isn't a shell (e.g. Vidalia),
34928       now we expand "-f ~/.tor/torrc" correctly. Suggested by Matt Edman.
34929     - Treat "2gb" when given in torrc for a bandwidth as meaning 2gb,
34930       minus 1 byte: the actual maximum declared bandwidth.
34932   o Removed features:
34933     - Removed support for the old binary "version 0" controller protocol.
34934       This has been deprecated since 0.1.1, and warnings have been issued
34935       since 0.1.2. When we encounter a v0 control message, we now send
34936       back an error and close the connection.
34937     - Remove the old "dns worker" server DNS code: it hasn't been default
34938       since 0.1.2.2-alpha, and all the servers seem to be using the new
34939       eventdns code.
34941   o Minor bugfixes (portability):
34942     - Even though Windows is equally happy with / and \ as path separators,
34943       try to use \ consistently on Windows and / consistently on Unix: it
34944       makes the log messages nicer.
34945     - Correctly report platform name on Windows 95 OSR2 and Windows 98 SE.
34946     - Read resolv.conf files correctly on platforms where read() returns
34947       partial results on small file reads.
34949   o Minor bugfixes (directory):
34950     - Correctly enforce that elements of directory objects do not appear
34951       more often than they are allowed to appear.
34952     - When we are reporting the DirServer line we just parsed, we were
34953       logging the second stanza of the key fingerprint, not the first.
34955   o Minor bugfixes (logging):
34956     - When we hit an EOF on a log (probably because we're shutting down),
34957       don't try to remove the log from the list: just mark it as
34958       unusable. (Bulletproofs against bug 222.)
34960   o Minor bugfixes (other):
34961     - In the exitlist script, only consider the most recently published
34962       server descriptor for each server. Also, when the user requests
34963       a list of servers that _reject_ connections to a given address,
34964       explicitly exclude the IPs that also have servers that accept
34965       connections to that address. (Resolves bug 405.)
34966     - Stop allowing hibernating servers to be "stable" or "fast".
34967     - On Windows, we were preventing other processes from reading
34968       cached-routers while Tor was running. (Reported by janbar)
34969     - Make the NodeFamilies config option work. (Reported by
34970       lodger -- it has never actually worked, even though we added it
34971       in Oct 2004.)
34972     - Check return values from pthread_mutex functions.
34973     - Don't save non-general-purpose router descriptors to the disk cache,
34974       because we have no way of remembering what their purpose was when
34975       we restart.
34976     - Add even more asserts to hunt down bug 417.
34977     - Build without verbose warnings even on (not-yet-released) gcc 4.2.
34978     - Fix a possible (but very unlikely) bug in picking routers by bandwidth.
34979       Add a log message to confirm that it is in fact unlikely.
34981   o Minor bugfixes (controller):
34982     - Make 'getinfo fingerprint' return a 551 error if we're not a
34983       server, so we match what the control spec claims we do. Reported
34984       by daejees.
34985     - Fix a typo in an error message when extendcircuit fails that
34986       caused us to not follow the \r\n-based delimiter protocol. Reported
34987       by daejees.
34989   o Code simplifications and refactoring:
34990     - Stop passing around circuit_t and crypt_path_t pointers that are
34991       implicit in other procedure arguments.
34992     - Drop the old code to choke directory connections when the
34993       corresponding OR connections got full: thanks to the cell queue
34994       feature, OR conns don't get full any more.
34995     - Make dns_resolve() handle attaching connections to circuits
34996       properly, so the caller doesn't have to.
34997     - Rename wants_to_read and wants_to_write to read/write_blocked_on_bw.
34998     - Keep the connection array as a dynamic smartlist_t, rather than as
34999       a fixed-sized array. This is important, as the number of connections
35000       is becoming increasingly decoupled from the number of sockets.
35003 Changes in version 0.1.2.14 - 2007-05-25
35004   Tor 0.1.2.14 changes the addresses of two directory authorities (this
35005   change especially affects those who serve or use hidden services),
35006   and fixes several other crash- and security-related bugs.
35008   o Directory authority changes:
35009     - Two directory authorities (moria1 and moria2) just moved to new
35010       IP addresses. This change will particularly affect those who serve
35011       or use hidden services.
35013   o Major bugfixes (crashes):
35014     - If a directory server runs out of space in the connection table
35015       as it's processing a begin_dir request, it will free the exit stream
35016       but leave it attached to the circuit, leading to unpredictable
35017       behavior. (Reported by seeess, fixes bug 425.)
35018     - Fix a bug in dirserv_remove_invalid() that would cause authorities
35019       to corrupt memory under some really unlikely scenarios.
35020     - Tighten router parsing rules. (Bugs reported by Benedikt Boss.)
35021     - Avoid segfaults when reading from mmaped descriptor file. (Reported
35022       by lodger.)
35024   o Major bugfixes (security):
35025     - When choosing an entry guard for a circuit, avoid using guards
35026       that are in the same family as the chosen exit -- not just guards
35027       that are exactly the chosen exit. (Reported by lodger.)
35029   o Major bugfixes (resource management):
35030     - If a directory authority is down, skip it when deciding where to get
35031       networkstatus objects or descriptors. Otherwise we keep asking
35032       every 10 seconds forever. Fixes bug 384.
35033     - Count it as a failure if we fetch a valid network-status but we
35034       don't want to keep it. Otherwise we'll keep fetching it and keep
35035       not wanting to keep it. Fixes part of bug 422.
35036     - If all of our dirservers have given us bad or no networkstatuses
35037       lately, then stop hammering them once per minute even when we
35038       think they're failed. Fixes another part of bug 422.
35040   o Minor bugfixes:
35041     - Actually set the purpose correctly for descriptors inserted with
35042       purpose=controller.
35043     - When we have k non-v2 authorities in our DirServer config,
35044       we ignored the last k authorities in the list when updating our
35045       network-statuses.
35046     - Correctly back-off from requesting router descriptors that we are
35047       having a hard time downloading.
35048     - Read resolv.conf files correctly on platforms where read() returns
35049       partial results on small file reads.
35050     - Don't rebuild the entire router store every time we get 32K of
35051       routers: rebuild it when the journal gets very large, or when
35052       the gaps in the store get very large.
35054   o Minor features:
35055     - When routers publish SVN revisions in their router descriptors,
35056       authorities now include those versions correctly in networkstatus
35057       documents.
35058     - Warn when using a version of libevent before 1.3b to run a server on
35059       OSX or BSD: these versions interact badly with userspace threads.
35062 Changes in version 0.1.2.13 - 2007-04-24
35063   This release features some major anonymity fixes, such as safer path
35064   selection; better client performance; faster bootstrapping, better
35065   address detection, and better DNS support for servers; write limiting as
35066   well as read limiting to make servers easier to run; and a huge pile of
35067   other features and bug fixes. The bundles also ship with Vidalia 0.0.11.
35069   Tor 0.1.2.13 is released in memory of Rob Levin (1955-2006), aka lilo
35070   of the Freenode IRC network, remembering his patience and vision for
35071   free speech on the Internet.
35073   o Minor fixes:
35074     - Fix a memory leak when we ask for "all" networkstatuses and we
35075       get one we don't recognize.
35076     - Add more asserts to hunt down bug 417.
35077     - Disable kqueue on OS X 10.3 and earlier, to fix bug 371.
35080 Changes in version 0.1.2.12-rc - 2007-03-16
35081   o Major bugfixes:
35082     - Fix an infinite loop introduced in 0.1.2.7-alpha when we serve
35083       directory information requested inside Tor connections (i.e. via
35084       begin_dir cells). It only triggered when the same connection was
35085       serving other data at the same time. Reported by seeess.
35087   o Minor bugfixes:
35088     - When creating a circuit via the controller, send a 'launched'
35089       event when we're done, so we follow the spec better.
35092 Changes in version 0.1.2.11-rc - 2007-03-15
35093   o Minor bugfixes (controller), reported by daejees:
35094     - Correct the control spec to match how the code actually responds
35095       to 'getinfo addr-mappings/*'.
35096     - The control spec described a GUARDS event, but the code
35097       implemented a GUARD event. Standardize on GUARD, but let people
35098       ask for GUARDS too.
35101 Changes in version 0.1.2.10-rc - 2007-03-07
35102   o Major bugfixes (Windows):
35103     - Do not load the NT services library functions (which may not exist)
35104       just to detect if we're a service trying to shut down. Now we run
35105       on Win98 and friends again.
35107   o Minor bugfixes (other):
35108     - Clarify a couple of log messages.
35109     - Fix a misleading socks5 error number.
35112 Changes in version 0.1.2.9-rc - 2007-03-02
35113   o Major bugfixes (Windows):
35114     - On MinGW, use "%I64u" to printf/scanf 64-bit integers, instead
35115       of the usual GCC "%llu". This prevents a bug when saving 64-bit
35116       int configuration values: the high-order 32 bits would get
35117       truncated. In particular, we were being bitten by the default
35118       MaxAdvertisedBandwidth of 128 TB turning into 0. (Fixes bug 400
35119       and maybe also bug 397.)
35121   o Minor bugfixes (performance):
35122     - Use OpenSSL's AES implementation on platforms where it's faster.
35123       This could save us as much as 10% CPU usage.
35125   o Minor bugfixes (server):
35126     - Do not rotate onion key immediately after setting it for the first
35127       time.
35129   o Minor bugfixes (directory authorities):
35130     - Stop calling servers that have been hibernating for a long time
35131       "stable". Also, stop letting hibernating or obsolete servers affect
35132       uptime and bandwidth cutoffs.
35133     - Stop listing hibernating servers in the v1 directory.
35135   o Minor bugfixes (hidden services):
35136     - Upload hidden service descriptors slightly less often, to reduce
35137       load on authorities.
35139   o Minor bugfixes (other):
35140     - Fix an assert that could trigger if a controller quickly set then
35141       cleared EntryNodes. Bug found by Udo van den Heuvel.
35142     - On architectures where sizeof(int)>4, still clamp declarable bandwidth
35143       to INT32_MAX.
35144     - Fix a potential race condition in the rpm installer. Found by
35145       Stefan Nordhausen.
35146     - Try to fix eventdns warnings once and for all: do not treat a dns rcode
35147       of 2 as indicating that the server is completely bad; it sometimes
35148       means that the server is just bad for the request in question. (may fix
35149       the last of bug 326.)
35150     - Disable encrypted directory connections when we don't have a server
35151       descriptor for the destination. We'll get this working again in
35152       the 0.2.0 branch.
35155 Changes in version 0.1.2.8-beta - 2007-02-26
35156   o Major bugfixes (crashes):
35157     - Stop crashing when the controller asks us to resetconf more than
35158       one config option at once. (Vidalia 0.0.11 does this.)
35159     - Fix a crash that happened on Win98 when we're given command-line
35160       arguments: don't try to load NT service functions from advapi32.dll
35161       except when we need them. (Bug introduced in 0.1.2.7-alpha;
35162       resolves bug 389.)
35163     - Fix a longstanding obscure crash bug that could occur when
35164       we run out of DNS worker processes. (Resolves bug 390.)
35166   o Major bugfixes (hidden services):
35167     - Correctly detect whether hidden service descriptor downloads are
35168       in-progress. (Suggested by Karsten Loesing; fixes bug 399.)
35170   o Major bugfixes (accounting):
35171     - When we start during an accounting interval before it's time to wake
35172       up, remember to wake up at the correct time. (May fix bug 342.)
35174   o Minor bugfixes (controller):
35175     - Give the controller END_STREAM_REASON_DESTROY events _before_ we
35176       clear the corresponding on_circuit variable, and remember later
35177       that we don't need to send a redundant CLOSED event. Resolves part
35178       3 of bug 367.
35179     - Report events where a resolve succeeded or where we got a socks
35180       protocol error correctly, rather than calling both of them
35181       "INTERNAL".
35182     - Change reported stream target addresses to IP consistently when
35183       we finally get the IP from an exit node.
35184     - Send log messages to the controller even if they happen to be very
35185       long.
35187   o Minor bugfixes (other):
35188     - Display correct results when reporting which versions are
35189       recommended, and how recommended they are. (Resolves bug 383.)
35190     - Improve our estimates for directory bandwidth to be less random:
35191       guess that an unrecognized directory will have the average bandwidth
35192       from all known directories, not that it will have the average
35193       bandwidth from those directories earlier than it on the list.
35194     - If we start a server with ClientOnly 1, then set ClientOnly to 0
35195       and hup, stop triggering an assert based on an empty onion_key.
35196     - On platforms with no working mmap() equivalent, don't warn the
35197       user when cached-routers doesn't exist.
35198     - Warn the user when mmap() [or its equivalent] fails for some reason
35199       other than file-not-found.
35200     - Don't warn the user when cached-routers.new doesn't exist: that's
35201       perfectly fine when starting up for the first time.
35202     - When EntryNodes are configured, rebuild the guard list to contain,
35203       in order: the EntryNodes that were guards before; the rest of the
35204       EntryNodes; the nodes that were guards before.
35205     - Mask out all signals in sub-threads; only the libevent signal
35206       handler should be processing them. This should prevent some crashes
35207       on some machines using pthreads. (Patch from coderman.)
35208     - Fix switched arguments on memset in the implementation of
35209       tor_munmap() for systems with no mmap() call.
35210     - When Tor receives a router descriptor that it asked for, but
35211       no longer wants (because it has received fresh networkstatuses
35212       in the meantime), do not warn the user. Cache the descriptor if
35213       we're a cache; drop it if we aren't.
35214     - Make earlier entry guards _really_ get retried when the network
35215       comes back online.
35216     - On a malformed DNS reply, always give an error to the corresponding
35217       DNS request.
35218     - Build with recent libevents on platforms that do not define the
35219       nonstandard types "u_int8_t" and friends.
35221   o Minor features (controller):
35222     - Warn the user when an application uses the obsolete binary v0
35223       control protocol. We're planning to remove support for it during
35224       the next development series, so it's good to give people some
35225       advance warning.
35226     - Add STREAM_BW events to report per-entry-stream bandwidth
35227       use. (Patch from Robert Hogan.)
35228     - Rate-limit SIGNEWNYM signals in response to controllers that
35229       impolitely generate them for every single stream. (Patch from
35230       mwenge; closes bug 394.)
35231     - Make REMAP stream events have a SOURCE (cache or exit), and
35232       make them generated in every case where we get a successful
35233       connected or resolved cell.
35235   o Minor bugfixes (performance):
35236     - Call router_have_min_dir_info half as often. (This is showing up in
35237       some profiles, but not others.)
35238     - When using GCC, make log_debug never get called at all, and its
35239       arguments never get evaluated, when no debug logs are configured.
35240       (This is showing up in some profiles, but not others.)
35242   o Minor features:
35243     - Remove some never-implemented options. Mark PathlenCoinWeight as
35244       obsolete.
35245     - Implement proposal 106: Stop requiring clients to have well-formed
35246       certificates; stop checking nicknames in certificates. (Clients
35247       have certificates so that they can look like Tor servers, but in
35248       the future we might want to allow them to look like regular TLS
35249       clients instead. Nicknames in certificates serve no purpose other
35250       than making our protocol easier to recognize on the wire.)
35251     - Revise messages on handshake failure again to be even more clear about
35252       which are incoming connections and which are outgoing.
35253     - Discard any v1 directory info that's over 1 month old (for
35254       directories) or over 1 week old (for running-routers lists).
35255     - Do not warn when individual nodes in the configuration's EntryNodes,
35256       ExitNodes, etc are down: warn only when all possible nodes
35257       are down. (Fixes bug 348.)
35258     - Always remove expired routers and networkstatus docs before checking
35259       whether we have enough information to build circuits. (Fixes
35260       bug 373.)
35261     - Put a lower-bound on MaxAdvertisedBandwidth.
35264 Changes in version 0.1.2.7-alpha - 2007-02-06
35265   o Major bugfixes (rate limiting):
35266     - Servers decline directory requests much more aggressively when
35267       they're low on bandwidth. Otherwise they end up queueing more and
35268       more directory responses, which can't be good for latency.
35269     - But never refuse directory requests from local addresses.
35270     - Fix a memory leak when sending a 503 response for a networkstatus
35271       request.
35272     - Be willing to read or write on local connections (e.g. controller
35273       connections) even when the global rate limiting buckets are empty.
35274     - If our system clock jumps back in time, don't publish a negative
35275       uptime in the descriptor. Also, don't let the global rate limiting
35276       buckets go absurdly negative.
35277     - Flush local controller connection buffers periodically as we're
35278       writing to them, so we avoid queueing 4+ megabytes of data before
35279       trying to flush.
35281   o Major bugfixes (NT services):
35282     - Install as NT_AUTHORITY\LocalService rather than as SYSTEM; add a
35283       command-line flag so that admins can override the default by saying
35284       "tor --service install --user "SomeUser"". This will not affect
35285       existing installed services. Also, warn the user that the service
35286       will look for its configuration file in the service user's
35287       %appdata% directory. (We can't do the 'hardwire the user's appdata
35288       directory' trick any more, since we may not have read access to that
35289       directory.)
35291   o Major bugfixes (other):
35292     - Previously, we would cache up to 16 old networkstatus documents
35293       indefinitely, if they came from nontrusted authorities. Now we
35294       discard them if they are more than 10 days old.
35295     - Fix a crash bug in the presence of DNS hijacking (reported by Andrew
35296       Del Vecchio).
35297     - Detect and reject malformed DNS responses containing circular
35298       pointer loops.
35299     - If exits are rare enough that we're not marking exits as guards,
35300       ignore exit bandwidth when we're deciding the required bandwidth
35301       to become a guard.
35302     - When we're handling a directory connection tunneled over Tor,
35303       don't fill up internal memory buffers with all the data we want
35304       to tunnel; instead, only add it if the OR connection that will
35305       eventually receive it has some room for it. (This can lead to
35306       slowdowns in tunneled dir connections; a better solution will have
35307       to wait for 0.2.0.)
35309   o Minor bugfixes (dns):
35310     - Add some defensive programming to eventdns.c in an attempt to catch
35311       possible memory-stomping bugs.
35312     - Detect and reject DNS replies containing IPv4 or IPv6 records with
35313       an incorrect number of bytes. (Previously, we would ignore the
35314       extra bytes.)
35315     - Fix as-yet-unused reverse IPv6 lookup code so it sends nybbles
35316       in the correct order, and doesn't crash.
35317     - Free memory held in recently-completed DNS lookup attempts on exit.
35318       This was not a memory leak, but may have been hiding memory leaks.
35319     - Handle TTL values correctly on reverse DNS lookups.
35320     - Treat failure to parse resolv.conf as an error.
35322   o Minor bugfixes (other):
35323     - Fix crash with "tor --list-fingerprint" (reported by seeess).
35324     - When computing clock skew from directory HTTP headers, consider what
35325       time it was when we finished asking for the directory, not what
35326       time it is now.
35327     - Expire socks connections if they spend too long waiting for the
35328       handshake to finish. Previously we would let them sit around for
35329       days, if the connecting application didn't close them either.
35330     - And if the socks handshake hasn't started, don't send a
35331       "DNS resolve socks failed" handshake reply; just close it.
35332     - Stop using C functions that OpenBSD's linker doesn't like.
35333     - Don't launch requests for descriptors unless we have networkstatuses
35334       from at least half of the authorities. This delays the first
35335       download slightly under pathological circumstances, but can prevent
35336       us from downloading a bunch of descriptors we don't need.
35337     - Do not log IPs with TLS failures for incoming TLS
35338       connections. (Fixes bug 382.)
35339     - If the user asks to use invalid exit nodes, be willing to use
35340       unstable ones.
35341     - Stop using the reserved ac_cv namespace in our configure script.
35342     - Call stat() slightly less often; use fstat() when possible.
35343     - Refactor the way we handle pending circuits when an OR connection
35344       completes or fails, in an attempt to fix a rare crash bug.
35345     - Only rewrite a conn's address based on X-Forwarded-For: headers
35346       if it's a parseable public IP address; and stop adding extra quotes
35347       to the resulting address.
35349   o Major features:
35350     - Weight directory requests by advertised bandwidth. Now we can
35351       let servers enable write limiting but still allow most clients to
35352       succeed at their directory requests. (We still ignore weights when
35353       choosing a directory authority; I hope this is a feature.)
35355   o Minor features:
35356     - Create a new file ReleaseNotes which was the old ChangeLog. The
35357       new ChangeLog file now includes the summaries for all development
35358       versions too.
35359     - Check for addresses with invalid characters at the exit as well
35360       as at the client, and warn less verbosely when they fail. You can
35361       override this by setting ServerDNSAllowNonRFC953Addresses to 1.
35362     - Adapt a patch from goodell to let the contrib/exitlist script
35363       take arguments rather than require direct editing.
35364     - Inform the server operator when we decide not to advertise a
35365       DirPort due to AccountingMax enabled or a low BandwidthRate. It
35366       was confusing Zax, so now we're hopefully more helpful.
35367     - Bring us one step closer to being able to establish an encrypted
35368       directory tunnel without knowing a descriptor first. Still not
35369       ready yet. As part of the change, now assume we can use a
35370       create_fast cell if we don't know anything about a router.
35371     - Allow exit nodes to use nameservers running on ports other than 53.
35372     - Servers now cache reverse DNS replies.
35373     - Add an --ignore-missing-torrc command-line option so that we can
35374       get the "use sensible defaults if the configuration file doesn't
35375       exist" behavior even when specifying a torrc location on the command
35376       line.
35378   o Minor features (controller):
35379     - Track reasons for OR connection failure; make these reasons
35380       available via the controller interface. (Patch from Mike Perry.)
35381     - Add a SOCKS_BAD_HOSTNAME client status event so controllers
35382       can learn when clients are sending malformed hostnames to Tor.
35383     - Clean up documentation for controller status events.
35384     - Add a REMAP status to stream events to note that a stream's
35385       address has changed because of a cached address or a MapAddress
35386       directive.
35389 Changes in version 0.1.2.6-alpha - 2007-01-09
35390   o Major bugfixes:
35391     - Fix an assert error introduced in 0.1.2.5-alpha: if a single TLS
35392       connection handles more than 4 gigs in either direction, we crash.
35393     - Fix an assert error introduced in 0.1.2.5-alpha: if we're an
35394       advertised exit node, somebody might try to exit from us when
35395       we're bootstrapping and before we've built our descriptor yet.
35396       Refuse the connection rather than crashing.
35398   o Minor bugfixes:
35399     - Warn if we (as a server) find that we've resolved an address that we
35400       weren't planning to resolve.
35401     - Warn that using select() on any libevent version before 1.1 will be
35402       unnecessarily slow (even for select()).
35403     - Flush ERR-level controller status events just like we currently
35404       flush ERR-level log events, so that a Tor shutdown doesn't prevent
35405       the controller from learning about current events.
35407   o Minor features (more controller status events):
35408     - Implement EXTERNAL_ADDRESS server status event so controllers can
35409       learn when our address changes.
35410     - Implement BAD_SERVER_DESCRIPTOR server status event so controllers
35411       can learn when directories reject our descriptor.
35412     - Implement SOCKS_UNKNOWN_PROTOCOL client status event so controllers
35413       can learn when a client application is speaking a non-socks protocol
35414       to our SocksPort.
35415     - Implement DANGEROUS_SOCKS client status event so controllers
35416       can learn when a client application is leaking DNS addresses.
35417     - Implement BUG general status event so controllers can learn when
35418       Tor is unhappy about its internal invariants.
35419     - Implement CLOCK_SKEW general status event so controllers can learn
35420       when Tor thinks the system clock is set incorrectly.
35421     - Implement GOOD_SERVER_DESCRIPTOR and ACCEPTED_SERVER_DESCRIPTOR
35422       server status events so controllers can learn when their descriptors
35423       are accepted by a directory.
35424     - Implement CHECKING_REACHABILITY and REACHABILITY_{SUCCEEDED|FAILED}
35425       server status events so controllers can learn about Tor's progress in
35426       deciding whether it's reachable from the outside.
35427     - Implement BAD_LIBEVENT general status event so controllers can learn
35428       when we have a version/method combination in libevent that needs to
35429       be changed.
35430     - Implement NAMESERVER_STATUS, NAMESERVER_ALL_DOWN, DNS_HIJACKED,
35431       and DNS_USELESS server status events so controllers can learn
35432       about changes to DNS server status.
35434   o Minor features (directory):
35435     - Authorities no longer recommend exits as guards if this would shift
35436       too much load to the exit nodes.
35439 Changes in version 0.1.2.5-alpha - 2007-01-06
35440   o Major features:
35441     - Enable write limiting as well as read limiting. Now we sacrifice
35442       capacity if we're pushing out lots of directory traffic, rather
35443       than overrunning the user's intended bandwidth limits.
35444     - Include TLS overhead when counting bandwidth usage; previously, we
35445       would count only the bytes sent over TLS, but not the bytes used
35446       to send them.
35447     - Support running the Tor service with a torrc not in the same
35448       directory as tor.exe and default to using the torrc located in
35449       the %appdata%\Tor\ of the user who installed the service. Patch
35450       from Matt Edman.
35451     - Servers now check for the case when common DNS requests are going to
35452       wildcarded addresses (i.e. all getting the same answer), and change
35453       their exit policy to reject *:* if it's happening.
35454     - Implement BEGIN_DIR cells, so we can connect to the directory
35455       server via TLS to do encrypted directory requests rather than
35456       plaintext. Enable via the TunnelDirConns and PreferTunneledDirConns
35457       config options if you like.
35459   o Minor features (config and docs):
35460     - Start using the state file to store bandwidth accounting data:
35461       the bw_accounting file is now obsolete. We'll keep generating it
35462       for a while for people who are still using 0.1.2.4-alpha.
35463     - Try to batch changes to the state file so that we do as few
35464       disk writes as possible while still storing important things in
35465       a timely fashion.
35466     - The state file and the bw_accounting file get saved less often when
35467       the AvoidDiskWrites config option is set.
35468     - Make PIDFile work on Windows (untested).
35469     - Add internal descriptions for a bunch of configuration options:
35470       accessible via controller interface and in comments in saved
35471       options files.
35472     - Reject *:563 (NNTPS) in the default exit policy. We already reject
35473       NNTP by default, so this seems like a sensible addition.
35474     - Clients now reject hostnames with invalid characters. This should
35475       avoid some inadvertent info leaks. Add an option
35476       AllowNonRFC953Hostnames to disable this behavior, in case somebody
35477       is running a private network with hosts called @, !, and #.
35478     - Add a maintainer script to tell us which options are missing
35479       documentation: "make check-docs".
35480     - Add a new address-spec.txt document to describe our special-case
35481       addresses: .exit, .onion, and .noconnnect.
35483   o Minor features (DNS):
35484     - Ongoing work on eventdns infrastructure: now it has dns server
35485       and ipv6 support. One day Tor will make use of it.
35486     - Add client-side caching for reverse DNS lookups.
35487     - Add support to tor-resolve tool for reverse lookups and SOCKS5.
35488     - When we change nameservers or IP addresses, reset and re-launch
35489       our tests for DNS hijacking.
35491   o Minor features (directory):
35492     - Authorities now specify server versions in networkstatus. This adds
35493       about 2% to the size of compressed networkstatus docs, and allows
35494       clients to tell which servers support BEGIN_DIR and which don't.
35495       The implementation is forward-compatible with a proposed future
35496       protocol version scheme not tied to Tor versions.
35497     - DirServer configuration lines now have an orport= option so
35498       clients can open encrypted tunnels to the authorities without
35499       having downloaded their descriptors yet. Enabled for moria1,
35500       moria2, tor26, and lefkada now in the default configuration.
35501     - Directory servers are more willing to send a 503 "busy" if they
35502       are near their write limit, especially for v1 directory requests.
35503       Now they can use their limited bandwidth for actual Tor traffic.
35504     - Clients track responses with status 503 from dirservers. After a
35505       dirserver has given us a 503, we try not to use it until an hour has
35506       gone by, or until we have no dirservers that haven't given us a 503.
35507     - When we get a 503 from a directory, and we're not a server, we don't
35508       count the failure against the total number of failures allowed
35509       for the thing we're trying to download.
35510     - Report X-Your-Address-Is correctly from tunneled directory
35511       connections; don't report X-Your-Address-Is when it's an internal
35512       address; and never believe reported remote addresses when they're
35513       internal.
35514     - Protect against an unlikely DoS attack on directory servers.
35515     - Add a BadDirectory flag to network status docs so that authorities
35516       can (eventually) tell clients about caches they believe to be
35517       broken.
35519   o Minor features (controller):
35520     - Have GETINFO dir/status/* work on hosts with DirPort disabled.
35521     - Reimplement GETINFO so that info/names stays in sync with the
35522       actual keys.
35523     - Implement "GETINFO fingerprint".
35524     - Implement "SETEVENTS GUARD" so controllers can get updates on
35525       entry guard status as it changes.
35527   o Minor features (clean up obsolete pieces):
35528     - Remove some options that have been deprecated since at least
35529       0.1.0.x: AccountingMaxKB, LogFile, DebugLogFile, LogLevel, and
35530       SysLog. Use AccountingMax instead of AccountingMaxKB, and use Log
35531       to set log options.
35532     - We no longer look for identity and onion keys in "identity.key" and
35533       "onion.key" -- these were replaced by secret_id_key and
35534       secret_onion_key in 0.0.8pre1.
35535     - We no longer require unrecognized directory entries to be
35536       preceded by "opt".
35538   o Major bugfixes (security):
35539     - Stop sending the HttpProxyAuthenticator string to directory
35540       servers when directory connections are tunnelled through Tor.
35541     - Clients no longer store bandwidth history in the state file.
35542     - Do not log introduction points for hidden services if SafeLogging
35543       is set.
35544     - When generating bandwidth history, round down to the nearest
35545       1k. When storing accounting data, round up to the nearest 1k.
35546     - When we're running as a server, remember when we last rotated onion
35547       keys, so that we will rotate keys once they're a week old even if
35548       we never stay up for a week ourselves.
35550   o Major bugfixes (other):
35551     - Fix a longstanding bug in eventdns that prevented the count of
35552       timed-out resolves from ever being reset. This bug caused us to
35553       give up on a nameserver the third time it timed out, and try it
35554       10 seconds later... and to give up on it every time it timed out
35555       after that.
35556     - Take out the '5 second' timeout from the connection retry
35557       schedule. Now the first connect attempt will wait a full 10
35558       seconds before switching to a new circuit. Perhaps this will help
35559       a lot. Based on observations from Mike Perry.
35560     - Fix a bug on the Windows implementation of tor_mmap_file() that
35561       would prevent the cached-routers file from ever loading. Reported
35562       by John Kimble.
35564   o Minor bugfixes:
35565     - Fix an assert failure when a directory authority sets
35566       AuthDirRejectUnlisted and then receives a descriptor from an
35567       unlisted router. Reported by seeess.
35568     - Avoid a double-free when parsing malformed DirServer lines.
35569     - Fix a bug when a BSD-style PF socket is first used. Patch from
35570       Fabian Keil.
35571     - Fix a bug in 0.1.2.2-alpha that prevented clients from asking
35572       to resolve an address at a given exit node even when they ask for
35573       it by name.
35574     - Servers no longer ever list themselves in their "family" line,
35575       even if configured to do so. This makes it easier to configure
35576       family lists conveniently.
35577     - When running as a server, don't fall back to 127.0.0.1 when no
35578       nameservers are configured in /etc/resolv.conf; instead, make the
35579       user fix resolv.conf or specify nameservers explicitly. (Resolves
35580       bug 363.)
35581     - Stop accepting certain malformed ports in configured exit policies.
35582     - Don't re-write the fingerprint file every restart, unless it has
35583       changed.
35584     - Stop warning when a single nameserver fails: only warn when _all_ of
35585       our nameservers have failed. Also, when we only have one nameserver,
35586       raise the threshold for deciding that the nameserver is dead.
35587     - Directory authorities now only decide that routers are reachable
35588       if their identity keys are as expected.
35589     - When the user uses bad syntax in the Log config line, stop
35590       suggesting other bad syntax as a replacement.
35591     - Correctly detect ipv6 DNS capability on OpenBSD.
35593   o Minor bugfixes (controller):
35594     - Report the circuit number correctly in STREAM CLOSED events. Bug
35595       reported by Mike Perry.
35596     - Do not report bizarre values for results of accounting GETINFOs
35597       when the last second's write or read exceeds the allotted bandwidth.
35598     - Report "unrecognized key" rather than an empty string when the
35599       controller tries to fetch a networkstatus that doesn't exist.
35602 Changes in version 0.1.1.26 - 2006-12-14
35603   o Security bugfixes:
35604     - Stop sending the HttpProxyAuthenticator string to directory
35605       servers when directory connections are tunnelled through Tor.
35606     - Clients no longer store bandwidth history in the state file.
35607     - Do not log introduction points for hidden services if SafeLogging
35608       is set.
35610   o Minor bugfixes:
35611     - Fix an assert failure when a directory authority sets
35612       AuthDirRejectUnlisted and then receives a descriptor from an
35613       unlisted router (reported by seeess).
35616 Changes in version 0.1.2.4-alpha - 2006-12-03
35617   o Major features:
35618     - Add support for using natd; this allows FreeBSDs earlier than
35619       5.1.2 to have ipfw send connections through Tor without using
35620       SOCKS. (Patch from Zajcev Evgeny with tweaks from tup.)
35622   o Minor features:
35623     - Make all connections to addresses of the form ".noconnect"
35624       immediately get closed. This lets application/controller combos
35625       successfully test whether they're talking to the same Tor by
35626       watching for STREAM events.
35627     - Make cross.sh cross-compilation script work even when autogen.sh
35628       hasn't been run. (Patch from Michael Mohr.)
35629     - Statistics dumped by -USR2 now include a breakdown of public key
35630       operations, for profiling.
35632   o Major bugfixes:
35633     - Fix a major leak when directory authorities parse their
35634       approved-routers list, a minor memory leak when we fail to pick
35635       an exit node, and a few rare leaks on errors.
35636     - Handle TransPort connections even when the server sends data before
35637       the client sends data. Previously, the connection would just hang
35638       until the client sent data. (Patch from tup based on patch from
35639       Zajcev Evgeny.)
35640     - Avoid assert failure when our cached-routers file is empty on
35641       startup.
35643   o Minor bugfixes:
35644     - Don't log spurious warnings when we see a circuit close reason we
35645       don't recognize; it's probably just from a newer version of Tor.
35646     - Have directory authorities allow larger amounts of drift in uptime
35647       without replacing the server descriptor: previously, a server that
35648       restarted every 30 minutes could have 48 "interesting" descriptors
35649       per day.
35650     - Start linking to the Tor specification and Tor reference manual
35651       correctly in the Windows installer.
35652     - Add Vidalia to the OS X uninstaller script, so when we uninstall
35653       Tor/Privoxy we also uninstall Vidalia.
35654     - Resume building on Irix64, and fix a lot of warnings from its
35655       MIPSpro C compiler.
35656     - Don't corrupt last_guessed_ip in router_new_address_suggestion()
35657       when we're running as a client.
35660 Changes in version 0.1.1.25 - 2006-11-04
35661   o Major bugfixes:
35662     - When a client asks us to resolve (rather than connect to)
35663       an address, and we have a cached answer, give them the cached
35664       answer. Previously, we would give them no answer at all.
35665     - We were building exactly the wrong circuits when we predict
35666       hidden service requirements, meaning Tor would have to build all
35667       its circuits on demand.
35668     - If none of our live entry guards have a high uptime, but we
35669       require a guard with a high uptime, try adding a new guard before
35670       we give up on the requirement. This patch should make long-lived
35671       connections more stable on average.
35672     - When testing reachability of our DirPort, don't launch new
35673       tests when there's already one in progress -- unreachable
35674       servers were stacking up dozens of testing streams.
35676   o Security bugfixes:
35677     - When the user sends a NEWNYM signal, clear the client-side DNS
35678       cache too. Otherwise we continue to act on previous information.
35680   o Minor bugfixes:
35681     - Avoid a memory corruption bug when creating a hash table for
35682       the first time.
35683     - Avoid possibility of controller-triggered crash when misusing
35684       certain commands from a v0 controller on platforms that do not
35685       handle printf("%s",NULL) gracefully.
35686     - Avoid infinite loop on unexpected controller input.
35687     - Don't log spurious warnings when we see a circuit close reason we
35688       don't recognize; it's probably just from a newer version of Tor.
35689     - Add Vidalia to the OS X uninstaller script, so when we uninstall
35690       Tor/Privoxy we also uninstall Vidalia.
35693 Changes in version 0.1.2.3-alpha - 2006-10-29
35694   o Minor features:
35695     - Prepare for servers to publish descriptors less often: never
35696       discard a descriptor simply for being too old until either it is
35697       recommended by no authorities, or until we get a better one for
35698       the same router. Make caches consider retaining old recommended
35699       routers for even longer.
35700     - If most authorities set a BadExit flag for a server, clients
35701       don't think of it as a general-purpose exit. Clients only consider
35702       authorities that advertise themselves as listing bad exits.
35703     - Directory servers now provide 'Pragma: no-cache' and 'Expires'
35704       headers for content, so that we can work better in the presence of
35705       caching HTTP proxies.
35706     - Allow authorities to list nodes as bad exits by fingerprint or by
35707       address.
35709   o Minor features, controller:
35710     - Add a REASON field to CIRC events; for backward compatibility, this
35711       field is sent only to controllers that have enabled the extended
35712       event format. Also, add additional reason codes to explain why
35713       a given circuit has been destroyed or truncated. (Patches from
35714       Mike Perry)
35715     - Add a REMOTE_REASON field to extended CIRC events to tell the
35716       controller about why a remote OR told us to close a circuit.
35717     - Stream events also now have REASON and REMOTE_REASON fields,
35718       working much like those for circuit events.
35719     - There's now a GETINFO ns/... field so that controllers can ask Tor
35720       about the current status of a router.
35721     - A new event type "NS" to inform a controller when our opinion of
35722       a router's status has changed.
35723     - Add a GETINFO events/names and GETINFO features/names so controllers
35724       can tell which events and features are supported.
35725     - A new CLEARDNSCACHE signal to allow controllers to clear the
35726       client-side DNS cache without expiring circuits.
35728   o Security bugfixes:
35729     - When the user sends a NEWNYM signal, clear the client-side DNS
35730       cache too. Otherwise we continue to act on previous information.
35732   o Minor bugfixes:
35733     - Avoid sending junk to controllers or segfaulting when a controller
35734       uses EVENT_NEW_DESC with verbose nicknames.
35735     - Stop triggering asserts if the controller tries to extend hidden
35736       service circuits (reported by mwenge).
35737     - Avoid infinite loop on unexpected controller input.
35738     - When the controller does a "GETINFO network-status", tell it
35739       about even those routers whose descriptors are very old, and use
35740       long nicknames where appropriate.
35741     - Change NT service functions to be loaded on demand. This lets us
35742       build with MinGW without breaking Tor for Windows 98 users.
35743     - Do DirPort reachability tests less often, since a single test
35744       chews through many circuits before giving up.
35745     - In the hidden service example in torrc.sample, stop recommending
35746       esoteric and discouraged hidden service options.
35747     - When stopping an NT service, wait up to 10 sec for it to actually
35748       stop. Patch from Matt Edman; resolves bug 295.
35749     - Fix handling of verbose nicknames with ORCONN controller events:
35750       make them show up exactly when requested, rather than exactly when
35751       not requested.
35752     - When reporting verbose nicknames in entry_guards_getinfo(), avoid
35753       printing a duplicate "$" in the keys we send (reported by mwenge).
35754     - Correctly set maximum connection limit on Cygwin. (This time
35755       for sure!)
35756     - Try to detect Windows correctly when cross-compiling.
35757     - Detect the size of the routers file correctly even if it is
35758       corrupted (on systems without mmap) or not page-aligned (on systems
35759       with mmap). This bug was harmless.
35760     - Sometimes we didn't bother sending a RELAY_END cell when an attempt
35761       to open a stream fails; now we do in more cases. This should
35762       make clients able to find a good exit faster in some cases, since
35763       unhandleable requests will now get an error rather than timing out.
35764     - Resolve two memory leaks when rebuilding the on-disk router cache
35765       (reported by fookoowa).
35766     - Clean up minor code warnings suggested by the MIPSpro C compiler,
35767       and reported by some Centos users.
35768     - Controller signals now work on non-Unix platforms that don't define
35769       SIGUSR1 and SIGUSR2 the way we expect.
35770     - Patch from Michael Mohr to contrib/cross.sh, so it checks more
35771       values before failing, and always enables eventdns.
35772     - Libevent-1.2 exports, but does not define in its headers, strlcpy.
35773       Try to fix this in configure.in by checking for most functions
35774       before we check for libevent.
35777 Changes in version 0.1.2.2-alpha - 2006-10-07
35778   o Major features:
35779     - Make our async eventdns library on-by-default for Tor servers,
35780       and plan to deprecate the separate dnsworker threads.
35781     - Add server-side support for "reverse" DNS lookups (using PTR
35782       records so clients can determine the canonical hostname for a given
35783       IPv4 address). Only supported by servers using eventdns; servers
35784       now announce in their descriptors whether they support eventdns.
35785     - Specify and implement client-side SOCKS5 interface for reverse DNS
35786       lookups (see doc/socks-extensions.txt).
35787     - Add a BEGIN_DIR relay cell type for an easier in-protocol way to
35788       connect to directory servers through Tor. Previously, clients needed
35789       to find Tor exits to make private connections to directory servers.
35790     - Avoid choosing Exit nodes for entry or middle hops when the
35791       total bandwidth available from non-Exit nodes is much higher than
35792       the total bandwidth available from Exit nodes.
35793     - Workaround for name servers (like Earthlink's) that hijack failing
35794       DNS requests and replace the no-such-server answer with a "helpful"
35795       redirect to an advertising-driven search portal. Also work around
35796       DNS hijackers who "helpfully" decline to hijack known-invalid
35797       RFC2606 addresses. Config option "ServerDNSDetectHijacking 0"
35798       lets you turn it off.
35799     - Send out a burst of long-range padding cells once we've established
35800       that we're reachable. Spread them over 4 circuits, so hopefully
35801       a few will be fast. This exercises our bandwidth and bootstraps
35802       us into the directory more quickly.
35804   o New/improved config options:
35805     - Add new config option "ResolvConf" to let the server operator
35806       choose an alternate resolve.conf file when using eventdns.
35807     - Add an "EnforceDistinctSubnets" option to control our "exclude
35808       servers on the same /16" behavior. It's still on by default; this
35809       is mostly for people who want to operate private test networks with
35810       all the machines on the same subnet.
35811     - If one of our entry guards is on the ExcludeNodes list, or the
35812       directory authorities don't think it's a good guard, treat it as
35813       if it were unlisted: stop using it as a guard, and throw it off
35814       the guards list if it stays that way for a long time.
35815     - Allow directory authorities to be marked separately as authorities
35816       for the v1 directory protocol, the v2 directory protocol, and
35817       as hidden service directories, to make it easier to retire old
35818       authorities. V1 authorities should set "HSAuthoritativeDir 1"
35819       to continue being hidden service authorities too.
35820     - Remove 8888 as a LongLivedPort, and add 6697 (IRCS).
35822   o Minor features, controller:
35823     - Fix CIRC controller events so that controllers can learn the
35824       identity digests of non-Named servers used in circuit paths.
35825     - Let controllers ask for more useful identifiers for servers. Instead
35826       of learning identity digests for un-Named servers and nicknames
35827       for Named servers, the new identifiers include digest, nickname,
35828       and indication of Named status. Off by default; see control-spec.txt
35829       for more information.
35830     - Add a "getinfo address" controller command so it can display Tor's
35831       best guess to the user.
35832     - New controller event to alert the controller when our server
35833       descriptor has changed.
35834     - Give more meaningful errors on controller authentication failure.
35836   o Minor features, other:
35837     - When asked to resolve a hostname, don't use non-exit servers unless
35838       requested to do so. This allows servers with broken DNS to be
35839       useful to the network.
35840     - Divide eventdns log messages into warn and info messages.
35841     - Reserve the nickname "Unnamed" for routers that can't pick
35842       a hostname: any router can call itself Unnamed; directory
35843       authorities will never allocate Unnamed to any particular router;
35844       clients won't believe that any router is the canonical Unnamed.
35845     - Only include function names in log messages for info/debug messages.
35846       For notice/warn/err, the content of the message should be clear on
35847       its own, and printing the function name only confuses users.
35848     - Avoid some false positives during reachability testing: don't try
35849       to test via a server that's on the same /24 as us.
35850     - If we fail to build a circuit to an intended enclave, and it's
35851       not mandatory that we use that enclave, stop wanting it.
35852     - When eventdns is enabled, allow multithreaded builds on NetBSD and
35853       OpenBSD. (We had previously disabled threads on these platforms
35854       because they didn't have working thread-safe resolver functions.)
35856   o Major bugfixes, anonymity/security:
35857     - If a client asked for a server by name, and there's a named server
35858       in our network-status but we don't have its descriptor yet, we
35859       could return an unnamed server instead.
35860     - Fix NetBSD bug that could allow someone to force uninitialized RAM
35861       to be sent to a server's DNS resolver. This only affects NetBSD
35862       and other platforms that do not bounds-check tolower().
35863     - Reject (most) attempts to use Tor circuits with length one. (If
35864       many people start using Tor as a one-hop proxy, exit nodes become
35865       a more attractive target for compromise.)
35866     - Just because your DirPort is open doesn't mean people should be
35867       able to remotely teach you about hidden service descriptors. Now
35868       only accept rendezvous posts if you've got HSAuthoritativeDir set.
35870   o Major bugfixes, other:
35871     - Don't crash on race condition in dns.c: tor_assert(!resolve->expire)
35872     - When a client asks the server to resolve (not connect to)
35873       an address, and it has a cached answer, give them the cached answer.
35874       Previously, the server would give them no answer at all.
35875     - Allow really slow clients to not hang up five minutes into their
35876       directory downloads (suggested by Adam J. Richter).
35877     - We were building exactly the wrong circuits when we anticipated
35878       hidden service requirements, meaning Tor would have to build all
35879       its circuits on demand.
35880     - Avoid crashing when we mmap a router cache file of size 0.
35881     - When testing reachability of our DirPort, don't launch new
35882       tests when there's already one in progress -- unreachable
35883       servers were stacking up dozens of testing streams.
35885   o Minor bugfixes, correctness:
35886     - If we're a directory mirror and we ask for "all" network status
35887       documents, we would discard status documents from authorities
35888       we don't recognize.
35889     - Avoid a memory corruption bug when creating a hash table for
35890       the first time.
35891     - Avoid controller-triggered crash when misusing certain commands
35892       from a v0 controller on platforms that do not handle
35893       printf("%s",NULL) gracefully.
35894     - Don't crash when a controller sends a third argument to an
35895       "extendcircuit" request.
35896     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
35897       response; fix error code when "getinfo dir/status/" fails.
35898     - Avoid crash when telling controller stream-status and a stream
35899       is detached.
35900     - Patch from Adam Langley to fix assert() in eventdns.c.
35901     - Fix a debug log message in eventdns to say "X resolved to Y"
35902       instead of "X resolved to X".
35903     - Make eventdns give strings for DNS errors, not just error numbers.
35904     - Track unreachable entry guards correctly: don't conflate
35905       'unreachable by us right now' with 'listed as down by the directory
35906       authorities'. With the old code, if a guard was unreachable by
35907       us but listed as running, it would clog our guard list forever.
35908     - Behave correctly in case we ever have a network with more than
35909       2GB/s total advertised capacity.
35910     - Make TrackExitHosts case-insensitive, and fix the behavior of
35911       ".suffix" TrackExitHosts items to avoid matching in the middle of
35912       an address.
35913     - Finally fix the openssl warnings from newer gccs that believe that
35914       ignoring a return value is okay, but casting a return value and
35915       then ignoring it is a sign of madness.
35916     - Prevent the contrib/exitlist script from printing the same
35917       result more than once.
35918     - Patch from Steve Hildrey: Generate network status correctly on
35919       non-versioning dirservers.
35920     - Don't listen to the X-Your-Address-Is hint if you did the lookup
35921       via Tor; otherwise you'll think you're the exit node's IP address.
35923   o Minor bugfixes, performance:
35924     - Two small performance improvements on parsing descriptors.
35925     - Major performance improvement on inserting descriptors: change
35926       algorithm from O(n^2) to O(n).
35927     - Make the common memory allocation path faster on machines where
35928       malloc(0) returns a pointer.
35929     - Start remembering X-Your-Address-Is directory hints even if you're
35930       a client, so you can become a server more smoothly.
35931     - Avoid duplicate entries on MyFamily line in server descriptor.
35933   o Packaging, features:
35934     - Remove architecture from OS X builds. The official builds are
35935       now universal binaries.
35936     - The Debian package now uses --verify-config when (re)starting,
35937       to distinguish configuration errors from other errors.
35938     - Update RPMs to require libevent 1.1b.
35940   o Packaging, bugfixes:
35941     - Patches so Tor builds with MinGW on Windows.
35942     - Patches so Tor might run on Cygwin again.
35943     - Resume building on non-gcc compilers and ancient gcc. Resume
35944       building with the -O0 compile flag. Resume building cleanly on
35945       Debian woody.
35946     - Run correctly on OS X platforms with case-sensitive filesystems.
35947     - Correct includes for net/if.h and net/pfvar.h on OpenBSD (from Tup).
35948     - Add autoconf checks so Tor can build on Solaris x86 again.
35950   o Documentation
35951     - Documented (and renamed) ServerDNSSearchDomains and
35952       ServerDNSResolvConfFile options.
35953     - Be clearer that the *ListenAddress directives can be repeated
35954       multiple times.
35957 Changes in version 0.1.1.24 - 2006-09-29
35958   o Major bugfixes:
35959     - Allow really slow clients to not hang up five minutes into their
35960       directory downloads (suggested by Adam J. Richter).
35961     - Fix major performance regression from 0.1.0.x: instead of checking
35962       whether we have enough directory information every time we want to
35963       do something, only check when the directory information has changed.
35964       This should improve client CPU usage by 25-50%.
35965     - Don't crash if, after a server has been running for a while,
35966       it can't resolve its hostname.
35968   o Minor bugfixes:
35969     - Allow Tor to start when RunAsDaemon is set but no logs are set.
35970     - Don't crash when the controller receives a third argument to an
35971       "extendcircuit" request.
35972     - Controller protocol fixes: fix encoding in "getinfo addr-mappings"
35973       response; fix error code when "getinfo dir/status/" fails.
35974     - Fix configure.in to not produce broken configure files with
35975       more recent versions of autoconf. Thanks to Clint for his auto*
35976       voodoo.
35977     - Fix security bug on NetBSD that could allow someone to force
35978       uninitialized RAM to be sent to a server's DNS resolver. This
35979       only affects NetBSD and other platforms that do not bounds-check
35980       tolower().
35981     - Warn user when using libevent 1.1a or earlier with win32 or kqueue
35982       methods: these are known to be buggy.
35983     - If we're a directory mirror and we ask for "all" network status
35984       documents, we would discard status documents from authorities
35985       we don't recognize.
35988 Changes in version 0.1.2.1-alpha - 2006-08-27
35989   o Major features:
35990     - Add "eventdns" async dns library from Adam Langley, tweaked to
35991       build on OSX and Windows. Only enabled if you pass the
35992       --enable-eventdns argument to configure.
35993     - Allow servers with no hostname or IP address to learn their
35994       IP address by asking the directory authorities. This code only
35995       kicks in when you would normally have exited with a "no address"
35996       error. Nothing's authenticated, so use with care.
35997     - Rather than waiting a fixed amount of time between retrying
35998       application connections, we wait only 5 seconds for the first,
35999       10 seconds for the second, and 15 seconds for each retry after
36000       that. Hopefully this will improve the expected user experience.
36001     - Patch from Tup to add support for transparent AP connections:
36002       this basically bundles the functionality of trans-proxy-tor
36003       into the Tor mainline. Now hosts with compliant pf/netfilter
36004       implementations can redirect TCP connections straight to Tor
36005       without diverting through SOCKS. Needs docs.
36006     - Busy directory servers save lots of memory by spooling server
36007       descriptors, v1 directories, and v2 networkstatus docs to buffers
36008       as needed rather than en masse. Also mmap the cached-routers
36009       files, so we don't need to keep the whole thing in memory too.
36010     - Automatically avoid picking more than one node from the same
36011       /16 network when constructing a circuit.
36012     - Revise and clean up the torrc.sample that we ship with; add
36013       a section for BandwidthRate and BandwidthBurst.
36015   o Minor features:
36016     - Split circuit_t into origin_circuit_t and or_circuit_t, and
36017       split connection_t into edge, or, dir, control, and base structs.
36018       These will save quite a bit of memory on busy servers, and they'll
36019       also help us track down bugs in the code and bugs in the spec.
36020     - Experimentally re-enable kqueue on OSX when using libevent 1.1b
36021       or later. Log when we are doing this, so we can diagnose it when
36022       it fails. (Also, recommend libevent 1.1b for kqueue and
36023       win32 methods; deprecate libevent 1.0b harder; make libevent
36024       recommendation system saner.)
36025     - Start being able to build universal binaries on OS X (thanks
36026       to Phobos).
36027     - Export the default exit policy via the control port, so controllers
36028       don't need to guess what it is / will be later.
36029     - Add a man page entry for ProtocolWarnings.
36030     - Add TestVia config option to the man page.
36031     - Remove even more protocol-related warnings from Tor server logs,
36032       such as bad TLS handshakes and malformed begin cells.
36033     - Stop fetching descriptors if you're not a dir mirror and you
36034       haven't tried to establish any circuits lately. [This currently
36035       causes some dangerous behavior, because when you start up again
36036       you'll use your ancient server descriptors.]
36037     - New DirPort behavior: if you have your dirport set, you download
36038       descriptors aggressively like a directory mirror, whether or not
36039       your ORPort is set.
36040     - Get rid of the router_retry_connections notion. Now routers
36041       no longer try to rebuild long-term connections to directory
36042       authorities, and directory authorities no longer try to rebuild
36043       long-term connections to all servers. We still don't hang up
36044       connections in these two cases though -- we need to look at it
36045       more carefully to avoid flapping, and we likely need to wait til
36046       0.1.1.x is obsolete.
36047     - Drop compatibility with obsolete Tors that permit create cells
36048       to have the wrong circ_id_type.
36049     - Re-enable per-connection rate limiting. Get rid of the "OP
36050       bandwidth" concept. Lay groundwork for "bandwidth classes" --
36051       separate global buckets that apply depending on what sort of conn
36052       it is.
36053     - Start publishing one minute or so after we find our ORPort
36054       to be reachable. This will help reduce the number of descriptors
36055       we have for ourselves floating around, since it's quite likely
36056       other things (e.g. DirPort) will change during that minute too.
36057     - Fork the v1 directory protocol into its own spec document,
36058       and mark dir-spec.txt as the currently correct (v2) spec.
36060   o Major bugfixes:
36061     - When we find our DirPort to be reachable, publish a new descriptor
36062       so we'll tell the world (reported by pnx).
36063     - Publish a new descriptor after we hup/reload. This is important
36064       if our config has changed such that we'll want to start advertising
36065       our DirPort now, etc.
36066     - Allow Tor to start when RunAsDaemon is set but no logs are set.
36067     - When we have a state file we cannot parse, tell the user and
36068       move it aside. Now we avoid situations where the user starts
36069       Tor in 1904, Tor writes a state file with that timestamp in it,
36070       the user fixes her clock, and Tor refuses to start.
36071     - Fix configure.in to not produce broken configure files with
36072       more recent versions of autoconf. Thanks to Clint for his auto*
36073       voodoo.
36074     - "tor --verify-config" now exits with -1(255) or 0 depending on
36075       whether the config options are bad or good.
36076     - Resolve bug 321 when using dnsworkers: append a period to every
36077       address we resolve at the exit node, so that we do not accidentally
36078       pick up local addresses, and so that failing searches are retried
36079       in the resolver search domains. (This is already solved for
36080       eventdns.) (This breaks Blossom servers for now.)
36081     - If we are using an exit enclave and we can't connect, e.g. because
36082       its webserver is misconfigured to not listen on localhost, then
36083       back off and try connecting from somewhere else before we fail.
36085   o Minor bugfixes:
36086     - Start compiling on MinGW on Windows (patches from Mike Chiussi).
36087     - Start compiling on MSVC6 on Windows (patches from Frediano Ziglio).
36088     - Fix bug 314: Tor clients issued "unsafe socks" warnings even
36089       when the IP address is mapped through MapAddress to a hostname.
36090     - Start passing "ipv4" hints to getaddrinfo(), so servers don't do
36091       useless IPv6 DNS resolves.
36092     - Patch suggested by Karsten Loesing: respond to SIGNAL command
36093       before we execute the signal, in case the signal shuts us down.
36094     - Clean up AllowInvalidNodes man page entry.
36095     - Claim a commonname of Tor, rather than TOR, in TLS handshakes.
36096     - Add more asserts to track down an assert error on a windows Tor
36097       server with connection_add being called with socket == -1.
36098     - Handle reporting OR_CONN_EVENT_NEW events to the controller.
36099     - Fix misleading log messages: an entry guard that is "unlisted",
36100       as well as not known to be "down" (because we've never heard
36101       of it), is not therefore "up".
36102     - Remove code to special-case "-cvs" ending, since it has not
36103       actually mattered since 0.0.9.
36104     - Make our socks5 handling more robust to broken socks clients:
36105       throw out everything waiting on the buffer in between socks
36106       handshake phases, since they can't possibly (so the theory
36107       goes) have predicted what we plan to respond to them.
36110 Changes in version 0.1.1.23 - 2006-07-30
36111   o Major bugfixes:
36112     - Fast Tor servers, especially exit nodes, were triggering asserts
36113       due to a bug in handling the list of pending DNS resolves. Some
36114       bugs still remain here; we're hunting them.
36115     - Entry guards could crash clients by sending unexpected input.
36116     - More fixes on reachability testing: if you find yourself reachable,
36117       then don't ever make any client requests (so you stop predicting
36118       circuits), then hup or have your clock jump, then later your IP
36119       changes, you won't think circuits are working, so you won't try to
36120       test reachability, so you won't publish.
36122   o Minor bugfixes:
36123     - Avoid a crash if the controller does a resetconf firewallports
36124       and then a setconf fascistfirewall=1.
36125     - Avoid an integer underflow when the dir authority decides whether
36126       a router is stable: we might wrongly label it stable, and compute
36127       a slightly wrong median stability, when a descriptor is published
36128       later than now.
36129     - Fix a place where we might trigger an assert if we can't build our
36130       own server descriptor yet.
36133 Changes in version 0.1.1.22 - 2006-07-05
36134   o Major bugfixes:
36135     - Fix a big bug that was causing servers to not find themselves
36136       reachable if they changed IP addresses. Since only 0.1.1.22+
36137       servers can do reachability testing correctly, now we automatically
36138       make sure to test via one of these.
36139     - Fix to allow clients and mirrors to learn directory info from
36140       descriptor downloads that get cut off partway through.
36141     - Directory authorities had a bug in deciding if a newly published
36142       descriptor was novel enough to make everybody want a copy -- a few
36143       servers seem to be publishing new descriptors many times a minute.
36144   o Minor bugfixes:
36145     - Fix a rare bug that was causing some servers to complain about
36146       "closing wedged cpuworkers" and skip some circuit create requests.
36147     - Make the Exit flag in directory status documents actually work.
36150 Changes in version 0.1.1.21 - 2006-06-10
36151   o Crash and assert fixes from 0.1.1.20:
36152     - Fix a rare crash on Tor servers that have enabled hibernation.
36153     - Fix a seg fault on startup for Tor networks that use only one
36154       directory authority.
36155     - Fix an assert from a race condition that occurs on Tor servers
36156       while exiting, where various threads are trying to log that they're
36157       exiting, and delete the logs, at the same time.
36158     - Make our unit tests pass again on certain obscure platforms.
36160   o Other fixes:
36161     - Add support for building SUSE RPM packages.
36162     - Speed up initial bootstrapping for clients: if we are making our
36163       first ever connection to any entry guard, then don't mark it down
36164       right after that.
36165     - When only one Tor server in the network is labelled as a guard,
36166       and we've already picked him, we would cycle endlessly picking him
36167       again, being unhappy about it, etc. Now we specifically exclude
36168       current guards when picking a new guard.
36169     - Servers send create cells more reliably after the TLS connection
36170       is established: we were sometimes forgetting to send half of them
36171       when we had more than one pending.
36172     - If we get a create cell that asks us to extend somewhere, but the
36173       Tor server there doesn't match the expected digest, we now send
36174       a destroy cell back, rather than silently doing nothing.
36175     - Make options->RedirectExit work again.
36176     - Make cookie authentication for the controller work again.
36177     - Stop being picky about unusual characters in the arguments to
36178       mapaddress. It's none of our business.
36179     - Add a new config option "TestVia" that lets you specify preferred
36180       middle hops to use for test circuits. Perhaps this will let me
36181       debug the reachability problems better.
36183   o Log / documentation fixes:
36184     - If we're a server and some peer has a broken TLS certificate, don't
36185       log about it unless ProtocolWarnings is set, i.e., we want to hear
36186       about protocol violations by others.
36187     - Fix spelling of VirtualAddrNetwork in man page.
36188     - Add a better explanation at the top of the autogenerated torrc file
36189       about what happened to our old torrc.
36192 Changes in version 0.1.1.20 - 2006-05-23
36193   o Bugfixes:
36194     - Downgrade a log severity where servers complain that they're
36195       invalid.
36196     - Avoid a compile warning on FreeBSD.
36197     - Remove string size limit on NEWDESC messages; solve bug 291.
36198     - Correct the RunAsDaemon entry in the man page; ignore RunAsDaemon
36199       more thoroughly when we're running on windows.
36202 Changes in version 0.1.1.19-rc - 2006-05-03
36203   o Minor bugs:
36204     - Regenerate our local descriptor if it's dirty and we try to use
36205       it locally (e.g. if it changes during reachability detection).
36206     - If we setconf our ORPort to 0, we continued to listen on the
36207       old ORPort and receive connections.
36208     - Avoid a second warning about machine/limits.h on Debian
36209       GNU/kFreeBSD.
36210     - Be willing to add our own routerinfo into the routerlist.
36211       Now authorities will include themselves in their directories
36212       and network-statuses.
36213     - Stop trying to upload rendezvous descriptors to every
36214       directory authority: only try the v1 authorities.
36215     - Servers no longer complain when they think they're not
36216       registered with the directory authorities. There were too many
36217       false positives.
36218     - Backport dist-rpm changes so rpms can be built without errors.
36220   o Features:
36221     - Implement an option, VirtualAddrMask, to set which addresses
36222       get handed out in response to mapaddress requests. This works
36223       around a bug in tsocks where 127.0.0.0/8 is never socksified.
36226 Changes in version 0.1.1.18-rc - 2006-04-10
36227   o Major fixes:
36228     - Work harder to download live network-statuses from all the
36229       directory authorities we know about. Improve the threshold
36230       decision logic so we're more robust to edge cases.
36231     - When fetching rendezvous descriptors, we were willing to ask
36232       v2 authorities too, which would always return 404.
36234   o Minor fixes:
36235     - Stop listing down or invalid nodes in the v1 directory. This will
36236       reduce its bulk by about 1/3, and reduce load on directory
36237       mirrors.
36238     - When deciding whether a router is Fast or Guard-worthy, consider
36239       his advertised BandwidthRate and not just the BandwidthCapacity.
36240     - No longer ship INSTALL and README files -- they are useless now.
36241     - Force rpmbuild to behave and honor target_cpu.
36242     - Avoid warnings about machine/limits.h on Debian GNU/kFreeBSD.
36243     - Start to include translated versions of the tor-doc-*.html
36244       files, along with the screenshots. Still needs more work.
36245     - Start sending back 512 and 451 errors if mapaddress fails,
36246       rather than not sending anything back at all.
36247     - When we fail to bind or listen on an incoming or outgoing
36248       socket, we should close it before failing. otherwise we just
36249       leak it. (thanks to weasel for finding.)
36250     - Allow "getinfo dir/status/foo" to work, as long as your DirPort
36251       is enabled. (This is a hack, and will be fixed in 0.1.2.x.)
36252     - Make NoPublish (even though deprecated) work again.
36253     - Fix a minor security flaw where a versioning auth dirserver
36254       could list a recommended version many times in a row to make
36255       clients more convinced that it's recommended.
36256     - Fix crash bug if there are two unregistered servers running
36257       with the same nickname, one of them is down, and you ask for
36258       them by nickname in your EntryNodes or ExitNodes. Also, try
36259       to pick the one that's running rather than an arbitrary one.
36260     - Fix an infinite loop we could hit if we go offline for too long.
36261     - Complain when we hit WSAENOBUFS on recv() or write() too.
36262       Perhaps this will help us hunt the bug.
36263     - If you're not a versioning dirserver, don't put the string
36264       "client-versions \nserver-versions \n" in your network-status.
36265     - Lower the minimum required number of file descriptors to 1000,
36266       so we can have some overhead for Valgrind on Linux, where the
36267       default ulimit -n is 1024.
36269   o New features:
36270     - Add tor.dizum.com as the fifth authoritative directory server.
36271     - Add a new config option FetchUselessDescriptors, off by default,
36272       for when you plan to run "exitlist" on your client and you want
36273       to know about even the non-running descriptors.
36276 Changes in version 0.1.1.17-rc - 2006-03-28
36277   o Major fixes:
36278     - Clients and servers since 0.1.1.10-alpha have been expiring
36279       connections whenever they are idle for 5 minutes and they *do*
36280       have circuits on them. Oops. With this new version, clients will
36281       discard their previous entry guard choices and avoid choosing
36282       entry guards running these flawed versions.
36283     - Fix memory leak when uncompressing concatenated zlib streams. This
36284       was causing substantial leaks over time on Tor servers.
36285     - The v1 directory was including servers as much as 48 hours old,
36286       because that's how the new routerlist->routers works. Now only
36287       include them if they're 20 hours old or less.
36289   o Minor fixes:
36290     - Resume building on irix64, netbsd 2.0, etc.
36291     - On non-gcc compilers (e.g. solaris), use "-g -O" instead of
36292       "-Wall -g -O2".
36293     - Stop writing the "router.desc" file, ever. Nothing uses it anymore,
36294       and it is confusing some users.
36295     - Mirrors stop caching the v1 directory so often.
36296     - Make the max number of old descriptors that a cache will hold
36297       rise with the number of directory authorities, so we can scale.
36298     - Change our win32 uname() hack to be more forgiving about what
36299       win32 versions it thinks it's found.
36301   o New features:
36302     - Add lefkada.eecs.harvard.edu as a fourth authoritative directory
36303       server.
36304     - When the controller's *setconf commands fail, collect an error
36305       message in a string and hand it back to the controller.
36306     - Make the v2 dir's "Fast" flag based on relative capacity, just
36307       like "Stable" is based on median uptime. Name everything in the
36308       top 7/8 Fast, and only the top 1/2 gets to be a Guard.
36309     - Log server fingerprint on startup, so new server operators don't
36310       have to go hunting around their filesystem for it.
36311     - Return a robots.txt on our dirport to discourage google indexing.
36312     - Let the controller ask for GETINFO dir/status/foo so it can ask
36313       directly rather than connecting to the dir port. Only works when
36314       dirport is set for now.
36316   o New config options rather than constants in the code:
36317     - SocksTimeout: How long do we let a socks connection wait
36318       unattached before we fail it?
36319     - CircuitBuildTimeout: Cull non-open circuits that were born
36320       at least this many seconds ago.
36321     - CircuitIdleTimeout: Cull open clean circuits that were born
36322       at least this many seconds ago.
36325 Changes in version 0.1.1.16-rc - 2006-03-18
36326   o Bugfixes on 0.1.1.15-rc:
36327     - Fix assert when the controller asks to attachstream a connect-wait
36328       or resolve-wait stream.
36329     - Now do address rewriting when the controller asks us to attach
36330       to a particular circuit too. This will let Blossom specify
36331       "moria2.exit" without having to learn what moria2's IP address is.
36332     - Make the "tor --verify-config" command-line work again, so people
36333       can automatically check if their torrc will parse.
36334     - Authoritative dirservers no longer require an open connection from
36335       a server to consider him "reachable". We need this change because
36336       when we add new auth dirservers, old servers won't know not to
36337       hang up on them.
36338     - Let Tor build on Sun CC again.
36339     - Fix an off-by-one buffer size in dirserv.c that magically never
36340       hit our three authorities but broke sjmurdoch's own tor network.
36341     - If we as a directory mirror don't know of any v1 directory
36342       authorities, then don't try to cache any v1 directories.
36343     - Stop warning about unknown servers in our family when they are
36344       given as hex digests.
36345     - Stop complaining as quickly to the server operator that he
36346       hasn't registered his nickname/key binding.
36347     - Various cleanups so we can add new V2 Auth Dirservers.
36348     - Change "AllowUnverifiedNodes" to "AllowInvalidNodes", to
36349       reflect the updated flags in our v2 dir protocol.
36350     - Resume allowing non-printable characters for exit streams (both
36351       for connecting and for resolving). Now we tolerate applications
36352       that don't follow the RFCs. But continue to block malformed names
36353       at the socks side.
36355   o Bugfixes on 0.1.0.x:
36356     - Fix assert bug in close_logs(): when we close and delete logs,
36357       remove them all from the global "logfiles" list.
36358     - Fix minor integer overflow in calculating when we expect to use up
36359       our bandwidth allocation before hibernating.
36360     - Fix a couple of bugs in OpenSSL detection. Also, deal better when
36361       there are multiple SSLs installed with different versions.
36362     - When we try to be a server and Address is not explicitly set and
36363       our hostname resolves to a private IP address, try to use an
36364       interface address if it has a public address. Now Windows machines
36365       that think of themselves as localhost can work by default.
36367   o New features:
36368     - Let the controller ask for GETINFO dir/server/foo so it can ask
36369       directly rather than connecting to the dir port.
36370     - Let the controller tell us about certain router descriptors
36371       that it doesn't want Tor to use in circuits. Implement
36372       SETROUTERPURPOSE and modify +POSTDESCRIPTOR to do this.
36373     - New config option SafeSocks to reject all application connections
36374       using unsafe socks protocols. Defaults to off.
36377 Changes in version 0.1.1.15-rc - 2006-03-11
36378   o Bugfixes and cleanups:
36379     - When we're printing strings from the network, don't try to print
36380       non-printable characters. This protects us against shell escape
36381       sequence exploits, and also against attacks to fool humans into
36382       misreading their logs.
36383     - Fix a bug where Tor would fail to establish any connections if you
36384       left it off for 24 hours and then started it: we were happy with
36385       the obsolete network statuses, but they all referred to router
36386       descriptors that were too old to fetch, so we ended up with no
36387       valid router descriptors.
36388     - Fix a seg fault in the controller's "getinfo orconn-status"
36389       command while listing status on incoming handshaking connections.
36390       Introduce a status name "NEW" for these connections.
36391     - If we get a linelist or linelist_s config option from the torrc
36392       (e.g. ExitPolicy) and it has no value, warn and skip rather than
36393       silently resetting it to its default.
36394     - Don't abandon entry guards until they've been down or gone for
36395       a whole month.
36396     - Cleaner and quieter log messages.
36398   o New features:
36399     - New controller signal NEWNYM that makes new application requests
36400       use clean circuits.
36401     - Add a new circuit purpose 'controller' to let the controller ask
36402       for a circuit that Tor won't try to use. Extend the EXTENDCIRCUIT
36403       controller command to let you specify the purpose if you're
36404       starting a new circuit. Add a new SETCIRCUITPURPOSE controller
36405       command to let you change a circuit's purpose after it's been
36406       created.
36407     - Accept "private:*" in routerdesc exit policies; not generated yet
36408       because older Tors do not understand it.
36409     - Add BSD-style contributed startup script "rc.subr" from Peter
36410       Thoenen.
36413 Changes in version 0.1.1.14-alpha - 2006-02-20
36414   o Bugfixes on 0.1.1.x:
36415     - Don't die if we ask for a stdout or stderr log (even implicitly)
36416       and we're set to RunAsDaemon -- just warn.
36417     - We still had a few bugs in the OR connection rotation code that
36418       caused directory servers to slowly aggregate connections to other
36419       fast Tor servers. This time for sure!
36420     - Make log entries on Win32 include the name of the function again.
36421     - We were treating a pair of exit policies if they were equal even
36422       if one said accept and the other said reject -- causing us to
36423       not always publish a new descriptor since we thought nothing
36424       had changed.
36425     - Retry pending server downloads as well as pending networkstatus
36426       downloads when we unexpectedly get a socks request.
36427     - We were ignoring the IS_FAST flag in the directory status,
36428       meaning we were willing to pick trivial-bandwidth nodes for "fast"
36429       connections.
36430     - If the controller's SAVECONF command fails (e.g. due to file
36431       permissions), let the controller know that it failed.
36433   o Features:
36434     - If we're trying to be a Tor server and running Windows 95/98/ME
36435       as a server, explain that we'll likely crash.
36436     - When we're a server, a client asks for an old-style directory,
36437       and our write bucket is empty, don't give it to him. This way
36438       small servers can continue to serve the directory *sometimes*,
36439       without getting overloaded.
36440     - Compress exit policies even more -- look for duplicate lines
36441       and remove them.
36442     - Clients now honor the "guard" flag in the router status when
36443       picking entry guards, rather than looking at is_fast or is_stable.
36444     - Retain unrecognized lines in $DATADIR/state file, so that we can
36445       be forward-compatible.
36446     - Generate 18.0.0.0/8 address policy format in descs when we can;
36447       warn when the mask is not reducible to a bit-prefix.
36448     - Let the user set ControlListenAddress in the torrc. This can be
36449       dangerous, but there are some cases (like a secured LAN) where it
36450       makes sense.
36451     - Split ReachableAddresses into ReachableDirAddresses and
36452       ReachableORAddresses, so we can restrict Dir conns to port 80
36453       and OR conns to port 443.
36454     - Now we can target arch and OS in rpm builds (contributed by
36455       Phobos). Also make the resulting dist-rpm filename match the
36456       target arch.
36457     - New config options to help controllers: FetchServerDescriptors
36458       and FetchHidServDescriptors for whether to fetch server
36459       info and hidserv info or let the controller do it, and
36460       PublishServerDescriptor and PublishHidServDescriptors.
36461     - Also let the controller set the __AllDirActionsPrivate config
36462       option if you want all directory fetches/publishes to happen via
36463       Tor (it assumes your controller bootstraps your circuits).
36466 Changes in version 0.1.0.17 - 2006-02-17
36467   o Crash bugfixes on 0.1.0.x:
36468     - When servers with a non-zero DirPort came out of hibernation,
36469       sometimes they would trigger an assert.
36471   o Other important bugfixes:
36472     - On platforms that don't have getrlimit (like Windows), we were
36473       artificially constraining ourselves to a max of 1024
36474       connections. Now just assume that we can handle as many as 15000
36475       connections. Hopefully this won't cause other problems.
36477   o Backported features:
36478     - When we're a server, a client asks for an old-style directory,
36479       and our write bucket is empty, don't give it to him. This way
36480       small servers can continue to serve the directory *sometimes*,
36481       without getting overloaded.
36482     - Whenever you get a 503 in response to a directory fetch, try
36483       once more. This will become important once servers start sending
36484       503's whenever they feel busy.
36485     - Fetch a new directory every 120 minutes, not every 40 minutes.
36486       Now that we have hundreds of thousands of users running the old
36487       directory algorithm, it's starting to hurt a lot.
36488     - Bump up the period for forcing a hidden service descriptor upload
36489       from 20 minutes to 1 hour.
36492 Changes in version 0.1.1.13-alpha - 2006-02-09
36493   o Crashes in 0.1.1.x:
36494     - When you tried to setconf ORPort via the controller, Tor would
36495       crash. So people using TorCP to become a server were sad.
36496     - Solve (I hope) the stack-smashing bug that we were seeing on fast
36497       servers. The problem appears to be something do with OpenSSL's
36498       random number generation, or how we call it, or something. Let me
36499       know if the crashes continue.
36500     - Turn crypto hardware acceleration off by default, until we find
36501       somebody smart who can test it for us. (It appears to produce
36502       seg faults in at least some cases.)
36503     - Fix a rare assert error when we've tried all intro points for
36504       a hidden service and we try fetching the service descriptor again:
36505       "Assertion conn->state != AP_CONN_STATE_RENDDESC_WAIT failed"
36507   o Major fixes:
36508     - Fix a major load balance bug: we were round-robining in 16 KB
36509       chunks, and servers with bandwidthrate of 20 KB, while downloading
36510       a 600 KB directory, would starve their other connections. Now we
36511       try to be a bit more fair.
36512     - Dir authorities and mirrors were never expiring the newest
36513       descriptor for each server, causing memory and directory bloat.
36514     - Fix memory-bloating and connection-bloating bug on servers: We
36515       were never closing any connection that had ever had a circuit on
36516       it, because we were checking conn->n_circuits == 0, yet we had a
36517       bug that let it go negative.
36518     - Make Tor work using squid as your http proxy again -- squid
36519       returns an error if you ask for a URL that's too long, and it uses
36520       a really generic error message. Plus, many people are behind a
36521       transparent squid so they don't even realize it.
36522     - On platforms that don't have getrlimit (like Windows), we were
36523       artificially constraining ourselves to a max of 1024
36524       connections. Now just assume that we can handle as many as 15000
36525       connections. Hopefully this won't cause other problems.
36526     - Add a new config option ExitPolicyRejectPrivate which defaults to
36527       1. This means all exit policies will begin with rejecting private
36528       addresses, unless the server operator explicitly turns it off.
36530   o Major features:
36531     - Clients no longer download descriptors for non-running
36532       descriptors.
36533     - Before we add new directory authorities, we should make it
36534       clear that only v1 authorities should receive/publish hidden
36535       service descriptors.
36537   o Minor features:
36538     - As soon as we've fetched some more directory info, immediately
36539       try to download more server descriptors. This way we don't have
36540       a 10 second pause during initial bootstrapping.
36541     - Remove even more loud log messages that the server operator can't
36542       do anything about.
36543     - When we're running an obsolete or un-recommended version, make
36544       the log message more clear about what the problem is and what
36545       versions *are* still recommended.
36546     - Provide a more useful warn message when our onion queue gets full:
36547       the CPU is too slow or the exit policy is too liberal.
36548     - Don't warn when we receive a 503 from a dirserver/cache -- this
36549       will pave the way for them being able to refuse if they're busy.
36550     - When we fail to bind a listener, try to provide a more useful
36551       log message: e.g., "Is Tor already running?"
36552     - Adjust tor-spec to parameterize cell and key lengths. Now Ian
36553       Goldberg can prove things about our handshake protocol more
36554       easily.
36555     - MaxConn has been obsolete for a while now. Document the ConnLimit
36556       config option, which is a *minimum* number of file descriptors
36557       that must be available else Tor refuses to start.
36558     - Apply Matt Ghali's --with-syslog-facility patch to ./configure
36559       if you log to syslog and want something other than LOG_DAEMON.
36560     - Make dirservers generate a separate "guard" flag to mean,
36561       "would make a good entry guard". Make clients parse it and vote
36562       on it. Not used by clients yet.
36563     - Implement --with-libevent-dir option to ./configure. Also, improve
36564       search techniques to find libevent, and use those for openssl too.
36565     - Bump the default bandwidthrate to 3 MB, and burst to 6 MB
36566     - Only start testing reachability once we've established a
36567       circuit. This will make startup on dirservers less noisy.
36568     - Don't try to upload hidden service descriptors until we have
36569       established a circuit.
36570     - Fix the controller's "attachstream 0" command to treat conn like
36571       it just connected, doing address remapping, handling .exit and
36572       .onion idioms, and so on. Now we're more uniform in making sure
36573       that the controller hears about new and closing connections.
36576 Changes in version 0.1.1.12-alpha - 2006-01-11
36577   o Bugfixes on 0.1.1.x:
36578     - The fix to close duplicate server connections was closing all
36579       Tor client connections if they didn't establish a circuit
36580       quickly enough. Oops.
36581     - Fix minor memory issue (double-free) that happened on exit.
36583   o Bugfixes on 0.1.0.x:
36584     - Tor didn't warn when it failed to open a log file.
36587 Changes in version 0.1.1.11-alpha - 2006-01-10
36588   o Crashes in 0.1.1.x:
36589     - Include all the assert/crash fixes from 0.1.0.16.
36590     - If you start Tor and then quit very quickly, there were some
36591       races that tried to free things that weren't allocated yet.
36592     - Fix a rare memory stomp if you're running hidden services.
36593     - Fix segfault when specifying DirServer in config without nickname.
36594     - Fix a seg fault when you finish connecting to a server but at
36595       that moment you dump his server descriptor.
36596     - Extendcircuit and Attachstream controller commands would
36597       assert/crash if you don't give them enough arguments.
36598     - Fix an assert error when we're out of space in the connection_list
36599       and we try to post a hidden service descriptor (reported by weasel).
36600     - If you specify a relative torrc path and you set RunAsDaemon in
36601       your torrc, then it chdir()'s to the new directory. If you HUP,
36602       it tries to load the new torrc location, fails, and exits.
36603       The fix: no longer allow a relative path to torrc using -f.
36605   o Major features:
36606     - Implement "entry guards": automatically choose a handful of entry
36607       nodes and stick with them for all circuits. Only pick new guards
36608       when the ones you have are unsuitable, and if the old guards
36609       become suitable again, switch back. This will increase security
36610       dramatically against certain end-point attacks. The EntryNodes
36611       config option now provides some hints about which entry guards you
36612       want to use most; and StrictEntryNodes means to only use those.
36613     - New directory logic: download by descriptor digest, not by
36614       fingerprint. Caches try to download all listed digests from
36615       authorities; clients try to download "best" digests from caches.
36616       This avoids partitioning and isolating attacks better.
36617     - Make the "stable" router flag in network-status be the median of
36618       the uptimes of running valid servers, and make clients pay
36619       attention to the network-status flags. Thus the cutoff adapts
36620       to the stability of the network as a whole, making IRC, IM, etc
36621       connections more reliable.
36623   o Major fixes:
36624     - Tor servers with dynamic IP addresses were needing to wait 18
36625       hours before they could start doing reachability testing using
36626       the new IP address and ports. This is because they were using
36627       the internal descriptor to learn what to test, yet they were only
36628       rebuilding the descriptor once they decided they were reachable.
36629     - Tor 0.1.1.9 and 0.1.1.10 had a serious bug that caused clients
36630       to download certain server descriptors, throw them away, and then
36631       fetch them again after 30 minutes. Now mirrors throw away these
36632       server descriptors so clients can't get them.
36633     - We were leaving duplicate connections to other ORs open for a week,
36634       rather than closing them once we detect a duplicate. This only
36635       really affected authdirservers, but it affected them a lot.
36636     - Spread the authdirservers' reachability testing over the entire
36637       testing interval, so we don't try to do 500 TLS's at once every
36638       20 minutes.
36640   o Minor fixes:
36641     - If the network is down, and we try to connect to a conn because
36642       we have a circuit in mind, and we timeout (30 seconds) because the
36643       network never answers, we were expiring the circuit, but we weren't
36644       obsoleting the connection or telling the entry_guards functions.
36645     - Some Tor servers process billions of cells per day. These statistics
36646       need to be uint64_t's.
36647     - Check for integer overflows in more places, when adding elements
36648       to smartlists. This could possibly prevent a buffer overflow
36649       on malicious huge inputs. I don't see any, but I haven't looked
36650       carefully.
36651     - ReachableAddresses kept growing new "reject *:*" lines on every
36652       setconf/reload.
36653     - When you "setconf log" via the controller, it should remove all
36654       logs. We were automatically adding back in a "log notice stdout".
36655     - Newly bootstrapped Tor networks couldn't establish hidden service
36656       circuits until they had nodes with high uptime. Be more tolerant.
36657     - We were marking servers down when they could not answer every piece
36658       of the directory request we sent them. This was far too harsh.
36659     - Fix the torify (tsocks) config file to not use Tor for localhost
36660       connections.
36661     - Directory authorities now go to the proper authority when asking for
36662       a networkstatus, even when they want a compressed one.
36663     - Fix a harmless bug that was causing Tor servers to log
36664       "Got an end because of misc error, but we're not an AP. Closing."
36665     - Authorities were treating their own descriptor changes as cosmetic,
36666       meaning the descriptor available in the network-status and the
36667       descriptor that clients downloaded were different.
36668     - The OS X installer was adding a symlink for tor_resolve but
36669       the binary was called tor-resolve (reported by Thomas Hardly).
36670     - Workaround a problem with some http proxies where they refuse GET
36671       requests that specify "Content-Length: 0" (reported by Adrian).
36672     - Fix wrong log message when you add a "HiddenServiceNodes" config
36673       line without any HiddenServiceDir line (reported by Chris Thomas).
36675   o Minor features:
36676     - Write the TorVersion into the state file so we have a prayer of
36677       keeping forward and backward compatibility.
36678     - Revive the FascistFirewall config option rather than eliminating it:
36679       now it's a synonym for ReachableAddresses *:80,*:443.
36680     - Clients choose directory servers from the network status lists,
36681       not from their internal list of router descriptors. Now they can
36682       go to caches directly rather than needing to go to authorities
36683       to bootstrap.
36684     - Directory authorities ignore router descriptors that have only
36685       cosmetic differences: do this for 0.1.0.x servers now too.
36686     - Add a new flag to network-status indicating whether the server
36687       can answer v2 directory requests too.
36688     - Authdirs now stop whining so loudly about bad descriptors that
36689       they fetch from other dirservers. So when there's a log complaint,
36690       it's for sure from a freshly uploaded descriptor.
36691     - Reduce memory requirements in our structs by changing the order
36692       of fields.
36693     - There used to be two ways to specify your listening ports in a
36694       server descriptor: on the "router" line and with a separate "ports"
36695       line. Remove support for the "ports" line.
36696     - New config option "AuthDirRejectUnlisted" for auth dirservers as
36697       a panic button: if we get flooded with unusable servers we can
36698       revert to only listing servers in the approved-routers file.
36699     - Auth dir servers can now mark a fingerprint as "!reject" or
36700       "!invalid" in the approved-routers file (as its nickname), to
36701       refuse descriptors outright or include them but marked as invalid.
36702     - Servers store bandwidth history across restarts/crashes.
36703     - Add reasons to DESTROY and RELAY_TRUNCATED cells, so clients can
36704       get a better idea of why their circuits failed. Not used yet.
36705     - Directory mirrors now cache up to 16 unrecognized network-status
36706       docs. Now we can add new authdirservers and they'll be cached too.
36707     - When picking a random directory, prefer non-authorities if any
36708       are known.
36709     - New controller option "getinfo desc/all-recent" to fetch the
36710       latest server descriptor for every router that Tor knows about.
36713 Changes in version 0.1.0.16 - 2006-01-02
36714   o Crash bugfixes on 0.1.0.x:
36715     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
36716       corrupting the heap, losing FDs, or crashing when we need to resize
36717       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
36718     - It turns out sparc64 platforms crash on unaligned memory access
36719       too -- so detect and avoid this.
36720     - Handle truncated compressed data correctly (by detecting it and
36721       giving an error).
36722     - Fix possible-but-unlikely free(NULL) in control.c.
36723     - When we were closing connections, there was a rare case that
36724       stomped on memory, triggering seg faults and asserts.
36725     - Avoid potential infinite recursion when building a descriptor. (We
36726       don't know that it ever happened, but better to fix it anyway.)
36727     - We were neglecting to unlink marked circuits from soon-to-close OR
36728       connections, which caused some rare scribbling on freed memory.
36729     - Fix a memory stomping race bug when closing the joining point of two
36730       rendezvous circuits.
36731     - Fix an assert in time parsing found by Steven Murdoch.
36733   o Other bugfixes on 0.1.0.x:
36734     - When we're doing reachability testing, provide more useful log
36735       messages so the operator knows what to expect.
36736     - Do not check whether DirPort is reachable when we are suppressing
36737       advertising it because of hibernation.
36738     - When building with -static or on Solaris, we sometimes needed -ldl.
36739     - When we're deciding whether a stream has enough circuits around
36740       that can handle it, count the freshly dirty ones and not the ones
36741       that are so dirty they won't be able to handle it.
36742     - When we're expiring old circuits, we had a logic error that caused
36743       us to close new rendezvous circuits rather than old ones.
36744     - Give a more helpful log message when you try to change ORPort via
36745       the controller: you should upgrade Tor if you want that to work.
36746     - We were failing to parse Tor versions that start with "Tor ".
36747     - Tolerate faulty streams better: when a stream fails for reason
36748       exitpolicy, stop assuming that the router is lying about his exit
36749       policy. When a stream fails for reason misc, allow it to retry just
36750       as if it was resolvefailed. When a stream has failed three times,
36751       reset its failure count so we can try again and get all three tries.
36754 Changes in version 0.1.1.10-alpha - 2005-12-11
36755   o Correctness bugfixes on 0.1.0.x:
36756     - On Windows, build with a libevent patch from "I-M Weasel" to avoid
36757       corrupting the heap, losing FDs, or crashing when we need to resize
36758       the fd_sets. (This affects the Win32 binaries, not Tor's sources.)
36759     - Stop doing the complex voodoo overkill checking for insecure
36760       Diffie-Hellman keys. Just check if it's in [2,p-2] and be happy.
36761     - When we were closing connections, there was a rare case that
36762       stomped on memory, triggering seg faults and asserts.
36763     - We were neglecting to unlink marked circuits from soon-to-close OR
36764       connections, which caused some rare scribbling on freed memory.
36765     - When we're deciding whether a stream has enough circuits around
36766       that can handle it, count the freshly dirty ones and not the ones
36767       that are so dirty they won't be able to handle it.
36768     - Recover better from TCP connections to Tor servers that are
36769       broken but don't tell you (it happens!); and rotate TLS
36770       connections once a week.
36771     - When we're expiring old circuits, we had a logic error that caused
36772       us to close new rendezvous circuits rather than old ones.
36773     - Fix a scary-looking but apparently harmless bug where circuits
36774       would sometimes start out in state CIRCUIT_STATE_OR_WAIT at
36775       servers, and never switch to state CIRCUIT_STATE_OPEN.
36776     - When building with -static or on Solaris, we sometimes needed to
36777       build with -ldl.
36778     - Give a useful message when people run Tor as the wrong user,
36779       rather than telling them to start chowning random directories.
36780     - We were failing to inform the controller about new .onion streams.
36782   o Security bugfixes on 0.1.0.x:
36783     - Refuse server descriptors if the fingerprint line doesn't match
36784       the included identity key. Tor doesn't care, but other apps (and
36785       humans) might actually be trusting the fingerprint line.
36786     - We used to kill the circuit when we receive a relay command we
36787       don't recognize. Now we just drop it.
36788     - Start obeying our firewall options more rigorously:
36789       . If we can't get to a dirserver directly, try going via Tor.
36790       . Don't ever try to connect (as a client) to a place our
36791         firewall options forbid.
36792       . If we specify a proxy and also firewall options, obey the
36793         firewall options even when we're using the proxy: some proxies
36794         can only proxy to certain destinations.
36795     - Fix a bug found by Lasse Overlier: when we were making internal
36796       circuits (intended to be cannibalized later for rendezvous and
36797       introduction circuits), we were picking them so that they had
36798       useful exit nodes. There was no need for this, and it actually
36799       aids some statistical attacks.
36800     - Start treating internal circuits and exit circuits separately.
36801       It's important to keep them separate because internal circuits
36802       have their last hops picked like middle hops, rather than like
36803       exit hops. So exiting on them will break the user's expectations.
36805   o Bugfixes on 0.1.1.x:
36806     - Take out the mis-feature where we tried to detect IP address
36807       flapping for people with DynDNS, and chose not to upload a new
36808       server descriptor sometimes.
36809     - Try to be compatible with OpenSSL 0.9.6 again.
36810     - Log fix: when the controller is logging about .onion addresses,
36811       sometimes it didn't include the ".onion" part of the address.
36812     - Don't try to modify options->DirServers internally -- if the
36813       user didn't specify any, just add the default ones directly to
36814       the trusted dirserver list. This fixes a bug where people running
36815       controllers would use SETCONF on some totally unrelated config
36816       option, and Tor would start yelling at them about changing their
36817       DirServer lines.
36818     - Let the controller's redirectstream command specify a port, in
36819       case the controller wants to change that too.
36820     - When we requested a pile of server descriptors, we sometimes
36821       accidentally launched a duplicate request for the first one.
36822     - Bugfix for trackhostexits: write down the fingerprint of the
36823       chosen exit, not its nickname, because the chosen exit might not
36824       be verified.
36825     - When parsing foo.exit, if foo is unknown, and we are leaving
36826       circuits unattached, set the chosen_exit field and leave the
36827       address empty. This matters because controllers got confused
36828       otherwise.
36829     - Directory authorities no longer try to download server
36830       descriptors that they know they will reject.
36832   o Features and updates:
36833     - Replace balanced trees with hash tables: this should make stuff
36834       significantly faster.
36835     - Resume using the AES counter-mode implementation that we ship,
36836       rather than OpenSSL's. Ours is significantly faster.
36837     - Many other CPU and memory improvements.
36838     - Add a new config option FastFirstHopPK (on by default) so clients
36839       do a trivial crypto handshake for their first hop, since TLS has
36840       already taken care of confidentiality and authentication.
36841     - Add a new config option TestSocks so people can see if their
36842       applications are using socks4, socks4a, socks5-with-ip, or
36843       socks5-with-hostname. This way they don't have to keep mucking
36844       with tcpdump and wondering if something got cached somewhere.
36845     - Warn when listening on a public address for socks. I suspect a
36846       lot of people are setting themselves up as open socks proxies,
36847       and they have no idea that jerks on the Internet are using them,
36848       since they simply proxy the traffic into the Tor network.
36849     - Add "private:*" as an alias in configuration for policies. Now
36850       you can simplify your exit policy rather than needing to list
36851       every single internal or nonroutable network space.
36852     - Add a new controller event type that allows controllers to get
36853       all server descriptors that were uploaded to a router in its role
36854       as authoritative dirserver.
36855     - Start shipping socks-extensions.txt, tor-doc-unix.html,
36856       tor-doc-server.html, and stylesheet.css in the tarball.
36857     - Stop shipping tor-doc.html in the tarball.
36860 Changes in version 0.1.1.9-alpha - 2005-11-15
36861   o Usability improvements:
36862     - Start calling it FooListenAddress rather than FooBindAddress,
36863       since few of our users know what it means to bind an address
36864       or port.
36865     - Reduce clutter in server logs. We're going to try to make
36866       them actually usable now. New config option ProtocolWarnings that
36867       lets you hear about how _other Tors_ are breaking the protocol. Off
36868       by default.
36869     - Divide log messages into logging domains. Once we put some sort
36870       of interface on this, it will let people looking at more verbose
36871       log levels specify the topics they want to hear more about.
36872     - Make directory servers return better http 404 error messages
36873       instead of a generic "Servers unavailable".
36874     - Check for even more Windows version flags when writing the platform
36875       string in server descriptors, and note any we don't recognize.
36876     - Clean up more of the OpenSSL memory when exiting, so we can detect
36877       memory leaks better.
36878     - Make directory authorities be non-versioning, non-naming by
36879       default. Now we can add new directory servers without requiring
36880       their operators to pay close attention.
36881     - When logging via syslog, include the pid whenever we provide
36882       a log entry. Suggested by Todd Fries.
36884   o Performance improvements:
36885     - Directory servers now silently throw away new descriptors that
36886       haven't changed much if the timestamps are similar. We do this to
36887       tolerate older Tor servers that upload a new descriptor every 15
36888       minutes. (It seemed like a good idea at the time.)
36889     - Inline bottleneck smartlist functions; use fast versions by default.
36890     - Add a "Map from digest to void*" abstraction digestmap_t so we
36891       can do less hex encoding/decoding. Use it in router_get_by_digest()
36892       to resolve a performance bottleneck.
36893     - Allow tor_gzip_uncompress to extract as much as possible from
36894       truncated compressed data. Try to extract as many
36895       descriptors as possible from truncated http responses (when
36896       DIR_PURPOSE_FETCH_ROUTERDESC).
36897     - Make circ->onionskin a pointer, not a static array. moria2 was using
36898       125000 circuit_t's after it had been up for a few weeks, which
36899       translates to 20+ megs of wasted space.
36900     - The private half of our EDH handshake keys are now chosen out
36901       of 320 bits, not 1024 bits. (Suggested by Ian Goldberg.)
36903   o Security improvements:
36904     - Start making directory caches retain old routerinfos, so soon
36905       clients can start asking by digest of descriptor rather than by
36906       fingerprint of server.
36907     - Add half our entropy from RAND_poll in OpenSSL. This knows how
36908       to use egd (if present), openbsd weirdness (if present), vms/os2
36909       weirdness (if we ever port there), and more in the future.
36911   o Bugfixes on 0.1.0.x:
36912     - Do round-robin writes of at most 16 kB per write. This might be
36913       more fair on loaded Tor servers, and it might resolve our Windows
36914       crash bug. It might also slow things down.
36915     - Our TLS handshakes were generating a single public/private
36916       keypair for the TLS context, rather than making a new one for
36917       each new connections. Oops. (But we were still rotating them
36918       periodically, so it's not so bad.)
36919     - When we were cannibalizing a circuit with a particular exit
36920       node in mind, we weren't checking to see if that exit node was
36921       already present earlier in the circuit. Oops.
36922     - When a Tor server's IP changes (e.g. from a dyndns address),
36923       upload a new descriptor so clients will learn too.
36924     - Really busy servers were keeping enough circuits open on stable
36925       connections that they were wrapping around the circuit_id
36926       space. (It's only two bytes.) This exposed a bug where we would
36927       feel free to reuse a circuit_id even if it still exists but has
36928       been marked for close. Try to fix this bug. Some bug remains.
36929     - If we would close a stream early (e.g. it asks for a .exit that
36930       we know would refuse it) but the LeaveStreamsUnattached config
36931       option is set by the controller, then don't close it.
36933   o Bugfixes on 0.1.1.8-alpha:
36934     - Fix a big pile of memory leaks, some of them serious.
36935     - Do not try to download a routerdesc if we would immediately reject
36936       it as obsolete.
36937     - Resume inserting a newline between all router descriptors when
36938       generating (old style) signed directories, since our spec says
36939       we do.
36940     - When providing content-type application/octet-stream for
36941       server descriptors using .z, we were leaving out the
36942       content-encoding header. Oops. (Everything tolerated this just
36943       fine, but that doesn't mean we need to be part of the problem.)
36944     - Fix a potential seg fault in getconf and getinfo using version 1
36945       of the controller protocol.
36946     - Avoid crash: do not check whether DirPort is reachable when we
36947       are suppressing it because of hibernation.
36948     - Make --hash-password not crash on exit.
36951 Changes in version 0.1.1.8-alpha - 2005-10-07
36952   o New features (major):
36953     - Clients don't download or use the directory anymore. Now they
36954       download and use network-statuses from the trusted dirservers,
36955       and fetch individual server descriptors as needed from mirrors.
36956       See dir-spec.txt for all the gory details.
36957     - Be more conservative about whether to advertise our DirPort.
36958       The main change is to not advertise if we're running at capacity
36959       and either a) we could hibernate or b) our capacity is low and
36960       we're using a default DirPort.
36961     - Use OpenSSL's AES when OpenSSL has version 0.9.7 or later.
36963   o New features (minor):
36964     - Try to be smart about when to retry network-status and
36965       server-descriptor fetches. Still needs some tuning.
36966     - Stop parsing, storing, or using running-routers output (but
36967       mirrors still cache and serve it).
36968     - Consider a threshold of versioning dirservers (dirservers who have
36969       an opinion about which Tor versions are still recommended) before
36970       deciding whether to warn the user that he's obsolete.
36971     - Dirservers can now reject/invalidate by key and IP, with the
36972       config options "AuthDirInvalid" and "AuthDirReject". This is
36973       useful since currently we automatically list servers as running
36974       and usable even if we know they're jerks.
36975     - Provide dire warnings to any users who set DirServer; move it out
36976       of torrc.sample and into torrc.complete.
36977     - Add MyFamily to torrc.sample in the server section.
36978     - Add nicknames to the DirServer line, so we can refer to them
36979       without requiring all our users to memorize their IP addresses.
36980     - When we get an EOF or a timeout on a directory connection, note
36981       how many bytes of serverdesc we are dropping. This will help
36982       us determine whether it is smart to parse incomplete serverdesc
36983       responses.
36984     - Add a new function to "change pseudonyms" -- that is, to stop
36985       using any currently-dirty circuits for new streams, so we don't
36986       link new actions to old actions. Currently it's only called on
36987       HUP (or SIGNAL RELOAD).
36988     - On sighup, if UseHelperNodes changed to 1, use new circuits.
36989     - Start using RAND_bytes rather than RAND_pseudo_bytes from
36990       OpenSSL. Also, reseed our entropy every hour, not just at
36991       startup. And entropy in 512-bit chunks, not 160-bit chunks.
36993   o Fixes on 0.1.1.7-alpha:
36994     - Nobody ever implemented EVENT_ADDRMAP for control protocol
36995       version 0, so don't let version 0 controllers ask for it.
36996     - If you requested something with too many newlines via the
36997       v1 controller protocol, you could crash tor.
36998     - Fix a number of memory leaks, including some pretty serious ones.
36999     - Re-enable DirPort testing again, so Tor servers will be willing
37000       to advertise their DirPort if it's reachable.
37001     - On TLS handshake, only check the other router's nickname against
37002       its expected nickname if is_named is set.
37004   o Fixes forward-ported from 0.1.0.15:
37005     - Don't crash when we don't have any spare file descriptors and we
37006       try to spawn a dns or cpu worker.
37007     - Make the numbers in read-history and write-history into uint64s,
37008       so they don't overflow and publish negatives in the descriptor.
37010   o Fixes on 0.1.0.x:
37011     - For the OS X package's modified privoxy config file, comment
37012       out the "logfile" line so we don't log everything passed
37013       through privoxy.
37014     - We were whining about using socks4 or socks5-with-local-lookup
37015       even when it's an IP in the "virtual" range we designed exactly
37016       for this case.
37017     - We were leaking some memory every time the client changes IPs.
37018     - Never call free() on tor_malloc()d memory. This will help us
37019       use dmalloc to detect memory leaks.
37020     - Check for named servers when looking them up by nickname;
37021       warn when we'recalling a non-named server by its nickname;
37022       don't warn twice about the same name.
37023     - Try to list MyFamily elements by key, not by nickname, and warn
37024       if we've not heard of the server.
37025     - Make windows platform detection (uname equivalent) smarter.
37026     - It turns out sparc64 doesn't like unaligned access either.
37029 Changes in version 0.1.0.15 - 2005-09-23
37030   o Bugfixes on 0.1.0.x:
37031     - Reject ports 465 and 587 (spam targets) in default exit policy.
37032     - Don't crash when we don't have any spare file descriptors and we
37033       try to spawn a dns or cpu worker.
37034     - Get rid of IgnoreVersion undocumented config option, and make us
37035       only warn, never exit, when we're running an obsolete version.
37036     - Don't try to print a null string when your server finds itself to
37037       be unreachable and the Address config option is empty.
37038     - Make the numbers in read-history and write-history into uint64s,
37039       so they don't overflow and publish negatives in the descriptor.
37040     - Fix a minor memory leak in smartlist_string_remove().
37041     - We were only allowing ourselves to upload a server descriptor at
37042       most every 20 minutes, even if it changed earlier than that.
37043     - Clean up log entries that pointed to old URLs.
37046 Changes in version 0.1.1.7-alpha - 2005-09-14
37047   o Fixes on 0.1.1.6-alpha:
37048     - Exit servers were crashing when people asked them to make a
37049       connection to an address not in their exit policy.
37050     - Looking up a non-existent stream for a v1 control connection would
37051       cause a segfault.
37052     - Fix a seg fault if we ask a dirserver for a descriptor by
37053       fingerprint but he doesn't know about him.
37054     - SETCONF was appending items to linelists, not clearing them.
37055     - SETCONF SocksBindAddress killed Tor if it fails to bind. Now back
37056       out and refuse the setconf if it would fail.
37057     - Downgrade the dirserver log messages when whining about
37058       unreachability.
37060   o New features:
37061     - Add Peter Palfrader's check-tor script to tor/contrib/
37062       It lets you easily check whether a given server (referenced by
37063       nickname) is reachable by you.
37064     - Numerous changes to move towards client-side v2 directories. Not
37065       enabled yet.
37067   o Fixes on 0.1.0.x:
37068     - If the user gave tor an odd number of command-line arguments,
37069       we were silently ignoring the last one. Now we complain and fail.
37070       [This wins the oldest-bug prize -- this bug has been present since
37071        November 2002, as released in Tor 0.0.0.]
37072     - Do not use unaligned memory access on alpha, mips, or mipsel.
37073       It *works*, but is very slow, so we treat them as if it doesn't.
37074     - Retry directory requests if we fail to get an answer we like
37075       from a given dirserver (we were retrying before, but only if
37076       we fail to connect).
37077     - When writing the RecommendedVersions line, sort them first.
37078     - When the client asked for a rendezvous port that the hidden
37079       service didn't want to provide, we were sending an IP address
37080       back along with the end cell. Fortunately, it was zero. But stop
37081       that anyway.
37082     - Correct "your server is reachable" log entries to indicate that
37083       it was self-testing that told us so.
37086 Changes in version 0.1.1.6-alpha - 2005-09-09
37087   o Fixes on 0.1.1.5-alpha:
37088     - We broke fascistfirewall in 0.1.1.5-alpha. Oops.
37089     - Fix segfault in unit tests in 0.1.1.5-alpha. Oops.
37090     - Fix bug with tor_memmem finding a match at the end of the string.
37091     - Make unit tests run without segfaulting.
37092     - Resolve some solaris x86 compile warnings.
37093     - Handle duplicate lines in approved-routers files without warning.
37094     - Fix bug where as soon as a server refused any requests due to his
37095       exit policy (e.g. when we ask for localhost and he tells us that's
37096       127.0.0.1 and he won't do it), we decided he wasn't obeying his
37097       exit policy using him for any exits.
37098     - Only do openssl hardware accelerator stuff if openssl version is
37099       at least 0.9.7.
37101   o New controller features/fixes:
37102     - Add a "RESETCONF" command so you can set config options like
37103       AllowUnverifiedNodes and LongLivedPorts to "". Also, if you give
37104       a config option in the torrc with no value, then it clears it
37105       entirely (rather than setting it to its default).
37106     - Add a "GETINFO config-file" to tell us where torrc is.
37107     - Avoid sending blank lines when GETINFO replies should be empty.
37108     - Add a QUIT command for the controller (for using it manually).
37109     - Fix a bug in SAVECONF that was adding default dirservers and
37110       other redundant entries to the torrc file.
37112   o Start on the new directory design:
37113     - Generate, publish, cache, serve new network-status format.
37114     - Publish individual descriptors (by fingerprint, by "all", and by
37115       "tell me yours").
37116     - Publish client and server recommended versions separately.
37117     - Allow tor_gzip_uncompress() to handle multiple concatenated
37118       compressed strings. Serve compressed groups of router
37119       descriptors. The compression logic here could be more
37120       memory-efficient.
37121     - Distinguish v1 authorities (all currently trusted directories)
37122       from v2 authorities (all trusted directories).
37123     - Change DirServers config line to note which dirs are v1 authorities.
37124     - Add configuration option "V1AuthoritativeDirectory 1" which
37125       moria1, moria2, and tor26 should set.
37126     - Remove option when getting directory cache to see whether they
37127       support running-routers; they all do now. Replace it with one
37128       to see whether caches support v2 stuff.
37130   o New features:
37131     - Dirservers now do their own external reachability testing of each
37132       Tor server, and only list them as running if they've been found to
37133       be reachable. We also send back warnings to the server's logs if
37134       it uploads a descriptor that we already believe is unreachable.
37135     - Implement exit enclaves: if we know an IP address for the
37136       destination, and there's a running Tor server at that address
37137       which allows exit to the destination, then extend the circuit to
37138       that exit first. This provides end-to-end encryption and end-to-end
37139       authentication. Also, if the user wants a .exit address or enclave,
37140       use 4 hops rather than 3, and cannibalize a general circ for it
37141       if you can.
37142     - Permit transitioning from ORPort=0 to ORPort!=0, and back, from the
37143       controller. Also, rotate dns and cpu workers if the controller
37144       changes options that will affect them; and initialize the dns
37145       worker cache tree whether or not we start out as a server.
37146     - Only upload a new server descriptor when options change, 18
37147       hours have passed, uptime is reset, or bandwidth changes a lot.
37148     - Check [X-]Forwarded-For headers in HTTP requests when generating
37149       log messages. This lets people run dirservers (and caches) behind
37150       Apache but still know which IP addresses are causing warnings.
37152   o Config option changes:
37153     - Replace (Fascist)Firewall* config options with a new
37154       ReachableAddresses option that understands address policies.
37155       For example, "ReachableAddresses *:80,*:443"
37156     - Get rid of IgnoreVersion undocumented config option, and make us
37157       only warn, never exit, when we're running an obsolete version.
37158     - Make MonthlyAccountingStart config option truly obsolete now.
37160   o Fixes on 0.1.0.x:
37161     - Reject ports 465 and 587 in the default exit policy, since
37162       people have started using them for spam too.
37163     - It turns out we couldn't bootstrap a network since we added
37164       reachability detection in 0.1.0.1-rc. Good thing the Tor network
37165       has never gone down. Add an AssumeReachable config option to let
37166       servers and dirservers bootstrap. When we're trying to build a
37167       high-uptime or high-bandwidth circuit but there aren't enough
37168       suitable servers, try being less picky rather than simply failing.
37169     - Our logic to decide if the OR we connected to was the right guy
37170       was brittle and maybe open to a mitm for unverified routers.
37171     - We weren't cannibalizing circuits correctly for
37172       CIRCUIT_PURPOSE_C_ESTABLISH_REND and
37173       CIRCUIT_PURPOSE_S_ESTABLISH_INTRO, so we were being forced to
37174       build those from scratch. This should make hidden services faster.
37175     - Predict required circuits better, with an eye toward making hidden
37176       services faster on the service end.
37177     - Retry streams if the exit node sends back a 'misc' failure. This
37178       should result in fewer random failures. Also, after failing
37179       from resolve failed or misc, reset the num failures, so we give
37180       it a fair shake next time we try.
37181     - Clean up the rendezvous warn log msgs, and downgrade some to info.
37182     - Reduce severity on logs about dns worker spawning and culling.
37183     - When we're shutting down and we do something like try to post a
37184       server descriptor or rendezvous descriptor, don't complain that
37185       we seem to be unreachable. Of course we are, we're shutting down.
37186     - Add TTLs to RESOLVED, CONNECTED, and END_REASON_EXITPOLICY cells.
37187       We don't use them yet, but maybe one day our DNS resolver will be
37188       able to discover them.
37189     - Make ContactInfo mandatory for authoritative directory servers.
37190     - Require server descriptors to list IPv4 addresses -- hostnames
37191       are no longer allowed. This also fixes some potential security
37192       problems with people providing hostnames as their address and then
37193       preferentially resolving them to partition users.
37194     - Change log line for unreachability to explicitly suggest /etc/hosts
37195       as the culprit. Also make it clearer what IP address and ports we're
37196       testing for reachability.
37197     - Put quotes around user-supplied strings when logging so users are
37198       more likely to realize if they add bad characters (like quotes)
37199       to the torrc.
37200     - Let auth dir servers start without specifying an Address config
37201       option.
37202     - Make unit tests (and other invocations that aren't the real Tor)
37203       run without launching listeners, creating subdirectories, and so on.
37206 Changes in version 0.1.1.5-alpha - 2005-08-08
37207   o Bugfixes included in 0.1.0.14.
37209   o Bugfixes on 0.1.0.x:
37210     - If you write "HiddenServicePort 6667 127.0.0.1 6668" in your
37211       torrc rather than "HiddenServicePort 6667 127.0.0.1:6668",
37212       it would silently using ignore the 6668.
37215 Changes in version 0.1.0.14 - 2005-08-08
37216   o Bugfixes on 0.1.0.x:
37217       - Fix the other half of the bug with crypto handshakes
37218         (CVE-2005-2643).
37219       - Fix an assert trigger if you send a 'signal term' via the
37220         controller when it's listening for 'event info' messages.
37223 Changes in version 0.1.1.4-alpha - 2005-08-04
37224   o Bugfixes included in 0.1.0.13.
37226   o Features:
37227     - Improve tor_gettimeofday() granularity on windows.
37228     - Make clients regenerate their keys when their IP address changes.
37229     - Implement some more GETINFO goodness: expose helper nodes, config
37230       options, getinfo keys.
37233 Changes in version 0.1.0.13 - 2005-08-04
37234   o Bugfixes on 0.1.0.x:
37235     - Fix a critical bug in the security of our crypto handshakes.
37236     - Fix a size_t underflow in smartlist_join_strings2() that made
37237       it do bad things when you hand it an empty smartlist.
37238     - Fix Windows installer to ship Tor license (thanks to Aphex for
37239       pointing out this oversight) and put a link to the doc directory
37240       in the start menu.
37241     - Explicitly set no-unaligned-access for sparc: it turns out the
37242       new gcc's let you compile broken code, but that doesn't make it
37243       not-broken.
37246 Changes in version 0.1.1.3-alpha - 2005-07-23
37247   o Bugfixes on 0.1.1.2-alpha:
37248     - Fix a bug in handling the controller's "post descriptor"
37249       function.
37250     - Fix several bugs in handling the controller's "extend circuit"
37251       function.
37252     - Fix a bug in handling the controller's "stream status" event.
37253     - Fix an assert failure if we have a controller listening for
37254       circuit events and we go offline.
37255     - Re-allow hidden service descriptors to publish 0 intro points.
37256     - Fix a crash when generating your hidden service descriptor if
37257       you don't have enough intro points already.
37259   o New features on 0.1.1.2-alpha:
37260     - New controller function "getinfo accounting", to ask how
37261       many bytes we've used in this time period.
37262     - Experimental support for helper nodes: a lot of the risk from
37263       a small static adversary comes because users pick new random
37264       nodes every time they rebuild a circuit. Now users will try to
37265       stick to the same small set of entry nodes if they can. Not
37266       enabled by default yet.
37268   o Bugfixes on 0.1.0.12:
37269     - If you're an auth dir server, always publish your dirport,
37270       even if you haven't yet found yourself to be reachable.
37271     - Fix a size_t underflow in smartlist_join_strings2() that made
37272       it do bad things when you hand it an empty smartlist.
37275 Changes in version 0.1.0.12 - 2005-07-18
37276   o New directory servers:
37277       - tor26 has changed IP address.
37279   o Bugfixes on 0.1.0.x:
37280     - Fix a possible double-free in tor_gzip_uncompress().
37281     - When --disable-threads is set, do not search for or link against
37282       pthreads libraries.
37283     - Don't trigger an assert if an authoritative directory server
37284       claims its dirport is 0.
37285     - Fix bug with removing Tor as an NT service: some people were
37286       getting "The service did not return an error." Thanks to Matt
37287       Edman for the fix.
37290 Changes in version 0.1.1.2-alpha - 2005-07-15
37291   o New directory servers:
37292     - tor26 has changed IP address.
37294   o Bugfixes on 0.1.0.x, crashes/leaks:
37295     - Port the servers-not-obeying-their-exit-policies fix from
37296       0.1.0.11.
37297     - Fix an fd leak in start_daemon().
37298     - On Windows, you can't always reopen a port right after you've
37299       closed it. So change retry_listeners() to only close and re-open
37300       ports that have changed.
37301     - Fix a possible double-free in tor_gzip_uncompress().
37303   o Bugfixes on 0.1.0.x, usability:
37304     - When tor_socketpair() fails in Windows, give a reasonable
37305       Windows-style errno back.
37306     - Let people type "tor --install" as well as "tor -install" when
37307       they
37308       want to make it an NT service.
37309     - NT service patch from Matt Edman to improve error messages.
37310     - When the controller asks for a config option with an abbreviated
37311       name, give the full name in our response.
37312     - Correct the man page entry on TrackHostExitsExpire.
37313     - Looks like we were never delivering deflated (i.e. compressed)
37314       running-routers lists, even when asked. Oops.
37315     - When --disable-threads is set, do not search for or link against
37316       pthreads libraries.
37318   o Bugfixes on 0.1.1.x:
37319     - Fix a seg fault with autodetecting which controller version is
37320       being used.
37322   o Features:
37323     - New hidden service descriptor format: put a version in it, and
37324       let people specify introduction/rendezvous points that aren't
37325       in "the directory" (which is subjective anyway).
37326     - Allow the DEBUG controller event to work again. Mark certain log
37327       entries as "don't tell this to controllers", so we avoid cycles.
37330 Changes in version 0.1.0.11 - 2005-06-30
37331   o Bugfixes on 0.1.0.x:
37332     - Fix major security bug: servers were disregarding their
37333       exit policies if clients behaved unexpectedly.
37334     - Make OS X init script check for missing argument, so we don't
37335       confuse users who invoke it incorrectly.
37336     - Fix a seg fault in "tor --hash-password foo".
37337     - The MAPADDRESS control command was broken.
37340 Changes in version 0.1.1.1-alpha - 2005-06-29
37341   o Bugfixes:
37342     - Make OS X init script check for missing argument, so we don't
37343       confuse users who invoke it incorrectly.
37344     - Fix a seg fault in "tor --hash-password foo".
37345     - Fix a possible way to DoS dirservers.
37346     - When we complain that your exit policy implicitly allows local or
37347       private address spaces, name them explicitly so operators can
37348       fix it.
37349     - Make the log message less scary when all the dirservers are
37350       temporarily unreachable.
37351     - We were printing the number of idle dns workers incorrectly when
37352       culling them.
37354   o Features:
37355     - Revised controller protocol (version 1) that uses ascii rather
37356       than binary. Add supporting libraries in python and java so you
37357       can use the controller from your applications without caring how
37358       our protocol works.
37359     - Spiffy new support for crypto hardware accelerators. Can somebody
37360       test this?
37363 Changes in version 0.0.9.10 - 2005-06-16
37364   o Bugfixes on 0.0.9.x (backported from 0.1.0.10):
37365     - Refuse relay cells that claim to have a length larger than the
37366       maximum allowed. This prevents a potential attack that could read
37367       arbitrary memory (e.g. keys) from an exit server's process
37368       (CVE-2005-2050).
37371 Changes in version 0.1.0.10 - 2005-06-14
37372   o Allow a few EINVALs from libevent before dying. Warn on kqueue with
37373     libevent before 1.1a.
37376 Changes in version 0.1.0.9-rc - 2005-06-09
37377   o Bugfixes:
37378     - Reset buf->highwater every time buf_shrink() is called, not just on
37379       a successful shrink. This was causing significant memory bloat.
37380     - Fix buffer overflow when checking hashed passwords.
37381     - Security fix: if seeding the RNG on Win32 fails, quit.
37382     - Allow seeding the RNG on Win32 even when you're not running as
37383       Administrator.
37384     - Disable threading on Solaris too. Something is wonky with it,
37385       cpuworkers, and reentrant libs.
37386     - Reenable the part of the code that tries to flush as soon as an
37387       OR outbuf has a full TLS record available. Perhaps this will make
37388       OR outbufs not grow as huge except in rare cases, thus saving lots
37389       of CPU time plus memory.
37390     - Reject malformed .onion addresses rather then passing them on as
37391       normal web requests.
37392     - Adapt patch from Adam Langley: fix possible memory leak in
37393       tor_lookup_hostname().
37394     - Initialize libevent later in the startup process, so the logs are
37395       already established by the time we start logging libevent warns.
37396     - Use correct errno on win32 if libevent fails.
37397     - Check and warn about known-bad/slow libevent versions.
37398     - Pay more attention to the ClientOnly config option.
37399     - Have torctl.in/tor.sh.in check for location of su binary (needed
37400       on FreeBSD)
37401     - Correct/add man page entries for LongLivedPorts, ExitPolicy,
37402       KeepalivePeriod, ClientOnly, NoPublish, HttpProxy, HttpsProxy,
37403       HttpProxyAuthenticator
37404     - Stop warning about sigpipes in the logs. We're going to
37405       pretend that getting these occasionally is normal and fine.
37406     - Resolve OS X installer bugs: stop claiming to be 0.0.9.2 in
37407       certain
37408       installer screens; and don't put stuff into StartupItems unless
37409       the user asks you to.
37410     - Require servers that use the default dirservers to have public IP
37411       addresses. We have too many servers that are configured with private
37412       IPs and their admins never notice the log entries complaining that
37413       their descriptors are being rejected.
37414     - Add OSX uninstall instructions. An actual uninstall script will
37415       come later.
37418 Changes in version 0.1.0.8-rc - 2005-05-23
37419   o Bugfixes:
37420     - It turns out that kqueue on OS X 10.3.9 was causing kernel
37421       panics. Disable kqueue on all OS X Tors.
37422     - Fix RPM: remove duplicate line accidentally added to the rpm
37423       spec file.
37424     - Disable threads on openbsd too, since its gethostaddr is not
37425       reentrant either.
37426     - Tolerate libevent 0.8 since it still works, even though it's
37427       ancient.
37428     - Enable building on Red Hat 9.0 again.
37429     - Allow the middle hop of the testing circuit to be running any
37430       version, now that most of them have the bugfix to let them connect
37431       to unknown servers. This will allow reachability testing to work
37432       even when 0.0.9.7-0.0.9.9 become obsolete.
37433     - Handle relay cells with rh.length too large. This prevents
37434       a potential attack that could read arbitrary memory (maybe even
37435       keys) from the exit server's process.
37436     - We screwed up the dirport reachability testing when we don't yet
37437       have a cached version of the directory. Hopefully now fixed.
37438     - Clean up router_load_single_router() (used by the controller),
37439       so it doesn't seg fault on error.
37440     - Fix a minor memory leak when somebody establishes an introduction
37441       point at your Tor server.
37442     - If a socks connection ends because read fails, don't warn that
37443       you're not sending a socks reply back.
37445   o Features:
37446     - Add HttpProxyAuthenticator config option too, that works like
37447       the HttpsProxyAuthenticator config option.
37448     - Encode hashed controller passwords in hex instead of base64,
37449       to make it easier to write controllers.
37452 Changes in version 0.1.0.7-rc - 2005-05-17
37453   o Bugfixes:
37454     - Fix a bug in the OS X package installer that prevented it from
37455       installing on Tiger.
37456     - Fix a script bug in the OS X package installer that made it
37457       complain during installation.
37458     - Find libevent even if it's hiding in /usr/local/ and your
37459       CFLAGS and LDFLAGS don't tell you to look there.
37460     - Be able to link with libevent as a shared library (the default
37461       after 1.0d), even if it's hiding in /usr/local/lib and even
37462       if you haven't added /usr/local/lib to your /etc/ld.so.conf,
37463       assuming you're running gcc. Otherwise fail and give a useful
37464       error message.
37465     - Fix a bug in the RPM packager: set home directory for _tor to
37466       something more reasonable when first installing.
37467     - Free a minor amount of memory that is still reachable on exit.
37470 Changes in version 0.1.0.6-rc - 2005-05-14
37471   o Bugfixes:
37472     - Implement --disable-threads configure option. Disable threads on
37473       netbsd by default, because it appears to have no reentrant resolver
37474       functions.
37475     - Apple's OS X 10.4.0 ships with a broken kqueue. The new libevent
37476       release (1.1) detects and disables kqueue if it's broken.
37477     - Append default exit policy before checking for implicit internal
37478       addresses. Now we don't log a bunch of complaints on startup
37479       when using the default exit policy.
37480     - Some people were putting "Address  " in their torrc, and they had
37481       a buggy resolver that resolved " " to 0.0.0.0. Oops.
37482     - If DataDir is ~/.tor, and that expands to /.tor, then default to
37483       LOCALSTATEDIR/tor instead.
37484     - Fix fragmented-message bug in TorControl.py.
37485     - Resolve a minor bug which would prevent unreachable dirports
37486       from getting suppressed in the published descriptor.
37487     - When the controller gave us a new descriptor, we weren't resolving
37488       it immediately, so Tor would think its address was 0.0.0.0 until
37489       we fetched a new directory.
37490     - Fix an uppercase/lowercase case error in suppressing a bogus
37491       libevent warning on some Linuxes.
37493   o Features:
37494     - Begin scrubbing sensitive strings from logs by default. Turn off
37495       the config option SafeLogging if you need to do debugging.
37496     - Switch to a new buffer management algorithm, which tries to avoid
37497       reallocing and copying quite as much. In first tests it looks like
37498       it uses *more* memory on average, but less cpu.
37499     - First cut at support for "create-fast" cells. Clients can use
37500       these when extending to their first hop, since the TLS already
37501       provides forward secrecy and authentication. Not enabled on
37502       clients yet.
37503     - When dirservers refuse a router descriptor, we now log its
37504       contactinfo, platform, and the poster's IP address.
37505     - Call tor_free_all instead of connections_free_all after forking, to
37506       save memory on systems that need to fork.
37507     - Whine at you if you're a server and you don't set your contactinfo.
37508     - Implement --verify-config command-line option to check if your torrc
37509       is valid without actually launching Tor.
37510     - Rewrite address "serifos.exit" to "localhost.serifos.exit"
37511       rather than just rejecting it.
37514 Changes in version 0.1.0.5-rc - 2005-04-27
37515   o Bugfixes:
37516     - Stop trying to print a null pointer if an OR conn fails because
37517       we didn't like its cert.
37518   o Features:
37519     - Switch our internal buffers implementation to use a ring buffer,
37520       to hopefully improve performance for fast servers a lot.
37521     - Add HttpsProxyAuthenticator support (basic auth only), based
37522       on patch from Adam Langley.
37523     - Bump the default BandwidthRate from 1 MB to 2 MB, to accommodate
37524       the fast servers that have been joining lately.
37525     - Give hidden service accesses extra time on the first attempt,
37526       since 60 seconds is often only barely enough. This might improve
37527       robustness more.
37528     - Improve performance for dirservers: stop re-parsing the whole
37529       directory every time you regenerate it.
37530     - Add more debugging info to help us find the weird dns freebsd
37531       pthreads bug; cleaner debug messages to help track future issues.
37534 Changes in version 0.0.9.9 - 2005-04-23
37535   o Bugfixes on 0.0.9.x:
37536     - If unofficial Tor clients connect and send weird TLS certs, our
37537       Tor server triggers an assert. This release contains a minimal
37538       backport from the broader fix that we put into 0.1.0.4-rc.
37541 Changes in version 0.1.0.4-rc - 2005-04-23
37542   o Bugfixes:
37543     - If unofficial Tor clients connect and send weird TLS certs, our
37544       Tor server triggers an assert. Stop asserting, and start handling
37545       TLS errors better in other situations too.
37546     - When the controller asks us to tell it about all the debug-level
37547       logs, it turns out we were generating debug-level logs while
37548       telling it about them, which turns into a bad loop. Now keep
37549       track of whether you're sending a debug log to the controller,
37550       and don't log when you are.
37551     - Fix the "postdescriptor" feature of the controller interface: on
37552       non-complete success, only say "done" once.
37553   o Features:
37554     - Clients are now willing to load balance over up to 2mB, not 1mB,
37555       of advertised bandwidth capacity.
37556     - Add a NoPublish config option, so you can be a server (e.g. for
37557       testing running Tor servers in other Tor networks) without
37558       publishing your descriptor to the primary dirservers.
37561 Changes in version 0.1.0.3-rc - 2005-04-08
37562   o Improvements on 0.1.0.2-rc:
37563     - Client now retries when streams end early for 'hibernating' or
37564       'resource limit' reasons, rather than failing them.
37565     - More automated handling for dirserver operators:
37566       - Automatically approve nodes running 0.1.0.2-rc or later,
37567         now that the the reachability detection stuff is working.
37568       - Now we allow two unverified servers with the same nickname
37569         but different keys. But if a nickname is verified, only that
37570         nickname+key are allowed.
37571       - If you're an authdirserver connecting to an address:port,
37572         and it's not the OR you were expecting, forget about that
37573         descriptor. If he *was* the one you were expecting, then forget
37574         about all other descriptors for that address:port.
37575       - Allow servers to publish descriptors from 12 hours in the future.
37576         Corollary: only whine about clock skew from the dirserver if
37577         he's a trusted dirserver (since now even verified servers could
37578         have quite wrong clocks).
37579     - Adjust maximum skew and age for rendezvous descriptors: let skew
37580       be 48 hours rather than 90 minutes.
37581     - Efficiency improvements:
37582       - Keep a big splay tree of (circid,orconn)->circuit mappings to make
37583         it much faster to look up a circuit for each relay cell.
37584       - Remove most calls to assert_all_pending_dns_resolves_ok(),
37585         since they're eating our cpu on exit nodes.
37586       - Stop wasting time doing a case insensitive comparison for every
37587         dns name every time we do any lookup. Canonicalize the names to
37588         lowercase and be done with it.
37589     - Start sending 'truncated' cells back rather than destroy cells,
37590       if the circuit closes in front of you. This means we won't have
37591       to abandon partially built circuits.
37592     - Only warn once per nickname from add_nickname_list_to_smartlist
37593       per failure, so an entrynode or exitnode choice that's down won't
37594       yell so much.
37595     - Put a note in the torrc about abuse potential with the default
37596       exit policy.
37597     - Revise control spec and implementation to allow all log messages to
37598       be sent to controller with their severities intact (suggested by
37599       Matt Edman). Update TorControl to handle new log event types.
37600     - Provide better explanation messages when controller's POSTDESCRIPTOR
37601       fails.
37602     - Stop putting nodename in the Platform string in server descriptors.
37603       It doesn't actually help, and it is confusing/upsetting some people.
37605   o Bugfixes on 0.1.0.2-rc:
37606     - We were printing the host mask wrong in exit policies in server
37607       descriptors. This isn't a critical bug though, since we were still
37608       obeying the exit policy internally.
37609     - Fix Tor when compiled with libevent but without pthreads: move
37610       connection_unregister() from _connection_free() to
37611       connection_free().
37612     - Fix an assert trigger (already fixed in 0.0.9.x): when we have
37613       the rare mysterious case of accepting a conn on 0.0.0.0:0, then
37614       when we look through the connection array, we'll find any of the
37615       cpu/dnsworkers. This is no good.
37617   o Bugfixes on 0.0.9.8:
37618     - Fix possible bug on threading platforms (e.g. win32) which was
37619       leaking a file descriptor whenever a cpuworker or dnsworker died.
37620     - When using preferred entry or exit nodes, ignore whether the
37621       circuit wants uptime or capacity. They asked for the nodes, they
37622       get the nodes.
37623     - chdir() to your datadirectory at the *end* of the daemonize process,
37624       not the beginning. This was a problem because the first time you
37625       run tor, if your datadir isn't there, and you have runasdaemon set
37626       to 1, it will try to chdir to it before it tries to create it. Oops.
37627     - Handle changed router status correctly when dirserver reloads
37628       fingerprint file. We used to be dropping all unverified descriptors
37629       right then. The bug was hidden because we would immediately
37630       fetch a directory from another dirserver, which would include the
37631       descriptors we just dropped.
37632     - When we're connecting to an OR and he's got a different nickname/key
37633       than we were expecting, only complain loudly if we're an OP or a
37634       dirserver. Complaining loudly to the OR admins just confuses them.
37635     - Tie MAX_DIR_SIZE to MAX_BUF_SIZE, so now directory sizes won't get
37636       artificially capped at 500kB.
37639 Changes in version 0.0.9.8 - 2005-04-07
37640   o Bugfixes on 0.0.9.x:
37641     - We have a bug that I haven't found yet. Sometimes, very rarely,
37642       cpuworkers get stuck in the 'busy' state, even though the cpuworker
37643       thinks of itself as idle. This meant that no new circuits ever got
37644       established. Here's a workaround to kill any cpuworker that's been
37645       busy for more than 100 seconds.
37648 Changes in version 0.1.0.2-rc - 2005-04-01
37649   o Bugfixes on 0.1.0.1-rc:
37650     - Fixes on reachability detection:
37651       - Don't check for reachability while hibernating.
37652       - If ORPort is reachable but DirPort isn't, still publish the
37653         descriptor, but zero out DirPort until it's found reachable.
37654       - When building testing circs for ORPort testing, use only
37655         high-bandwidth nodes, so fewer circuits fail.
37656       - Complain about unreachable ORPort separately from unreachable
37657         DirPort, so the user knows what's going on.
37658       - Make sure we only conclude ORPort reachability if we didn't
37659         initiate the conn. Otherwise we could falsely conclude that
37660         we're reachable just because we connected to the guy earlier
37661         and he used that same pipe to extend to us.
37662       - Authdirservers shouldn't do ORPort reachability detection,
37663         since they're in clique mode, so it will be rare to find a
37664         server not already connected to them.
37665       - When building testing circuits, always pick middle hops running
37666         Tor 0.0.9.7, so we avoid the "can't extend to unknown routers"
37667         bug. (This is a kludge; it will go away when 0.0.9.x becomes
37668         obsolete.)
37669       - When we decide we're reachable, actually publish our descriptor
37670         right then.
37671     - Fix bug in redirectstream in the controller.
37672     - Fix the state descriptor strings so logs don't claim edge streams
37673       are in a different state than they actually are.
37674     - Use recent libevent features when possible (this only really affects
37675       win32 and osx right now, because the new libevent with these
37676       features hasn't been released yet). Add code to suppress spurious
37677       libevent log msgs.
37678     - Prevent possible segfault in connection_close_unattached_ap().
37679     - Fix newlines on torrc in win32.
37680     - Improve error msgs when tor-resolve fails.
37682   o Improvements on 0.0.9.x:
37683     - New experimental script tor/contrib/ExerciseServer.py (needs more
37684       work) that uses the controller interface to build circuits and
37685       fetch pages over them. This will help us bootstrap servers that
37686       have lots of capacity but haven't noticed it yet.
37687     - New experimental script tor/contrib/PathDemo.py (needs more work)
37688       that uses the controller interface to let you choose whole paths
37689       via addresses like
37690       "<hostname>.<path,separated by dots>.<length of path>.path"
37691     - When we've connected to an OR and handshaked but didn't like
37692       the result, we were closing the conn without sending destroy
37693       cells back for pending circuits. Now send those destroys.
37696 Changes in version 0.0.9.7 - 2005-04-01
37697   o Bugfixes on 0.0.9.x:
37698     - Fix another race crash bug (thanks to Glenn Fink for reporting).
37699     - Compare identity to identity, not to nickname, when extending to
37700       a router not already in the directory. This was preventing us from
37701       extending to unknown routers. Oops.
37702     - Make sure to create OS X Tor user in <500 range, so we aren't
37703       creating actual system users.
37704     - Note where connection-that-hasn't-sent-end was marked, and fix
37705       a few really loud instances of this harmless bug (it's fixed more
37706       in 0.1.0.x).
37709 Changes in version 0.1.0.1-rc - 2005-03-28
37710   o New features:
37711     - Add reachability testing. Your Tor server will automatically try
37712       to see if its ORPort and DirPort are reachable from the outside,
37713       and it won't upload its descriptor until it decides they are.
37714     - Handle unavailable hidden services better. Handle slow or busy
37715       hidden services better.
37716     - Add support for CONNECTing through https proxies, with "HttpsProxy"
37717       config option.
37718     - New exit policy: accept most low-numbered ports, rather than
37719       rejecting most low-numbered ports.
37720     - More Tor controller support (still experimental). See
37721       http://tor.eff.org/doc/control-spec.txt for all the new features,
37722       including signals to emulate unix signals from any platform;
37723       redirectstream; extendcircuit; mapaddress; getinfo; postdescriptor;
37724       closestream; closecircuit; etc.
37725     - Make nt services work and start on startup on win32 (based on
37726       patch by Matt Edman).
37727     - Add a new AddressMap config directive to rewrite incoming socks
37728       addresses. This lets you, for example, declare an implicit
37729       required exit node for certain sites.
37730     - Add a new TrackHostExits config directive to trigger addressmaps
37731       for certain incoming socks addresses -- for sites that break when
37732       your exit keeps changing (based on patch by Mike Perry).
37733     - Redo the client-side dns cache so it's just an addressmap too.
37734     - Notice when our IP changes, and reset stats/uptime/reachability.
37735     - When an application is using socks5, give him the whole variety of
37736       potential socks5 responses (connect refused, host unreachable, etc),
37737       rather than just "success" or "failure".
37738     - A more sane version numbering system. See
37739       http://tor.eff.org/cvs/tor/doc/version-spec.txt for details.
37740     - New contributed script "exitlist": a simple python script to
37741       parse directories and find Tor nodes that exit to listed
37742       addresses/ports.
37743     - New contributed script "privoxy-tor-toggle" to toggle whether
37744       Privoxy uses Tor. Seems to be configured for Debian by default.
37745     - Report HTTP reasons to client when getting a response from directory
37746       servers -- so you can actually know what went wrong.
37747     - New config option MaxAdvertisedBandwidth which lets you advertise
37748       a low bandwidthrate (to not attract as many circuits) while still
37749       allowing a higher bandwidthrate in reality.
37751   o Robustness/stability fixes:
37752     - Make Tor use Niels Provos's libevent instead of its current
37753       poll-but-sometimes-select mess. This will let us use faster async
37754       cores (like epoll, kpoll, and /dev/poll), and hopefully work better
37755       on Windows too.
37756     - pthread support now too. This was forced because when we forked,
37757       we ended up wasting a lot of duplicate ram over time. Also switch
37758       to foo_r versions of some library calls to allow reentry and
37759       threadsafeness.
37760     - Better handling for heterogeneous / unreliable nodes:
37761       - Annotate circuits w/ whether they aim to contain high uptime nodes
37762         and/or high capacity nodes. When building circuits, choose
37763         appropriate nodes.
37764       - This means that every single node in an intro rend circuit,
37765         not just the last one, will have a minimum uptime.
37766       - New config option LongLivedPorts to indicate application streams
37767         that will want high uptime circuits.
37768       - Servers reset uptime when a dir fetch entirely fails. This
37769         hopefully reflects stability of the server's network connectivity.
37770       - If somebody starts his tor server in Jan 2004 and then fixes his
37771         clock, don't make his published uptime be a year.
37772       - Reset published uptime when you wake up from hibernation.
37773     - Introduce a notion of 'internal' circs, which are chosen without
37774       regard to the exit policy of the last hop. Intro and rendezvous
37775       circs must be internal circs, to avoid leaking information. Resolve
37776       and connect streams can use internal circs if they want.
37777     - New circuit pooling algorithm: make sure to have enough circs around
37778       to satisfy any predicted ports, and also make sure to have 2 internal
37779       circs around if we've required internal circs lately (and with high
37780       uptime if we've seen that lately too).
37781     - Split NewCircuitPeriod option into NewCircuitPeriod (30 secs),
37782       which describes how often we retry making new circuits if current
37783       ones are dirty, and MaxCircuitDirtiness (10 mins), which describes
37784       how long we're willing to make use of an already-dirty circuit.
37785     - Cannibalize GENERAL circs to be C_REND, C_INTRO, S_INTRO, and S_REND
37786       circ as necessary, if there are any completed ones lying around
37787       when we try to launch one.
37788     - Make hidden services try to establish a rendezvous for 30 seconds,
37789       rather than for n (where n=3) attempts to build a circuit.
37790     - Change SHUTDOWN_WAIT_LENGTH from a fixed 30 secs to a config option
37791       "ShutdownWaitLength".
37792     - Try to be more zealous about calling connection_edge_end when
37793       things go bad with edge conns in connection.c.
37794     - Revise tor-spec to add more/better stream end reasons.
37795     - Revise all calls to connection_edge_end to avoid sending "misc",
37796       and to take errno into account where possible.
37798   o Bug fixes:
37799     - Fix a race condition that can trigger an assert, when we have a
37800       pending create cell and an OR connection fails right then.
37801     - Fix several double-mark-for-close bugs, e.g. where we were finding
37802       a conn for a cell even if that conn is already marked for close.
37803     - Make sequence of log messages when starting on win32 with no config
37804       file more reasonable.
37805     - When choosing an exit node for a new non-internal circ, don't take
37806       into account whether it'll be useful for any pending x.onion
37807       addresses -- it won't.
37808     - Turn addr_policy_compare from a tristate to a quadstate; this should
37809       help address our "Ah, you allow 1.2.3.4:80. You are a good choice
37810       for google.com" problem.
37811     - Make "platform" string in descriptor more accurate for Win32 servers,
37812       so it's not just "unknown platform".
37813     - Fix an edge case in parsing config options (thanks weasel).
37814       If they say "--" on the commandline, it's not an option.
37815     - Reject odd-looking addresses at the client (e.g. addresses that
37816       contain a colon), rather than having the server drop them because
37817       they're malformed.
37818     - tor-resolve requests were ignoring .exit if there was a working circuit
37819       they could use instead.
37820     - REUSEADDR on normal platforms means you can rebind to the port
37821       right after somebody else has let it go. But REUSEADDR on win32
37822       means to let you bind to the port _even when somebody else
37823       already has it bound_! So, don't do that on Win32.
37824     - Change version parsing logic: a version is "obsolete" if it is not
37825       recommended and (1) there is a newer recommended version in the
37826       same series, or (2) there are no recommended versions in the same
37827       series, but there are some recommended versions in a newer series.
37828       A version is "new" if it is newer than any recommended version in
37829       the same series.
37830     - Stop most cases of hanging up on a socks connection without sending
37831       the socks reject.
37833   o Helpful fixes:
37834     - Require BandwidthRate to be at least 20kB/s for servers.
37835     - When a dirserver causes you to give a warn, mention which dirserver
37836       it was.
37837     - New config option DirAllowPrivateAddresses for authdirservers.
37838       Now by default they refuse router descriptors that have non-IP or
37839       private-IP addresses.
37840     - Stop publishing socksport in the directory, since it's not
37841       actually meant to be public. For compatibility, publish a 0 there
37842       for now.
37843     - Change DirFetchPeriod/StatusFetchPeriod to have a special "Be
37844       smart" value, that is low for servers and high for clients.
37845     - If our clock jumps forward by 100 seconds or more, assume something
37846       has gone wrong with our network and abandon all not-yet-used circs.
37847     - Warn when exit policy implicitly allows local addresses.
37848     - If we get an incredibly skewed timestamp from a dirserver mirror
37849       that isn't a verified OR, don't warn -- it's probably him that's
37850       wrong.
37851     - Since we ship our own Privoxy on OS X, tweak it so it doesn't write
37852       cookies to disk and doesn't log each web request to disk. (Thanks
37853       to Brett Carrington for pointing this out.)
37854     - When a client asks us for a dir mirror and we don't have one,
37855       launch an attempt to get a fresh one.
37856     - If we're hibernating and we get a SIGINT, exit immediately.
37857     - Add --with-dmalloc ./configure option, to track memory leaks.
37858     - And try to free all memory on closing, so we can detect what
37859       we're leaking.
37860     - Cache local dns resolves correctly even when they're .exit
37861       addresses.
37862     - Give a better warning when some other server advertises an
37863       ORPort that is actually an apache running ssl.
37864     - Add "opt hibernating 1" to server descriptor to make it clearer
37865       whether the server is hibernating.
37868 Changes in version 0.0.9.6 - 2005-03-24
37869   o Bugfixes on 0.0.9.x (crashes and asserts):
37870     - Add new end stream reasons to maintenance branch. Fix bug where
37871       reason (8) could trigger an assert. Prevent bug from recurring.
37872     - Apparently win32 stat wants paths to not end with a slash.
37873     - Fix assert triggers in assert_cpath_layer_ok(), where we were
37874       blowing away the circuit that conn->cpath_layer points to, then
37875       checking to see if the circ is well-formed. Backport check to make
37876       sure we dont use the cpath on a closed connection.
37877     - Prevent circuit_resume_edge_reading_helper() from trying to package
37878       inbufs for marked-for-close streams.
37879     - Don't crash on hup if your options->address has become unresolvable.
37880     - Some systems (like OS X) sometimes accept() a connection and tell
37881       you the remote host is 0.0.0.0:0. If this happens, due to some
37882       other mis-features, we get confused; so refuse the conn for now.
37884   o Bugfixes on 0.0.9.x (other):
37885     - Fix harmless but scary "Unrecognized content encoding" warn message.
37886     - Add new stream error reason: TORPROTOCOL reason means "you are not
37887       speaking a version of Tor I understand; say bye-bye to your stream."
37888     - Be willing to cache directories from up to ROUTER_MAX_AGE seconds
37889       into the future, now that we are more tolerant of skew. This
37890       resolves a bug where a Tor server would refuse to cache a directory
37891       because all the directories it gets are too far in the future;
37892       yet the Tor server never logs any complaints about clock skew.
37893     - Mac packaging magic: make man pages useable, and do not overwrite
37894       existing torrc files.
37895     - Make OS X log happily to /var/log/tor/tor.log
37898 Changes in version 0.0.9.5 - 2005-02-22
37899   o Bugfixes on 0.0.9.x:
37900     - Fix an assert race at exit nodes when resolve requests fail.
37901     - Stop picking unverified dir mirrors--it only leads to misery.
37902     - Patch from Matt Edman to make NT services work better. Service
37903       support is still not compiled into the executable by default.
37904     - Patch from Dmitri Bely so the Tor service runs better under
37905       the win32 SYSTEM account.
37906     - Make tor-resolve actually work (?) on Win32.
37907     - Fix a sign bug when getrlimit claims to have 4+ billion
37908       file descriptors available.
37909     - Stop refusing to start when bandwidthburst == bandwidthrate.
37910     - When create cells have been on the onion queue more than five
37911       seconds, just send back a destroy and take them off the list.
37914 Changes in version 0.0.9.4 - 2005-02-03
37915   o Bugfixes on 0.0.9:
37916     - Fix an assert bug that took down most of our servers: when
37917       a server claims to have 1 GB of bandwidthburst, don't
37918       freak out.
37919     - Don't crash as badly if we have spawned the max allowed number
37920       of dnsworkers, or we're out of file descriptors.
37921     - Block more file-sharing ports in the default exit policy.
37922     - MaxConn is now automatically set to the hard limit of max
37923       file descriptors we're allowed (ulimit -n), minus a few for
37924       logs, etc.
37925     - Give a clearer message when servers need to raise their
37926       ulimit -n when they start running out of file descriptors.
37927     - SGI Compatibility patches from Jan Schaumann.
37928     - Tolerate a corrupt cached directory better.
37929     - When a dirserver hasn't approved your server, list which one.
37930     - Go into soft hibernation after 95% of the bandwidth is used,
37931       not 99%. This is especially important for daily hibernators who
37932       have a small accounting max. Hopefully it will result in fewer
37933       cut connections when the hard hibernation starts.
37934     - Load-balance better when using servers that claim more than
37935       800kB/s of capacity.
37936     - Make NT services work (experimental, only used if compiled in).
37939 Changes in version 0.0.9.3 - 2005-01-21
37940   o Bugfixes on 0.0.9:
37941     - Backport the cpu use fixes from main branch, so busy servers won't
37942       need as much processor time.
37943     - Work better when we go offline and then come back, or when we
37944       run Tor at boot before the network is up. We do this by
37945       optimistically trying to fetch a new directory whenever an
37946       application request comes in and we think we're offline -- the
37947       human is hopefully a good measure of when the network is back.
37948     - Backport some minimal hidserv bugfixes: keep rend circuits open as
37949       long as you keep using them; actually publish hidserv descriptors
37950       shortly after they change, rather than waiting 20-40 minutes.
37951     - Enable Mac startup script by default.
37952     - Fix duplicate dns_cancel_pending_resolve reported by Giorgos Pallas.
37953     - When you update AllowUnverifiedNodes or FirewallPorts via the
37954       controller's setconf feature, we were always appending, never
37955       resetting.
37956     - When you update HiddenServiceDir via setconf, it was screwing up
37957       the order of reading the lines, making it fail.
37958     - Do not rewrite a cached directory back to the cache; otherwise we
37959       will think it is recent and not fetch a newer one on startup.
37960     - Workaround for webservers that lie about Content-Encoding: Tor
37961       now tries to autodetect compressed directories and compression
37962       itself. This lets us Proxypass dir fetches through apache.
37965 Changes in version 0.0.9.2 - 2005-01-04
37966   o Bugfixes on 0.0.9 (crashes and asserts):
37967     - Fix an assert on startup when the disk is full and you're logging
37968       to a file.
37969     - If you do socks4 with an IP of 0.0.0.x but *don't* provide a socks4a
37970       style address, then we'd crash.
37971     - Fix an assert trigger when the running-routers string we get from
37972       a dirserver is broken.
37973     - Make worker threads start and run on win32. Now win32 servers
37974       may work better.
37975     - Bandaid (not actually fix, but now it doesn't crash) an assert
37976       where the dns worker dies mysteriously and the main Tor process
37977       doesn't remember anything about the address it was resolving.
37979   o Bugfixes on 0.0.9 (Win32):
37980     - Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's
37981       name out of the warning/assert messages.
37982     - Fix a superficial "unhandled error on read" bug on win32.
37983     - The win32 installer no longer requires a click-through for our
37984       license, since our Free Software license grants rights but does not
37985       take any away.
37986     - Win32: When connecting to a dirserver fails, try another one
37987       immediately. (This was already working for non-win32 Tors.)
37988     - Stop trying to parse $HOME on win32 when hunting for default
37989       DataDirectory.
37990     - Make tor-resolve.c work on win32 by calling network_init().
37992   o Bugfixes on 0.0.9 (other):
37993     - Make 0.0.9.x build on Solaris again.
37994     - Due to a fencepost error, we were blowing away the \n when reporting
37995       confvalue items in the controller. So asking for multiple config
37996       values at once couldn't work.
37997     - When listing circuits that are pending on an opening OR connection,
37998       if we're an OR we were listing circuits that *end* at us as
37999       being pending on every listener, dns/cpu worker, etc. Stop that.
38000     - Dirservers were failing to create 'running-routers' or 'directory'
38001       strings if we had more than some threshold of routers. Fix them so
38002       they can handle any number of routers.
38003     - Fix a superficial "Duplicate mark for close" bug.
38004     - Stop checking for clock skew for OR connections, even for servers.
38005     - Fix a fencepost error that was chopping off the last letter of any
38006       nickname that is the maximum allowed nickname length.
38007     - Update URLs in log messages so they point to the new website.
38008     - Fix a potential problem in mangling server private keys while
38009       writing to disk (not triggered yet, as far as we know).
38010     - Include the licenses for other free software we include in Tor,
38011       now that we're shipping binary distributions more regularly.
38014 Changes in version 0.0.9.1 - 2004-12-15
38015   o Bugfixes on 0.0.9:
38016     - Make hibernation actually work.
38017     - Make HashedControlPassword config option work.
38018     - When we're reporting event circuit status to a controller,
38019       don't use the stream status code.
38022 Changes in version 0.0.9 - 2004-12-12
38023   o Cleanups:
38024     - Clean up manpage and torrc.sample file.
38025     - Clean up severities and text of log warnings.
38026   o Mistakes:
38027     - Make servers trigger an assert when they enter hibernation.
38030 Changes in version 0.0.9rc7 - 2004-12-08
38031   o Bugfixes on 0.0.9rc:
38032     - Fix a stack-trashing crash when an exit node begins hibernating.
38033     - Avoid looking at unallocated memory while considering which
38034       ports we need to build circuits to cover.
38035     - Stop a sigpipe: when an 'end' cell races with eof from the app,
38036       we shouldn't hold-open-until-flush if the eof arrived first.
38037     - Fix a bug with init_cookie_authentication() in the controller.
38038     - When recommending new-format log lines, if the upper bound is
38039       LOG_ERR, leave it implicit.
38041   o Bugfixes on 0.0.8.1:
38042     - Fix a whole slew of memory leaks.
38043     - Fix isspace() and friends so they still make Solaris happy
38044       but also so they don't trigger asserts on win32.
38045     - Fix parse_iso_time on platforms without strptime (eg win32).
38046     - win32: tolerate extra "readable" events better.
38047     - win32: when being multithreaded, leave parent fdarray open.
38048     - Make unit tests work on win32.
38051 Changes in version 0.0.9rc6 - 2004-12-06
38052   o Bugfixes on 0.0.9pre:
38053     - Clean up some more integer underflow opportunities (not exploitable
38054       we think).
38055     - While hibernating, hup should not regrow our listeners.
38056     - Send an end to the streams we close when we hibernate, rather
38057       than just chopping them off.
38058     - React to eof immediately on non-open edge connections.
38060   o Bugfixes on 0.0.8.1:
38061     - Calculate timeout for waiting for a connected cell from the time
38062       we sent the begin cell, not from the time the stream started. If
38063       it took a long time to establish the circuit, we would time out
38064       right after sending the begin cell.
38065     - Fix router_compare_addr_to_addr_policy: it was not treating a port
38066       of * as always matching, so we were picking reject *:* nodes as
38067       exit nodes too. Oops.
38069   o Features:
38070     - New circuit building strategy: keep a list of ports that we've
38071       used in the past 6 hours, and always try to have 2 circuits open
38072       or on the way that will handle each such port. Seed us with port
38073       80 so web users won't complain that Tor is "slow to start up".
38074     - Make kill -USR1 dump more useful stats about circuits.
38075     - When warning about retrying or giving up, print the address, so
38076       the user knows which one it's talking about.
38077     - If you haven't used a clean circuit in an hour, throw it away,
38078       just to be on the safe side. (This means after 6 hours a totally
38079       unused Tor client will have no circuits open.)
38082 Changes in version 0.0.9rc5 - 2004-12-01
38083   o Bugfixes on 0.0.8.1:
38084     - Disallow NDEBUG. We don't ever want anybody to turn off debug.
38085     - Let resolve conns retry/expire also, rather than sticking around
38086       forever.
38087     - If we are using select, make sure we stay within FD_SETSIZE.
38089   o Bugfixes on 0.0.9pre:
38090     - Fix integer underflow in tor_vsnprintf() that may be exploitable,
38091       but doesn't seem to be currently; thanks to Ilja van Sprundel for
38092       finding it.
38093     - If anybody set DirFetchPostPeriod, give them StatusFetchPeriod
38094       instead. Impose minima and maxima for all *Period options; impose
38095       even tighter maxima for fetching if we are a caching dirserver.
38096       Clip rather than rejecting.
38097     - Fetch cached running-routers from servers that serve it (that is,
38098       authdirservers and servers running 0.0.9rc5-cvs or later.)
38100   o Features:
38101     - Accept *:706 (silc) in default exit policy.
38102     - Implement new versioning format for post 0.1.
38103     - Support "foo.nickname.exit" addresses, to let Alice request the
38104       address "foo" as viewed by exit node "nickname". Based on a patch
38105       by Geoff Goodell.
38106     - Make tor --version --version dump the cvs Id of every file.
38109 Changes in version 0.0.9rc4 - 2004-11-28
38110   o Bugfixes on 0.0.8.1:
38111     - Make windows sockets actually non-blocking (oops), and handle
38112       win32 socket errors better.
38114   o Bugfixes on 0.0.9rc1:
38115     - Actually catch the -USR2 signal.
38118 Changes in version 0.0.9rc3 - 2004-11-25
38119   o Bugfixes on 0.0.8.1:
38120     - Flush the log file descriptor after we print "Tor opening log file",
38121       so we don't see those messages days later.
38123   o Bugfixes on 0.0.9rc1:
38124     - Make tor-resolve work again.
38125     - Avoid infinite loop in tor-resolve if tor hangs up on it.
38126     - Fix an assert trigger for clients/servers handling resolves.
38129 Changes in version 0.0.9rc2 - 2004-11-24
38130   o Bugfixes on 0.0.9rc1:
38131     - I broke socks5 support while fixing the eof bug.
38132     - Allow unitless bandwidths and intervals; they default to bytes
38133       and seconds.
38134     - New servers don't start out hibernating; they are active until
38135       they run out of bytes, so they have a better estimate of how
38136       long it takes, and so their operators can know they're working.
38139 Changes in version 0.0.9rc1 - 2004-11-23
38140   o Bugfixes on 0.0.8.1:
38141     - Finally fix a bug that's been plaguing us for a year:
38142       With high load, circuit package window was reaching 0. Whenever
38143       we got a circuit-level sendme, we were reading a lot on each
38144       socket, but only writing out a bit. So we would eventually reach
38145       eof. This would be noticed and acted on even when there were still
38146       bytes sitting in the inbuf.
38147     - When poll() is interrupted, we shouldn't believe the revents values.
38149   o Bugfixes on 0.0.9pre6:
38150     - Fix hibernate bug that caused pre6 to be broken.
38151     - Don't keep rephist info for routers that haven't had activity for
38152       24 hours. (This matters now that clients have keys, since we track
38153       them too.)
38154     - Never call close_temp_logs while validating log options.
38155     - Fix backslash-escaping on tor.sh.in and torctl.in.
38157   o Features:
38158     - Implement weekly/monthly/daily accounting: now you specify your
38159       hibernation properties by
38160       AccountingMax N bytes|KB|MB|GB|TB
38161       AccountingStart day|week|month [day] HH:MM
38162         Defaults to "month 1 0:00".
38163     - Let bandwidth and interval config options be specified as 5 bytes,
38164       kb, kilobytes, etc; and as seconds, minutes, hours, days, weeks.
38165     - kill -USR2 now moves all logs to loglevel debug (kill -HUP to
38166       get back to normal.)
38167     - If your requested entry or exit node has advertised bandwidth 0,
38168       pick it anyway.
38169     - Be more greedy about filling up relay cells -- we try reading again
38170       once we've processed the stuff we read, in case enough has arrived
38171       to fill the last cell completely.
38172     - Apply NT service patch from Osamu Fujino. Still needs more work.
38175 Changes in version 0.0.9pre6 - 2004-11-15
38176   o Bugfixes on 0.0.8.1:
38177     - Fix assert failure on malformed socks4a requests.
38178     - Use identity comparison, not nickname comparison, to choose which
38179       half of circuit-ID-space each side gets to use. This is needed
38180       because sometimes we think of a router as a nickname, and sometimes
38181       as a hex ID, and we can't predict what the other side will do.
38182     - Catch and ignore SIGXFSZ signals when log files exceed 2GB; our
38183       write() call will fail and we handle it there.
38184     - Add a FAST_SMARTLIST define to optionally inline smartlist_get
38185       and smartlist_len, which are two major profiling offenders.
38187   o Bugfixes on 0.0.9pre5:
38188     - Fix a bug in read_all that was corrupting config files on windows.
38189     - When we're raising the max number of open file descriptors to
38190       'unlimited', don't log that we just raised it to '-1'.
38191     - Include event code with events, as required by control-spec.txt.
38192     - Don't give a fingerprint when clients do --list-fingerprint:
38193       it's misleading, because it will never be the same again.
38194     - Stop using strlcpy in tor_strndup, since it was slowing us
38195       down a lot.
38196     - Remove warn on startup about missing cached-directory file.
38197     - Make kill -USR1 work again.
38198     - Hibernate if we start tor during the "wait for wakeup-time" phase
38199       of an accounting interval. Log our hibernation plans better.
38200     - Authoritative dirservers now also cache their directory, so they
38201       have it on start-up.
38203   o Features:
38204     - Fetch running-routers; cache running-routers; compress
38205       running-routers; serve compressed running-routers.z
38206     - Add NSI installer script contributed by J Doe.
38207     - Commit VC6 and VC7 workspace/project files.
38208     - Commit a tor.spec for making RPM files, with help from jbash.
38209     - Add contrib/torctl.in contributed by Glenn Fink.
38210     - Implement the control-spec's SAVECONF command, to write your
38211       configuration to torrc.
38212     - Get cookie authentication for the controller closer to working.
38213     - Include control-spec.txt in the tarball.
38214     - When set_conf changes our server descriptor, upload a new copy.
38215       But don't upload it too often if there are frequent changes.
38216     - Document authentication config in man page, and document signals
38217       we catch.
38218     - Clean up confusing parts of man page and torrc.sample.
38219     - Make expand_filename handle ~ and ~username.
38220     - Use autoconf to enable largefile support where necessary. Use
38221       ftello where available, since ftell can fail at 2GB.
38222     - Distinguish between TOR_TLS_CLOSE and TOR_TLS_ERROR, so we can
38223       log more informatively.
38224     - Give a slightly more useful output for "tor -h".
38225     - Refuse application socks connections to port 0.
38226     - Check clock skew for verified servers, but allow unverified
38227       servers and clients to have any clock skew.
38228     - Break DirFetchPostPeriod into:
38229       - DirFetchPeriod for fetching full directory,
38230       - StatusFetchPeriod for fetching running-routers,
38231       - DirPostPeriod for posting server descriptor,
38232       - RendPostPeriod for posting hidden service descriptors.
38233     - Make sure the hidden service descriptors are at a random offset
38234       from each other, to hinder linkability.
38237 Changes in version 0.0.9pre5 - 2004-11-09
38238   o Bugfixes on 0.0.9pre4:
38239     - Fix a seg fault in unit tests (doesn't affect main program).
38240     - Fix an assert bug where a hidden service provider would fail if
38241       the first hop of his rendezvous circuit was down.
38242     - Hidden service operators now correctly handle version 1 style
38243       INTRODUCE1 cells (nobody generates them still, so not a critical
38244       bug).
38245     - If do_hup fails, actually notice.
38246     - Handle more errnos from accept() without closing the listener.
38247       Some OpenBSD machines were closing their listeners because
38248       they ran out of file descriptors.
38249     - Send resolve cells to exit routers that are running a new
38250       enough version of the resolve code to work right.
38251     - Better handling of winsock includes on non-MSV win32 compilers.
38252     - Some people had wrapped their tor client/server in a script
38253       that would restart it whenever it died. This did not play well
38254       with our "shut down if your version is obsolete" code. Now people
38255       don't fetch a new directory if their local cached version is
38256       recent enough.
38257     - Make our autogen.sh work on ksh as well as bash.
38259   o Major Features:
38260     - Hibernation: New config option "AccountingMaxKB" lets you
38261       set how many KBytes per month you want to allow your server to
38262       consume. Rather than spreading those bytes out evenly over the
38263       month, we instead hibernate for some of the month and pop up
38264       at a deterministic time, work until the bytes are consumed, then
38265       hibernate again. Config option "MonthlyAccountingStart" lets you
38266       specify which day of the month your billing cycle starts on.
38267     - Control interface: a separate program can now talk to your
38268       client/server over a socket, and get/set config options, receive
38269       notifications of circuits and streams starting/finishing/dying,
38270       bandwidth used, etc. The next step is to get some GUIs working.
38271       Let us know if you want to help out. See doc/control-spec.txt .
38272     - Ship a contrib/tor-control.py as an example script to interact
38273       with the control port.
38274     - "tor --hash-password zzyxz" will output a salted password for
38275       use in authenticating to the control interface.
38276     - New log format in config:
38277       "Log minsev[-maxsev] stdout|stderr|syslog" or
38278       "Log minsev[-maxsev] file /var/foo"
38280   o Minor Features:
38281     - DirPolicy config option, to let people reject incoming addresses
38282       from their dirserver.
38283     - "tor --list-fingerprint" will list your identity key fingerprint
38284       and then exit.
38285     - Add "pass" target for RedirectExit, to make it easier to break
38286       out of a sequence of RedirectExit rules.
38287     - Clients now generate a TLS cert too, in preparation for having
38288       them act more like real nodes.
38289     - Ship src/win32/ in the tarball, so people can use it to build.
38290     - Make old win32 fall back to CWD if SHGetSpecialFolderLocation
38291       is broken.
38292     - New "router-status" line in directory, to better bind each verified
38293       nickname to its identity key.
38294     - Deprecate unofficial config option abbreviations, and abbreviations
38295       not on the command line.
38296     - Add a pure-C tor-resolve implementation.
38297     - Use getrlimit and friends to ensure we can reach MaxConn (currently
38298       1024) file descriptors.
38300   o Code security improvements, inspired by Ilja:
38301     - Replace sprintf with snprintf. (I think they were all safe, but
38302       hey.)
38303     - Replace strcpy/strncpy with strlcpy in more places.
38304     - Avoid strcat; use snprintf or strlcat instead.
38305     - snprintf wrapper with consistent (though not C99) overflow behavior.
38308 Changes in version 0.0.9pre4 - 2004-10-17
38309   o Bugfixes on 0.0.9pre3:
38310     - If the server doesn't specify an exit policy, use the real default
38311       exit policy, not reject *:*.
38312     - Ignore fascistfirewall when uploading/downloading hidden service
38313       descriptors, since we go through Tor for those; and when using
38314       an HttpProxy, since we assume it can reach them all.
38315     - When looking for an authoritative dirserver, use only the ones
38316       configured at boot. Don't bother looking in the directory.
38317     - The rest of the fix for get_default_conf_file() on older win32.
38318     - Make 'Routerfile' config option obsolete.
38320   o Features:
38321     - New 'MyFamily nick1,...' config option for a server to
38322       specify other servers that shouldn't be used in the same circuit
38323       with it. Only believed if nick1 also specifies us.
38324     - New 'NodeFamily nick1,nick2,...' config option for a client to
38325       specify nodes that it doesn't want to use in the same circuit.
38326     - New 'Redirectexit pattern address:port' config option for a
38327       server to redirect exit connections, e.g. to a local squid.
38330 Changes in version 0.0.9pre3 - 2004-10-13
38331   o Bugfixes on 0.0.8.1:
38332     - Better torrc example lines for dirbindaddress and orbindaddress.
38333     - Improved bounds checking on parsed ints (e.g. config options and
38334       the ones we find in directories.)
38335     - Better handling of size_t vs int, so we're more robust on 64
38336       bit platforms.
38337     - Fix the rest of the bug where a newly started OR would appear
38338       as unverified even after we've added his fingerprint and hupped
38339       the dirserver.
38340     - Fix a bug from 0.0.7: when read() failed on a stream, we would
38341       close it without sending back an end. So 'connection refused'
38342       would simply be ignored and the user would get no response.
38344   o Bugfixes on 0.0.9pre2:
38345     - Serving the cached-on-disk directory to people is bad. We now
38346       provide no directory until we've fetched a fresh one.
38347     - Workaround for bug on windows where cached-directories get crlf
38348       corruption.
38349     - Make get_default_conf_file() work on older windows too.
38350     - If we write a *:* exit policy line in the descriptor, don't write
38351       any more exit policy lines.
38353   o Features:
38354     - Use only 0.0.9pre1 and later servers for resolve cells.
38355     - Make the dirservers file obsolete.
38356       - Include a dir-signing-key token in directories to tell the
38357         parsing entity which key is being used to sign.
38358       - Remove the built-in bulky default dirservers string.
38359       - New config option "Dirserver %s:%d [fingerprint]", which can be
38360         repeated as many times as needed. If no dirservers specified,
38361         default to moria1,moria2,tor26.
38362     - Make moria2 advertise a dirport of 80, so people behind firewalls
38363       will be able to get a directory.
38364     - Http proxy support
38365       - Dirservers translate requests for http://%s:%d/x to /x
38366       - You can specify "HttpProxy %s[:%d]" and all dir fetches will
38367         be routed through this host.
38368       - Clients ask for /tor/x rather than /x for new enough dirservers.
38369         This way we can one day coexist peacefully with apache.
38370       - Clients specify a "Host: %s%d" http header, to be compatible
38371         with more proxies, and so running squid on an exit node can work.
38374 Changes in version 0.0.8.1 - 2004-10-13
38375   o Bugfixes:
38376     - Fix a seg fault that can be triggered remotely for Tor
38377       clients/servers with an open dirport.
38378     - Fix a rare assert trigger, where routerinfos for entries in
38379       our cpath would expire while we're building the path.
38380     - Fix a bug in OutboundBindAddress so it (hopefully) works.
38381     - Fix a rare seg fault for people running hidden services on
38382       intermittent connections.
38383     - Fix a bug in parsing opt keywords with objects.
38384     - Fix a stale pointer assert bug when a stream detaches and
38385       reattaches.
38386     - Fix a string format vulnerability (probably not exploitable)
38387       in reporting stats locally.
38388     - Fix an assert trigger: sometimes launching circuits can fail
38389       immediately, e.g. because too many circuits have failed recently.
38390     - Fix a compile warning on 64 bit platforms.
38393 Changes in version 0.0.9pre2 - 2004-10-03
38394   o Bugfixes:
38395     - Make fetching a cached directory work for 64-bit platforms too.
38396     - Make zlib.h a required header, not an optional header.
38399 Changes in version 0.0.9pre1 - 2004-10-01
38400   o Bugfixes:
38401     - Stop using separate defaults for no-config-file and
38402       empty-config-file. Now you have to explicitly turn off SocksPort,
38403       if you don't want it open.
38404     - Fix a bug in OutboundBindAddress so it (hopefully) works.
38405     - Improve man page to mention more of the 0.0.8 features.
38406     - Fix a rare seg fault for people running hidden services on
38407       intermittent connections.
38408     - Change our file IO stuff (especially wrt OpenSSL) so win32 is
38409       happier.
38410     - Fix more dns related bugs: send back resolve_failed and end cells
38411       more reliably when the resolve fails, rather than closing the
38412       circuit and then trying to send the cell. Also attach dummy resolve
38413       connections to a circuit *before* calling dns_resolve(), to fix
38414       a bug where cached answers would never be sent in RESOLVED cells.
38415     - When we run out of disk space, or other log writing error, don't
38416       crash. Just stop logging to that log and continue.
38417     - We were starting to daemonize before we opened our logs, so if
38418       there were any problems opening logs, we would complain to stderr,
38419       which wouldn't work, and then mysteriously exit.
38420     - Fix a rare bug where sometimes a verified OR would connect to us
38421       before he'd uploaded his descriptor, which would cause us to
38422       assign conn->nickname as though he's unverified. Now we look through
38423       the fingerprint list to see if he's there.
38424     - Fix a rare assert trigger, where routerinfos for entries in
38425       our cpath would expire while we're building the path.
38427   o Features:
38428     - Clients can ask dirservers for /dir.z to get a compressed version
38429       of the directory. Only works for servers running 0.0.9, of course.
38430     - Make clients cache directories and use them to seed their router
38431       lists at startup. This means clients have a datadir again.
38432     - Configuration infrastructure support for warning on obsolete
38433       options.
38434     - Respond to content-encoding headers by trying to uncompress as
38435       appropriate.
38436     - Reply with a deflated directory when a client asks for "dir.z".
38437       We could use allow-encodings instead, but allow-encodings isn't
38438       specified in HTTP 1.0.
38439     - Raise the max dns workers from 50 to 100.
38440     - Discourage people from setting their dirfetchpostperiod more often
38441       than once per minute.
38442     - Protect dirservers from overzealous descriptor uploading -- wait
38443       10 seconds after directory gets dirty, before regenerating.
38446 Changes in version 0.0.8 - 2004-08-25
38447   o Port it to SunOS 5.9 / Athena
38450 Changes in version 0.0.8rc2 - 2004-08-20
38451   o Make it compile on cygwin again.
38452   o When picking unverified routers, skip those with low uptime and/or
38453     low bandwidth, depending on what properties you care about.
38456 Changes in version 0.0.8rc1 - 2004-08-18
38457   o Changes from 0.0.7.3:
38458     - Bugfixes:
38459       - Fix assert triggers: if the other side returns an address 0.0.0.0,
38460         don't put it into the client dns cache.
38461       - If a begin failed due to exit policy, but we believe the IP address
38462         should have been allowed, switch that router to exitpolicy reject *:*
38463         until we get our next directory.
38464     - Features:
38465       - Clients choose nodes proportional to advertised bandwidth.
38466       - Avoid using nodes with low uptime as introduction points.
38467       - Handle servers with dynamic IP addresses: don't replace
38468         options->Address with the resolved one at startup, and
38469         detect our address right before we make a routerinfo each time.
38470       - 'FascistFirewall' option to pick dirservers and ORs on specific
38471         ports; plus 'FirewallPorts' config option to tell FascistFirewall
38472         which ports are open. (Defaults to 80,443)
38473       - Be more aggressive about trying to make circuits when the network
38474         has changed (e.g. when you unsuspend your laptop).
38475       - Check for time skew on http headers; report date in response to
38476         "GET /".
38477       - If the entrynode config line has only one node, don't pick it as
38478         an exitnode.
38479       - Add strict{entry|exit}nodes config options. If set to 1, then
38480         we refuse to build circuits that don't include the specified entry
38481         or exit nodes.
38482       - OutboundBindAddress config option, to bind to a specific
38483         IP address for outgoing connect()s.
38484       - End truncated log entries (e.g. directories) with "[truncated]".
38486   o Patches to 0.0.8preX:
38487     - Bugfixes:
38488       - Patches to compile and run on win32 again (maybe)?
38489       - Fix crash when looking for ~/.torrc with no $HOME set.
38490       - Fix a race bug in the unit tests.
38491       - Handle verified/unverified name collisions better when new
38492         routerinfo's arrive in a directory.
38493       - Sometimes routers were getting entered into the stats before
38494         we'd assigned their identity_digest. Oops.
38495       - Only pick and establish intro points after we've gotten a
38496         directory.
38497     - Features:
38498       - AllowUnverifiedNodes config option to let circuits choose no-name
38499         routers in entry,middle,exit,introduction,rendezvous positions.
38500         Allow middle and rendezvous positions by default.
38501       - Add a man page for tor-resolve.
38504 Changes in version 0.0.7.3 - 2004-08-12
38505   o Stop dnsworkers from triggering an assert failure when you
38506     ask them to resolve the host "".
38509 Changes in version 0.0.8pre3 - 2004-08-09
38510   o Changes from 0.0.7.2:
38511     - Allow multiple ORs with same nickname in routerlist -- now when
38512       people give us one identity key for a nickname, then later
38513       another, we don't constantly complain until the first expires.
38514     - Remember used bandwidth (both in and out), and publish 15-minute
38515       snapshots for the past day into our descriptor.
38516     - You can now fetch $DIRURL/running-routers to get just the
38517       running-routers line, not the whole descriptor list. (But
38518       clients don't use this yet.)
38519     - When people mistakenly use Tor as an http proxy, point them
38520       at the tor-doc.html rather than the INSTALL.
38521     - Remove our mostly unused -- and broken -- hex_encode()
38522       function. Use base16_encode() instead. (Thanks to Timo Lindfors
38523       for pointing out this bug.)
38524     - Rotate onion keys every 12 hours, not every 2 hours, so we have
38525       fewer problems with people using the wrong key.
38526     - Change the default exit policy to reject the default edonkey,
38527       kazaa, gnutella ports.
38528     - Add replace_file() to util.[ch] to handle win32's rename().
38530   o Changes from 0.0.8preX:
38531     - Fix two bugs in saving onion keys to disk when rotating, so
38532       hopefully we'll get fewer people using old onion keys.
38533     - Fix an assert error that was making SocksPolicy not work.
38534     - Be willing to expire routers that have an open dirport -- it's
38535       just the authoritative dirservers we want to not forget.
38536     - Reject tor-resolve requests for .onion addresses early, so we
38537       don't build a whole rendezvous circuit and then fail.
38538     - When you're warning a server that he's unverified, don't cry
38539       wolf unpredictably.
38540     - Fix a race condition: don't try to extend onto a connection
38541       that's still handshaking.
38542     - For servers in clique mode, require the conn to be open before
38543       you'll choose it for your path.
38544     - Fix some cosmetic bugs about duplicate mark-for-close, lack of
38545       end relay cell, etc.
38546     - Measure bandwidth capacity over the last 24 hours, not just 12
38547     - Bugfix: authoritative dirservers were making and signing a new
38548       directory for each client, rather than reusing the cached one.
38551 Changes in version 0.0.8pre2 - 2004-08-04
38552   o Changes from 0.0.7.2:
38553     - Security fixes:
38554       - Check directory signature _before_ you decide whether you're
38555         you're running an obsolete version and should exit.
38556       - Check directory signature _before_ you parse the running-routers
38557         list to decide who's running or verified.
38558     - Bugfixes and features:
38559       - Check return value of fclose while writing to disk, so we don't
38560         end up with broken files when servers run out of disk space.
38561       - Log a warning if the user uses an unsafe socks variant, so people
38562         are more likely to learn about privoxy or socat.
38563       - Dirservers now include RFC1123-style dates in the HTTP headers,
38564         which one day we will use to better detect clock skew.
38566   o Changes from 0.0.8pre1:
38567     - Make it compile without warnings again on win32.
38568     - Log a warning if you're running an unverified server, to let you
38569       know you might want to get it verified.
38570     - Only pick a default nickname if you plan to be a server.
38573 Changes in version 0.0.8pre1 - 2004-07-23
38574   o Bugfixes:
38575     - Made our unit tests compile again on OpenBSD 3.5, and tor
38576       itself compile again on OpenBSD on a sparc64.
38577     - We were neglecting milliseconds when logging on win32, so
38578       everything appeared to happen at the beginning of each second.
38580   o Protocol changes:
38581     - 'Extend' relay cell payloads now include the digest of the
38582       intended next hop's identity key. Now we can verify that we're
38583       extending to the right router, and also extend to routers we
38584       hadn't heard of before.
38586   o Features:
38587     - Tor nodes can now act as relays (with an advertised ORPort)
38588       without being manually verified by the dirserver operators.
38589       - Uploaded descriptors of unverified routers are now accepted
38590         by the dirservers, and included in the directory.
38591       - Verified routers are listed by nickname in the running-routers
38592         list; unverified routers are listed as "$<fingerprint>".
38593       - We now use hash-of-identity-key in most places rather than
38594         nickname or addr:port, for improved security/flexibility.
38595       - To avoid Sybil attacks, paths still use only verified servers.
38596         But now we have a chance to play around with hybrid approaches.
38597       - Nodes track bandwidth usage to estimate capacity (not used yet).
38598       - ClientOnly option for nodes that never want to become servers.
38599     - Directory caching.
38600       - "AuthoritativeDir 1" option for the official dirservers.
38601       - Now other nodes (clients and servers) will cache the latest
38602         directory they've pulled down.
38603       - They can enable their DirPort to serve it to others.
38604       - Clients will pull down a directory from any node with an open
38605         DirPort, and check the signature/timestamp correctly.
38606       - Authoritative dirservers now fetch directories from other
38607         authdirservers, to stay better synced.
38608       - Running-routers list tells who's down also, along with noting
38609         if they're verified (listed by nickname) or unverified (listed
38610         by hash-of-key).
38611       - Allow dirservers to serve running-router list separately.
38612         This isn't used yet.
38613     - ORs connect-on-demand to other ORs
38614       - If you get an extend cell to an OR you're not connected to,
38615         connect, handshake, and forward the create cell.
38616       - The authoritative dirservers stay connected to everybody,
38617         and everybody stays connected to 0.0.7 servers, but otherwise
38618         clients/servers expire unused connections after 5 minutes.
38619     - When servers get a sigint, they delay 30 seconds (refusing new
38620       connections) then exit. A second sigint causes immediate exit.
38621     - File and name management:
38622       - Look for .torrc if no CONFDIR "torrc" is found.
38623       - If no datadir is defined, then choose, make, and secure ~/.tor
38624         as datadir.
38625       - If torrc not found, exitpolicy reject *:*.
38626       - Expands ~/ in filenames to $HOME/ (but doesn't yet expand ~arma).
38627       - If no nickname is defined, derive default from hostname.
38628       - Rename secret key files, e.g. identity.key -> secret_id_key,
38629         to discourage people from mailing their identity key to tor-ops.
38630     - Refuse to build a circuit before the directory has arrived --
38631       it won't work anyway, since you won't know the right onion keys
38632       to use.
38633     - Try other dirservers immediately if the one you try is down. This
38634       should tolerate down dirservers better now.
38635     - Parse tor version numbers so we can do an is-newer-than check
38636       rather than an is-in-the-list check.
38637     - New socks command 'resolve', to let us shim gethostbyname()
38638       locally.
38639       - A 'tor_resolve' script to access the socks resolve functionality.
38640       - A new socks-extensions.txt doc file to describe our
38641         interpretation and extensions to the socks protocols.
38642     - Add a ContactInfo option, which gets published in descriptor.
38643     - Publish OR uptime in descriptor (and thus in directory) too.
38644     - Write tor version at the top of each log file
38645     - New docs in the tarball:
38646       - tor-doc.html.
38647       - Document that you should proxy your SSL traffic too.
38650 Changes in version 0.0.7.2 - 2004-07-07
38651   o A better fix for the 0.0.0.0 problem, that will hopefully
38652     eliminate the remaining related assertion failures.
38655 Changes in version 0.0.7.1 - 2004-07-04
38656   o When an address resolves to 0.0.0.0, treat it as a failed resolve,
38657     since internally we use 0.0.0.0 to signify "not yet resolved".
38660 Changes in version 0.0.7 - 2004-06-07
38661   o Updated the man page to reflect the new features.
38664 Changes in version 0.0.7rc2 - 2004-06-06
38665   o Changes from 0.0.7rc1:
38666     - Make it build on Win32 again.
38667   o Changes from 0.0.6.2:
38668     - Rotate dnsworkers and cpuworkers on SIGHUP, so they get new config
38669       settings too.
38672 Changes in version 0.0.7rc1 - 2004-06-02
38673   o Bugfixes:
38674     - On sighup, we were adding another log without removing the first
38675       one. So log messages would get duplicated n times for n sighups.
38676     - Several cases of using a connection after we'd freed it. The
38677       problem was that connections that are pending resolve are in both
38678       the pending_resolve tree, and also the circuit's resolving_streams
38679       list. When you want to remove one, you must remove it from both.
38680     - Fix a double-mark-for-close where an end cell arrived for a
38681       resolving stream, and then the resolve failed.
38682     - Check directory signatures based on name of signer, not on whom
38683       we got the directory from. This will let us cache directories more
38684       easily.
38685   o Features:
38686     - Crank up some of our constants to handle more users.
38689 Changes in version 0.0.7pre1 - 2004-06-02
38690   o Fixes for crashes and other obnoxious bugs:
38691     - Fix an epipe bug: sometimes when directory connections failed
38692       to connect, we would give them a chance to flush before closing
38693       them.
38694     - When we detached from a circuit because of resolvefailed, we
38695       would immediately try the same circuit twice more, and then
38696       give up on the resolve thinking we'd tried three different
38697       exit nodes.
38698     - Limit the number of intro circuits we'll attempt to build for a
38699       hidden service per 15-minute period.
38700     - Check recommended-software string *early*, before actually parsing
38701       the directory. Thus we can detect an obsolete version and exit,
38702       even if the new directory format doesn't parse.
38703   o Fixes for security bugs:
38704     - Remember which nodes are dirservers when you startup, and if a
38705       random OR enables his dirport, don't automatically assume he's
38706       a trusted dirserver.
38707   o Other bugfixes:
38708     - Directory connections were asking the wrong poll socket to
38709       start writing, and not asking themselves to start writing.
38710     - When we detached from a circuit because we sent a begin but
38711       didn't get a connected, we would use it again the first time;
38712       but after that we would correctly switch to a different one.
38713     - Stop warning when the first onion decrypt attempt fails; they
38714       will sometimes legitimately fail now that we rotate keys.
38715     - Override unaligned-access-ok check when $host_cpu is ia64 or
38716       arm. Apparently they allow it but the kernel whines.
38717     - Dirservers try to reconnect periodically too, in case connections
38718       have failed.
38719     - Fix some memory leaks in directory servers.
38720     - Allow backslash in Win32 filenames.
38721     - Made Tor build complain-free on FreeBSD, hopefully without
38722       breaking other BSD builds. We'll see.
38723   o Features:
38724     - Doxygen markup on all functions and global variables.
38725     - Make directory functions update routerlist, not replace it. So
38726       now directory disagreements are not so critical a problem.
38727     - Remove the upper limit on number of descriptors in a dirserver's
38728       directory (not that we were anywhere close).
38729     - Allow multiple logfiles at different severity ranges.
38730     - Allow *BindAddress to specify ":port" rather than setting *Port
38731       separately. Allow multiple instances of each BindAddress config
38732       option, so you can bind to multiple interfaces if you want.
38733     - Allow multiple exit policy lines, which are processed in order.
38734       Now we don't need that huge line with all the commas in it.
38735     - Enable accept/reject policies on SOCKS connections, so you can bind
38736       to 0.0.0.0 but still control who can use your OP.
38739 Changes in version 0.0.6.2 - 2004-05-16
38740   o Our integrity-checking digest was checking only the most recent cell,
38741     not the previous cells like we'd thought.
38742     Thanks to Stefan Mark for finding the flaw!
38745 Changes in version 0.0.6.1 - 2004-05-06
38746   o Fix two bugs in our AES counter-mode implementation (this affected
38747     onion-level stream encryption, but not TLS-level). It turns
38748     out we were doing something much more akin to a 16-character
38749     polyalphabetic cipher. Oops.
38750     Thanks to Stefan Mark for finding the flaw!
38751   o Retire moria3 as a directory server, and add tor26 as a directory
38752     server.
38755 Changes in version 0.0.6 - 2004-05-02
38756   [version bump only]
38759 Changes in version 0.0.6rc4 - 2004-05-01
38760   o Update the built-in dirservers list to use the new directory format
38761   o Fix a rare seg fault: if a node offering a hidden service attempts
38762     to build a circuit to Alice's rendezvous point and fails before it
38763     reaches the last hop, it retries with a different circuit, but
38764     then dies.
38765   o Handle windows socket errors correctly.
38768 Changes in version 0.0.6rc3 - 2004-04-28
38769   o Don't expire non-general excess circuits (if we had enough
38770     circuits open, we were expiring rendezvous circuits -- even
38771     when they had a stream attached. oops.)
38772   o Fetch randomness from /dev/urandom better (not via fopen/fread)
38773   o Better debugging for tls errors
38774   o Some versions of openssl have an SSL_pending function that erroneously
38775     returns bytes when there is a non-application record pending.
38776   o Set Content-Type on the directory and hidserv descriptor.
38777   o Remove IVs from cipher code, since AES-ctr has none.
38778   o Win32 fixes. Tor now compiles on win32 with no warnings/errors.
38779     o We were using an array of length zero in a few places.
38780     o win32's gethostbyname can't resolve an IP to an IP.
38781     o win32's close can't close a socket.
38784 Changes in version 0.0.6rc2 - 2004-04-26
38785   o Fix a bug where we were closing tls connections intermittently.
38786     It turns out openssl keeps its errors around -- so if an error
38787     happens, and you don't ask about it, and then another openssl
38788     operation happens and succeeds, and you ask if there was an error,
38789     it tells you about the first error. Fun fun.
38790   o Fix a bug that's been lurking since 27 may 03 (!)
38791     When passing back a destroy cell, we would use the wrong circ id.
38792     'Mostly harmless', but still worth fixing.
38793   o Since we don't support truncateds much, don't bother sending them;
38794     just close the circ.
38795   o check for <machine/limits.h> so we build on NetBSD again (I hope).
38796   o don't crash if a conn that sent a begin has suddenly lost its circuit
38797     (this was quite rare).
38800 Changes in version 0.0.6rc1 - 2004-04-25
38801   o We now rotate link (tls context) keys and onion keys.
38802   o CREATE cells now include oaep padding, so you can tell
38803     if you decrypted them correctly.
38804   o Add bandwidthburst to server descriptor.
38805   o Directories now say which dirserver signed them.
38806   o Use a tor_assert macro that logs failed assertions too.
38809 Changes in version 0.0.6pre5 - 2004-04-18
38810   o changes from 0.0.6pre4:
38811     - make tor build on broken freebsd 5.2 installs
38812     - fix a failed assert when you try an intro point, get a nack, and try
38813       a second one and it works.
38814     - when alice uses a port that the hidden service doesn't accept,
38815       it now sends back an end cell (denied by exit policy). otherwise
38816       alice would just have to wait to time out.
38817     - fix another rare bug: when we had tried all the intro
38818       points for a hidden service, we fetched the descriptor
38819       again, but we left our introcirc thinking it had already
38820       sent an intro, so it kept waiting for a response...
38821     - bugfix: when you sleep your hidden-service laptop, as soon
38822       as it wakes up it tries to upload a service descriptor, but
38823       socketpair fails for some reason (localhost not up yet?).
38824       now we simply give up on that upload, and we'll try again later.
38825       i'd still like to find the bug though.
38826     - if an intro circ waiting for an ack dies before getting one, then
38827       count it as a nack
38828     - we were reusing stale service descriptors and refetching usable
38829       ones. oops.
38832 Changes in version 0.0.6pre4 - 2004-04-14
38833   o changes from 0.0.6pre3:
38834     - when bob fails to connect to the rendezvous point, and his
38835       circ didn't fail because of the rendezvous point itself, then
38836       he retries a couple of times
38837     - we expire introduction and rendezvous circs more thoroughly
38838       (sometimes they were hanging around forever)
38839     - we expire unattached rendezvous streams that have been around
38840       too long (they were sticking around forever).
38841     - fix a measly fencepost error that was crashing everybody with
38842       a strict glibc.
38845 Changes in version 0.0.6pre3 - 2004-04-14
38846   o changes from 0.0.6pre2:
38847     - make hup work again
38848     - fix some memory leaks for dirservers
38849     - allow more skew in rendezvous descriptor timestamps, to help
38850       handle people like blanu who don't know what time it is
38851     - normal circs are 3 hops, but some rend/intro circs are 4, if
38852       the initiator doesn't get to choose the last hop
38853     - send acks for introductions, so alice can know whether to try
38854       again
38855     - bob publishes intro points more correctly
38856   o changes from 0.0.5:
38857     - fix an assert trigger that's been plaguing us since the days
38858       of 0.0.2prexx (thanks weasel!)
38859     - retry stream correctly when we fail to connect because of
38860       exit-policy-reject (should try another) or can't-resolve-address
38861       (also should try another, because dns on random internet servers
38862       is flaky).
38863     - when we hup a dirserver and we've *removed* a server from the
38864       approved-routers list, now we remove that server from the
38865       in-memory directories too
38868 Changes in version 0.0.6pre2 - 2004-04-08
38869   o We fixed our base32 implementation. Now it works on all architectures.
38872 Changes in version 0.0.6pre1 - 2004-04-08
38873   o Features:
38874     - Hidden services and rendezvous points are implemented. Go to
38875       http://6sxoyfb3h2nvok2d.onion/ for an index of currently available
38876       hidden services. (This only works via a socks4a proxy such as
38877       Privoxy, and currently it's quite slow.)
38880 Changes in version 0.0.5 - 2004-03-30
38881   [version bump only]
38884 Changes in version 0.0.5rc3 - 2004-03-29
38885   o Install torrc as torrc.sample -- we no longer clobber your
38886     torrc. (Woo!)
38887   o Re-enable recommendedversion checking (we broke it in rc2, oops)
38888   o Add in a 'notice' log level for things the operator should hear
38889     but that aren't warnings
38892 Changes in version 0.0.5rc2 - 2004-03-29
38893   o Hold socks connection open until reply is flushed (if possible)
38894   o Make exit nodes resolve IPs to IPs immediately, rather than asking
38895     the dns farm to do it.
38896   o Fix c99 aliasing warnings in rephist.c
38897   o Don't include server descriptors that are older than 24 hours in the
38898     directory.
38899   o Give socks 'reject' replies their whole 15s to attempt to flush,
38900     rather than seeing the 60s timeout and assuming the flush had failed.
38901   o Clean automake droppings from the cvs repository
38904 Changes in version 0.0.5rc1 - 2004-03-28
38905   o Fix mangled-state bug in directory fetching (was causing sigpipes).
38906   o Only build circuits after we've fetched the directory: clients were
38907     using only the directory servers before they'd fetched a directory.
38908     This also means longer startup time; so it goes.
38909   o Fix an assert trigger where an OP would fail to handshake, and we'd
38910     expect it to have a nickname.
38911   o Work around a tsocks bug: do a socks reject when AP connection dies
38912     early, else tsocks goes into an infinite loop.
38915 Changes in version 0.0.4 - 2004-03-26
38916   o When connecting to a dirserver or OR and the network is down,
38917     we would crash.
38920 Changes in version 0.0.3 - 2004-03-26
38921   o Warn and fail if server chose a nickname with illegal characters
38922   o Port to Solaris and Sparc:
38923     - include missing header fcntl.h
38924     - have autoconf find -lsocket -lnsl automatically
38925     - deal with hardware word alignment
38926     - make uname() work (solaris has a different return convention)
38927     - switch from using signal() to sigaction()
38928   o Preliminary work on reputation system:
38929     - Keep statistics on success/fail of connect attempts; they're published
38930       by kill -USR1 currently.
38931     - Add a RunTesting option to try to learn link state by creating test
38932       circuits, even when SocksPort is off.
38933     - Remove unused open circuits when there are too many.
38936 Changes in version 0.0.2 - 2004-03-19
38937     - Include strlcpy and strlcat for safer string ops
38938     - define INADDR_NONE so we compile (but still not run) on solaris
38941 Changes in version 0.0.2pre27 - 2004-03-14
38942   o Bugfixes:
38943     - Allow internal tor networks (we were rejecting internal IPs,
38944       now we allow them if they're set explicitly).
38945     - And fix a few endian issues.
38948 Changes in version 0.0.2pre26 - 2004-03-14
38949   o New features:
38950     - If a stream times out after 15s without a connected cell, don't
38951       try that circuit again: try a new one.
38952     - Retry streams at most 4 times. Then give up.
38953     - When a dirserver gets a descriptor from an unknown router, it
38954       logs its fingerprint (so the dirserver operator can choose to
38955       accept it even without mail from the server operator).
38956     - Inform unapproved servers when we reject their descriptors.
38957     - Make tor build on Windows again. It works as a client, who knows
38958       about as a server.
38959     - Clearer instructions in the torrc for how to set up a server.
38960     - Be more efficient about reading fd's when our global token bucket
38961       (used for rate limiting) becomes empty.
38962   o Bugfixes:
38963     - Stop asserting that computers always go forward in time. It's
38964       simply not true.
38965     - When we sent a cell (e.g. destroy) and then marked an OR connection
38966       expired, we might close it before finishing a flush if the other
38967       side isn't reading right then.
38968     - Don't allow dirservers to start if they haven't defined
38969       RecommendedVersions
38970     - We were caching transient dns failures. Oops.
38971     - Prevent servers from publishing an internal IP as their address.
38972     - Address a strcat vulnerability in circuit.c
38975 Changes in version 0.0.2pre25 - 2004-03-04
38976   o New features:
38977     - Put the OR's IP in its router descriptor, not its fqdn. That way
38978       we'll stop being stalled by gethostbyname for nodes with flaky dns,
38979       e.g. poblano.
38980   o Bugfixes:
38981     - If the user typed in an address that didn't resolve, the server
38982       crashed.
38985 Changes in version 0.0.2pre24 - 2004-03-03
38986   o Bugfixes:
38987     - Fix an assertion failure in dns.c, where we were trying to dequeue
38988       a pending dns resolve even if it wasn't pending
38989     - Fix a spurious socks5 warning about still trying to write after the
38990       connection is finished.
38991     - Hold certain marked_for_close connections open until they're finished
38992       flushing, rather than losing bytes by closing them too early.
38993     - Correctly report the reason for ending a stream
38994     - Remove some duplicate calls to connection_mark_for_close
38995     - Put switch_id and start_daemon earlier in the boot sequence, so it
38996       will actually try to chdir() to options.DataDirectory
38997     - Make 'make test' exit(1) if a test fails; fix some unit tests
38998     - Make tor fail when you use a config option it doesn't know about,
38999       rather than warn and continue.
39000     - Make --version work
39001     - Bugfixes on the rpm spec file and tor.sh, so it's more up to date
39004 Changes in version 0.0.2pre23 - 2004-02-29
39005   o New features:
39006     - Print a statement when the first circ is finished, so the user
39007       knows it's working.
39008     - If a relay cell is unrecognized at the end of the circuit,
39009       send back a destroy. (So attacks to mutate cells are more
39010       clearly thwarted.)
39011     - New config option 'excludenodes' to avoid certain nodes for circuits.
39012     - When it daemonizes, it chdir's to the DataDirectory rather than "/",
39013       so you can collect coredumps there.
39014  o Bugfixes:
39015     - Fix a bug in tls flushing where sometimes data got wedged and
39016       didn't flush until more data got sent. Hopefully this bug was
39017       a big factor in the random delays we were seeing.
39018     - Make 'connected' cells include the resolved IP, so the client
39019       dns cache actually gets populated.
39020     - Disallow changing from ORPort=0 to ORPort>0 on hup.
39021     - When we time-out on a stream and detach from the circuit, send an
39022       end cell down it first.
39023     - Only warn about an unknown router (in exitnodes, entrynodes,
39024       excludenodes) after we've fetched a directory.
39027 Changes in version 0.0.2pre22 - 2004-02-26
39028   o New features:
39029     - Servers publish less revealing uname information in descriptors.
39030     - More memory tracking and assertions, to crash more usefully when
39031       errors happen.
39032     - If the default torrc isn't there, just use some default defaults.
39033       Plus provide an internal dirservers file if they don't have one.
39034     - When the user tries to use Tor as an http proxy, give them an http
39035       501 failure explaining that we're a socks proxy.
39036     - Dump a new router.desc on hup, to help confused people who change
39037       their exit policies and then wonder why router.desc doesn't reflect
39038       it.
39039     - Clean up the generic tor.sh init script that we ship with.
39040   o Bugfixes:
39041     - If the exit stream is pending on the resolve, and a destroy arrives,
39042       then the stream wasn't getting removed from the pending list. I
39043       think this was the one causing recent server crashes.
39044     - Use a more robust poll on OSX 10.3, since their poll is flaky.
39045     - When it couldn't resolve any dirservers, it was useless from then on.
39046       Now it reloads the RouterFile (or default dirservers) if it has no
39047       dirservers.
39048     - Move the 'tor' binary back to /usr/local/bin/ -- it turns out
39049       many users don't even *have* a /usr/local/sbin/.
39052 Changes in version 0.0.2pre21 - 2004-02-18
39053   o New features:
39054     - There's a ChangeLog file that actually reflects the changelog.
39055     - There's a 'torify' wrapper script, with an accompanying
39056       tor-tsocks.conf, that simplifies the process of using tsocks for
39057       tor. It even has a man page.
39058     - The tor binary gets installed to sbin rather than bin now.
39059     - Retry streams where the connected cell hasn't arrived in 15 seconds
39060     - Clean up exit policy handling -- get the default out of the torrc,
39061       so we can update it without forcing each server operator to fix
39062       his/her torrc.
39063     - Allow imaps and pop3s in default exit policy
39064   o Bugfixes:
39065     - Prevent picking middleman nodes as the last node in the circuit
39068 Changes in version 0.0.2pre20 - 2004-01-30
39069   o New features:
39070     - We now have a deb package, and it's in debian unstable. Go to
39071       it, apt-getters. :)
39072     - I've split the TotalBandwidth option into BandwidthRate (how many
39073       bytes per second you want to allow, long-term) and
39074       BandwidthBurst (how many bytes you will allow at once before the cap
39075       kicks in). This better token bucket approach lets you, say, set
39076       BandwidthRate to 10KB/s and BandwidthBurst to 10MB, allowing good
39077       performance while not exceeding your monthly bandwidth quota.
39078     - Push out a tls record's worth of data once you've got it, rather
39079       than waiting until you've read everything waiting to be read. This
39080       may improve performance by pipelining better. We'll see.
39081     - Add an AP_CONN_STATE_CONNECTING state, to allow streams to detach
39082       from failed circuits (if they haven't been connected yet) and attach
39083       to new ones.
39084     - Expire old streams that haven't managed to connect. Some day we'll
39085       have them reattach to new circuits instead.
39087   o Bugfixes:
39088     - Fix several memory leaks that were causing servers to become bloated
39089       after a while.
39090     - Fix a few very rare assert triggers. A few more remain.
39091     - Setuid to User _before_ complaining about running as root.
39094 Changes in version 0.0.2pre19 - 2004-01-07
39095   o Bugfixes:
39096     - Fix deadlock condition in dns farm. We were telling a child to die by
39097       closing the parent's file descriptor to him. But newer children were
39098       inheriting the open file descriptor from the parent, and since they
39099       weren't closing it, the socket never closed, so the child never read
39100       eof, so he never knew to exit. Similarly, dns workers were holding
39101       open other sockets, leading to all sorts of chaos.
39102     - New cleaner daemon() code for forking and backgrounding.
39103     - If you log to a file, it now prints an entry at the top of the
39104       logfile so you know it's working.
39105     - The onionskin challenge length was 30 bytes longer than necessary.
39106     - Started to patch up the spec so it's not quite so out of date.
39109 Changes in version 0.0.2pre18 - 2004-01-02
39110   o Bugfixes:
39111     - Fix endian issues with the 'integrity' field in the relay header.
39112     - Fix a potential bug where connections in state
39113       AP_CONN_STATE_CIRCUIT_WAIT might unexpectedly ask to write.
39116 Changes in version 0.0.2pre17 - 2003-12-30
39117   o Bugfixes:
39118     - Made --debuglogfile (or any second log file, actually) work.
39119     - Resolved an edge case in get_unique_circ_id_by_conn where a smart
39120       adversary could force us into an infinite loop.
39122   o Features:
39123     - Each onionskin handshake now includes a hash of the computed key,
39124       to prove the server's identity and help perfect forward secrecy.
39125     - Changed cell size from 256 to 512 bytes (working toward compatibility
39126       with MorphMix).
39127     - Changed cell length to 2 bytes, and moved it to the relay header.
39128     - Implemented end-to-end integrity checking for the payloads of
39129       relay cells.
39130     - Separated streamid from 'recognized' (otherwise circuits will get
39131       messed up when we try to have streams exit from the middle). We
39132       use the integrity-checking to confirm that a cell is addressed to
39133       this hop.
39134     - Randomize the initial circid and streamid values, so an adversary who
39135       breaks into a node can't learn how many circuits or streams have
39136       been made so far.
39139 Changes in version 0.0.2pre16 - 2003-12-14
39140   o Bugfixes:
39141     - Fixed a bug that made HUP trigger an assert
39142     - Fixed a bug where a circuit that immediately failed wasn't being
39143       counted as a failed circuit in counting retries.
39145   o Features:
39146     - Now we close the circuit when we get a truncated cell: otherwise we're
39147       open to an anonymity attack where a bad node in the path truncates
39148       the circuit and then we open streams at him.
39149     - Add port ranges to exit policies
39150     - Add a conservative default exit policy
39151     - Warn if you're running tor as root
39152     - on HUP, retry OR connections and close/rebind listeners
39153     - options.EntryNodes: try these nodes first when picking the first node
39154     - options.ExitNodes: if your best choices happen to include any of
39155       your preferred exit nodes, you choose among just those preferred
39156       exit nodes.
39157     - options.ExcludedNodes: nodes that are never picked in path building
39160 Changes in version 0.0.2pre15 - 2003-12-03
39161   o Robustness and bugfixes:
39162     - Sometimes clients would cache incorrect DNS resolves, which would
39163       really screw things up.
39164     - An OP that goes offline would slowly leak all its sockets and stop
39165       working.
39166     - A wide variety of bugfixes in exit node selection, exit policy
39167       handling, and processing pending streams when a new circuit is
39168       established.
39169     - Pick nodes for a path only from those the directory says are up
39170     - Choose randomly from all running dirservers, not always the first one
39171     - Increase allowed http header size for directory fetch.
39172     - Stop writing to stderr (if we're daemonized it will be closed).
39173     - Enable -g always, so cores will be more useful to me.
39174     - Switch "-lcrypto -lssl" to "-lssl -lcrypto" for broken distributions.
39176   o Documentation:
39177     - Wrote a man page. It lists commonly used options.
39179   o Configuration:
39180     - Change default loglevel to warn.
39181     - Make PidFile default to null rather than littering in your CWD.
39182     - OnionRouter config option is now obsolete. Instead it just checks
39183       ORPort>0.
39184     - Moved to a single unified torrc file for both clients and servers.
39187 Changes in version 0.0.2pre14 - 2003-11-29
39188   o Robustness and bugfixes:
39189     - Force the admin to make the DataDirectory himself
39190       - to get ownership/permissions right
39191       - so clients no longer make a DataDirectory and then never use it
39192     - fix bug where a client who was offline for 45 minutes would never
39193       pull down a directory again
39194     - fix (or at least hide really well) the dns assert bug that was
39195       causing server crashes
39196     - warnings and improved robustness wrt clockskew for certs
39197     - use the native daemon(3) to daemonize, when available
39198     - exit if bind() fails
39199     - exit if neither socksport nor orport is defined
39200     - include our own tor_timegm (Win32 doesn't have its own)
39201     - bugfix for win32 with lots of connections
39202     - fix minor bias in PRNG
39203     - make dirserver more robust to corrupt cached directory
39205   o Documentation:
39206     - Wrote the design document (woo)
39208   o Circuit building and exit policies:
39209     - Circuits no longer try to use nodes that the directory has told them
39210       are down.
39211     - Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and
39212       bitcounts (18.0.0.0/8).
39213     - Make AP connections standby for a circuit if no suitable circuit
39214       exists, rather than failing
39215     - Circuits choose exit node based on addr/port, exit policies, and
39216       which AP connections are standing by
39217     - Bump min pathlen from 2 to 3
39218     - Relay end cells have a payload to describe why the stream ended.
39219     - If the stream failed because of exit policy, try again with a new
39220       circuit.
39221     - Clients have a dns cache to remember resolved addresses.
39222     - Notice more quickly when we have no working circuits
39224   o Configuration:
39225     - APPort is now called SocksPort
39226     - SocksBindAddress, ORBindAddress, DirBindAddress let you configure
39227       where to bind
39228     - RecommendedVersions is now a config variable rather than
39229       hardcoded (for dirservers)
39230     - Reloads config on HUP
39231     - Usage info on -h or --help
39232     - If you set User and Group config vars, it'll setu/gid to them.
39235 Changes in version 0.0.2pre13 - 2003-10-19
39236   o General stability:
39237     - SSL_write no longer fails when it returns WANTWRITE and the number
39238       of bytes in the buf has changed by the next SSL_write call.
39239     - Fix segfault fetching directory when network is down
39240     - Fix a variety of minor memory leaks
39241     - Dirservers reload the fingerprints file on HUP, so I don't have
39242       to take down the network when I approve a new router
39243     - Default server config file has explicit Address line to specify fqdn
39245   o Buffers:
39246     - Buffers grow and shrink as needed (Cut process size from 20M to 2M)
39247     - Make listener connections not ever alloc bufs
39249   o Autoconf improvements:
39250     - don't clobber an external CFLAGS in ./configure
39251     - Make install now works
39252     - create var/lib/tor on make install
39253     - autocreate a tor.sh initscript to help distribs
39254     - autocreate the torrc and sample-server-torrc with correct paths
39256   o Log files and Daemonizing now work:
39257     - If --DebugLogFile is specified, log to it at -l debug
39258     - If --LogFile is specified, use it instead of commandline
39259     - If --RunAsDaemon is set, tor forks and backgrounds on startup