ReleaseNotes (1596228B)
1 This document summarizes new features and bugfixes in each stable 2 release of Tor. If you want to see more detailed descriptions of the 3 changes in each development snapshot, see the ChangeLog file. 4 5 Changes in version 0.4.9.5 - 2026-02-12 6 This first stable release in the 0.4.9 series introduces a new 7 circuit-level encryption design for better client security, as well 8 as a more scalable way for large relay operators to annotate which 9 relays they run so clients can avoid using too many of them in a 10 single circuit. 11 12 o Major features (cryptography): 13 - Clients and relays can now negotiate Counter Galois Onion (CGO) 14 relay cryptography, as designed by Jean Paul Degabriele, 15 Alessandro Melloni, Jean-Pierre Münch, and Martijn Stam. CGO 16 provides improved resistance to several kinds of tagging attacks, 17 better forward secrecy, and better forgery resistance. Closes 18 ticket 41047. Implements proposal 359. 19 20 o Major features (path selection): 21 - Clients and relays now support "happy families", a system to 22 simplify relay family operation and improve directory performance. 23 With "happy families", relays in a family share a secret "family 24 key", which they use to prove their membership in the family. 25 Implements proposal 321; closes ticket 41009. Note that until 26 enough clients are upgraded, relay operators will still need to 27 configure MyFamily lists. But once clients no longer depend on 28 those lists, we will be able to remove them entirely, thereby 29 simplifying family operation, and making microdescriptor downloads 30 approximately 80% smaller. For more information, see 31 https://community.torproject.org/relay/setup/post-install/family-ids/ 32 33 o Major bugfixes (conflux): 34 - Ensure conflux guards obey family and subnet restrictions. Fixes 35 bug 40976; bugfix on 0.4.8.1-alpha. 36 37 o Major bugfixes (controller events): 38 - Fix spikes occurring in bandwidth cache events on control connection. 39 Fixes bug 31524; bugfix on 0.0.9pre5. 40 41 o Major bugfixes (sandbox): 42 - Fix sandbox to work on architectures that use Linux's generic 43 syscall interface, extending support for AArch64 (ARM64) and 44 adding support for RISC-V, allowing test_include.sh and the 45 sandbox unit tests to pass on these systems even when building 46 with fragile hardening enabled. Fixes bugs 40465 and 40599; bugfix 47 on 0.2.5.1-alpha. 48 49 o Minor features (client security, reliability): 50 - When KeepaliveIsolateSOCKSAuth is keeping a circuit alive, expire 51 the circuit based on when it was last in use for any stream, not 52 (as we did before) based on when a stream was last attached to it. 53 Closes ticket 41157. Implements a minimal version of Proposal 368. 54 55 o Minor features (exit relays): 56 - Implement reevaluating new exit policy against existing 57 connections. This is controlled by new config option 58 ReevaluateExitPolicy, defaulting to 0. Closes ticket 40676. 59 - Implement a token-bucket based rate limiter for stream creation 60 and resolve request. It is configured by the DoSStream* family of 61 configuration options. Closes ticket 40736. 62 - Add Monero ports to the ReducedExitPolicy. Closes ticket 41168. 63 64 o Minor features (bridges): 65 - Save complete bridge lines to 'datadir/bridgelines'. Closes 66 ticket 29128. 67 68 o Minor features (client extensibility): 69 - Implement new HTTPTunnelPort features for interoperability with 70 Arti's HTTP CONNECT proxy. This work adds new headers to requests 71 to and replies from the HttpConnectPort, support for OPTIONS 72 requests, tightens the expected syntax for Proxy-Authorization, 73 and increases defense-in-depth against some kinds of cross-site 74 HTTP attacks. Closes ticket 41156. Implements proposal 365. 75 - Detect invalid SOCKS5 username/password combinations according to 76 new extended parameters syntax. (Currently, this rejects any 77 SOCKS5 username beginning with "<torS0X>", except for the username 78 "<torS0X>0". Such usernames are now reserved to communicate 79 additional parameters with other Tor implementations.) Implements 80 proposal 351. 81 82 o Minor features (sandboxing): 83 - Allow the fstatat64 and statx syscalls on i386 architecture when 84 glibc >= 2.33. On i386, glibc uses fstatat64 instead of newfstatat 85 for stat operations, and statx for time64 support. Without this, 86 SIGHUP configuration reload fails when using sandbox mode with 87 %include directives on i386 with Debian Bookworm or newer. 88 - Allow the lstat64 syscall on i386 architecture. This syscall is 89 used by glob() in glibc 2.36+ when processing %include directives 90 with directory patterns. 91 92 o Minor features (security): 93 - Increase the size of our finite-field Diffie Hellman TLS group 94 (which we should never actually use!) to 2048 bits. Part of 95 ticket 41067. 96 - Require TLS version 1.2 or later. (Version 1.3 support will be 97 required in the near future.) Part of ticket 41067. 98 - Update TLS 1.2 client cipher list to match current Firefox. Part 99 of ticket 41067. 100 - Verify needle is smaller than haystack before calling memmem. 101 Closes ticket 40854. 102 103 o Minor features (onion services): 104 - Add 3 more keywords to the ADD_ONION control command: 105 PoWDefensesEnabled, PoWQueueRate and PoWQueueBurst which correspond 106 to HiddenServicePoWDefensesEnabled, HiddenServicePoWQueueRate and 107 HiddenServicePoWQueueBurst from torrc. 108 - Reduce the minimum value of hsdir_interval to match recent tor- 109 spec change. 110 111 o Minor feature (directory authority): 112 - Introduce MinimalAcceptedServerVersion to allow configuring 113 the minimum accepted relay version without requiring a new tor 114 release. Closes ticket 40817. 115 116 o Minor features (metrics port): 117 - New metrics on the MetricsPort for the number of BUG() calls that 118 occurred at runtime. Fixes bugs 40839 and 41104; bugfix on 119 0.4.7.1-alpha. 120 - Handle rephist tracking of ntor and ntor_v3 handshakes 121 individually such that MetricsPort exposes the correct values. 122 Fixes bug 40638; bugfix on 0.4.7.11. 123 - Add new metrics for relays on the MetricsPort namely the count of 124 drop cell, destroy cell and the number of circuit protocol 125 violation seen that lead to a circuit close. Closes ticket 40816. 126 127 o Minor features (forward-compatibility): 128 - We now correctly parse microdescriptors and router descriptors 129 that do not include TAP onion keys. (For backward compatibility, 130 authorities continue to require these keys.) Implements part of 131 proposal 350. 132 133 o Minor features (portability, android): 134 - Use /data/local/tmp for data storage on Android by default. Closes 135 ticket 40487. Patch from Hans-Christoph Steiner. 136 137 o Minor features (directory authority): 138 - Export unsigned consensus documents once we have seen a threshold 139 of signatures, as a step toward the consensus transparency 140 experiment. 141 142 o Minor features (fallbackdir): 143 - Regenerate fallback directories generated on February 12, 2026. 144 145 o Minor features (geoip data): 146 - Update the geoip files to match the IPFire Location Database, 147 as retrieved on 2026/02/12. 148 149 o Minor features (windows): 150 - Various compilation fixes for our Windows CI. Closes ticket 41214. 151 152 o Minor bugfixes (exit relays): 153 - Clip every returned DNS TTL to 60 (RESOLVED) in order to mitigate 154 an exit DNS cache oracle. Fixes bug 40979; bugfix on 0.3.5.1-alpha. 155 156 o Minor bugfixes (spec conformance): 157 - Set the length field correctly on RELAY_COMMAND_CONFLUX_SWITCH 158 messages. Previously, it was always set to the maximum value. 159 Fixes bug 41056; bugfix on 0.4.8.1-alpha. 160 - Do not treat "15" as a recognized remote END reason code. 161 Formerly, we treated it as synonymous with a local ENTRYPOLICY, 162 which isn't a valid remote code at all. Fixes bug 41171; bugfix 163 on 0.2.0.8-alpha. 164 165 o Minor bugfixes (tooling): 166 - Fix a false positive valgrind related to inspecting a bitfield 167 next to another uninitialized bitfield. Fixes bug 41182; bugfix 168 on 0.3.3.2-alpha. 169 - Fix minor warnings from newer versions of shellcheck and clang. 170 Fixes bug 41166; bugfix on 0.4.3.1-alpha and several 171 other versions. 172 - Fix a warning when compiling with GCC 14.2. Closes 41032. 173 174 o Minor bugfixes (threads): 175 - Make thread control POSIX compliant. Fixes bug 41109; bugfix 176 on 0.4.8.17. 177 178 o Minor bugfix (client DNS): 179 - Handle empty DNS reply without sending back an error and instead 180 send back NOERROR (RFC1035 error code 0x0). Fixes bug 40248; 181 bugfix on 0.3.5.1-alpha. 182 183 o Minor bugfixes (directory authorities): 184 - After we added layer-two vanguards, directory authorities wouldn't 185 think any of their vanguards were suitable for circuits, leading 186 to a "Failed to find node for hop #2 of our path. Discarding this 187 circuit." log message once per second from startup until they made 188 a fresh consensus. Now they look to their existing consensus on 189 startup, letting them build circuits properly from the beginning. 190 Fixes bug 40802; bugfix on 0.4.7.1-alpha. 191 192 o Minor bugfixes (tests): 193 - Fix a test failure with OpenSSL builds running at security level 1 194 or greater, which does not permit SHA-1 certificates. Fixes bug 195 41021; bugfix on 0.2.8.1-alpha. 196 197 o Minor bugfixes (bridges): 198 - Don't warn when BridgeRelay is 1 and ExitRelay is explicitly set 199 to 0. Fixes bug 40884; bugfix on 0.4.8.3-rc. 200 201 o Minor bugfixes (conflux, client): 202 - Avoid a non fatal assert caused by data coming in on a conflux set 203 that is being freed during shutdown. Fixes bug 40870; bugfix 204 on 0.4.8.1-alpha. 205 206 o Minor bugfixes (testing network): 207 - Enabling TestingTorNetwork no longer forces fast hidden service 208 intro point rotation. This reduces noise and errors when using 209 hidden services with TestingTorNetwork enabled. Fixes bug 40922; 210 bugfix on 0.3.2.1-alpha. 211 212 o Minor bugfixes (relay): 213 - Refuse to overwrite an existing *.secret_family_key when running 214 tor --keygen-family. Fixes bug 41184; bugfix on 0.4.9.1-alpha. 215 216 o New system requirements: 217 - When built with LibreSSL, Tor now requires LibreSSL 3.7 or later. 218 Part of ticket 41059. 219 - When built with OpenSSL, Tor now requires OpenSSL 1.1.1 or later. 220 (We strongly recommend 3.0 or later, but still build with 1.1.1, 221 even though it is not supported by the OpenSSL team, due to its 222 presence in Debian oldstable.) Part of ticket 41059. 223 224 o Removed features (relays): 225 - Relays no longer support clients that falsely advertise TLS 226 ciphers they don't really support. (Clients have not done this 227 since 0.2.3.17-beta). Part of ticket 41031. 228 - Relays no longer support clients that require obsolete v1 and v2 229 link handshakes. (The v3 link handshake has been supported since 230 0.2.3.6-alpha). Part of ticket 41031. 231 - Relays no longer support the obsolete TAP circuit extension 232 protocol. (For backward compatibility, however, relays still 233 continue to include TAP keys in their descriptors.) Implements 234 part of proposal 350. 235 - Relays no longer support the obsolete "RSA-SHA256-TLSSecret" 236 authentication method, which used a dangerously short RSA key, and 237 which required access TLS session internals. The current method 238 ("Ed25519-SHA256-RFC5705") has been supported since 0.3.0.1-alpha. 239 Closes ticket 41020. 240 241 o Removed features (directory authorities): 242 - Directory authorities no longer support consensus methods before 243 method 32. Closes ticket 40835. 244 - We include a new consensus method that removes support for 245 computing "package" lines in consensus documents. This feature was 246 never used, and support for including it in our votes was removed 247 in 0.4.2.1-alpha. Finishes implementation of proposal 301. 248 249 250 Changes in version 0.4.8.22 - 2026-01-28 251 This is likely the very last release of the 0.4.8.x series. Three major 252 bugfixes detailed below including two affecting directory servers (basically 253 all relays). We strongly recommend upgrading as soon as possible. 254 255 o Major bugfixes (security): 256 - Avoid an out-of-bounds read error that could occur with 257 V1-formatted EXTEND cells. Fixes bug 41180; bugfix on 0.4.8.1-alpha. 258 This is tracked as TROVE-2025-016. 259 260 o Major bugfixes (directory servers): 261 - Allow old clients to fetch the consensus even if they use version 262 0 of the SENDME protocol. In mid 2025 we changed the required 263 minimum version of the "FlowCtrl" protocol to 1, meaning directory 264 caches hang up on clients that send a version 0 SENDME cell. Since 265 old clients were no longer able to retrieve the consensus, they 266 couldn't learn about this required minimum version -- meaning 267 we've had many many old clients loading down directory servers for 268 the past months. Fixes bug 41191; bugfix on 0.4.1.1-alpha. 269 - Don't count networkstatus serves until they finish. When we 270 started serving a consensus document but the client didn't receive 271 all of it, we were still counting that as a success in our stats. 272 This mistake, which can be triggered for example by obsolete 273 clients or by DPI-based censorship, led to wildly inflated user 274 counts because we estimate total users in the world based on 275 successful consensus fetches. Fixes bug 41192; bugfix 276 on 0.2.1.1-alpha. 277 278 o Minor feature (testing, CI): 279 - Bump the CI version of chutney to the current version as of 280 2026-01-21 (3338f5c). 281 282 o Minor features (debugging, compression): 283 - Do not check for compression bombs for buffers smaller than 5MB 284 (increased from 64 KB). Fixes ticket 40739; bugfix on 0.2.1.29. 285 286 o Minor features (directory servers): 287 - Track how many times directory servers begin serving networkstatus 288 documents, so we can compare it to the number of times we finish 289 serving them. Motivated by the fixes in ticket 41192. 290 291 o Minor features (fallbackdir): 292 - Regenerate fallback directories generated on January 28, 2026. 293 294 o Minor features (geoip data): 295 - Update the geoip files to match the IPFire Location Database, as 296 retrieved on 2026/01/28. 297 298 o Minor bugfixes (relay): 299 - Downgrade "Error relaying cell across rendezvous" log warn to info 300 as the error condition is possible under normal circumstances. Fixes 301 bug 40951; bugfix on 0.3.5.1-alpha. 302 303 o Code simplification and refactoring: 304 - Simplify SOCKS4a parsing to avoid the (false) appearance of 305 integer underflows, and to make the logic more obvious. Fixes bug 306 41190; bugfix on 0.3.5.1-alpha. 307 308 309 Changes in version 0.4.8.21 - 2025-11-17 310 This release is a continuation of the previous one and addresses additional 311 Conflux-related issues identified through further testing and feedback from 312 relay operators. We strongly recommend upgrading as soon as possible. 313 314 o Major bugfixes (conflux, exit): 315 - When dequeuing out-of-order conflux cells, the circuit could be 316 closed in between two dequeues, which could lead to mishandling 317 a NULL pointer. Fixes bug 41162; bugfix on 0.4.8.4. 318 319 o Minor feature (compiler flag): 320 - Add -mbranch-protection=standard for arm64. 321 322 o Minor features (fallbackdir): 323 - Regenerate fallback directories generated on November 17, 2025. 324 325 o Minor features (geoip data): 326 - Update the geoip files to match the IPFire Location Database, as 327 retrieved on 2025/11/17. 328 329 o Minor bugfixes (bridges, pluggable transport): 330 - Fix a bug causing the initial tor process to hang instead of 331 exiting with RunAsDaemon, when pluggable transports are used. 332 Fixes bug 41088; bugfix on 0.4.8.1-alpha. 333 334 335 Changes in version 0.4.8.20 - 2025-11-10 336 This release fixes several bugs related to Conflux edge cases as well as 337 adding a new hardening compiler flag if supported. 338 339 o Minor feature (compiler flag): 340 - Add -fcf-protection=full if supported by the compiler. 341 Implements ticket 41139. 342 343 o Minor features (fallbackdir): 344 - Regenerate fallback directories generated on November 10, 2025. 345 346 o Minor features (geoip data): 347 - Update the geoip files to match the IPFire Location Database, as 348 retrieved on 2025/11/10. 349 350 o Minor bugfixes (conflux fragile asserts): 351 - Fix the root cause of some conflux fragile asserts when a control 352 port listener is attached. Fixes bug 41037; bugfix on 0.4.8.16. 353 354 o Minor bugfixes (conflux, relay): 355 - Fix a series of conflux edge cases about sequence number 356 arithmetic and OOM handler kicking in under heavy memory pressure. 357 Fixes bug 41155; bugfix on 0.4.8.4. 358 359 360 Changes in version 0.4.8.19 - 2025-10-06 361 This release provides major bugfixes for a LibreSSL issue and a flow control 362 C-tor specific problem (not protocol). We strongly recommend you upgrade as 363 soon as possible. 364 365 o Major bugfixes (client, TLS): 366 - Fix some clients not being able to connect to LibreSSL relays. 367 Fixes bug 41134; bugfix on 0.4.8.17. 368 369 o Minor bugfixes (stream flow control performance): 370 - Use a 5 ms grace period to allow an edge connection to flush its 371 stream data to the socket before sending an XOFF. This 372 significantly reduces the number of XON/XOFF messages sent when 373 (1) the application is reading stream data at a fast rate, and (2) 374 conflux is enabled. Fixes part of bug 41130; bugfix on 0.4.7.2-alpha. 375 376 o Minor features (fallbackdir): 377 - Regenerate fallback directories generated on October 06, 2025. 378 379 o Minor features (geoip data): 380 - Update the geoip files to match the IPFire Location Database, as 381 retrieved on 2025/10/06. 382 383 o Minor bugfix (process): 384 - Avoid closing all possible FDs when spawning a process (PT). On 385 some systems, this could lead to 3+ minutes hang. Fixes bug 40990; 386 bugfix on 0.3.5.1-alpha. 387 388 389 Changes in version 0.4.8.18 - 2025-09-16 390 This is a minor release with a major onion service directory cache (HSDir) 391 bug fix. A series of minor bugfixes as well. As always, we strongly recommend 392 to upgrade as soon as possible. 393 394 o Major bugfixes (onion service directory cache): 395 - Preserve the download counter of an onion service descriptor 396 across descriptor uploads, so that recently updated descriptors 397 don't get pruned if there is memory pressure soon after update. 398 Additionally, create a separate torrc option MaxHSDirCacheBytes 399 that defaults to the former 20% of MaxMemInQueues threshold, but 400 can be controlled by relay operators under DoS. Also enforce this 401 threshold during HSDir uploads. Fixes bug 41006; bugfix 402 on 0.4.8.14. 403 404 o Minor feature (padding, logging): 405 - Reduce the amount of messages being logged related to channel 406 padding timeout when log level is "notice". 407 408 o Minor features (fallbackdir): 409 - Regenerate fallback directories generated on September 16, 2025. 410 411 o Minor features (geoip data): 412 - Update the geoip files to match the IPFire Location Database, as 413 retrieved on 2025/09/16. 414 415 o Minor bugfix (conflux): 416 - Remove the pending nonce if we realize that the nonce of the 417 unlinked circuit is not tracked anymore. Should avoid the non 418 fatal assert triggered with a control port circuit event. Fixes 419 bug 41037; bugfix on 0.4.8.15. 420 421 o Minor bugfixes (circuit handling): 422 - Prevent circuit_mark_for_close() from being called twice on the 423 same circuit. Second fix attempt Fixes bug 41106; bugfix 424 on 0.4.8.17. 425 426 427 Changes in version 0.4.8.17 - 2025-06-30 428 This is a minor providing a series of minor features especially in the realm 429 of TLS. It also brings a new set of recommended and required sub protocols. 430 And finally, few minor bugfixes, nothing major. As always, we strongly 431 recommend you upgrade as soon as possible. 432 433 o Minor features (security, TLS): 434 - When we are running with OpenSSL 3.5.0 or later, support using the 435 ML-KEM768 for post-quantum key agreement. Closes ticket 41041. 436 437 o Minor feature (client, TLS): 438 - Set the TLS 1.3 cipher list instead of falling back on the 439 default value. 440 441 o Minor features (fallbackdir): 442 - Regenerate fallback directories generated on June 30, 2025. 443 444 o Minor features (geoip data): 445 - Update the geoip files to match the IPFire Location Database, as 446 retrieved on 2025/06/30. 447 448 o Minor features (hsdesc POW): 449 - Tolerate multiple PoW schemes in onion service descriptors, for 450 future extensibility. Implements torspec ticket 272. 451 452 o Minor features (performance TLS): 453 - When running with with OpenSSL 3.0.0 or later, support using 454 X25519 for TLS key agreement. (This should slightly improve 455 performance for TLS session establishment.) 456 457 o Minor features (portability): 458 - Fix warnings when compiling with GCC 15. Closes ticket 41079. 459 460 o Minor features (recommended protocols): 461 - Directory authorities now vote to recommend that clients support 462 certain protocols beyond those that are required. These include 463 improved support for connecting to relays on IPv6, NtorV3, and 464 congestion control. Part of ticket 40836. 465 466 o Minor features (required protocols): 467 - Directory authorities now vote to require clients to support the 468 authenticated SENDME feature, which was introduced in 469 0.4.1.1-alpha. Part of ticket 40836. 470 - Directory authorities now vote to require relays to support 471 certain protocols, all of which have been implemented since 472 0.4.7.4-alpha or earlier. These include improved support for 473 connecting to relays on IPv6, NtorV3, running as a rate-limited 474 introduction point, authenticated SENDMEs, and congestion control. 475 Part of ticket 40836. 476 477 o Minor bugfix (conflux): 478 - Avoid a non fatal assert when describing a conflux circuit on the 479 control port after being prepped to be freed. Fixes bug 41037; 480 bugfix on 0.4.8.15. 481 482 o Minor bugfixes (circuit handling): 483 - Prevent circuit_mark_for_close() from being called twice on the 484 same circuit. Fixes bug 40951; bugfix on 0.4.8.16-dev. 485 486 o Minor bugfixes (compiler warnings): 487 - Make sure the two bitfields in the half-closed edge struct are 488 unsigned, as we're using them for boolean values and assign 1 to 489 them. Fixes bug 40911; bugfix on 0.4.7.2-alpha. 490 491 o Minor bugfixes (threads, memory): 492 - Improvements in cleanup of resources used by threads. Fixes bug 493 40991; bugfix on 0.4.8.13-dev. 494 - Rework start and exit of worker threads. 495 496 497 Changes in version 0.4.8.16 - 2025-03-24 498 This is a quick second release since 0.4.8.15 due to a typo in a directory 499 authority rule file. This only affects directory authorities. 500 501 o Minor features (geoip data): 502 - Update the geoip files to match the IPFire Location Database, as 503 retrieved on 2025/03/24. 504 505 o Minor bugfix (dirauth): 506 - Fix typo in flag assignment approved-routers file. Fixes bug 507 41035; bugfix on 0.4.8.15. 508 509 510 Changes in version 0.4.8.15 - 2025-03-20 511 This is a minor release fixing a sandbox issue for bandwidth authority and a 512 conflux issue on the control port. It also has a client fix about relay flag 513 usage. 514 515 o Minor feature (testing, CI): 516 - Use a fixed version of chutney (be881a1e) instead of its current 517 HEAD. This version should also be preferred when testing locally. 518 519 o Minor features (continuous integration): 520 - Upgrade CI runners to use Debian Bookworm instead of Bullseye. 521 Closes ticket 41029. 522 523 o Minor features (fallbackdir): 524 - Regenerate fallback directories generated on March 20, 2025. 525 526 o Minor features (geoip data): 527 - Update the geoip files to match the IPFire Location Database, as 528 retrieved on 2025/03/20. 529 530 o Minor bugfixes (control port): 531 - Correctly report conflux pair information to controller fields. 532 Fixes bug 40872; bugfix on 0.4.8.1-alpha. 533 534 o Minor bugfixes (relay flag usage): 535 - Fix client usage of the MiddleOnly flag so that MiddleOnly relays 536 are not used as HS IP or RP by clients or services. Additionally, 537 give dirauths the ability to remove specific flags, as an 538 alternative to MiddleOnly. Fixes bug 41023; bugfix on 0.4.7.2-alpha. 539 540 o Minor bugfixes (sandbox, bwauth): 541 - Fix sandbox to work for bandwidth authority. Fixes bug 40933; 542 bugfix on 0.2.2.1-alpha. 543 544 545 Changes in version 0.4.8.14 - 2025-02-05 546 Minor release fixing a major bug affecting onion service directory cache, 547 also known as HSDir. Furthermore, the fallbackdir list had more than 25% of 548 its entries unreachable or gone from the consensus. As usual, we strongly 549 recommend to update to this version as soon as possible. 550 551 o Major bugfixes (onion service directory cache): 552 - When the OOM killer kicks in, cleanup the descriptor cache of an 553 HSDir by looking at the lowest downloaded count instead of time in 554 cache. Fixes bug 40996; bugfix on 0.3.5.1-alpha. 555 556 o Minor feature (testing): 557 - test-network now unconditionally includes IPv6 instead of trying 558 to detect IPv6 support. 559 560 o Minor features (fallbackdir): 561 - Regenerate fallback directories generated on February 05, 2025. 562 563 o Minor features (geoip data): 564 - Update the geoip files to match the IPFire Location Database, as 565 retrieved on 2025/02/05. 566 567 o Minor bugfixes (memory): 568 - Fix a pointer free that wasn't set to NULL afterwards which could 569 be reused by calling back in the free all function. Fixes bug 570 40989; bugfix on 0.4.8.13. 571 572 573 Changes in version 0.4.8.13 - 2024-10-24 574 This minor release fixes an important client circuit building (conflux 575 related) bug which led to performance degradation and extra load on the 576 network. Some minor memory leaks fixes as well as an important minor feature 577 for pluggable transports. We strongly recommend to update as soon as possible 578 for clients in order to neutralize this conflux bug. 579 580 o Major bugfixes (circuit building): 581 - Conflux circuit building was ignoring the "predicted ports" 582 feature, which aims to make Tor stop building circuits if there 583 have been no user requests lately. This bug led to every idle Tor 584 on the network building and discarding circuits every 30 seconds, 585 which added overall load to the network, used bandwidth and 586 battery from clients that weren't actively using their Tor, and 587 kept sockets open on guards which added connection padding 588 essentially forever. Fixes bug 40981; bugfix on 0.4.8.1-alpha. 589 590 o Minor feature (bridges, pluggable transport): 591 - Add STATUS TYPE=version handler for Pluggable Transport. This 592 allows us to gather version statistics on Pluggable Transport 593 usage from bridge servers on our metrics portal. Closes 594 ticket 11101. 595 596 o Minor features (fallbackdir): 597 - Regenerate fallback directories generated on October 24, 2024. 598 599 o Minor features (geoip data): 600 - Update the geoip files to match the IPFire Location Database, as 601 retrieved on 2024/10/24. 602 603 o Minor bugfixes (memleak, authority): 604 - Fix a small memleak when computing a new consensus. This only 605 affects directory authorities. Fixes bug 40966; bugfix 606 on 0.3.5.1-alpha. 607 608 o Minor bugfixes (memory): 609 - Fix memory leaks of the CPU worker code during shutdown. Fixes bug 610 833; bugfix on 0.3.5.1-alpha. 611 612 613 Changes in version 0.4.8.12 - 2024-06-06 614 This is a minor release with couple bugfixes affecting conflux and logging. 615 We also have the return of faravahar directory authority with new keys and 616 address. 617 618 o Minor feature (dirauth): 619 - Add back faravahar with a new address and new keys. Closes 40689. 620 621 o Minor features (fallbackdir): 622 - Regenerate fallback directories generated on June 06, 2024. 623 624 o Minor features (geoip data): 625 - Update the geoip files to match the IPFire Location Database, as 626 retrieved on 2024/06/06. 627 628 o Minor bugfix (circuit): 629 - Remove a log_warn being triggered by a protocol violation that 630 already emits a protocol warning log. Fixes bug 40932; bugfix 631 on 0.4.8.1-alpha. 632 633 o Minor bugfixes (conflux): 634 - Avoid a potential hard assert (crash) when sending a cell on a 635 Conflux set. Fixes bug 40921; bugfix on 0.4.8.1-alpha. 636 - Make sure we don't process a closed circuit when packaging data. 637 This lead to a non fatal BUG() spamming logs. Fixes bug 40908; 638 bugfix on 0.4.8.1-alpha. 639 640 641 Changes in version 0.4.8.11 - 2024-04-10 642 This is a minor release mostly to upgrade the fallbackdir list. 643 Directory authorities running this version will now automatically 644 reject relays running the end of life 0.4.7.x version. 645 646 o Minor features (directory authorities): 647 - Reject 0.4.7.x series at the authority level. Closes ticket 40896. 648 649 o Minor feature (dirauth, tor26): 650 - New IP address and keys. 651 652 o Minor feature (directory authority): 653 - Allow BandwidthFiles "node_id" KeyValue without the dollar sign at 654 the start of the hexdigit, in order to easier database queries 655 combining Tor documents in which the relays fingerprint does not 656 include it. Fixes bug 40891; bugfix on 0.4.7 (all supported 657 versions of Tor). 658 659 o Minor features (fallbackdir): 660 - Regenerate fallback directories generated on April 10, 2024. 661 662 o Minor features (geoip data): 663 - Update the geoip files to match the IPFire Location Database, as 664 retrieved on 2024/04/10. 665 666 o Minor bugfixes (directory authorities): 667 - Add a warning when publishing a vote or signatures to another 668 directory authority fails. Fixes bug 40910; bugfix 669 on 0.2.0.3-alpha. 670 671 672 Changes in version 0.4.8.10 - 2023-12-08 673 This is a security release fixing a high severity bug (TROVE-2023-007) 674 affecting Exit relays supporting Conflux. We strongly recommend to update as 675 soon as possible. 676 677 o Major bugfixes (TROVE-2023-007, exit): 678 - Improper error propagation from a safety check in conflux leg 679 linking led to a desynchronization of which legs were part of a 680 conflux set, ultimately causing a UAF and NULL pointer dereference 681 crash on Exit relays. Fixes bug 40897; bugfix on 0.4.8.1-alpha. 682 683 o Minor features (fallbackdir): 684 - Regenerate fallback directories generated on December 08, 2023. 685 686 o Minor features (geoip data): 687 - Update the geoip files to match the IPFire Location Database, as 688 retrieved on 2023/12/08. 689 690 o Minor bugfixes (bridges, statistics): 691 - Correctly report statistics for client count over pluggable 692 transports. Fixes bug 40871; bugfix on 0.4.8.4. 693 694 695 Changes in version 0.4.8.9 - 2023-11-09 696 This is another security release fixing a high severity bug affecting onion 697 services which is tracked by TROVE-2023-006. We are also releasing a guard 698 major bugfix as well. If you are an onion service operator, we strongly 699 recommend to update as soon as possible. 700 701 o Major bugfixes (guard usage): 702 - When Tor excluded a guard due to temporary circuit restrictions, 703 it considered *additional* primary guards for potential usage by 704 that circuit. This could result in more than the specified number 705 of guards (currently 2) being used, long-term, by the tor client. 706 This could happen when a Guard was also selected as an Exit node, 707 but it was exacerbated by the Conflux guard restrictions. Both 708 instances have been fixed. Fixes bug 40876; bugfix 709 on 0.3.0.1-alpha. 710 711 o Major bugfixes (onion service, TROVE-2023-006): 712 - Fix a possible hard assert on a NULL pointer when recording a 713 failed rendezvous circuit on the service side for the MetricsPort. 714 Fixes bug 40883; bugfix on 0.4.8.1-alpha. 715 716 o Minor features (fallbackdir): 717 - Regenerate fallback directories generated on November 09, 2023. 718 719 o Minor features (geoip data): 720 - Update the geoip files to match the IPFire Location Database, as 721 retrieved on 2023/11/09. 722 723 724 Changes in version 0.4.8.8 - 2023-11-03 725 We are releasing today a fix for a high security issue, TROVE-2023-004, that 726 is affecting relays. Also a few minor bugfixes detailed below. Please upgrade 727 as soon as possible. 728 729 o Major bugfixes (TROVE-2023-004, relay): 730 - Mitigate an issue when Tor compiled with OpenSSL can crash during 731 handshake with a remote relay. Fixes bug 40874; bugfix 732 on 0.2.7.2-alpha. 733 734 o Minor features (fallbackdir): 735 - Regenerate fallback directories generated on November 03, 2023. 736 737 o Minor features (geoip data): 738 - Update the geoip files to match the IPFire Location Database, as 739 retrieved on 2023/11/03. 740 741 o Minor bugfixes (directory authority): 742 - Look at the network parameter "maxunmeasuredbw" with the correct 743 spelling. Fixes bug 40869; bugfix on 0.4.6.1-alpha. 744 745 o Minor bugfixes (vanguards addon support): 746 - Count the conflux linked cell as valid when it is successfully 747 processed. This will quiet a spurious warn in the vanguards addon. 748 Fixes bug 40878; bugfix on 0.4.8.1-alpha. 749 750 751 Changes in version 0.4.8.7 - 2023-09-25 752 This version fixes a single major bug in the Conflux subsystem on the client 753 side. See below for more information. The upcoming Tor Browser 13 stable will 754 pick this up. 755 756 o Major bugfixes (conflux): 757 - Fix an issue that prevented us from pre-building more conflux sets 758 after existing sets had been used. Fixes bug 40862; bugfix 759 on 0.4.8.1-alpha. 760 761 o Minor features (fallbackdir): 762 - Regenerate fallback directories generated on September 25, 2023. 763 764 o Minor features (geoip data): 765 - Update the geoip files to match the IPFire Location Database, as 766 retrieved on 2023/09/25. 767 768 769 Changes in version 0.4.8.6 - 2023-09-18 770 This version contains an important fix for onion services regarding 771 congestion control and its reliability. Apart from that, unneeded BUG 772 warnings have been suppressed especially about a compression bomb seen 773 on relays. 774 775 o Major bugfixes (onion service): 776 - Fix a reliability issue where services were expiring their 777 introduction points every consensus update. This caused 778 connectivity issues for clients caching the old descriptor and 779 intro points. Bug reported and fixed by gitlab user 780 @hyunsoo.kim676. Fixes bug 40858; bugfix on 0.4.7.5-alpha. 781 782 o Minor features (debugging, compression): 783 - Log the input and output buffer sizes when we detect a potential 784 compression bomb. Diagnostic for ticket 40739. 785 786 o Minor features (fallbackdir): 787 - Regenerate fallback directories generated on September 18, 2023. 788 789 o Minor features (geoip data): 790 - Update the geoip files to match the IPFire Location Database, as 791 retrieved on 2023/09/18. 792 793 o Minor bugfix (defensive programming): 794 - Disable multiple BUG warnings of a missing relay identity key when 795 starting an instance of Tor compiled without relay support. Fixes 796 bug 40848; bugfix on 0.4.3.1-alpha. 797 798 o Minor bugfixes (bridge authority): 799 - When reporting a pseudo-networkstatus as a bridge authority, or 800 answering "ns/purpose/*" controller requests, include accurate 801 published-on dates from our list of router descriptors. Fixes bug 802 40855; bugfix on 0.4.8.1-alpha. 803 804 o Minor bugfixes (compression, zstd): 805 - Use less frightening language and lower the log-level of our run- 806 time ABI compatibility check message in our Zstd compression 807 subsystem. Fixes bug 40815; bugfix on 0.4.3.1-alpha. 808 809 810 Changes in version 0.4.8.5 - 2023-08-30 811 Quick second release after the first stable few days ago fixing minor 812 annoying bugfixes creating log BUG stacktrace. We also fix BSD compilation 813 failures and PoW unit test. 814 815 o Minor features (fallbackdir): 816 - Regenerate fallback directories generated on August 30, 2023. 817 818 o Minor features (geoip data): 819 - Update the geoip files to match the IPFire Location Database, as 820 retrieved on 2023/08/30. 821 822 o Minor bugfix (NetBSD, compilation): 823 - Fix compilation issue on NetBSD by avoiding an unnecessary 824 dependency on "huge" page mappings in Equi-X. Fixes bug 40843; 825 bugfix on 0.4.8.1-alpha. 826 827 o Minor bugfix (NetBSD, testing): 828 - Fix test failures in "crypto/hashx" and "slow/crypto/equix" on 829 x86_64 and aarch64 NetBSD hosts, by adding support for 830 PROT_MPROTECT() flags. Fixes bug 40844; bugfix on 0.4.8.1-alpha. 831 832 o Minor bugfixes (conflux): 833 - Demote a relay-side warn about too many legs to ProtocolWarn, as 834 there are conditions that it can briefly happen during set 835 construction. Also add additional set logging details for all 836 error cases. Fixes bug 40841; bugfix on 0.4.8.1-alpha. 837 - Prevent non-fatal assert stacktrace caused by using conflux sets 838 during their teardown process. Fixes bug 40842; bugfix 839 on 0.4.8.1-alpha. 840 841 842 Changes in version 0.4.8.4 - 2023-08-23 843 Finally, this is the very first stable release of the 0.4.8.x series making, 844 among other features, Proof-of-Work (prop#327) and Conflux (prop#329) 845 available to the entire network. Several new features and a lot of bugfixes 846 detailed below. 847 848 o Major feature (denial of service): 849 - Extend DoS protection to partially opened channels and known relays. 850 Because re-entry is not allowed anymore, we can apply DoS protections 851 onto known IP namely relays. Fixes bug 40821; bugfix on 0.3.5.1-alpha. 852 853 o Major features (onion service, proof-of-work): 854 - Implement proposal 327 (Proof-Of-Work). This is aimed at thwarting 855 introduction flooding DoS attacks by introducing a dynamic Proof-Of-Work 856 protocol that occurs over introduction circuits. This introduces several 857 torrc options prefixed with "HiddenServicePoW" in order to control this 858 feature. By default, this is disabled. Closes ticket 40634. 859 860 o Major features (conflux): 861 - Implement Proposal 329 (conflux traffic splitting). Conflux splits 862 traffic across two circuits to Exits that support the protocol. These 863 circuits are pre-built only, which means that if the pre- built conflux 864 pool runs out, regular circuits will then be used. When using conflux 865 circuit pairs, clients choose the lower-latency circuit to send data to 866 the Exit. When the Exit sends data to the client, it maximizes 867 throughput, by fully utilizing both circuits in a multiplexed fashion. 868 Alternatively, clients can request that the Exit optimize for latency 869 when transmitting to them, by setting the torrc option 'ConfluxClientUX 870 latency'. Onion services are not currently supported, but will be in 871 arti. Many other future optimizations will also be possible using this 872 protocol. Closes ticket 40593. 873 874 o Major features (dirauth): 875 - Directory authorities and relays now interact properly with directory 876 authorities if they change addresses. In the past, they would continue to 877 upload votes, signatures, descriptors, etc to the hard-coded address in 878 the configuration. Now, if the directory authority is listed in the 879 consensus at a different address, they will direct queries to this new 880 address. Implements ticket 40705. 881 882 o Major bugfixes (conflux): 883 - Fix a relay-side crash caused by side effects of the fix for bug 884 40827. Reverts part of that fix that caused the crash and adds additional 885 log messages to help find the root cause. Fixes bug 40834; bugfix on 886 0.4.8.3-rc. 887 888 o Major bugfixes (conflux): 889 - Fix a relay-side assert crash caused by attempts to use a conflux circuit 890 between circuit close and free, such that no legs were on the conflux 891 set. Fixed by nulling out the stream's circuit back- pointer when the 892 last leg is removed. Additional checks and log messages have been added 893 to detect other cases. Fixes bug 40827; bugfix on 0.4.8.1-alpha. 894 895 o Major bugfixes (proof of work, onion service, hashx): 896 - Fix a very rare buffer overflow in hashx, specific to the dynamic 897 compiler on aarch64 platforms. Fixes bug 40833; bugfix on 0.4.8.2-alpha. 898 899 o Major bugfixes (vanguards): 900 - Rotate to a new L2 vanguard whenever an existing one loses the Stable or 901 Fast flag. Previously, we would leave these relays in the L2 vanguard 902 list but never use them, and if all of our vanguards end up like this we 903 wouldn't have any middle nodes left to choose from so we would fail to 904 make onion-related circuits. Fixes bug 40805; bugfix on 0.4.7.1-alpha. 905 906 o Minor features (bridge): 907 - warn when a bridge is also configure to be an exit relay. 908 Closes ticket 40819. 909 910 o Minor features (geoip data): 911 - Update the geoip files to match the IPFire Location Database, as 912 retrieved on 2023/08/23. 913 914 o Minor features (fallbackdir): 915 - Regenerate fallback directories generated on August 23, 2023. 916 917 o Minor features (testing): 918 - All Rust code is now linted (cargo clippy) as part of GitLab CI, and 919 existing warnings have been fixed. 920 - Any unit tests written in Rust now run as part of GitLab CI. 921 922 o Minor feature (CI): 923 - Update CI to use Debian Bullseye for runners. 924 925 o Minor feature (client, IPv6): 926 - Make client able to pick IPv6 relays by default now meaning 927 ClientUseIPv6 option now defaults to 1. Closes ticket 40785. 928 929 o Minor feature (compilation): 930 - Fix returning something other than "Unknown N/A" as libc version 931 if we build tor on an O.S. like DragonFlyBSD, FreeBSD, OpenBSD 932 or NetBSD. 933 934 o Minor feature (cpuworker): 935 - Always use the number of threads for our CPU worker pool to the 936 number of core available but cap it to a minimum of 2 in case of a 937 single core. Fixes bug 40713; bugfix on 0.3.5.1-alpha. 938 939 o Minor feature (lzma): 940 - Fix compiler warnings for liblzma >= 5.3.1. Closes ticket 40741. 941 942 o Minor feature (MetricsPort, relay): 943 - Expose time until online keys expires on the MetricsPort. Closes 944 ticket 40546. 945 946 o Minor feature (MetricsPort, relay, onion service): 947 - Add metrics for the relay side onion service interactions counting 948 seen cells. Closes ticket 40797. Patch by "friendly73". 949 950 o Minor features (directory authorities): 951 - Directory authorities now include their AuthDirMaxServersPerAddr 952 config option in the consensus parameter section of their vote. 953 Now external tools can better predict how they will behave. 954 Implements ticket 40753. 955 956 o Minor features (directory authority): 957 - Add a new consensus method in which the "published" times on 958 router entries in a microdesc consensus are all set to a 959 meaningless fixed date. Doing this will make the download size for 960 compressed microdesc consensus diffs much smaller. Part of ticket 961 40130; implements proposal 275. 962 963 o Minor features (network documents): 964 - Clients and relays no longer track the "published on" time 965 declared for relays in any consensus documents. When reporting 966 this time on the control port, they instead report a fixed date in 967 the future. Part of ticket 40130. 968 969 o Minor features (fallbackdir): 970 - Regenerate fallback directories generated on June 01, 2023. 971 972 o Minor features (geoip data): 973 - Update the geoip files to match the IPFire Location Database, as 974 retrieved on 2023/06/01. 975 976 o Minor features (hs, metrics): 977 - Add tor_hs_rend_circ_build_time and tor_hs_intro_circ_build_time 978 histograms to measure hidden service rend/intro circuit build time 979 durations. Part of ticket 40757. 980 981 o Minor features (metrics): 982 - Add a `reason` label to the HS error metrics. Closes ticket 40758. 983 - Add service side metrics for REND and introduction request 984 failures. Closes ticket 40755. 985 - Add support for histograms. Part of ticket 40757. 986 987 o Minor features (pluggable transports): 988 - Automatically restart managed Pluggable Transport processes when 989 their process terminate. Resolves ticket 33669. 990 991 o Minor features (portability, compilation): 992 - Use OpenSSL 1.1 APIs for LibreSSL, fixing LibreSSL 3.5 993 compatibility. Fixes issue 40630; patch by Alex Xu (Hello71). 994 995 o Minor features (relay): 996 - Do not warn about configuration options that may expose a non- 997 anonymous onion service. Closes ticket 40691. 998 999 o Minor features (relays): 1000 - Trigger OOS when bind fails with EADDRINUSE. This improves 1001 fairness when a large number of exit connections are requested, 1002 and properly signals exhaustion to the network. Fixes issue 40597; 1003 patch by Alex Xu (Hello71). 1004 1005 o Minor features (tests): 1006 - Avoid needless key reinitialization with OpenSSL during unit 1007 tests, saving significant time. Patch from Alex Xu. 1008 1009 o Minor bugfix (hs): 1010 - Fix compiler warnings in equix and hashx when building with clang. 1011 Closes ticket 40800. 1012 1013 o Minor bugfix (FreeBSD, compilation): 1014 - Fix compilation issue on FreeBSD by properly importing 1015 sys/param.h. Fixes bug 40825; bugfix on 0.4.8.1-alpha. 1016 1017 o Minor bugfixes (compression): 1018 - Right after compression/decompression work is done, check for 1019 errors. Before this, we would consider compression bomb before 1020 that and then looking for errors leading to false positive on that 1021 log warning. Fixes bug 40739; bugfix on 0.3.5.1-alpha. Patch 1022 by "cypherpunks". 1023 1024 o Minor bugfixes (compilation): 1025 - Fix all -Werror=enum-int-mismatch warnings. No behavior change. 1026 Fixes bug 40824; bugfix on 0.3.5.1-alpha. 1027 1028 o Minor bugfixes (protocol warn): 1029 - Wrap a handful of cases where ProtocolWarning logs could emit IP 1030 addresses. Fixes bug 40828; bugfix on 0.3.5.1-alpha. 1031 1032 o Minor bugfix (congestion control): 1033 - Reduce the accepted range of a circuit's negotiated 'cc_sendme_inc' 1034 to be +/- 1 from the consensus parameter value. Fixes bug 40569; 1035 bugfix on 0.4.7.4-alpha. 1036 - Remove unused congestion control algorithms and BDP calculation 1037 code, now that we have settled on and fully tuned Vegas. Fixes bug 1038 40566; bugfix on 0.4.7.4-alpha. 1039 - Update default congestion control parameters to match consensus. 1040 Fixes bug 40709; bugfix on 0.4.7.4-alpha. 1041 1042 o Minor bugfixes (compilation): 1043 - Fix "initializer is not a constant" compilation error that 1044 manifests itself on gcc versions < 8.1 and MSVC. Fixes bug 40773; 1045 bugfix on 0.4.8.1-alpha 1046 1047 o Minor bugfixes (conflux): 1048 - Count leg launch attempts prior to attempting to launch them. This 1049 avoids infinite launch attempts due to internal circuit building 1050 failures. Additionally, double-check that we have enough exits in 1051 our consensus overall, before attempting to launch conflux sets. 1052 Fixes bug 40811; bugfix on 0.4.8.1-alpha. 1053 - Fix a case where we were resuming reading on edge connections that 1054 were already marked for close. Fixes bug 40801; bugfix 1055 on 0.4.8.1-alpha. 1056 - Fix stream attachment order when creating conflux circuits, so 1057 that stream attachment happens after finishing the full link 1058 handshake, rather than upon set finalization. Fixes bug 40801; 1059 bugfix on 0.4.8.1-alpha. 1060 - Handle legs being closed or destroyed before computing an RTT 1061 (resulting in warns about too many legs). Fixes bug 40810; bugfix 1062 on 0.4.8.1-alpha. 1063 - Remove a "BUG" warning from conflux_pick_first_leg that can be 1064 triggered by broken or malicious clients. Fixes bug 40801; bugfix 1065 on 0.4.8.1-alpha. 1066 1067 o Minor bugfixes (KIST): 1068 - Prevent KISTSchedRunInterval from having values of 0 or 1, neither 1069 of which work properly. Additionally, make a separate 1070 KISTSchedRunIntervalClient parameter, so that the client and relay 1071 KIST values can be set separately. Set the default of both to 2ms. 1072 Fixes bug 40808; bugfix on 0.3.2.1-alpha. 1073 1074 o Minor bugfix (relay, logging): 1075 - The wrong max queue cell size was used in a protocol warning 1076 logging statement. Fixes bug 40745; bugfix on 0.4.7.1-alpha. 1077 1078 o Minor bugfixes (logging): 1079 - Avoid ""double-quoting"" strings in several log messages. Fixes 1080 bug 22723; bugfix on 0.1.2.2-alpha. 1081 - Correct a log message when cleaning microdescriptors. Fixes bug 1082 40619; bugfix on 0.2.5.4-alpha. 1083 1084 o Minor bugfixes (metrics): 1085 - Decrement hs_intro_established_count on introduction circuit 1086 close. Fixes bug 40751; bugfix on 0.4.7.12. 1087 1088 o Minor bugfixes (pluggable transports, windows): 1089 - Remove a warning `BUG()` that could occur when attempting to 1090 execute a non-existing pluggable transport on Windows. Fixes bug 1091 40596; bugfix on 0.4.0.1-alpha. 1092 1093 o Minor bugfixes (relay): 1094 - Remove a "BUG" warning for an acceptable race between a circuit 1095 close and considering that circuit active. Fixes bug 40647; bugfix 1096 on 0.3.5.1-alpha. 1097 - Remove a harmless "Bug" log message that can happen in 1098 relay_addr_learn_from_dirauth() on relays during startup. Finishes 1099 fixing bug 40231. Fixes bug 40523; bugfix on 0.4.5.4-rc. 1100 1101 o Minor bugfixes (sandbox): 1102 - Allow membarrier for the sandbox. And allow rt_sigprocmask when 1103 compiled with LTTng. Fixes bug 40799; bugfix on 0.3.5.1-alpha. 1104 - Fix sandbox support on AArch64 systems. More "*at" variants of 1105 syscalls are now supported. Signed 32 bit syscall parameters are 1106 checked more precisely, which should lead to lower likelihood of 1107 breakages with future compiler and libc releases. Fixes bug 40599; 1108 bugfix on 0.4.4.3-alpha. 1109 1110 o Minor bugfixes (state file): 1111 - Avoid a segfault if the state file doesn't contains TotalBuildTimes 1112 along CircuitBuildAbandonedCount being above 0. Fixes bug 40437; 1113 bugfix on 0.3.5.1-alpha. 1114 1115 o Removed features: 1116 - Remove the RendPostPeriod option. This was primarily used in 1117 Version 2 Onion Services and after its deprecation isn't needed 1118 anymore. Closes ticket 40431. Patch by Neel Chauhan. 1119 1120 1121 Changes in version 0.4.7.13 - 2023-01-12 1122 This version contains three major bugfixes, two for relays and one for 1123 client being a security fix, TROVE-2022-002. We have added, for Linux, the 1124 support for IP_BIND_ADDRESS_NO_PORT for relays using OutboundBindAddress. 1125 We strongly recommend to upgrade to this version considering the important 1126 congestion control fix detailed below. 1127 1128 o Major bugfixes (congestion control): 1129 - Avoid incrementing the congestion window when the window is not 1130 fully in use. This prevents overshoot in cases where long periods 1131 of low activity would allow our congestion window to grow, and 1132 then get followed by a burst, which would cause queue overload. 1133 Also improve the increment checks for RFC3742. Fixes bug 40732; 1134 bugfix on 0.4.7.5-alpha. 1135 1136 o Major bugfixes (relay): 1137 - When opening a channel because of a circuit request that did not 1138 include an Ed25519 identity, record the Ed25519 identity that we 1139 actually received, so that we can use the channel for other 1140 circuit requests that _do_ list an Ed25519 identity. (Previously 1141 we had code to record this identity, but a logic bug caused it to 1142 be disabled.) Fixes bug 40563; bugfix on 0.3.0.1-alpha. Patch 1143 from "cypherpunks". 1144 1145 o Major bugfixes (TROVE-2022-002, client): 1146 - The SafeSocks option had its logic inverted for SOCKS4 and 1147 SOCKS4a. It would let the unsafe SOCKS4 pass but not the safe 1148 SOCKS4a one. This is TROVE-2022-002 which was reported on 1149 Hackerone by "cojabo". Fixes bug 40730; bugfix on 0.3.5.1-alpha. 1150 1151 o Minor feature (authority): 1152 - Reject 0.4.6.x series at the authority level. Closes ticket 40664. 1153 1154 o Minor features (fallbackdir): 1155 - Regenerate fallback directories generated on January 12, 2023. 1156 1157 o Minor features (geoip data): 1158 - Update the geoip files to match the IPFire Location Database, as 1159 retrieved on 2023/01/12. 1160 1161 o Minor features (relays): 1162 - Set the Linux-specific IP_BIND_ADDRESS_NO_PORT option on outgoing 1163 sockets, allowing relays using OutboundBindAddress to make more 1164 outgoing connections than ephemeral ports, as long as they are to 1165 separate destinations. Related to issue 40597; patch by Alex 1166 Xu (Hello71). 1167 1168 o Minor bugfixes (relay, metrics): 1169 - Fix typo in a congestion control label on the MetricsPort. Fixes 1170 bug 40727; bugfix on 0.4.7.12. 1171 1172 o Minor bugfixes (sandbox, authority): 1173 - With the sandbox enabled, allow to write "my-consensus- 1174 {ns|microdesc}" and to rename them as well. Fixes bug 40729; 1175 bugfix on 0.3.5.1-alpha. 1176 1177 o Code simplifications and refactoring: 1178 - Rely on actual error returned by the kernel when choosing what 1179 resource exhaustion to log. Fixes issue 40613; Fix 1180 on tor-0.4.6.1-alpha. 1181 1182 1183 Changes in version 0.4.5.16 - 2023-01-12 1184 This version has one major bugfix for relay and a security fix, 1185 TROVE-2022-002, affecting clients. We strongly recommend to upgrade to our 1186 0.4.7.x stable series. As a reminder, this series is EOL on February 15th, 1187 2023. 1188 1189 o Major bugfixes (relay): 1190 - When opening a channel because of a circuit request that did not 1191 include an Ed25519 identity, record the Ed25519 identity that we 1192 actually received, so that we can use the channel for other 1193 circuit requests that _do_ list an Ed25519 identity. (Previously 1194 we had code to record this identity, but a logic bug caused it to 1195 be disabled.) Fixes bug 40563; bugfix on 0.3.0.1-alpha. Patch 1196 from "cypherpunks". 1197 1198 o Major bugfixes (TROVE-2022-002, client): 1199 - The SafeSocks option had its logic inverted for SOCKS4 and 1200 SOCKS4a. It would let the unsafe SOCKS4 pass but not the safe 1201 SOCKS4a one. This is TROVE-2022-002 which was reported on 1202 Hackerone by "cojabo". Fixes bug 40730; bugfix on 0.3.5.1-alpha. 1203 1204 o Minor features (fallbackdir): 1205 - Regenerate fallback directories generated on January 12, 2023. 1206 1207 o Minor features (geoip data): 1208 - Update the geoip files to match the IPFire Location Database, as 1209 retrieved on 2023/01/12. 1210 1211 1212 Changes in version 0.4.7.12 - 2022-12-06 1213 This version contains a major change that is a new key for moria1. Also, new 1214 metrics are exported on the MetricsPort for the congestion control 1215 subsystem. 1216 1217 o Directory authority changes (moria1): 1218 - Rotate the relay identity key and v3 identity key for moria1. They 1219 have been online for more than a decade and refreshing keys 1220 periodically is good practice. Advertise new ports too, to avoid 1221 confusion. Closes ticket 40722. 1222 1223 o Minor feature (Congestion control metrics): 1224 - Add additional metricsport relay metrics for congestion control. 1225 Closes ticket 40724. 1226 1227 o Minor features (fallbackdir): 1228 - Regenerate fallback directories generated on December 06, 2022. 1229 1230 o Minor features (geoip data): 1231 - Update the geoip files to match the IPFire Location Database, as 1232 retrieved on 2022/12/06. 1233 1234 o Minor bugfixes (cpuworker, relay): 1235 - Fix an off by one overload calculation on the number of CPUs being 1236 used by our thread pool. Fixes bug 40719; bugfix on 0.3.5.1-alpha. 1237 1238 1239 Changes in version 0.4.5.15 - 2022-12-06 1240 This version has several major changes for directory authorities. And a 1241 major bugfix on OSX. Again, we strongly recommend to upgrade to our 0.4.7.x 1242 series latest stable. This series is EOL on February 15th, 2023. 1243 1244 o Directory authority changes (dizum): 1245 - Change dizum IP address. Closes ticket 40687. 1246 1247 o Directory authority changes (Faravahar): 1248 - Remove Faravahar until its operator, Sina, set it back up online 1249 outside of Team Cymru network. Closes ticket 40688. 1250 1251 o Directory authority changes (moria1): 1252 - Rotate the relay identity key and v3 identity key for moria1. They 1253 have been online for more than a decade and refreshing keys 1254 periodically is good practice. Advertise new ports too, to avoid 1255 confusion. Closes ticket 40722. 1256 1257 o Major bugfixes (OSX): 1258 - Fix coarse-time computation on Apple platforms (like Mac M1) where 1259 the Mach absolute time ticks do not correspond directly to 1260 nanoseconds. Previously, we computed our shift value wrong, which 1261 led us to give incorrect timing results. Fixes bug 40684; bugfix 1262 on 0.3.3.1-alpha. 1263 1264 o Major bugfixes (relay): 1265 - Improve security of our DNS cache by randomly clipping the TTL 1266 value. TROVE-2021-009. Fixes bug 40674; bugfix on 0.3.5.1-alpha. 1267 1268 o Minor features (fallbackdir): 1269 - Regenerate fallback directories generated on December 06, 2022. 1270 1271 o Minor features (geoip data): 1272 - Update the geoip files to match the IPFire Location Database, as 1273 retrieved on 2022/12/06. 1274 1275 1276 Changes in version 0.4.7.11 - 2022-11-10 1277 This version contains several major fixes aimed at helping defend against 1278 network denial of service. It is also extending drastically the MetricsPort 1279 for relays to help us gather more internal data to investigate performance 1280 and attacks. 1281 1282 We strongly recommend to upgrade to this version especially for Exit relays 1283 in order to help the network defend against this ongoing DDoS. 1284 1285 o Directory authority changes (dizum, Faravahar): 1286 - Change dizum IP address. Closes ticket 40687. 1287 - Remove Faravahar until its operator, Sina, set it back up online 1288 outside of Team Cymru network. Closes ticket 40688. 1289 1290 o Major bugfixes (geoip data): 1291 - IPFire informed us on August 12th that databases generated after 1292 (including) August 10th did not have proper ARIN network 1293 allocations. We are updating the database to use the one generated 1294 on August 9th, 2022. Fixes bug 40658; bugfix on 0.4.5.13. 1295 1296 o Major bugfixes (onion service): 1297 - Set a much higher circuit build timeout for opened client rendezvous 1298 circuit. Before this, tor would time them out very quickly leading to 1299 unnecessary retries meaning more load on the network. Fixes bug 40694; 1300 bugfix on 0.3.5.1-alpha. 1301 1302 o Major bugfixes (OSX): 1303 - Fix coarse-time computation on Apple platforms (like Mac M1) where 1304 the Mach absolute time ticks do not correspond directly to 1305 nanoseconds. Previously, we computed our shift value wrong, which 1306 led us to give incorrect timing results. Fixes bug 40684; bugfix 1307 on 0.3.3.1-alpha. 1308 1309 o Major bugfixes (relay): 1310 - Improve security of our DNS cache by randomly clipping the TTL 1311 value. TROVE-2021-009. Fixes bug 40674; bugfix on 0.3.5.1-alpha. 1312 1313 o Minor feature (Mac and iOS build): 1314 - Change how combine_libs works on Darwin like platforms to make 1315 sure we don't include any `__.SYMDEF` and `__.SYMDEF SORTED` 1316 symbols on the archive before we repack and run ${RANLIB} on the 1317 archive. This fixes a build issue with recent Xcode versions on 1318 Mac Silicon and iOS. Closes ticket 40683. 1319 1320 o Minor feature (metrics): 1321 - Add various congestion control counters to the MetricsPort. Closes 1322 ticket 40708. 1323 1324 o Minor feature (performance): 1325 - Bump the maximum amount of CPU that can be used from 16 to 128. Note 1326 that NumCPUs torrc option overrides this hardcoded maximum. Fixes bug 1327 40703; bugfix on 0.3.5.1-alpha. 1328 1329 o Minor feature (relay): 1330 - Make an hardcoded value for the maximum of per CPU tasks into a 1331 consensus parameter. 1332 - Two new consensus parameters are added to control the wait time in 1333 queue of the onionskins. One of them is the torrc 1334 MaxOnionQueueDelay options which supersedes the consensus 1335 parameter. Closes ticket 40704. 1336 1337 o Minor feature (relay, DoS): 1338 - Apply circuit creation anti-DoS defenses if the outbound circuit 1339 max cell queue size is reached too many times. This introduces two 1340 new consensus parameters to control the queue size limit and 1341 number of times allowed to go over that limit. Closes ticket 40680. 1342 1343 o Minor feature (relay, metrics): 1344 - Add DoS defenses counter to MetricsPort. 1345 - Add congestion control RTT reset counter to MetricsPort. 1346 - Add counters to the MetricsPort how many connections, per type, 1347 are currently opened and how many were created. 1348 - Add relay flags from the consensus to the MetricsPort. 1349 - Add total number of opened circuits to MetricsPort. 1350 - Add total number of streams seen by an Exit to the MetricsPort. 1351 - Add traffic stats as in number of read/written bytes in total. 1352 - Related to ticket 40194. 1353 1354 o Minor features (fallbackdir): 1355 - Regenerate fallback directories generated on November 10, 2022. 1356 1357 o Minor features (geoip data): 1358 - Update the geoip files to match the IPFire Location Database, as 1359 retrieved on 2022/11/10. 1360 1361 o Minor bugfixes (authorities, sandbox): 1362 - Allow to write file my-consensus-<flavor-name> to disk when 1363 sandbox is activated. Fixes bug 40663; bugfix on 0.3.5.1-alpha. 1364 1365 o Minor bugfixes (dirauth): 1366 - Directory authorities stop voting a consensus "Measured" weight 1367 for relays with the Authority flag. Now these relays will be 1368 considered unmeasured, which should reserve their bandwidth for 1369 their dir auth role and minimize distractions from other roles. In 1370 place of the "Measured" weight, they now include a 1371 "MeasuredButAuthority" weight (not used by anything) so the 1372 bandwidth authority's opinion on this relay can be recorded for 1373 posterity. Lastly, remove the AuthDirDontVoteOnDirAuthBandwidth 1374 torrc option which never worked right. Fixes bugs 40698 and 40700; 1375 bugfix on 0.4.7.2-alpha. 1376 1377 o Minor bugfixes (onion service client): 1378 - A collapsing onion service circuit should be seen as an 1379 "unreachable" error so it can be retried. Fixes bug 40692; bugfix 1380 on 0.3.5.1-alpha. 1381 1382 o Minor bugfixes (onion service): 1383 - Make the service retry a rendezvous if the circuit is being 1384 repurposed for measurements. Fixes bug 40696; bugfix 1385 on 0.3.5.1-alpha. 1386 1387 o Minor bugfixes (relay overload statistics): 1388 - Count total create cells vs dropped create cells properly, when 1389 assessing if our fraction of dropped cells is too high. We only 1390 count non-client circuits in the denominator, but we would include 1391 client circuits in the numerator, leading to surprising log lines 1392 claiming that we had dropped more than 100% of incoming create 1393 cells. Fixes bug 40673; bugfix on 0.4.7.1-alpha. 1394 1395 o Code simplification and refactoring (bridges): 1396 - Remove unused code related to ExtPort connection ID. Fixes bug 1397 40648; bugfix on 0.3.5.1-alpha. 1398 1399 1400 Changes in version 0.4.7.10 - 2022-08-12 1401 This version updates the geoip cache that we generate from IPFire location 1402 database to use the August 9th, 2022 one. Everyone MUST update to this 1403 latest release else circuit path selection and relay metrics are badly 1404 affected. 1405 1406 o Major bugfixes (geoip data): 1407 - IPFire informed us on August 12th that databases generated after 1408 (including) August 10th did not have proper ARIN network allocations. We 1409 are updating the database to use the one generated on August 9th, 2022. 1410 Fixes bug 40658; bugfix on 0.4.7.9. 1411 1412 1413 Changes in version 0.4.6.12 - 2022-08-12 1414 This version updates the geoip cache that we generate from IPFire location 1415 database to use the August 9th, 2022 one. Everyone MUST update to this 1416 latest release else circuit path selection and relay metrics are badly 1417 affected. 1418 1419 o Major bugfixes (geoip data): 1420 - IPFire informed us on August 12th that databases generated after 1421 (including) August 10th did not have proper ARIN network allocations. We 1422 are updating the database to use the one generated on August 9th, 2022. 1423 Fixes bug 40658; bugfix on 0.4.6.11. 1424 1425 1426 Changes in version 0.4.5.14 - 2022-08-12 1427 This version updates the geoip cache that we generate from IPFire location 1428 database to use the August 9th, 2022 one. Everyone MUST update to this 1429 latest release else circuit path selection and relay metrics are badly 1430 affected. 1431 1432 o Major bugfixes (geoip data): 1433 - IPFire informed us on August 12th that databases generated after 1434 (including) August 10th did not have proper ARIN network allocations. We 1435 are updating the database to use the one generated on August 9th, 2022. 1436 Fixes bug 40658; bugfix on 0.4.5.13. 1437 1438 1439 Changes in version 0.4.7.9 - 2022-08-11 1440 This version contains several major fixes aimed at reducing memory pressure on 1441 relays and possible side-channel. It also contains a major bugfix related to 1442 congestion control also aimed at reducing memory pressure on relays. 1443 Finally, there is last one major bugfix related to Vanguard L2 layer node 1444 selection. 1445 1446 We strongly recommend to upgrade to this version especially for Exit relays 1447 in order to help the network defend against this ongoing DDoS. 1448 1449 o Major bugfixes (congestion control): 1450 - Implement RFC3742 Limited Slow Start. Congestion control was 1451 overshooting the congestion window during slow start, particularly 1452 for onion service activity. With this fix, we now update the 1453 congestion window more often during slow start, as well as dampen 1454 the exponential growth when the congestion window grows above a 1455 capping parameter. This should reduce the memory increases guard 1456 relays were seeing, as well as allow us to set lower queue limits 1457 to defend against ongoing DoS attacks. Fixes bug 40642; bugfix 1458 on 0.4.7.5-alpha. 1459 1460 o Major bugfixes (relay): 1461 - Remove OR connections btrack subsystem entries when the connections 1462 close normally. Before this, we would only remove the entry on error and 1463 thus leaking memory for each normal OR connections. Fixes bug 40604; 1464 bugfix on 0.4.0.1-alpha. 1465 - Stop sending TRUNCATED cell and instead close the circuit from which we 1466 received a DESTROY cell. This makes every relay in the circuit path to 1467 stop queuing cells. Fixes bug 40623; bugfix on 0.1.0.2-rc. 1468 1469 o Major bugfixes (vanguards): 1470 - We had omitted some checks for whether our vanguards (second layer 1471 guards from proposal 333) overlapped. Now make sure to pick each 1472 of them to be independent. Also, change the design to allow them 1473 to come from the same family. Fixes bug 40639; bugfix 1474 on 0.4.7.1-alpha. 1475 1476 o Minor features (dirauth): 1477 - Add a torrc option to control the Guard flag bandwidth threshold 1478 percentile. Closes ticket 40652. 1479 - Add an AuthDirVoteGuard torrc option that can allow authorities to 1480 assign the Guard flag to the given fingerprints/country code/IPs. 1481 This is a needed feature mostly for defense purposes in case a DoS 1482 hits the network and relay start losing the Guard flags too fast. 1483 - Make UPTIME_TO_GUARANTEE_STABLE, MTBF_TO_GUARANTEE_STABLE, 1484 TIME_KNOWN_TO_GUARANTEE_FAMILIAR WFU_TO_GUARANTEE_GUARD tunable 1485 from torrc. 1486 1487 o Minor features (fallbackdir): 1488 - Regenerate fallback directories generated on August 11, 2022. 1489 1490 o Minor features (geoip data): 1491 - Update the geoip files to match the IPFire Location Database, as 1492 retrieved on 2022/08/11. 1493 1494 o Minor bugfixes (congestion control): 1495 - Add a check for an integer underflow condition that might happen 1496 in cases where the system clock is stopped, the ORconn is blocked, 1497 and the endpoint sends more than a congestion window worth of non- 1498 data control cells at once. This would cause a large congestion 1499 window to be calculated instead of a small one. No security 1500 impact. Fixes bug 40644; bugfix on 0.4.7.5-alpha. 1501 1502 o Minor bugfixes (defense in depth): 1503 - Change a test in the netflow padding code to make it more 1504 _obviously_ safe against remotely triggered crashes. (It was safe 1505 against these before, but not obviously so.) Fixes bug 40645; 1506 bugfix on 0.3.1.1-alpha. 1507 1508 o Minor bugfixes (relay): 1509 - Do not propagate either forward or backward a DESTROY remote reason when 1510 closing a circuit in order to avoid a possible side channel. Fixes bug 1511 40649; bugfix on 0.1.2.4-alpha. 1512 1513 1514 Changes in version 0.4.6.11 - 2022-08-11 1515 This version contains two major fixes aimed at reducing memory pressure on 1516 relays and possible side-channel. The rest of the fixes were backported for 1517 stability or safety purposes. 1518 1519 This is the very LAST version of this series. As of August 1st 2022, it is 1520 end-of-life (EOL). We thus strongly recommend to upgrade to the latest 1521 stable of the 0.4.7.x series. 1522 1523 o Major bugfixes (relay): 1524 - Remove OR connections btrack subsystem entries when the connections 1525 close normally. Before this, we would only remove the entry on error and 1526 thus leaking memory for each normal OR connections. Fixes bug 40604; 1527 bugfix on 0.4.0.1-alpha. 1528 - Stop sending TRUNCATED cell and instead close the circuit from which we 1529 received a DESTROY cell. This makes every relay in the circuit path to 1530 stop queuing cells. Fixes bug 40623; bugfix on 0.1.0.2-rc. 1531 1532 o Minor features (fallbackdir): 1533 - Regenerate fallback directories generated on August 11, 2022. 1534 1535 o Minor features (geoip data): 1536 - Update the geoip files to match the IPFire Location Database, as 1537 retrieved on 2022/08/11. 1538 1539 o Minor features (linux seccomp2 sandbox): 1540 - Permit the clone3 syscall, which is apparently used in glibc-2.34 1541 and later. Closes ticket 40590. 1542 1543 o Minor bugfixes (controller, path bias): 1544 - When a circuit's path is specified, in full or in part, from the 1545 controller API, do not count that circuit towards our path-bias 1546 calculations. (Doing so was incorrect, since we cannot tell 1547 whether the controller is selecting relays randomly.) Resolves a 1548 "Bug" warning. Fixes bug 40515; bugfix on 0.2.4.10-alpha. 1549 1550 o Minor bugfixes (defense in depth): 1551 - Change a test in the netflow padding code to make it more 1552 _obviously_ safe against remotely triggered crashes. (It was safe 1553 against these before, but not obviously so.) Fixes bug 40645; 1554 bugfix on 0.3.1.1-alpha. 1555 1556 o Minor bugfixes (linux seccomp2 sandbox): 1557 - Allow the rseq system call in the sandbox. This solves a crash 1558 issue with glibc 2.35 on Linux. Patch from pmu-ipf. Fixes bug 1559 40601; bugfix on 0.3.5.11. 1560 1561 o Minor bugfixes (metrics port, onion service): 1562 - The MetricsPort line for an onion service with multiple ports are now 1563 unique that is one line per port. Before this, all ports of an onion 1564 service would be on the same line which violates the Prometheus rules of 1565 unique labels. Fixes bug 40581; bugfix on 0.4.5.1-alpha. 1566 1567 o Minor bugfixes (onion service, client): 1568 - Fix a fatal assert due to a guard subsystem recursion triggered by 1569 the onion service client. Fixes bug 40579; bugfix on 0.3.5.1-alpha. 1570 1571 o Minor bugfixes (performance, DoS): 1572 - Fix one case of a not-especially viable denial-of-service attack 1573 found by OSS-Fuzz in our consensus-diff parsing code. This attack 1574 causes a lot small of memory allocations and then immediately 1575 frees them: this is only slow when running with all the sanitizers 1576 enabled. Fixes one case of bug 40472; bugfix on 0.3.1.1-alpha. 1577 1578 o Minor bugfixes (relay): 1579 - Do not propagate either forward or backward a DESTROY remote reason when 1580 closing a circuit in order to avoid a possible side channel. Fixes bug 1581 40649; bugfix on 0.1.2.4-alpha. 1582 1583 1584 Changes in version 0.4.5.13 - 2022-08-11 1585 This version contains two major fixes aimed at reducing memory pressure on 1586 relays and possible side-channel. The rest of the fixes were backported for 1587 stability or safety purposes. We strongly recommend to upgrade your relay to 1588 this version or, ideally, to the latest stable of the 0.4.7.x series. 1589 1590 o Major bugfixes (relay): 1591 - Remove OR connections btrack subsystem entries when the connections 1592 close normally. Before this, we would only remove the entry on error and 1593 thus leaking memory for each normal OR connections. Fixes bug 40604; 1594 bugfix on 0.4.0.1-alpha. 1595 - Stop sending TRUNCATED cell and instead close the circuit from which we 1596 received a DESTROY cell. This makes every relay in the circuit path to 1597 stop queuing cells. Fixes bug 40623; bugfix on 0.1.0.2-rc. 1598 1599 o Minor features (fallbackdir): 1600 - Regenerate fallback directories generated on August 11, 2022. 1601 1602 o Minor features (geoip data): 1603 - Update the geoip files to match the IPFire Location Database, as 1604 retrieved on 2022/08/11. 1605 1606 o Minor features (linux seccomp2 sandbox): 1607 - Permit the clone3 syscall, which is apparently used in glibc-2.34 1608 and later. Closes ticket 40590. 1609 1610 o Minor bugfixes (controller, path bias): 1611 - When a circuit's path is specified, in full or in part, from the 1612 controller API, do not count that circuit towards our path-bias 1613 calculations. (Doing so was incorrect, since we cannot tell 1614 whether the controller is selecting relays randomly.) Resolves a 1615 "Bug" warning. Fixes bug 40515; bugfix on 0.2.4.10-alpha. 1616 1617 o Minor bugfixes (defense in depth): 1618 - Change a test in the netflow padding code to make it more 1619 _obviously_ safe against remotely triggered crashes. (It was safe 1620 against these before, but not obviously so.) Fixes bug 40645; 1621 bugfix on 0.3.1.1-alpha. 1622 1623 o Minor bugfixes (linux seccomp2 sandbox): 1624 - Allow the rseq system call in the sandbox. This solves a crash 1625 issue with glibc 2.35 on Linux. Patch from pmu-ipf. Fixes bug 1626 40601; bugfix on 0.3.5.11. 1627 1628 o Minor bugfixes (metrics port, onion service): 1629 - The MetricsPort line for an onion service with multiple ports are now 1630 unique that is one line per port. Before this, all ports of an onion 1631 service would be on the same line which violates the Prometheus rules of 1632 unique labels. Fixes bug 40581; bugfix on 0.4.5.1-alpha. 1633 1634 o Minor bugfixes (onion service, client): 1635 - Fix a fatal assert due to a guard subsystem recursion triggered by 1636 the onion service client. Fixes bug 40579; bugfix on 0.3.5.1-alpha. 1637 1638 o Minor bugfixes (performance, DoS): 1639 - Fix one case of a not-especially viable denial-of-service attack 1640 found by OSS-Fuzz in our consensus-diff parsing code. This attack 1641 causes a lot small of memory allocations and then immediately 1642 frees them: this is only slow when running with all the sanitizers 1643 enabled. Fixes one case of bug 40472; bugfix on 0.3.1.1-alpha. 1644 1645 o Minor bugfixes (relay): 1646 - Do not propagate either forward or backward a DESTROY remote reason when 1647 closing a circuit in order to avoid a possible side channel. Fixes bug 1648 40649; bugfix on 0.1.2.4-alpha. 1649 1650 1651 Changes in version 0.4.7.8 - 2022-06-17 1652 This version fixes several bugfixes including a High severity security issue 1653 categorized as a Denial of Service. Everyone running an earlier version 1654 should upgrade to this version. 1655 1656 o Major bugfixes (congestion control, TROVE-2022-001): 1657 - Fix a scenario where RTT estimation can become wedged, seriously 1658 degrading congestion control performance on all circuits. This 1659 impacts clients, onion services, and relays, and can be triggered 1660 remotely by a malicious endpoint. Tracked as CVE-2022-33903. Fixes 1661 bug 40626; bugfix on 0.4.7.5-alpha. 1662 1663 o Minor features (fallbackdir): 1664 - Regenerate fallback directories generated on June 17, 2022. 1665 1666 o Minor features (geoip data): 1667 - Update the geoip files to match the IPFire Location Database, as 1668 retrieved on 2022/06/17. 1669 1670 o Minor bugfixes (linux seccomp2 sandbox): 1671 - Allow the rseq system call in the sandbox. This solves a crash 1672 issue with glibc 2.35 on Linux. Patch from pmu-ipf. Fixes bug 1673 40601; bugfix on 0.3.5.11. 1674 1675 o Minor bugfixes (logging): 1676 - Demote a harmless warn log message about finding a second hop to 1677 from warn level to info level, if we do not have enough 1678 descriptors yet. Leave it at notice level for other cases. Fixes 1679 bug 40603; bugfix on 0.4.7.1-alpha. 1680 - Demote a notice log message about "Unexpected path length" to info 1681 level. These cases seem to happen arbitrarily, and we likely will 1682 never find all of them before the switch to arti. Fixes bug 40612; 1683 bugfix on 0.4.7.5-alpha. 1684 1685 o Minor bugfixes (relay, logging): 1686 - Demote a harmless XOFF log message to from notice level to info 1687 level. Fixes bug 40620; bugfix on 0.4.7.5-alpha. 1688 1689 1690 Changes in version 0.4.7.7 - 2022-04-27 1691 This is the first stable version of the 0.4.7.x series. This series 1692 includes several major bugfixes from previous series and several features 1693 including one massive new one: congestion control. 1694 1695 Congestion control, among other things, should improve traffic speed and 1696 stability on the network once a majority of Exit upgrade. You can find more 1697 details about it in proposal 324 in the torspec.git repository. 1698 1699 Below are all the changes of the 0.4.7.x series: 1700 1701 o Major features (congestion control): 1702 - Implement support for flow control over congestion controlled 1703 circuits. This work comes from proposal 324. Closes ticket 40450. 1704 1705 o Major features (relay, client, onion services): 1706 - Implement RTT-based congestion control for exits and onion 1707 services, from Proposal 324. Disabled by default. Enabled by the 1708 'cc_alg' consensus parameter. Closes ticket 40444. 1709 1710 o Major features (directory authority): 1711 - Add a new consensus method to handle MiddleOnly specially. When 1712 enough authorities are using this method, then any relay tagged 1713 with the MiddleOnly flag will have its Exit, Guard, HSDir, and 1714 V2Dir flags automatically cleared, and will have its BadExit flag 1715 automatically set. Implements part of proposal 335. 1716 - Authorities can now be configured to label relays as "MiddleOnly". 1717 When voting for this flag, authorities automatically vote against 1718 Exit, Guard, HSDir, and V2Dir; and in favor of BadExit. Implements 1719 part of proposal 335. Based on a patch from Neel Chauhan. 1720 1721 o Major features (Proposal 333, onion services, guard selection algorithm): 1722 - Clients and onion services now choose four long-lived "layer 2" 1723 guard relays for use as the middle hop in all onion circuits. 1724 These relays are kept in place for a randomized duration averaging 1725 1 week. This mitigates guard discovery attacks against clients and 1726 short-lived onion services such as OnionShare. Long-lived onion 1727 services that need high security should still use the Vanguards 1728 addon (https://github.com/mikeperry-tor/vanguards). Closes ticket 1729 40363; implements proposal 333. 1730 1731 o Major bugfix (relay, metrics): 1732 - On the MetricsPort, the DNS error statistics are not reported by 1733 record type ("record=...") anymore due to a libevent bug 1734 (https://github.com/libevent/libevent/issues/1219). Fixes bug 1735 40490; bugfix on 0.4.7.1-alpha. 1736 1737 o Major bugfixes (bridges): 1738 - Make Tor work reliably again when you have multiple bridges 1739 configured and one or more of them are unreachable. The problem 1740 came because we require that we have bridge descriptors for both 1741 of our first two bridges (else we refuse to try to connect), but 1742 in some cases we would wait three hours before trying to fetch 1743 these missing descriptors, and/or never recover when we do try to 1744 fetch them. Fixes bugs 40396 and 40495; bugfix on 0.3.0.5-rc 1745 and 0.3.2.1-alpha. 1746 1747 o Major bugfixes (client): 1748 - Stop caching TCP connect failures to relays/bridges when we 1749 initiated the connection as a client. Now we only cache connect 1750 failures as a relay or bridge when we initiated them because of an 1751 EXTEND request. Declining to re-attempt the client-based 1752 connections could cause problems when we lose connectivity and try 1753 to reconnect. Fixes bug 40499; bugfix on 0.3.3.4-alpha. 1754 1755 o Major bugfixes (onion service, congestion control): 1756 - Fix the onion service upload case where the congestion control 1757 parameters were not added to the right object. Fixes bug 40586; 1758 bugfix on 0.4.7.4-alpha. 1759 1760 o Major bugfixes (relay, DNS): 1761 - Lower the DNS timeout from 3 attempts at 5 seconds each to 2 1762 attempts at 1 seconds each. Two new consensus parameters were 1763 added to control these values. This change should improve observed 1764 performance under DNS load; see ticket for more details. Fixes bug 1765 40312; bugfix on 0.3.5.1-alpha. 1766 1767 o Major bugfixes (relay, overload state): 1768 - Relays report the general overload state for DNS timeout errors 1769 only if X% of all DNS queries over Y seconds are errors. Before 1770 that, it only took 1 timeout to report the overload state which 1771 was just too low of a threshold. The X and Y values are 1% and 10 1772 minutes respectively but they are also controlled by consensus 1773 parameters. Fixes bug 40491; bugfix on 0.4.6.1-alpha. 1774 1775 o Major bugfixes (relay, overload): 1776 - Do not trigger a general overload on DNS timeout. Even after 1777 fixing 40527, some code remained that triggered the overload. 1778 Fixes bug 40564; bugfix on 0.4.7.1-alpha. 1779 - Change the MetricsPort DNS "timeout" label to be "tor_timeout" in 1780 order to indicate that this was a DNS timeout from tor perspective 1781 and not the DNS server itself. 1782 - Deprecate overload_dns_timeout_period_secs and 1783 overload_dns_timeout_scale_percent consensus parameters as well. 1784 They were used to assess the overload state which is no more now. 1785 - Don't make Tor DNS timeout trigger an overload general state. 1786 These timeouts are different from DNS server timeout. They have to 1787 be seen as timeout related to UX and not because of a network 1788 problem. Fixes bug 40527; bugfix on 0.4.6.1-alpha. 1789 1790 o Minor feature (authority, relay): 1791 - Reject End-Of-Life relays running version 0.4.2.x, 0.4.3.x, 1792 0.4.4.x and 0.4.5 alphas/rc. Closes ticket 40480. 1793 - Reject End-Of-Life relays running version 0.3.5.x. Closes 1794 ticket 40559. 1795 1796 o Minor feature (onion service v2): 1797 - Onion service v2 addresses are now not recognized anymore by tor 1798 meaning a bad hostname is returned when attempting to pass it on a 1799 SOCKS connection. No more deprecation log is emitted client side. 1800 Closes ticket 40476. 1801 - See https://blog.torproject.org/v2-deprecation-timeline for 1802 details on how to transition from v2 to v3. 1803 1804 o Minor feature (reproducible build): 1805 - The repository can now build reproducible tarballs which adds the 1806 build command "make dist-reprod" for that purpose. Closes 1807 ticket 26299. 1808 1809 o Minor features (bridge testing support): 1810 - Let external bridge reachability testing tools discard cached 1811 bridge descriptors when setting new bridges, so they can be sure 1812 to get a clean reachability test. Implements ticket 40209. 1813 1814 o Minor features (compilation): 1815 - Give an error message if trying to build with a version of 1816 LibreSSL known not to work with Tor. (There's an incompatibility 1817 with LibreSSL versions 3.2.1 through 3.4.0 inclusive because of 1818 their incompatibility with OpenSSL 1.1.1's TLSv1.3 APIs.) Closes 1819 ticket 40511. 1820 1821 o Minor features (control port): 1822 - Provide congestion control fields on CIRC_BW and STREAM control 1823 port events, for use by sbws. Closes ticket 40568. 1824 1825 o Minor features (fallbackdir): 1826 - Regenerate fallback directories generated on April 27, 2022. 1827 1828 o Minor features (fuzzing): 1829 - When building with --enable-libfuzzer, use a set of compiler flags 1830 that works with more recent versions of the library. Previously we 1831 were using a set of flags from 2017. Closes ticket 40407. 1832 1833 o Minor features (geoip data): 1834 - Update the geoip files to match the IPFire Location Database, as 1835 retrieved on 2022/04/27. 1836 1837 o Minor features (logging, heartbeat): 1838 - When a relay receives a cell that isn't encrypted properly for it, 1839 but the relay is the last hop on the circuit, the relay now counts 1840 how many cells of this kind it receives, on how many circuits, and 1841 reports this information in the log. Previously, we'd log each 1842 cell at PROTOCOL_WARN level, which is far too verbose to be 1843 useful. Fixes part of ticket 40400. 1844 1845 o Minor features (portability): 1846 - Try to prevent a compiler warning about printf arguments that 1847 could sometimes occur on MSYS2 depending on the configuration. 1848 Closes ticket 40355. 1849 1850 o Minor features (testing configuration): 1851 - When TestingTorNetwork is enabled, skip the permissions check on 1852 hidden service directories. Closes ticket 40338. 1853 - On a testing network, relays can now use the 1854 TestingMinTimeToReportBandwidth option to change the smallest 1855 amount of time over which they're willing to report their observed 1856 maximum bandwidth. Previously, this was fixed at 1 day. For 1857 safety, values under 2 hours are only supported on testing 1858 networks. Part of a fix for ticket 40337. 1859 - Relays on testing networks no longer rate-limit how frequently 1860 they are willing to report new bandwidth measurements. Part of a 1861 fix for ticket 40337. 1862 - Relays on testing networks now report their observed bandwidths 1863 immediately from startup. Previously, they waited until they had 1864 been running for a full day. Closes ticket 40337. 1865 1866 o Minor features (testing): 1867 - We now have separate fuzzers for the inner layers of v3 onion 1868 service descriptors, to prevent future bugs like 40392. Closes 1869 ticket 40488. 1870 1871 o Minor bugfix (CI, onion service): 1872 - Exclude onion service version 2 Stem tests in our CI. Fixes bug 1873 40500; bugfix on 0.3.2.1-alpha. 1874 1875 o Minor bugfix (logging): 1876 - Update a log notice dead URL to a working one. Fixes bug 40544; 1877 bugfix on 0.3.5.1-alpha. 1878 1879 o Minor bugfix (pluggable transport): 1880 - Do not kill a managed proxy if one of its transport configurations 1881 emits a method error. Instead log a warning and continue processing 1882 method arguments. Fixes bug 7362; bugfix on 0.2.3.6-alpha. 1883 1884 o Minor bugfix (relay): 1885 - Remove the HSDir and HSIntro onion service v2 protocol versions so 1886 relay stop advertising that they support them. Fixes bug 40509; 1887 bugfix on 0.3.5.17. 1888 1889 o Minor bugfixes (bridges): 1890 - When we don't yet have a descriptor for one of our bridges, 1891 disable the entry guard retry schedule on that bridge. The entry 1892 guard retry schedule and the bridge descriptor retry schedule can 1893 conflict, e.g. where we mark a bridge as "maybe up" yet we don't 1894 try to fetch its descriptor yet, leading Tor to wait (refusing to 1895 do anything) until it becomes time to fetch the descriptor. Fixes 1896 bug 40497; bugfix on 0.3.0.3-alpha. 1897 1898 o Minor bugfixes (cell scheduling): 1899 - Avoid writing empty payload with NSS write. 1900 - Don't attempt to write 0 bytes after a cell scheduling loop. No 1901 empty payload was put on the wire. Fixes bug 40548; bugfix 1902 on 0.3.5.1-alpha. 1903 1904 o Minor bugfixes (circuit padding): 1905 - Don't send STOP circuit padding cells when the other side has 1906 already shut down the corresponding padding machine. Fixes bug 1907 40435; bugfix on 0.4.0.1-alpha. 1908 1909 o Minor bugfixes (compatibility): 1910 - Fix compatibility with the most recent Libevent versions, which no 1911 longer have an evdns_set_random_bytes() function. Because this 1912 function has been a no-op since Libevent 2.0.4-alpha, it is safe 1913 for us to just stop calling it. Fixes bug 40371; bugfix 1914 on 0.2.1.7-alpha. 1915 1916 o Minor bugfixes (compilation): 1917 - Fix compilation error when __NR_time is not defined. Fixes bug 1918 40465; bugfix on 0.2.5.5-alpha. Patch by Daniel Pinto. 1919 - Fix our configuration logic to detect whether we had OpenSSL 3: 1920 previously, our logic was reversed. This has no other effect than 1921 to change whether we suppress deprecated API warnings. Fixes bug 1922 40429; bugfix on 0.3.5.13. 1923 - Resume being able to build on old / esoteric gcc versions. Fixes 1924 bug 40550; bugfix on 0.4.7.1-alpha. 1925 1926 o Minor bugfixes (compiler warnings): 1927 - Fix couple compiler warnings on latest Ubuntu Jammy. Fixes bug 1928 40516; bugfix on 0.3.5.1-alpha. 1929 1930 o Minor bugfixes (congestion control, client side logs): 1931 - Demote a warn about 1-hop circuits using congestion control down 1932 to info; Demote the 4-hop case to notice. Fixes bug 40598; bugfix 1933 on 0.4.5-alpha. 1934 1935 o Minor bugfixes (control, sandbox): 1936 - Allows the control command SAVECONF to succeed when the seccomp 1937 sandbox is enabled. Makes SAVECONF keep only one backup file, to 1938 simplify implementation. Fixes bug 40317; bugfix on 0.2.5.4-alpha. 1939 Patch by Daniel Pinto. 1940 1941 o Minor bugfixes (controller, path bias): 1942 - When a circuit's path is specified, in full or in part, from the 1943 controller API, do not count that circuit towards our path-bias 1944 calculations. (Doing so was incorrect, since we cannot tell 1945 whether the controller is selecting relays randomly.) Resolves a 1946 "Bug" warning. Fixes bug 40515; bugfix on 0.2.4.10-alpha. 1947 1948 o Minor bugfixes (dirauth, bandwidth scanner): 1949 - Add the AuthDirDontVoteOnDirAuthBandwidth dirauth config parameter 1950 to avoid voting on bandwidth scanner weights to v3 directory 1951 authorities. Fixes bug 40471; bugfix on 0.2.2.1-alpha. Patch by 1952 Neel Chauhan. 1953 1954 o Minor bugfixes (DNSPort, dormant mode): 1955 - A request on the DNSPort now wakes up a dormant tor. Fixes bug 1956 40577; bugfix on 0.3.5.1-alpha. 1957 1958 o Minor bugfixes (fragile-hardening, sandbox): 1959 - When building with --enable-fragile-hardening, add or relax Linux 1960 seccomp rules to allow AddressSanitizer to execute normally if the 1961 process terminates with the sandbox active. This has the side 1962 effect of disabling the filtering of file- and directory-open 1963 requests on most systems and dilutes the effectiveness of the 1964 sandbox overall, as a wider range of system calls must be 1965 permitted. Fixes bug 11477; bugfix on 0.2.5.4-alpha. 1966 1967 o Minor bugfixes (heartbeat): 1968 - Adjust the heartbeat log message about distinct clients to 1969 consider the HeartbeatPeriod rather than a flat 6-hour delay. 1970 Fixes bug 40330; bugfix on 0.2.6.3-alpha. 1971 1972 o Minor bugfixes (logging): 1973 - If a channel has never received or transmitted a cell, or seen a 1974 client, do not calculate time diffs against 1/1/1970 but log a 1975 better prettier message. Fixes bug 40182; bugfix on 0.2.4.4. 1976 - When we no longer have enough directory information to use the 1977 network, we would log a notice-level message -- but we would not 1978 reliably log a message when we recovered and resumed using the 1979 network. Now make sure there is always a corresponding message 1980 about recovering. Fixes bug 40496; bugfix on 0.3.5.1-alpha. 1981 1982 o Minor bugfixes (logging, relay): 1983 - Add spaces between the "and" when logging the "Your server has not 1984 managed to confirm reachability for its" on dual-stack relays. 1985 Fixes bug 40453; bugfix on 0.4.5.1-alpha. Patch by Neel Chauhan. 1986 1987 o Minor bugfixes (metrics port, onion service): 1988 - Fix the metrics with a port label to be unique. Before this, all 1989 ports of an onion service would be on the same line which violates 1990 the Prometheus rules of unique labels. Fixes bug 40581; bugfix 1991 on 0.4.5.1-alpha. 1992 1993 o Minor bugfixes (onion service congestion control): 1994 - Avoid a non-fatal assertion failure in the case where we fail to 1995 set up congestion control on a rendezvous circuit. This could 1996 happen naturally if a cache entry expired at an unexpected time. 1997 Fixes bug 40576; bugfix on 0.4.7.4-alpha. 1998 1999 o Minor bugfixes (onion service): 2000 - Do not flag an HSDir as non-running in case the descriptor upload 2001 or fetch fails. An onion service closes pending directory 2002 connections before uploading a new descriptor which leads to 2003 wrongly flagging many relays and thus affecting circuit path 2004 selection. Fixes bug 40434; bugfix on 0.2.0.13-alpha. 2005 - Fix a warning BUG that would occur often on heavily loaded onion 2006 service leading to filling the logs with useless warnings. Fixes 2007 bug 34083; bugfix on 0.3.2.1-alpha. 2008 2009 o Minor bugfixes (onion service, client): 2010 - Fix a rare but fatal assertion failure due to a guard subsystem 2011 recursion triggered by the onion service client. Fixes bug 40579; 2012 bugfix on 0.3.5.1-alpha. 2013 2014 o Minor bugfixes (onion service, config): 2015 - Fix a memory leak for a small config line string that could occur 2016 if the onion service failed to be configured from file properly. 2017 Fixes bug 40484; bugfix on 0.3.2.1-alpha. 2018 2019 o Minor bugfixes (onion service, TROVE-2021-008): 2020 - Only log v2 access attempts once total, in order to not pollute 2021 the logs with warnings and to avoid recording the times on disk 2022 when v2 access was attempted. Note that the onion address was 2023 _never_ logged. This counts as a Low-severity security issue. 2024 Fixes bug 40474; bugfix on 0.4.5.8. 2025 - Note that due to #40476 which removes v2 support entirely, this 2026 log line is not emitted anymore. We still mention this in the 2027 changelog because it is a Low-severity TROVE. 2028 2029 o Minor bugfixes (performance, DoS): 2030 - Fix one case of a not-especially viable denial-of-service attack 2031 found by OSS-Fuzz in our consensus-diff parsing code. This attack 2032 causes a lot small of memory allocations and then immediately 2033 frees them: this is only slow when running with all the sanitizers 2034 enabled. Fixes one case of bug 40472; bugfix on 0.3.1.1-alpha. 2035 2036 o Minor bugfixes (relay): 2037 - Reject IPv6-only DirPorts. Our reachability self-test forces 2038 DirPorts to be IPv4, but our configuration parser allowed them to 2039 be IPv6-only, which led to an assertion failure. Fixes bug 40494; 2040 bugfix on 0.4.5.1-alpha. 2041 2042 o Minor bugfixes (relay, overload): 2043 - Decide whether to signal overload based on a fraction and 2044 assessment period of ntor handshake drops. Previously, a single 2045 drop could trigger an overload state, which caused many false 2046 positives. Fixes bug 40560; bugfix on 0.4.7.1-alpha. 2047 2048 o Minor bugfixes (sandbox): 2049 - Fix the sandbox on i386 by modifying it to allow the 2050 "clock_gettime64" and "statx" system calls and to filter the 2051 "chown32" and "stat64" system calls in place of "chown" and 2052 "stat", respectively. Fixes bug 40505; bugfix on 0.2.5.4-alpha. 2053 2054 o Minor bugfixes (statistics): 2055 - Fix a fencepost issue when we check stability_last_downrated where 2056 we called rep_hist_downrate_old_runs() twice. Fixes bug 40394; 2057 bugfix on 0.2.0.5-alpha. Patch by Neel Chauhan. 2058 2059 o Minor bugfixes (tests): 2060 - Fix a bug that prevented some tests from running with the correct 2061 names. Fixes bug 40365; bugfix on 0.4.3.1-alpha. 2062 2063 o Minor bugfixes (usability): 2064 - Do not log "RENDEZVOUS1 cell with unrecognized rendezvous cookie" 2065 at LOG_PROTOCOL_WARN; instead log it at DEBUG. This warning can 2066 happen naturally if a client gives up on a rendezvous circuit 2067 after sending INTRODUCE1. Fixes part of bug 40400; bugfix 2068 on 0.1.1.13-alpha. 2069 - Do not log "circuit_receive_relay_cell failed" at 2070 LOG_PROTOCOL_WARN; instead log it at DEBUG. In every case where we 2071 would want to log this as a protocol warning, we are already 2072 logging another warning from inside circuit_receive_relay_cell. 2073 Fixes part of bug 40400; bugfix on 0.1.1.9-alpha. 2074 2075 o Code simplification and refactoring: 2076 - Lower the official maximum for "guard-extreme-restriction-percent" 2077 to 100. This has no effect on when the guard code will generate a 2078 warning, but it makes the intent of the option clearer. Fixes bug 2079 40486; bugfix on 0.3.0.1-alpha. 2080 2081 o Documentation: 2082 - Add links to original tor design paper and anonbib to 2083 docs/HACKING/README.1st.md. Closes ticket 33742. Patch from 2084 Emily Bones. 2085 - Describe the "fingerprint-ed25519" file in the tor.1 man page. 2086 Fixes bug 40467; bugfix on 0.4.3.1-alpha. Patch by Neel Chauhan. 2087 - Provide an improved version of the tor-exit-notice.html file for 2088 exit relays to use as a landing page. The text is unchanged, but 2089 the page design and layout are significantly modernized, and 2090 several links are fixed. Patch from "n_user"; closes ticket 40529. 2091 2092 o Testing: 2093 - Add unit tests for the Linux seccomp sandbox. Resolves 2094 issue 16803. 2095 2096 o Code simplification and refactoring (rust): 2097 - Remove Rust support and its associated code. It is unsupported and 2098 Rust focus should be shifted to arti. Closes ticket 40469. 2099 2100 o Documentation (man, relay): 2101 - Missing "OverloadStatistics" in tor.1 manpage. Fixes bug 40504; 2102 bugfix on 0.4.6.1-alpha. 2103 2104 o Testing (CI, chutney): 2105 - Bump the data size that chutney transmits to 5MBytes in order to 2106 trigger the flow control and congestion window code. Closes 2107 ticket 40485. 2108 2109 2110 Changes in version 0.4.6.10 - 2022-02-04 2111 This version contains minor bugfixes but one in particular is that relays 2112 don't advertise onion service v2 support at the protocol version level. 2113 2114 o Minor features (fallbackdir): 2115 - Regenerate fallback directories generated on February 04, 2022. 2116 2117 o Minor features (geoip data): 2118 - Update the geoip files to match the IPFire Location Database, as 2119 retrieved on 2022/02/04. 2120 2121 o Minor bugfix (logging): 2122 - Update a log notice dead URL to a working one. Fixes bug 40544; 2123 bugfix on 0.3.5.1-alpha. 2124 2125 o Minor bugfix (relay): 2126 - Remove the HSDir and HSIntro onion service v2 protocol versions so 2127 relay stop advertising that they support them. Fixes bug 40509; 2128 bugfix on 0.3.5.17. 2129 2130 o Minor bugfixes (MetricsPort, Prometheus): 2131 - Add double quotes to the label values of the onion service 2132 metrics. Fixes bug 40552; bugfix on 0.4.5.1-alpha. 2133 2134 2135 Changes in version 0.4.6.9 - 2021-12-15 2136 This version fixes several bugs from earlier versions of Tor. One important 2137 piece is the removal of DNS timeout metric from the overload general signal. 2138 See below for more details. 2139 2140 o Major bugfixes (relay, overload): 2141 - Don't make Tor DNS timeout trigger an overload general state. 2142 These timeouts are different from DNS server timeout. They have to 2143 be seen as timeout related to UX and not because of a network 2144 problem. Fixes bug 40527; bugfix on 0.4.6.1-alpha. 2145 2146 o Minor feature (reproducible build): 2147 - The repository can now build reproducible tarballs which adds the 2148 build command "make dist-reprod" for that purpose. Closes 2149 ticket 26299. 2150 2151 o Minor features (compilation): 2152 - Give an error message if trying to build with a version of 2153 LibreSSL known not to work with Tor. (There's an incompatibility 2154 with LibreSSL versions 3.2.1 through 3.4.0 inclusive because of 2155 their incompatibility with OpenSSL 1.1.1's TLSv1.3 APIs.) Closes 2156 ticket 40511. 2157 2158 o Minor features (fallbackdir): 2159 - Regenerate fallback directories generated on December 15, 2021. 2160 2161 o Minor features (geoip data): 2162 - Update the geoip files to match the IPFire Location Database, as 2163 retrieved on 2021/12/15. 2164 2165 o Minor bugfixes (compilation): 2166 - Fix our configuration logic to detect whether we had OpenSSL 3: 2167 previously, our logic was reversed. This has no other effect than 2168 to change whether we suppress deprecated API warnings. Fixes bug 2169 40429; bugfix on 0.3.5.13. 2170 2171 o Minor bugfixes (relay): 2172 - Reject IPv6-only DirPorts. Our reachability self-test forces 2173 DirPorts to be IPv4, but our configuration parser allowed them to 2174 be IPv6-only, which led to an assertion failure. Fixes bug 40494; 2175 bugfix on 0.4.5.1-alpha. 2176 2177 o Documentation (man, relay): 2178 - Missing "OverloadStatistics" in tor.1 manpage. Fixes bug 40504; 2179 bugfix on 0.4.6.1-alpha. 2180 2181 2182 Changes in version 0.4.6.8 - 2021-10-26 2183 This version fixes several bugs from earlier versions of Tor. One 2184 highlight is a fix on how we track DNS timeouts to report general 2185 relay overload. 2186 2187 o Major bugfixes (relay, overload state): 2188 - Relays report the general overload state for DNS timeout errors 2189 only if X% of all DNS queries over Y seconds are errors. Before 2190 that, it only took 1 timeout to report the overload state which 2191 was just too low of a threshold. The X and Y values are 1% and 10 2192 minutes respectively but they are also controlled by consensus 2193 parameters. Fixes bug 40491; bugfix on 0.4.6.1-alpha. 2194 2195 o Minor features (fallbackdir): 2196 - Regenerate fallback directories for October 2021. Closes 2197 ticket 40493. 2198 2199 o Minor features (testing): 2200 - On a testing network, relays can now use the 2201 TestingMinTimeToReportBandwidth option to change the smallest 2202 amount of time over which they're willing to report their observed 2203 maximum bandwidth. Previously, this was fixed at 1 day. For 2204 safety, values under 2 hours are only supported on testing 2205 networks. Part of a fix for ticket 40337. 2206 - Relays on testing networks no longer rate-limit how frequently 2207 they are willing to report new bandwidth measurements. Part of a 2208 fix for ticket 40337. 2209 - Relays on testing networks now report their observed bandwidths 2210 immediately from startup. Previously, they waited until they had 2211 been running for a full day. Closes ticket 40337. 2212 2213 o Minor bugfix (onion service): 2214 - Do not flag an HSDir as non-running in case the descriptor upload 2215 or fetch fails. An onion service closes pending directory 2216 connections before uploading a new descriptor which can thus lead 2217 to wrongly flagging many relays and thus affecting circuit building 2218 path selection. Fixes bug 40434; bugfix on 0.2.0.13-alpha. 2219 - Improve logging when a bad HS version is given. Fixes bug 40476; 2220 bugfix on 0.4.6.1-alpha. 2221 2222 o Minor bugfix (CI, onion service): 2223 - Exclude onion service version 2 Stem tests in our CI. Fixes bug 40500; 2224 bugfix on 0.3.2.1-alpha. 2225 2226 o Minor bugfixes (compatibility): 2227 - Fix compatibility with the most recent Libevent versions, which no 2228 longer have an evdns_set_random_bytes() function. Because this 2229 function has been a no-op since Libevent 2.0.4-alpha, it is safe 2230 for us to just stop calling it. Fixes bug 40371; bugfix 2231 on 0.2.1.7-alpha. 2232 2233 o Minor bugfixes (onion service, TROVE-2021-008): 2234 - Only log v2 access attempts once total, in order to not pollute 2235 the logs with warnings and to avoid recording the times on disk 2236 when v2 access was attempted. Note that the onion address was 2237 _never_ logged. This counts as a Low-severity security issue. 2238 Fixes bug 40474; bugfix on 0.4.5.8. 2239 2240 2241 Changes in version 0.4.5.11 - 2021-10-26 2242 The major change in this version is that v2 onion services are now 2243 disabled at the client, service, and relay: any Tor nodes running this 2244 version and onward will stop supporting v2 onion services. This is the 2245 last step in the long deprecation process of v2 onion services. 2246 Everyone running an earlier version, whether as a client, a relay, or 2247 an onion service, should upgrade to Tor 0.3.5.17, 0.4.5.11, 2248 or 0.4.6.8. 2249 2250 o Major feature (onion service v2): 2251 - See https://blog.torproject.org/v2-deprecation-timeline for 2252 details on how to transition from v2 to v3. 2253 - The control port commands HSFETCH and HSPOST no longer allow 2254 version 2, and it is no longer possible to create a v2 service 2255 with ADD_ONION. 2256 - Tor no longer allows creating v2 services, or connecting as a 2257 client to a v2 service. Relays will decline to be a v2 HSDir or 2258 introduction point. This effectively disables onion service 2259 version 2 Tor-wide. Closes ticket 40476. 2260 2261 o Minor features (bridge, backport from 0.4.6.8): 2262 - We now announce the URL to Tor's new bridge status at 2263 https://bridges.torproject.org/ when Tor is configured to run as a 2264 bridge relay. Closes ticket 30477. 2265 2266 o Minor features (fallbackdir): 2267 - Regenerate fallback directories for October 2021. Closes 2268 ticket 40493. 2269 2270 o Minor features (logging, diagnostic, backport from 0.4.6.5): 2271 - Log decompression failures at a higher severity level, since they 2272 can help provide missing context for other warning messages. We 2273 rate-limit these messages, to avoid flooding the logs if they 2274 begin to occur frequently. Closes ticket 40175. 2275 2276 o Minor features (testing, backport from 0.4.6.8): 2277 - On a testing network, relays can now use the 2278 TestingMinTimeToReportBandwidth option to change the smallest 2279 amount of time over which they're willing to report their observed 2280 maximum bandwidth. Previously, this was fixed at 1 day. For 2281 safety, values under 2 hours are only supported on testing 2282 networks. Part of a fix for ticket 40337. 2283 - Relays on testing networks no longer rate-limit how frequently 2284 they are willing to report new bandwidth measurements. Part of a 2285 fix for ticket 40337. 2286 - Relays on testing networks now report their observed bandwidths 2287 immediately from startup. Previously, they waited until they had 2288 been running for a full day. Closes ticket 40337. 2289 2290 o Minor bugfix (CI, onion service): 2291 - Exclude onion service version 2 Stem tests in our CI. Fixes bug 40500; 2292 bugfix on 0.3.2.1-alpha. 2293 2294 o Minor bugfix (onion service, backport from 0.4.6.8): 2295 - Do not flag an HSDir as non-running in case the descriptor upload 2296 or fetch fails. An onion service closes pending directory 2297 connections before uploading a new descriptor which can thus lead 2298 to wrongly flagging many relays and thus affecting circuit building 2299 path selection. Fixes bug 40434; bugfix on 0.2.0.13-alpha. 2300 2301 o Minor bugfixes (compatibility, backport from 0.4.6.8): 2302 - Fix compatibility with the most recent Libevent versions, which no 2303 longer have an evdns_set_random_bytes() function. Because this 2304 function has been a no-op since Libevent 2.0.4-alpha, it is safe 2305 for us to just stop calling it. Fixes bug 40371; bugfix 2306 on 0.2.1.7-alpha. 2307 2308 o Minor bugfixes (consensus handling, backport from 0.4.6.4-rc): 2309 - Avoid a set of bugs that could be caused by inconsistently 2310 preferring an out-of-date consensus stored in a stale directory 2311 cache over a more recent one stored on disk as the latest 2312 consensus. Fixes bug 40375; bugfix on 0.3.1.1-alpha. 2313 2314 o Minor bugfixes (onion service, TROVE-2021-008, backport from 0.4.6.8): 2315 - Only log v2 access attempts once total, in order to not pollute 2316 the logs with warnings and to avoid recording the times on disk 2317 when v2 access was attempted. Note that the onion address was 2318 _never_ logged. This counts as a Low-severity security issue. 2319 Fixes bug 40474; bugfix on 0.4.5.8. 2320 2321 2322 Changes in version 0.3.5.17 - 2021-10-26 2323 The major change in this version is that v2 onion services are now 2324 disabled at the client, service, and relay: any Tor nodes running this 2325 version and onward will stop supporting v2 onion services. This is the 2326 last step in the long deprecation process of v2 onion services. 2327 Everyone running an earlier version, whether as a client, a relay, or 2328 an onion service, should upgrade to Tor 0.3.5.17, 0.4.5.11, 2329 or 0.4.6.8. 2330 2331 o Major feature (onion service v2, backport from 0.4.5.11): 2332 - See https://blog.torproject.org/v2-deprecation-timeline for 2333 details on how to transition from v2 to v3. 2334 - The control port commands HSFETCH and HSPOST no longer allow 2335 version 2, and it is no longer possible to create a v2 service 2336 with ADD_ONION. 2337 - Tor no longer allows creating v2 services, or connecting as a 2338 client to a v2 service. Relays will decline to be a v2 HSDir or 2339 introduction point. This effectively disables onion service 2340 version 2 Tor-wide. Closes ticket 40476. 2341 2342 o Minor features (bridge, backport from 0.4.6.8): 2343 - We now announce the URL to Tor's new bridge status at 2344 https://bridges.torproject.org/ when Tor is configured to run as a 2345 bridge relay. Closes ticket 30477. 2346 2347 o Minor features (fallbackdir): 2348 - Regenerate fallback directories for October 2021. Closes 2349 ticket 40493. 2350 2351 o Minor bugfixes (compatibility, backport from 0.4.6.8): 2352 - Fix compatibility with the most recent Libevent versions, which no 2353 longer have an evdns_set_random_bytes() function. Because this 2354 function has been a no-op since Libevent 2.0.4-alpha, it is safe 2355 for us to just stop calling it. Fixes bug 40371; bugfix 2356 on 0.2.1.7-alpha. 2357 2358 2359 Changes in version 0.4.6.7 - 2021-08-16 2360 This version fixes several bugs from earlier versions of Tor, including one 2361 that could lead to a denial-of-service attack. Everyone running an earlier 2362 version, whether as a client, a relay, or an onion service, should upgrade 2363 to Tor 0.3.5.16, 0.4.5.10, or 0.4.6.7. 2364 2365 o Major bugfixes (cryptography, security): 2366 - Resolve an assertion failure caused by a behavior mismatch between our 2367 batch-signature verification code and our single-signature verification 2368 code. This assertion failure could be triggered remotely, leading to a 2369 denial of service attack. We fix this issue by disabling batch 2370 verification. Fixes bug 40078; bugfix on 0.2.6.1-alpha. This issue is 2371 also tracked as TROVE-2021-007 and CVE-2021-38385. Found by Henry de 2372 Valence. 2373 2374 o Minor feature (fallbackdir): 2375 - Regenerate fallback directories list. Close ticket 40447. 2376 2377 o Minor features (geoip data): 2378 - Update the geoip files to match the IPFire Location Database, 2379 as retrieved on 2021/08/12. 2380 2381 o Minor bugfix (crypto): 2382 - Disable the unused batch verification feature of ed25519-donna. Fixes 2383 bug 40078; bugfix on 0.2.6.1-alpha. Found by Henry de Valence. 2384 2385 o Minor bugfixes (onion service): 2386 - Send back the extended SOCKS error 0xF6 (Onion Service Invalid Address) 2387 for a v2 onion address. Fixes bug 40421; bugfix on 0.4.6.2-alpha. 2388 2389 o Minor bugfix (CI, onion service): 2390 - Exclude onion service version 2 Stem tests in our CI. Fixes bug 40500; 2391 bugfix on 0.3.2.1-alpha. 2392 2393 o Minor bugfixes (relay): 2394 - Reduce the compression level for data streaming from HIGH to LOW in 2395 order to reduce CPU load on the directory relays. Fixes bug 40301; 2396 bugfix on 0.3.5.1-alpha. 2397 2398 o Minor bugfixes (timekeeping): 2399 - Calculate the time of day correctly on systems where the time_t 2400 type includes leap seconds. (This is not the case on most 2401 operating systems, but on those where it occurs, our tor_timegm 2402 function did not correctly invert the system's gmtime function, 2403 which could result in assertion failures when calculating 2404 voting schedules.) Fixes bug 40383; bugfix on 0.2.0.3-alpha. 2405 2406 2407 Changes in version 0.4.5.10 - 2021-08-16 2408 This version fixes several bugs from earlier versions of Tor, including one 2409 that could lead to a denial-of-service attack. Everyone running an earlier 2410 version, whether as a client, a relay, or an onion service, should upgrade 2411 to Tor 0.3.5.16, 0.4.5.10, or 0.4.6.7. 2412 2413 o Major bugfixes (cryptography, security): 2414 - Resolve an assertion failure caused by a behavior mismatch between our 2415 batch-signature verification code and our single-signature verification 2416 code. This assertion failure could be triggered remotely, leading to a 2417 denial of service attack. We fix this issue by disabling batch 2418 verification. Fixes bug 40078; bugfix on 0.2.6.1-alpha. This issue is 2419 also tracked as TROVE-2021-007 and CVE-2021-38385. Found by Henry de 2420 Valence. 2421 2422 o Minor feature (fallbackdir): 2423 - Regenerate fallback directories list. Close ticket 40447. 2424 2425 o Minor features (geoip data): 2426 - Update the geoip files to match the IPFire Location Database, 2427 as retrieved on 2021/08/12. 2428 2429 o Minor features (testing): 2430 - Enable the deterministic RNG for unit tests that covers the address set 2431 bloomfilter-based API's. Fixes bug 40419; bugfix on 0.3.3.2-alpha. 2432 2433 o Minor bugfix (crypto): 2434 - Disable the unused batch verification feature of ed25519-donna. Fixes 2435 bug 40078; bugfix on 0.2.6.1-alpha. Found by Henry de Valence. 2436 2437 o Minor bugfixes (relay, backport from 0.4.6.x): 2438 - Reduce the compression level for data streaming from HIGH to LOW. Fixes 2439 bug 40301; bugfix on 0.3.5.1-alpha. 2440 2441 o Minor bugfixes (timekeeping, backport from 0.4.6.x): 2442 - Calculate the time of day correctly on systems where the time_t 2443 type includes leap seconds. (This is not the case on most 2444 operating systems, but on those where it occurs, our tor_timegm 2445 function did not correctly invert the system's gmtime function, 2446 which could result in assertion failures when calculating 2447 voting schedules.) Fixes bug 40383; bugfix on 0.2.0.3-alpha. 2448 2449 o Minor bugfixes (warnings, portability, backport from 0.4.6.x): 2450 - Suppress a strict-prototype warning when building with some versions 2451 of NSS. Fixes bug 40409; bugfix on 0.3.5.1-alpha. 2452 2453 2454 Changes in version 0.3.5.16 - 2021-08-16 2455 This version fixes several bugs from earlier versions of Tor, including one 2456 that could lead to a denial-of-service attack. Everyone running an earlier 2457 version, whether as a client, a relay, or an onion service, should upgrade 2458 to Tor 0.3.5.16, 0.4.5.10, or 0.4.6.7. 2459 2460 o Major bugfixes (cryptography, security): 2461 - Resolve an assertion failure caused by a behavior mismatch between our 2462 batch-signature verification code and our single-signature verification 2463 code. This assertion failure could be triggered remotely, leading to a 2464 denial of service attack. We fix this issue by disabling batch 2465 verification. Fixes bug 40078; bugfix on 0.2.6.1-alpha. This issue is 2466 also tracked as TROVE-2021-007 and CVE-2021-38385. Found by Henry de 2467 Valence. 2468 2469 o Minor feature (fallbackdir): 2470 - Regenerate fallback directories list. Close ticket 40447. 2471 2472 o Minor features (geoip data): 2473 - Update the geoip files to match the IPFire Location Database, 2474 as retrieved on 2021/08/12. 2475 2476 o Minor bugfix (crypto): 2477 - Disable the unused batch verification feature of ed25519-donna. Fixes 2478 bug 40078; bugfix on 0.2.6.1-alpha. Found by Henry de Valence. 2479 2480 o Minor bugfixes (relay, backport from 0.4.6.x): 2481 - Reduce the compression level for data streaming from HIGH to LOW. Fixes 2482 bug 40301; bugfix on 0.3.5.1-alpha. 2483 2484 2485 Changes in version 0.4.6.6 - 2021-06-30 2486 Tor 0.4.6.6 makes several small fixes on 0.4.6.5, including one that 2487 allows Tor to build correctly on older versions of GCC. You should 2488 upgrade to this version if you were having trouble building Tor 2489 0.4.6.5; otherwise, there is probably no need. 2490 2491 o Minor bugfixes (compilation): 2492 - Fix a compilation error when trying to build Tor with a compiler 2493 that does not support const variables in static initializers. 2494 Fixes bug 40410; bugfix on 0.4.6.5. 2495 - Suppress a strict-prototype warning when building with some 2496 versions of NSS. Fixes bug 40409; bugfix on 0.3.5.1-alpha. 2497 2498 o Minor bugfixes (testing): 2499 - Enable the deterministic RNG for unit tests that covers the 2500 address set bloomfilter-based API's. Fixes bug 40419; bugfix 2501 on 0.3.3.2-alpha. 2502 2503 2504 Changes in version 0.4.6.5 - 2021-06-14 2505 Tor 0.4.6.5 is the first stable release in its series. The 0.4.6.x 2506 series includes numerous features and bugfixes, including a significant 2507 improvement to our circuit timeout algorithm that should improve 2508 observed client performance, and a way for relays to report when they are 2509 overloaded. 2510 2511 This release also includes security fixes for several security issues, 2512 including a denial-of-service attack against onion service clients, 2513 and another denial-of-service attack against relays. Everybody should 2514 upgrade to one of 0.3.5.15, 0.4.4.9, 0.4.5.9, or 0.4.6.5. 2515 2516 Below are the changes since 0.4.5.8. For a list of changes since 2517 0.4.6.4-rc, see the ChangeLog file. 2518 2519 o Major bugfixes (security): 2520 - Don't allow relays to spoof RELAY_END or RELAY_RESOLVED cell on 2521 half-closed streams. Previously, clients failed to validate which 2522 hop sent these cells: this would allow a relay on a circuit to end 2523 a stream that wasn't actually built with it. Fixes bug 40389; 2524 bugfix on 0.3.5.1-alpha. This issue is also tracked as TROVE-2021- 2525 003 and CVE-2021-34548. 2526 2527 o Major bugfixes (security, defense-in-depth): 2528 - Detect more failure conditions from the OpenSSL RNG code. 2529 Previously, we would detect errors from a missing RNG 2530 implementation, but not failures from the RNG code itself. 2531 Fortunately, it appears those failures do not happen in practice 2532 when Tor is using OpenSSL's default RNG implementation. Fixes bug 2533 40390; bugfix on 0.2.8.1-alpha. This issue is also tracked as 2534 TROVE-2021-004. Reported by Jann Horn at Google's Project Zero. 2535 2536 o Major bugfixes (security, denial of service): 2537 - Resist a hashtable-based CPU denial-of-service attack against 2538 relays. Previously we used a naive unkeyed hash function to look 2539 up circuits in a circuitmux object. An attacker could exploit this 2540 to construct circuits with chosen circuit IDs, to create 2541 collisions and make the hash table inefficient. Now we use a 2542 SipHash construction here instead. Fixes bug 40391; bugfix on 2543 0.2.4.4-alpha. This issue is also tracked as TROVE-2021-005 and 2544 CVE-2021-34549. Reported by Jann Horn from Google's Project Zero. 2545 - Fix an out-of-bounds memory access in v3 onion service descriptor 2546 parsing. An attacker could exploit this bug by crafting an onion 2547 service descriptor that would crash any client that tried to visit 2548 it. Fixes bug 40392; bugfix on 0.3.0.1-alpha. This issue is also 2549 tracked as TROVE-2021-006 and CVE-2021-34550. Reported by Sergei 2550 Glazunov from Google's Project Zero. 2551 2552 o Major features (control port, onion services): 2553 - Add controller support for creating version 3 onion services with 2554 client authorization. Previously, only v2 onion services could be 2555 created with client authorization. Closes ticket 40084. Patch by 2556 Neel Chauhan. 2557 2558 o Major features (directory authority): 2559 - When voting on a relay with a Sybil-like appearance, add the Sybil 2560 flag when clearing out the other flags. This lets a relay operator 2561 know why their relay hasn't been included in the consensus. Closes 2562 ticket 40255. Patch by Neel Chauhan. 2563 2564 o Major features (metrics): 2565 - Relays now report how overloaded they are in their extrainfo 2566 documents. This information is controlled with the 2567 OverloadStatistics torrc option, and it will be used to improve 2568 decisions about the network's load balancing. Implements proposal 2569 328; closes ticket 40222. 2570 2571 o Major features (relay, denial of service): 2572 - Add a new DoS subsystem feature to control the rate of client 2573 connections for relays. Closes ticket 40253. 2574 2575 o Major features (statistics): 2576 - Relays now publish statistics about the number of v3 onion 2577 services and volume of v3 onion service traffic, in the same 2578 manner they already do for v2 onions. Closes ticket 23126. 2579 2580 o Major bugfixes (circuit build timeout): 2581 - Improve the accuracy of our circuit build timeout calculation for 2582 60%, 70%, and 80% build rates for various guard choices. We now 2583 use a maximum likelihood estimator for Pareto parameters of the 2584 circuit build time distribution, instead of a "right-censored 2585 estimator". This causes clients to ignore circuits that never 2586 finish building in their timeout calculations. Previously, clients 2587 were counting such unfinished circuits as having the highest 2588 possible build time value, when in reality these circuits most 2589 likely just contain relays that are offline. We also now wait a 2590 bit longer to let circuits complete for measurement purposes, 2591 lower the minimum possible effective timeout from 1.5 seconds to 2592 10ms, and increase the resolution of the circuit build time 2593 histogram from 50ms bin widths to 10ms bin widths. Additionally, 2594 we alter our estimate Xm by taking the maximum of the top 10 most 2595 common build time values of the 10ms histogram, and compute Xm as 2596 the average of these. Fixes bug 40168; bugfix on 0.2.2.14-alpha. 2597 - Remove max_time calculation and associated warning from circuit 2598 build timeout 'alpha' parameter estimation, as this is no longer 2599 needed by our new estimator from 40168. Fixes bug 34088; bugfix 2600 on 0.2.2.9-alpha. 2601 2602 o Major bugfixes (signing key): 2603 - In the tor-gencert utility, give an informative error message if 2604 the passphrase given in `--create-identity-key` is too short. 2605 Fixes bug 40189; bugfix on 0.2.0.1-alpha. Patch by Neel Chauhan. 2606 2607 o Minor features (bridge): 2608 - We now announce the URL to Tor's new bridge status at 2609 https://bridges.torproject.org/ when Tor is configured to run as a 2610 bridge relay. Closes ticket 30477. 2611 2612 o Minor features (build system): 2613 - New "make lsp" command to auto generate the compile_commands.json 2614 file used by the ccls server. The "bear" program is needed for 2615 this. Closes ticket 40227. 2616 2617 o Minor features (client): 2618 - Clients now check whether their streams are attempting to re-enter 2619 the Tor network (i.e. to send Tor traffic over Tor), and close 2620 them preemptively if they think exit relays will refuse them for 2621 this reason. See ticket 2667 for details. Closes ticket 40271. 2622 2623 o Minor features (command line): 2624 - Add long format name "--torrc-file" equivalent to the existing 2625 command-line option "-f". Closes ticket 40324. Patch by 2626 Daniel Pinto. 2627 2628 o Minor features (command-line interface): 2629 - Add build informations to `tor --version` in order to ease 2630 reproducible builds. Closes ticket 32102. 2631 - When parsing command-line flags that take an optional argument, 2632 treat the argument as absent if it would start with a '-' 2633 character. Arguments in that form are not intelligible for any of 2634 our optional-argument flags. Closes ticket 40223. 2635 - Allow a relay operator to list the ed25519 keys on the command 2636 line by adding the `rsa` and `ed25519` arguments to the 2637 --list-fingerprint flag to show the respective RSA and ed25519 2638 relay fingerprint. Closes ticket 33632. Patch by Neel Chauhan. 2639 2640 o Minor features (compatibility): 2641 - Remove an assertion function related to TLS renegotiation. It was 2642 used nowhere outside the unit tests, and it was breaking 2643 compilation with recent alpha releases of OpenSSL 3.0.0. Closes 2644 ticket 40399. 2645 2646 o Minor features (control port, stream handling): 2647 - Add the stream ID to the event line in the ADDRMAP control event. 2648 Closes ticket 40249. Patch by Neel Chauhan. 2649 2650 o Minor features (dormant mode): 2651 - Add a new 'DormantTimeoutEnabled' option to allow coarse-grained 2652 control over whether the client ever becomes dormant from 2653 inactivity. Most people won't need this. Closes ticket 40228. 2654 - Add a new 'DormantTimeoutEnabled' option for coarse-grained 2655 control over whether the client can become dormant from 2656 inactivity. Most people won't need this. Closes ticket 40228. 2657 2658 o Minor features (geoip data): 2659 - Update the geoip files to match the IPFire Location Database, as 2660 retrieved on 2021/06/10. 2661 2662 o Minor features (logging): 2663 - Edit heartbeat log messages so that more of them begin with the 2664 string "Heartbeat: ". Closes ticket 40322; patch 2665 from 'cypherpunks'. 2666 - Change the DoS subsystem heartbeat line format to be more clear on 2667 what has been detected/rejected, and which option is disabled (if 2668 any). Closes ticket 40308. 2669 - In src/core/mainloop/mainloop.c and src/core/mainloop/connection.c, 2670 put brackets around IPv6 addresses in log messages. Closes ticket 2671 40232. Patch by Neel Chauhan. 2672 2673 o Minor features (logging, diagnostic): 2674 - Log decompression failures at a higher severity level, since they 2675 can help provide missing context for other warning messages. We 2676 rate-limit these messages, to avoid flooding the logs if they 2677 begin to occur frequently. Closes ticket 40175. 2678 2679 o Minor features (onion services): 2680 - Add a warning message when trying to connect to (no longer 2681 supported) v2 onion services. Closes ticket 40373. 2682 2683 o Minor features (performance, windows): 2684 - Use SRWLocks to implement locking on Windows. Replaces the 2685 "critical section" locking implementation with the faster 2686 SRWLocks, available since Windows Vista. Closes ticket 17927. 2687 Patch by Daniel Pinto. 2688 2689 o Minor features (protocol, proxy support, defense in depth): 2690 - Close HAProxy connections if they somehow manage to send us data 2691 before we start reading. Closes another case of ticket 40017. 2692 2693 o Minor features (tests, portability): 2694 - Port the hs_build_address.py test script to work with recent 2695 versions of python. Closes ticket 40213. Patch from 2696 Samanta Navarro. 2697 2698 o Minor features (vote document): 2699 - Add a "stats" line to directory authority votes, to report various 2700 statistics that authorities compute about the relays. This will 2701 help us diagnose the network better. Closes ticket 40314. 2702 2703 o Minor bugfixes (build): 2704 - The configure script now shows whether or not lzma and zstd have 2705 been used, not just if the enable flag was passed in. Fixes bug 2706 40236; bugfix on 0.4.3.1-alpha. 2707 2708 o Minor bugfixes (compatibility): 2709 - Fix a failure in the test cases when running on the "hppa" 2710 architecture, along with a related test that might fail on other 2711 architectures in the future. Fixes bug 40274; bugfix 2712 on 0.2.5.1-alpha. 2713 2714 o Minor bugfixes (compilation): 2715 - Fix a compilation warning about unused functions when building 2716 with a libc that lacks the GLOB_ALTDIRFUNC constant. Fixes bug 2717 40354; bugfix on 0.4.5.1-alpha. Patch by Daniel Pinto. 2718 2719 o Minor bugfixes (consensus handling): 2720 - Avoid a set of bugs that could be caused by inconsistently 2721 preferring an out-of-date consensus stored in a stale directory 2722 cache over a more recent one stored on disk as the latest 2723 consensus. Fixes bug 40375; bugfix on 0.3.1.1-alpha. 2724 2725 o Minor bugfixes (control, sandbox): 2726 - Allow the control command SAVECONF to succeed when the seccomp 2727 sandbox is enabled, and make SAVECONF keep only one backup file to 2728 simplify implementation. Previously SAVECONF allowed a large 2729 number of backup files, which made it incompatible with the 2730 sandbox. Fixes bug 40317; bugfix on 0.2.5.4-alpha. Patch by 2731 Daniel Pinto. 2732 2733 o Minor bugfixes (directory authorities, voting): 2734 - Add a new consensus method (31) to support any future changes that 2735 authorities decide to make to the value of bwweightscale or 2736 maxunmeasuredbw. Previously, there was a bug that prevented the 2737 authorities from parsing these consensus parameters correctly under 2738 most circumstances. Fixes bug 19011; bugfix on 0.2.2.10-alpha. 2739 2740 o Minor bugfixes (ipv6): 2741 - Allow non-SOCKSPorts to disable IPv4, IPv6, and PreferIPv4. Some 2742 rare configurations might break, but in this case you can disable 2743 NoIPv4Traffic and NoIPv6Traffic as needed. Fixes bug 33607; bugfix 2744 on 0.4.1.1-alpha. Patch by Neel Chauhan. 2745 2746 o Minor bugfixes (key generation): 2747 - Do not require a valid torrc when using the `--keygen` argument to 2748 generate a signing key. This allows us to generate keys on systems 2749 or users which may not run Tor. Fixes bug 40235; bugfix on 2750 0.2.7.2-alpha. Patch by Neel Chauhan. 2751 2752 o Minor bugfixes (logging, relay): 2753 - Emit a warning if an Address is found to be internal and tor can't 2754 use it. Fixes bug 40290; bugfix on 0.4.5.1-alpha. 2755 2756 o Minor bugfixes (metrics port): 2757 - Fix a bug that made tor try to re-bind() on an already open 2758 MetricsPort every 60 seconds. Fixes bug 40370; bugfix 2759 on 0.4.5.1-alpha. 2760 2761 o Minor bugfixes (onion services, logging): 2762 - Downgrade the severity of a few rendezvous circuit-related 2763 warnings from warning to info. Fixes bug 40207; bugfix on 2764 0.3.2.1-alpha. Patch by Neel Chauhan. 2765 2766 o Minor bugfixes (relay): 2767 - Reduce the compression level for data streaming from HIGH to LOW. 2768 This should reduce the CPU and memory burden for directory caches. 2769 Fixes bug 40301; bugfix on 0.3.5.1-alpha. 2770 2771 o Minor bugfixes (testing, BSD): 2772 - Fix pattern-matching errors when patterns expand to invalid paths 2773 on BSD systems. Fixes bug 40318; bugfix on 0.4.5.1-alpha. Patch by 2774 Daniel Pinto. 2775 2776 o Code simplification and refactoring: 2777 - Remove the orconn_ext_or_id_map structure and related functions. 2778 (Nothing outside of unit tests used them.) Closes ticket 33383. 2779 Patch by Neel Chauhan. 2780 2781 o Removed features: 2782 - Remove unneeded code for parsing private keys in directory 2783 documents. This code was only used for client authentication in v2 2784 onion services, which are now unsupported. Closes ticket 40374. 2785 - As of this release, Tor no longer supports the old v2 onion 2786 services. They were deprecated last July for security, and support 2787 will be removed entirely later this year. We strongly encourage 2788 everybody to migrate to v3 onion services. For more information, 2789 see https://blog.torproject.org/v2-deprecation-timeline . Closes 2790 ticket 40266. (NOTE: We accidentally released an earlier version 2791 of the 0.4.6.1-alpha changelog without this entry. Sorry for 2792 the confusion!) 2793 2794 o Code simplification and refactoring (metrics, DoS): 2795 - Move the DoS subsystem into the subsys manager, including its 2796 configuration options. Closes ticket 40261. 2797 2798 o Documentation (manual): 2799 - Move the ServerTransport* options to the "SERVER OPTIONS" section. 2800 Closes issue 40331. 2801 - Indicate that the HiddenServiceStatistics option also applies to 2802 bridges. Closes ticket 40346. 2803 - Move the description of BridgeRecordUsageByCountry to the section 2804 "STATISTICS OPTIONS". Closes ticket 40323. 2805 2806 o Removed features (relay): 2807 - Because DirPorts are only used on authorities, relays no longer 2808 advertise them. Similarly, self-testing for DirPorts has been 2809 disabled, since an unreachable DirPort is no reason for a relay 2810 not to advertise itself. (Configuring a DirPort will still work, 2811 for now.) Closes ticket 40282. 2812 2813 2814 Changes in version 0.4.5.9 - 2021-06-14 2815 Tor 0.4.5.9 fixes several security issues, including a 2816 denial-of-service attack against onion service clients, and another 2817 denial-of-service attack against relays. Everybody should upgrade to 2818 one of 0.3.5.15, 0.4.4.9, 0.4.5.9, or 0.4.6.5. 2819 2820 o Major bugfixes (security, backport from 0.4.6.5): 2821 - Don't allow relays to spoof RELAY_END or RELAY_RESOLVED cell on 2822 half-closed streams. Previously, clients failed to validate which 2823 hop sent these cells: this would allow a relay on a circuit to end 2824 a stream that wasn't actually built with it. Fixes bug 40389; 2825 bugfix on 0.3.5.1-alpha. This issue is also tracked as TROVE-2021- 2826 003 and CVE-2021-34548. 2827 2828 o Major bugfixes (security, defense-in-depth, backport from 0.4.6.5): 2829 - Detect more failure conditions from the OpenSSL RNG code. 2830 Previously, we would detect errors from a missing RNG 2831 implementation, but not failures from the RNG code itself. 2832 Fortunately, it appears those failures do not happen in practice 2833 when Tor is using OpenSSL's default RNG implementation. Fixes bug 2834 40390; bugfix on 0.2.8.1-alpha. This issue is also tracked as 2835 TROVE-2021-004. Reported by Jann Horn at Google's Project Zero. 2836 2837 o Major bugfixes (security, denial of service, backport from 0.4.6.5): 2838 - Resist a hashtable-based CPU denial-of-service attack against 2839 relays. Previously we used a naive unkeyed hash function to look 2840 up circuits in a circuitmux object. An attacker could exploit this 2841 to construct circuits with chosen circuit IDs, to create 2842 collisions and make the hash table inefficient. Now we use a 2843 SipHash construction here instead. Fixes bug 40391; bugfix on 2844 0.2.4.4-alpha. This issue is also tracked as TROVE-2021-005 and 2845 CVE-2021-34549. Reported by Jann Horn from Google's Project Zero. 2846 - Fix an out-of-bounds memory access in v3 onion service descriptor 2847 parsing. An attacker could exploit this bug by crafting an onion 2848 service descriptor that would crash any client that tried to visit 2849 it. Fixes bug 40392; bugfix on 0.3.0.1-alpha. This issue is also 2850 tracked as TROVE-2021-006 and CVE-2021-34550. Reported by Sergei 2851 Glazunov from Google's Project Zero. 2852 2853 o Minor features (compatibility, backport from 0.4.6.4-rc): 2854 - Remove an assertion function related to TLS renegotiation. It was 2855 used nowhere outside the unit tests, and it was breaking 2856 compilation with recent alpha releases of OpenSSL 3.0.0. Closes 2857 ticket 40399. 2858 2859 o Minor features (geoip data): 2860 - Update the geoip files to match the IPFire Location Database, as 2861 retrieved on 2021/06/10. 2862 2863 o Minor bugfixes (control, sandbox, backport from 0.4.6.4-rc): 2864 - Allow the control command SAVECONF to succeed when the seccomp 2865 sandbox is enabled, and make SAVECONF keep only one backup file to 2866 simplify implementation. Previously SAVECONF allowed a large 2867 number of backup files, which made it incompatible with the 2868 sandbox. Fixes bug 40317; bugfix on 0.2.5.4-alpha. Patch by 2869 Daniel Pinto. 2870 2871 o Minor bugfixes (metrics port, backport from 0.4.6.4-rc): 2872 - Fix a bug that made tor try to re-bind() on an already open 2873 MetricsPort every 60 seconds. Fixes bug 40370; bugfix 2874 on 0.4.5.1-alpha. 2875 2876 2877 Changes in version 0.4.4.9 - 2021-06-14 2878 Tor 0.4.4.9 fixes several security issues, including a 2879 denial-of-service attack against onion service clients, and another 2880 denial-of-service attack against relays. Everybody should upgrade to 2881 one of 0.3.5.15, 0.4.4.9, 0.4.5.9, or 0.4.6.5. 2882 2883 Note that the scheduled end-of-life date for the Tor 0.4.4.x series is 2884 June 15. This is therefore the last release in its series. Everybody 2885 still running 0.4.4.x should plan to upgrade to 0.4.5.x or later. 2886 2887 o Major bugfixes (security, backport from 0.4.6.5): 2888 - Don't allow relays to spoof RELAY_END or RELAY_RESOLVED cell on 2889 half-closed streams. Previously, clients failed to validate which 2890 hop sent these cells: this would allow a relay on a circuit to end 2891 a stream that wasn't actually built with it. Fixes bug 40389; 2892 bugfix on 0.3.5.1-alpha. This issue is also tracked as TROVE-2021- 2893 003 and CVE-2021-34548. 2894 2895 o Major bugfixes (security, defense-in-depth, backport from 0.4.6.5): 2896 - Detect more failure conditions from the OpenSSL RNG code. 2897 Previously, we would detect errors from a missing RNG 2898 implementation, but not failures from the RNG code itself. 2899 Fortunately, it appears those failures do not happen in practice 2900 when Tor is using OpenSSL's default RNG implementation. Fixes bug 2901 40390; bugfix on 0.2.8.1-alpha. This issue is also tracked as 2902 TROVE-2021-004. Reported by Jann Horn at Google's Project Zero. 2903 2904 o Major bugfixes (security, denial of service, backport from 0.4.6.5): 2905 - Resist a hashtable-based CPU denial-of-service attack against 2906 relays. Previously we used a naive unkeyed hash function to look 2907 up circuits in a circuitmux object. An attacker could exploit this 2908 to construct circuits with chosen circuit IDs, to create 2909 collisions and make the hash table inefficient. Now we use a 2910 SipHash construction here instead. Fixes bug 40391; bugfix on 2911 0.2.4.4-alpha. This issue is also tracked as TROVE-2021-005 and 2912 CVE-2021-34549. Reported by Jann Horn from Google's Project Zero. 2913 - Fix an out-of-bounds memory access in v3 onion service descriptor 2914 parsing. An attacker could exploit this bug by crafting an onion 2915 service descriptor that would crash any client that tried to visit 2916 it. Fixes bug 40392; bugfix on 0.3.0.1-alpha. This issue is also 2917 tracked as TROVE-2021-006 and CVE-2021-34550. Reported by Sergei 2918 Glazunov from Google's Project Zero. 2919 2920 o Minor features (compatibility, backport from 0.4.6.4-rc): 2921 - Remove an assertion function related to TLS renegotiation. It was 2922 used nowhere outside the unit tests, and it was breaking 2923 compilation with recent alpha releases of OpenSSL 3.0.0. Closes 2924 ticket 40399. 2925 2926 o Minor features (fallback directory list, backport from 0.4.6.2-alpha): 2927 - Regenerate the list of fallback directories to contain a new set 2928 of 200 relays. Closes ticket 40265. 2929 2930 o Minor features (geoip data): 2931 - Update the geoip files to match the IPFire Location Database, as 2932 retrieved on 2021/06/10. 2933 2934 o Minor bugfixes (channel, DoS, backport from 0.4.6.2-alpha): 2935 - Fix a non-fatal BUG() message due to a too-early free of a string, 2936 when listing a client connection from the DoS defenses subsystem. 2937 Fixes bug 40345; bugfix on 0.4.3.4-rc. 2938 2939 o Minor bugfixes (compiler warnings, backport from 0.4.6.3-rc): 2940 - Fix an indentation problem that led to a warning from GCC 11.1.1. 2941 Fixes bug 40380; bugfix on 0.3.0.1-alpha. 2942 2943 2944 Changes in version 0.3.5.15 - 2021-06-14 2945 Tor 0.3.5.15 fixes several security issues, including a 2946 denial-of-service attack against onion service clients, and another 2947 denial-of-service attack against relays. Everybody should upgrade to 2948 one of 0.3.5.15, 0.4.4.9, 0.4.5.9, or 0.4.6.5. 2949 2950 o Major bugfixes (security, backport from 0.4.6.5): 2951 - Don't allow relays to spoof RELAY_END or RELAY_RESOLVED cell on 2952 half-closed streams. Previously, clients failed to validate which 2953 hop sent these cells: this would allow a relay on a circuit to end 2954 a stream that wasn't actually built with it. Fixes bug 40389; 2955 bugfix on 0.3.5.1-alpha. This issue is also tracked as TROVE-2021- 2956 003 and CVE-2021-34548. 2957 2958 o Major bugfixes (security, defense-in-depth, backport from 0.4.6.5): 2959 - Detect more failure conditions from the OpenSSL RNG code. 2960 Previously, we would detect errors from a missing RNG 2961 implementation, but not failures from the RNG code itself. 2962 Fortunately, it appears those failures do not happen in practice 2963 when Tor is using OpenSSL's default RNG implementation. Fixes bug 2964 40390; bugfix on 0.2.8.1-alpha. This issue is also tracked as 2965 TROVE-2021-004. Reported by Jann Horn at Google's Project Zero. 2966 2967 o Major bugfixes (security, denial of service, backport from 0.4.6.5): 2968 - Resist a hashtable-based CPU denial-of-service attack against 2969 relays. Previously we used a naive unkeyed hash function to look 2970 up circuits in a circuitmux object. An attacker could exploit this 2971 to construct circuits with chosen circuit IDs, to create 2972 collisions and make the hash table inefficient. Now we use a 2973 SipHash construction here instead. Fixes bug 40391; bugfix on 2974 0.2.4.4-alpha. This issue is also tracked as TROVE-2021-005 and 2975 CVE-2021-34549. Reported by Jann Horn from Google's Project Zero. 2976 - Fix an out-of-bounds memory access in v3 onion service descriptor 2977 parsing. An attacker could exploit this bug by crafting an onion 2978 service descriptor that would crash any client that tried to visit 2979 it. Fixes bug 40392; bugfix on 0.3.0.1-alpha. This issue is also 2980 tracked as TROVE-2021-006 and CVE-2021-34550. Reported by Sergei 2981 Glazunov from Google's Project Zero. 2982 2983 o Minor bugfixes (compiler warnings, backport from 0.4.6.3-rc): 2984 - Fix an indentation problem that led to a warning from GCC 11.1.1. 2985 Fixes bug 40380; bugfix on 0.3.0.1-alpha. 2986 2987 o Minor features (compatibility, backport from 0.4.6.4-rc): 2988 - Remove an assertion function related to TLS renegotiation. It was 2989 used nowhere outside the unit tests, and it was breaking 2990 compilation with recent alpha releases of OpenSSL 3.0.0. Closes 2991 ticket 40399. 2992 2993 o Minor features (fallback directory list, backport from 0.4.6.2-alpha): 2994 - Regenerate the list of fallback directories to contain a new set 2995 of 200 relays. Closes ticket 40265. 2996 2997 o Minor features (geoip data): 2998 - Update the geoip files to match the IPFire Location Database, as 2999 retrieved on 2021/06/10. 3000 3001 3002 Changes in version 0.4.5.8 - 2021-05-10 3003 Tor 0.4.5.8 fixes several bugs in earlier version, backporting fixes 3004 from the 0.4.6.x series. 3005 3006 o Minor features (compatibility, Linux seccomp sandbox, backport from 0.4.6.3-rc): 3007 - Add a workaround to enable the Linux sandbox to work correctly 3008 with Glibc 2.33. This version of Glibc has started using the 3009 fstatat() system call, which previously our sandbox did not allow. 3010 Closes ticket 40382; see the ticket for a discussion of trade-offs. 3011 3012 o Minor features (compilation, backport from 0.4.6.3-rc): 3013 - Make the autoconf script build correctly with autoconf versions 3014 2.70 and later. Closes part of ticket 40335. 3015 3016 o Minor features (fallback directory list, backport from 0.4.6.2-alpha): 3017 - Regenerate the list of fallback directories to contain a new set 3018 of 200 relays. Closes ticket 40265. 3019 3020 o Minor features (geoip data): 3021 - Update the geoip files to match the IPFire Location Database, as 3022 retrieved on 2021/05/07. 3023 3024 o Minor features (onion services): 3025 - Add warning message when connecting to now deprecated v2 onion 3026 services. As announced, Tor 0.4.5.x is the last series that will 3027 support v2 onions. Closes ticket 40373. 3028 3029 o Minor bugfixes (bridge, pluggable transport, backport from 0.4.6.2-alpha): 3030 - Fix a regression that made it impossible start Tor using a bridge 3031 line with a transport name and no fingerprint. Fixes bug 40360; 3032 bugfix on 0.4.5.4-rc. 3033 3034 o Minor bugfixes (build, cross-compilation, backport from 0.4.6.3-rc): 3035 - Allow a custom "ar" for cross-compilation. Our previous build 3036 script had used the $AR environment variable in most places, but 3037 it missed one. Fixes bug 40369; bugfix on 0.4.5.1-alpha. 3038 3039 o Minor bugfixes (channel, DoS, backport from 0.4.6.2-alpha): 3040 - Fix a non-fatal BUG() message due to a too-early free of a string, 3041 when listing a client connection from the DoS defenses subsystem. 3042 Fixes bug 40345; bugfix on 0.4.3.4-rc. 3043 3044 o Minor bugfixes (compiler warnings, backport from 0.4.6.3-rc): 3045 - Fix an indentation problem that led to a warning from GCC 11.1.1. 3046 Fixes bug 40380; bugfix on 0.3.0.1-alpha. 3047 3048 o Minor bugfixes (controller, backport from 0.4.6.1-alpha): 3049 - Fix a "BUG" warning that would appear when a controller chooses 3050 the first hop for a circuit, and that circuit completes. Fixes bug 3051 40285; bugfix on 0.3.2.1-alpha. 3052 3053 o Minor bugfixes (onion service, client, memory leak, backport from 0.4.6.3-rc): 3054 - Fix a bug where an expired cached descriptor could get overwritten 3055 with a new one without freeing it, leading to a memory leak. Fixes 3056 bug 40356; bugfix on 0.3.5.1-alpha. 3057 3058 o Minor bugfixes (testing, BSD, backport from 0.4.6.2-alpha): 3059 - Fix pattern-matching errors when patterns expand to invalid paths 3060 on BSD systems. Fixes bug 40318; bugfix on 0.4.5.1-alpha. Patch by 3061 Daniel Pinto. 3062 3063 3064 Changes in version 0.3.5.14 - 2021-03-16 3065 Tor 0.3.5.14 backports fixes for two important denial-of-service bugs 3066 in earlier versions of Tor. 3067 3068 One of these vulnerabilities (TROVE-2021-001) would allow an attacker 3069 who can send directory data to a Tor instance to force that Tor 3070 instance to consume huge amounts of CPU. This is easiest to exploit 3071 against authorities, since anybody can upload to them, but directory 3072 caches could also exploit this vulnerability against relays or clients 3073 when they download. The other vulnerability (TROVE-2021-002) only 3074 affects directory authorities, and would allow an attacker to remotely 3075 crash the authority with an assertion failure. Patches have already 3076 been provided to the authority operators, to help ensure 3077 network stability. 3078 3079 We recommend that everybody upgrade to one of the releases that fixes 3080 these issues (0.3.5.14, 0.4.4.8, or 0.4.5.7) as they become available 3081 to you. 3082 3083 This release also updates our GeoIP data source, and fixes a 3084 compatibility issue. 3085 3086 o Major bugfixes (security, denial of service, backport from 0.4.5.7): 3087 - Disable the dump_desc() function that we used to dump unparseable 3088 information to disk. It was called incorrectly in several places, 3089 in a way that could lead to excessive CPU usage. Fixes bug 40286; 3090 bugfix on 0.2.2.1-alpha. This bug is also tracked as TROVE-2021- 3091 001 and CVE-2021-28089. 3092 - Fix a bug in appending detached signatures to a pending consensus 3093 document that could be used to crash a directory authority. Fixes 3094 bug 40316; bugfix on 0.2.2.6-alpha. Tracked as TROVE-2021-002 3095 and CVE-2021-28090. 3096 3097 o Minor features (geoip data, backport from 0.4.5.7): 3098 - We have switched geoip data sources. Previously we shipped IP-to- 3099 country mappings from Maxmind's GeoLite2, but in 2019 they changed 3100 their licensing terms, so we were unable to update them after that 3101 point. We now ship geoip files based on the IPFire Location 3102 Database instead. (See https://location.ipfire.org/ for more 3103 information). This release updates our geoip files to match the 3104 IPFire Location Database as retrieved on 2021/03/12. Closes 3105 ticket 40224. 3106 3107 o Removed features (mallinfo deprecated, backport from 0.4.5.7): 3108 - Remove mallinfo() usage entirely. Libc 2.33+ now deprecates it. 3109 Closes ticket 40309. 3110 3111 3112 Changes in version 0.4.4.8 - 2021-03-16 3113 Tor 0.4.4.8 backports fixes for two important denial-of-service bugs 3114 in earlier versions of Tor. 3115 3116 One of these vulnerabilities (TROVE-2021-001) would allow an attacker 3117 who can send directory data to a Tor instance to force that Tor 3118 instance to consume huge amounts of CPU. This is easiest to exploit 3119 against authorities, since anybody can upload to them, but directory 3120 caches could also exploit this vulnerability against relays or clients 3121 when they download. The other vulnerability (TROVE-2021-002) only 3122 affects directory authorities, and would allow an attacker to remotely 3123 crash the authority with an assertion failure. Patches have already 3124 been provided to the authority operators, to help ensure 3125 network stability. 3126 3127 We recommend that everybody upgrade to one of the releases that fixes 3128 these issues (0.3.5.14, 0.4.4.8, or 0.4.5.7) as they become available 3129 to you. 3130 3131 This release also updates our GeoIP data source, and fixes a 3132 compatibility issue. 3133 3134 o Major bugfixes (security, denial of service, backport from 0.4.5.7): 3135 - Disable the dump_desc() function that we used to dump unparseable 3136 information to disk. It was called incorrectly in several places, 3137 in a way that could lead to excessive CPU usage. Fixes bug 40286; 3138 bugfix on 0.2.2.1-alpha. This bug is also tracked as TROVE-2021- 3139 001 and CVE-2021-28089. 3140 - Fix a bug in appending detached signatures to a pending consensus 3141 document that could be used to crash a directory authority. Fixes 3142 bug 40316; bugfix on 0.2.2.6-alpha. Tracked as TROVE-2021-002 3143 and CVE-2021-28090. 3144 3145 o Minor features (geoip data, backport from 0.4.5.7): 3146 - We have switched geoip data sources. Previously we shipped IP-to- 3147 country mappings from Maxmind's GeoLite2, but in 2019 they changed 3148 their licensing terms, so we were unable to update them after that 3149 point. We now ship geoip files based on the IPFire Location 3150 Database instead. (See https://location.ipfire.org/ for more 3151 information). This release updates our geoip files to match the 3152 IPFire Location Database as retrieved on 2021/03/12. Closes 3153 ticket 40224. 3154 3155 o Removed features (mallinfo deprecated, backport from 0.4.5.7): 3156 - Remove mallinfo() usage entirely. Libc 2.33+ now deprecates it. 3157 Closes ticket 40309. 3158 3159 3160 Changes in version 0.4.5.7 - 2021-03-16 3161 Tor 0.4.5.7 fixes two important denial-of-service bugs in earlier 3162 versions of Tor. 3163 3164 One of these vulnerabilities (TROVE-2021-001) would allow an attacker 3165 who can send directory data to a Tor instance to force that Tor 3166 instance to consume huge amounts of CPU. This is easiest to exploit 3167 against authorities, since anybody can upload to them, but directory 3168 caches could also exploit this vulnerability against relays or clients 3169 when they download. The other vulnerability (TROVE-2021-002) only 3170 affects directory authorities, and would allow an attacker to remotely 3171 crash the authority with an assertion failure. Patches have already 3172 been provided to the authority operators, to help ensure 3173 network stability. 3174 3175 We recommend that everybody upgrade to one of the releases that fixes 3176 these issues (0.3.5.14, 0.4.4.8, or 0.4.5.7) as they become available 3177 to you. 3178 3179 This release also updates our GeoIP data source, and fixes a few 3180 smaller bugs in earlier releases. 3181 3182 o Major bugfixes (security, denial of service): 3183 - Disable the dump_desc() function that we used to dump unparseable 3184 information to disk. It was called incorrectly in several places, 3185 in a way that could lead to excessive CPU usage. Fixes bug 40286; 3186 bugfix on 0.2.2.1-alpha. This bug is also tracked as TROVE-2021- 3187 001 and CVE-2021-28089. 3188 - Fix a bug in appending detached signatures to a pending consensus 3189 document that could be used to crash a directory authority. Fixes 3190 bug 40316; bugfix on 0.2.2.6-alpha. Tracked as TROVE-2021-002 3191 and CVE-2021-28090. 3192 3193 o Minor features (geoip data): 3194 - We have switched geoip data sources. Previously we shipped IP-to- 3195 country mappings from Maxmind's GeoLite2, but in 2019 they changed 3196 their licensing terms, so we were unable to update them after that 3197 point. We now ship geoip files based on the IPFire Location 3198 Database instead. (See https://location.ipfire.org/ for more 3199 information). This release updates our geoip files to match the 3200 IPFire Location Database as retrieved on 2021/03/12. Closes 3201 ticket 40224. 3202 3203 o Minor bugfixes (directory authority): 3204 - Now that exit relays don't allow exit connections to directory 3205 authority DirPorts (to prevent network reentry), disable 3206 authorities' reachability self test on the DirPort. Fixes bug 3207 40287; bugfix on 0.4.5.5-rc. 3208 3209 o Minor bugfixes (documentation): 3210 - Fix a formatting error in the documentation for 3211 VirtualAddrNetworkIPv6. Fixes bug 40256; bugfix on 0.2.9.4-alpha. 3212 3213 o Minor bugfixes (Linux, relay): 3214 - Fix a bug in determining total available system memory that would 3215 have been triggered if the format of Linux's /proc/meminfo file 3216 had ever changed to include "MemTotal:" in the middle of a line. 3217 Fixes bug 40315; bugfix on 0.2.5.4-alpha. 3218 3219 o Minor bugfixes (metrics port): 3220 - Fix a BUG() warning on the MetricsPort for an internal missing 3221 handler. Fixes bug 40295; bugfix on 0.4.5.1-alpha. 3222 3223 o Minor bugfixes (onion service): 3224 - Remove a harmless BUG() warning when reloading tor configured with 3225 onion services. Fixes bug 40334; bugfix on 0.4.5.1-alpha. 3226 3227 o Minor bugfixes (portability): 3228 - Fix a non-portable usage of "==" with "test" in the configure 3229 script. Fixes bug 40298; bugfix on 0.4.5.1-alpha. 3230 3231 o Minor bugfixes (relay): 3232 - Remove a spammy log notice falsely claiming that the IPv4/v6 3233 address was missing. Fixes bug 40300; bugfix on 0.4.5.1-alpha. 3234 - Do not query the address cache early in the boot process when 3235 deciding if a relay needs to fetch early directory information 3236 from an authority. This bug resulted in a relay falsely believing 3237 it didn't have an address and thus triggering an authority fetch 3238 at each boot. Related to our fix for 40300. 3239 3240 o Removed features (mallinfo deprecated): 3241 - Remove mallinfo() usage entirely. Libc 2.33+ now deprecates it. 3242 Closes ticket 40309. 3243 3244 3245 Changes in version 0.4.5.6 - 2021-02-15 3246 The Tor 0.4.5.x release series is dedicated to the memory of Karsten 3247 Loesing (1979-2020), Tor developer, cypherpunk, husband, and father. 3248 Karsten is best known for creating the Tor metrics portal and leading 3249 the metrics team, but he was involved in Tor from the early days. For 3250 example, while he was still a student he invented and implemented the 3251 v2 onion service directory design, and he also served as an ambassador 3252 to the many German researchers working in the anonymity field. We 3253 loved him and respected him for his patience, his consistency, and his 3254 welcoming approach to growing our community. 3255 3256 This release series introduces significant improvements in relay IPv6 3257 address discovery, a new "MetricsPort" mechanism for relay operators 3258 to measure performance, LTTng support, build system improvements to 3259 help when using Tor as a static library, and significant bugfixes 3260 related to Windows relay performance. It also includes numerous 3261 smaller features and bugfixes. 3262 3263 Below are the changes since 0.4.4.7. For a list of changes since 3264 0.4.5.5-rc, see the ChangeLog file. 3265 3266 o Major features (build): 3267 - When building Tor, first link all object files into a single 3268 static library. This may help with embedding Tor in other 3269 programs. Note that most Tor functions do not constitute a part of 3270 a stable or supported API: only those functions in tor_api.h 3271 should be used if embedding Tor. Closes ticket 40127. 3272 3273 o Major features (metrics): 3274 - Introduce a new MetricsPort which exposes, through an HTTP 3275 interface, a series of metrics that tor collects at runtime. At 3276 the moment, the only supported output format is Prometheus data 3277 model. Closes ticket 40063. See the manual page for more 3278 information and security considerations. 3279 3280 o Major features (relay, IPv6): 3281 - The torrc option Address now supports IPv6. This unifies our 3282 address discovery interface to support IPv4, IPv6, and hostnames. 3283 Closes ticket 33233. 3284 - Launch IPv4 and IPv6 ORPort self-test circuits on relays and 3285 bridges. Closes ticket 33222. 3286 - Relays now automatically bind on IPv6 for their ORPort, unless 3287 specified otherwise with the IPv4Only flag. Closes ticket 33246. 3288 - When a relay with IPv6 support is told to open a connection to 3289 another relay, and the extend cell lists both IPv4 and IPv6 3290 addresses, the first relay now picks randomly which address to 3291 use. Closes ticket 33220. 3292 - Relays now track their IPv6 ORPort reachability separately from 3293 the reachability of their IPv4 ORPort. They will not publish a 3294 descriptor unless _both_ ports appear to be externally reachable. 3295 Closes ticket 34067. 3296 3297 o Major features (tracing): 3298 - Add event-tracing library support for USDT and LTTng-UST, and a 3299 few tracepoints in the circuit subsystem. More will come 3300 incrementally. This feature is compiled out by default: it needs 3301 to be enabled at configure time. See documentation in 3302 doc/HACKING/Tracing.md. Closes ticket 32910. 3303 3304 o Major bugfixes (directory cache, performance, windows): 3305 - Limit the number of items in the consensus diff cache to 64 on 3306 Windows. We hope this will mitigate an issue where Windows relay 3307 operators reported Tor using 100% CPU, while we investigate better 3308 solutions. Fixes bug 24857; bugfix on 0.3.1.1-alpha. 3309 3310 o Major bugfixes (relay, windows): 3311 - Fix a bug in our implementation of condition variables on Windows. 3312 Previously, a relay on Windows would use 100% CPU after running 3313 for some time. Because of this change, Tor now require Windows 3314 Vista or later to build and run. Fixes bug 30187; bugfix on 3315 0.2.6.3-alpha. (This bug became more serious in 0.3.1.1-alpha with 3316 the introduction of consensus diffs.) Patch by Daniel Pinto. 3317 3318 o Major bugfixes (TLS, buffer): 3319 - When attempting to read N bytes on a TLS connection, really try to 3320 read all N bytes. Previously, Tor would stop reading after the 3321 first TLS record, which can be smaller than the N bytes requested, 3322 and not check for more data until the next mainloop event. Fixes 3323 bug 40006; bugfix on 0.1.0.5-rc. 3324 3325 o Minor features (address discovery): 3326 - If no Address statements are found, relays now prioritize guessing 3327 their address by looking at the local interface instead of the 3328 local hostname. If the interface address can't be found, the local 3329 hostname is used. Closes ticket 33238. 3330 3331 o Minor features (admin tools): 3332 - Add a new --format argument to -key-expiration option to allow 3333 specifying the time format of the expiration date. Adds Unix 3334 timestamp format support. Patch by Daniel Pinto. Closes 3335 ticket 30045. 3336 3337 o Minor features (authority, logging): 3338 - Log more information for directory authority operators during the 3339 consensus voting process, and while processing relay descriptors. 3340 Closes ticket 40245. 3341 3342 o Minor features (bootstrap reporting): 3343 - When reporting bootstrapping status on a relay, do not consider 3344 connections that have never been the target of an origin circuit. 3345 Previously, all connection failures were treated as potential 3346 bootstrapping failures, including connections that had been opened 3347 because of client requests. Closes ticket 25061. 3348 3349 o Minor features (build): 3350 - When running the configure script, try to detect version 3351 mismatches between the OpenSSL headers and libraries, and suggest 3352 that the user should try "--with-openssl-dir". Closes 40138. 3353 - If the configure script has given any warnings, remind the user 3354 about them at the end of the script. Related to 40138. 3355 3356 o Minor features (configuration): 3357 - Allow using wildcards (* and ?) with the %include option on 3358 configuration files. Closes ticket 25140. Patch by Daniel Pinto. 3359 - Allow the configuration options EntryNodes, ExcludeNodes, 3360 ExcludeExitNodes, ExitNodes, MiddleNodes, HSLayer2Nodes and 3361 HSLayer3Nodes to be specified multiple times. Closes ticket 28361. 3362 Patch by Daniel Pinto. 3363 3364 o Minor features (control port): 3365 - Add a DROPTIMEOUTS command to drop circuit build timeout history 3366 and reset the current timeout. Closes ticket 40002. 3367 - When a stream enters the AP_CONN_STATE_CONTROLLER_WAIT status, 3368 send a control port event. Closes ticket 32190. Patch by 3369 Neel Chauhan. 3370 - Introduce GETINFO "stats/ntor/{assigned/requested}" and 3371 "stats/tap/{assigned/requested}" to get the NTor and TAP circuit 3372 onion handshake counts respectively. Closes ticket 28279. Patch by 3373 Neel Chauhan. 3374 3375 o Minor features (control port, IPv6): 3376 - Tor relays now try to report to the controller when they are 3377 launching an IPv6 self-test. Closes ticket 34068. 3378 - Introduce "GETINFO address/v4" and "GETINFO address/v6" in the 3379 control port to fetch the Tor host's respective IPv4 or IPv6 3380 address. We keep "GETINFO address" for backwards-compatibility. 3381 Closes ticket 40039. Patch by Neel Chauhan. 3382 3383 o Minor features (directory authorities): 3384 - Add a new consensus method 30 that removes the unnecessary "=" 3385 padding from ntor-onion-key. Closes ticket 7869. Patch by 3386 Daniel Pinto. 3387 - Directory authorities now reject descriptors from relays running 3388 Tor versions from the obsolete 0.4.1 series. Resolves ticket 3389 34357. Patch by Neel Chauhan. 3390 - The AssumeReachable option no longer stops directory authorities 3391 from checking whether other relays are running. A new 3392 AuthDirTestReachability option can be used to disable these 3393 checks. Closes ticket 34445. 3394 - When looking for possible Sybil attacks, also consider IPv6 3395 addresses. Two routers are considered to have "the same" address 3396 by this metric if they are in the same /64 network. Patch from 3397 Maurice Pibouin. Closes ticket 7193. 3398 3399 o Minor features (directory authorities, IPv6): 3400 - Make authorities add their IPv6 ORPort (if any) to the trusted 3401 servers list. Authorities previously added only their IPv4 3402 addresses. Closes ticket 32822. 3403 3404 o Minor features (documentation): 3405 - Mention the "!badexit" directive that can appear in an authority's 3406 approved-routers file, and update the description of the 3407 "!invalid" directive. Closes ticket 40188. 3408 3409 o Minor features (ed25519, relay): 3410 - Save a relay's base64-encoded ed25519 identity key to the data 3411 directory in a file named fingerprint-ed25519. Closes ticket 3412 30642. Patch by Neel Chauhan. 3413 3414 o Minor features (heartbeat): 3415 - Include the total number of inbound and outbound IPv4 and IPv6 3416 connections in the heartbeat message. Closes ticket 29113. 3417 3418 o Minor features (IPv6, ExcludeNodes): 3419 - Handle IPv6 addresses in ExcludeNodes; previously they were 3420 ignored. Closes ticket 34065. Patch by Neel Chauhan. 3421 3422 o Minor features (logging): 3423 - Add the running glibc version to the log, and the compiled glibc 3424 version to the library list returned when using --library-versions. 3425 Patch from Daniel Pinto. Closes ticket 40047. 3426 - Consider an HTTP 301 response to be an error (like a 404) when 3427 processing a directory response. Closes ticket 40053. 3428 - Log directory fetch statistics as a single line. Closes 3429 ticket 40159. 3430 - Provide more complete descriptions of our connections when logging 3431 about them. Closes ticket 40041. 3432 - When describing a relay in the logs, we now include its ed25519 3433 identity. Closes ticket 22668. 3434 3435 o Minor features (onion services): 3436 - Only overwrite an onion service's existing hostname file if its 3437 contents are wrong. This enables read-only onion-service 3438 directories. Resolves ticket 40062. Patch by Neel Chauhan. 3439 3440 o Minor features (pluggable transports): 3441 - Add an OutboundBindAddressPT option to allow users to specify 3442 which IPv4 and IPv6 address pluggable transports should use for 3443 outgoing IP packets. Tor does not have a way to enforce that the 3444 pluggable transport honors this option, so each pluggable transport 3445 needs to implement support on its own. Closes ticket 5304. 3446 3447 o Minor features (protocol, proxy support, defense in depth): 3448 - Respond more deliberately to misbehaving proxies that leave 3449 leftover data on their connections, so as to make Tor even less 3450 likely to allow the proxies to pass their data off as having come 3451 from a relay. Closes ticket 40017. 3452 3453 o Minor features (relay address tracking): 3454 - We now store relay addresses for OR connections in a more logical 3455 way. Previously we would sometimes overwrite the actual address of 3456 a connection with a "canonical address", and then store the "real 3457 address" elsewhere to remember it. We now track the "canonical 3458 address" elsewhere for the cases where we need it, and leave the 3459 connection's address alone. Closes ticket 33898. 3460 3461 o Minor features (relay): 3462 - If a relay is unable to discover its address, attempt to learn it 3463 from the NETINFO cell. Closes ticket 40022. 3464 - Log immediately when launching a relay self-check. Previously we 3465 would try to log before launching checks, or approximately when we 3466 intended to launch checks, but this tended to be error-prone. 3467 Closes ticket 34137. 3468 3469 o Minor features (relay, address discovery): 3470 - If Address option is not found in torrc, attempt to learn our 3471 address with the configured ORPort address if any. Closes 3472 ticket 33236. 3473 3474 o Minor features (relay, IPv6): 3475 - Add an AssumeReachableIPv6 option to disable self-checking IPv6 3476 reachability. Closes part of ticket 33224. 3477 - Add new "assume-reachable" and "assume-reachable-ipv6" consensus 3478 parameters to be used in an emergency to tell relays that they 3479 should publish even if they cannot complete their ORPort self- 3480 checks. Closes ticket 34064 and part of 33224. 3481 - Allow relays to send IPv6-only extend cells. Closes ticket 33222. 3482 - Declare support for the Relay=3 subprotocol version. Closes 3483 ticket 33226. 3484 - When launching IPv6 ORPort self-test circuits, make sure that the 3485 second-last hop can initiate an IPv6 extend. Closes ticket 33222. 3486 3487 o Minor features (safety): 3488 - Log a warning at startup if Tor is built with compile-time options 3489 that are likely to make it less stable or reliable. Closes 3490 ticket 18888. 3491 3492 o Minor features (specification update): 3493 - Several fields in microdescriptors, router descriptors, and 3494 consensus documents that were formerly optional are now required. 3495 Implements proposal 315; closes ticket 40132. 3496 3497 o Minor features (state management): 3498 - When loading the state file, remove entries from the statefile 3499 that have been obsolete for a long time. Ordinarily Tor preserves 3500 unrecognized entries in order to keep forward-compatibility, but 3501 these entries have not actually been used in any release since 3502 before 0.3.5.x. Closes ticket 40137. 3503 3504 o Minor features (statistics, ipv6): 3505 - Relays now publish IPv6-specific counts of single-direction versus 3506 bidirectional relay connections. Closes ticket 33264. 3507 - Relays now publish their IPv6 read and write statistics over time, 3508 if statistics are enabled. Closes ticket 33263. 3509 3510 o Minor features (subprotocol versions): 3511 - Use the new limitations on subprotocol versions due to proposal 3512 318 to simplify our implementation. Part of ticket 40133. 3513 3514 o Minor features (testing configuration): 3515 - The TestingTorNetwork option no longer implicitly sets 3516 AssumeReachable to 1. This change allows us to test relays' self- 3517 testing mechanisms, and to test authorities' relay-testing 3518 functionality. Closes ticket 34446. 3519 3520 o Minor features (testing): 3521 - Added unit tests for channel_matches_target_addr_for_extend(). 3522 Closes Ticket 33919. Patch by MrSquanchee. 3523 3524 o Minor bugfixes (circuit padding): 3525 - When circpad_send_padding_cell_for_callback is called, 3526 `is_padding_timer_scheduled` flag was not reset. Now it is set to 3527 0 at the top of that function. Fixes bug 32671; bugfix 3528 on 0.4.0.1-alpha. 3529 - Add a per-circuit padding machine instance counter, so we can 3530 differentiate between shutdown requests for old machines on a 3531 circuit. Fixes bug 30992; bugfix on 0.4.1.1-alpha. 3532 - Add the ability to keep circuit padding machines if they match a 3533 set of circuit states or purposes. This allows us to have machines 3534 that start up under some conditions but don't shut down under 3535 others. We now use this mask to avoid starting up introduction 3536 circuit padding again after the machines have already completed. 3537 Fixes bug 32040; bugfix on 0.4.1.1-alpha. 3538 3539 o Minor bugfixes (circuit, handshake): 3540 - In the v3 handshaking code, use connection_or_change_state() to 3541 change the state. Previously, we changed the state directly, but 3542 this did not pass the state change to the pubsub or channel 3543 objects, potentially leading to bugs. Fixes bug 32880; bugfix on 3544 0.2.3.6-alpha. Patch by Neel Chauhan. 3545 3546 o Minor bugfixes (compilation): 3547 - Change the linker flag ordering in our library search code so that 3548 it works for compilers that need the libraries to be listed in the 3549 right order. Fixes bug 33624; bugfix on 0.1.1.0-alpha. 3550 - Fix the "--enable-static-tor" switch to properly set the "-static" 3551 compile option onto the tor binary only. Fixes bug 40111; bugfix 3552 on 0.2.3.1-alpha. 3553 3554 o Minor bugfixes (configuration): 3555 - Exit Tor on a misconfiguration when the Bridge line is configured 3556 to use a transport but no corresponding ClientTransportPlugin can 3557 be found. Prior to this fix, Tor would attempt to connect to the 3558 bridge directly without using the transport, making it easier for 3559 adversaries to notice the bridge. Fixes bug 25528; bugfix 3560 on 0.2.6.1-alpha. 3561 3562 o Minor bugfixes (control port): 3563 - Make sure we send the SOCKS request address in relay begin cells 3564 when a stream is attached with the purpose 3565 CIRCUIT_PURPOSE_CONTROLLER. Fixes bug 33124; bugfix on 0.0.5. 3566 Patch by Neel Chauhan. 3567 3568 o Minor bugfixes (crash, relay, signing key): 3569 - Avoid assertion failures when we run Tor from the command line 3570 with `--key-expiration sign`, but an ORPort is not set. Fixes bug 3571 40015; bugfix on 0.3.2.1-alpha. Patch by Neel Chauhan. 3572 3573 o Minor bugfixes (logging): 3574 - Avoid a spurious log message about missing subprotocol versions, 3575 when the consensus that we're reading from is older than the 3576 current release. Previously we had made this message nonfatal, but 3577 in practice, it is never relevant when the consensus is older than 3578 the current release. Fixes bug 40281; bugfix on 0.4.0.1-alpha. 3579 - Remove trailing whitespace from control event log messages. Fixes 3580 bug 32178; bugfix on 0.1.1.1-alpha. Based on a patch by 3581 Amadeusz Pawlik. 3582 - Turn warning-level log message about SENDME failure into a debug- 3583 level message. (This event can happen naturally, and is no reason 3584 for concern). Fixes bug 40142; bugfix on 0.4.1.1-alpha. 3585 - When logging a rate-limited message about how many messages have 3586 been suppressed in the last N seconds, give an accurate value for 3587 N, rounded up to the nearest minute. Previously we would report 3588 the size of the rate-limiting interval, regardless of when the 3589 messages started to occur. Fixes bug 19431; bugfix 3590 on 0.2.2.16-alpha. 3591 3592 o Minor bugfixes (onion services): 3593 - Avoid a non-fatal assertion in certain edge-cases when 3594 establishing a circuit to an onion service. Fixes bug 32666; 3595 bugfix on 0.3.0.3-alpha. 3596 3597 o Minor bugfixes (rust, protocol versions): 3598 - Declare support for the onion service introduction point denial of 3599 service extensions when building with Rust. Fixes bug 34248; 3600 bugfix on 0.4.2.1-alpha. 3601 - Make Rust protocol version support checks consistent with the 3602 undocumented error behavior of the corresponding C code. Fixes bug 3603 34251; bugfix on 0.3.3.5-rc. 3604 3605 o Minor bugfixes (self-testing): 3606 - When receiving an incoming circuit, only accept it as evidence 3607 that we are reachable if the declared address of its channel is 3608 the same address we think that we have. Otherwise, it could be 3609 evidence that we're reachable on some other address. Fixes bug 3610 20165; bugfix on 0.1.0.1-rc. 3611 3612 o Minor bugfixes (spec conformance): 3613 - Use the correct key type when generating signing->link 3614 certificates. Fixes bug 40124; bugfix on 0.2.7.2-alpha. 3615 3616 o Minor bugfixes (subprotocol versions): 3617 - Consistently reject extra commas, instead of only rejecting 3618 leading commas. Fixes bug 27194; bugfix on 0.2.9.4-alpha. 3619 - In summarize_protover_flags(), treat empty strings the same as 3620 NULL. This prevents protocols_known from being set. Previously, we 3621 treated empty strings as normal strings, which led to 3622 protocols_known being set. Fixes bug 34232; bugfix on 3623 0.3.3.2-alpha. Patch by Neel Chauhan. 3624 3625 o Code simplification and refactoring: 3626 - Add and use a set of functions to perform down-casts on constant 3627 connection and channel pointers. Closes ticket 40046. 3628 - Refactor our code that logs descriptions of connections, channels, 3629 and the peers on them, to use a single call path. This change 3630 enables us to refactor the data types that they use, and eliminates 3631 many confusing usages of those types. Closes ticket 40041. 3632 - Refactor some common node selection code into a single function. 3633 Closes ticket 34200. 3634 - Remove the now-redundant 'outbuf_flushlen' field from our 3635 connection type. It was previously used for an older version of 3636 our rate-limiting logic. Closes ticket 33097. 3637 - Rename "fascist_firewall_*" identifiers to "reachable_addr_*" 3638 instead, for consistency with other code. Closes ticket 18106. 3639 - Rename functions about "advertised" ports which are not in fact 3640 guaranteed to return the ports that have been advertised. Closes 3641 ticket 40055. 3642 - Split implementation of several command line options from 3643 options_init_from_torrc into smaller isolated functions. Patch by 3644 Daniel Pinto. Closes ticket 40102. 3645 - When an extend cell is missing an IPv4 or IPv6 address, fill in 3646 the address from the extend info. This is similar to what was done 3647 in ticket 33633 for ed25519 keys. Closes ticket 33816. Patch by 3648 Neel Chauhan. 3649 3650 o Deprecated features: 3651 - The "non-builtin" argument to the "--dump-config" command is now 3652 deprecated. When it works, it behaves the same as "short", which 3653 you should use instead. Closes ticket 33398. 3654 3655 o Documentation: 3656 - Replace URLs from our old bugtracker so that they refer to the new 3657 bugtracker and wiki. Closes ticket 40101. 3658 3659 o Removed features: 3660 - We no longer ship or build a "tor.service" file for use with 3661 systemd. No distribution included this script unmodified, and we 3662 don't have the expertise ourselves to maintain this in a way that 3663 all the various systemd-based distributions can use. Closes 3664 ticket 30797. 3665 - We no longer ship support for the Android logging API. Modern 3666 versions of Android can use the syslog API instead. Closes 3667 ticket 32181. 3668 - The "optimistic data" feature is now always on; there is no longer 3669 an option to disable it from the torrc file or from the consensus 3670 directory. Closes part of 40139. 3671 - The "usecreatefast" network parameter is now removed; there is no 3672 longer an option for authorities to turn it off. Closes part 3673 of 40139. 3674 3675 o Testing: 3676 - Add unit tests for bandwidth statistics manipulation functions. 3677 Closes ticket 33812. Patch by MrSquanchee. 3678 3679 o Code simplification and refactoring (autoconf): 3680 - Remove autoconf checks for unused funcs and headers. Closes ticket 3681 31699; Patch by @bduszel 3682 3683 o Code simplification and refactoring (maintainer scripts): 3684 - Disable by default the pre-commit hook. Use the environment 3685 variable TOR_EXTRA_PRE_COMMIT_CHECKS in order to run it. 3686 Furthermore, stop running practracker in the pre-commit hook and 3687 make check-local. Closes ticket 40019. 3688 3689 o Code simplification and refactoring (relay address): 3690 - Most of IPv4 representation was using "uint32_t". It has now been 3691 moved to use the internal "tor_addr_t" interface instead. This is 3692 so we can properly integrate IPv6 along IPv4 with common 3693 interfaces. Closes ticket 40043. 3694 3695 o Documentation (manual page): 3696 - Move them from doc/ to doc/man/. Closes ticket 40044. 3697 - Describe the status of the "Sandbox" option more accurately. It is 3698 no longer "experimental", but it _is_ dependent on kernel and libc 3699 versions. Closes ticket 23378. 3700 3701 o Documentation (tracing): 3702 - Document in depth the circuit subsystem trace events in the new 3703 doc/tracing/EventsCircuit.md. Closes ticket 40036. 3704 3705 o Removed features (controller): 3706 - Remove the "GETINFO network-status" controller command. It has 3707 been deprecated since 0.3.1.1-alpha. Closes ticket 22473. 3708 3709 3710 Changes in version 0.4.4.7 - 2021-02-03 3711 Tor 0.4.4.7 backports numerous bugfixes from later releases, 3712 including one that made v3 onion services more susceptible to 3713 denial-of-service attacks, and a feature that makes some kinds of 3714 DoS attacks harder to perform. 3715 3716 o Major bugfixes (onion service v3, backport from 0.4.5.3-rc): 3717 - Stop requiring a live consensus for v3 clients and services, and 3718 allow a "reasonably live" consensus instead. This allows v3 onion 3719 services to work even if the authorities fail to generate a 3720 consensus for more than 2 hours in a row. Fixes bug 40237; bugfix 3721 on 0.3.5.1-alpha. 3722 3723 o Major feature (exit, backport from 0.4.5.5-rc): 3724 - Re-entry into the network is now denied at the Exit level to all 3725 relays' ORPorts and authorities' ORPorts and DirPorts. This change 3726 should help mitgate a set of denial-of-service attacks. Closes 3727 ticket 2667. 3728 3729 o Minor feature (build system, backport from 0.4.5.4-rc): 3730 - New "make lsp" command to generate the compile_commands.json file 3731 used by the ccls language server. The "bear" program is needed for 3732 this. Closes ticket 40227. 3733 3734 o Minor features (compilation, backport from 0.4.5.2-rc): 3735 - Disable deprecation warnings when building with OpenSSL 3.0.0 or 3736 later. There are a number of APIs newly deprecated in OpenSSL 3737 3.0.0 that Tor still requires. (A later version of Tor will try to 3738 stop depending on these APIs.) Closes ticket 40165. 3739 3740 o Minor features (crypto, backport from 0.4.5.3-rc): 3741 - Fix undefined behavior on our Keccak library. The bug only 3742 appeared on platforms with 32-byte CPU cache lines (e.g. armv5tel) 3743 and would result in wrong digests. Fixes bug 40210; bugfix on 3744 0.2.8.1-alpha. Thanks to Bernhard Übelacker, Arnd Bergmann and 3745 weasel for diagnosing this. 3746 3747 o Minor bugfixes (compatibility, backport from 0.4.5.1-rc): 3748 - Strip '\r' characters when reading text files on Unix platforms. 3749 This should resolve an issue where a relay operator migrates a 3750 relay from Windows to Unix, but does not change the line ending of 3751 Tor's various state files to match the platform, and the CRLF line 3752 endings from Windows end up leaking into other files such as the 3753 extra-info document. Fixes bug 33781; bugfix on 0.0.9pre5. 3754 3755 o Minor bugfixes (compilation, backport from 0.4.5.3-rc): 3756 - Fix a compilation warning about unreachable fallthrough 3757 annotations when building with "--enable-all-bugs-are-fatal" on 3758 some compilers. Fixes bug 40241; bugfix on 0.3.5.4-alpha. 3759 3760 o Minor bugfixes (SOCKS5, backport from 0.4.5.3-rc): 3761 - Handle partial SOCKS5 messages correctly. Previously, our code 3762 would send an incorrect error message if it got a SOCKS5 request 3763 that wasn't complete. Fixes bug 40190; bugfix on 0.3.5.1-alpha. 3764 3765 o Minor bugfixes (testing, backport from 0.4.5.2-alpha): 3766 - Fix the `config/parse_tcp_proxy_line` test so that it works 3767 correctly on systems where the DNS provider hijacks invalid 3768 queries. Fixes part of bug 40179; bugfix on 0.4.3.1-alpha. 3769 - Fix our Python reference-implementation for the v3 onion service 3770 handshake so that it works correctly with the version of hashlib 3771 provided by Python 3.9. Fixes part of bug 40179; bugfix 3772 on 0.3.1.6-rc. 3773 - Fix the `tortls/openssl/log_one_error` test to work with OpenSSL 3774 3.0.0. Fixes bug 40170; bugfix on 0.2.8.1-alpha. 3775 3776 3777 Changes in version 0.4.3.8 - 2021-02-03 3778 Tor 0.4.3.8 backports numerous bugfixes from later releases, 3779 including one that made v3 onion services more susceptible to 3780 denial-of-service attacks, and a feature that makes some kinds of 3781 DoS attacks harder to perform. 3782 3783 Note that this is, in all likelihood, the last release of Tor 0.4.3.x, 3784 which will reach end-of-life on 15 Feb 2021. 3785 3786 o Major bugfixes (onion service v3, backport from 0.4.5.3-rc): 3787 - Stop requiring a live consensus for v3 clients and services, and 3788 allow a "reasonably live" consensus instead. This allows v3 onion 3789 services to work even if the authorities fail to generate a 3790 consensus for more than 2 hours in a row. Fixes bug 40237; bugfix 3791 on 0.3.5.1-alpha. 3792 3793 o Major bugfixes (stats, onion services, backport from 0.4.4.5): 3794 - Fix a bug where we were undercounting the Tor network's total 3795 onion service traffic, by ignoring any traffic originating from 3796 clients. Now we count traffic from both clients and services. 3797 Fixes bug 40117; bugfix on 0.2.6.2-alpha. 3798 3799 o Major feature (exit, backport from 0.4.5.5-rc): 3800 - Re-entry into the network is now denied at the Exit level to all 3801 relays' ORPorts and authorities' ORPorts and DirPorts. This change 3802 should help mitgate a set of denial-of-service attacks. Closes 3803 ticket 2667. 3804 3805 o Minor feature (build system, backport from 0.4.5.4-rc): 3806 - New "make lsp" command to generate the compile_commands.json file 3807 used by the ccls language server. The "bear" program is needed for 3808 this. Closes ticket 40227. 3809 3810 o Minor features (compilation, backport from 0.4.5.2-rc): 3811 - Disable deprecation warnings when building with OpenSSL 3.0.0 or 3812 later. There are a number of APIs newly deprecated in OpenSSL 3813 3.0.0 that Tor still requires. (A later version of Tor will try to 3814 stop depending on these APIs.) Closes ticket 40165. 3815 3816 o Minor features (crypto, backport from 0.4.5.3-rc): 3817 - Fix undefined behavior on our Keccak library. The bug only 3818 appeared on platforms with 32-byte CPU cache lines (e.g. armv5tel) 3819 and would result in wrong digests. Fixes bug 40210; bugfix on 3820 0.2.8.1-alpha. Thanks to Bernhard Übelacker, Arnd Bergmann and 3821 weasel for diagnosing this. 3822 3823 o Minor bugfixes (compatibility, backport from 0.4.5.1-rc): 3824 - Strip '\r' characters when reading text files on Unix platforms. 3825 This should resolve an issue where a relay operator migrates a 3826 relay from Windows to Unix, but does not change the line ending of 3827 Tor's various state files to match the platform, and the CRLF line 3828 endings from Windows end up leaking into other files such as the 3829 extra-info document. Fixes bug 33781; bugfix on 0.0.9pre5. 3830 3831 o Minor bugfixes (compilation, backport from 0.4.5.1-rc): 3832 - Resolve a compilation warning that could occur in 3833 test_connection.c. Fixes bug 40113; bugfix on 0.2.9.3-alpha. 3834 3835 o Minor bugfixes (compilation, backport from 0.4.5.3-rc): 3836 - Fix a compilation warning about unreachable fallthrough 3837 annotations when building with "--enable-all-bugs-are-fatal" on 3838 some compilers. Fixes bug 40241; bugfix on 0.3.5.4-alpha. 3839 3840 o Minor bugfixes (SOCKS5, backport from 0.4.5.3-rc): 3841 - Handle partial SOCKS5 messages correctly. Previously, our code 3842 would send an incorrect error message if it got a SOCKS5 request 3843 that wasn't complete. Fixes bug 40190; bugfix on 0.3.5.1-alpha. 3844 3845 o Minor bugfixes (testing, backport from 0.4.5.2-alpha): 3846 - Fix the `config/parse_tcp_proxy_line` test so that it works 3847 correctly on systems where the DNS provider hijacks invalid 3848 queries. Fixes part of bug 40179; bugfix on 0.4.3.1-alpha. 3849 - Fix our Python reference-implementation for the v3 onion service 3850 handshake so that it works correctly with the version of hashlib 3851 provided by Python 3.9. Fixes part of bug 40179; bugfix 3852 on 0.3.1.6-rc. 3853 - Fix the `tortls/openssl/log_one_error` test to work with OpenSSL 3854 3.0.0. Fixes bug 40170; bugfix on 0.2.8.1-alpha. 3855 3856 3857 Changes in version 0.3.5.13 - 2020-02-03 3858 Tor 0.3.5.13 backports numerous bugfixes from later releases, 3859 including one that made v3 onion services more susceptible to 3860 denial-of-service attacks, and a feature that makes some kinds of 3861 DoS attacks harder to perform. 3862 3863 o Major bugfixes (onion service v3, backport from 0.4.5.3-rc): 3864 - Stop requiring a live consensus for v3 clients and services, and 3865 allow a "reasonably live" consensus instead. This allows v3 onion 3866 services to work even if the authorities fail to generate a 3867 consensus for more than 2 hours in a row. Fixes bug 40237; bugfix 3868 on 0.3.5.1-alpha. 3869 3870 o Major bugfixes (stats, onion services, backport from 0.4.4.5): 3871 - Fix a bug where we were undercounting the Tor network's total 3872 onion service traffic, by ignoring any traffic originating from 3873 clients. Now we count traffic from both clients and services. 3874 Fixes bug 40117; bugfix on 0.2.6.2-alpha. 3875 3876 o Major feature (exit, backport from 0.4.5.5-rc): 3877 - Re-entry into the network is now denied at the Exit level to all 3878 relays' ORPorts and authorities' ORPorts and DirPorts. This change 3879 should help mitgate a set of denial-of-service attacks. Closes 3880 ticket 2667. 3881 3882 o Minor feature (build system, backport from 0.4.5.4-rc): 3883 - New "make lsp" command to generate the compile_commands.json file 3884 used by the ccls language server. The "bear" program is needed for 3885 this. Closes ticket 40227. 3886 3887 o Minor features (compilation, backport from 0.4.5.2-rc): 3888 - Disable deprecation warnings when building with OpenSSL 3.0.0 or 3889 later. There are a number of APIs newly deprecated in OpenSSL 3890 3.0.0 that Tor still requires. (A later version of Tor will try to 3891 stop depending on these APIs.) Closes ticket 40165. 3892 3893 o Minor features (crypto, backport from 0.4.5.3-rc): 3894 - Fix undefined behavior on our Keccak library. The bug only 3895 appeared on platforms with 32-byte CPU cache lines (e.g. armv5tel) 3896 and would result in wrong digests. Fixes bug 40210; bugfix on 3897 0.2.8.1-alpha. Thanks to Bernhard Übelacker, Arnd Bergmann and 3898 weasel for diagnosing this. 3899 3900 o Minor bugfixes (compatibility, backport from 0.4.5.1-rc): 3901 - Strip '\r' characters when reading text files on Unix platforms. 3902 This should resolve an issue where a relay operator migrates a 3903 relay from Windows to Unix, but does not change the line ending of 3904 Tor's various state files to match the platform, and the CRLF line 3905 endings from Windows end up leaking into other files such as the 3906 extra-info document. Fixes bug 33781; bugfix on 0.0.9pre5. 3907 3908 o Minor bugfixes (compilation, backport from 0.4.5.1-rc): 3909 - Resolve a compilation warning that could occur in 3910 test_connection.c. Fixes bug 40113; bugfix on 0.2.9.3-alpha. 3911 3912 o Minor bugfixes (compilation, backport from 0.4.5.3-rc): 3913 - Fix a compilation warning about unreachable fallthrough 3914 annotations when building with "--enable-all-bugs-are-fatal" on 3915 some compilers. Fixes bug 40241; bugfix on 0.3.5.4-alpha. 3916 3917 o Minor bugfixes (SOCKS5, backport from 0.4.5.3-rc): 3918 - Handle partial SOCKS5 messages correctly. Previously, our code 3919 would send an incorrect error message if it got a SOCKS5 request 3920 that wasn't complete. Fixes bug 40190; bugfix on 0.3.5.1-alpha. 3921 3922 o Minor bugfixes (testing, backport from 0.4.5.2-alpha): 3923 - Fix our Python reference-implementation for the v3 onion service 3924 handshake so that it works correctly with the version of hashlib 3925 provided by Python 3.9. Fixes part of bug 40179; bugfix 3926 on 0.3.1.6-rc. 3927 - Fix the `tortls/openssl/log_one_error` test to work with OpenSSL 3928 3.0.0. Fixes bug 40170; bugfix on 0.2.8.1-alpha. 3929 3930 3931 Changes in version 0.4.4.6 - 2020-11-12 3932 Tor 0.4.4.6 is the second stable release in the 0.4.4.x series. It 3933 backports fixes from later releases, including a fix for TROVE-2020- 3934 005, a security issue that could be used, under certain cases, by an 3935 adversary to observe traffic patterns on a limited number of circuits 3936 intended for a different relay. 3937 3938 o Major bugfixes (security, backport from 0.4.5.1-alpha): 3939 - When completing a channel, relays now check more thoroughly to 3940 make sure that it matches any pending circuits before attaching 3941 those circuits. Previously, address correctness and Ed25519 3942 identities were not checked in this case, but only when extending 3943 circuits on an existing channel. Fixes bug 40080; bugfix on 3944 0.2.7.2-alpha. Resolves TROVE-2020-005. 3945 3946 o Minor features (directory authorities, backport from 0.4.5.1-alpha): 3947 - Authorities now list a different set of protocols as required and 3948 recommended. These lists have been chosen so that only truly 3949 recommended and/or required protocols are included, and so that 3950 clients using 0.2.9 or later will continue to work (even though 3951 they are not supported), whereas only relays running 0.3.5 or 3952 later will meet the requirements. Closes ticket 40162. 3953 - Make it possible to specify multiple ConsensusParams torrc lines. 3954 Now directory authority operators can for example put the main 3955 ConsensusParams config in one torrc file and then add to it from a 3956 different torrc file. Closes ticket 40164. 3957 3958 o Minor features (subprotocol versions, backport from 0.4.5.1-alpha): 3959 - Tor no longer allows subprotocol versions larger than 63. 3960 Previously version numbers up to UINT32_MAX were allowed, which 3961 significantly complicated our code. Implements proposal 318; 3962 closes ticket 40133. 3963 3964 o Minor features (tests, v2 onion services, backport from 0.4.5.1-alpha): 3965 - Fix a rendezvous cache unit test that was triggering an underflow 3966 on the global rend cache allocation. Fixes bug 40125; bugfix 3967 on 0.2.8.1-alpha. 3968 - Fix another rendezvous cache unit test that was triggering an 3969 underflow on the global rend cache allocation. Fixes bug 40126; 3970 bugfix on 0.2.8.1-alpha. 3971 3972 o Minor bugfixes (compilation, backport from 0.4.5.1-alpha): 3973 - Fix compiler warnings that would occur when building with 3974 "--enable-all-bugs-are-fatal" and "--disable-module-relay" at the 3975 same time. Fixes bug 40129; bugfix on 0.4.4.1-alpha. 3976 - Resolve a compilation warning that could occur in 3977 test_connection.c. Fixes bug 40113; bugfix on 0.2.9.3-alpha. 3978 3979 o Minor bugfixes (logging, backport from 0.4.5.1-alpha): 3980 - Remove a debug logging statement that uselessly spammed the logs. 3981 Fixes bug 40135; bugfix on 0.3.5.0-alpha. 3982 3983 o Minor bugfixes (relay configuration, crash, backport from 0.4.5.1-alpha): 3984 - Avoid a fatal assert() when failing to create a listener 3985 connection for an address that was in use. Fixes bug 40073; bugfix 3986 on 0.3.5.1-alpha. 3987 3988 o Minor bugfixes (v2 onion services, backport from 0.4.5.1-alpha): 3989 - For HSFETCH commands on v2 onion services addresses, check the 3990 length of bytes decoded, not the base32 length. Fixes bug 34400; 3991 bugfix on 0.4.1.1-alpha. Patch by Neel Chauhan. 3992 3993 3994 Changes in version 0.4.3.7 - 2020-11-12 3995 Tor 0.4.3.7 backports several bugfixes from later releases. It 3996 includes a fix for TROVE-2020-005, a security issue that could be 3997 used, under certain cases, by an adversary to observe traffic patterns 3998 on a limited number of circuits intended for a different relay. 3999 4000 Please be aware that support for the 0.4.3.x series will end on 15 4001 February 2021. Please upgrade to 0.4.4.x or 0.4.5.x before then, or 4002 downgrade to 0.3.5.x, which will be supported until at least 1 4003 February 2022. 4004 4005 o Major features (fallback directory list, backport form 0.4.4.3-alpha): 4006 - Replace the 148 fallback directories originally included in Tor 4007 0.4.1.4-rc (of which around 105 are still functional) with a list 4008 of 144 fallbacks generated in July 2020. Closes ticket 40061. 4009 4010 o Major bugfixes (security, backport from 0.4.5.1-alpha): 4011 - When completing a channel, relays now check more thoroughly to 4012 make sure that it matches any pending circuits before attaching 4013 those circuits. Previously, address correctness and Ed25519 4014 identities were not checked in this case, but only when extending 4015 circuits on an existing channel. Fixes bug 40080; bugfix on 4016 0.2.7.2-alpha. Resolves TROVE-2020-005. 4017 4018 o Major bugfixes (NSS, backport from 0.4.4.3-alpha): 4019 - When running with NSS enabled, make sure that NSS knows to expect 4020 nonblocking sockets. Previously, we set our TCP sockets as 4021 nonblocking, but did not tell NSS, which in turn could lead to 4022 unexpected blocking behavior. Fixes bug 40035; bugfix 4023 on 0.3.5.1-alpha. 4024 4025 o Minor features (security, backport from 0.4.4.4-rc): 4026 - Channels using obsolete versions of the Tor link protocol are no 4027 longer allowed to circumvent address-canonicity checks. (This is 4028 only a minor issue, since such channels have no way to set ed25519 4029 keys, and therefore should always be rejected for circuits that 4030 specify ed25519 identities.) Closes ticket 40081. 4031 4032 o Minor features (subprotocol versions, backport from 0.4.5.1-alpha): 4033 - Tor no longer allows subprotocol versions larger than 63. 4034 Previously version numbers up to UINT32_MAX were allowed, which 4035 significantly complicated our code. Implements proposal 318; 4036 closes ticket 40133. 4037 4038 o Minor features (tests, backport from 0.4.4.5): 4039 - Our "make check" target now runs the unit tests in 8 parallel 4040 chunks. Doing this speeds up hardened CI builds by more than a 4041 factor of two. Closes ticket 40098. 4042 4043 o Minor features (tests, v2 onion services, backport from 0.4.5.1-alpha): 4044 - Fix a rendezvous cache unit test that was triggering an underflow 4045 on the global rend cache allocation. Fixes bug 40125; bugfix 4046 on 0.2.8.1-alpha. 4047 - Fix another rendezvous cache unit test that was triggering an 4048 underflow on the global rend cache allocation. Fixes bug 40126; 4049 bugfix on 0.2.8.1-alpha. 4050 4051 o Minor bugfixes (correctness, buffers, backport from 0.4.4.4-rc): 4052 - Fix a correctness bug that could cause an assertion failure if we 4053 ever tried using the buf_move_all() function with an empty input 4054 buffer. As far as we know, no released versions of Tor do this. 4055 Fixes bug 40076; bugfix on 0.3.3.1-alpha. 4056 4057 o Minor bugfixes (logging, backport from 0.4.5.1-alpha): 4058 - Remove a debug logging statement that uselessly spammed the logs. 4059 Fixes bug 40135; bugfix on 0.3.5.0-alpha. 4060 4061 o Minor bugfixes (rate limiting, bridges, pluggable transports, backport from 0.4.4.4-rc): 4062 - On a bridge, treat all connections from an ExtORPort as remote by 4063 default for the purposes of rate-limiting. Previously, bridges 4064 would treat the connection as local unless they explicitly 4065 received a "USERADDR" command. ExtORPort connections still count 4066 as local if there is a USERADDR command with an explicit local 4067 address. Fixes bug 33747; bugfix on 0.2.5.1-alpha. 4068 4069 o Minor bugfixes (relay configuration, crash, backport from 0.4.5.1-alpha): 4070 - Avoid a fatal assert() when failing to create a listener 4071 connection for an address that was in use. Fixes bug 40073; bugfix 4072 on 0.3.5.1-alpha. 4073 4074 o Minor bugfixes (relay, usability, backport from 0.4.4.3-alpha): 4075 - Adjust the rules for when to warn about having too many 4076 connections to other relays. Previously we'd tolerate up to 1.5 4077 connections per relay on average. Now we tolerate more connections 4078 for directory authorities, and raise the number of total 4079 connections we need to see before we warn. Fixes bug 33880; bugfix 4080 on 0.3.1.1-alpha. 4081 4082 o Minor bugfixes (tests, 0.4.4.5): 4083 - Fix the behavior of the rend_cache/clean_v2_descs_as_dir when run 4084 on its own. Previously, it would exit with an error. Fixes bug 4085 40099; bugfix on 0.2.8.1-alpha. 4086 4087 o Minor bugfixes (v2 onion services, backport from 0.4.5.1-alpha): 4088 - For HSFETCH commands on v2 onion services addresses, check the 4089 length of bytes decoded, not the base32 length. Fixes bug 34400; 4090 bugfix on 0.4.1.1-alpha. Patch by Neel Chauhan. 4091 4092 o Minor bugfixes (windows, backport from 0.4.4.4-rc): 4093 - Fix a bug that prevented Tor from starting if its log file grew 4094 above 2GB. Fixes bug 31036; bugfix on 0.2.1.8-alpha. 4095 4096 o Deprecated features (onion service v2, backport form 0.4.4.2-alpha): 4097 - Add a deprecation warning for version 2 onion services. Closes 4098 ticket 40003. 4099 4100 o Removed features (backport from 0.4.4.3-alpha): 4101 - Our "check-local" test target no longer tries to use the 4102 Coccinelle semantic patching tool parse all the C files. While it 4103 is a good idea to try to make sure Coccinelle works on our C 4104 before we run a Coccinelle patch, doing so on every test run has 4105 proven to be disruptive. You can still run this tool manually with 4106 "make check-cocci". Closes ticket 40030. ticket 40030. 4107 4108 4109 Changes in version 0.3.5.12 - 2020-11-12 4110 Tor 0.4.3.7 backports several bugfixes from later releases. It 4111 includes a fix for TROVE-2020-005, a security issue that could be 4112 used, under certain cases, by an adversary to observe traffic patterns 4113 on a limited number of circuits intended for a different relay. 4114 4115 o Major features (fallback directory list, backport form 0.4.4.3-alpha): 4116 - Replace the 148 fallback directories originally included in Tor 4117 0.4.1.4-rc (of which around 105 are still functional) with a list 4118 of 144 fallbacks generated in July 2020. Closes ticket 40061. 4119 4120 o Major bugfixes (security, backport from 0.4.5.1-alpha): 4121 - When completing a channel, relays now check more thoroughly to 4122 make sure that it matches any pending circuits before attaching 4123 those circuits. Previously, address correctness and Ed25519 4124 identities were not checked in this case, but only when extending 4125 circuits on an existing channel. Fixes bug 40080; bugfix on 4126 0.2.7.2-alpha. Resolves TROVE-2020-005. 4127 4128 o Major bugfixes (NSS, backport from 0.4.4.3-alpha): 4129 - When running with NSS enabled, make sure that NSS knows to expect 4130 nonblocking sockets. Previously, we set our TCP sockets as 4131 nonblocking, but did not tell NSS, which in turn could lead to 4132 unexpected blocking behavior. Fixes bug 40035; bugfix 4133 on 0.3.5.1-alpha. 4134 4135 o Minor features (security, backport from 0.4.4.4-rc): 4136 - Channels using obsolete versions of the Tor link protocol are no 4137 longer allowed to circumvent address-canonicity checks. (This is 4138 only a minor issue, since such channels have no way to set ed25519 4139 keys, and therefore should always be rejected for circuits that 4140 specify ed25519 identities.) Closes ticket 40081. 4141 4142 o Minor features (debugging, directory system): 4143 - Don't crash when we find a non-guard with a guard-fraction value 4144 set. Instead, log a bug warning, in an attempt to figure out how 4145 this happened. Diagnostic for ticket 32868. 4146 4147 o Minor features (subprotocol versions, backport from 0.4.5.1-alpha): 4148 - Tor no longer allows subprotocol versions larger than 63. 4149 Previously version numbers up to UINT32_MAX were allowed, which 4150 significantly complicated our code. Implements proposal 318; 4151 closes ticket 40133. 4152 4153 o Minor features (tests, backport from 0.4.4.5): 4154 - Our "make check" target now runs the unit tests in 8 parallel 4155 chunks. Doing this speeds up hardened CI builds by more than a 4156 factor of two. Closes ticket 40098. 4157 4158 o Minor features (tests, v2 onion services, backport from 0.4.5.1-alpha): 4159 - Fix a rendezvous cache unit test that was triggering an underflow 4160 on the global rend cache allocation. Fixes bug 40125; bugfix 4161 on 0.2.8.1-alpha. 4162 - Fix another rendezvous cache unit test that was triggering an 4163 underflow on the global rend cache allocation. Fixes bug 40126; 4164 bugfix on 0.2.8.1-alpha. 4165 4166 o Minor bugfixes (correctness, buffers, backport from 0.4.4.4-rc): 4167 - Fix a correctness bug that could cause an assertion failure if we 4168 ever tried using the buf_move_all() function with an empty input 4169 buffer. As far as we know, no released versions of Tor do this. 4170 Fixes bug 40076; bugfix on 0.3.3.1-alpha. 4171 4172 o Minor bugfixes (logging, backport from 0.4.5.1-alpha): 4173 - Remove a debug logging statement that uselessly spammed the logs. 4174 Fixes bug 40135; bugfix on 0.3.5.0-alpha. 4175 4176 o Minor bugfixes (rate limiting, bridges, pluggable transports, backport from 0.4.4.4-rc): 4177 - On a bridge, treat all connections from an ExtORPort as remote by 4178 default for the purposes of rate-limiting. Previously, bridges 4179 would treat the connection as local unless they explicitly 4180 received a "USERADDR" command. ExtORPort connections still count 4181 as local if there is a USERADDR command with an explicit local 4182 address. Fixes bug 33747; bugfix on 0.2.5.1-alpha. 4183 4184 o Minor bugfixes (relay configuration, crash, backport from 0.4.5.1-alpha): 4185 - Avoid a fatal assert() when failing to create a listener 4186 connection for an address that was in use. Fixes bug 40073; bugfix 4187 on 0.3.5.1-alpha. 4188 4189 o Minor bugfixes (relay, usability, backport from 0.4.4.3-alpha): 4190 - Adjust the rules for when to warn about having too many 4191 connections to other relays. Previously we'd tolerate up to 1.5 4192 connections per relay on average. Now we tolerate more connections 4193 for directory authorities, and raise the number of total 4194 connections we need to see before we warn. Fixes bug 33880; bugfix 4195 on 0.3.1.1-alpha. 4196 4197 o Minor bugfixes (relays, backport from 0.4.4.1-alpha): 4198 - Stop advertising incorrect IPv6 ORPorts in relay and bridge 4199 descriptors, when the IPv6 port was configured as "auto". Fixes 4200 bug 32588; bugfix on 0.2.3.9-alpha. 4201 4202 o Minor bugfixes (tests, 0.4.4.5): 4203 - Fix the behavior of the rend_cache/clean_v2_descs_as_dir when run 4204 on its own. Previously, it would exit with an error. Fixes bug 4205 40099; bugfix on 0.2.8.1-alpha. 4206 4207 o Minor bugfixes (windows, backport from 0.4.4.4-rc): 4208 - Fix a bug that prevented Tor from starting if its log file grew 4209 above 2GB. Fixes bug 31036; bugfix on 0.2.1.8-alpha. 4210 4211 o Deprecated features (onion service v2, backport form 0.4.4.2-alpha): 4212 - Add a deprecation warning for version 2 onion services. Closes 4213 ticket 40003. 4214 4215 Changes in version 0.4.4.5 - 2020-09-15 4216 Tor 0.4.4.5 is the first stable release in the 0.4.4.x series. This 4217 series improves our guard selection algorithms, adds v3 onion balance 4218 support, improves the amount of code that can be disabled when running 4219 without relay support, and includes numerous small bugfixes and 4220 enhancements. It also lays the ground for some IPv6 features that 4221 we'll be developing more in the next (0.4.5) series. 4222 4223 Per our support policy, we support each stable release series for nine 4224 months after its first stable release, or three months after the first 4225 stable release of the next series: whichever is longer. This means 4226 that 0.4.4.x will be supported until around June 2021--or later, if 4227 0.4.5.x is later than anticipated. 4228 4229 Note also that support for 0.4.2.x has just ended; support for 0.4.3 4230 will continue until Feb 15, 2021. We still plan to continue supporting 4231 0.3.5.x, our long-term stable series, until Feb 2022. 4232 4233 Below are the changes since 0.4.3.6-rc. For a complete list of changes 4234 since 0.4.4.4-rc, see the ChangeLog file. 4235 4236 o Major features (Proposal 310, performance + security): 4237 - Implements Proposal 310, "Bandaid on guard selection". Proposal 4238 310 solves load-balancing issues with older versions of the guard 4239 selection algorithm, and improves its security. Under this new 4240 algorithm, a newly selected guard never becomes Primary unless all 4241 previously sampled guards are unreachable. Implements 4242 recommendation from 32088. (Proposal 310 is linked to the CLAPS 4243 project researching optimal client location-aware path selections. 4244 This project is a collaboration between the UCLouvain Crypto Group, 4245 the U.S. Naval Research Laboratory, and Princeton University.) 4246 4247 o Major features (fallback directory list): 4248 - Replace the 148 fallback directories originally included in Tor 4249 0.4.1.4-rc (of which around 105 are still functional) with a list 4250 of 144 fallbacks generated in July 2020. Closes ticket 40061. 4251 4252 o Major features (IPv6, relay): 4253 - Consider IPv6-only EXTEND2 cells valid on relays. Log a protocol 4254 warning if the IPv4 or IPv6 address is an internal address, and 4255 internal addresses are not allowed. But continue to use the other 4256 address, if it is valid. Closes ticket 33817. 4257 - If a relay can extend over IPv4 and IPv6, and both addresses are 4258 provided, it chooses between them uniformly at random. Closes 4259 ticket 33817. 4260 - Re-use existing IPv6 connections for circuit extends. Closes 4261 ticket 33817. 4262 - Relays may extend circuits over IPv6, if the relay has an IPv6 4263 ORPort, and the client supplies the other relay's IPv6 ORPort in 4264 the EXTEND2 cell. IPv6 extends will be used by the relay IPv6 4265 ORPort self-tests in 33222. Closes ticket 33817. 4266 4267 o Major features (v3 onion services): 4268 - Allow v3 onion services to act as OnionBalance backend instances, 4269 by using the HiddenServiceOnionBalanceInstance torrc option. 4270 Closes ticket 32709. 4271 4272 o Major bugfixes (NSS): 4273 - When running with NSS enabled, make sure that NSS knows to expect 4274 nonblocking sockets. Previously, we set our TCP sockets as 4275 nonblocking, but did not tell NSS, which in turn could lead to 4276 unexpected blocking behavior. Fixes bug 40035; bugfix 4277 on 0.3.5.1-alpha. 4278 4279 o Major bugfixes (onion services, DoS): 4280 - Correct handling of parameters for the onion service DoS defense. 4281 Previously, the consensus parameters for the onion service DoS 4282 defenses were overwriting the parameters set by the service 4283 operator using HiddenServiceEnableIntroDoSDefense. Fixes bug 4284 40109; bugfix on 0.4.2.1-alpha. 4285 4286 o Major bugfixes (stats, onion services): 4287 - Fix a bug where we were undercounting the Tor network's total 4288 onion service traffic, by ignoring any traffic originating from 4289 clients. Now we count traffic from both clients and services. 4290 Fixes bug 40117; bugfix on 0.2.6.2-alpha. 4291 4292 o Minor features (security): 4293 - Channels using obsolete versions of the Tor link protocol are no 4294 longer allowed to circumvent address-canonicity checks. (This is 4295 only a minor issue, since such channels have no way to set ed25519 4296 keys, and therefore should always be rejected for circuits that 4297 specify ed25519 identities.) Closes ticket 40081. 4298 4299 o Minor features (bootstrap reporting): 4300 - Report more detailed reasons for bootstrap failure when the 4301 failure happens due to a TLS error. Previously we would just call 4302 these errors "MISC" when they happened during read, and "DONE" 4303 when they happened during any other TLS operation. Closes 4304 ticket 32622. 4305 4306 o Minor features (client-only compilation): 4307 - Disable more code related to the ext_orport protocol when 4308 compiling without support for relay mode. Closes ticket 33368. 4309 - Disable more of our self-testing code when support for relay mode 4310 is disabled. Closes ticket 33370. 4311 - Most server-side DNS code is now disabled when building without 4312 support for relay mode. Closes ticket 33366. 4313 4314 o Minor features (code safety): 4315 - Check for failures of tor_inet_ntop() and tor_inet_ntoa() 4316 functions in DNS and IP address processing code, and adjust 4317 codepaths to make them less likely to crash entire Tor instances. 4318 Resolves issue 33788. 4319 4320 o Minor features (continuous integration): 4321 - Run unit-test and integration test (Stem, Chutney) jobs with 4322 ALL_BUGS_ARE_FATAL macro being enabled on Travis and Appveyor. 4323 Resolves ticket 32143. 4324 4325 o Minor features (control port): 4326 - If a ClientName was specified in ONION_CLIENT_AUTH_ADD for an 4327 onion service, display it when we use ONION_CLIENT_AUTH_VIEW. 4328 Closes ticket 40089. Patch by Neel Chauhan. 4329 - Return a descriptive error message from the 'GETINFO status/fresh- 4330 relay-descs' command on the control port. Previously, we returned 4331 a generic error of "Error generating descriptor". Closes ticket 4332 32873. Patch by Neel Chauhan. 4333 4334 o Minor features (defense in depth): 4335 - Wipe more data from connection address fields before returning 4336 them to the memory heap. Closes ticket 6198. 4337 4338 o Minor features (denial-of-service memory limiter): 4339 - Allow the user to configure even lower values for the 4340 MaxMemInQueues parameter. Relays now enforce a minimum of 64 MB, 4341 when previously the minimum was 256 MB. On clients, there is no 4342 minimum. Relays and clients will both warn if the value is set so 4343 low that Tor is likely to stop working. Closes ticket 24308. 4344 4345 o Minor features (developer tooling): 4346 - Add a script to help check the alphabetical ordering of option 4347 names in the manual page. Closes ticket 33339. 4348 - Refrain from listing all .a files that are generated by the Tor 4349 build in .gitignore. Add a single wildcard *.a entry that covers 4350 all of them for present and future. Closes ticket 33642. 4351 - Add a script ("git-install-tools.sh") to install git hooks and 4352 helper scripts. Closes ticket 33451. 4353 4354 o Minor features (directory authority): 4355 - Authorities now recommend the protocol versions that are supported 4356 by Tor 0.3.5 and later. (Earlier versions of Tor have been 4357 deprecated since January of this year.) This recommendation will 4358 cause older clients and relays to give a warning on startup, or 4359 when they download a consensus directory. Closes ticket 32696. 4360 4361 o Minor features (directory authority, shared random): 4362 - Refactor more authority-only parts of the shared-random scheduling 4363 code to reside in the dirauth module, and to be disabled when 4364 compiling with --disable-module-dirauth. Closes ticket 33436. 4365 4366 o Minor features (directory): 4367 - Remember the number of bytes we have downloaded for each directory 4368 purpose while bootstrapping, and while fully bootstrapped. Log 4369 this information as part of the heartbeat message. Closes 4370 ticket 32720. 4371 4372 o Minor features (entry guards): 4373 - Reinstate support for GUARD NEW/UP/DOWN control port events. 4374 Closes ticket 40001. 4375 4376 o Minor features (IPv6 support): 4377 - Adds IPv6 support to tor_addr_is_valid(). Adds tests for the above 4378 changes and tor_addr_is_null(). Closes ticket 33679. Patch 4379 by MrSquanchee. 4380 - Allow clients and relays to send dual-stack and IPv6-only EXTEND2 4381 cells. Parse dual-stack and IPv6-only EXTEND2 cells on relays. 4382 Closes ticket 33901. 4383 4384 o Minor features (linux seccomp2 sandbox, portability): 4385 - Allow Tor to build on platforms where it doesn't know how to 4386 report which syscall caused the linux seccomp2 sandbox to fail. 4387 This change should make the sandbox code more portable to less 4388 common Linux architectures. Closes ticket 34382. 4389 - Permit the unlinkat() syscall, which some Libc implementations use 4390 to implement unlink(). Closes ticket 33346. 4391 4392 o Minor features (logging): 4393 - When trying to find our own address, add debug-level logging to 4394 report the sources of candidate addresses. Closes ticket 32888. 4395 4396 o Minor features (onion service client, SOCKS5): 4397 - Add 3 new SocksPort ExtendedErrors (F2, F3, F7) that reports back 4398 new type of onion service connection failures. The semantics of 4399 these error codes are documented in proposal 309. Closes 4400 ticket 32542. 4401 4402 o Minor features (onion service v3): 4403 - If a service cannot upload its descriptor(s), log why at INFO 4404 level. Closes ticket 33400; bugfix on 0.3.2.1-alpha. 4405 4406 o Minor features (python scripts): 4407 - Stop assuming that /usr/bin/python exists. Instead of using a 4408 hardcoded path in scripts that still use Python 2, use 4409 /usr/bin/env, similarly to the scripts that use Python 3. Fixes 4410 bug 33192; bugfix on 0.4.2. 4411 4412 o Minor features (testing, architecture): 4413 - Our test scripts now double-check that subsystem initialization 4414 order is consistent with the inter-module dependencies established 4415 by our .may_include files. Implements ticket 31634. 4416 - Initialize all subsystems at the beginning of our unit test 4417 harness, to avoid crashes due to uninitialized subsystems. Follow- 4418 up from ticket 33316. 4419 - Our "make check" target now runs the unit tests in 8 parallel 4420 chunks. Doing this speeds up hardened CI builds by more than a 4421 factor of two. Closes ticket 40098. 4422 4423 o Minor features (v3 onion services): 4424 - Add v3 onion service status to the dumpstats() call which is 4425 triggered by a SIGUSR1 signal. Previously, we only did v2 onion 4426 services. Closes ticket 24844. Patch by Neel Chauhan. 4427 4428 o Minor features (windows): 4429 - Add support for console control signals like Ctrl+C in Windows. 4430 Closes ticket 34211. Patch from Damon Harris (TheDcoder). 4431 4432 o Minor bugfixes (control port, onion service): 4433 - Consistently use 'address' in "Invalid v3 address" response to 4434 ONION_CLIENT_AUTH commands. Previously, we would sometimes say 4435 'addr'. Fixes bug 40005; bugfix on 0.4.3.1-alpha. 4436 4437 o Minor bugfixes (correctness, buffers): 4438 - Fix a correctness bug that could cause an assertion failure if we 4439 ever tried using the buf_move_all() function with an empty input 4440 buffer. As far as we know, no released versions of Tor do this. 4441 Fixes bug 40076; bugfix on 0.3.3.1-alpha. 4442 4443 o Minor bugfixes (directory authorities): 4444 - Directory authorities now reject votes that arrive too late. In 4445 particular, once an authority has started fetching missing votes, 4446 it no longer accepts new votes posted by other authorities. This 4447 change helps prevent a consensus split, where only some authorities 4448 have the late vote. Fixes bug 4631; bugfix on 0.2.0.5-alpha. 4449 4450 o Minor bugfixes (git scripts): 4451 - Stop executing the checked-out pre-commit hook from the pre-push 4452 hook. Instead, execute the copy in the user's git directory. Fixes 4453 bug 33284; bugfix on 0.4.1.1-alpha. 4454 4455 o Minor bugfixes (initialization): 4456 - Initialize the subsystems in our code in an order more closely 4457 corresponding to their dependencies, so that every system is 4458 initialized before the ones that (theoretically) depend on it. 4459 Fixes bug 33316; bugfix on 0.4.0.1-alpha. 4460 4461 o Minor bugfixes (IPv4, relay): 4462 - Check for invalid zero IPv4 addresses and ports when sending and 4463 receiving extend cells. Fixes bug 33900; bugfix on 0.2.4.8-alpha. 4464 4465 o Minor bugfixes (IPv6, relay): 4466 - Consider IPv6 addresses when checking if a connection is 4467 canonical. In 17604, relays assumed that a remote relay could 4468 consider an IPv6 connection canonical, but did not set the 4469 canonical flag on their side of the connection. Fixes bug 33899; 4470 bugfix on 0.3.1.1-alpha. 4471 - Log IPv6 addresses on connections where this relay is the 4472 responder. Previously, responding relays would replace the remote 4473 IPv6 address with the IPv4 address from the consensus. Fixes bug 4474 33899; bugfix on 0.3.1.1-alpha. 4475 4476 o Minor bugfixes (linux seccomp2 sandbox): 4477 - Fix a regression on sandboxing rules for the openat() syscall. The 4478 fix for bug 25440 fixed the problem on systems with glibc >= 2.27 4479 but broke with versions of glibc. We now choose a rule based on 4480 the glibc version. Patch from Daniel Pinto. Fixes bug 27315; 4481 bugfix on 0.3.5.11. 4482 - Makes the seccomp sandbox allow the correct syscall for opendir 4483 according to the running glibc version. This fixes crashes when 4484 reloading torrc with sandbox enabled when running on glibc 2.15 to 4485 2.21 and 2.26. Patch from Daniel Pinto. Fixes bug 40020; bugfix 4486 on 0.3.5.11. 4487 4488 o Minor bugfixes (logging, testing): 4489 - Make all of tor's assertion macros support the ALL_BUGS_ARE_FATAL 4490 and DISABLE_ASSERTS_IN_UNIT_TESTS debugging modes. (IF_BUG_ONCE() 4491 used to log a non-fatal warning, regardless of the debugging 4492 mode.) Fixes bug 33917; bugfix on 0.2.9.1-alpha. 4493 - Remove surprising empty line in the INFO-level log about circuit 4494 build timeout. Fixes bug 33531; bugfix on 0.3.3.1-alpha. 4495 4496 o Minor bugfixes (mainloop): 4497 - Better guard against growing a buffer past its maximum 2GB in 4498 size. Fixes bug 33131; bugfix on 0.3.0.4-rc. 4499 4500 o Minor bugfixes (onion service v3 client): 4501 - Remove a BUG() warning that could occur naturally. Fixes bug 4502 34087; bugfix on 0.3.2.1-alpha. 4503 4504 o Minor bugfixes (onion service, logging): 4505 - Fix a typo in a log message PublishHidServDescriptors is set to 0. 4506 Fixes bug 33779; bugfix on 0.3.2.1-alpha. 4507 4508 o Minor bugfixes (onion services v3): 4509 - Avoid a non-fatal assertion failure in certain edge-cases when 4510 opening an intro circuit as a client. Fixes bug 34084; bugfix 4511 on 0.3.2.1-alpha. 4512 4513 o Minor bugfixes (protocol versions): 4514 - Sort tor's supported protocol version lists, as recommended by the 4515 tor directory specification. Fixes bug 33285; bugfix 4516 on 0.4.0.1-alpha. 4517 4518 o Minor bugfixes (rate limiting, bridges, pluggable transports): 4519 - On a bridge, treat all connections from an ExtORPort as remote by 4520 default for the purposes of rate-limiting. Previously, bridges 4521 would treat the connection as local unless they explicitly 4522 received a "USERADDR" command. ExtORPort connections still count 4523 as local if there is a USERADDR command with an explicit local 4524 address. Fixes bug 33747; bugfix on 0.2.5.1-alpha. 4525 4526 o Minor bugfixes (refactoring): 4527 - Lift circuit_build_times_disabled() out of the 4528 circuit_expire_building() loop, to save CPU time when there are 4529 many circuits open. Fixes bug 33977; bugfix on 0.3.5.9. 4530 4531 o Minor bugfixes (relay, self-testing): 4532 - When starting up as a relay, if we haven't been able to verify 4533 that we're reachable, only launch reachability tests at most once 4534 a minute. Previously, we had been launching tests up to once a 4535 second, which was needlessly noisy. Fixes bug 40083; bugfix 4536 on 0.2.8.1-alpha. 4537 4538 o Minor bugfixes (relay, usability): 4539 - Adjust the rules for when to warn about having too many 4540 connections to other relays. Previously we'd tolerate up to 1.5 4541 connections per relay on average. Now we tolerate more connections 4542 for directory authorities, and raise the number of total 4543 connections we need to see before we warn. Fixes bug 33880; bugfix 4544 on 0.3.1.1-alpha. 4545 4546 o Minor bugfixes (SOCKS, onion service client): 4547 - Detect v3 onion service addresses of the wrong length when 4548 returning the F6 ExtendedErrors code. Fixes bug 33873; bugfix 4549 on 0.4.3.1-alpha. 4550 4551 o Minor bugfixes (tests): 4552 - Fix the behavior of the rend_cache/clean_v2_descs_as_dir when run 4553 on its own. Previously, it would exit with an error. Fixes bug 4554 40099; bugfix on 0.2.8.1-alpha. 4555 4556 o Minor bugfixes (v3 onion services): 4557 - Remove a BUG() warning that could trigger in certain unlikely 4558 edge-cases. Fixes bug 34086; bugfix on 0.3.2.1-alpha. 4559 - Remove a BUG() that was causing a stacktrace when a descriptor 4560 changed at an unexpected time. Fixes bug 28992; bugfix 4561 on 0.3.2.1-alpha. 4562 4563 o Minor bugfixes (windows): 4564 - Fix a bug that prevented Tor from starting if its log file grew 4565 above 2GB. Fixes bug 31036; bugfix on 0.2.1.8-alpha. 4566 4567 o Code simplification and refactoring: 4568 - Define and use a new constant TOR_ADDRPORT_BUF_LEN which is like 4569 TOR_ADDR_BUF_LEN but includes enough space for an IP address, 4570 brackets, separating colon, and port number. Closes ticket 33956. 4571 Patch by Neel Chauhan. 4572 - Merge the orconn and ocirc events into the "core" subsystem, which 4573 manages or connections and origin circuits. Previously they were 4574 isolated in subsystems of their own. 4575 - Move LOG_PROTOCOL_WARN to app/config. Resolves a dependency 4576 inversion. Closes ticket 33633. 4577 - Move the circuit extend code to the relay module. Split the 4578 circuit extend function into smaller functions. Closes 4579 ticket 33633. 4580 - Rewrite port_parse_config() to use the default port flags from 4581 port_cfg_new(). Closes ticket 32994. Patch by MrSquanchee. 4582 - Updated comments in 'scheduler.c' to reflect old code changes, and 4583 simplified the scheduler channel state change code. Closes 4584 ticket 33349. 4585 - Refactor configuration parsing to use the new config subsystem 4586 code. Closes ticket 33014. 4587 - Move a series of functions related to address resolving into their 4588 own files. Closes ticket 33789. 4589 4590 o Documentation: 4591 - Replace most http:// URLs in our code and documentation with 4592 https:// URLs. (We have left unchanged the code in src/ext/, and 4593 the text in LICENSE.) Closes ticket 31812. Patch from Jeremy Rand. 4594 - Document the limitations of using %include on config files with 4595 seccomp sandbox enabled. Fixes documentation bug 34133; bugfix on 4596 0.3.1.1-alpha. Patch by Daniel Pinto. 4597 4598 o Removed features: 4599 - Our "check-local" test target no longer tries to use the 4600 Coccinelle semantic patching tool parse all the C files. While it 4601 is a good idea to try to make sure Coccinelle works on our C 4602 before we run a Coccinelle patch, doing so on every test run has 4603 proven to be disruptive. You can still run this tool manually with 4604 "make check-cocci". Closes ticket 40030. 4605 - Remove the ClientAutoIPv6ORPort option. This option attempted to 4606 randomly choose between IPv4 and IPv6 for client connections, and 4607 wasn't a true implementation of Happy Eyeballs. Often, this option 4608 failed on IPv4-only or IPv6-only connections. Closes ticket 32905. 4609 Patch by Neel Chauhan. 4610 - Stop shipping contrib/dist/rc.subr file, as it is not being used 4611 on FreeBSD anymore. Closes issue 31576. 4612 4613 o Testing: 4614 - Add a basic IPv6 test to "make test-network". This test only runs 4615 when the local machine has an IPv6 stack. Closes ticket 33300. 4616 - Add test-network-ipv4 and test-network-ipv6 jobs to the Makefile. 4617 These jobs run the IPv4-only and dual-stack chutney flavours from 4618 test-network-all. Closes ticket 33280. 4619 - Remove a redundant distcheck job. Closes ticket 33194. 4620 - Run the test-network-ipv6 Makefile target in the Travis CI IPv6 4621 chutney job. This job runs on macOS, so it's a bit slow. Closes 4622 ticket 33303. 4623 - Sort the Travis jobs in order of speed. Putting the slowest jobs 4624 first takes full advantage of Travis job concurrency. Closes 4625 ticket 33194. 4626 - Stop allowing the Chutney IPv6 Travis job to fail. This job was 4627 previously configured to fast_finish (which requires 4628 allow_failure), to speed up the build. Closes ticket 33195. 4629 - Test v3 onion services to tor's mixed IPv4 chutney network. And 4630 add a mixed IPv6 chutney network. These networks are used in the 4631 test-network-all, test-network-ipv4, and test-network-ipv6 make 4632 targets. Closes ticket 33334. 4633 - Use the "bridges+hs-v23" chutney network flavour in "make test- 4634 network". This test requires a recent version of chutney (mid- 4635 February 2020). Closes ticket 28208. 4636 - When a Travis chutney job fails, use chutney's new "diagnostics.sh" 4637 tool to produce detailed diagnostic output. Closes ticket 32792. 4638 4639 o Deprecated features (onion service v2): 4640 - Add a deprecation warning for version 2 onion services. Closes 4641 ticket 40003. 4642 4643 o Documentation (manual page): 4644 - Add cross reference links and a table of contents to the HTML tor 4645 manual page. Closes ticket 33369. Work by Swati Thacker as part of 4646 Google Season of Docs. 4647 - Alphabetize the Denial of Service Mitigation Options, Directory 4648 Authority Server Options, Hidden Service Options, and Testing 4649 Network Options sections of the tor(1) manual page. Closes ticket 4650 33275. Work by Swati Thacker as part of Google Season of Docs. 4651 - Refrain from mentioning nicknames in manpage section for MyFamily 4652 torrc option. Resolves issue 33417. 4653 - Updated the options set by TestingTorNetwork in the manual page. 4654 Closes ticket 33778. 4655 4656 4657 Changes in version 0.3.5.11 - 2020-07-09 4658 Tor 0.3.5.11 backports fixes from later tor releases, including several 4659 usability, portability, and reliability fixes. 4660 4661 This release also fixes TROVE-2020-001, a medium-severity denial of 4662 service vulnerability affecting all versions of Tor when compiled with 4663 the NSS encryption library. (This is not the default configuration.) 4664 Using this vulnerability, an attacker could cause an affected Tor 4665 instance to crash remotely. This issue is also tracked as CVE-2020- 4666 15572. Anybody running a version of Tor built with the NSS library 4667 should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha 4668 or later. 4669 4670 o Major bugfixes (NSS, security, backport from 0.4.4.2-alpha): 4671 - Fix a crash due to an out-of-bound memory access when Tor is 4672 compiled with NSS support. Fixes bug 33119; bugfix on 4673 0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001 4674 and CVE-2020-15572. 4675 4676 o Major bugfixes (DoS defenses, bridges, pluggable transport, backport from 0.4.3.4-rc): 4677 - Fix a bug that was preventing DoS defenses from running on bridges 4678 with a pluggable transport. Previously, the DoS subsystem was not 4679 given the transport name of the client connection, thus failed to 4680 find the GeoIP cache entry for that client address. Fixes bug 4681 33491; bugfix on 0.3.3.2-alpha. 4682 4683 o Minor features (testing, backport from 0.4.3.4-rc): 4684 - The unit tests now support a "TOR_SKIP_TESTCASES" environment 4685 variable to specify a list of space-separated test cases that 4686 should not be executed. We will use this to disable certain tests 4687 that are failing on Appveyor because of mismatched OpenSSL 4688 libraries. Part of ticket 33643. 4689 4690 o Minor bugfix (CI, Windows, backport from 0.4.4.2-alpha): 4691 - Use the correct 64-bit printf format when compiling with MINGW on 4692 Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha. 4693 4694 o Minor bugfix (relay, configuration, backport from 0.4.3.3-alpha): 4695 - Warn if the ContactInfo field is not set, and tell the relay 4696 operator that not having a ContactInfo field set might cause their 4697 relay to get rejected in the future. Fixes bug 33361; bugfix 4698 on 0.1.1.10-alpha. 4699 4700 o Minor bugfixes (client performance, backport from 0.4.4.1-alpha): 4701 - Resume use of preemptively-built circuits when UseEntryGuards is set 4702 to 0. We accidentally disabled this feature with that config 4703 setting, leading to slower load times. Fixes bug 34303; bugfix 4704 on 0.3.3.2-alpha. 4705 4706 o Minor bugfixes (compiler compatibility, backport from 0.4.3.5): 4707 - Avoid compiler warnings from Clang 10 related to the use of GCC- 4708 style "/* falls through */" comments. Both Clang and GCC allow 4709 __attribute__((fallthrough)) instead, so that's what we're using 4710 now. Fixes bug 34078; bugfix on 0.3.1.3-alpha. 4711 4712 o Minor bugfixes (compiler warnings, backport from 0.4.4.2-alpha): 4713 - Fix a compiler warning on platforms with 32-bit time_t values. 4714 Fixes bug 40028; bugfix on 0.3.2.8-rc. 4715 4716 o Minor bugfixes (embedded Tor, backport from 0.4.3.1-alpha): 4717 - When starting Tor any time after the first time in a process, 4718 register the thread in which it is running as the main thread. 4719 Previously, we only did this on Windows, which could lead to bugs 4720 like 23081 on non-Windows platforms. Fixes bug 32884; bugfix 4721 on 0.3.3.1-alpha. 4722 4723 o Minor bugfixes (key portability, backport from 0.4.3.4-rc): 4724 - When reading PEM-encoded key data, tolerate CRLF line-endings even 4725 if we are not running on Windows. Previously, non-Windows hosts 4726 would reject these line-endings in certain positions, making 4727 certain key files hard to move from one host to another. Fixes bug 4728 33032; bugfix on 0.3.5.1-alpha. 4729 4730 o Minor bugfixes (logging, backport from 0.4.4.2-alpha): 4731 - Downgrade a noisy log message that could occur naturally when 4732 receiving an extrainfo document that we no longer want. Fixes bug 4733 16016; bugfix on 0.2.6.3-alpha. 4734 4735 o Minor bugfixes (onion service v3, client, backport from 0.4.3.3-alpha): 4736 - Remove a BUG() warning that would cause a stack trace if an onion 4737 service descriptor was freed while we were waiting for a 4738 rendezvous circuit to complete. Fixes bug 28992; bugfix 4739 on 0.3.2.1-alpha. 4740 4741 o Testing (CI, backport from 0.4.3.4-rc): 4742 - In our Appveyor Windows CI, copy required DLLs to test and app 4743 directories, before running tor's tests. This ensures that tor.exe 4744 and test*.exe use the correct version of each DLL. This fix is not 4745 required, but we hope it will avoid DLL search issues in future. 4746 Fixes bug 33673; bugfix on 0.3.4.2-alpha. 4747 - On Appveyor, skip the crypto/openssl_version test, which is 4748 failing because of a mismatched library installation. Fix 4749 for 33643. 4750 4751 4752 Changes in version 0.4.2.8 - 2020-07-09 4753 Tor 0.4.2.8 backports various fixes from later releases, including 4754 several that affect usability and portability. 4755 4756 This release also fixes TROVE-2020-001, a medium-severity denial of 4757 service vulnerability affecting all versions of Tor when compiled with 4758 the NSS encryption library. (This is not the default configuration.) 4759 Using this vulnerability, an attacker could cause an affected Tor 4760 instance to crash remotely. This issue is also tracked as CVE-2020- 4761 15572. Anybody running a version of Tor built with the NSS library 4762 should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha 4763 or later. 4764 4765 o Major bugfixes (NSS, security, backport from 0.4.4.2-alpha): 4766 - Fix a crash due to an out-of-bound memory access when Tor is 4767 compiled with NSS support. Fixes bug 33119; bugfix on 4768 0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001 4769 and CVE-2020-15572. 4770 4771 o Major bugfixes (DoS defenses, bridges, pluggable transport, backport from 0.4.3.4-rc): 4772 - Fix a bug that was preventing DoS defenses from running on bridges 4773 with a pluggable transport. Previously, the DoS subsystem was not 4774 given the transport name of the client connection, thus failed to 4775 find the GeoIP cache entry for that client address. Fixes bug 4776 33491; bugfix on 0.3.3.2-alpha. 4777 4778 o Minor feature (sendme, flow control, backport form 0.4.3.4-rc): 4779 - Default to sending SENDME version 1 cells. (Clients are already 4780 sending these, because of a consensus parameter telling them to do 4781 so: this change only affects what clients would do if the 4782 consensus didn't contain a recommendation.) Closes ticket 33623. 4783 4784 o Minor features (diagnostic, backport from 0.4.3.3-alpha): 4785 - Improve assertions and add some memory-poisoning code to try to 4786 track down possible causes of a rare crash (32564) in the EWMA 4787 code. Closes ticket 33290. 4788 4789 o Minor features (testing, backport from 0.4.3.4-rc): 4790 - The unit tests now support a "TOR_SKIP_TESTCASES" environment 4791 variable to specify a list of space-separated test cases that 4792 should not be executed. We will use this to disable certain tests 4793 that are failing on Appveyor because of mismatched OpenSSL 4794 libraries. Part of ticket 33643. 4795 4796 o Minor bugfix (CI, Windows, backport from 0.4.4.2-alpha): 4797 - Use the correct 64-bit printf format when compiling with MINGW on 4798 Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha. 4799 4800 o Minor bugfix (relay, configuration, backport from 0.4.3.3-alpha): 4801 - Warn if the ContactInfo field is not set, and tell the relay 4802 operator that not having a ContactInfo field set might cause their 4803 relay to get rejected in the future. Fixes bug 33361; bugfix 4804 on 0.1.1.10-alpha. 4805 4806 o Minor bugfixes (client performance, backport from 0.4.4.1-alpha): 4807 - Resume use of preemptively-built circuits when UseEntryGuards is set 4808 to 0. We accidentally disabled this feature with that config 4809 setting, leading to slower load times. Fixes bug 34303; bugfix 4810 on 0.3.3.2-alpha. 4811 4812 o Minor bugfixes (compiler compatibility, backport from 0.4.3.5): 4813 - Avoid compiler warnings from Clang 10 related to the use of GCC- 4814 style "/* falls through */" comments. Both Clang and GCC allow 4815 __attribute__((fallthrough)) instead, so that's what we're using 4816 now. Fixes bug 34078; bugfix on 0.3.1.3-alpha. 4817 - Fix compilation warnings with GCC 10.0.1. Fixes bug 34077; bugfix 4818 on 0.4.0.3-alpha. 4819 4820 o Minor bugfixes (compiler warnings, backport from 0.4.4.2-alpha): 4821 - Fix a compiler warning on platforms with 32-bit time_t values. 4822 Fixes bug 40028; bugfix on 0.3.2.8-rc. 4823 4824 o Minor bugfixes (controller protocol, backport from 0.4.3.2-alpha): 4825 - When receiving "ACTIVE" or "DORMANT" signals on the control port, 4826 report them as SIGNAL events. Previously we would log a bug 4827 warning. Fixes bug 33104; bugfix on 0.4.0.1-alpha. 4828 4829 o Minor bugfixes (embedded Tor, backport from 0.4.3.1-alpha): 4830 - When starting Tor any time after the first time in a process, 4831 register the thread in which it is running as the main thread. 4832 Previously, we only did this on Windows, which could lead to bugs 4833 like 23081 on non-Windows platforms. Fixes bug 32884; bugfix 4834 on 0.3.3.1-alpha. 4835 4836 o Minor bugfixes (key portability, backport from 0.4.3.4-rc): 4837 - When reading PEM-encoded key data, tolerate CRLF line-endings even 4838 if we are not running on Windows. Previously, non-Windows hosts 4839 would reject these line-endings in certain positions, making 4840 certain key files hard to move from one host to another. Fixes bug 4841 33032; bugfix on 0.3.5.1-alpha. 4842 4843 o Minor bugfixes (logging, backport from 0.4.3.2-rc): 4844 - When logging a bug, do not say "Future instances of this warning 4845 will be silenced" unless we are actually going to silence them. 4846 Previously we would say this whenever a BUG() check failed in the 4847 code. Fixes bug 33095; bugfix on 0.4.1.1-alpha. 4848 4849 o Minor bugfixes (logging, backport from 0.4.3.4-rc): 4850 - Flush stderr, stdout, and file logs during shutdown, if supported 4851 by the OS. This change helps make sure that any final logs are 4852 recorded. Fixes bug 33087; bugfix on 0.4.1.6. 4853 4854 o Minor bugfixes (logging, backport from 0.4.4.2-alpha): 4855 - Downgrade a noisy log message that could occur naturally when 4856 receiving an extrainfo document that we no longer want. Fixes bug 4857 16016; bugfix on 0.2.6.3-alpha. 4858 4859 o Minor bugfixes (onion service v3, client, backport from 0.4.3.3-alpha): 4860 - Remove a BUG() warning that would cause a stack trace if an onion 4861 service descriptor was freed while we were waiting for a 4862 rendezvous circuit to complete. Fixes bug 28992; bugfix 4863 on 0.3.2.1-alpha. 4864 4865 o Testing (CI, backport from 0.4.3.4-rc): 4866 - In our Appveyor Windows CI, copy required DLLs to test and app 4867 directories, before running tor's tests. This ensures that tor.exe 4868 and test*.exe use the correct version of each DLL. This fix is not 4869 required, but we hope it will avoid DLL search issues in future. 4870 Fixes bug 33673; bugfix on 0.3.4.2-alpha. 4871 - On Appveyor, skip the crypto/openssl_version test, which is 4872 failing because of a mismatched library installation. Fix 4873 for 33643. 4874 4875 4876 Changes in version 0.4.3.6 - 2020-07-09 4877 Tor 0.4.3.6 backports several bugfixes from later releases, including 4878 some affecting usability. 4879 4880 This release also fixes TROVE-2020-001, a medium-severity denial of 4881 service vulnerability affecting all versions of Tor when compiled with 4882 the NSS encryption library. (This is not the default configuration.) 4883 Using this vulnerability, an attacker could cause an affected Tor 4884 instance to crash remotely. This issue is also tracked as CVE-2020- 4885 15572. Anybody running a version of Tor built with the NSS library 4886 should upgrade to 0.3.5.11, 0.4.2.8, 0.4.3.6, or 0.4.4.2-alpha 4887 or later. 4888 4889 o Major bugfixes (NSS, security, backport from 0.4.4.2-alpha): 4890 - Fix a crash due to an out-of-bound memory access when Tor is 4891 compiled with NSS support. Fixes bug 33119; bugfix on 4892 0.3.5.1-alpha. This issue is also tracked as TROVE-2020-001 4893 and CVE-2020-15572. 4894 4895 o Minor bugfix (CI, Windows, backport from 0.4.4.2-alpha): 4896 - Use the correct 64-bit printf format when compiling with MINGW on 4897 Appveyor. Fixes bug 40026; bugfix on 0.3.5.5-alpha. 4898 4899 o Minor bugfixes (client performance, backport from 0.4.4.1-alpha): 4900 - Resume use of preemptively-built circuits when UseEntryGuards is set 4901 to 0. We accidentally disabled this feature with that config 4902 setting, leading to slower load times. Fixes bug 34303; bugfix 4903 on 0.3.3.2-alpha. 4904 4905 o Minor bugfixes (compiler warnings, backport from 0.4.4.2-alpha): 4906 - Fix a compiler warning on platforms with 32-bit time_t values. 4907 Fixes bug 40028; bugfix on 0.3.2.8-rc. 4908 4909 o Minor bugfixes (linux seccomp sandbox, nss, backport from 0.4.4.1-alpha): 4910 - Fix a startup crash when tor is compiled with --enable-nss and 4911 sandbox support is enabled. Fixes bug 34130; bugfix on 4912 0.3.5.1-alpha. Patch by Daniel Pinto. 4913 4914 o Minor bugfixes (logging, backport from 0.4.4.2-alpha): 4915 - Downgrade a noisy log message that could occur naturally when 4916 receiving an extrainfo document that we no longer want. Fixes bug 4917 16016; bugfix on 0.2.6.3-alpha. 4918 4919 o Minor bugfixes (manual page, backport from 0.4.4.1-alpha): 4920 - Update the man page to reflect that MinUptimeHidServDirectoryV2 4921 defaults to 96 hours. Fixes bug 34299; bugfix on 0.2.6.3-alpha. 4922 4923 o Minor bugfixes (onion service v3, backport from 0.4.4.1-alpha): 4924 - Prevent an assert() that would occur when cleaning the client 4925 descriptor cache, and attempting to close circuits for a non- 4926 decrypted descriptor (lacking client authorization). Fixes bug 4927 33458; bugfix on 0.4.2.1-alpha. 4928 4929 o Minor bugfixes (portability, backport from 0.4.4.1-alpha): 4930 - Fix a portability error in the configure script, where we were 4931 using "==" instead of "=". Fixes bug 34233; bugfix on 0.4.3.5. 4932 4933 o Minor bugfixes (relays, backport from 0.4.4.1-alpha): 4934 - Stop advertising incorrect IPv6 ORPorts in relay and bridge 4935 descriptors, when the IPv6 port was configured as "auto". Fixes 4936 bug 32588; bugfix on 0.2.3.9-alpha. 4937 4938 o Documentation (backport from 0.4.4.1-alpha): 4939 - Fix several doxygen warnings related to imbalanced groups. Closes 4940 ticket 34255. 4941 4942 4943 Changes in version 0.4.3.5 - 2020-05-15 4944 Tor 0.4.3.5 is the first stable release in the 0.4.3.x series. This 4945 series adds support for building without relay code enabled, and 4946 implements functionality needed for OnionBalance with v3 onion 4947 services. It includes significant refactoring of our configuration and 4948 controller functionality, and fixes numerous smaller bugs and 4949 performance issues. 4950 4951 Per our support policy, we support each stable release series for nine 4952 months after its first stable release, or three months after the first 4953 stable release of the next series: whichever is longer. This means 4954 that 0.4.3.x will be supported until around February 2021--later, if 4955 0.4.4.x is later than anticipated. 4956 4957 Note also that support for 0.4.1.x is about to end on May 20 of this 4958 year; 0.4.2.x will be supported until September 15. We still plan to 4959 continue supporting 0.3.5.x, our long-term stable series, until 4960 Feb 2022. 4961 4962 Below are the changes since 0.4.2.6. For a list of only the changes 4963 since 0.4.3.4-rc, see the ChangeLog file. 4964 4965 o New system requirements: 4966 - When building Tor, you now need to have Python 3 in order to run 4967 the integration tests. (Python 2 is officially unsupported 4968 upstream, as of 1 Jan 2020.) Closes ticket 32608. 4969 4970 o Major features (build system): 4971 - The relay code can now be disabled using the --disable-module-relay 4972 configure option. When this option is set, we also disable the 4973 dirauth module. Closes ticket 32123. 4974 - When Tor is compiled --disable-module-relay, we also omit the code 4975 used to act as a directory cache. Closes ticket 32487. 4976 4977 o Major features (directory authority, ed25519): 4978 - Add support for banning a relay's ed25519 keys in the approved- 4979 routers file. This will help us migrate away from RSA keys in the 4980 future. Previously, only RSA keys could be banned in approved- 4981 routers. Resolves ticket 22029. Patch by Neel Chauhan. 4982 4983 o Major features (onion services): 4984 - New control port commands to manage client-side onion service 4985 authorization credentials. The ONION_CLIENT_AUTH_ADD command adds 4986 a credential, ONION_CLIENT_AUTH_REMOVE deletes a credential, and 4987 ONION_CLIENT_AUTH_VIEW lists the credentials. Closes ticket 30381. 4988 - Introduce a new SocksPort flag, ExtendedErrors, to support more 4989 detailed error codes in information for applications that support 4990 them. Closes ticket 30382; implements proposal 304. 4991 4992 o Major features (proxy): 4993 - In addition to its current supported proxy types (HTTP CONNECT, 4994 SOCKS4, and SOCKS5), Tor can now make its OR connections through a 4995 HAProxy server. A new torrc option was added to specify the 4996 address/port of the server: TCPProxy <protocol> <host>:<port>. 4997 Currently the only supported protocol for the option is haproxy. 4998 Closes ticket 31518. Patch done by Suphanat Chunhapanya (haxxpop). 4999 5000 o Major bugfixes (security, denial-of-service): 5001 - Fix a denial-of-service bug that could be used by anyone to 5002 consume a bunch of CPU on any Tor relay or authority, or by 5003 directories to consume a bunch of CPU on clients or hidden 5004 services. Because of the potential for CPU consumption to 5005 introduce observable timing patterns, we are treating this as a 5006 high-severity security issue. Fixes bug 33119; bugfix on 5007 0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue 5008 as TROVE-2020-002 and CVE-2020-10592. 5009 5010 o Major bugfixes (circuit padding, memory leak): 5011 - Avoid a remotely triggered memory leak in the case that a circuit 5012 padding machine is somehow negotiated twice on the same circuit. 5013 Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls. 5014 This is also tracked as TROVE-2020-004 and CVE-2020-10593. 5015 5016 o Major bugfixes (directory authority): 5017 - Directory authorities will now send a 503 (not enough bandwidth) 5018 code to clients when under bandwidth pressure. Known relays and 5019 other authorities will always be answered regardless of the 5020 bandwidth situation. Fixes bug 33029; bugfix on 0.1.2.5-alpha. 5021 5022 o Major bugfixes (DoS defenses, bridges, pluggable transport): 5023 - Fix a bug that was preventing DoS defenses from running on bridges 5024 with a pluggable transport. Previously, the DoS subsystem was not 5025 given the transport name of the client connection, thus failed to 5026 find the GeoIP cache entry for that client address. Fixes bug 5027 33491; bugfix on 0.3.3.2-alpha. 5028 5029 o Major bugfixes (networking): 5030 - Correctly handle IPv6 addresses in SOCKS5 RESOLVE_PTR requests, 5031 and accept strings as well as binary addresses. Fixes bug 32315; 5032 bugfix on 0.3.5.1-alpha. 5033 5034 o Major bugfixes (onion service): 5035 - Report HS circuit failure back into the HS subsystem so we take 5036 appropriate action with regards to the client introduction point 5037 failure cache. This improves reachability of onion services, since 5038 now clients notice failing introduction circuits properly. Fixes 5039 bug 32020; bugfix on 0.3.2.1-alpha. 5040 5041 o Minor feature (heartbeat, onion service): 5042 - Add the DoS INTRODUCE2 defenses counter to the heartbeat DoS 5043 message. Closes ticket 31371. 5044 5045 o Minor feature (sendme, flow control): 5046 - Default to sending SENDME version 1 cells. (Clients are already 5047 sending these, because of a consensus parameter telling them to do 5048 so: this change only affects what clients would do if the 5049 consensus didn't contain a recommendation.) Closes ticket 33623. 5050 5051 o Minor features (best practices tracker): 5052 - Practracker now supports a --regen-overbroad option to regenerate 5053 the exceptions file, but only to revise exceptions to be _less_ 5054 tolerant of best-practices violations. Closes ticket 32372. 5055 5056 o Minor features (configuration validation): 5057 - Configuration validation can now be done by per-module callbacks, 5058 rather than a global validation function. This will let us reduce 5059 the size of config.c and some of its more cumbersome functions. 5060 Closes ticket 31241. 5061 5062 o Minor features (configuration): 5063 - If a configured hardware crypto accelerator in AccelName is 5064 prefixed with "!", Tor now exits when it cannot be found. Closes 5065 ticket 32406. 5066 - We now use flag-driven logic to warn about obsolete configuration 5067 fields, so that we can include their names. In 0.4.2, we used a 5068 special type, which prevented us from generating good warnings. 5069 Implements ticket 32404. 5070 5071 o Minor features (configure, build system): 5072 - Output a list of enabled/disabled features at the end of the 5073 configure process in a pleasing way. Closes ticket 31373. 5074 5075 o Minor features (continuous integration): 5076 - Run Doxygen Makefile target on Travis, so we can learn about 5077 regressions in our internal documentation. Closes ticket 32455. 5078 - Stop allowing failures on the Travis CI stem tests job. It looks 5079 like all the stem hangs we were seeing before are now fixed. 5080 Closes ticket 33075. 5081 5082 o Minor features (controller): 5083 - Add stream isolation data to STREAM event. Closes ticket 19859. 5084 - Implement a new GETINFO command to fetch microdescriptor 5085 consensus. Closes ticket 31684. 5086 5087 o Minor features (debugging, directory system): 5088 - Don't crash when we find a non-guard with a guard-fraction value 5089 set. Instead, log a bug warning, in an attempt to figure out how 5090 this happened. Diagnostic for ticket 32868. 5091 5092 o Minor features (defense in depth): 5093 - Add additional checks around tor_vasprintf() usage, in case the 5094 function returns an error. Patch by Tobias Stoeckmann. Fixes 5095 ticket 31147. 5096 5097 o Minor features (developer tools): 5098 - Remove the 0.2.9.x series branches from git scripts (git-merge- 5099 forward.sh, git-pull-all.sh, git-push-all.sh, git-setup-dirs.sh). 5100 Closes ticket 32772. 5101 - Add a check_cocci_parse.sh script that checks that new code is 5102 parseable by Coccinelle. Add an exceptions file for unparseable 5103 files, and run the script from travis CI. Closes ticket 31919. 5104 - Call the check_cocci_parse.sh script from a 'check-cocci' Makefile 5105 target. Closes ticket 31919. 5106 - Add a rename_c_identifiers.py tool to rename a bunch of C 5107 identifiers at once, and generate a well-formed commit message 5108 describing the change. This should help with refactoring. Closes 5109 ticket 32237. 5110 - Add some scripts in "scripts/coccinelle" to invoke the Coccinelle 5111 semantic patching tool with the correct flags. These flags are 5112 fairly easy to forget, and these scripts should help us use 5113 Coccinelle more effectively in the future. Closes ticket 31705. 5114 5115 o Minor features (diagnostic): 5116 - Improve assertions and add some memory-poisoning code to try to 5117 track down possible causes of a rare crash (32564) in the EWMA 5118 code. Closes ticket 33290. 5119 5120 o Minor features (directory authorities): 5121 - Directory authorities now reject descriptors from relays running 5122 Tor versions from the 0.2.9 and 0.4.0 series. The 0.3.5 series is 5123 still allowed. Resolves ticket 32672. Patch by Neel Chauhan. 5124 5125 o Minor features (Doxygen): 5126 - Update Doxygen configuration file to a more recent template (from 5127 1.8.15). Closes ticket 32110. 5128 - "make doxygen" now works with out-of-tree builds. Closes 5129 ticket 32113. 5130 - Make sure that doxygen outputs documentation for all of our C 5131 files. Previously, some were missing @file declarations, causing 5132 them to be ignored. Closes ticket 32307. 5133 - Our "make doxygen" target now respects --enable-fatal-warnings by 5134 default, and does not warn about items that are missing 5135 documentation. To warn about missing documentation, run configure 5136 with the "--enable-missing-doc-warnings" flag: doing so suspends 5137 fatal warnings for doxygen. Closes ticket 32385. 5138 5139 o Minor features (git scripts): 5140 - Add TOR_EXTRA_CLONE_ARGS to git-setup-dirs.sh for git clone 5141 customisation. Closes ticket 32347. 5142 - Add git-setup-dirs.sh, which sets up an upstream git repository 5143 and worktrees for tor maintainers. Closes ticket 29603. 5144 - Add TOR_EXTRA_REMOTE_* to git-setup-dirs.sh for a custom extra 5145 remote. Closes ticket 32347. 5146 - Call the check_cocci_parse.sh script from the git commit and push 5147 hooks. Closes ticket 31919. 5148 - Make git-push-all.sh skip unchanged branches when pushing to 5149 upstream. The script already skipped unchanged test branches. 5150 Closes ticket 32216. 5151 - Make git-setup-dirs.sh create a master symlink in the worktree 5152 directory. Closes ticket 32347. 5153 - Skip unmodified source files when doing some existing git hook 5154 checks. Related to ticket 31919. 5155 5156 o Minor features (IPv6, client): 5157 - Make Tor clients tell dual-stack exits that they prefer IPv6 5158 connections. This change is equivalent to setting the PreferIPv6 5159 flag on SOCKSPorts (and most other listener ports). Tor Browser 5160 has been setting this flag for some time, and we want to remove a 5161 client distinguisher at exits. Closes ticket 32637. 5162 5163 o Minor features (portability, android): 5164 - When building for Android, disable some tests that depend on $HOME 5165 and/or pwdb, which Android doesn't have. Closes ticket 32825. 5166 Patch from Hans-Christoph Steiner. 5167 5168 o Minor features (relay modularity): 5169 - Split the relay and server pluggable transport config code into 5170 separate files in the relay module. Disable this code when the 5171 relay module is disabled. Closes part of ticket 32213. 5172 - When the relay module is disabled, reject attempts to set the 5173 ORPort, DirPort, DirCache, BridgeRelay, ExtORPort, or 5174 ServerTransport* options, rather than ignoring the values of these 5175 options. Closes part of ticket 32213. 5176 - When the relay module is disabled, change the default config so 5177 that DirCache is 0, and ClientOnly is 1. Closes ticket 32410. 5178 5179 o Minor features (release tools): 5180 - Port our ChangeLog formatting and sorting tools to Python 3. 5181 Closes ticket 32704. 5182 5183 o Minor features (testing): 5184 - The unit tests now support a "TOR_SKIP_TESTCASES" environment 5185 variable to specify a list of space-separated test cases that 5186 should not be executed. We will use this to disable certain tests 5187 that are failing on Appveyor because of mismatched OpenSSL 5188 libraries. Part of ticket 33643. 5189 - Detect some common failure cases for test_parseconf.sh in 5190 src/test/conf_failures. Closes ticket 32451. 5191 - Allow test_parseconf.sh to test expected log outputs for successful 5192 configs, as well as failed configs. Closes ticket 32451. 5193 - The test_parseconf.sh script now supports result variants for any 5194 combination of the optional libraries lzma, nss, and zstd. Closes 5195 ticket 32397. 5196 - When running the unit tests on Android, create temporary files in 5197 a subdirectory of /data/local/tmp. Closes ticket 32172. Based on a 5198 patch from Hans-Christoph Steiner. 5199 5200 o Minor features (usability): 5201 - Include more information when failing to parse a configuration 5202 value. This should make it easier to tell what's going wrong when 5203 a configuration file doesn't parse. Closes ticket 33460. 5204 5205 o Minor bugfix (relay, configuration): 5206 - Warn if the ContactInfo field is not set, and tell the relay 5207 operator that not having a ContactInfo field set might cause their 5208 relay to get rejected in the future. Fixes bug 33361; bugfix 5209 on 0.1.1.10-alpha. 5210 5211 o Minor bugfixes (bridges): 5212 - Lowercase the configured value of BridgeDistribution before adding 5213 it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha. 5214 5215 o Minor bugfixes (build system): 5216 - Fix "make autostyle" for out-of-tree builds. Fixes bug 32370; 5217 bugfix on 0.4.1.2-alpha. 5218 5219 o Minor bugfixes (compiler compatibility): 5220 - Avoid compiler warnings from Clang 10 related to the use of GCC- 5221 style "/* falls through */" comments. Both Clang and GCC allow 5222 __attribute__((fallthrough)) instead, so that's what we're using 5223 now. Fixes bug 34078; bugfix on 0.3.1.3-alpha. 5224 - Fix compilation warnings with GCC 10.0.1. Fixes bug 34077; bugfix 5225 on 0.4.0.3-alpha. 5226 5227 o Minor bugfixes (configuration handling): 5228 - Make control_event_conf_changed() take in a config_line_t instead 5229 of a smartlist of alternating key/value entries. Fixes bug 31531; 5230 bugfix on 0.2.3.3-alpha. Patch by Neel Chauhan. 5231 - Check for multiplication overflow when parsing memory units inside 5232 configuration. Fixes bug 30920; bugfix on 0.0.9rc1. 5233 - When dumping the configuration, stop adding a trailing space after 5234 the option name when there is no option value. This issue only 5235 affects options that accept an empty value or list. (Most options 5236 reject empty values, or delete the entire line from the dumped 5237 options.) Fixes bug 32352; bugfix on 0.0.9pre6. 5238 - Avoid changing the user's value of HardwareAccel as stored by 5239 SAVECONF, when AccelName is set but HardwareAccel is not. Fixes 5240 bug 32382; bugfix on 0.2.2.1-alpha. 5241 - When creating a KeyDirectory with the same location as the 5242 DataDirectory (not recommended), respect the DataDirectory's 5243 group-readable setting if one has not been set for the 5244 KeyDirectory. Fixes bug 27992; bugfix on 0.3.3.1-alpha. 5245 5246 o Minor bugfixes (continuous integration): 5247 - Remove the buggy and unused mirroring job. Fixes bug 33213; bugfix 5248 on 0.3.2.2-alpha. 5249 5250 o Minor bugfixes (controller protocol): 5251 - When receiving "ACTIVE" or "DORMANT" signals on the control port, 5252 report them as SIGNAL events. Previously we would log a bug 5253 warning. Fixes bug 33104; bugfix on 0.4.0.1-alpha. 5254 5255 o Minor bugfixes (controller): 5256 - In routerstatus_has_changed(), check all the fields that are 5257 output over the control port. Fixes bug 20218; bugfix 5258 on 0.1.1.11-alpha. 5259 5260 o Minor bugfixes (developer tools): 5261 - Allow paths starting with ./ in scripts/add_c_file.py. Fixes bug 5262 31336; bugfix on 0.4.1.2-alpha. 5263 5264 o Minor bugfixes (dirauth module): 5265 - Split the dirauth config code into a separate file in the dirauth 5266 module. Disable this code when the dirauth module is disabled. 5267 Closes ticket 32213. 5268 - When the dirauth module is disabled, reject attempts to set the 5269 AuthoritativeDir option, rather than ignoring the value of the 5270 option. Fixes bug 32213; bugfix on 0.3.4.1-alpha. 5271 5272 o Minor bugfixes (embedded Tor): 5273 - When starting Tor any time after the first time in a process, 5274 register the thread in which it is running as the main thread. 5275 Previously, we only did this on Windows, which could lead to bugs 5276 like 23081 on non-Windows platforms. Fixes bug 32884; bugfix 5277 on 0.3.3.1-alpha. 5278 5279 o Minor bugfixes (git scripts): 5280 - Avoid sleeping before the last push in git-push-all.sh. Closes 5281 ticket 32216. 5282 - Forward all unrecognised arguments in git-push-all.sh to git push. 5283 Closes ticket 32216. 5284 5285 o Minor bugfixes (key portability): 5286 - When reading PEM-encoded key data, tolerate CRLF line-endings even 5287 if we are not running on Windows. Previously, non-Windows hosts 5288 would reject these line-endings in certain positions, making 5289 certain key files hard to move from one host to another. Fixes bug 5290 33032; bugfix on 0.3.5.1-alpha. 5291 5292 o Minor bugfixes (logging): 5293 - Stop truncating IPv6 addresses and ports in channel and connection 5294 logs. Fixes bug 33918; bugfix on 0.2.4.4-alpha. 5295 - Flush stderr, stdout, and file logs during shutdown, if supported 5296 by the OS. This change helps make sure that any final logs are 5297 recorded. Fixes bug 33087; bugfix on 0.4.1.6. 5298 - Stop closing stderr and stdout during shutdown. Closing these file 5299 descriptors can hide sanitiser logs. Fixes bug 33087; bugfix 5300 on 0.4.1.6. 5301 - If we encounter a bug when flushing a buffer to a TLS connection, 5302 only log the bug once per invocation of the Tor process. 5303 Previously we would log with every occurrence, which could cause 5304 us to run out of disk space. Fixes bug 33093; bugfix 5305 on 0.3.2.2-alpha. 5306 - When logging a bug, do not say "Future instances of this warning 5307 will be silenced" unless we are actually going to silence them. 5308 Previously we would say this whenever a BUG() check failed in the 5309 code. Fixes bug 33095; bugfix on 0.4.1.1-alpha. 5310 5311 o Minor bugfixes (onion services v2): 5312 - Move a series of v2 onion service warnings to protocol-warning 5313 level because they can all be triggered remotely by a malformed 5314 request. Fixes bug 32706; bugfix on 0.1.1.14-alpha. 5315 - When sending the INTRO cell for a v2 Onion Service, look at the 5316 failure cache alongside timeout values to check if the intro point 5317 is marked as failed. Previously, we only looked at the relay 5318 timeout values. Fixes bug 25568; bugfix on 0.2.7.3-rc. Patch by 5319 Neel Chauhan. 5320 5321 o Minor bugfixes (onion services v3): 5322 - Remove a BUG() warning that would cause a stack trace if an onion 5323 service descriptor was freed while we were waiting for a 5324 rendezvous circuit to complete. Fixes bug 28992; bugfix 5325 on 0.3.2.1-alpha. 5326 - Relax severity of a log message that can appear naturally when 5327 decoding onion service descriptors as a relay. Also add some 5328 diagnostics to debug any future bugs in that area. Fixes bug 5329 31669; bugfix on 0.3.0.1-alpha. 5330 - Fix an assertion failure that could result from a corrupted 5331 ADD_ONION control port command. Found by Saibato. Fixes bug 33137; 5332 bugfix on 0.3.3.1-alpha. This issue is also tracked 5333 as TROVE-2020-003. 5334 - Properly handle the client rendezvous circuit timeout. Previously 5335 Tor would sometimes timeout a rendezvous circuit awaiting the 5336 introduction ACK, and find itself unable to re-establish all 5337 circuits because the rendezvous circuit timed out too early. Fixes 5338 bug 32021; bugfix on 0.3.2.1-alpha. 5339 5340 o Minor bugfixes (onion services): 5341 - Do not rely on a "circuit established" flag for intro circuits but 5342 instead always query the HS circuit map. This is to avoid sync 5343 issue with that flag and the map. Fixes bug 32094; bugfix 5344 on 0.3.2.1-alpha. 5345 5346 o Minor bugfixes (onion services, all): 5347 - In cancel_descriptor_fetches(), use 5348 connection_list_by_type_purpose() instead of 5349 connection_list_by_type_state(). Fixes bug 32639; bugfix on 5350 0.3.2.1-alpha. Patch by Neel Chauhan. 5351 5352 o Minor bugfixes (pluggable transports): 5353 - When receiving a message on standard error from a pluggable 5354 transport, log it at info level, rather than as a warning. Fixes 5355 bug 33005; bugfix on 0.4.0.1-alpha. 5356 5357 o Minor bugfixes (rust, build): 5358 - Fix a syntax warning given by newer versions of Rust that was 5359 creating problems for our continuous integration. Fixes bug 33212; 5360 bugfix on 0.3.5.1-alpha. 5361 5362 o Minor bugfixes (scripts): 5363 - Fix update_versions.py for out-of-tree builds. Fixes bug 32371; 5364 bugfix on 0.4.0.1-alpha. 5365 5366 o Minor bugfixes (testing): 5367 - Use the same code to find the tor binary in all of our test 5368 scripts. This change makes sure we are always using the coverage 5369 binary when coverage is enabled. Fixes bug 32368; bugfix 5370 on 0.2.7.3-rc. 5371 - Stop ignoring "tor --dump-config" errors in test_parseconf.sh. 5372 Fixes bug 32468; bugfix on 0.4.2.1-alpha. 5373 - Our option-validation tests no longer depend on specially 5374 configured non-default, non-passing sets of options. Previously, 5375 the tests had been written to assume that options would _not_ be 5376 set to their defaults, which led to needless complexity and 5377 verbosity. Fixes bug 32175; bugfix on 0.2.8.1-alpha. 5378 5379 o Minor bugfixes (TLS bug handling): 5380 - When encountering a bug in buf_read_from_tls(), return a "MISC" 5381 error code rather than "WANTWRITE". This change might help avoid 5382 some CPU-wasting loops if the bug is ever triggered. Bug reported 5383 by opara. Fixes bug 32673; bugfix on 0.3.0.4-alpha. 5384 5385 o Deprecated features: 5386 - Deprecate the ClientAutoIPv6ORPort option. This option was not 5387 true "Happy Eyeballs", and often failed on connections that 5388 weren't reliably dual-stack. Closes ticket 32942. Patch by 5389 Neel Chauhan. 5390 5391 o Documentation: 5392 - Provide a quickstart guide for a Circuit Padding Framework, and 5393 documentation for researchers to implement and study circuit 5394 padding machines. Closes ticket 28804. 5395 - Add documentation in 'HelpfulTools.md' to describe how to build a 5396 tag file. Closes ticket 32779. 5397 - Create a high-level description of the long-term software 5398 architecture goals. Closes ticket 32206. 5399 - Describe the --dump-config command in the manual page. Closes 5400 ticket 32467. 5401 - Unite coding advice from this_not_that.md in torguts repo into our 5402 coding standards document. Resolves ticket 31853. 5403 5404 o Removed features: 5405 - Our Doxygen configuration no longer generates LaTeX output. The 5406 reference manual produced by doing this was over 4000 pages long, 5407 and generally unusable. Closes ticket 32099. 5408 - The option "TestingEstimatedDescriptorPropagationTime" is now 5409 marked as obsolete. It has had no effect since 0.3.0.7, when 5410 clients stopped rejecting consensuses "from the future". Closes 5411 ticket 32807. 5412 - We no longer support consensus methods before method 28; these 5413 methods were only used by authorities running versions of Tor that 5414 are now at end-of-life. In effect, this means that clients, 5415 relays, and authorities now assume that authorities will be 5416 running version 0.3.5.x or later. Closes ticket 32695. 5417 5418 o Testing: 5419 - Avoid conflicts between the fake sockets in tor's unit tests, and 5420 real file descriptors. Resolves issues running unit tests with 5421 GitHub Actions, where the process that embeds or launches the 5422 tests has already opened a large number of file descriptors. Fixes 5423 bug 33782; bugfix on 0.2.8.1-alpha. Found and fixed by 5424 Putta Khunchalee. 5425 - Add more test cases for tor's UTF-8 validation function. Also, 5426 check the arguments passed to the function for consistency. Closes 5427 ticket 32845. 5428 - Improve test coverage for relay and dirauth config code, focusing 5429 on option validation and normalization. Closes ticket 32213. 5430 - Improve the consistency of test_parseconf.sh output, and run all 5431 the tests, even if one fails. Closes ticket 32213. 5432 - Run the practracker unit tests in the pre-commit git hook. Closes 5433 ticket 32609. 5434 5435 o Code simplification and refactoring (channel): 5436 - Channel layer had a variable length cell handler that was not used 5437 and thus removed. Closes ticket 32892. 5438 5439 o Code simplification and refactoring (configuration): 5440 - Immutability is now implemented as a flag on individual 5441 configuration options rather than as part of the option-transition 5442 checking code. Closes ticket 32344. 5443 - Instead of keeping a list of configuration options to check for 5444 relative paths, check all the options whose type is "FILENAME". 5445 Solves part of ticket 32339. 5446 - Our default log (which ordinarily sends NOTICE-level messages to 5447 standard output) is now handled in a more logical manner. 5448 Previously, we replaced the configured log options if they were 5449 empty. Now, we interpret an empty set of log options as meaning 5450 "use the default log". Closes ticket 31999. 5451 - Remove some unused arguments from the options_validate() function, 5452 to simplify our code and tests. Closes ticket 32187. 5453 - Simplify the options_validate() code so that it looks at the 5454 default options directly, rather than taking default options as an 5455 argument. This change lets us simplify its interface. Closes 5456 ticket 32185. 5457 - Use our new configuration architecture to move most authority- 5458 related options to the directory authority module. Closes 5459 ticket 32806. 5460 - When parsing the command line, handle options that determine our 5461 "quiet level" and our mode of operation (e.g., --dump-config and 5462 so on) all in one table. Closes ticket 32003. 5463 5464 o Code simplification and refactoring (controller): 5465 - Create a new abstraction for formatting control protocol reply 5466 lines based on key-value pairs. Refactor some existing control 5467 protocol code to take advantage of this. Closes ticket 30984. 5468 - Create a helper function that can fetch network status or 5469 microdesc consensuses. Closes ticket 31684. 5470 5471 o Code simplification and refactoring (dirauth modularization): 5472 - Remove the last remaining HAVE_MODULE_DIRAUTH inside a function. 5473 Closes ticket 32163. 5474 - Replace some confusing identifiers in process_descs.c. Closes 5475 ticket 29826. 5476 - Simplify some relay and dirauth config code. Closes ticket 32213. 5477 5478 o Code simplification and refactoring (mainloop): 5479 - Simplify the ip_address_changed() function by removing redundant 5480 checks. Closes ticket 33091. 5481 5482 o Code simplification and refactoring (misc): 5483 - Make all the structs we declare follow the same naming convention 5484 of ending with "_t". Closes ticket 32415. 5485 - Move and rename some configuration-related code for clarity. 5486 Closes ticket 32304. 5487 - Our include.am files are now broken up by subdirectory. 5488 Previously, src/core/include.am covered all of the subdirectories 5489 in "core", "feature", and "app". Closes ticket 32137. 5490 - Remove underused NS*() macros from test code: they make our tests 5491 more confusing, especially for code-formatting tools. Closes 5492 ticket 32887. 5493 5494 o Code simplification and refactoring (relay modularization): 5495 - Disable relay_periodic when the relay module is disabled. Closes 5496 ticket 32244. 5497 - Disable relay_sys when the relay module is disabled. Closes 5498 ticket 32245. 5499 5500 o Code simplification and refactoring (tool support): 5501 - Add numerous missing dependencies to our include files, so that 5502 they can be included in different reasonable orders and still 5503 compile. Addresses part of ticket 32764. 5504 - Fix some parts of our code that were difficult for Coccinelle to 5505 parse. Related to ticket 31705. 5506 - Fix some small issues in our code that prevented automatic 5507 formatting tools from working. Addresses part of ticket 32764. 5508 5509 o Documentation (manpage): 5510 - Alphabetize the Server and Directory server sections of the tor 5511 manpage. Also split Statistics options into their own section of 5512 the manpage. Closes ticket 33188. Work by Swati Thacker as part of 5513 Google Season of Docs. 5514 - Document the __OwningControllerProcess torrc option and specify 5515 its polling interval. Resolves issue 32971. 5516 - Split "Circuit Timeout" options and "Node Selection" options into 5517 their own sections of the tor manpage. Closes tickets 32928 and 5518 32929. Work by Swati Thacker as part of Google Season of Docs. 5519 - Alphabetize the Client Options section of the tor manpage. Closes 5520 ticket 32846. 5521 - Alphabetize the General Options section of the tor manpage. Closes 5522 ticket 32708. 5523 - In the tor(1) manpage, reword and improve formatting of the 5524 COMMAND-LINE OPTIONS and DESCRIPTION sections. Closes ticket 5525 32277. Based on work by Swati Thacker as part of Google Season 5526 of Docs. 5527 - In the tor(1) manpage, reword and improve formatting of the FILES, 5528 SEE ALSO, and BUGS sections. Closes ticket 32176. Based on work by 5529 Swati Thacker as part of Google Season of Docs. 5530 5531 o Testing (Appveyor CI): 5532 - In our Appveyor Windows CI, copy required DLLs to test and app 5533 directories, before running tor's tests. This ensures that tor.exe 5534 and test*.exe use the correct version of each DLL. This fix is not 5535 required, but we hope it will avoid DLL search issues in future. 5536 Fixes bug 33673; bugfix on 0.3.4.2-alpha. 5537 - On Appveyor, skip the crypto/openssl_version test, which is 5538 failing because of a mismatched library installation. Fix 5539 for 33643. 5540 5541 o Testing (circuit, EWMA): 5542 - Add unit tests for circuitmux and EWMA subsystems. Closes 5543 ticket 32196. 5544 5545 o Testing (Travis CI): 5546 - Remove a redundant distcheck job. Closes ticket 33194. 5547 - Sort the Travis jobs in order of speed: putting the slowest jobs 5548 first takes full advantage of Travis job concurrency. Closes 5549 ticket 33194. 5550 - Stop allowing the Chutney IPv6 Travis job to fail. This job was 5551 previously configured to fast_finish (which requires 5552 allow_failure), to speed up the build. Closes ticket 33195. 5553 - When a Travis chutney job fails, use chutney's new "diagnostics.sh" 5554 tool to produce detailed diagnostic output. Closes ticket 32792. 5555 5556 5557 Changes in version 0.4.2.7 - 2020-03-18 5558 This is the third stable release in the 0.4.2.x series. It backports 5559 numerous fixes from later releases, including a fix for TROVE-2020- 5560 002, a major denial-of-service vulnerability that affected all 5561 released Tor instances since 0.2.1.5-alpha. Using this vulnerability, 5562 an attacker could cause Tor instances to consume a huge amount of CPU, 5563 disrupting their operations for several seconds or minutes. This 5564 attack could be launched by anybody against a relay, or by a directory 5565 cache against any client that had connected to it. The attacker could 5566 launch this attack as much as they wanted, thereby disrupting service 5567 or creating patterns that could aid in traffic analysis. This issue 5568 was found by OSS-Fuzz, and is also tracked as CVE-2020-10592. 5569 5570 We do not have reason to believe that this attack is currently being 5571 exploited in the wild, but nonetheless we advise everyone to upgrade 5572 as soon as packages are available. 5573 5574 o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha): 5575 - Fix a denial-of-service bug that could be used by anyone to 5576 consume a bunch of CPU on any Tor relay or authority, or by 5577 directories to consume a bunch of CPU on clients or hidden 5578 services. Because of the potential for CPU consumption to 5579 introduce observable timing patterns, we are treating this as a 5580 high-severity security issue. Fixes bug 33119; bugfix on 5581 0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue 5582 as TROVE-2020-002 and CVE-2020-10592. 5583 5584 o Major bugfixes (circuit padding, memory leak, backport from 0.4.3.3-alpha): 5585 - Avoid a remotely triggered memory leak in the case that a circuit 5586 padding machine is somehow negotiated twice on the same circuit. 5587 Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls. 5588 This is also tracked as TROVE-2020-004 and CVE-2020-10593. 5589 5590 o Major bugfixes (directory authority, backport from 0.4.3.3-alpha): 5591 - Directory authorities will now send a 503 (not enough bandwidth) 5592 code to clients when under bandwidth pressure. Known relays and 5593 other authorities will always be answered regardless of the 5594 bandwidth situation. Fixes bug 33029; bugfix on 0.1.2.5-alpha. 5595 5596 o Minor features (continuous integration, backport from 0.4.3.2-alpha): 5597 - Stop allowing failures on the Travis CI stem tests job. It looks 5598 like all the stem hangs we were seeing before are now fixed. 5599 Closes ticket 33075. 5600 5601 o Minor bugfixes (bridges, backport from 0.4.3.1-alpha): 5602 - Lowercase the configured value of BridgeDistribution before adding 5603 it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha. 5604 5605 o Minor bugfixes (logging, backport from 0.4.3.2-alpha): 5606 - If we encounter a bug when flushing a buffer to a TLS connection, 5607 only log the bug once per invocation of the Tor process. 5608 Previously we would log with every occurrence, which could cause 5609 us to run out of disk space. Fixes bug 33093; bugfix 5610 on 0.3.2.2-alpha. 5611 5612 o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha): 5613 - Fix an assertion failure that could result from a corrupted 5614 ADD_ONION control port command. Found by Saibato. Fixes bug 33137; 5615 bugfix on 0.3.3.1-alpha. This issue is also tracked 5616 as TROVE-2020-003. 5617 5618 o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha): 5619 - Fix a syntax warning given by newer versions of Rust that was 5620 creating problems for our continuous integration. Fixes bug 33212; 5621 bugfix on 0.3.5.1-alpha. 5622 5623 o Testing (Travis CI, backport from 0.4.3.3-alpha): 5624 - Remove a redundant distcheck job. Closes ticket 33194. 5625 - Sort the Travis jobs in order of speed: putting the slowest jobs 5626 first takes full advantage of Travis job concurrency. Closes 5627 ticket 33194. 5628 - Stop allowing the Chutney IPv6 Travis job to fail. This job was 5629 previously configured to fast_finish (which requires 5630 allow_failure), to speed up the build. Closes ticket 33195. 5631 - When a Travis chutney job fails, use chutney's new "diagnostics.sh" 5632 tool to produce detailed diagnostic output. Closes ticket 32792. 5633 5634 5635 Changes in version 0.4.1.9 - 2020-03-18 5636 Tor 0.4.1.9 backports important fixes from later Tor releases, 5637 including a fix for TROVE-2020-002, a major denial-of-service 5638 vulnerability that affected all released Tor instances since 5639 0.2.1.5-alpha. Using this vulnerability, an attacker could cause Tor 5640 instances to consume a huge amount of CPU, disrupting their operations 5641 for several seconds or minutes. This attack could be launched by 5642 anybody against a relay, or by a directory cache against any client 5643 that had connected to it. The attacker could launch this attack as 5644 much as they wanted, thereby disrupting service or creating patterns 5645 that could aid in traffic analysis. This issue was found by OSS-Fuzz, 5646 and is also tracked as CVE-2020-10592. 5647 5648 We do not have reason to believe that this attack is currently being 5649 exploited in the wild, but nonetheless we advise everyone to upgrade 5650 as soon as packages are available. 5651 5652 o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha): 5653 - Fix a denial-of-service bug that could be used by anyone to 5654 consume a bunch of CPU on any Tor relay or authority, or by 5655 directories to consume a bunch of CPU on clients or hidden 5656 services. Because of the potential for CPU consumption to 5657 introduce observable timing patterns, we are treating this as a 5658 high-severity security issue. Fixes bug 33119; bugfix on 5659 0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue 5660 as TROVE-2020-002 and CVE-2020-10592. 5661 5662 o Major bugfixes (circuit padding, memory leak, backport from 0.4.3.3-alpha): 5663 - Avoid a remotely triggered memory leak in the case that a circuit 5664 padding machine is somehow negotiated twice on the same circuit. 5665 Fixes bug 33619; bugfix on 0.4.0.1-alpha. Found by Tobias Pulls. 5666 This is also tracked as TROVE-2020-004 and CVE-2020-10593. 5667 5668 o Minor bugfixes (bridges, backport from 0.4.3.1-alpha): 5669 - Lowercase the configured value of BridgeDistribution before adding 5670 it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha. 5671 5672 o Minor bugfixes (logging, backport from 0.4.3.2-alpha): 5673 - If we encounter a bug when flushing a buffer to a TLS connection, 5674 only log the bug once per invocation of the Tor process. 5675 Previously we would log with every occurrence, which could cause 5676 us to run out of disk space. Fixes bug 33093; bugfix 5677 on 0.3.2.2-alpha. 5678 5679 o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha): 5680 - Fix an assertion failure that could result from a corrupted 5681 ADD_ONION control port command. Found by Saibato. Fixes bug 33137; 5682 bugfix on 0.3.3.1-alpha. This issue is also tracked 5683 as TROVE-2020-003. 5684 5685 o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha): 5686 - Fix a syntax warning given by newer versions of Rust that was 5687 creating problems for our continuous integration. Fixes bug 33212; 5688 bugfix on 0.3.5.1-alpha. 5689 5690 o Testing (Travis CI, backport from 0.4.3.3-alpha): 5691 - Remove a redundant distcheck job. Closes ticket 33194. 5692 - Sort the Travis jobs in order of speed: putting the slowest jobs 5693 first takes full advantage of Travis job concurrency. Closes 5694 ticket 33194. 5695 - Stop allowing the Chutney IPv6 Travis job to fail. This job was 5696 previously configured to fast_finish (which requires 5697 allow_failure), to speed up the build. Closes ticket 33195. 5698 - When a Travis chutney job fails, use chutney's new "diagnostics.sh" 5699 tool to produce detailed diagnostic output. Closes ticket 32792. 5700 5701 5702 Changes in version 0.3.5.10 - 2020-03-18 5703 Tor 0.3.5.10 backports many fixes from later Tor releases, including a 5704 fix for TROVE-2020-002, a major denial-of-service vulnerability that 5705 affected all released Tor instances since 0.2.1.5-alpha. Using this 5706 vulnerability, an attacker could cause Tor instances to consume a huge 5707 amount of CPU, disrupting their operations for several seconds or 5708 minutes. This attack could be launched by anybody against a relay, or 5709 by a directory cache against any client that had connected to it. The 5710 attacker could launch this attack as much as they wanted, thereby 5711 disrupting service or creating patterns that could aid in traffic 5712 analysis. This issue was found by OSS-Fuzz, and is also tracked 5713 as CVE-2020-10592. 5714 5715 We do not have reason to believe that this attack is currently being 5716 exploited in the wild, but nonetheless we advise everyone to upgrade 5717 as soon as packages are available. 5718 5719 o Major bugfixes (security, denial-of-service, backport from 0.4.3.3-alpha): 5720 - Fix a denial-of-service bug that could be used by anyone to 5721 consume a bunch of CPU on any Tor relay or authority, or by 5722 directories to consume a bunch of CPU on clients or hidden 5723 services. Because of the potential for CPU consumption to 5724 introduce observable timing patterns, we are treating this as a 5725 high-severity security issue. Fixes bug 33119; bugfix on 5726 0.2.1.5-alpha. Found by OSS-Fuzz. We are also tracking this issue 5727 as TROVE-2020-002 and CVE-2020-10592. 5728 5729 o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha): 5730 - Correct how we use libseccomp. Particularly, stop assuming that 5731 rules are applied in a particular order or that more rules are 5732 processed after the first match. Neither is the case! In 5733 libseccomp <2.4.0 this lead to some rules having no effect. 5734 libseccomp 2.4.0 changed how rules are generated, leading to a 5735 different ordering, which in turn led to a fatal crash during 5736 startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by 5737 Peter Gerber. 5738 5739 o Minor features (continuous integration, backport from 0.4.3.2-alpha): 5740 - Stop allowing failures on the Travis CI stem tests job. It looks 5741 like all the stem hangs we were seeing before are now fixed. 5742 Closes ticket 33075. 5743 5744 o Minor bugfixes (bridges, backport from 0.4.3.1-alpha): 5745 - Lowercase the configured value of BridgeDistribution before adding 5746 it to the descriptor. Fixes bug 32753; bugfix on 0.3.2.3-alpha. 5747 5748 o Minor bugfixes (crash, backport from 0.4.2.4-rc): 5749 - When running Tor with an option like --verify-config or 5750 --dump-config that does not start the event loop, avoid crashing 5751 if we try to exit early because of an error. Fixes bug 32407; 5752 bugfix on 0.3.3.1-alpha. 5753 5754 o Minor bugfixes (logging, backport from 0.4.3.2-alpha): 5755 - If we encounter a bug when flushing a buffer to a TLS connection, 5756 only log the bug once per invocation of the Tor process. 5757 Previously we would log with every occurrence, which could cause 5758 us to run out of disk space. Fixes bug 33093; bugfix 5759 on 0.3.2.2-alpha. 5760 5761 o Minor bugfixes (onion services v3, backport from 0.4.3.3-alpha): 5762 - Fix an assertion failure that could result from a corrupted 5763 ADD_ONION control port command. Found by Saibato. Fixes bug 33137; 5764 bugfix on 0.3.3.1-alpha. This issue is also tracked 5765 as TROVE-2020-003. 5766 5767 o Minor bugfixes (rust, build, backport from 0.4.3.2-alpha): 5768 - Fix a syntax warning given by newer versions of Rust that was 5769 creating problems for our continuous integration. Fixes bug 33212; 5770 bugfix on 0.3.5.1-alpha. 5771 5772 o Testing (backport from 0.4.3.1-alpha): 5773 - Re-enable the Travis CI macOS Chutney build, but don't let it 5774 prevent the Travis job from finishing. (The Travis macOS jobs are 5775 slow, so we don't want to have it delay the whole CI process.) 5776 Closes ticket 32629. 5777 - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on 5778 Ubuntu Bionic. Turning off the Sandbox is a work-around, until we 5779 fix the sandbox errors in 32722. Closes ticket 32240. 5780 5781 o Testing (continuous integration, backport from 0.4.3.1-alpha): 5782 - Use zstd in our Travis Linux builds. Closes ticket 32242. 5783 5784 o Testing (Travis CI, backport from 0.4.3.3-alpha): 5785 - Remove a redundant distcheck job. Closes ticket 33194. 5786 - Sort the Travis jobs in order of speed: putting the slowest jobs 5787 first takes full advantage of Travis job concurrency. Closes 5788 ticket 33194. 5789 - Stop allowing the Chutney IPv6 Travis job to fail. This job was 5790 previously configured to fast_finish (which requires 5791 - When a Travis chutney job fails, use chutney's new "diagnostics.sh" 5792 tool to produce detailed diagnostic output. Closes ticket 32792. 5793 5794 5795 Changes in version 0.4.2.6 - 2020-01-30 5796 This is the second stable release in the 0.4.2.x series. It backports 5797 several bugfixes from 0.4.3.1-alpha, including some that had affected 5798 the Linux seccomp2 sandbox or Windows services. If you're running with 5799 one of those configurations, you'll probably want to upgrade; 5800 otherwise, you should be fine with 0.4.2.5. 5801 5802 o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha): 5803 - Correct how we use libseccomp. Particularly, stop assuming that 5804 rules are applied in a particular order or that more rules are 5805 processed after the first match. Neither is the case! In 5806 libseccomp <2.4.0 this led to some rules having no effect. 5807 libseccomp 2.4.0 changed how rules are generated, leading to a 5808 different ordering, which in turn led to a fatal crash during 5809 startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by 5810 Peter Gerber. 5811 - Fix crash when reloading logging configuration while the 5812 experimental sandbox is enabled. Fixes bug 32841; bugfix on 5813 0.4.1.7. Patch by Peter Gerber. 5814 5815 o Minor bugfixes (correctness checks, backport from 0.4.3.1-alpha): 5816 - Use GCC/Clang's printf-checking feature to make sure that 5817 tor_assertf() arguments are correctly typed. Fixes bug 32765; 5818 bugfix on 0.4.1.1-alpha. 5819 5820 o Minor bugfixes (logging, crash, backport from 0.4.3.1-alpha): 5821 - Avoid a possible crash when trying to log a (fatal) assertion 5822 failure about mismatched magic numbers in configuration objects. 5823 Fixes bug 32771; bugfix on 0.4.2.1-alpha. 5824 5825 o Minor bugfixes (testing, backport from 0.4.3.1-alpha): 5826 - When TOR_DISABLE_PRACTRACKER is set, do not apply it to the 5827 test_practracker.sh script. Doing so caused a test failure. Fixes 5828 bug 32705; bugfix on 0.4.2.1-alpha. 5829 - When TOR_DISABLE_PRACTRACKER is set, log a notice to stderr when 5830 skipping practracker checks. Fixes bug 32705; bugfix 5831 on 0.4.2.1-alpha. 5832 5833 o Minor bugfixes (windows service, backport from 0.4.3.1-alpha): 5834 - Initialize the publish/subscribe system when running as a windows 5835 service. Fixes bug 32778; bugfix on 0.4.1.1-alpha. 5836 5837 o Testing (backport from 0.4.3.1-alpha): 5838 - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on 5839 Ubuntu Bionic. Turning off the Sandbox is a work-around, until we 5840 fix the sandbox errors in 32722. Closes ticket 32240. 5841 - Re-enable the Travis CI macOS Chutney build, but don't let it 5842 prevent the Travis job from finishing. (The Travis macOS jobs are 5843 slow, so we don't want to have it delay the whole CI process.) 5844 Closes ticket 32629. 5845 5846 o Testing (continuous integration, backport from 0.4.3.1-alpha): 5847 - Use zstd in our Travis Linux builds. Closes ticket 32242. 5848 5849 5850 Changes in version 0.4.1.8 - 2020-01-30 5851 This release backports several bugfixes from later release series, 5852 including some that had affected the Linux seccomp2 sandbox or Windows 5853 services. If you're running with one of those configurations, you'll 5854 probably want to upgrade; otherwise, you should be fine with your 5855 current version of 0.4.1.x. 5856 5857 o Major bugfixes (linux seccomp sandbox, backport from 0.4.3.1-alpha): 5858 - Correct how we use libseccomp. Particularly, stop assuming that 5859 rules are applied in a particular order or that more rules are 5860 processed after the first match. Neither is the case! In 5861 libseccomp <2.4.0 this led to some rules having no effect. 5862 libseccomp 2.4.0 changed how rules are generated, leading to a 5863 different ordering, which in turn led to a fatal crash during 5864 startup. Fixes bug 29819; bugfix on 0.2.5.1-alpha. Patch by 5865 Peter Gerber. 5866 - Fix crash when reloading logging configuration while the 5867 experimental sandbox is enabled. Fixes bug 32841; bugfix on 5868 0.4.1.7. Patch by Peter Gerber. 5869 5870 o Minor bugfixes (crash, backport form 0.4.2.4-rc): 5871 - When running Tor with an option like --verify-config or 5872 --dump-config that does not start the event loop, avoid crashing 5873 if we try to exit early because of an error. Fixes bug 32407; 5874 bugfix on 0.3.3.1-alpha. 5875 5876 o Minor bugfixes (windows service, backport from 0.4.3.1-alpha): 5877 - Initialize the publish/subscribe system when running as a windows 5878 service. Fixes bug 32778; bugfix on 0.4.1.1-alpha. 5879 5880 o Testing (backport from 0.4.3.1-alpha): 5881 - Turn off Tor's Sandbox in Chutney jobs, and run those jobs on 5882 Ubuntu Bionic. Turning off the Sandbox is a work-around, until we 5883 fix the sandbox errors in 32722. Closes ticket 32240. 5884 - Re-enable the Travis CI macOS Chutney build, but don't let it 5885 prevent the Travis job from finishing. (The Travis macOS jobs are 5886 slow, so we don't want to have it delay the whole CI process.) 5887 Closes ticket 32629. 5888 5889 o Testing (continuous integration, backport from 0.4.3.1-alpha): 5890 - Use zstd in our Travis Linux builds. Closes ticket 32242. 5891 5892 5893 Changes in version 0.4.2.5 - 2019-12-09 5894 This is the first stable release in the 0.4.2.x series. This series 5895 improves reliability and stability, and includes several stability and 5896 correctness improvements for onion services. It also fixes many smaller 5897 bugs present in previous series. 5898 5899 Per our support policy, we will support the 0.4.2.x series for nine 5900 months, or until three months after the release of a stable 0.4.3.x: 5901 whichever is longer. If you need longer-term support, please stick 5902 with 0.3.5.x, which will we plan to support until Feb 2022. 5903 5904 Below are the changes since 0.4.1.4-rc. For a complete list of only 5905 the changes since 0.4.2.4-rc, see the ChangeLog file. 5906 5907 o Major features (directory authorities): 5908 - Directory authorities now reject relays running all currently 5909 deprecated release series. The currently supported release series 5910 are: 0.2.9, 0.3.5, 0.4.0, 0.4.1, and 0.4.2. Closes ticket 31549. 5911 5912 o Major features (onion service v3, denial of service): 5913 - Add onion service introduction denial of service defenses. Intro 5914 points can now rate-limit client introduction requests, using 5915 parameters that can be sent by the service within the 5916 ESTABLISH_INTRO cell. If the cell extension for this is not used, 5917 the intro point will honor the consensus parameters. Closes 5918 ticket 30924. 5919 5920 o Major bugfixes (circuit build, guard): 5921 - When considering upgrading circuits from "waiting for guard" to 5922 "open", always ignore circuits that are marked for close. 5923 Previously we could end up in the situation where a subsystem is 5924 notified of a circuit opening, but the circuit is still marked for 5925 close, leading to undesirable behavior. Fixes bug 30871; bugfix 5926 on 0.3.0.1-alpha. 5927 5928 o Major bugfixes (crash, Linux, Android): 5929 - Tolerate systems (including some Android installations) where 5930 madvise and MADV_DONTDUMP are available at build-time, but not at 5931 run time. Previously, these systems would notice a failed syscall 5932 and abort. Fixes bug 31570; bugfix on 0.4.1.1-alpha. 5933 - Tolerate systems (including some Linux installations) where 5934 madvise and/or MADV_DONTFORK are available at build-time, but not 5935 at run time. Previously, these systems would notice a failed 5936 syscall and abort. Fixes bug 31696; bugfix on 0.4.1.1-alpha. 5937 5938 o Major bugfixes (embedded Tor): 5939 - Avoid a possible crash when restarting Tor in embedded mode and 5940 enabling a different set of publish/subscribe messages. Fixes bug 5941 31898; bugfix on 0.4.1.1-alpha. 5942 5943 o Major bugfixes (relay): 5944 - Relays now respect their AccountingMax bandwidth again. When 5945 relays entered "soft" hibernation (which typically starts when 5946 we've hit 90% of our AccountingMax), we had stopped checking 5947 whether we should enter hard hibernation. Soft hibernation refuses 5948 new connections and new circuits, but the existing circuits can 5949 continue, meaning that relays could have exceeded their configured 5950 AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha. 5951 5952 o Major bugfixes (torrc parsing): 5953 - Stop ignoring torrc options after an %include directive, when the 5954 included directory ends with a file that does not contain any 5955 config options (but does contain comments or whitespace). Fixes 5956 bug 31408; bugfix on 0.3.1.1-alpha. 5957 5958 o Major bugfixes (v3 onion services): 5959 - Onion services now always use the exact number of intro points 5960 configured with the HiddenServiceNumIntroductionPoints option (or 5961 fewer if nodes are excluded). Before, a service could sometimes 5962 pick more intro points than configured. Fixes bug 31548; bugfix 5963 on 0.3.2.1-alpha. 5964 5965 o Minor feature (onion services, control port): 5966 - The ADD_ONION command's keyword "BEST" now defaults to ED25519-V3 5967 (v3) onion services. Previously it defaulted to RSA1024 (v2). 5968 Closes ticket 29669. 5969 5970 o Minor features (auto-formatting scripts): 5971 - When annotating C macros, never generate a line that our check- 5972 spaces script would reject. Closes ticket 31759. 5973 - When annotating C macros, try to remove cases of double-negation. 5974 Closes ticket 31779. 5975 5976 o Minor features (best practices tracker): 5977 - Our best-practices tracker now integrates with our include-checker 5978 tool to keep track of how many layering violations we have not yet 5979 fixed. We hope to reduce this number over time to improve Tor's 5980 modularity. Closes ticket 31176. 5981 - Add a TOR_PRACTRACKER_OPTIONS variable for passing arguments to 5982 practracker from the environment. We may want this for continuous 5983 integration. Closes ticket 31309. 5984 - Give a warning rather than an error when a practracker exception 5985 is violated by a small amount, add a --list-overbroad option to 5986 practracker that lists exceptions that are stricter than they need 5987 to be, and provide an environment variable for disabling 5988 practracker. Closes ticket 30752. 5989 - Our best-practices tracker now looks at headers as well as C 5990 files. Closes ticket 31175. 5991 5992 o Minor features (build system): 5993 - Make pkg-config use --prefix when cross-compiling, if 5994 PKG_CONFIG_PATH is not set. Closes ticket 32191. 5995 - Add --disable-manpage and --disable-html-manual options to 5996 configure script. This will enable shortening build times by not 5997 building documentation. Resolves issue 19381. 5998 5999 o Minor features (compilation): 6000 - Log a more useful error message when we are compiling and one of 6001 the compile-time hardening options we have selected can be linked 6002 but not executed. Closes ticket 27530. 6003 6004 o Minor features (configuration): 6005 - The configuration code has been extended to allow splitting 6006 configuration data across multiple objects. Previously, all 6007 configuration data needed to be kept in a single object, which 6008 tended to become bloated. Closes ticket 31240. 6009 6010 o Minor features (continuous integration): 6011 - When building on Appveyor and Travis, pass the "-k" flag to make, 6012 so that we are informed of all compilation failures, not just the 6013 first one or two. Closes ticket 31372. 6014 - When running CI builds on Travis, put some random data in 6015 ~/.torrc, to make sure no tests are reading the Tor configuration 6016 file from its default location. Resolves issue 30102. 6017 6018 o Minor features (debugging): 6019 - Log a nonfatal assertion failure if we encounter a configuration 6020 line whose command is "CLEAR" but which has a nonempty value. This 6021 should be impossible, according to the rules of our configuration 6022 line parsing. Closes ticket 31529. 6023 6024 o Minor features (geoip): 6025 - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2 6026 Country database. Closes ticket 32685. 6027 6028 o Minor features (git hooks): 6029 - Our pre-commit git hook now checks for a special file before 6030 running practracker, so that practracker only runs on branches 6031 that are based on master. Since the pre-push hook calls the pre- 6032 commit hook, practracker will also only run before pushes of 6033 branches based on master. Closes ticket 30979. 6034 6035 o Minor features (git scripts): 6036 - Add a "--" command-line argument, to separate git-push-all.sh 6037 script arguments from arguments that are passed through to git 6038 push. Closes ticket 31314. 6039 - Add a -r <remote-name> argument to git-push-all.sh, so the script 6040 can push test branches to a personal remote. Closes ticket 31314. 6041 - Add a -t <test-branch-prefix> argument to git-merge-forward.sh and 6042 git-push-all.sh, which makes these scripts create, merge forward, 6043 and push test branches. Closes ticket 31314. 6044 - Add a -u argument to git-merge-forward.sh, so that the script can 6045 re-use existing test branches after a merge failure and fix. 6046 Closes ticket 31314. 6047 - Add a TOR_GIT_PUSH env var, which sets the default git push 6048 command and arguments for git-push-all.sh. Closes ticket 31314. 6049 - Add a TOR_PUSH_DELAY variable to git-push-all.sh, which makes the 6050 script push master and maint branches with a delay between each 6051 branch. These delays trigger the CI jobs in a set order, which 6052 should show the most likely failures first. Also make pushes 6053 atomic by default, and make the script pass any command-line 6054 arguments to git push. Closes ticket 29879. 6055 - Call the shellcheck script from the pre-commit hook. Closes 6056 ticket 30967. 6057 - Skip pushing test branches that are the same as a remote 6058 maint/release/master branch in git-push-all.sh by default. Add a 6059 -s argument, so git-push-all.sh can push all test branches. Closes 6060 ticket 31314. 6061 6062 o Minor features (IPv6, logging): 6063 - Log IPv6 addresses as well as IPv4 addresses when describing 6064 routerinfos, routerstatuses, and nodes. Closes ticket 21003. 6065 6066 o Minor features (maintenance scripts): 6067 - Add a Coccinelle script to detect bugs caused by incrementing or 6068 decrementing a variable inside a call to log_debug(). Since 6069 log_debug() is a macro whose arguments are conditionally 6070 evaluated, it is usually an error to do this. One such bug was 6071 30628, in which SENDME cells were miscounted by a decrement 6072 operator inside a log_debug() call. Closes ticket 30743. 6073 6074 o Minor features (onion service v3): 6075 - Do not allow single hop clients to fetch or post an HS descriptor 6076 from an HSDir. Closes ticket 24964. 6077 6078 o Minor features (onion service): 6079 - Disallow single-hop clients at the introduction point. We've 6080 removed Tor2web support a while back and single-hop rendezvous 6081 attempts are blocked at the relays. This change should remove load 6082 off the network from spammy clients. Close ticket 24963. 6083 6084 o Minor features (onion services v3): 6085 - Assist users who try to setup v2 client authorization in v3 onion 6086 services by pointing them to the right documentation. Closes 6087 ticket 28966. 6088 6089 o Minor features (stem tests): 6090 - Change "make test-stem" so it only runs the stem tests that use 6091 tor. This change makes test-stem faster and more reliable. Closes 6092 ticket 31554. 6093 6094 o Minor features (testing): 6095 - When running tests that attempt to look up hostnames, replace the 6096 libc name lookup functions with ones that do not actually touch 6097 the network. This way, the tests complete more quickly in the 6098 presence of a slow or missing DNS resolver. Closes ticket 31841. 6099 - Add a script to invoke "tor --dump-config" and "tor 6100 --verify-config" with various configuration options, and see 6101 whether tor's resulting configuration or error messages are what 6102 we expect. Use it for integration testing of our +Option and 6103 /Option flags. Closes ticket 31637. 6104 - Improve test coverage for our existing configuration parsing and 6105 management API. Closes ticket 30893. 6106 - Add integration tests to make sure that practracker gives the 6107 outputs we expect. Closes ticket 31477. 6108 - The practracker self-tests are now run as part of the Tor test 6109 suite. Closes ticket 31304. 6110 6111 o Minor features (testing, continuous integration): 6112 - Disable all but one Travis CI macOS build, to mitigate slow 6113 scheduling of Travis macOS jobs. Closes ticket 32177. 6114 - Run the chutney IPv6 networks as part of Travis CI. Closes 6115 ticket 30860. 6116 - Simplify the Travis CI build matrix, and optimise for build time. 6117 Closes ticket 31859. 6118 - Use Windows Server 2019 instead of Windows Server 2016 in our 6119 Appveyor builds. Closes ticket 32086. 6120 6121 o Minor features (token bucket): 6122 - Implement a generic token bucket that uses a single counter, for 6123 use in anti-DoS onion service work. Closes ticket 30687. 6124 6125 o Minor bugfixes (Appveyor continuous integration): 6126 - Avoid spurious errors when Appveyor CI fails before the install 6127 step. Fixes bug 31884; bugfix on 0.3.4.2-alpha. 6128 6129 o Minor bugfixes (best practices tracker): 6130 - Fix a few issues in the best-practices script, including tests, 6131 tab tolerance, error reporting, and directory-exclusion logic. 6132 Fixes bug 29746; bugfix on 0.4.1.1-alpha. 6133 - When running check-best-practices, only consider files in the src 6134 subdirectory. Previously we had recursively considered all 6135 subdirectories, which made us get confused by the temporary 6136 directories made by "make distcheck". Fixes bug 31578; bugfix 6137 on 0.4.1.1-alpha. 6138 6139 o Minor bugfixes (build system): 6140 - Interpret "--disable-module-dirauth=no" correctly. Fixes bug 6141 32124; bugfix on 0.3.4.1-alpha. 6142 - Interpret "--with-tcmalloc=no" correctly. Fixes bug 32124; bugfix 6143 on 0.2.0.20-rc. 6144 - Stop failing when jemalloc is requested, but tcmalloc is not 6145 found. Fixes bug 32124; bugfix on 0.3.5.1-alpha. 6146 - When pkg-config is not installed, or a library that depends on 6147 pkg-config is not found, tell the user what to do to fix the 6148 problem. Fixes bug 31922; bugfix on 0.3.1.1-alpha. 6149 - Do not include the deprecated <sys/sysctl.h> on Linux or Windows 6150 systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha. 6151 6152 o Minor bugfixes (chutney, makefiles, documentation): 6153 - "make test-network-all" now shows the warnings from each test- 6154 network.sh run on the console, so developers see new warnings 6155 early. We've also improved the documentation for this feature, and 6156 renamed a Makefile variable so the code is self-documenting. Fixes 6157 bug 30455; bugfix on 0.3.0.4-rc. 6158 6159 o Minor bugfixes (client, onion service v3): 6160 - Fix a BUG() assertion that occurs within a very small race window 6161 between when a client intro circuit opens and when its descriptor 6162 gets cleaned up from the cache. The circuit is now closed early, 6163 which will trigger a re-fetch of the descriptor and continue the 6164 connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha. 6165 6166 o Minor bugfixes (code quality): 6167 - Fix "make check-includes" so it runs correctly on out-of-tree 6168 builds. Fixes bug 31335; bugfix on 0.3.5.1-alpha. 6169 6170 o Minor bugfixes (compilation): 6171 - Add more stub functions to fix compilation on Android with link- 6172 time optimization when --disable-module-dirauth is used. 6173 Previously, these compilation settings would make the compiler 6174 look for functions that didn't exist. Fixes bug 31552; bugfix 6175 on 0.4.1.1-alpha. 6176 - Suppress spurious float-conversion warnings from GCC when calling 6177 floating-point classifier functions on FreeBSD. Fixes part of bug 6178 31687; bugfix on 0.3.1.5-alpha. 6179 6180 o Minor bugfixes (configuration): 6181 - Invalid floating-point values in the configuration file are now 6182 treated as errors in the configuration. Previously, they were 6183 ignored and treated as zero. Fixes bug 31475; bugfix on 0.0.1. 6184 6185 o Minor bugfixes (connections): 6186 - Avoid trying to read data from closed connections, which can cause 6187 needless loops in Libevent and infinite loops in Shadow. Fixes bug 6188 30344; bugfix on 0.1.1.1-alpha. 6189 6190 o Minor bugfixes (controller protocol): 6191 - Fix the MAPADDRESS controller command to accept one or more 6192 arguments. Previously, it required two or more arguments, and 6193 ignored the first. Fixes bug 31772; bugfix on 0.4.1.1-alpha. 6194 6195 o Minor bugfixes (coverity): 6196 - Add an assertion when parsing a BEGIN cell so that coverity can be 6197 sure that we are not about to dereference a NULL address. Fixes 6198 bug 31026; bugfix on 0.2.4.7-alpha. This is CID 1447296. 6199 - In our siphash implementation, when building for coverity, use 6200 memcpy in place of a switch statement, so that coverity can tell 6201 we are not accessing out-of-bounds memory. Fixes bug 31025; bugfix 6202 on 0.2.8.1-alpha. This is tracked as CID 1447293 and 1447295. 6203 - Fix several coverity warnings from our unit tests. Fixes bug 6204 31030; bugfix on 0.2.4.1-alpha, 0.3.2.1-alpha, and 0.4.0.1-alpha. 6205 6206 o Minor bugfixes (crash): 6207 - When running Tor with an option like --verify-config or 6208 --dump-config that does not start the event loop, avoid crashing 6209 if we try to exit early because of an error. Fixes bug 32407; 6210 bugfix on 0.3.3.1-alpha. 6211 6212 o Minor bugfixes (developer tooling): 6213 - Only log git script changes in the post-merge script when the 6214 merge was to the master branch. Fixes bug 31040; bugfix 6215 on 0.4.1.1-alpha. 6216 6217 o Minor bugfixes (directory authorities): 6218 - Return a distinct status when formatting annotations fails. Fixes 6219 bug 30780; bugfix on 0.2.0.8-alpha. 6220 6221 o Minor bugfixes (error handling): 6222 - Always lock the backtrace buffer before it is used. Fixes bug 6223 31734; bugfix on 0.2.5.3-alpha. 6224 - On abort, try harder to flush the output buffers of log messages. 6225 On some platforms (macOS), log messages could be discarded when 6226 the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha. 6227 - Report the tor version whenever an assertion fails. Previously, we 6228 only reported the Tor version on some crashes, and some non-fatal 6229 assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha. 6230 - When tor aborts due to an error, close log file descriptors before 6231 aborting. Closing the logs makes some OSes flush log file buffers, 6232 rather than deleting buffered log lines. Fixes bug 31594; bugfix 6233 on 0.2.5.2-alpha. 6234 6235 o Minor bugfixes (FreeBSD, PF-based proxy, IPv6): 6236 - When extracting an IPv6 address from a PF-based proxy, verify that 6237 we are actually configured to receive an IPv6 address, and log an 6238 internal error if not. Fixes part of bug 31687; bugfix 6239 on 0.2.3.4-alpha. 6240 6241 o Minor bugfixes (git hooks): 6242 - Remove a duplicate call to practracker from the pre-push hook. The 6243 pre-push hook already calls the pre-commit hook, which calls 6244 practracker. Fixes bug 31462; bugfix on 0.4.1.1-alpha. 6245 6246 o Minor bugfixes (git scripts): 6247 - Stop hard-coding the bash path in the git scripts. Some OSes don't 6248 have bash in /usr/bin, others have an ancient bash at this path. 6249 Fixes bug 30840; bugfix on 0.4.0.1-alpha. 6250 - Stop hard-coding the tor master branch name and worktree path in 6251 the git scripts. Fixes bug 30841; bugfix on 0.4.0.1-alpha. 6252 - Allow git-push-all.sh to be run from any directory. Previously, 6253 the script only worked if run from an upstream worktree directory. 6254 Closes ticket 31678. 6255 6256 o Minor bugfixes (guards): 6257 - When tor is missing descriptors for some primary entry guards, 6258 make the log message less alarming. It's normal for descriptors to 6259 expire, as long as tor fetches new ones soon after. Fixes bug 6260 31657; bugfix on 0.3.3.1-alpha. 6261 6262 o Minor bugfixes (ipv6): 6263 - Check for private IPv6 addresses alongside their IPv4 equivalents 6264 when authorities check descriptors. Previously, we only checked 6265 for private IPv4 addresses. Fixes bug 31088; bugfix on 6266 0.2.3.21-rc. Patch by Neel Chauhan. 6267 - When parsing microdescriptors, we should check the IPv6 exit 6268 policy alongside IPv4. Previously, we checked both exit policies 6269 for only router info structures, while microdescriptors were 6270 IPv4-only. Fixes bug 27284; bugfix on 0.2.3.1-alpha. Patch by 6271 Neel Chauhan. 6272 6273 o Minor bugfixes (logging): 6274 - Add a missing check for HAVE_PTHREAD_H, because the backtrace code 6275 uses mutexes. Fixes bug 31614; bugfix on 0.2.5.2-alpha. 6276 - Disable backtrace signal handlers when shutting down tor. Fixes 6277 bug 31614; bugfix on 0.2.5.2-alpha. 6278 - Rate-limit the logging message about the obsolete .exit 6279 notation. Previously, there was no limit on this warning, which 6280 could potentially be triggered many times by a hostile website. 6281 Fixes bug 31466; bugfix on 0.2.2.1-alpha. 6282 - When initialising log domain masks, only set known log domains. 6283 Fixes bug 31854; bugfix on 0.2.1.1-alpha. 6284 - Change log level of message "Hash of session info was not as 6285 expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix 6286 on 0.1.1.10-alpha. 6287 - Fix a code issue that would have broken our parsing of log domains 6288 as soon as we had 33 of them. Fortunately, we still only have 29. 6289 Fixes bug 31451; bugfix on 0.4.1.4-rc. 6290 6291 o Minor bugfixes (logging, protocol violations): 6292 - Do not log a nonfatal assertion failure when receiving a VERSIONS 6293 cell on a connection using the obsolete v1 link protocol. Log a 6294 protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha. 6295 6296 o Minor bugfixes (mainloop, periodic events, in-process API): 6297 - Reset the periodic events' "enabled" flag when Tor is shut down 6298 cleanly. Previously, this flag was left on, which caused periodic 6299 events not to be re-enabled when Tor was relaunched in-process 6300 with tor_api.h after a shutdown. Fixes bug 32058; bugfix 6301 on 0.3.3.1-alpha. 6302 6303 o Minor bugfixes (memory management): 6304 - Stop leaking a small amount of memory in nt_service_install(), in 6305 unreachable code. Fixes bug 30799; bugfix on 0.2.0.7-alpha. Patch 6306 by Xiaoyin Liu. 6307 6308 o Minor bugfixes (modules): 6309 - Explain what the optional Directory Authority module is, and what 6310 happens when it is disabled. Fixes bug 31825; bugfix 6311 on 0.3.4.1-alpha. 6312 6313 o Minor bugfixes (multithreading): 6314 - Avoid some undefined behaviour when freeing mutexes. Fixes bug 6315 31736; bugfix on 0.0.7. 6316 6317 o Minor bugfixes (networking, IP addresses): 6318 - When parsing addresses via Tor's internal DNS lookup API, reject 6319 IPv4 addresses in square brackets, and accept IPv6 addresses in 6320 square brackets. This change completes the work started in 23082, 6321 making address parsing consistent between tor's internal DNS 6322 lookup and address parsing APIs. Fixes bug 30721; bugfix 6323 on 0.2.1.5-alpha. 6324 - When parsing addresses via Tor's internal address:port parsing and 6325 DNS lookup APIs, require IPv6 addresses with ports to have square 6326 brackets. But allow IPv6 addresses without ports, whether or not 6327 they have square brackets. Fixes bug 30721; bugfix 6328 on 0.2.1.5-alpha. 6329 6330 o Minor bugfixes (onion service v3): 6331 - When purging the client descriptor cache, close any introduction 6332 point circuits associated with purged cache entries. This avoids 6333 picking those circuits later when connecting to the same 6334 introduction points. Fixes bug 30921; bugfix on 0.3.2.1-alpha. 6335 6336 o Minor bugfixes (onion services): 6337 - In the hs_ident_circuit_t data structure, remove the unused field 6338 circuit_type and the respective argument in hs_ident_circuit_new(). 6339 This field was set by clients (for introduction) and services (for 6340 introduction and rendezvous) but was never used afterwards. Fixes 6341 bug 31490; bugfix on 0.3.2.1-alpha. Patch by Neel Chauhan. 6342 6343 o Minor bugfixes (operator tools): 6344 - Make tor-print-ed-signing-cert(1) print certificate expiration 6345 date in RFC 1123 and UNIX timestamp formats, to make output 6346 machine readable. Fixes bug 31012; bugfix on 0.3.5.1-alpha. 6347 6348 o Minor bugfixes (process management): 6349 - Remove overly strict assertions that triggered when a pluggable 6350 transport failed to launch. Fixes bug 31091; bugfix 6351 on 0.4.0.1-alpha. 6352 - Remove an assertion in the Unix process backend. This assertion 6353 would trigger when we failed to find the executable for a child 6354 process. Fixes bug 31810; bugfix on 0.4.0.1-alpha. 6355 6356 o Minor bugfixes (relay): 6357 - Avoid crashing when starting with a corrupt keys directory where 6358 the old ntor key and the new ntor key are identical. Fixes bug 6359 30916; bugfix on 0.2.4.8-alpha. 6360 6361 o Minor bugfixes (rust): 6362 - Correctly exclude a redundant rust build job in Travis. Fixes bug 6363 31463; bugfix on 0.3.5.4-alpha. 6364 - Raise the minimum rustc version to 1.31.0, as checked by configure 6365 and CI. Fixes bug 31442; bugfix on 0.3.5.4-alpha. 6366 6367 o Minor bugfixes (sendme, code structure): 6368 - Rename the trunnel SENDME file definition from sendme.trunnel to 6369 sendme_cell.trunnel to avoid having twice sendme.{c|h} in the 6370 repository. Fixes bug 30769; bugfix on 0.4.1.1-alpha. 6371 6372 o Minor bugfixes (statistics): 6373 - Stop removing the ed25519 signature if the extra info file is too 6374 big. If the signature data was removed, but the keyword was kept, 6375 this could result in an unparseable extra info file. Fixes bug 6376 30958; bugfix on 0.2.7.2-alpha. 6377 6378 o Minor bugfixes (subsystems): 6379 - Make the subsystem init order match the subsystem module 6380 dependencies. Call windows process security APIs as early as 6381 possible. Initialize logging before network and time, so that 6382 network and time can use logging. Fixes bug 31615; bugfix 6383 on 0.4.0.1-alpha. 6384 6385 o Minor bugfixes (testing): 6386 - Avoid intermittent test failures due to a test that had relied on 6387 inconsistent timing sources. Fixes bug 31995; bugfix 6388 on 0.3.1.3-alpha. 6389 - When testing port rebinding, don't busy-wait for tor to log. 6390 Instead, actually sleep for a short time before polling again. 6391 Also improve the formatting of control commands and log messages. 6392 Fixes bug 31837; bugfix on 0.3.5.1-alpha. 6393 - Teach the util/socketpair_ersatz test to work correctly when we 6394 have no network stack configured. Fixes bug 30804; bugfix 6395 on 0.2.5.1-alpha. 6396 6397 o Minor bugfixes (tests, SunOS): 6398 - Avoid a map_anon_nofork test failure due to a signed/unsigned 6399 integer comparison. Fixes bug 31897; bugfix on 0.4.1.1-alpha. 6400 6401 o Minor bugfixes (tls, logging): 6402 - Log bugs about the TLS read buffer's length only once, rather than 6403 filling the logs with similar warnings. Fixes bug 31939; bugfix 6404 on 0.3.0.4-rc. 6405 6406 o Minor bugfixes (v2 single onion services): 6407 - Always retry v2 single onion service intro and rend circuits with 6408 a 3-hop path. Previously, v2 single onion services used a 3-hop 6409 path when rendezvous circuits were retried after a remote or 6410 delayed failure, but a 1-hop path for immediate retries. Fixes bug 6411 23818; bugfix on 0.2.9.3-alpha. 6412 6413 o Minor bugfixes (v3 onion services): 6414 - When cleaning up intro circuits for a v3 onion service, don't 6415 remove circuits that have an established or pending circuit, even 6416 if they ran out of retries. This way, we don't remove a circuit on 6417 its last retry. Fixes bug 31652; bugfix on 0.3.2.1-alpha. 6418 6419 o Minor bugfixes (v3 single onion services): 6420 - Always retry v3 single onion service intro and rend circuits with 6421 a 3-hop path. Previously, v3 single onion services used a 3-hop 6422 path when rend circuits were retried after a remote or delayed 6423 failure, but a 1-hop path for immediate retries. Fixes bug 23818; 6424 bugfix on 0.3.2.1-alpha. 6425 - Make v3 single onion services fall back to a 3-hop intro, when all 6426 intro points are unreachable via a 1-hop path. Previously, v3 6427 single onion services failed when all intro nodes were unreachable 6428 via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha. 6429 6430 o Code simplification and refactoring: 6431 - Refactor connection_control_process_inbuf() to reduce the size of 6432 a practracker exception. Closes ticket 31840. 6433 - Refactor the microdescs_parse_from_string() function into smaller 6434 pieces, for better comprehensibility. Closes ticket 31675. 6435 - Use SEVERITY_MASK_IDX() to find the LOG_* mask indexes in the unit 6436 tests and fuzzers, rather than using hard-coded values. Closes 6437 ticket 31334. 6438 - Interface for function `decrypt_desc_layer` cleaned up. Closes 6439 ticket 31589. 6440 6441 o Documentation: 6442 - Correct the description of "GuardLifetime". Fixes bug 31189; 6443 bugfix on 0.3.0.1-alpha. 6444 - Make clear in the man page, in both the bandwidth section and the 6445 AccountingMax section, that Tor counts in powers of two, not 6446 powers of ten: 1 GByte is 1024*1024*1024 bytes, not one billion 6447 bytes. Resolves ticket 32106. 6448 - Document the signal-safe logging behaviour in the tor man page. 6449 Also add some comments to the relevant functions. Closes 6450 ticket 31839. 6451 - Explain why we can't destroy the backtrace buffer mutex. Explain 6452 why we don't need to destroy the log mutex. Closes ticket 31736. 6453 - The Tor source code repository now includes a (somewhat dated) 6454 description of Tor's modular architecture, in doc/HACKING/design. 6455 This is based on the old "tor-guts.git" repository, which we are 6456 adopting and superseding. Closes ticket 31849. 6457 - Improve documentation in circuit padding subsystem. Patch by 6458 Tobias Pulls. Closes ticket 31113. 6459 - Include an example usage for IPv6 ORPort in our sample torrc. 6460 Closes ticket 31320; patch from Ali Raheem. 6461 - Use RFC 2397 data URL scheme to embed an image into tor-exit- 6462 notice.html so that operators no longer have to host it 6463 themselves. Closes ticket 31089. 6464 6465 o Removed features: 6466 - No longer include recommended package digests in votes as detailed 6467 in proposal 301. The RecommendedPackages torrc option is 6468 deprecated and will no longer have any effect. "package" lines 6469 will still be considered when computing consensuses for consensus 6470 methods that include them. (This change has no effect on the list 6471 of recommended Tor versions, which is still in use.) Closes 6472 ticket 29738. 6473 - Remove torctl.in from contrib/dist directory. Resolves 6474 ticket 30550. 6475 6476 o Testing: 6477 - Require C99 standards-conforming code in Travis CI, but allow GNU 6478 gcc extensions. Also activates clang's -Wtypedef-redefinition 6479 warnings. Build some jobs with -std=gnu99, and some jobs without. 6480 Closes ticket 32500. 6481 - Run shellcheck for all non-third-party shell scripts that are 6482 shipped with Tor. Closes ticket 29533. 6483 - When checking shell scripts, ignore any user-created directories. 6484 Closes ticket 30967. 6485 6486 o Code simplification and refactoring (config handling): 6487 - Extract our variable manipulation code from confparse.c to a new 6488 lower-level typedvar.h module. Closes ticket 30864. 6489 - Lower another layer of object management from confparse.c to a 6490 more general tool. Now typed structure members are accessible via 6491 an abstract type. Implements ticket 30914. 6492 - Move our backend logic for working with configuration and state 6493 files into a lower-level library, since it no longer depends on 6494 any tor-specific functionality. Closes ticket 31626. 6495 - Numerous simplifications in configuration-handling logic: remove 6496 duplicated macro definitions, replace magical names with flags, 6497 and refactor "TestingTorNetwork" to use the same default-option 6498 logic as the rest of Tor. Closes ticket 30935. 6499 - Replace our ad-hoc set of flags for configuration variables and 6500 configuration variable types with fine-grained orthogonal flags 6501 corresponding to the actual behavior we want. Closes ticket 31625. 6502 6503 o Code simplification and refactoring (misc): 6504 - Eliminate some uses of lower-level control reply abstractions, 6505 primarily in the onion_helper functions. Closes ticket 30889. 6506 - Rework bootstrap tracking to use the new publish-subscribe 6507 subsystem. Closes ticket 29976. 6508 - Rewrite format_node_description() and router_get_verbose_nickname() 6509 to use strlcpy() and strlcat(). The previous implementation used 6510 memcpy() and pointer arithmetic, which was error-prone. Closes 6511 ticket 31545. This is CID 1452819. 6512 - Split extrainfo_dump_to_string() into smaller functions. Closes 6513 ticket 30956. 6514 - Use the ptrdiff_t type consistently for expressing variable 6515 offsets and pointer differences. Previously we incorrectly (but 6516 harmlessly) used int and sometimes off_t for these cases. Closes 6517 ticket 31532. 6518 - Use the subsystems mechanism to manage the main event loop code. 6519 Closes ticket 30806. 6520 - Various simplifications and minor improvements to the circuit 6521 padding machines. Patch by Tobias Pulls. Closes tickets 31112 6522 and 31098. 6523 6524 o Documentation (hard-coded directories): 6525 - Improve the documentation for the DirAuthority and FallbackDir 6526 torrc options. Closes ticket 30955. 6527 6528 o Documentation (tor.1 man page): 6529 - Fix typo in tor.1 man page: the option is "--help", not "-help". 6530 Fixes bug 31008; bugfix on 0.2.2.9-alpha. 6531 6532 o Testing (continuous integration): 6533 - Use Ubuntu Bionic images for our Travis CI builds, so we can get a 6534 recent version of coccinelle. But leave chutney on Ubuntu Trusty, 6535 until we can fix some Bionic permissions issues (see ticket 6536 32240). Related to ticket 31919. 6537 - Install the mingw OpenSSL package in Appveyor. This makes sure 6538 that the OpenSSL headers and libraries match in Tor's Appveyor 6539 builds. (This bug was triggered by an Appveyor image update.) 6540 Fixes bug 32449; bugfix on 0.3.5.6-rc. 6541 - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241. 6542 6543 6544 Changes in version 0.4.1.7 - 2019-12-09 6545 This release backports several bugfixes to improve stability and 6546 correctness. Anyone experiencing build problems or crashes with 0.4.1.6, 6547 including all relays relying on AccountingMax, should upgrade. 6548 6549 o Major features (directory authorities, backport from 0.4.2.2-alpha): 6550 - Directory authorities now reject relays running all currently 6551 deprecated release series. The currently supported release series 6552 are: 0.2.9, 0.3.5, 0.4.0, 0.4.1, and 0.4.2. Closes ticket 31549. 6553 6554 o Major bugfixes (embedded Tor, backport from 0.4.2.2-alpha): 6555 - Avoid a possible crash when restarting Tor in embedded mode and 6556 enabling a different set of publish/subscribe messages. Fixes bug 6557 31898; bugfix on 0.4.1.1-alpha. 6558 6559 o Major bugfixes (relay, backport from 0.4.2.3-alpha): 6560 - Relays now respect their AccountingMax bandwidth again. When 6561 relays entered "soft" hibernation (which typically starts when 6562 we've hit 90% of our AccountingMax), we had stopped checking 6563 whether we should enter hard hibernation. Soft hibernation refuses 6564 new connections and new circuits, but the existing circuits can 6565 continue, meaning that relays could have exceeded their configured 6566 AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha. 6567 6568 o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha): 6569 - Stop ignoring torrc options after an %include directive, when the 6570 included directory ends with a file that does not contain any 6571 config options (but does contain comments or whitespace). Fixes 6572 bug 31408; bugfix on 0.3.1.1-alpha. 6573 6574 o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha): 6575 - Onion services now always use the exact number of intro points 6576 configured with the HiddenServiceNumIntroductionPoints option (or 6577 fewer if nodes are excluded). Before, a service could sometimes 6578 pick more intro points than configured. Fixes bug 31548; bugfix 6579 on 0.3.2.1-alpha. 6580 6581 o Minor features (continuous integration, backport from 0.4.2.2-alpha): 6582 - When building on Appveyor and Travis, pass the "-k" flag to make, 6583 so that we are informed of all compilation failures, not just the 6584 first one or two. Closes ticket 31372. 6585 6586 o Minor features (geoip, backport from 0.4.2.5): 6587 - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2 6588 Country database. Closes ticket 32685. 6589 6590 o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha): 6591 - Avoid spurious errors when Appveyor CI fails before the install step. 6592 Fixes bug 31884; bugfix on 0.3.4.2-alpha. 6593 6594 o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc): 6595 - Fix a BUG() assertion that occurs within a very small race window 6596 between when a client intro circuit opens and when its descriptor 6597 gets cleaned up from the cache. The circuit is now closed early, 6598 which will trigger a re-fetch of the descriptor and continue the 6599 connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha. 6600 6601 o Minor bugfixes (connections, backport from 0.4.2.3-rc): 6602 - Avoid trying to read data from closed connections, which can cause 6603 needless loops in Libevent and infinite loops in Shadow. Fixes bug 6604 30344; bugfix on 0.1.1.1-alpha. 6605 6606 o Minor bugfixes (error handling, backport from 0.4.2.1-alpha): 6607 - On abort, try harder to flush the output buffers of log messages. 6608 On some platforms (macOS), log messages could be discarded when 6609 the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha. 6610 - Report the tor version whenever an assertion fails. Previously, we 6611 only reported the Tor version on some crashes, and some non-fatal 6612 assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha. 6613 - When tor aborts due to an error, close log file descriptors before 6614 aborting. Closing the logs makes some OSes flush log file buffers, 6615 rather than deleting buffered log lines. Fixes bug 31594; bugfix 6616 on 0.2.5.2-alpha. 6617 6618 o Minor bugfixes (logging, backport from 0.4.2.2-alpha): 6619 - Add a missing check for HAVE_PTHREAD_H, because the backtrace code 6620 uses mutexes. Fixes bug 31614; bugfix on 0.2.5.2-alpha. 6621 - Disable backtrace signal handlers when shutting down tor. Fixes 6622 bug 31614; bugfix on 0.2.5.2-alpha. 6623 - Rate-limit the logging message about the obsolete .exit 6624 notation. Previously, there was no limit on this warning, which 6625 could potentially be triggered many times by a hostile website. 6626 Fixes bug 31466; bugfix on 0.2.2.1-alpha. 6627 6628 o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha): 6629 - Do not log a nonfatal assertion failure when receiving a VERSIONS 6630 cell on a connection using the obsolete v1 link protocol. Log a 6631 protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha. 6632 6633 o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha): 6634 - Reset the periodic events' "enabled" flag when Tor is shut down 6635 cleanly. Previously, this flag was left on, which caused periodic 6636 events not to be re-enabled when Tor was relaunched in-process 6637 with tor_api.h after a shutdown. Fixes bug 32058; bugfix 6638 on 0.3.3.1-alpha. 6639 6640 o Minor bugfixes (multithreading, backport from 0.4.2.2-alpha): 6641 - Avoid some undefined behaviour when freeing mutexes. Fixes bug 6642 31736; bugfix on 0.0.7. 6643 6644 o Minor bugfixes (process management, backport from 0.4.2.3-alpha): 6645 - Remove overly strict assertions that triggered when a pluggable 6646 transport failed to launch. Fixes bug 31091; bugfix 6647 on 0.4.0.1-alpha. 6648 - Remove an assertion in the Unix process backend. This assertion 6649 would trigger when we failed to find the executable for a child 6650 process. Fixes bug 31810; bugfix on 0.4.0.1-alpha. 6651 6652 o Minor bugfixes (relay, backport from 0.4.2.2-alpha): 6653 - Avoid crashing when starting with a corrupt keys directory where 6654 the old ntor key and the new ntor key are identical. Fixes bug 6655 30916; bugfix on 0.2.4.8-alpha. 6656 6657 o Minor bugfixes (testing, backport from 0.4.2.3-alpha): 6658 - When testing port rebinding, don't busy-wait for tor to log. 6659 Instead, actually sleep for a short time before polling again. 6660 Also improve the formatting of control commands and log messages. 6661 Fixes bug 31837; bugfix on 0.3.5.1-alpha. 6662 6663 o Minor bugfixes (tests, SunOS, backport from 0.4.2.2-alpha): 6664 - Avoid a map_anon_nofork test failure due to a signed/unsigned 6665 integer comparison. Fixes bug 31897; bugfix on 0.4.1.1-alpha. 6666 6667 o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha): 6668 - Log bugs about the TLS read buffer's length only once, rather than 6669 filling the logs with similar warnings. Fixes bug 31939; bugfix 6670 on 0.3.0.4-rc. 6671 6672 o Documentation (backport from 0.4.2.2-alpha): 6673 - Explain why we can't destroy the backtrace buffer mutex. Explain 6674 why we don't need to destroy the log mutex. Closes ticket 31736. 6675 6676 o Testing (continuous integration, backport from 0.4.2.3-alpha): 6677 - Disable all but one Travis CI macOS build, to mitigate slow 6678 scheduling of Travis macOS jobs. Closes ticket 32177. 6679 - Run the chutney IPv6 networks as part of Travis CI. Closes 6680 ticket 30860. 6681 - Simplify the Travis CI build matrix, and optimise for build time. 6682 Closes ticket 31859. 6683 - Use Windows Server 2019 instead of Windows Server 2016 in our 6684 Appveyor builds. Closes ticket 32086. 6685 6686 o Testing (continuous integration, backport from 0.4.2.4-rc): 6687 - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241. 6688 - Use Ubuntu Bionic images for our Travis CI builds, so we can get a 6689 recent version of coccinelle. But leave chutney on Ubuntu Trusty, 6690 until we can fix some Bionic permissions issues (see ticket 6691 32240). Related to ticket 31919. 6692 - Install the mingw OpenSSL package in Appveyor. This makes sure 6693 that the OpenSSL headers and libraries match in Tor's Appveyor 6694 builds. (This bug was triggered by an Appveyor image update.) 6695 Fixes bug 32449; bugfix on 0.3.5.6-rc. 6696 6697 o Testing (continuous integration, backport from 0.4.2.5): 6698 - Require C99 standards-conforming code in Travis CI, but allow GNU gcc 6699 extensions. Also activates clang's -Wtypedef-redefinition warnings. 6700 Build some jobs with -std=gnu99, and some jobs without. 6701 Closes ticket 32500. 6702 6703 6704 Changes in version 0.4.0.6 - 2019-12-09 6705 This is the second stable release in the 0.4.0.x series. This release 6706 backports several bugfixes to improve stability and correctness. Anyone 6707 experiencing build problems or crashes with 0.4.0.5, including all relays 6708 relying on AccountingMax, should upgrade. 6709 6710 Note that, per our support policy, support for the 0.4.0.x series will end 6711 on 2 Feb 2020. Anyone still running 0.4.0.x should plan to upgrade to the 6712 latest stable release, or downgrade to 0.3.5.x, which will get long-term 6713 support until 1 Feb 2022. 6714 6715 o Directory authority changes (backport from 0.4.1.5): 6716 - The directory authority "dizum" has a new IP address. Closes 6717 ticket 31406. 6718 6719 o Major bugfixes (bridges, backport from 0.4.1.2-alpha): 6720 - Consider our directory information to have changed when our list 6721 of bridges changes. Previously, Tor would not re-compute the 6722 status of its directory information when bridges changed, and 6723 therefore would not realize that it was no longer able to build 6724 circuits. Fixes part of bug 29875. 6725 - Do not count previously configured working bridges towards our 6726 total of working bridges. Previously, when Tor's list of bridges 6727 changed, it would think that the old bridges were still usable, 6728 and delay fetching router descriptors for the new ones. Fixes part 6729 of bug 29875; bugfix on 0.3.0.1-alpha. 6730 6731 o Major bugfixes (circuit build, guard, backport from 0.4.1.4-rc): 6732 - When considering upgrading circuits from "waiting for guard" to 6733 "open", always ignore circuits that are marked for close. Otherwise, 6734 we can end up in the situation where a subsystem is notified that 6735 a closing circuit has just opened, leading to undesirable 6736 behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha. 6737 6738 o Major bugfixes (Onion service reachability, backport from 0.4.1.3-alpha): 6739 - Properly clean up the introduction point map when circuits change 6740 purpose from onion service circuits to pathbias, measurement, or 6741 other circuit types. This should fix some service-side instances 6742 of introduction point failure. Fixes bug 29034; bugfix 6743 on 0.3.2.1-alpha. 6744 6745 o Major bugfixes (onion service v3, backport from 0.4.1.1-alpha): 6746 - Fix an unreachable bug in which an introduction point could try to 6747 send an INTRODUCE_ACK with a status code that Trunnel would refuse 6748 to encode, leading the relay to assert(). We've consolidated the 6749 ABI values into Trunnel now. Fixes bug 30454; bugfix 6750 on 0.3.0.1-alpha. 6751 - Clients can now handle unknown status codes from INTRODUCE_ACK 6752 cells. (The NACK behavior will stay the same.) This will allow us 6753 to extend status codes in the future without breaking the normal 6754 client behavior. Fixes another part of bug 30454; bugfix 6755 on 0.3.0.1-alpha. 6756 6757 o Major bugfixes (relay, backport from 0.4.2.3-alpha): 6758 - Relays now respect their AccountingMax bandwidth again. When 6759 relays entered "soft" hibernation (which typically starts when 6760 we've hit 90% of our AccountingMax), we had stopped checking 6761 whether we should enter hard hibernation. Soft hibernation refuses 6762 new connections and new circuits, but the existing circuits can 6763 continue, meaning that relays could have exceeded their configured 6764 AccountingMax. Fixes bug 32108; bugfix on 0.4.0.1-alpha. 6765 6766 o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha): 6767 - Stop ignoring torrc options after an %include directive, when the 6768 included directory ends with a file that does not contain any 6769 config options (but does contain comments or whitespace). Fixes 6770 bug 31408; bugfix on 0.3.1.1-alpha. 6771 6772 o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha): 6773 - Onion services now always use the exact number of intro points 6774 configured with the HiddenServiceNumIntroductionPoints option (or 6775 fewer if nodes are excluded). Before, a service could sometimes 6776 pick more intro points than configured. Fixes bug 31548; bugfix 6777 on 0.3.2.1-alpha. 6778 6779 o Minor features (compile-time modules, backport from version 0.4.1.1-alpha): 6780 - Add a "--list-modules" command to print a list of which compile- 6781 time modules are enabled. Closes ticket 30452. 6782 6783 o Minor features (continuous integration, backport from 0.4.1.1-alpha): 6784 - Remove sudo configuration lines from .travis.yml as they are no 6785 longer needed with current Travis build environment. Resolves 6786 issue 30213. 6787 6788 o Minor features (continuous integration, backport from 0.4.1.4-rc): 6789 - Our Travis configuration now uses Chutney to run some network 6790 integration tests automatically. Closes ticket 29280. 6791 6792 o Minor features (continuous integration, backport from 0.4.2.2-alpha): 6793 - When building on Appveyor and Travis, pass the "-k" flag to make, 6794 so that we are informed of all compilation failures, not just the 6795 first one or two. Closes ticket 31372. 6796 6797 o Minor features (fallback directory list, backport from 0.4.1.4-rc): 6798 - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc 6799 in December 2018 (of which ~122 were still functional), with a 6800 list of 148 fallbacks (70 new, 78 existing, 79 removed) generated 6801 in June 2019. Closes ticket 28795. 6802 6803 o Minor features (geoip, backport from 0.4.2.5): 6804 - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2 6805 Country database. Closes ticket 32685. 6806 6807 o Minor features (stem tests, backport from 0.4.2.1-alpha): 6808 - Change "make test-stem" so it only runs the stem tests that use 6809 tor. This change makes test-stem faster and more reliable. Closes 6810 ticket 31554. 6811 6812 o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha): 6813 - Avoid spurious errors when Appveyor CI fails before the install step. 6814 Fixes bug 31884; bugfix on 0.3.4.2-alpha. 6815 6816 o Minor bugfixes (build system, backport form 0.4.2.1-alpha): 6817 - Do not include the deprecated <sys/sysctl.h> on Linux or Windows 6818 systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha. 6819 6820 o Minor bugfixes (circuit isolation, backport from 0.4.1.3-alpha): 6821 - Fix a logic error that prevented the SessionGroup sub-option from 6822 being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha. 6823 6824 o Minor bugfixes (circuit padding, backport from 0.4.1.4-rc): 6825 - On relays, properly check that a padding machine is absent before 6826 logging a warning about it being absent. Fixes bug 30649; bugfix 6827 on 0.4.0.1-alpha. 6828 6829 o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc): 6830 - Fix a BUG() assertion that occurs within a very small race window 6831 between when a client intro circuit opens and when its descriptor 6832 gets cleaned up from the cache. The circuit is now closed early, 6833 which will trigger a re-fetch of the descriptor and continue the 6834 connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha. 6835 6836 o Minor bugfixes (clock skew detection, backport from 0.4.1.5): 6837 - Don't believe clock skew results from NETINFO cells that appear to 6838 arrive before we sent the VERSIONS cells they are responding to. 6839 Previously, we would accept them up to 3 minutes "in the past". 6840 Fixes bug 31343; bugfix on 0.2.4.4-alpha. 6841 6842 o Minor bugfixes (compilation warning, backport from 0.4.1.5): 6843 - Fix a compilation warning on Windows about casting a function 6844 pointer for GetTickCount64(). Fixes bug 31374; bugfix 6845 on 0.2.9.1-alpha. 6846 6847 o Minor bugfixes (compilation, backport from 0.4.1.5): 6848 - Avoid using labs() on time_t, which can cause compilation warnings 6849 on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha. 6850 6851 o Minor bugfixes (compilation, backport from 0.4.2.1-alpha): 6852 - Suppress spurious float-conversion warnings from GCC when calling 6853 floating-point classifier functions on FreeBSD. Fixes part of bug 6854 31687; bugfix on 0.3.1.5-alpha. 6855 6856 o Minor bugfixes (compilation, unusual configurations, backport from 0.4.1.1-alpha): 6857 - Avoid failures when building with the ALL_BUGS_ARE_FATAL option 6858 due to missing declarations of abort(), and prevent other such 6859 failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha. 6860 6861 o Minor bugfixes (configuration, proxies, backport from 0.4.1.2-alpha): 6862 - Fix a bug that prevented us from supporting SOCKS5 proxies that 6863 want authentication along with configured (but unused!) 6864 ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha. 6865 6866 o Minor bugfixes (connections, backport from 0.4.2.3-rc): 6867 - Avoid trying to read data from closed connections, which can cause 6868 needless loops in Libevent and infinite loops in Shadow. Fixes bug 6869 30344; bugfix on 0.1.1.1-alpha. 6870 6871 o Minor bugfixes (continuous integration, backport from 0.4.1.3-alpha): 6872 - Allow the test-stem job to fail in Travis, because it sometimes 6873 hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha. 6874 - Skip test_rebind on macOS in Travis, because it is unreliable on 6875 macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha. 6876 - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment 6877 variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha. 6878 6879 o Minor bugfixes (crash on exit, backport from 0.4.1.4-rc): 6880 - Avoid a set of possible code paths that could try to use freed 6881 memory in routerlist_free() while Tor was exiting. Fixes bug 6882 31003; bugfix on 0.1.2.2-alpha. 6883 6884 o Minor bugfixes (directory authorities, backport from 0.4.1.3-alpha): 6885 - Stop crashing after parsing an unknown descriptor purpose 6886 annotation. We think this bug can only be triggered by modifying a 6887 local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha. 6888 6889 o Minor bugfixes (directory authority, backport from 0.4.1.2-alpha): 6890 - Move the "bandwidth-file-headers" line in directory authority 6891 votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix 6892 on 0.3.5.1-alpha. 6893 6894 o Minor bugfixes (error handling, backport from 0.4.2.1-alpha): 6895 - On abort, try harder to flush the output buffers of log messages. 6896 On some platforms (macOS), log messages could be discarded when 6897 the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha. 6898 - Report the tor version whenever an assertion fails. Previously, we 6899 only reported the Tor version on some crashes, and some non-fatal 6900 assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha. 6901 6902 o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha): 6903 - When extracting an IPv6 address from a PF-based proxy, verify that 6904 we are actually configured to receive an IPv6 address, and log an 6905 internal error if not. Fixes part of bug 31687; bugfix 6906 on 0.2.3.4-alpha. 6907 6908 o Minor bugfixes (guards, backport from 0.4.2.1-alpha): 6909 - When tor is missing descriptors for some primary entry guards, 6910 make the log message less alarming. It's normal for descriptors to 6911 expire, as long as tor fetches new ones soon after. Fixes bug 6912 31657; bugfix on 0.3.3.1-alpha. 6913 6914 o Minor bugfixes (logging, backport from 0.4.1.1-alpha): 6915 - Do not log a warning when running with an OpenSSL version other 6916 than the one Tor was compiled with, if the two versions should be 6917 compatible. Previously, we would warn whenever the version was 6918 different. Fixes bug 30190; bugfix on 0.2.4.2-alpha. 6919 6920 o Minor bugfixes (logging, backport from 0.4.2.1-alpha): 6921 - Change log level of message "Hash of session info was not as 6922 expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix 6923 on 0.1.1.10-alpha. 6924 6925 o Minor bugfixes (logging, backport from 0.4.2.2-alpha): 6926 - Rate-limit the logging message about the obsolete .exit 6927 notation. Previously, there was no limit on this warning, which 6928 could potentially be triggered many times by a hostile website. 6929 Fixes bug 31466; bugfix on 0.2.2.1-alpha. 6930 6931 o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha): 6932 - Do not log a nonfatal assertion failure when receiving a VERSIONS 6933 cell on a connection using the obsolete v1 link protocol. Log a 6934 protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha. 6935 6936 o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha): 6937 - Reset the periodic events' "enabled" flag when Tor is shut down 6938 cleanly. Previously, this flag was left on, which caused periodic 6939 events not to be re-enabled when Tor was relaunched in-process 6940 with tor_api.h after a shutdown. Fixes bug 32058; bugfix 6941 on 0.3.3.1-alpha. 6942 6943 o Minor bugfixes (memory leak, backport from 0.4.1.1-alpha): 6944 - Avoid a minor memory leak that could occur on relays when failing 6945 to create a "keys" directory. Fixes bug 30148; bugfix 6946 on 0.3.3.1-alpha. 6947 6948 o Minor bugfixes (memory leak, backport from 0.4.1.4-rc): 6949 - Fix a trivial memory leak when parsing an invalid value 6950 from a download schedule in the configuration. Fixes bug 6951 30894; bugfix on 0.3.4.1-alpha. 6952 6953 o Minor bugfixes (NetBSD, backport from 0.4.1.2-alpha): 6954 - Fix usage of minherit() on NetBSD and other platforms that define 6955 MAP_INHERIT_{ZERO,NONE} instead of INHERIT_{ZERO,NONE}. Fixes bug 6956 30614; bugfix on 0.4.0.2-alpha. Patch from Taylor Campbell. 6957 6958 o Minor bugfixes (onion services, backport from 0.4.1.1-alpha): 6959 - Avoid a GCC 9.1.1 warning (and possible crash depending on libc 6960 implementation) when failing to load an onion service client 6961 authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha. 6962 6963 o Minor bugfixes (out-of-memory handler, backport from 0.4.1.2-alpha): 6964 - When purging the DNS cache because of an out-of-memory condition, 6965 try purging just the older entries at first. Previously, we would 6966 always purge the whole thing. Fixes bug 29617; bugfix 6967 on 0.3.5.1-alpha. 6968 6969 o Minor bugfixes (portability, backport from 0.4.1.2-alpha): 6970 - Avoid crashing in our tor_vasprintf() implementation on systems 6971 that define neither vasprintf() nor _vscprintf(). (This bug has 6972 been here long enough that we question whether people are running 6973 Tor on such systems, but we're applying the fix out of caution.) 6974 Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by 6975 Tobias Stoeckmann. 6976 6977 o Minor bugfixes (process management, backport from 0.4.2.3-alpha): 6978 - Remove overly strict assertions that triggered when a pluggable 6979 transport failed to launch. Fixes bug 31091; bugfix 6980 on 0.4.0.1-alpha. 6981 - Remove an assertion in the Unix process backend. This assertion 6982 would trigger when we failed to find the executable for a child 6983 process. Fixes bug 31810; bugfix on 0.4.0.1-alpha. 6984 6985 o Minor bugfixes (relay, backport from 0.4.2.2-alpha): 6986 - Avoid crashing when starting with a corrupt keys directory where 6987 the old ntor key and the new ntor key are identical. Fixes bug 6988 30916; bugfix on 0.2.4.8-alpha. 6989 6990 o Minor bugfixes (rust, backport from 0.4.2.1-alpha): 6991 - Correctly exclude a redundant rust build job in Travis. Fixes bug 6992 31463; bugfix on 0.3.5.4-alpha. 6993 6994 o Minor bugfixes (testing, backport from 0.4.2.3-alpha): 6995 - When testing port rebinding, don't busy-wait for tor to log. 6996 Instead, actually sleep for a short time before polling again. 6997 Also improve the formatting of control commands and log messages. 6998 Fixes bug 31837; bugfix on 0.3.5.1-alpha. 6999 7000 o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha): 7001 - Log bugs about the TLS read buffer's length only once, rather than 7002 filling the logs with similar warnings. Fixes bug 31939; bugfix 7003 on 0.3.0.4-rc. 7004 7005 o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha): 7006 - Always retry v2 single onion service intro and rend circuits with 7007 a 3-hop path. Previously, v2 single onion services used a 3-hop 7008 path when rendezvous circuits were retried after a remote or 7009 delayed failure, but a 1-hop path for immediate retries. Fixes bug 7010 23818; bugfix on 0.2.9.3-alpha. 7011 - Make v3 single onion services fall back to a 3-hop intro, when all 7012 intro points are unreachable via a 1-hop path. Previously, v3 7013 single onion services failed when all intro nodes were unreachable 7014 via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha. 7015 7016 o Documentation (backport from 0.4.2.1-alpha): 7017 - Use RFC 2397 data URL scheme to embed an image into tor-exit- 7018 notice.html so that operators no longer have to host it 7019 themselves. Closes ticket 31089. 7020 7021 o Testing (backport from 0.4.1.2-alpha): 7022 - Specify torrc paths (with empty files) when launching tor in 7023 integration tests; refrain from reading user and system torrcs. 7024 Resolves issue 29702. 7025 7026 o Testing (continuous integration, backport from 0.4.1.1-alpha): 7027 - In Travis, show stem's tor log after failure. Closes ticket 30234. 7028 7029 o Testing (continuous integration, backport from 0.4.1.5): 7030 - In Travis, make stem log a controller trace to the console, and 7031 tail stem's tor log after failure. Closes ticket 30591. 7032 - In Travis, only run the stem tests that use a tor binary. Closes 7033 ticket 30694. 7034 7035 o Testing (continuous integration, backport from 0.4.2.3-alpha): 7036 - Disable all but one Travis CI macOS build, to mitigate slow 7037 scheduling of Travis macOS jobs. Closes ticket 32177. 7038 - Run the chutney IPv6 networks as part of Travis CI. Closes 7039 ticket 30860. 7040 - Simplify the Travis CI build matrix, and optimise for build time. 7041 Closes ticket 31859. 7042 - Use Windows Server 2019 instead of Windows Server 2016 in our 7043 Appveyor builds. Closes ticket 32086. 7044 7045 o Testing (continuous integration, backport from 0.4.2.4-rc): 7046 - Use Ubuntu Bionic images for our Travis CI builds, so we can get a 7047 recent version of coccinelle. But leave chutney on Ubuntu Trusty, 7048 until we can fix some Bionic permissions issues (see ticket 7049 32240). Related to ticket 31919. 7050 - Install the mingw OpenSSL package in Appveyor. This makes sure 7051 that the OpenSSL headers and libraries match in Tor's Appveyor 7052 builds. (This bug was triggered by an Appveyor image update.) 7053 Fixes bug 32449; bugfix on 0.3.5.6-rc. 7054 - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241. 7055 7056 o Testing (continuous integration, backport from 0.4.2.5): 7057 - Require C99 standards-conforming code in Travis CI, but allow GNU gcc 7058 extensions. Also activates clang's -Wtypedef-redefinition warnings. 7059 Build some jobs with -std=gnu99, and some jobs without. 7060 Closes ticket 32500. 7061 7062 7063 Changes in version 0.3.5.9 - 2019-12-09 7064 Tor 0.3.5.9 backports serveral fixes from later releases, including 7065 several that affect bridge users, relay stability, onion services, 7066 and much more. 7067 7068 o Directory authority changes (backport from 0.4.1.5): 7069 - The directory authority "dizum" has a new IP address. Closes 7070 ticket 31406. 7071 7072 o Major bugfixes (bridges, backport from 0.4.1.2-alpha): 7073 - Consider our directory information to have changed when our list 7074 of bridges changes. Previously, Tor would not re-compute the 7075 status of its directory information when bridges changed, and 7076 therefore would not realize that it was no longer able to build 7077 circuits. Fixes part of bug 29875. 7078 - Do not count previously configured working bridges towards our 7079 total of working bridges. Previously, when Tor's list of bridges 7080 changed, it would think that the old bridges were still usable, 7081 and delay fetching router descriptors for the new ones. Fixes part 7082 of bug 29875; bugfix on 0.3.0.1-alpha. 7083 7084 o Major bugfixes (circuit build, guard, backport from 0.4.1.4-rc): 7085 - When considering upgrading circuits from "waiting for guard" to 7086 "open", always ignore circuits that are marked for close. Otherwise, 7087 we can end up in the situation where a subsystem is notified that 7088 a closing circuit has just opened, leading to undesirable 7089 behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha. 7090 7091 o Major bugfixes (NSS, relay, backport from 0.4.0.4-rc): 7092 - When running with NSS, disable TLS 1.2 ciphersuites that use 7093 SHA384 for their PRF. Due to an NSS bug, the TLS key exporters for 7094 these ciphersuites don't work -- which caused relays to fail to 7095 handshake with one another when these ciphersuites were enabled. 7096 Fixes bug 29241; bugfix on 0.3.5.1-alpha. 7097 7098 o Major bugfixes (Onion service reachability, backport from 0.4.1.3-alpha): 7099 - Properly clean up the introduction point map when circuits change 7100 purpose from onion service circuits to pathbias, measurement, or 7101 other circuit types. This should fix some service-side instances 7102 of introduction point failure. Fixes bug 29034; bugfix 7103 on 0.3.2.1-alpha. 7104 7105 o Major bugfixes (onion service v3, backport from 0.4.1.1-alpha): 7106 - Fix an unreachable bug in which an introduction point could try to 7107 send an INTRODUCE_ACK with a status code that Trunnel would refuse 7108 to encode, leading the relay to assert(). We've consolidated the 7109 ABI values into Trunnel now. Fixes bug 30454; bugfix 7110 on 0.3.0.1-alpha. 7111 - Clients can now handle unknown status codes from INTRODUCE_ACK 7112 cells. (The NACK behavior will stay the same.) This will allow us 7113 to extend status codes in the future without breaking the normal 7114 client behavior. Fixes another part of bug 30454; bugfix 7115 on 0.3.0.1-alpha. 7116 7117 o Major bugfixes (torrc parsing, backport from 0.4.2.2-alpha): 7118 - Stop ignoring torrc options after an %include directive, when the 7119 included directory ends with a file that does not contain any 7120 config options (but does contain comments or whitespace). Fixes 7121 bug 31408; bugfix on 0.3.1.1-alpha. 7122 7123 o Major bugfixes (v3 onion services, backport from 0.4.2.3-alpha): 7124 - Onion services now always use the exact number of intro points 7125 configured with the HiddenServiceNumIntroductionPoints option (or 7126 fewer if nodes are excluded). Before, a service could sometimes 7127 pick more intro points than configured. Fixes bug 31548; bugfix 7128 on 0.3.2.1-alpha. 7129 7130 o Minor features (address selection, backport from 0.4.0.3-alpha): 7131 - Treat the subnet 100.64.0.0/10 as public for some purposes; 7132 private for others. This subnet is the RFC 6598 (Carrier Grade 7133 NAT) IP range, and is deployed by many ISPs as an alternative to 7134 RFC 1918 that does not break existing internal networks. Tor now 7135 blocks SOCKS and control ports on these addresses and warns users 7136 if client ports or ExtORPorts are listening on a RFC 6598 address. 7137 Closes ticket 28525. Patch by Neel Chauhan. 7138 7139 o Minor features (bandwidth authority, backport from 0.4.0.4-rc): 7140 - Make bandwidth authorities ignore relays that are reported in the 7141 bandwidth file with the flag "vote=0". This change allows us to 7142 report unmeasured relays for diagnostic reasons without including 7143 their bandwidth in the bandwidth authorities' vote. Closes 7144 ticket 29806. 7145 7146 o Minor features (compile-time modules, backport from version 0.4.1.1-alpha): 7147 - Add a "--list-modules" command to print a list of which compile- 7148 time modules are enabled. Closes ticket 30452. 7149 7150 o Minor features (continuous integration, backport from 0.4.0.4-rc): 7151 - On Travis Rust builds, cleanup Rust registry and refrain from 7152 caching the "target/" directory to speed up builds. Resolves 7153 issue 29962. 7154 7155 o Minor features (continuous integration, backport from 0.4.0.5): 7156 - In Travis, tell timelimit to use stem's backtrace signals, and 7157 launch python directly from timelimit, so python receives the 7158 signals from timelimit, rather than make. Closes ticket 30117. 7159 7160 o Minor features (continuous integration, backport from 0.4.1.1-alpha): 7161 - Remove sudo configuration lines from .travis.yml as they are no 7162 longer needed with current Travis build environment. Resolves 7163 issue 30213. 7164 7165 o Minor features (continuous integration, backport from 0.4.1.4-rc): 7166 - Our Travis configuration now uses Chutney to run some network 7167 integration tests automatically. Closes ticket 29280. 7168 7169 o Minor features (continuous integration, backport from 0.4.2.2-alpha): 7170 - When building on Appveyor and Travis, pass the "-k" flag to make, 7171 so that we are informed of all compilation failures, not just the 7172 first one or two. Closes ticket 31372. 7173 7174 o Minor features (fallback directory list, backport from 0.4.1.4-rc): 7175 - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc 7176 in December 2018 (of which ~122 were still functional), with a 7177 list of 148 fallbacks (70 new, 78 existing, 79 removed) generated 7178 in June 2019. Closes ticket 28795. 7179 7180 o Minor features (geoip, backport from 0.4.2.5): 7181 - Update geoip and geoip6 to the December 3 2019 Maxmind GeoLite2 7182 Country database. Closes ticket 32685. 7183 7184 o Minor features (NSS, diagnostic, backport from 0.4.0.4-rc): 7185 - Try to log an error from NSS (if there is any) and a more useful 7186 description of our situation if we are using NSS and a call to 7187 SSL_ExportKeyingMaterial() fails. Diagnostic for ticket 29241. 7188 7189 o Minor features (stem tests, backport from 0.4.2.1-alpha): 7190 - Change "make test-stem" so it only runs the stem tests that use 7191 tor. This change makes test-stem faster and more reliable. Closes 7192 ticket 31554. 7193 7194 o Minor bugfixes (security, backport from 0.4.0.4-rc): 7195 - Verify in more places that we are not about to create a buffer 7196 with more than INT_MAX bytes, to avoid possible OOB access in the 7197 event of bugs. Fixes bug 30041; bugfix on 0.2.0.16. Found and 7198 fixed by Tobias Stoeckmann. 7199 - Fix a potential double free bug when reading huge bandwidth files. 7200 The issue is not exploitable in the current Tor network because 7201 the vulnerable code is only reached when directory authorities 7202 read bandwidth files, but bandwidth files come from a trusted 7203 source (usually the authorities themselves). Furthermore, the 7204 issue is only exploitable in rare (non-POSIX) 32-bit architectures, 7205 which are not used by any of the current authorities. Fixes bug 7206 30040; bugfix on 0.3.5.1-alpha. Bug found and fixed by 7207 Tobias Stoeckmann. 7208 7209 o Minor bugfix (continuous integration, backport from 0.4.0.4-rc): 7210 - Reset coverage state on disk after Travis CI has finished. This 7211 should prevent future coverage merge errors from causing the test 7212 suite for the "process" subsystem to fail. The process subsystem 7213 was introduced in 0.4.0.1-alpha. Fixes bug 29036; bugfix 7214 on 0.2.9.15. 7215 - Terminate test-stem if it takes more than 9.5 minutes to run. 7216 (Travis terminates the job after 10 minutes of no output.) 7217 Diagnostic for 29437. Fixes bug 30011; bugfix on 0.3.5.4-alpha. 7218 7219 o Minor bugfixes (Appveyor CI, backport from 0.4.2.2-alpha): 7220 - Avoid spurious errors when Appveyor CI fails before the install step. 7221 Fixes bug 31884; bugfix on 0.3.4.2-alpha. 7222 7223 o Minor bugfixes (build system, backport form 0.4.2.1-alpha): 7224 - Do not include the deprecated <sys/sysctl.h> on Linux or Windows 7225 systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha. 7226 7227 o Minor bugfixes (C correctness, backport from 0.4.0.4-rc): 7228 - Fix an unlikely memory leak in consensus_diff_apply(). Fixes bug 7229 29824; bugfix on 0.3.1.1-alpha. This is Coverity warning 7230 CID 1444119. 7231 7232 o Minor bugfixes (circuit isolation, backport from 0.4.1.3-alpha): 7233 - Fix a logic error that prevented the SessionGroup sub-option from 7234 being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha. 7235 7236 o Minor bugfixes (client, onion service v3, backport from 0.4.2.4-rc): 7237 - Fix a BUG() assertion that occurs within a very small race window 7238 between when a client intro circuit opens and when its descriptor 7239 gets cleaned up from the cache. The circuit is now closed early, 7240 which will trigger a re-fetch of the descriptor and continue the 7241 connection. Fixes bug 28970; bugfix on 0.3.2.1-alpha. 7242 7243 o Minor bugfixes (clock skew detection, backport from 0.4.1.5): 7244 - Don't believe clock skew results from NETINFO cells that appear to 7245 arrive before we sent the VERSIONS cells they are responding to. 7246 Previously, we would accept them up to 3 minutes "in the past". 7247 Fixes bug 31343; bugfix on 0.2.4.4-alpha. 7248 7249 o Minor bugfixes (compilation warning, backport from 0.4.1.5): 7250 - Fix a compilation warning on Windows about casting a function 7251 pointer for GetTickCount64(). Fixes bug 31374; bugfix 7252 on 0.2.9.1-alpha. 7253 7254 o Minor bugfixes (compilation, backport from 0.4.0.2-alpha): 7255 - Silence a compiler warning in test-memwipe.c on OpenBSD. Fixes bug 7256 29145; bugfix on 0.2.9.3-alpha. Patch from Kris Katterjohn. 7257 7258 o Minor bugfixes (compilation, backport from 0.4.1.5): 7259 - Avoid using labs() on time_t, which can cause compilation warnings 7260 on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha. 7261 7262 o Minor bugfixes (compilation, backport from 0.4.2.1-alpha): 7263 - Suppress spurious float-conversion warnings from GCC when calling 7264 floating-point classifier functions on FreeBSD. Fixes part of bug 7265 31687; bugfix on 0.3.1.5-alpha. 7266 7267 o Minor bugfixes (compilation, unusual configurations, backport from 0.4.1.1-alpha): 7268 - Avoid failures when building with the ALL_BUGS_ARE_FATAL option 7269 due to missing declarations of abort(), and prevent other such 7270 failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha. 7271 7272 o Minor bugfixes (configuration, proxies, backport from 0.4.1.2-alpha): 7273 - Fix a bug that prevented us from supporting SOCKS5 proxies that 7274 want authentication along with configured (but unused!) 7275 ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha. 7276 7277 o Minor bugfixes (connections, backport from 0.4.2.3-rc): 7278 - Avoid trying to read data from closed connections, which can cause 7279 needless loops in Libevent and infinite loops in Shadow. Fixes bug 7280 30344; bugfix on 0.1.1.1-alpha. 7281 7282 o Minor bugfixes (continuous integration, backport from 0.4.1.3-alpha): 7283 - Allow the test-stem job to fail in Travis, because it sometimes 7284 hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha. 7285 - Skip test_rebind on macOS in Travis, because it is unreliable on 7286 macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha. 7287 - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment 7288 variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha. 7289 7290 o Minor bugfixes (crash on exit, backport from 0.4.1.4-rc): 7291 - Avoid a set of possible code paths that could try to use freed 7292 memory in routerlist_free() while Tor was exiting. Fixes bug 7293 31003; bugfix on 0.1.2.2-alpha. 7294 7295 o Minor bugfixes (directory authorities, backport from 0.4.1.3-alpha): 7296 - Stop crashing after parsing an unknown descriptor purpose 7297 annotation. We think this bug can only be triggered by modifying a 7298 local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha. 7299 7300 o Minor bugfixes (directory authority, backport from 0.4.1.2-alpha): 7301 - Move the "bandwidth-file-headers" line in directory authority 7302 votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix 7303 on 0.3.5.1-alpha. 7304 7305 o Minor bugfixes (error handling, backport from 0.4.2.1-alpha): 7306 - On abort, try harder to flush the output buffers of log messages. 7307 On some platforms (macOS), log messages could be discarded when 7308 the process terminates. Fixes bug 31571; bugfix on 0.3.5.1-alpha. 7309 - Report the tor version whenever an assertion fails. Previously, we 7310 only reported the Tor version on some crashes, and some non-fatal 7311 assertions. Fixes bug 31571; bugfix on 0.3.5.1-alpha. 7312 7313 o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha): 7314 - When extracting an IPv6 address from a PF-based proxy, verify that 7315 we are actually configured to receive an IPv6 address, and log an 7316 internal error if not. Fixes part of bug 31687; bugfix 7317 on 0.2.3.4-alpha. 7318 7319 o Minor bugfixes (guards, backport from 0.4.2.1-alpha): 7320 - When tor is missing descriptors for some primary entry guards, 7321 make the log message less alarming. It's normal for descriptors to 7322 expire, as long as tor fetches new ones soon after. Fixes bug 7323 31657; bugfix on 0.3.3.1-alpha. 7324 7325 o Minor bugfixes (logging, backport from 0.4.0.2-alpha): 7326 - Avoid logging that we are relaxing a circuit timeout when that 7327 timeout is fixed. Fixes bug 28698; bugfix on 0.2.4.7-alpha. 7328 7329 o Minor bugfixes (logging, backport from 0.4.0.3-alpha): 7330 - Correct a misleading error message when IPv4Only or IPv6Only is 7331 used but the resolved address can not be interpreted as an address 7332 of the specified IP version. Fixes bug 13221; bugfix on 7333 0.2.3.9-alpha. Patch from Kris Katterjohn. 7334 - Log the correct port number for listening sockets when "auto" is 7335 used to let Tor pick the port number. Previously, port 0 was 7336 logged instead of the actual port number. Fixes bug 29144; bugfix 7337 on 0.3.5.1-alpha. Patch from Kris Katterjohn. 7338 - Stop logging a BUG() warning when Tor is waiting for exit 7339 descriptors. Fixes bug 28656; bugfix on 0.3.5.1-alpha. 7340 7341 o Minor bugfixes (logging, backport from 0.4.1.1-alpha): 7342 - Do not log a warning when running with an OpenSSL version other 7343 than the one Tor was compiled with, if the two versions should be 7344 compatible. Previously, we would warn whenever the version was 7345 different. Fixes bug 30190; bugfix on 0.2.4.2-alpha. 7346 7347 o Minor bugfixes (logging, backport from 0.4.2.1-alpha): 7348 - Change log level of message "Hash of session info was not as 7349 expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix 7350 on 0.1.1.10-alpha. 7351 7352 o Minor bugfixes (logging, backport from 0.4.2.2-alpha): 7353 - Rate-limit the logging message about the obsolete .exit 7354 notation. Previously, there was no limit on this warning, which 7355 could potentially be triggered many times by a hostile website. 7356 Fixes bug 31466; bugfix on 0.2.2.1-alpha. 7357 7358 o Minor bugfixes (logging, protocol violations, backport from 0.4.2.2-alpha): 7359 - Do not log a nonfatal assertion failure when receiving a VERSIONS 7360 cell on a connection using the obsolete v1 link protocol. Log a 7361 protocol_warn instead. Fixes bug 31107; bugfix on 0.2.4.4-alpha. 7362 7363 o Minor bugfixes (mainloop, periodic events, in-process API, backport from 0.4.2.3-alpha): 7364 - Reset the periodic events' "enabled" flag when Tor is shut down 7365 cleanly. Previously, this flag was left on, which caused periodic 7366 events not to be re-enabled when Tor was relaunched in-process 7367 with tor_api.h after a shutdown. Fixes bug 32058; bugfix 7368 on 0.3.3.1-alpha. 7369 7370 o Minor bugfixes (memory leak, backport from 0.4.1.1-alpha): 7371 - Avoid a minor memory leak that could occur on relays when failing 7372 to create a "keys" directory. Fixes bug 30148; bugfix 7373 on 0.3.3.1-alpha. 7374 7375 o Minor bugfixes (memory leak, backport from 0.4.1.4-rc): 7376 - Fix a trivial memory leak when parsing an invalid value 7377 from a download schedule in the configuration. Fixes bug 7378 30894; bugfix on 0.3.4.1-alpha. 7379 7380 o Minor bugfixes (memory management, backport from 0.4.0.3-alpha): 7381 - Refactor the shared random state's memory management so that it 7382 actually takes ownership of the shared random value pointers. 7383 Fixes bug 29706; bugfix on 0.2.9.1-alpha. 7384 7385 o Minor bugfixes (memory management, testing, backport from 0.4.0.3-alpha): 7386 - Stop leaking parts of the shared random state in the shared-random 7387 unit tests. Fixes bug 29599; bugfix on 0.2.9.1-alpha. 7388 7389 o Minor bugfixes (onion services, backport from 0.4.1.1-alpha): 7390 - Avoid a GCC 9.1.1 warning (and possible crash depending on libc 7391 implementation) when failing to load an onion service client 7392 authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha. 7393 7394 o Minor bugfixes (out-of-memory handler, backport from 0.4.1.2-alpha): 7395 - When purging the DNS cache because of an out-of-memory condition, 7396 try purging just the older entries at first. Previously, we would 7397 always purge the whole thing. Fixes bug 29617; bugfix 7398 on 0.3.5.1-alpha. 7399 7400 o Minor bugfixes (portability, backport from 0.4.1.2-alpha): 7401 - Avoid crashing in our tor_vasprintf() implementation on systems 7402 that define neither vasprintf() nor _vscprintf(). (This bug has 7403 been here long enough that we question whether people are running 7404 Tor on such systems, but we're applying the fix out of caution.) 7405 Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by 7406 Tobias Stoeckmann. 7407 7408 o Minor bugfixes (relay, backport from 0.4.2.2-alpha): 7409 - Avoid crashing when starting with a corrupt keys directory where 7410 the old ntor key and the new ntor key are identical. Fixes bug 7411 30916; bugfix on 0.2.4.8-alpha. 7412 7413 o Minor bugfixes (rust, backport from 0.4.0.5): 7414 - Abort on panic in all build profiles, instead of potentially 7415 unwinding into C code. Fixes bug 27199; bugfix on 0.3.3.1-alpha. 7416 7417 o Minor bugfixes (rust, backport from 0.4.2.1-alpha): 7418 - Correctly exclude a redundant rust build job in Travis. Fixes bug 7419 31463; bugfix on 0.3.5.4-alpha. 7420 7421 o Minor bugfixes (single onion services, backport from 0.4.0.3-alpha): 7422 - Allow connections to single onion services to remain idle without 7423 being disconnected. Previously, relays acting as rendezvous points 7424 for single onion services were mistakenly closing idle rendezvous 7425 circuits after 60 seconds, thinking that they were unused 7426 directory-fetching circuits that had served their purpose. Fixes 7427 bug 29665; bugfix on 0.2.1.26. 7428 7429 o Minor bugfixes (stats, backport from 0.4.0.3-alpha): 7430 - When ExtraInfoStatistics is 0, stop including PaddingStatistics in 7431 relay and bridge extra-info documents. Fixes bug 29017; bugfix 7432 on 0.3.1.1-alpha. 7433 7434 o Minor bugfixes (testing, backport from 0.4.0.3-alpha): 7435 - Downgrade some LOG_ERR messages in the address/* tests to 7436 warnings. The LOG_ERR messages were occurring when we had no 7437 configured network. We were failing the unit tests, because we 7438 backported 28668 to 0.3.5.8, but did not backport 29530. Fixes bug 7439 29530; bugfix on 0.3.5.8. 7440 - Fix our gcov wrapper script to look for object files at the 7441 correct locations. Fixes bug 29435; bugfix on 0.3.5.1-alpha. 7442 7443 o Minor bugfixes (testing, backport from 0.4.0.4-rc): 7444 - Backport the 0.3.4 src/test/test-network.sh to 0.2.9. We need a 7445 recent test-network.sh to use new chutney features in CI. Fixes 7446 bug 29703; bugfix on 0.2.9.1-alpha. 7447 - Fix a test failure on Windows caused by an unexpected "BUG" 7448 warning in our tests for tor_gmtime_r(-1). Fixes bug 29922; bugfix 7449 on 0.2.9.3-alpha. 7450 7451 o Minor bugfixes (testing, backport from 0.4.2.3-alpha): 7452 - When testing port rebinding, don't busy-wait for tor to log. 7453 Instead, actually sleep for a short time before polling again. 7454 Also improve the formatting of control commands and log messages. 7455 Fixes bug 31837; bugfix on 0.3.5.1-alpha. 7456 7457 o Minor bugfixes (TLS protocol, backport form 0.4.0.4-rc): 7458 - When classifying a client's selection of TLS ciphers, if the 7459 client ciphers are not yet available, do not cache the result. 7460 Previously, we had cached the unavailability of the cipher list 7461 and never looked again, which in turn led us to assume that the 7462 client only supported the ancient V1 link protocol. This, in turn, 7463 was causing Stem integration tests to stall in some cases. Fixes 7464 bug 30021; bugfix on 0.2.4.8-alpha. 7465 7466 o Minor bugfixes (tls, logging, backport from 0.4.2.3-alpha): 7467 - Log bugs about the TLS read buffer's length only once, rather than 7468 filling the logs with similar warnings. Fixes bug 31939; bugfix 7469 on 0.3.0.4-rc. 7470 7471 o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha): 7472 - Always retry v2 single onion service intro and rend circuits with 7473 a 3-hop path. Previously, v2 single onion services used a 3-hop 7474 path when rendezvous circuits were retried after a remote or 7475 delayed failure, but a 1-hop path for immediate retries. Fixes bug 7476 23818; bugfix on 0.2.9.3-alpha. 7477 - Make v3 single onion services fall back to a 3-hop intro, when all 7478 intro points are unreachable via a 1-hop path. Previously, v3 7479 single onion services failed when all intro nodes were unreachable 7480 via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha. 7481 7482 o Minor bugfixes (Windows, CI, backport from 0.4.0.3-alpha): 7483 - Skip the Appveyor 32-bit Windows Server 2016 job, and 64-bit 7484 Windows Server 2012 R2 job. The remaining 2 jobs still provide 7485 coverage of 64/32-bit, and Windows Server 2016/2012 R2. Also set 7486 fast_finish, so failed jobs terminate the build immediately. Fixes 7487 bug 29601; bugfix on 0.3.5.4-alpha. 7488 7489 o Documentation (backport from 0.4.2.1-alpha): 7490 - Use RFC 2397 data URL scheme to embed an image into tor-exit- 7491 notice.html so that operators no longer have to host it 7492 themselves. Closes ticket 31089. 7493 7494 o Testing (backport from 0.4.1.2-alpha): 7495 - Specify torrc paths (with empty files) when launching tor in 7496 integration tests; refrain from reading user and system torrcs. 7497 Resolves issue 29702. 7498 7499 o Testing (continuous integration, backport from 0.4.1.1-alpha): 7500 - In Travis, show stem's tor log after failure. Closes ticket 30234. 7501 7502 o Testing (continuous integration, backport from 0.4.1.5): 7503 - In Travis, make stem log a controller trace to the console, and 7504 tail stem's tor log after failure. Closes ticket 30591. 7505 - In Travis, only run the stem tests that use a tor binary. Closes 7506 ticket 30694. 7507 7508 o Testing (continuous integration, backport from 0.4.2.3-alpha): 7509 - Disable all but one Travis CI macOS build, to mitigate slow 7510 scheduling of Travis macOS jobs. Closes ticket 32177. 7511 - Run the chutney IPv6 networks as part of Travis CI. Closes 7512 ticket 30860. 7513 - Simplify the Travis CI build matrix, and optimise for build time. 7514 Closes ticket 31859. 7515 - Use Windows Server 2019 instead of Windows Server 2016 in our 7516 Appveyor builds. Closes ticket 32086. 7517 7518 o Testing (continuous integration, backport from 0.4.2.4-rc): 7519 - Use Ubuntu Bionic images for our Travis CI builds, so we can get a 7520 recent version of coccinelle. But leave chutney on Ubuntu Trusty, 7521 until we can fix some Bionic permissions issues (see ticket 7522 32240). Related to ticket 31919. 7523 - Install the mingw OpenSSL package in Appveyor. This makes sure 7524 that the OpenSSL headers and libraries match in Tor's Appveyor 7525 builds. (This bug was triggered by an Appveyor image update.) 7526 Fixes bug 32449; bugfix on 0.3.5.6-rc. 7527 - In Travis, use Xcode 11.2 on macOS 10.14. Closes ticket 32241. 7528 7529 o Testing (continuous integration, backport from 0.4.2.5): 7530 - Require C99 standards-conforming code in Travis CI, but allow GNU gcc 7531 extensions. Also activates clang's -Wtypedef-redefinition warnings. 7532 Build some jobs with -std=gnu99, and some jobs without. 7533 Closes ticket 32500. 7534 7535 7536 Changes in version 0.4.1.6 - 2019-09-19 7537 This release backports several bugfixes to improve stability and 7538 correctness. Anyone experiencing build problems or crashes with 0.4.1.5, 7539 or experiencing reliability issues with single onion services, should 7540 upgrade. 7541 7542 o Major bugfixes (crash, Linux, Android, backport from 0.4.2.1-alpha): 7543 - Tolerate systems (including some Android installations) where 7544 madvise and MADV_DONTDUMP are available at build-time, but not at 7545 run time. Previously, these systems would notice a failed syscall 7546 and abort. Fixes bug 31570; bugfix on 0.4.1.1-alpha. 7547 - Tolerate systems (including some Linux installations) where 7548 madvise and/or MADV_DONTFORK are available at build-time, but not 7549 at run time. Previously, these systems would notice a failed 7550 syscall and abort. Fixes bug 31696; bugfix on 0.4.1.1-alpha. 7551 7552 o Minor features (stem tests, backport from 0.4.2.1-alpha): 7553 - Change "make test-stem" so it only runs the stem tests that use 7554 tor. This change makes test-stem faster and more reliable. Closes 7555 ticket 31554. 7556 7557 o Minor bugfixes (build system, backport form 0.4.2.1-alpha): 7558 - Do not include the deprecated <sys/sysctl.h> on Linux or Windows 7559 systems. Fixes bug 31673; bugfix on 0.2.5.4-alpha. 7560 7561 o Minor bugfixes (compilation, backport from 0.4.2.1-alpha): 7562 - Add more stub functions to fix compilation on Android with link- 7563 time optimization when --disable-module-dirauth is used. 7564 Previously, these compilation settings would make the compiler 7565 look for functions that didn't exist. Fixes bug 31552; bugfix 7566 on 0.4.1.1-alpha. 7567 - Suppress spurious float-conversion warnings from GCC when calling 7568 floating-point classifier functions on FreeBSD. Fixes part of bug 7569 31687; bugfix on 0.3.1.5-alpha. 7570 7571 o Minor bugfixes (controller protocol): 7572 - Fix the MAPADDRESS controller command to accept one or more 7573 arguments. Previously, it required two or more arguments, and ignored 7574 the first. Fixes bug 31772; bugfix on 0.4.1.1-alpha. 7575 7576 o Minor bugfixes (FreeBSD, PF-based proxy, IPv6, backport from 0.4.2.1-alpha): 7577 - When extracting an IPv6 address from a PF-based proxy, verify that 7578 we are actually configured to receive an IPv6 address, and log an 7579 internal error if not. Fixes part of bug 31687; bugfix 7580 on 0.2.3.4-alpha. 7581 7582 o Minor bugfixes (guards, backport from 0.4.2.1-alpha): 7583 - When tor is missing descriptors for some primary entry guards, 7584 make the log message less alarming. It's normal for descriptors to 7585 expire, as long as tor fetches new ones soon after. Fixes bug 7586 31657; bugfix on 0.3.3.1-alpha. 7587 7588 o Minor bugfixes (logging, backport from 0.4.2.1-alpha): 7589 - Change log level of message "Hash of session info was not as 7590 expected" to LOG_PROTOCOL_WARN. Fixes bug 12399; bugfix 7591 on 0.1.1.10-alpha. 7592 7593 o Minor bugfixes (rust, backport from 0.4.2.1-alpha): 7594 - Correctly exclude a redundant rust build job in Travis. Fixes bug 7595 31463; bugfix on 0.3.5.4-alpha. 7596 7597 o Minor bugfixes (v2 single onion services, backport from 0.4.2.1-alpha): 7598 - Always retry v2 single onion service intro and rend circuits with 7599 a 3-hop path. Previously, v2 single onion services used a 3-hop 7600 path when rendezvous circuits were retried after a remote or 7601 delayed failure, but a 1-hop path for immediate retries. Fixes bug 7602 23818; bugfix on 0.2.9.3-alpha. 7603 7604 o Minor bugfixes (v3 single onion services, backport from 0.4.2.1-alpha): 7605 - Always retry v3 single onion service intro and rend circuits with 7606 a 3-hop path. Previously, v3 single onion services used a 3-hop 7607 path when rend circuits were retried after a remote or delayed 7608 failure, but a 1-hop path for immediate retries. Fixes bug 23818; 7609 bugfix on 0.3.2.1-alpha. 7610 - Make v3 single onion services fall back to a 3-hop intro, when all 7611 intro points are unreachable via a 1-hop path. Previously, v3 7612 single onion services failed when all intro nodes were unreachable 7613 via a 1-hop path. Fixes bug 23507; bugfix on 0.3.2.1-alpha. 7614 7615 o Documentation (backport from 0.4.2.1-alpha): 7616 - Use RFC 2397 data URL scheme to embed an image into tor-exit- 7617 notice.html so that operators no longer have to host it 7618 themselves. Closes ticket 31089. 7619 7620 7621 Changes in version 0.4.1.5 - 2019-08-20 7622 This is the first stable release in the 0.4.1.x series. This series 7623 adds experimental circuit-level padding, authenticated SENDME cells to 7624 defend against certain attacks, and several performance improvements 7625 to save on CPU consumption. It fixes bugs in bootstrapping and v3 7626 onion services. It also includes numerous smaller features and 7627 bugfixes on earlier versions. 7628 7629 Per our support policy, we will support the 0.4.1.x series for nine 7630 months, or until three months after the release of a stable 0.4.2.x: 7631 whichever is longer. If you need longer-term support, please stick 7632 with 0.3.5.x, which will we plan to support until Feb 2022. 7633 7634 Below are the changes since 0.4.0.5. For a list of only the changes 7635 since 0.4.1.4-rc, see the ChangeLog file. 7636 7637 o Directory authority changes: 7638 - The directory authority "dizum" has a new IP address. Closes 7639 ticket 31406. 7640 7641 o Major features (circuit padding): 7642 - Onion service clients now add padding cells at the start of their 7643 INTRODUCE and RENDEZVOUS circuits, to make those circuits' traffic 7644 look more like general purpose Exit traffic. The overhead for this 7645 is 2 extra cells in each direction for RENDEZVOUS circuits, and 1 7646 extra upstream cell and 10 downstream cells for INTRODUCE 7647 circuits. This feature is only enabled when also supported by the 7648 circuit's middle node. (Clients may specify fixed middle nodes 7649 with the MiddleNodes option, and may force-disable this feature 7650 with the CircuitPadding option.) Closes ticket 28634. 7651 7652 o Major features (code organization): 7653 - Tor now includes a generic publish-subscribe message-passing 7654 subsystem that we can use to organize intermodule dependencies. We 7655 hope to use this to reduce dependencies between modules that don't 7656 need to be related, and to generally simplify our codebase. Closes 7657 ticket 28226. 7658 7659 o Major features (controller protocol): 7660 - Controller commands are now parsed using a generalized parsing 7661 subsystem. Previously, each controller command was responsible for 7662 parsing its own input, which led to strange inconsistencies. 7663 Closes ticket 30091. 7664 7665 o Major features (flow control): 7666 - Implement authenticated SENDMEs as detailed in proposal 289. A 7667 SENDME cell now includes the digest of the traffic that it 7668 acknowledges, so that once an end point receives the SENDME, it 7669 can confirm the other side's knowledge of the previous cells that 7670 were sent, and prevent certain types of denial-of-service attacks. 7671 This behavior is controlled by two new consensus parameters: see 7672 the proposal for more details. Fixes ticket 26288. 7673 7674 o Major features (performance): 7675 - Our node selection algorithm now excludes nodes in linear time. 7676 Previously, the algorithm was quadratic, which could slow down 7677 heavily used onion services. Closes ticket 30307. 7678 7679 o Major features (performance, RNG): 7680 - Tor now constructs a fast secure pseudorandom number generator for 7681 each thread, to use when performance is critical. This PRNG is 7682 based on AES-CTR, using a buffering construction similar to 7683 libottery and the (newer) OpenBSD arc4random() code. It 7684 outperforms OpenSSL 1.1.1a's CSPRNG by roughly a factor of 100 for 7685 small outputs. Although we believe it to be cryptographically 7686 strong, we are only using it when necessary for performance. 7687 Implements tickets 29023 and 29536. 7688 7689 o Major bugfixes (bridges): 7690 - Consider our directory information to have changed when our list 7691 of bridges changes. Previously, Tor would not re-compute the 7692 status of its directory information when bridges changed, and 7693 therefore would not realize that it was no longer able to build 7694 circuits. Fixes part of bug 29875. 7695 - Do not count previously configured working bridges towards our 7696 total of working bridges. Previously, when Tor's list of bridges 7697 changed, it would think that the old bridges were still usable, 7698 and delay fetching router descriptors for the new ones. Fixes part 7699 of bug 29875; bugfix on 0.3.0.1-alpha. 7700 7701 o Major bugfixes (circuit build, guard): 7702 - On relays, properly check that a padding machine is absent before 7703 logging a warning about it being absent. Fixes bug 30649; bugfix 7704 on 0.4.0.1-alpha. 7705 - When considering upgrading circuits from "waiting for guard" to 7706 "open", always ignore circuits that are marked for close. Otherwise, 7707 we can end up in the situation where a subsystem is notified that 7708 a closing circuit has just opened, leading to undesirable 7709 behavior. Fixes bug 30871; bugfix on 0.3.0.1-alpha. 7710 7711 o Major bugfixes (onion service reachability): 7712 - Properly clean up the introduction point map when circuits change 7713 purpose from onion service circuits to pathbias, measurement, or 7714 other circuit types. This should fix some service-side instances 7715 of introduction point failure. Fixes bug 29034; bugfix 7716 on 0.3.2.1-alpha. 7717 7718 o Major bugfixes (onion service v3): 7719 - Fix an unreachable bug in which an introduction point could try to 7720 send an INTRODUCE_ACK with a status code that Trunnel would refuse 7721 to encode, leading the relay to assert(). We've consolidated the 7722 ABI values into Trunnel now. Fixes bug 30454; bugfix 7723 on 0.3.0.1-alpha. 7724 - Clients can now handle unknown status codes from INTRODUCE_ACK 7725 cells. (The NACK behavior will stay the same.) This will allow us 7726 to extend status codes in the future without breaking the normal 7727 client behavior. Fixes another part of bug 30454; bugfix 7728 on 0.3.0.1-alpha. 7729 7730 o Minor features (authenticated SENDME): 7731 - Ensure that there is enough randomness on every circuit to prevent 7732 an attacker from successfully predicting the hashes they will need 7733 to include in authenticated SENDME cells. At a random interval, if 7734 we have not sent randomness already, we now leave some extra space 7735 at the end of a cell that we can fill with random bytes. Closes 7736 ticket 26846. 7737 7738 o Minor features (circuit padding logging): 7739 - Demote noisy client-side warn logs about circuit padding to protocol 7740 warnings. Add additional log messages and circuit ID fields to help 7741 with bug 30992 and any other future issues. 7742 7743 o Minor features (circuit padding): 7744 - We now use a fast PRNG when scheduling circuit padding. Part of 7745 ticket 28636. 7746 - Allow the padding machine designer to pick the edges of their 7747 histogram instead of trying to compute them automatically using an 7748 exponential formula. Resolves some undefined behavior in the case 7749 of small histograms and allows greater flexibility on machine 7750 design. Closes ticket 29298; bugfix on 0.4.0.1-alpha. 7751 - Allow circuit padding machines to hold a circuit open until they 7752 are done padding it. Closes ticket 28780. 7753 7754 o Minor features (compile-time modules): 7755 - Add a "--list-modules" command to print a list of which compile- 7756 time modules are enabled. Closes ticket 30452. 7757 7758 o Minor features (continuous integration): 7759 - Our Travis configuration now uses Chutney to run some network 7760 integration tests automatically. Closes ticket 29280. 7761 - When running coverage builds on Travis, we now set 7762 TOR_TEST_RNG_SEED, to avoid RNG-based coverage differences. Part 7763 of ticket 28878. 7764 - Remove sudo configuration lines from .travis.yml as they are no 7765 longer needed with current Travis build environment. Resolves 7766 issue 30213. 7767 - In Travis, show stem's tor log after failure. Closes ticket 30234. 7768 7769 o Minor features (controller): 7770 - Add onion service version 3 support to the HSFETCH command. 7771 Previously, only version 2 onion services were supported. Closes 7772 ticket 25417. Patch by Neel Chauhan. 7773 7774 o Minor features (debugging): 7775 - Introduce tor_assertf() and tor_assertf_nonfatal() to enable 7776 logging of additional information during assert failure. Now we 7777 can use format strings to include information for trouble 7778 shooting. Resolves ticket 29662. 7779 7780 o Minor features (defense in depth): 7781 - In smartlist_remove_keeporder(), set unused pointers to NULL, in 7782 case a bug causes them to be used later. Closes ticket 30176. 7783 Patch from Tobias Stoeckmann. 7784 - Tor now uses a cryptographically strong PRNG even for decisions 7785 that we do not believe are security-sensitive. Previously, for 7786 performance reasons, we had used a trivially predictable linear 7787 congruential generator algorithm for certain load-balancing and 7788 statistical sampling decisions. Now we use our fast RNG in those 7789 cases. Closes ticket 29542. 7790 7791 o Minor features (developer tools): 7792 - Tor's "practracker" test script now checks for files and functions 7793 that seem too long and complicated. Existing overlong functions 7794 and files are accepted for now, but should eventually be 7795 refactored. Closes ticket 29221. 7796 - Add some scripts used for git maintenance to scripts/git. Closes 7797 ticket 29391. 7798 - Call practracker from pre-push and pre-commit git hooks to let 7799 developers know if they made any code style violations. Closes 7800 ticket 30051. 7801 - Add a script to check that each header has a well-formed and 7802 unique guard macro. Closes ticket 29756. 7803 7804 o Minor features (fallback directory list): 7805 - Replace the 157 fallbacks originally introduced in Tor 0.3.5.6-rc 7806 in December 2018 (of which ~122 were still functional), with a 7807 list of 148 fallbacks (70 new, 78 existing, 79 removed) generated 7808 in June 2019. Closes ticket 28795. 7809 7810 o Minor features (geoip): 7811 - Update geoip and geoip6 to the June 10 2019 Maxmind GeoLite2 7812 Country database. Closes ticket 30852. 7813 - Update geoip and geoip6 to the May 13 2019 Maxmind GeoLite2 7814 Country database. Closes ticket 30522. 7815 7816 o Minor features (HTTP tunnel): 7817 - Return an informative web page when the HTTPTunnelPort is used as 7818 an HTTP proxy. Closes ticket 27821, patch by "eighthave". 7819 7820 o Minor features (IPv6, v3 onion services): 7821 - Make v3 onion services put IPv6 addresses in service descriptors. 7822 Before this change, service descriptors only contained IPv4 7823 addresses. Implements 26992. 7824 7825 o Minor features (logging): 7826 - Give a more useful assertion failure message if we think we have 7827 minherit() but we fail to make a region non-inheritable. Give a 7828 compile-time warning if our support for minherit() is incomplete. 7829 Closes ticket 30686. 7830 7831 o Minor features (maintenance): 7832 - Add a new "make autostyle" target that developers can use to apply 7833 all automatic Tor style and consistency conversions to the 7834 codebase. Closes ticket 30539. 7835 7836 o Minor features (modularity): 7837 - The "--disable-module-dirauth" compile-time option now disables 7838 even more dirauth-only code. Closes ticket 30345. 7839 7840 o Minor features (performance): 7841 - Use OpenSSL's implementations of SHA3 when available (in OpenSSL 7842 1.1.1 and later), since they tend to be faster than tiny-keccak. 7843 Closes ticket 28837. 7844 7845 o Minor features (testing): 7846 - The circuitpadding tests now use a reproducible RNG implementation, 7847 so that if a test fails, we can learn why. Part of ticket 28878. 7848 - Tor's tests now support an environment variable, TOR_TEST_RNG_SEED, 7849 to set the RNG seed for tests that use a reproducible RNG. Part of 7850 ticket 28878. 7851 - When running tests in coverage mode, take additional care to make 7852 our coverage deterministic, so that we can accurately track 7853 changes in code coverage. Closes ticket 30519. 7854 - Tor's unit test code now contains helper functions to replace the 7855 PRNG with a deterministic or reproducible version for testing. 7856 Previously, various tests implemented this in various ways. 7857 Implements ticket 29732. 7858 - We now have a script, cov-test-determinism.sh, to identify places 7859 where our unit test coverage has become nondeterministic. Closes 7860 ticket 29436. 7861 - Check that representative subsets of values of `int` and `unsigned 7862 int` can be represented by `void *`. Resolves issue 29537. 7863 7864 o Minor bugfixes (bridge authority): 7865 - Bridge authorities now set bridges as running or non-running when 7866 about to dump their status to a file. Previously, they set bridges 7867 as running in response to a GETINFO command, but those shouldn't 7868 modify data structures. Fixes bug 24490; bugfix on 0.2.0.13-alpha. 7869 Patch by Neel Chauhan. 7870 7871 o Minor bugfixes (channel padding statistics): 7872 - Channel padding write totals and padding-enabled totals are now 7873 counted properly in relay extrainfo descriptors. Fixes bug 29231; 7874 bugfix on 0.3.1.1-alpha. 7875 7876 o Minor bugfixes (circuit isolation): 7877 - Fix a logic error that prevented the SessionGroup sub-option from 7878 being accepted. Fixes bug 22619; bugfix on 0.2.7.2-alpha. 7879 7880 o Minor bugfixes (circuit padding): 7881 - Add a "CircuitPadding" torrc option to disable circuit padding. 7882 Fixes bug 28693; bugfix on 0.4.0.1-alpha. 7883 - Allow circuit padding machines to specify that they do not 7884 contribute much overhead, and provide consensus flags and torrc 7885 options to force clients to only use these low overhead machines. 7886 Fixes bug 29203; bugfix on 0.4.0.1-alpha. 7887 - Provide a consensus parameter to fully disable circuit padding, to 7888 be used in emergency network overload situations. Fixes bug 30173; 7889 bugfix on 0.4.0.1-alpha. 7890 - The circuit padding subsystem will no longer schedule padding if 7891 dormant mode is enabled. Fixes bug 28636; bugfix on 0.4.0.1-alpha. 7892 - Inspect a circuit-level cell queue before sending padding, to 7893 avoid sending padding while too much data is already queued. Fixes 7894 bug 29204; bugfix on 0.4.0.1-alpha. 7895 - Avoid calling monotime_absolute_usec() in circuit padding machines 7896 that do not use token removal or circuit RTT estimation. Fixes bug 7897 29085; bugfix on 0.4.0.1-alpha. 7898 7899 o Minor bugfixes (clock skew detection): 7900 - Don't believe clock skew results from NETINFO cells that appear to 7901 arrive before we sent the VERSIONS cells they are responding to. 7902 Previously, we would accept them up to 3 minutes "in the past". 7903 Fixes bug 31343; bugfix on 0.2.4.4-alpha. 7904 7905 o Minor bugfixes (compatibility, standards compliance): 7906 - Fix a bug that would invoke undefined behavior on certain 7907 operating systems when trying to asprintf() a string exactly 7908 INT_MAX bytes long. We don't believe this is exploitable, but it's 7909 better to fix it anyway. Fixes bug 31001; bugfix on 0.2.2.11-alpha. 7910 Found and fixed by Tobias Stoeckmann. 7911 7912 o Minor bugfixes (compilation warning): 7913 - Fix a compilation warning on Windows about casting a function 7914 pointer for GetTickCount64(). Fixes bug 31374; bugfix on 7915 0.2.9.1-alpha. 7916 7917 o Minor bugfixes (compilation): 7918 - Avoid using labs() on time_t, which can cause compilation warnings 7919 on 64-bit Windows builds. Fixes bug 31343; bugfix on 0.2.4.4-alpha. 7920 7921 o Minor bugfixes (compilation, unusual configurations): 7922 - Avoid failures when building with the ALL_BUGS_ARE_FATAL option 7923 due to missing declarations of abort(), and prevent other such 7924 failures in the future. Fixes bug 30189; bugfix on 0.3.4.1-alpha. 7925 7926 o Minor bugfixes (configuration, proxies): 7927 - Fix a bug that prevented us from supporting SOCKS5 proxies that 7928 want authentication along with configured (but unused!) 7929 ClientTransportPlugins. Fixes bug 29670; bugfix on 0.2.6.1-alpha. 7930 7931 o Minor bugfixes (continuous integration): 7932 - Allow the test-stem job to fail in Travis, because it sometimes 7933 hangs. Fixes bug 30744; bugfix on 0.3.5.4-alpha. 7934 - Skip test_rebind on macOS in Travis, because it is unreliable on 7935 macOS on Travis. Fixes bug 30713; bugfix on 0.3.5.1-alpha. 7936 - Skip test_rebind when the TOR_SKIP_TEST_REBIND environment 7937 variable is set. Fixes bug 30713; bugfix on 0.3.5.1-alpha. 7938 7939 o Minor bugfixes (controller protocol): 7940 - Teach the controller parser to distinguish an object preceded by 7941 an argument list from one without. Previously, it couldn't 7942 distinguish an argument list from the first line of a multiline 7943 object. Fixes bug 29984; bugfix on 0.2.3.8-alpha. 7944 7945 o Minor bugfixes (crash on exit): 7946 - Avoid a set of possible code paths that could try to use freed 7947 memory in routerlist_free() while Tor was exiting. Fixes bug 7948 31003; bugfix on 0.1.2.2-alpha. 7949 7950 o Minor bugfixes (developer tooling): 7951 - Fix pre-push hook to allow fixup and squash commits when pushing 7952 to non-upstream git remote. Fixes bug 30286; bugfix 7953 on 0.4.0.1-alpha. 7954 7955 o Minor bugfixes (directory authorities): 7956 - Stop crashing after parsing an unknown descriptor purpose 7957 annotation. We think this bug can only be triggered by modifying a 7958 local file. Fixes bug 30781; bugfix on 0.2.0.8-alpha. 7959 - Move the "bandwidth-file-headers" line in directory authority 7960 votes so that it conforms to dir-spec.txt. Fixes bug 30316; bugfix 7961 on 0.3.5.1-alpha. 7962 - Directory authorities with IPv6 support now always mark themselves 7963 as reachable via IPv6. Fixes bug 24338; bugfix on 0.2.4.1-alpha. 7964 Patch by Neel Chauhan. 7965 7966 o Minor bugfixes (documentation): 7967 - Improve the documentation for using MapAddress with ".exit". Fixes 7968 bug 30109; bugfix on 0.1.0.1-rc. 7969 - Improve the monotonic time module and function documentation to 7970 explain what "monotonic" actually means, and document some results 7971 that have surprised people. Fixes bug 29640; bugfix 7972 on 0.2.9.1-alpha. 7973 - Use proper formatting when providing an example on quoting options 7974 that contain whitespace. Fixes bug 29635; bugfix on 0.2.3.18-rc. 7975 7976 o Minor bugfixes (logging): 7977 - Do not log a warning when running with an OpenSSL version other 7978 than the one Tor was compiled with, if the two versions should be 7979 compatible. Previously, we would warn whenever the version was 7980 different. Fixes bug 30190; bugfix on 0.2.4.2-alpha. 7981 - Warn operators when the MyFamily option is set but ContactInfo is 7982 missing, as the latter should be set too. Fixes bug 25110; bugfix 7983 on 0.3.3.1-alpha. 7984 7985 o Minor bugfixes (memory leaks): 7986 - Avoid a minor memory leak that could occur on relays when failing 7987 to create a "keys" directory. Fixes bug 30148; bugfix 7988 on 0.3.3.1-alpha. 7989 - Fix a trivial memory leak when parsing an invalid value from a 7990 download schedule in the configuration. Fixes bug 30894; bugfix 7991 on 0.3.4.1-alpha. 7992 7993 o Minor bugfixes (NetBSD): 7994 - Fix usage of minherit() on NetBSD and other platforms that define 7995 MAP_INHERIT_{ZERO,NONE} instead of INHERIT_{ZERO,NONE}. Fixes bug 7996 30614; bugfix on 0.4.0.2-alpha. Patch from Taylor Campbell. 7997 7998 o Minor bugfixes (onion services): 7999 - Avoid a GCC 9.1.1 warning (and possible crash depending on libc 8000 implementation) when failing to load an onion service client 8001 authorization file. Fixes bug 30475; bugfix on 0.3.5.1-alpha. 8002 - When refusing to launch a controller's HSFETCH request because of 8003 rate-limiting, respond to the controller with a new response, 8004 "QUERY_RATE_LIMITED". Previously, we would log QUERY_NO_HSDIR for 8005 this case. Fixes bug 28269; bugfix on 0.3.1.1-alpha. Patch by 8006 Neel Chauhan. 8007 - When relaunching a circuit to a rendezvous service, mark the 8008 circuit as needing high-uptime routers as appropriate. Fixes bug 8009 17357; bugfix on 0.1.0.1-rc. Patch by Neel Chauhan. 8010 - Stop ignoring IPv6 link specifiers sent to v3 onion services. 8011 (IPv6 support for v3 onion services is still incomplete: see 8012 ticket 23493 for details.) Fixes bug 23588; bugfix on 8013 0.3.2.1-alpha. Patch by Neel Chauhan. 8014 8015 o Minor bugfixes (onion services, performance): 8016 - When building circuits to onion services, call tor_addr_parse() 8017 less often. Previously, we called tor_addr_parse() in 8018 circuit_is_acceptable() even if its output wasn't used. This 8019 change should improve performance when building circuits. Fixes 8020 bug 22210; bugfix on 0.2.8.12. Patch by Neel Chauhan. 8021 8022 o Minor bugfixes (out-of-memory handler): 8023 - When purging the DNS cache because of an out-of-memory condition, 8024 try purging just the older entries at first. Previously, we would 8025 always purge the whole thing. Fixes bug 29617; bugfix 8026 on 0.3.5.1-alpha. 8027 8028 o Minor bugfixes (performance): 8029 - When checking whether a node is a bridge, use a fast check to make 8030 sure that its identity is set. Previously, we used a constant-time 8031 check, which is not necessary in this case. Fixes bug 30308; 8032 bugfix on 0.3.5.1-alpha. 8033 8034 o Minor bugfixes (pluggable transports): 8035 - Tor now sets TOR_PT_EXIT_ON_STDIN_CLOSE=1 for client transports as 8036 well as servers. Fixes bug 25614; bugfix on 0.2.7.1-alpha. 8037 8038 o Minor bugfixes (portability): 8039 - Avoid crashing in our tor_vasprintf() implementation on systems 8040 that define neither vasprintf() nor _vscprintf(). (This bug has 8041 been here long enough that we question whether people are running 8042 Tor on such systems, but we're applying the fix out of caution.) 8043 Fixes bug 30561; bugfix on 0.2.8.2-alpha. Found and fixed by 8044 Tobias Stoeckmann. 8045 8046 o Minor bugfixes (probability distributions): 8047 - Refactor and improve parts of the probability distribution code 8048 that made Coverity complain. Fixes bug 29805; bugfix 8049 on 0.4.0.1-alpha. 8050 8051 o Minor bugfixes (python): 8052 - Stop assuming that /usr/bin/python3 exists. For scripts that work 8053 with python2, use /usr/bin/python. Otherwise, use /usr/bin/env 8054 python3. Fixes bug 29913; bugfix on 0.2.5.3-alpha. 8055 8056 o Minor bugfixes (relay): 8057 - When running as a relay, if IPv6Exit is set to 1 while ExitRelay 8058 is auto, act as if ExitRelay is 1. Previously, we would ignore 8059 IPv6Exit if ExitRelay was 0 or auto. Fixes bug 29613; bugfix on 8060 0.3.5.1-alpha. Patch by Neel Chauhan. 8061 8062 o Minor bugfixes (static analysis): 8063 - Fix several spurious Coverity warnings about the unit tests, to 8064 lower our chances of missing real warnings in the future. Fixes 8065 bug 30150; bugfix on 0.3.5.1-alpha and various other Tor versions. 8066 8067 o Minor bugfixes (stats): 8068 - When ExtraInfoStatistics is 0, stop including bandwidth usage 8069 statistics, GeoIPFile hashes, ServerTransportPlugin lines, and 8070 bridge statistics by country in extra-info documents. Fixes bug 8071 29018; bugfix on 0.2.4.1-alpha. 8072 8073 o Minor bugfixes (testing): 8074 - Call setrlimit() to disable core dumps in test_bt_cl.c. Previously 8075 we used `ulimit -c` in test_bt.sh, which violates POSIX shell 8076 compatibility. Fixes bug 29061; bugfix on 0.3.5.1-alpha. 8077 - Fix some incorrect code in the v3 onion service unit tests. Fixes 8078 bug 29243; bugfix on 0.3.2.1-alpha. 8079 - In the "routerkeys/*" tests, check the return values of mkdir() 8080 for possible failures. Fixes bug 29939; bugfix on 0.2.7.2-alpha. 8081 Found by Coverity as CID 1444254. 8082 - Split test_utils_general() into several smaller test functions. 8083 This makes it easier to perform resource deallocation on assert 8084 failure, and fixes Coverity warnings CID 1444117 and CID 1444118. 8085 Fixes bug 29823; bugfix on 0.2.9.1-alpha. 8086 8087 o Minor bugfixes (tor-resolve): 8088 - Fix a memory leak in tor-resolve that could happen if Tor gave it 8089 a malformed SOCKS response. (Memory leaks in tor-resolve don't 8090 actually matter, but it's good to fix them anyway.) Fixes bug 8091 30151; bugfix on 0.4.0.1-alpha. 8092 8093 o Code simplification and refactoring: 8094 - Abstract out the low-level formatting of replies on the control 8095 port. Implements ticket 30007. 8096 - Add several assertions in an attempt to fix some Coverity 8097 warnings. Closes ticket 30149. 8098 - Introduce a connection_dir_buf_add() helper function that checks 8099 for compress_state of dir_connection_t and automatically writes a 8100 string to directory connection with or without compression. 8101 Resolves issue 28816. 8102 - Make the base32_decode() API return the number of bytes written, 8103 for consistency with base64_decode(). Closes ticket 28913. 8104 - Move most relay-only periodic events out of mainloop.c into the 8105 relay subsystem. Closes ticket 30414. 8106 - Refactor and encapsulate parts of the codebase that manipulate 8107 crypt_path_t objects. Resolves issue 30236. 8108 - Refactor several places in our code that Coverity incorrectly 8109 believed might have memory leaks. Closes ticket 30147. 8110 - Remove redundant return values in crypto_format, and the 8111 associated return value checks elsewhere in the code. Make the 8112 implementations in crypto_format consistent, and remove redundant 8113 code. Resolves ticket 29660. 8114 - Rename tor_mem_is_zero() to fast_mem_is_zero(), to emphasize that 8115 it is not a constant-time function. Closes ticket 30309. 8116 - Replace hs_desc_link_specifier_t with link_specifier_t, and remove 8117 all hs_desc_link_specifier_t-specific code. Fixes bug 22781; 8118 bugfix on 0.3.2.1-alpha. 8119 - Simplify v3 onion service link specifier handling code. Fixes bug 8120 23576; bugfix on 0.3.2.1-alpha. 8121 - Split crypto_digest.c into NSS code, OpenSSL code, and shared 8122 code. Resolves ticket 29108. 8123 - Split control.c into several submodules, in preparation for 8124 distributing its current responsibilities throughout the codebase. 8125 Closes ticket 29894. 8126 - Start to move responsibility for knowing about periodic events to 8127 the appropriate subsystems, so that the mainloop doesn't need to 8128 know all the periodic events in the rest of the codebase. 8129 Implements tickets 30293 and 30294. 8130 8131 o Documentation: 8132 - Mention URLs for Travis/Appveyor/Jenkins in ReleasingTor.md. 8133 Closes ticket 30630. 8134 - Document how to find git commits and tags for bug fixes in 8135 CodingStandards.md. Update some file documentation. Closes 8136 ticket 30261. 8137 8138 o Removed features: 8139 - Remove the linux-tor-prio.sh script from contrib/operator-tools 8140 directory. Resolves issue 29434. 8141 - Remove the obsolete OpenSUSE initscript. Resolves issue 30076. 8142 - Remove the obsolete script at contrib/dist/tor.sh.in. Resolves 8143 issue 30075. 8144 8145 o Testing: 8146 - Specify torrc paths (with empty files) when launching tor in 8147 integration tests; refrain from reading user and system torrcs. 8148 Resolves issue 29702. 8149 8150 o Code simplification and refactoring (shell scripts): 8151 - Clean up many of our shell scripts to fix shellcheck warnings. 8152 These include autogen.sh (ticket 26069), test_keygen.sh (ticket 8153 29062), test_switch_id.sh (ticket 29065), test_rebind.sh (ticket 8154 29063), src/test/fuzz/minimize.sh (ticket 30079), test_rust.sh 8155 (ticket 29064), torify (ticket 29070), asciidoc-helper.sh (29926), 8156 fuzz_multi.sh (30077), fuzz_static_testcases.sh (ticket 29059), 8157 nagios-check-tor-authority-cert (ticket 29071), 8158 src/test/fuzz/fixup_filenames.sh (ticket 30078), test-network.sh 8159 (ticket 29060), test_key_expiration.sh (ticket 30002), 8160 zero_length_keys.sh (ticket 29068), and test_workqueue_*.sh 8161 (ticket 29067). 8162 8163 o Testing (chutney): 8164 - In "make test-network-all", test IPv6-only v3 single onion 8165 services, using the chutney network single-onion-v23-ipv6-md. 8166 Closes ticket 27251. 8167 8168 o Testing (continuous integration): 8169 - In Travis, make stem log a controller trace to the console, and tail 8170 stem's tor log after failure. Closes ticket 30591. 8171 - In Travis, only run the stem tests that use a tor binary. 8172 Closes ticket 30694. 8173 8174 8175 Changes in version 0.4.0.5 - 2019-05-02 8176 This is the first stable release in the 0.4.0.x series. It contains 8177 improvements for power management and bootstrap reporting, as well as 8178 preliminary backend support for circuit padding to prevent some kinds 8179 of traffic analysis. It also continues our work in refactoring Tor for 8180 long-term maintainability. 8181 8182 Per our support policy, we will support the 0.4.0.x series for nine 8183 months, or until three months after the release of a stable 0.4.1.x: 8184 whichever is longer. If you need longer-term support, please stick 8185 with 0.3.5.x, which will we plan to support until Feb 2022. 8186 8187 Below are the changes since 0.3.5.7. For a complete list of changes 8188 since 0.4.0.4-rc, see the ChangeLog file. 8189 8190 o Major features (battery management, client, dormant mode): 8191 - When Tor is running as a client, and it is unused for a long time, 8192 it can now enter a "dormant" state. When Tor is dormant, it avoids 8193 network and CPU activity until it is reawoken either by a user 8194 request or by a controller command. For more information, see the 8195 configuration options starting with "Dormant". Implements tickets 8196 2149 and 28335. 8197 - The client's memory of whether it is "dormant", and how long it 8198 has spent idle, persists across invocations. Implements 8199 ticket 28624. 8200 - There is a DormantOnFirstStartup option that integrators can use 8201 if they expect that in many cases, Tor will be installed but 8202 not used. 8203 8204 o Major features (bootstrap reporting): 8205 - When reporting bootstrap progress, report the first connection 8206 uniformly, regardless of whether it's a connection for building 8207 application circuits. This allows finer-grained reporting of early 8208 progress than previously possible, with the improvements of ticket 8209 27169. Closes tickets 27167 and 27103. Addresses ticket 27308. 8210 - When reporting bootstrap progress, treat connecting to a proxy or 8211 pluggable transport as separate from having successfully used that 8212 proxy or pluggable transport to connect to a relay. Closes tickets 8213 27100 and 28884. 8214 8215 o Major features (circuit padding): 8216 - Implement preliminary support for the circuit padding portion of 8217 Proposal 254. The implementation supports Adaptive Padding (aka 8218 WTF-PAD) state machines for use between experimental clients and 8219 relays. Support is also provided for APE-style state machines that 8220 use probability distributions instead of histograms to specify 8221 inter-packet delay. At the moment, Tor does not provide any 8222 padding state machines that are used in normal operation: for now, 8223 this feature exists solely for experimentation. Closes 8224 ticket 28142. 8225 8226 o Major features (refactoring): 8227 - Tor now uses an explicit list of its own subsystems when 8228 initializing and shutting down. Previously, these systems were 8229 managed implicitly in various places throughout the codebase. 8230 (There may still be some subsystems using the old system.) Closes 8231 ticket 28330. 8232 8233 o Major bugfixes (cell scheduler, KIST, security): 8234 - Make KIST consider the outbuf length when computing what it can 8235 put in the outbuf. Previously, KIST acted as though the outbuf 8236 were empty, which could lead to the outbuf becoming too full. It 8237 is possible that an attacker could exploit this bug to cause a Tor 8238 client or relay to run out of memory and crash. Fixes bug 29168; 8239 bugfix on 0.3.2.1-alpha. This issue is also being tracked as 8240 TROVE-2019-001 and CVE-2019-8955. 8241 8242 o Major bugfixes (networking): 8243 - Gracefully handle empty username/password fields in SOCKS5 8244 username/password auth message and allow SOCKS5 handshake to 8245 continue. Previously, we had rejected these handshakes, breaking 8246 certain applications. Fixes bug 29175; bugfix on 0.3.5.1-alpha. 8247 8248 o Major bugfixes (NSS, relay): 8249 - When running with NSS, disable TLS 1.2 ciphersuites that use 8250 SHA384 for their PRF. Due to an NSS bug, the TLS key exporters for 8251 these ciphersuites don't work -- which caused relays to fail to 8252 handshake with one another when these ciphersuites were enabled. 8253 Fixes bug 29241; bugfix on 0.3.5.1-alpha. 8254 8255 o Minor features (address selection): 8256 - Treat the subnet 100.64.0.0/10 as public for some purposes; 8257 private for others. This subnet is the RFC 6598 (Carrier Grade 8258 NAT) IP range, and is deployed by many ISPs as an alternative to 8259 RFC 1918 that does not break existing internal networks. Tor now 8260 blocks SOCKS and control ports on these addresses and warns users 8261 if client ports or ExtORPorts are listening on a RFC 6598 address. 8262 Closes ticket 28525. Patch by Neel Chauhan. 8263 8264 o Minor features (bandwidth authority): 8265 - Make bandwidth authorities ignore relays that are reported in the 8266 bandwidth file with the flag "vote=0". This change allows us to 8267 report unmeasured relays for diagnostic reasons without including 8268 their bandwidth in the bandwidth authorities' vote. Closes 8269 ticket 29806. 8270 - When a directory authority is using a bandwidth file to obtain the 8271 bandwidth values that will be included in the next vote, serve 8272 this bandwidth file at /tor/status-vote/next/bandwidth. Closes 8273 ticket 21377. 8274 8275 o Minor features (bootstrap reporting): 8276 - When reporting bootstrap progress, stop distinguishing between 8277 situations where only internal paths are available and situations 8278 where external paths are available. Previously, Tor would often 8279 erroneously report that it had only internal paths. Closes 8280 ticket 27402. 8281 8282 o Minor features (compilation): 8283 - Compile correctly when OpenSSL is built with engine support 8284 disabled, or with deprecated APIs disabled. Closes ticket 29026. 8285 Patches from "Mangix". 8286 8287 o Minor features (continuous integration): 8288 - On Travis Rust builds, cleanup Rust registry and refrain from 8289 caching the "target/" directory to speed up builds. Resolves 8290 issue 29962. 8291 - Log Python version during each Travis CI job. Resolves 8292 issue 28551. 8293 - In Travis, tell timelimit to use stem's backtrace signals, and 8294 launch python directly from timelimit, so python receives the 8295 signals from timelimit, rather than make. Closes ticket 30117. 8296 8297 o Minor features (controller): 8298 - Add a DROPOWNERSHIP command to undo the effects of TAKEOWNERSHIP. 8299 Implements ticket 28843. 8300 8301 o Minor features (developer tooling): 8302 - Check that bugfix versions in changes files look like Tor versions 8303 from the versions spec. Warn when bugfixes claim to be on a future 8304 release. Closes ticket 27761. 8305 - Provide a git pre-commit hook that disallows committing if we have 8306 any failures in our code and changelog formatting checks. It is 8307 now available in scripts/maint/pre-commit.git-hook. Implements 8308 feature 28976. 8309 - Provide a git hook script to prevent "fixup!" and "squash!" 8310 commits from ending up in the master branch, as scripts/main/pre- 8311 push.git-hook. Closes ticket 27993. 8312 8313 o Minor features (diagnostic): 8314 - Add more diagnostic log messages in an attempt to solve the issue 8315 of NUL bytes appearing in a microdescriptor cache. Related to 8316 ticket 28223. 8317 8318 o Minor features (directory authority): 8319 - When a directory authority is using a bandwidth file to obtain 8320 bandwidth values, include the digest of that file in the vote. 8321 Closes ticket 26698. 8322 - Directory authorities support a new consensus algorithm, under 8323 which the family lines in microdescriptors are encoded in a 8324 canonical form. This change makes family lines more compressible 8325 in transit, and on the client. Closes ticket 28266; implements 8326 proposal 298. 8327 8328 o Minor features (directory authority, relay): 8329 - Authorities now vote on a "StaleDesc" flag to indicate that a 8330 relay's descriptor is so old that the relay should upload again 8331 soon. Relays treat this flag as a signal to upload a new 8332 descriptor. This flag will eventually let us remove the 8333 'published' date from routerstatus entries, and make our consensus 8334 diffs much smaller. Closes ticket 26770; implements proposal 293. 8335 8336 o Minor features (dormant mode): 8337 - Add a DormantCanceledByStartup option to tell Tor that it should 8338 treat a startup event as cancelling any previous dormant state. 8339 Integrators should use this option with caution: it should only be 8340 used if Tor is being started because of something that the user 8341 did, and not if Tor is being automatically started in the 8342 background. Closes ticket 29357. 8343 8344 o Minor features (fallback directory mirrors): 8345 - Update the fallback whitelist based on operator opt-ins and opt- 8346 outs. Closes ticket 24805, patch by Phoul. 8347 8348 o Minor features (FreeBSD): 8349 - On FreeBSD-based systems, warn relay operators if the 8350 "net.inet.ip.random_id" sysctl (IP ID randomization) is disabled. 8351 Closes ticket 28518. 8352 8353 o Minor features (geoip): 8354 - Update geoip and geoip6 to the April 2 2019 Maxmind GeoLite2 8355 Country database. Closes ticket 29992. 8356 8357 o Minor features (HTTP standards compliance): 8358 - Stop sending the header "Content-type: application/octet-stream" 8359 along with transparently compressed documents: this confused 8360 browsers. Closes ticket 28100. 8361 8362 o Minor features (IPv6): 8363 - We add an option ClientAutoIPv6ORPort, to make clients randomly 8364 prefer a node's IPv4 or IPv6 ORPort. The random preference is set 8365 every time a node is loaded from a new consensus or bridge config. 8366 We expect that this option will enable clients to bootstrap more 8367 quickly without having to determine whether they support IPv4, 8368 IPv6, or both. Closes ticket 27490. Patch by Neel Chauhan. 8369 - When using addrs_in_same_network_family(), avoid choosing circuit 8370 paths that pass through the same IPv6 subnet more than once. 8371 Previously, we only checked IPv4 subnets. Closes ticket 24393. 8372 Patch by Neel Chauhan. 8373 8374 o Minor features (log messages): 8375 - Improve log message in v3 onion services that could print out 8376 negative revision counters. Closes ticket 27707. Patch 8377 by "ffmancera". 8378 8379 o Minor features (memory usage): 8380 - Save memory by storing microdescriptor family lists with a more 8381 compact representation. Closes ticket 27359. 8382 - Tor clients now use mmap() to read consensus files from disk, so 8383 that they no longer need keep the full text of a consensus in 8384 memory when parsing it or applying a diff. Closes ticket 27244. 8385 8386 o Minor features (NSS, diagnostic): 8387 - Try to log an error from NSS (if there is any) and a more useful 8388 description of our situation if we are using NSS and a call to 8389 SSL_ExportKeyingMaterial() fails. Diagnostic for ticket 29241. 8390 8391 o Minor features (parsing): 8392 - Directory authorities now validate that router descriptors and 8393 ExtraInfo documents are in a valid subset of UTF-8, and reject 8394 them if they are not. Closes ticket 27367. 8395 8396 o Minor features (performance): 8397 - Cache the results of summarize_protocol_flags(), so that we don't 8398 have to parse the same protocol-versions string over and over. 8399 This should save us a huge number of malloc calls on startup, and 8400 may reduce memory fragmentation with some allocators. Closes 8401 ticket 27225. 8402 - Remove a needless memset() call from get_token_arguments, thereby 8403 speeding up the tokenization of directory objects by about 20%. 8404 Closes ticket 28852. 8405 - Replace parse_short_policy() with a faster implementation, to 8406 improve microdescriptor parsing time. Closes ticket 28853. 8407 - Speed up directory parsing a little by avoiding use of the non- 8408 inlined strcmp_len() function. Closes ticket 28856. 8409 - Speed up microdescriptor parsing by about 30%, to help improve 8410 startup time. Closes ticket 28839. 8411 8412 o Minor features (pluggable transports): 8413 - Add support for emitting STATUS updates to Tor's control port from 8414 a pluggable transport process. Closes ticket 28846. 8415 - Add support for logging to Tor's logging subsystem from a 8416 pluggable transport process. Closes ticket 28180. 8417 8418 o Minor features (process management): 8419 - Add a new process API for handling child processes. This new API 8420 allows Tor to have bi-directional communication with child 8421 processes on both Unix and Windows. Closes ticket 28179. 8422 - Use the subsystem manager to initialize and shut down the process 8423 module. Closes ticket 28847. 8424 8425 o Minor features (relay): 8426 - When listing relay families, list them in canonical form including 8427 the relay's own identity, and try to give a more useful set of 8428 warnings. Part of ticket 28266 and proposal 298. 8429 8430 o Minor features (required protocols): 8431 - Before exiting because of a missing required protocol, Tor will 8432 now check the publication time of the consensus, and not exit 8433 unless the consensus is newer than the Tor program's own release 8434 date. Previously, Tor would not check the consensus publication 8435 time, and so might exit because of a missing protocol that might 8436 no longer be required in a current consensus. Implements proposal 8437 297; closes ticket 27735. 8438 8439 o Minor features (testing): 8440 - Treat all unexpected ERR and BUG messages as test failures. Closes 8441 ticket 28668. 8442 - Allow a HeartbeatPeriod of less than 30 minutes in testing Tor 8443 networks. Closes ticket 28840. Patch by Rob Jansen. 8444 - Use the approx_time() function when setting the "Expires" header 8445 in directory replies, to make them more testable. Needed for 8446 ticket 30001. 8447 8448 o Minor bugfixes (security): 8449 - Fix a potential double free bug when reading huge bandwidth files. 8450 The issue is not exploitable in the current Tor network because 8451 the vulnerable code is only reached when directory authorities 8452 read bandwidth files, but bandwidth files come from a trusted 8453 source (usually the authorities themselves). Furthermore, the 8454 issue is only exploitable in rare (non-POSIX) 32-bit architectures, 8455 which are not used by any of the current authorities. Fixes bug 8456 30040; bugfix on 0.3.5.1-alpha. Bug found and fixed by 8457 Tobias Stoeckmann. 8458 - Verify in more places that we are not about to create a buffer 8459 with more than INT_MAX bytes, to avoid possible OOB access in the 8460 event of bugs. Fixes bug 30041; bugfix on 0.2.0.16. Found and 8461 fixed by Tobias Stoeckmann. 8462 8463 o Minor bugfix (continuous integration): 8464 - Reset coverage state on disk after Travis CI has finished. This 8465 should prevent future coverage merge errors from causing the test 8466 suite for the "process" subsystem to fail. The process subsystem 8467 was introduced in 0.4.0.1-alpha. Fixes bug 29036; bugfix 8468 on 0.2.9.15. 8469 - Terminate test-stem if it takes more than 9.5 minutes to run. 8470 (Travis terminates the job after 10 minutes of no output.) 8471 Diagnostic for 29437. Fixes bug 30011; bugfix on 0.3.5.4-alpha. 8472 8473 o Minor bugfixes (build, compatibility, rust): 8474 - Update Cargo.lock file to match the version made by the latest 8475 version of Rust, so that "make distcheck" will pass again. Fixes 8476 bug 29244; bugfix on 0.3.3.4-alpha. 8477 8478 o Minor bugfixes (C correctness): 8479 - Fix an unlikely memory leak in consensus_diff_apply(). Fixes bug 8480 29824; bugfix on 0.3.1.1-alpha. This is Coverity warning 8481 CID 1444119. 8482 8483 o Minor bugfixes (client, clock skew): 8484 - Bootstrap successfully even when Tor's clock is behind the clocks 8485 on the authorities. Fixes bug 28591; bugfix on 0.2.0.9-alpha. 8486 - Select guards even if the consensus has expired, as long as the 8487 consensus is still reasonably live. Fixes bug 24661; bugfix 8488 on 0.3.0.1-alpha. 8489 8490 o Minor bugfixes (compilation): 8491 - Silence a compiler warning in test-memwipe.c on OpenBSD. Fixes bug 8492 29145; bugfix on 0.2.9.3-alpha. Patch from Kris Katterjohn. 8493 - Compile correctly on OpenBSD; previously, we were missing some 8494 headers required in order to detect it properly. Fixes bug 28938; 8495 bugfix on 0.3.5.1-alpha. Patch from Kris Katterjohn. 8496 8497 o Minor bugfixes (directory clients): 8498 - Mark outdated dirservers when Tor only has a reasonably live 8499 consensus. Fixes bug 28569; bugfix on 0.3.2.5-alpha. 8500 8501 o Minor bugfixes (directory mirrors): 8502 - Even when a directory mirror's clock is behind the clocks on the 8503 authorities, we now allow the mirror to serve "future" 8504 consensuses. Fixes bug 28654; bugfix on 0.3.0.1-alpha. 8505 8506 o Minor bugfixes (DNS): 8507 - Gracefully handle an empty or absent resolve.conf file by falling 8508 back to using "localhost" as a DNS server (and hoping it works). 8509 Previously, we would just stop running as an exit. Fixes bug 8510 21900; bugfix on 0.2.1.10-alpha. 8511 8512 o Minor bugfixes (documentation): 8513 - Describe the contents of the v3 onion service client authorization 8514 files correctly: They hold public keys, not private keys. Fixes 8515 bug 28979; bugfix on 0.3.5.1-alpha. Spotted by "Felixix". 8516 8517 o Minor bugfixes (guards): 8518 - In count_acceptable_nodes(), the minimum number is now one bridge 8519 or guard node, and two non-guard nodes for a circuit. Previously, 8520 we had added up the sum of all nodes with a descriptor, but that 8521 could cause us to build failing circuits when we had either too 8522 many bridges or not enough guard nodes. Fixes bug 25885; bugfix on 8523 0.2.3.1-alpha. Patch by Neel Chauhan. 8524 8525 o Minor bugfixes (IPv6): 8526 - Fix tor_ersatz_socketpair on IPv6-only systems. Previously, the 8527 IPv6 socket was bound using an address family of AF_INET instead 8528 of AF_INET6. Fixes bug 28995; bugfix on 0.3.5.1-alpha. Patch from 8529 Kris Katterjohn. 8530 8531 o Minor bugfixes (logging): 8532 - Correct a misleading error message when IPv4Only or IPv6Only is 8533 used but the resolved address can not be interpreted as an address 8534 of the specified IP version. Fixes bug 13221; bugfix on 8535 0.2.3.9-alpha. Patch from Kris Katterjohn. 8536 - Log the correct port number for listening sockets when "auto" is 8537 used to let Tor pick the port number. Previously, port 0 was 8538 logged instead of the actual port number. Fixes bug 29144; bugfix 8539 on 0.3.5.1-alpha. Patch from Kris Katterjohn. 8540 - Stop logging a BUG() warning when Tor is waiting for exit 8541 descriptors. Fixes bug 28656; bugfix on 0.3.5.1-alpha. 8542 - Avoid logging that we are relaxing a circuit timeout when that 8543 timeout is fixed. Fixes bug 28698; bugfix on 0.2.4.7-alpha. 8544 - Log more information at "warning" level when unable to read a 8545 private key; log more information at "info" level when unable to 8546 read a public key. We had warnings here before, but they were lost 8547 during our NSS work. Fixes bug 29042; bugfix on 0.3.5.1-alpha. 8548 - Rework rep_hist_log_link_protocol_counts() to iterate through all 8549 link protocol versions when logging incoming/outgoing connection 8550 counts. Tor no longer skips version 5, and we won't have to 8551 remember to update this function when new link protocol version is 8552 developed. Fixes bug 28920; bugfix on 0.2.6.10. 8553 8554 o Minor bugfixes (memory management): 8555 - Refactor the shared random state's memory management so that it 8556 actually takes ownership of the shared random value pointers. 8557 Fixes bug 29706; bugfix on 0.2.9.1-alpha. 8558 - Stop leaking parts of the shared random state in the shared-random 8559 unit tests. Fixes bug 29599; bugfix on 0.2.9.1-alpha. 8560 8561 o Minor bugfixes (misc): 8562 - The amount of total available physical memory is now determined 8563 using the sysctl identifier HW_PHYSMEM (rather than HW_USERMEM) 8564 when it is defined and a 64-bit variant is not available. Fixes 8565 bug 28981; bugfix on 0.2.5.4-alpha. Patch from Kris Katterjohn. 8566 8567 o Minor bugfixes (networking): 8568 - Introduce additional checks into tor_addr_parse() to reject 8569 certain incorrect inputs that previously were not detected. Fixes 8570 bug 23082; bugfix on 0.2.0.10-alpha. 8571 8572 o Minor bugfixes (onion service v3, client): 8573 - Stop logging a "BUG()" warning and stacktrace when we find a SOCKS 8574 connection waiting for a descriptor that we actually have in the 8575 cache. It turns out that this can actually happen, though it is 8576 rare. Now, tor will recover and retry the descriptor. Fixes bug 8577 28669; bugfix on 0.3.2.4-alpha. 8578 8579 o Minor bugfixes (onion services): 8580 - Avoid crashing if ClientOnionAuthDir (incorrectly) contains more 8581 than one private key for a hidden service. Fixes bug 29040; bugfix 8582 on 0.3.5.1-alpha. 8583 - In hs_cache_store_as_client() log an HSDesc we failed to parse at 8584 "debug" level. Tor used to log it as a warning, which caused very 8585 long log lines to appear for some users. Fixes bug 29135; bugfix 8586 on 0.3.2.1-alpha. 8587 - Stop logging "Tried to establish rendezvous on non-OR circuit..." 8588 as a warning. Instead, log it as a protocol warning, because there 8589 is nothing that relay operators can do to fix it. Fixes bug 29029; 8590 bugfix on 0.2.5.7-rc. 8591 8592 o Minor bugfixes (periodic events): 8593 - Refrain from calling routerlist_remove_old_routers() from 8594 check_descriptor_callback(). Instead, create a new hourly periodic 8595 event. Fixes bug 27929; bugfix on 0.2.8.1-alpha. 8596 8597 o Minor bugfixes (pluggable transports): 8598 - Make sure that data is continously read from standard output and 8599 standard error pipes of a pluggable transport child-process, to 8600 avoid deadlocking when a pipe's buffer is full. Fixes bug 26360; 8601 bugfix on 0.2.3.6-alpha. 8602 8603 o Minor bugfixes (rust): 8604 - Abort on panic in all build profiles, instead of potentially 8605 unwinding into C code. Fixes bug 27199; bugfix on 0.3.3.1-alpha. 8606 8607 o Minor bugfixes (scheduler): 8608 - When re-adding channels to the pending list, check the correct 8609 channel's sched_heap_idx. This issue has had no effect in mainline 8610 Tor, but could have led to bugs down the road in improved versions 8611 of our circuit scheduling code. Fixes bug 29508; bugfix 8612 on 0.3.2.10. 8613 8614 o Minor bugfixes (single onion services): 8615 - Allow connections to single onion services to remain idle without 8616 being disconnected. Previously, relays acting as rendezvous points 8617 for single onion services were mistakenly closing idle rendezvous 8618 circuits after 60 seconds, thinking that they were unused 8619 directory-fetching circuits that had served their purpose. Fixes 8620 bug 29665; bugfix on 0.2.1.26. 8621 8622 o Minor bugfixes (stats): 8623 - When ExtraInfoStatistics is 0, stop including PaddingStatistics in 8624 relay and bridge extra-info documents. Fixes bug 29017; bugfix 8625 on 0.3.1.1-alpha. 8626 8627 o Minor bugfixes (testing): 8628 - Backport the 0.3.4 src/test/test-network.sh to 0.2.9. We need a 8629 recent test-network.sh to use new chutney features in CI. Fixes 8630 bug 29703; bugfix on 0.2.9.1-alpha. 8631 - Fix a test failure on Windows caused by an unexpected "BUG" 8632 warning in our tests for tor_gmtime_r(-1). Fixes bug 29922; bugfix 8633 on 0.2.9.3-alpha. 8634 - Downgrade some LOG_ERR messages in the address/* tests to 8635 warnings. The LOG_ERR messages were occurring when we had no 8636 configured network. We were failing the unit tests, because we 8637 backported 28668 to 0.3.5.8, but did not backport 29530. Fixes bug 8638 29530; bugfix on 0.3.5.8. 8639 - Fix our gcov wrapper script to look for object files at the 8640 correct locations. Fixes bug 29435; bugfix on 0.3.5.1-alpha. 8641 - Detect and suppress "bug" warnings from the util/time test on 8642 Windows. Fixes bug 29161; bugfix on 0.2.9.3-alpha. 8643 - Do not log an error-level message if we fail to find an IPv6 8644 network interface from the unit tests. Fixes bug 29160; bugfix 8645 on 0.2.7.3-rc. 8646 - Instead of relying on hs_free_all() to clean up all onion service 8647 objects in test_build_descriptors(), we now deallocate them one by 8648 one. This lets Coverity know that we are not leaking memory there 8649 and fixes CID 1442277. Fixes bug 28989; bugfix on 0.3.5.1-alpha. 8650 8651 o Minor bugfixes (TLS protocol): 8652 - When classifying a client's selection of TLS ciphers, if the 8653 client ciphers are not yet available, do not cache the result. 8654 Previously, we had cached the unavailability of the cipher list 8655 and never looked again, which in turn led us to assume that the 8656 client only supported the ancient V1 link protocol. This, in turn, 8657 was causing Stem integration tests to stall in some cases. Fixes 8658 bug 30021; bugfix on 0.2.4.8-alpha. 8659 8660 o Minor bugfixes (usability): 8661 - Stop saying "Your Guard ..." in pathbias_measure_{use,close}_rate(). 8662 Some users took this phrasing to mean that the mentioned guard was 8663 under their control or responsibility, which it is not. Fixes bug 8664 28895; bugfix on Tor 0.3.0.1-alpha. 8665 8666 o Minor bugfixes (Windows, CI): 8667 - Skip the Appveyor 32-bit Windows Server 2016 job, and 64-bit 8668 Windows Server 2012 R2 job. The remaining 2 jobs still provide 8669 coverage of 64/32-bit, and Windows Server 2016/2012 R2. Also set 8670 fast_finish, so failed jobs terminate the build immediately. Fixes 8671 bug 29601; bugfix on 0.3.5.4-alpha. 8672 8673 o Code simplification and refactoring: 8674 - Introduce a connection_dir_buf_add() helper function that detects 8675 whether compression is in use, and adds a string accordingly. 8676 Resolves issue 28816. 8677 - Refactor handle_get_next_bandwidth() to use 8678 connection_dir_buf_add(). Implements ticket 29897. 8679 - Reimplement NETINFO cell parsing and generation to rely on 8680 trunnel-generated wire format handling code. Closes ticket 27325. 8681 - Remove unnecessary unsafe code from the Rust macro "cstr!". Closes 8682 ticket 28077. 8683 - Rework SOCKS wire format handling to rely on trunnel-generated 8684 parsing/generation code. Resolves ticket 27620. 8685 - Split out bootstrap progress reporting from control.c into a 8686 separate file. Part of ticket 27402. 8687 - The .may_include files that we use to describe our directory-by- 8688 directory dependency structure now describe a noncircular 8689 dependency graph over the directories that they cover. Our 8690 checkIncludes.py tool now enforces this noncircularity. Closes 8691 ticket 28362. 8692 8693 o Documentation: 8694 - Clarify that Tor performs stream isolation among *Port listeners 8695 by default. Resolves issue 29121. 8696 - In the manpage entry describing MapAddress torrc setting, use 8697 example IP addresses from ranges specified for use in documentation 8698 by RFC 5737. Resolves issue 28623. 8699 - Mention that you cannot add a new onion service if Tor is already 8700 running with Sandbox enabled. Closes ticket 28560. 8701 - Improve ControlPort documentation. Mention that it accepts 8702 address:port pairs, and can be used multiple times. Closes 8703 ticket 28805. 8704 - Document the exact output of "tor --version". Closes ticket 28889. 8705 8706 o Removed features: 8707 - Remove the old check-tor script. Resolves issue 29072. 8708 - Stop responding to the 'GETINFO status/version/num-concurring' and 8709 'GETINFO status/version/num-versioning' control port commands, as 8710 those were deprecated back in 0.2.0.30. Also stop listing them in 8711 output of 'GETINFO info/names'. Resolves ticket 28757. 8712 - The scripts used to generate and maintain the list of fallback 8713 directories have been extracted into a new "fallback-scripts" 8714 repository. Closes ticket 27914. 8715 8716 o Testing: 8717 - Run shellcheck for scripts in the in scripts/ directory. Closes 8718 ticket 28058. 8719 - Add unit tests for tokenize_string() and get_next_token() 8720 functions. Resolves ticket 27625. 8721 8722 o Code simplification and refactoring (onion service v3): 8723 - Consolidate the authorized client descriptor cookie computation 8724 code from client and service into one function. Closes 8725 ticket 27549. 8726 8727 o Code simplification and refactoring (shell scripts): 8728 - Cleanup scan-build.sh to silence shellcheck warnings. Closes 8729 ticket 28007. 8730 - Fix issues that shellcheck found in chutney-git-bisect.sh. 8731 Resolves ticket 28006. 8732 - Fix issues that shellcheck found in updateRustDependencies.sh. 8733 Resolves ticket 28012. 8734 - Fix shellcheck warnings in cov-diff script. Resolves issue 28009. 8735 - Fix shellcheck warnings in run_calltool.sh. Resolves ticket 28011. 8736 - Fix shellcheck warnings in run_trunnel.sh. Resolves issue 28010. 8737 - Fix shellcheck warnings in scripts/test/coverage. Resolves 8738 issue 28008. 8739 8740 8741 Changes in version 0.3.5.8 - 2019-02-21 8742 Tor 0.3.5.8 backports several fixes from later releases, including fixes 8743 for an annoying SOCKS-parsing bug that affected users in earlier 0.3.5.x 8744 releases. 8745 8746 It also includes a fix for a medium-severity security bug affecting Tor 8747 0.3.2.1-alpha and later. All Tor instances running an affected release 8748 should upgrade to 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha. 8749 8750 o Major bugfixes (cell scheduler, KIST, security): 8751 - Make KIST consider the outbuf length when computing what it can 8752 put in the outbuf. Previously, KIST acted as though the outbuf 8753 were empty, which could lead to the outbuf becoming too full. It 8754 is possible that an attacker could exploit this bug to cause a Tor 8755 client or relay to run out of memory and crash. Fixes bug 29168; 8756 bugfix on 0.3.2.1-alpha. This issue is also being tracked as 8757 TROVE-2019-001 and CVE-2019-8955. 8758 8759 o Major bugfixes (networking, backport from 0.4.0.2-alpha): 8760 - Gracefully handle empty username/password fields in SOCKS5 8761 username/password auth messsage and allow SOCKS5 handshake to 8762 continue. Previously, we had rejected these handshakes, breaking 8763 certain applications. Fixes bug 29175; bugfix on 0.3.5.1-alpha. 8764 8765 o Minor features (compilation, backport from 0.4.0.2-alpha): 8766 - Compile correctly when OpenSSL is built with engine support 8767 disabled, or with deprecated APIs disabled. Closes ticket 29026. 8768 Patches from "Mangix". 8769 8770 o Minor features (geoip): 8771 - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2 8772 Country database. Closes ticket 29478. 8773 8774 o Minor features (testing, backport from 0.4.0.2-alpha): 8775 - Treat all unexpected ERR and BUG messages as test failures. Closes 8776 ticket 28668. 8777 8778 o Minor bugfixes (onion service v3, client, backport from 0.4.0.1-alpha): 8779 - Stop logging a "BUG()" warning and stacktrace when we find a SOCKS 8780 connection waiting for a descriptor that we actually have in the 8781 cache. It turns out that this can actually happen, though it is 8782 rare. Now, tor will recover and retry the descriptor. Fixes bug 8783 28669; bugfix on 0.3.2.4-alpha. 8784 8785 o Minor bugfixes (IPv6, backport from 0.4.0.1-alpha): 8786 - Fix tor_ersatz_socketpair on IPv6-only systems. Previously, the 8787 IPv6 socket was bound using an address family of AF_INET instead 8788 of AF_INET6. Fixes bug 28995; bugfix on 0.3.5.1-alpha. Patch from 8789 Kris Katterjohn. 8790 8791 o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha): 8792 - Update Cargo.lock file to match the version made by the latest 8793 version of Rust, so that "make distcheck" will pass again. Fixes 8794 bug 29244; bugfix on 0.3.3.4-alpha. 8795 8796 o Minor bugfixes (client, clock skew, backport from 0.4.0.1-alpha): 8797 - Select guards even if the consensus has expired, as long as the 8798 consensus is still reasonably live. Fixes bug 24661; bugfix 8799 on 0.3.0.1-alpha. 8800 8801 o Minor bugfixes (compilation, backport from 0.4.0.1-alpha): 8802 - Compile correctly on OpenBSD; previously, we were missing some 8803 headers required in order to detect it properly. Fixes bug 28938; 8804 bugfix on 0.3.5.1-alpha. Patch from Kris Katterjohn. 8805 8806 o Minor bugfixes (documentation, backport from 0.4.0.2-alpha): 8807 - Describe the contents of the v3 onion service client authorization 8808 files correctly: They hold public keys, not private keys. Fixes 8809 bug 28979; bugfix on 0.3.5.1-alpha. Spotted by "Felixix". 8810 8811 o Minor bugfixes (logging, backport from 0.4.0.1-alpha): 8812 - Rework rep_hist_log_link_protocol_counts() to iterate through all 8813 link protocol versions when logging incoming/outgoing connection 8814 counts. Tor no longer skips version 5, and we won't have to 8815 remember to update this function when new link protocol version is 8816 developed. Fixes bug 28920; bugfix on 0.2.6.10. 8817 8818 o Minor bugfixes (logging, backport from 0.4.0.2-alpha): 8819 - Log more information at "warning" level when unable to read a 8820 private key; log more information at "info" level when unable to 8821 read a public key. We had warnings here before, but they were lost 8822 during our NSS work. Fixes bug 29042; bugfix on 0.3.5.1-alpha. 8823 8824 o Minor bugfixes (misc, backport from 0.4.0.2-alpha): 8825 - The amount of total available physical memory is now determined 8826 using the sysctl identifier HW_PHYSMEM (rather than HW_USERMEM) 8827 when it is defined and a 64-bit variant is not available. Fixes 8828 bug 28981; bugfix on 0.2.5.4-alpha. Patch from Kris Katterjohn. 8829 8830 o Minor bugfixes (onion services, backport from 0.4.0.2-alpha): 8831 - Avoid crashing if ClientOnionAuthDir (incorrectly) contains more 8832 than one private key for a hidden service. Fixes bug 29040; bugfix 8833 on 0.3.5.1-alpha. 8834 - In hs_cache_store_as_client() log an HSDesc we failed to parse at 8835 "debug" level. Tor used to log it as a warning, which caused very 8836 long log lines to appear for some users. Fixes bug 29135; bugfix 8837 on 0.3.2.1-alpha. 8838 - Stop logging "Tried to establish rendezvous on non-OR circuit..." 8839 as a warning. Instead, log it as a protocol warning, because there 8840 is nothing that relay operators can do to fix it. Fixes bug 29029; 8841 bugfix on 0.2.5.7-rc. 8842 8843 o Minor bugfixes (tests, directory clients, backport from 0.4.0.1-alpha): 8844 - Mark outdated dirservers when Tor only has a reasonably live 8845 consensus. Fixes bug 28569; bugfix on 0.3.2.5-alpha. 8846 8847 o Minor bugfixes (tests, backport from 0.4.0.2-alpha): 8848 - Detect and suppress "bug" warnings from the util/time test on 8849 Windows. Fixes bug 29161; bugfix on 0.2.9.3-alpha. 8850 - Do not log an error-level message if we fail to find an IPv6 8851 network interface from the unit tests. Fixes bug 29160; bugfix 8852 on 0.2.7.3-rc. 8853 8854 o Minor bugfixes (usability, backport from 0.4.0.1-alpha): 8855 - Stop saying "Your Guard ..." in pathbias_measure_{use,close}_rate(). 8856 Some users took this phrasing to mean that the mentioned guard was 8857 under their control or responsibility, which it is not. Fixes bug 8858 28895; bugfix on Tor 0.3.0.1-alpha. 8859 8860 8861 Changes in version 0.3.4.11 - 2019-02-21 8862 Tor 0.3.4.11 is the third stable release in its series. It includes 8863 a fix for a medium-severity security bug affecting Tor 0.3.2.1-alpha and 8864 later. All Tor instances running an affected release should upgrade to 8865 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha. 8866 8867 o Major bugfixes (cell scheduler, KIST, security): 8868 - Make KIST consider the outbuf length when computing what it can 8869 put in the outbuf. Previously, KIST acted as though the outbuf 8870 were empty, which could lead to the outbuf becoming too full. It 8871 is possible that an attacker could exploit this bug to cause a Tor 8872 client or relay to run out of memory and crash. Fixes bug 29168; 8873 bugfix on 0.3.2.1-alpha. This issue is also being tracked as 8874 TROVE-2019-001 and CVE-2019-8955. 8875 8876 o Minor features (geoip): 8877 - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2 8878 Country database. Closes ticket 29478. 8879 8880 o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha): 8881 - Update Cargo.lock file to match the version made by the latest 8882 version of Rust, so that "make distcheck" will pass again. Fixes 8883 bug 29244; bugfix on 0.3.3.4-alpha. 8884 8885 o Minor bugfixes (onion services, backport from 0.4.0.2-alpha): 8886 - Stop logging "Tried to establish rendezvous on non-OR circuit..." 8887 as a warning. Instead, log it as a protocol warning, because there 8888 is nothing that relay operators can do to fix it. Fixes bug 29029; 8889 bugfix on 0.2.5.7-rc. 8890 8891 8892 Changes in version 0.3.3.12 - 2019-02-21 8893 Tor 0.3.3.12 fixes a medium-severity security bug affecting Tor 8894 0.3.2.1-alpha and later. All Tor instances running an affected release 8895 should upgrade to 0.3.3.12, 0.3.4.11, 0.3.5.8, or 0.4.0.2-alpha. 8896 8897 This release marks the end of support for the Tor 0.3.3.x series. We 8898 recommend that users switch to either the Tor 0.3.4 series (supported 8899 until at least 10 June 2019), or the Tor 0.3.5 series, which will 8900 receive long-term support until at least 1 Feb 2022. 8901 8902 o Major bugfixes (cell scheduler, KIST, security): 8903 - Make KIST consider the outbuf length when computing what it can 8904 put in the outbuf. Previously, KIST acted as though the outbuf 8905 were empty, which could lead to the outbuf becoming too full. It 8906 is possible that an attacker could exploit this bug to cause a Tor 8907 client or relay to run out of memory and crash. Fixes bug 29168; 8908 bugfix on 0.3.2.1-alpha. This issue is also being tracked as 8909 TROVE-2019-001 and CVE-2019-8955. 8910 8911 o Minor features (geoip): 8912 - Update geoip and geoip6 to the February 5 2019 Maxmind GeoLite2 8913 Country database. Closes ticket 29478. 8914 8915 o Minor bugfixes (build, compatibility, rust, backport from 0.4.0.2-alpha): 8916 - Update Cargo.lock file to match the version made by the latest 8917 version of Rust, so that "make distcheck" will pass again. Fixes 8918 bug 29244; bugfix on 0.3.3.4-alpha. 8919 8920 o Minor bugfixes (onion services, backport from 0.4.0.2-alpha): 8921 - Stop logging "Tried to establish rendezvous on non-OR circuit..." 8922 as a warning. Instead, log it as a protocol warning, because there 8923 is nothing that relay operators can do to fix it. Fixes bug 29029; 8924 bugfix on 0.2.5.7-rc. 8925 8926 8927 Changes in version 0.3.3.11 - 2019-01-07 8928 Tor 0.3.3.11 backports numerous fixes from later versions of Tor. 8929 numerous fixes, including an important fix for anyone using OpenSSL 8930 1.1.1. Anyone running an earlier version of Tor 0.3.3 should upgrade 8931 to this version, or to a later series. 8932 8933 As a reminder, support the Tor 0.3.3 series will end on 22 Feb 2019. 8934 We anticipate that this will be the last release of Tor 0.3.3, unless 8935 some major bug is before then. Some time between now and then, users 8936 should switch to either the Tor 0.3.4 series (supported until at least 8937 10 June 2019), or the Tor 0.3.5 series, which will receive long-term 8938 support until at least 1 Feb 2022. 8939 8940 o Major bugfixes (OpenSSL, portability, backport from 0.3.5.5-alpha): 8941 - Fix our usage of named groups when running as a TLS 1.3 client in 8942 OpenSSL 1.1.1. Previously, we only initialized EC groups when 8943 running as a relay, which caused clients to fail to negotiate TLS 8944 1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3 8945 support was added). 8946 8947 o Major bugfixes (restart-in-process, backport from 0.3.5.1-alpha): 8948 - Fix a use-after-free error that could be caused by passing Tor an 8949 impossible set of options that would fail during options_act(). 8950 Fixes bug 27708; bugfix on 0.3.3.1-alpha. 8951 8952 o Minor features (continuous integration, backport from 0.3.5.1-alpha): 8953 - Only run one online rust build in Travis, to reduce network 8954 errors. Skip offline rust builds on Travis for Linux gcc, because 8955 they're redundant. Implements ticket 27252. 8956 - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a 8957 duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on 8958 Linux with default settings, because all the non-default builds 8959 use gcc on Linux. Implements ticket 27252. 8960 8961 o Minor features (continuous integration, backport from 0.3.5.3-alpha): 8962 - Use the Travis Homebrew addon to install packages on macOS during 8963 Travis CI. The package list is the same, but the Homebrew addon 8964 does not do a `brew update` by default. Implements ticket 27738. 8965 8966 o Minor features (fallback directory list, backport from 0.3.5.6-rc): 8967 - Replace the 150 fallbacks originally introduced in Tor 8968 0.3.3.1-alpha in January 2018 (of which ~115 were still 8969 functional), with a list of 157 fallbacks (92 new, 65 existing, 85 8970 removed) generated in December 2018. Closes ticket 24803. 8971 8972 o Minor features (geoip): 8973 - Update geoip and geoip6 to the January 3 2019 Maxmind GeoLite2 8974 Country database. Closes ticket 29012. 8975 8976 o Minor features (OpenSSL bug workaround, backport from 0.3.5.7): 8977 - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3 8978 key export function from handling long labels. When this bug is 8979 detected, Tor will disable TLS 1.3. We recommend upgrading to a 8980 version of OpenSSL without this bug when it becomes available. 8981 Closes ticket 28973. 8982 8983 o Minor bugfixes (relay statistics, backport from 0.3.5.7): 8984 - Update relay descriptor on bandwidth changes only when the uptime 8985 is smaller than 24h, in order to reduce the efficiency of guard 8986 discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha. 8987 8988 o Minor bugfixes (C correctness, backport from 0.3.5.4-alpha): 8989 - Avoid undefined behavior in an end-of-string check when parsing 8990 the BEGIN line in a directory object. Fixes bug 28202; bugfix 8991 on 0.2.0.3-alpha. 8992 8993 o Minor bugfixes (code safety, backport from 0.3.5.3-alpha): 8994 - Rewrite our assertion macros so that they no longer suppress the 8995 compiler's -Wparentheses warnings. Fixes bug 27709; bugfix 8996 8997 o Minor bugfixes (compilation, backport from 0.3.5.5-alpha): 8998 - Initialize a variable unconditionally in aes_new_cipher(), since 8999 some compilers cannot tell that we always initialize it before 9000 use. Fixes bug 28413; bugfix on 0.2.9.3-alpha. 9001 9002 o Minor bugfixes (directory authority, backport from 0.3.5.4-alpha): 9003 - Log additional info when we get a relay that shares an ed25519 ID 9004 with a different relay, instead making a BUG() warning. Fixes bug 9005 27800; bugfix on 0.3.2.1-alpha. 9006 9007 o Minor bugfixes (directory permissions, backport form 0.3.5.3-alpha): 9008 - When a user requests a group-readable DataDirectory, give it to 9009 them. Previously, when the DataDirectory and the CacheDirectory 9010 were the same, the default setting (0) for 9011 CacheDirectoryGroupReadable would override the setting for 9012 DataDirectoryGroupReadable. Fixes bug 26913; bugfix 9013 on 0.3.3.1-alpha. 9014 9015 o Minor bugfixes (onion service v3, backport from 0.3.5.1-alpha): 9016 - When the onion service directory can't be created or has the wrong 9017 permissions, do not log a stack trace. Fixes bug 27335; bugfix 9018 on 0.3.2.1-alpha. 9019 9020 o Minor bugfixes (onion service v3, backport from 0.3.5.2-alpha): 9021 - Close all SOCKS request (for the same .onion) if the newly fetched 9022 descriptor is unusable. Before that, we would close only the first 9023 one leaving the other hanging and let to time out by themselves. 9024 Fixes bug 27410; bugfix on 0.3.2.1-alpha. 9025 9026 o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha): 9027 - Don't warn so loudly when Tor is unable to decode an onion 9028 descriptor. This can now happen as a normal use case if a client 9029 gets a descriptor with client authorization but the client is not 9030 authorized. Fixes bug 27550; bugfix on 0.3.5.1-alpha. 9031 9032 o Minor bugfixes (onion service v3, backport from 0.3.5.6-rc): 9033 - When deleting an ephemeral onion service (DEL_ONION), do not close 9034 any rendezvous circuits in order to let the existing client 9035 connections finish by themselves or closed by the application. The 9036 HS v2 is doing that already so now we have the same behavior for 9037 all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha. 9038 9039 o Minor bugfixes (HTTP tunnel): 9040 - Fix a bug warning when closing an HTTP tunnel connection due to 9041 an HTTP request we couldn't handle. Fixes bug 26470; bugfix on 9042 0.3.2.1-alpha. 9043 9044 o Minor bugfixes (memory leaks, backport from 0.3.5.5-alpha): 9045 - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419; 9046 bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger. 9047 9048 o Minor bugfixes (netflow padding, backport from 0.3.5.1-alpha): 9049 - Ensure circuitmux queues are empty before scheduling or sending 9050 padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha. 9051 9052 o Minor bugfixes (protover, backport from 0.3.5.3-alpha): 9053 - Reject protocol names containing bytes other than alphanumeric 9054 characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix 9055 on 0.2.9.4-alpha. 9056 9057 o Minor bugfixes (rust, backport from 0.3.5.1-alpha): 9058 - Compute protover votes correctly in the rust version of the 9059 protover code. Previously, the protover rewrite in 24031 allowed 9060 repeated votes from the same voter for the same protocol version 9061 to be counted multiple times in protover_compute_vote(). Fixes bug 9062 27649; bugfix on 0.3.3.5-rc. 9063 - Reject protover names that contain invalid characters. Fixes bug 9064 27687; bugfix on 0.3.3.1-alpha. 9065 9066 o Minor bugfixes (rust, backport from 0.3.5.2-alpha): 9067 - protover_all_supported() would attempt to allocate up to 16GB on 9068 some inputs, leading to a potential memory DoS. Fixes bug 27206; 9069 bugfix on 0.3.3.5-rc. 9070 9071 o Minor bugfixes (rust, backport from 0.3.5.4-alpha): 9072 - Fix a potential null dereference in protover_all_supported(). Add 9073 a test for it. Fixes bug 27804; bugfix on 0.3.3.1-alpha. 9074 - Return a string that can be safely freed by C code, not one 9075 created by the rust allocator, in protover_all_supported(). Fixes 9076 bug 27740; bugfix on 0.3.3.1-alpha. 9077 - Fix an API mismatch in the rust implementation of 9078 protover_compute_vote(). This bug could have caused crashes on any 9079 directory authorities running Tor with Rust (which we do not yet 9080 recommend). Fixes bug 27741; bugfix on 0.3.3.6. 9081 9082 o Minor bugfixes (testing, backport from 0.3.5.1-alpha): 9083 - If a unit test running in a subprocess exits abnormally or with a 9084 nonzero status code, treat the test as having failed, even if the 9085 test reported success. Without this fix, memory leaks don't cause 9086 the tests to fail, even with LeakSanitizer. Fixes bug 27658; 9087 bugfix on 0.2.2.4-alpha. 9088 9089 o Minor bugfixes (testing, backport from 0.3.5.4-alpha): 9090 - Treat backtrace test failures as expected on BSD-derived systems 9091 (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808. 9092 (FreeBSD failures have been treated as expected since 18204 in 9093 0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha. 9094 9095 o Minor bugfixes (unit tests, guard selection, backport from 0.3.5.6-rc): 9096 - Stop leaking memory in an entry guard unit test. Fixes bug 28554; 9097 bugfix on 0.3.0.1-alpha. 9098 9099 9100 Changes in version 0.3.4.10 - 2019-01-07 9101 Tor 0.3.4.9 is the second stable release in its series; it backports 9102 numerous fixes, including an important fix for relays, and for anyone 9103 using OpenSSL 1.1.1. Anyone running an earlier version of Tor 0.3.4 9104 should upgrade. 9105 9106 As a reminder, the Tor 0.3.4 series will be supported until 10 June 9107 2019. Some time between now and then, users should switch to the Tor 9108 0.3.5 series, which will receive long-term support until at least 1 9109 Feb 2022. 9110 9111 o Major bugfixes (OpenSSL, portability, backport from 0.3.5.5-alpha): 9112 - Fix our usage of named groups when running as a TLS 1.3 client in 9113 OpenSSL 1.1.1. Previously, we only initialized EC groups when 9114 running as a relay, which caused clients to fail to negotiate TLS 9115 1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3 9116 support was added). 9117 9118 o Major bugfixes (relay, directory, backport from 0.3.5.7): 9119 - Always reactivate linked connections in the main loop so long as 9120 any linked connection has been active. Previously, connections 9121 serving directory information wouldn't get reactivated after the 9122 first chunk of data was sent (usually 32KB), which would prevent 9123 clients from bootstrapping. Fixes bug 28912; bugfix on 9124 0.3.4.1-alpha. Patch by "cypherpunks3". 9125 9126 o Minor features (continuous integration, Windows, backport from 0.3.5.6-rc): 9127 - Always show the configure and test logs, and upload them as build 9128 artifacts, when building for Windows using Appveyor CI. 9129 Implements 28459. 9130 9131 o Minor features (controller, backport from 0.3.5.1-alpha): 9132 - For purposes of CIRC_BW-based dropped cell detection, track half- 9133 closed stream ids, and allow their ENDs, SENDMEs, DATA and path 9134 bias check cells to arrive without counting it as dropped until 9135 either the END arrives, or the windows are empty. Closes 9136 ticket 25573. 9137 9138 o Minor features (fallback directory list, backport from 0.3.5.6-rc): 9139 - Replace the 150 fallbacks originally introduced in Tor 9140 0.3.3.1-alpha in January 2018 (of which ~115 were still 9141 functional), with a list of 157 fallbacks (92 new, 65 existing, 85 9142 removed) generated in December 2018. Closes ticket 24803. 9143 9144 o Minor features (geoip): 9145 - Update geoip and geoip6 to the November 6 2018 Maxmind GeoLite2 9146 Country database. Closes ticket 28395. 9147 9148 o Minor features (OpenSSL bug workaround, backport from 0.3.5.7): 9149 - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3 9150 key export function from handling long labels. When this bug is 9151 detected, Tor will disable TLS 1.3. We recommend upgrading to a 9152 version of OpenSSL without this bug when it becomes available. 9153 Closes ticket 28973. 9154 9155 o Minor bugfixes (compilation, backport from 0.3.5.5-alpha): 9156 - Initialize a variable unconditionally in aes_new_cipher(), since 9157 some compilers cannot tell that we always initialize it before 9158 use. Fixes bug 28413; bugfix on 0.2.9.3-alpha. 9159 9160 o Minor bugfixes (connection, relay, backport from 0.3.5.5-alpha): 9161 - Avoid a logging a BUG() stacktrace when closing connection held 9162 open because the write side is rate limited but not the read side. 9163 Now, the connection read side is simply shut down until Tor is 9164 able to flush the connection and close it. Fixes bug 27750; bugfix 9165 on 0.3.4.1-alpha. 9166 9167 o Minor bugfixes (continuous integration, Windows, backport from 0.3.5.5-alpha): 9168 - Manually configure the zstd compiler options, when building using 9169 mingw on Appveyor Windows CI. The MSYS2 mingw zstd package does 9170 not come with a pkg-config file. Fixes bug 28454; bugfix 9171 on 0.3.4.1-alpha. 9172 - Stop using an external OpenSSL install, and stop installing MSYS2 9173 packages, when building using mingw on Appveyor Windows CI. Fixes 9174 bug 28399; bugfix on 0.3.4.1-alpha. 9175 9176 o Minor bugfixes (continuous integration, Windows, backport from 0.3.5.6-rc): 9177 - Explicitly specify the path to the OpenSSL library and do not 9178 download OpenSSL from Pacman, but instead use the library that is 9179 already provided by AppVeyor. Fixes bug 28574; bugfix on master. 9180 9181 o Minor bugfixes (directory permissions, backport form 0.3.5.3-alpha): 9182 - When a user requests a group-readable DataDirectory, give it to 9183 them. Previously, when the DataDirectory and the CacheDirectory 9184 were the same, the default setting (0) for 9185 CacheDirectoryGroupReadable would override the setting for 9186 DataDirectoryGroupReadable. Fixes bug 26913; bugfix 9187 on 0.3.3.1-alpha. 9188 9189 o Minor bugfixes (memory leaks, backport from 0.3.5.5-alpha): 9190 - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419; 9191 bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger. 9192 9193 o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha): 9194 - Don't warn so loudly when Tor is unable to decode an onion 9195 descriptor. This can now happen as a normal use case if a client 9196 gets a descriptor with client authorization but the client is not 9197 authorized. Fixes bug 27550; bugfix on 0.3.5.1-alpha. 9198 9199 o Minor bugfixes (onion service v3, backport from 0.3.5.6-rc): 9200 - When deleting an ephemeral onion service (DEL_ONION), do not close 9201 any rendezvous circuits in order to let the existing client 9202 connections finish by themselves or closed by the application. The 9203 HS v2 is doing that already so now we have the same behavior for 9204 all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha. 9205 9206 o Minor bugfixes (relay statistics, backport from 0.3.5.7): 9207 - Update relay descriptor on bandwidth changes only when the uptime 9208 is smaller than 24h, in order to reduce the efficiency of guard 9209 discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha. 9210 9211 o Minor bugfixes (unit tests, guard selection, backport from 0.3.5.6-rc): 9212 - Stop leaking memory in an entry guard unit test. Fixes bug 28554; 9213 bugfix on 0.3.0.1-alpha. 9214 9215 9216 Changes in version 0.3.5.7 - 2019-01-07 9217 Tor 0.3.5.7 is the first stable release in its series; it includes 9218 compilation and portability fixes, and a fix for a severe problem 9219 affecting directory caches. 9220 9221 The Tor 0.3.5 series includes several new features and performance 9222 improvements, including client authorization for v3 onion services, 9223 cleanups to bootstrap reporting, support for improved bandwidth- 9224 measurement tools, experimental support for NSS in place of OpenSSL, 9225 and much more. It also begins a full reorganization of Tor's code 9226 layout, for improved modularity and maintainability in the future. 9227 Finally, there is the usual set of performance improvements and 9228 bugfixes that we try to do in every release series. 9229 9230 There are a couple of changes in the 0.3.5 that may affect 9231 compatibility. First, the default version for newly created onion 9232 services is now v3. Use the HiddenServiceVersion option if you want to 9233 override this. Second, some log messages related to bootstrapping have 9234 changed; if you use stem, you may need to update to the latest version 9235 so it will recognize them. 9236 9237 We have designated 0.3.5 as a "long-term support" (LTS) series: we 9238 will continue to patch major bugs in typical configurations of 0.3.5 9239 until at least 1 Feb 2022. (We do not plan to provide long-term 9240 support for embedding, Rust support, NSS support, running a directory 9241 authority, or unsupported platforms. For these, you will need to stick 9242 with the latest stable release.) 9243 9244 Below are the changes since 0.3.4.9. For a complete list of changes 9245 since 0.3.5.6-rc, see the ChangeLog file. 9246 9247 o Major features (bootstrap): 9248 - Don't report directory progress until after a connection to a 9249 relay or bridge has succeeded. Previously, we'd report 80% 9250 progress based on cached directory information when we couldn't 9251 even connect to the network. Closes ticket 27169. 9252 9253 o Major features (new code layout): 9254 - Nearly all of Tor's source code has been moved around into more 9255 logical places. The "common" directory is now divided into a set 9256 of libraries in "lib", and files in the "or" directory have been 9257 split into "core" (logic absolutely needed for onion routing), 9258 "feature" (independent modules in Tor), and "app" (to configure 9259 and invoke the rest of Tor). See doc/HACKING/CodeStructure.md for 9260 more information. Closes ticket 26481. 9261 9262 This refactoring is not complete: although the libraries have been 9263 refactored to be acyclic, the main body of Tor is still too 9264 interconnected. We will attempt to improve this in the future. 9265 9266 o Major features (onion services v3): 9267 - Implement onion service client authorization at the descriptor 9268 level: only authorized clients can decrypt a service's descriptor 9269 to find out how to contact it. A new torrc option was added to 9270 control this client side: ClientOnionAuthDir <path>. On the 9271 service side, if the "authorized_clients/" directory exists in the 9272 onion service directory path, client configurations are read from 9273 the files within. See the manpage for more details. Closes ticket 9274 27547. Patch done by Suphanat Chunhapanya (haxxpop). 9275 - Improve revision counter generation in next-gen onion services. 9276 Onion services can now scale by hosting multiple instances on 9277 different hosts without synchronization between them, which was 9278 previously impossible because descriptors would get rejected by 9279 HSDirs. Addresses ticket 25552. 9280 - Version 3 onion services can now use the per-service 9281 HiddenServiceExportCircuitID option to differentiate client 9282 circuits. It communicates with the service by using the HAProxy 9283 protocol to assign virtual IP addresses to inbound client 9284 circuits. Closes ticket 4700. Patch by Mahrud Sayrafi. 9285 9286 o Major features (onion services, UI change): 9287 - For a newly created onion service, the default version is now 3. 9288 Tor still supports existing version 2 services, but the operator 9289 now needs to set "HiddenServiceVersion 2" in order to create a new 9290 version 2 service. For existing services, Tor now learns the 9291 version by reading the key file. Closes ticket 27215. 9292 9293 o Major features (portability, cryptography, experimental, TLS): 9294 - Tor now has the option to compile with the NSS library instead of 9295 OpenSSL. This feature is experimental, and we expect that bugs may 9296 remain. It is mainly intended for environments where Tor's 9297 performance is not CPU-bound, and where NSS is already known to be 9298 installed. To try it out, configure Tor with the --enable-nss 9299 flag. Closes tickets 26631, 26815, and 26816. 9300 9301 If you are experimenting with this option and using an old cached 9302 consensus, Tor may fail to start. To solve this, delete your 9303 "cached-consensus" and "cached-microdesc-consensus" files, 9304 (if present), and restart Tor. 9305 9306 o Major features (relay, UI change): 9307 - Relays no longer run as exits by default. If the "ExitRelay" 9308 option is auto (or unset), and no exit policy is specified with 9309 ExitPolicy or ReducedExitPolicy, we now treat ExitRelay as 0. 9310 Previously in this case, we allowed exit traffic and logged a 9311 warning message. Closes ticket 21530. Patch by Neel Chauhan. 9312 - Tor now validates that the ContactInfo config option is valid UTF- 9313 8 when parsing torrc. Closes ticket 27428. 9314 9315 o Major bugfixes (compilation): 9316 - Fix compilation on ARM (and other less-used CPUs) when compiling 9317 with OpenSSL before 1.1. Fixes bug 27781; bugfix on 0.3.4.1-alpha. 9318 9319 o Major bugfixes (compilation, rust): 9320 - Rust tests can now build and run successfully with the 9321 --enable-fragile-hardening option enabled. Doing this currently 9322 requires the rust beta channel; it will be possible with stable 9323 rust once Rust version 1.31 is released. Patch from Alex Crichton. 9324 Fixes bugs 27272, 27273, and 27274. Bugfix on 0.3.1.1-alpha. 9325 9326 o Major bugfixes (directory authority): 9327 - Actually check that the address we get from DirAuthority 9328 configuration line is valid IPv4. Explicitly disallow DirAuthority 9329 address to be a DNS hostname. Fixes bug 26488; bugfix 9330 on 0.1.2.10-rc. 9331 9332 o Major bugfixes (embedding, main loop): 9333 - When DisableNetwork becomes set, actually disable periodic events 9334 that are already enabled. (Previously, we would refrain from 9335 enabling new ones, but we would leave the old ones turned on.) 9336 Fixes bug 28348; bugfix on 0.3.4.1-alpha. 9337 9338 o Major bugfixes (main loop, bootstrap): 9339 - Make sure Tor bootstraps and works properly if only the 9340 ControlPort is set. Prior to this fix, Tor would only bootstrap 9341 when a client port was set (Socks, Trans, NATD, DNS or HTTPTunnel 9342 port). Fixes bug 27849; bugfix on 0.3.4.1-alpha. 9343 9344 o Major bugfixes (onion service v3): 9345 - On an intro point for a version 3 onion service, stop closing 9346 introduction circuits on a NACK. This lets the client decide 9347 whether to reuse the circuit or discard it. Previously, we closed 9348 intro circuits when sending NACKs. Fixes bug 27841; bugfix on 9349 0.3.2.1-alpha. Patch by Neel Chaunan. 9350 9351 o Major bugfixes (OpenSSL, portability): 9352 - Fix our usage of named groups when running as a TLS 1.3 client in 9353 OpenSSL 1.1.1. Previously, we only initialized EC groups when 9354 running as a relay, which caused clients to fail to negotiate TLS 9355 1.3 with relays. Fixes bug 28245; bugfix on 0.2.9.15 (when TLS 1.3 9356 support was added). 9357 9358 o Major bugfixes (relay bandwidth statistics): 9359 - When we close relayed circuits, report the data in the circuit 9360 queues as being written in our relay bandwidth stats. This 9361 mitigates guard discovery and other attacks that close circuits 9362 for the explicit purpose of noticing this discrepancy in 9363 statistics. Fixes bug 23512; bugfix on 0.0.8pre3. 9364 9365 o Major bugfixes (relay): 9366 - When our write bandwidth limit is exhausted, stop writing on the 9367 connection. Previously, we had a typo in the code that would make 9368 us stop reading instead, leading to relay connections being stuck 9369 indefinitely and consuming kernel RAM. Fixes bug 28089; bugfix 9370 on 0.3.4.1-alpha. 9371 - Always reactivate linked connections in the main loop so long as 9372 any linked connection has been active. Previously, connections 9373 serving directory information wouldn't get reactivated after the 9374 first chunk of data was sent (usually 32KB), which would prevent 9375 clients from bootstrapping. Fixes bug 28912; bugfix on 9376 0.3.4.1-alpha. Patch by "cypherpunks3". 9377 9378 o Major bugfixes (restart-in-process): 9379 - Fix a use-after-free error that could be caused by passing Tor an 9380 impossible set of options that would fail during options_act(). 9381 Fixes bug 27708; bugfix on 0.3.3.1-alpha. 9382 9383 o Minor features (admin tools): 9384 - Add a new --key-expiration option to print the expiration date of 9385 the signing cert in an ed25519_signing_cert file. Resolves 9386 issue 19506. 9387 9388 o Minor features (build): 9389 - If you pass the "--enable-pic" option to configure, Tor will try 9390 to tell the compiler to build position-independent code suitable 9391 to link into a dynamic library. (The default remains -fPIE, for 9392 code suitable for a relocatable executable.) Closes ticket 23846. 9393 9394 o Minor features (code correctness, testing): 9395 - Tor's build process now includes a "check-includes" make target to 9396 verify that no module of Tor relies on any headers from a higher- 9397 level module. We hope to use this feature over time to help 9398 refactor our codebase. Closes ticket 26447. 9399 9400 o Minor features (code layout): 9401 - We have a new "lowest-level" error-handling API for use by code 9402 invoked from within the logging module. With this interface, the 9403 logging code is no longer at risk of calling into itself if a 9404 failure occurs while it is trying to log something. Closes 9405 ticket 26427. 9406 9407 o Minor features (compilation): 9408 - When possible, place our warning flags in a separate file, to 9409 avoid flooding verbose build logs. Closes ticket 28924. 9410 - Tor's configure script now supports a --with-malloc= option to 9411 select your malloc implementation. Supported options are 9412 "tcmalloc", "jemalloc", "openbsd" (deprecated), and "system" (the 9413 default). Addresses part of ticket 20424. Based on a patch from 9414 Alex Xu. 9415 9416 o Minor features (config): 9417 - The "auto" keyword in torrc is now case-insensitive. Closes 9418 ticket 26663. 9419 9420 o Minor features (continuous integration): 9421 - Add a Travis CI build for --enable-nss on Linux gcc. Closes 9422 ticket 27751. 9423 - Add new CI job to Travis configuration to run stem-based 9424 integration tests. Closes ticket 27913. 9425 - Use the Travis Homebrew addon to install packages on macOS during 9426 Travis CI. The package list is the same, but the Homebrew addon 9427 does not do a `brew update` by default. Implements ticket 27738. 9428 - Report what program produced the mysterious core file that we 9429 occasionally see on Travis CI during make distcheck. Closes 9430 ticket 28024. 9431 - Don't do a distcheck with --disable-module-dirauth in Travis. 9432 Implements ticket 27252. 9433 - Install libcap-dev and libseccomp2-dev so these optional 9434 dependencies get tested on Travis CI. Closes ticket 26560. 9435 - Only run one online rust build in Travis, to reduce network 9436 errors. Skip offline rust builds on Travis for Linux gcc, because 9437 they're redundant. Implements ticket 27252. 9438 - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a 9439 duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on 9440 Linux with default settings, because all the non-default builds 9441 use gcc on Linux. Implements ticket 27252. 9442 9443 o Minor features (continuous integration, Windows): 9444 - Always show the configure and test logs, and upload them as build 9445 artifacts, when building for Windows using Appveyor CI. 9446 Implements 28459. 9447 - Build tor on Windows Server 2012 R2 and Windows Server 2016 using 9448 Appveyor's CI. Closes ticket 28318. 9449 9450 o Minor features (controller): 9451 - Emit CIRC_BW events as soon as we detect that we processed an 9452 invalid or otherwise dropped cell on a circuit. This allows 9453 vanguards and other controllers to react more quickly to dropped 9454 cells. Closes ticket 27678. 9455 - For purposes of CIRC_BW-based dropped cell detection, track half- 9456 closed stream ids, and allow their ENDs, SENDMEs, DATA and path 9457 bias check cells to arrive without counting it as dropped until 9458 either the END arrives, or the windows are empty. Closes 9459 ticket 25573. 9460 - Implement a 'GETINFO md/all' controller command to enable getting 9461 all known microdescriptors. Closes ticket 8323. 9462 - The GETINFO command now support an "uptime" argument, to return 9463 Tor's uptime in seconds. Closes ticket 25132. 9464 9465 o Minor features (denial-of-service avoidance): 9466 - Make our OOM handler aware of the DNS cache so that it doesn't 9467 fill up the memory. This check is important for our DoS mitigation 9468 subsystem. Closes ticket 18642. Patch by Neel Chauhan. 9469 9470 o Minor features (development): 9471 - Tor's makefile now supports running the "clippy" Rust style tool 9472 on our Rust code. Closes ticket 22156. 9473 9474 o Minor features (directory authority): 9475 - There is no longer an artificial upper limit on the length of 9476 bandwidth lines. Closes ticket 26223. 9477 - When a bandwidth file is used to obtain the bandwidth measurements, 9478 include this bandwidth file headers in the votes. Closes 9479 ticket 3723. 9480 - Improved support for networks with only a single authority or a 9481 single fallback directory. Patch from Gabriel Somlo. Closes 9482 ticket 25928. 9483 9484 o Minor features (embedding API): 9485 - The Tor controller API now supports a function to launch Tor with 9486 a preconstructed owning controller FD, so that embedding 9487 applications don't need to manage controller ports and 9488 authentication. Closes ticket 24204. 9489 - The Tor controller API now has a function that returns the name 9490 and version of the backend implementing the API. Closes 9491 ticket 26947. 9492 9493 o Minor features (fallback directory list): 9494 - Replace the 150 fallbacks originally introduced in Tor 9495 0.3.3.1-alpha in January 2018 (of which ~115 were still 9496 functional), with a list of 157 fallbacks (92 new, 65 existing, 85 9497 removed) generated in December 2018. Closes ticket 24803. 9498 9499 o Minor features (geoip): 9500 - Update geoip and geoip6 to the January 3 2019 Maxmind GeoLite2 9501 Country database. Closes ticket 29012. 9502 9503 o Minor features (memory management): 9504 - Get Libevent to use the same memory allocator as Tor, by calling 9505 event_set_mem_functions() during initialization. Resolves 9506 ticket 8415. 9507 9508 o Minor features (memory usage): 9509 - When not using them, store legacy TAP public onion keys in DER- 9510 encoded format, rather than as expanded public keys. This should 9511 save several megabytes on typical clients. Closes ticket 27246. 9512 9513 o Minor features (OpenSSL bug workaround): 9514 - Work around a bug in OpenSSL 1.1.1a, which prevented the TLS 1.3 9515 key export function from handling long labels. When this bug is 9516 detected, Tor will disable TLS 1.3. We recommend upgrading to a 9517 version of OpenSSL without this bug when it becomes available. 9518 Closes ticket 28973. 9519 9520 o Minor features (OpenSSL): 9521 - When possible, use RFC5869 HKDF implementation from OpenSSL rather 9522 than our own. Resolves ticket 19979. 9523 9524 o Minor features (performance): 9525 - Remove about 96% of the work from the function that we run at 9526 startup to test our curve25519_basepoint implementation. Since 9527 this function has yet to find an actual failure, we now only run 9528 it for 8 iterations instead of 200. Based on our profile 9529 information, this change should save around 8% of our startup time 9530 on typical desktops, and may have a similar effect on other 9531 platforms. Closes ticket 28838. 9532 - Stop re-validating our hardcoded Diffie-Hellman parameters on 9533 every startup. Doing this wasted time and cycles, especially on 9534 low-powered devices. Closes ticket 28851. 9535 9536 o Minor features (Rust, code quality): 9537 - Improve rust code quality in the rust protover implementation by 9538 making it more idiomatic. Includes changing an internal API to 9539 take &str instead of &String. Closes ticket 26492. 9540 9541 o Minor features (testing): 9542 - Add scripts/test/chutney-git-bisect.sh, for bisecting using 9543 chutney. Implements ticket 27211. 9544 9545 o Minor features (tor-resolve): 9546 - The tor-resolve utility can now be used with IPv6 SOCKS proxies. 9547 Side-effect of the refactoring for ticket 26526. 9548 9549 o Minor features (UI): 9550 - Log each included configuration file or directory as we read it, 9551 to provide more visibility about where Tor is reading from. Patch 9552 from Unto Sten; closes ticket 27186. 9553 - Lower log level of "Scheduler type KIST has been enabled" to INFO. 9554 Closes ticket 26703. 9555 9556 o Minor bugfixes (32-bit OSX and iOS, timing): 9557 - Fix an integer overflow bug in our optimized 32-bit millisecond- 9558 difference algorithm for 32-bit Apple platforms. Previously, it 9559 would overflow when calculating the difference between two times 9560 more than 47 days apart. Fixes part of bug 27139; bugfix 9561 on 0.3.4.1-alpha. 9562 - Improve the precision of our 32-bit millisecond difference 9563 algorithm for 32-bit Apple platforms. Fixes part of bug 27139; 9564 bugfix on 0.3.4.1-alpha. 9565 - Relax the tolerance on the mainloop/update_time_jumps test when 9566 running on 32-bit Apple platforms. Fixes part of bug 27139; bugfix 9567 on 0.3.4.1-alpha. 9568 9569 o Minor bugfixes (bootstrap): 9570 - Try harder to get descriptors in non-exit test networks, by using 9571 the mid weight for the third hop when there are no exits. Fixes 9572 bug 27237; bugfix on 0.2.6.2-alpha. 9573 9574 o Minor bugfixes (C correctness): 9575 - Avoid casting smartlist index to int implicitly, as it may trigger 9576 a warning (-Wshorten-64-to-32). Fixes bug 26282; bugfix on 9577 0.2.3.13-alpha, 0.2.7.1-alpha and 0.2.1.1-alpha. 9578 - Use time_t for all values in 9579 predicted_ports_prediction_time_remaining(). Rework the code that 9580 computes difference between durations/timestamps. Fixes bug 27165; 9581 bugfix on 0.3.1.1-alpha. 9582 9583 o Minor bugfixes (client, memory usage): 9584 - When not running as a directory cache, there is no need to store 9585 the text of the current consensus networkstatus in RAM. 9586 Previously, however, clients would store it anyway, at a cost of 9587 over 5 MB. Now, they do not. Fixes bug 27247; bugfix 9588 on 0.3.0.1-alpha. 9589 9590 o Minor bugfixes (client, ReachableAddresses): 9591 - Instead of adding a "reject *:*" line to ReachableAddresses when 9592 loading the configuration, add one to the policy after parsing it 9593 in parse_reachable_addresses(). This prevents extra "reject *.*" 9594 lines from accumulating on reloads. Fixes bug 20874; bugfix on 9595 0.1.1.5-alpha. Patch by Neel Chauhan. 9596 9597 o Minor bugfixes (code quality): 9598 - Rename sandbox_getaddrinfo() and other functions to no longer 9599 misleadingly suggest that they are sandbox-only. Fixes bug 26525; 9600 bugfix on 0.2.7.1-alpha. 9601 9602 o Minor bugfixes (code safety): 9603 - Rewrite our assertion macros so that they no longer suppress the 9604 compiler's -Wparentheses warnings. Fixes bug 27709; bugfix 9605 on 0.0.6. 9606 9607 o Minor bugfixes (compilation): 9608 - Initialize a variable unconditionally in aes_new_cipher(), since 9609 some compilers cannot tell that we always initialize it before 9610 use. Fixes bug 28413; bugfix on 0.2.9.3-alpha. 9611 9612 o Minor bugfixes (configuration): 9613 - Refuse to start with relative file paths and RunAsDaemon set 9614 (regression from the fix for bug 22731). Fixes bug 28298; bugfix 9615 on 0.3.3.1-alpha. 9616 9617 o Minor bugfixes (configuration, Onion Services): 9618 - In rend_service_parse_port_config(), disallow any input to remain 9619 after address-port pair was parsed. This will catch address and 9620 port being whitespace-separated by mistake of the user. Fixes bug 9621 27044; bugfix on 0.2.9.10. 9622 9623 o Minor bugfixes (connection, relay): 9624 - Avoid a logging a BUG() stacktrace when closing connection held 9625 open because the write side is rate limited but not the read side. 9626 Now, the connection read side is simply shut down until Tor is 9627 able to flush the connection and close it. Fixes bug 27750; bugfix 9628 on 0.3.4.1-alpha. 9629 9630 o Minor bugfixes (continuous integration, Windows): 9631 - Stop reinstalling identical packages in our Windows CI. Fixes bug 9632 27464; bugfix on 0.3.4.1-alpha. 9633 - Install only the necessary mingw packages during our appveyor 9634 builds. This change makes the build a little faster, and prevents 9635 a conflict with a preinstalled mingw openssl that appveyor now 9636 ships. Fixes bugs 27765 and 27943; bugfix on 0.3.4.2-alpha. 9637 - Explicitly specify the path to the OpenSSL library and do not 9638 download OpenSSL from Pacman, but instead use the library that is 9639 already provided by AppVeyor. Fixes bug 28574; bugfix on master. 9640 - Manually configure the zstd compiler options, when building using 9641 mingw on Appveyor Windows CI. The MSYS2 mingw zstd package does 9642 not come with a pkg-config file. Fixes bug 28454; bugfix 9643 on 0.3.4.1-alpha. 9644 - Stop using an external OpenSSL install, and stop installing MSYS2 9645 packages, when building using mingw on Appveyor Windows CI. Fixes 9646 bug 28399; bugfix on 0.3.4.1-alpha. 9647 9648 o Minor bugfixes (controller): 9649 - Consider all routerinfo errors other than "not a server" to be 9650 transient for the purpose of "GETINFO exit-policy/*" controller 9651 request. Print stacktrace in the unlikely case of failing to 9652 recompute routerinfo digest. Fixes bug 27034; bugfix 9653 on 0.3.4.1-alpha. 9654 9655 o Minor bugfixes (correctness): 9656 - Fix an unreached code path where we checked the value of 9657 "hostname" inside send_resolved_hostname_cell(). Previously, we 9658 used it before checking it; now we check it first. Fixes bug 9659 28879; bugfix on 0.1.2.7-alpha. 9660 9661 o Minor bugfixes (directory connection shutdown): 9662 - Avoid a double-close when shutting down a stalled directory 9663 connection. Fixes bug 26896; bugfix on 0.3.4.1-alpha. 9664 9665 o Minor bugfixes (directory permissions): 9666 - When a user requests a group-readable DataDirectory, give it to 9667 them. Previously, when the DataDirectory and the CacheDirectory 9668 were the same, the default setting (0) for 9669 CacheDirectoryGroupReadable would override the setting for 9670 DataDirectoryGroupReadable. Fixes bug 26913; bugfix 9671 on 0.3.3.1-alpha. 9672 9673 o Minor bugfixes (HTTP tunnel): 9674 - Fix a bug warning when closing an HTTP tunnel connection due to an 9675 HTTP request we couldn't handle. Fixes bug 26470; bugfix 9676 on 0.3.2.1-alpha. 9677 9678 o Minor bugfixes (ipv6): 9679 - In addrs_in_same_network_family(), we choose the subnet size based 9680 on the IP version (IPv4 or IPv6). Previously, we chose a fixed 9681 subnet size of /16 for both IPv4 and IPv6 addresses. Fixes bug 9682 15518; bugfix on 0.2.3.1-alpha. Patch by Neel Chauhan. 9683 9684 o Minor bugfixes (Linux seccomp2 sandbox): 9685 - Permit the "shutdown()" system call, which is apparently used by 9686 OpenSSL under some circumstances. Fixes bug 28183; bugfix 9687 on 0.2.5.1-alpha. 9688 9689 o Minor bugfixes (logging): 9690 - Stop talking about the Named flag in log messages. Clients have 9691 ignored the Named flag since 0.3.2. Fixes bug 28441; bugfix 9692 on 0.3.2.1-alpha. 9693 - As a precaution, do an early return from log_addr_has_changed() if 9694 Tor is running as client. Also, log a stack trace for debugging as 9695 this function should only be called when Tor runs as server. Fixes 9696 bug 26892; bugfix on 0.1.1.9-alpha. 9697 - Refrain from mentioning bug 21018 in the logs, as it is already 9698 fixed. Fixes bug 25477; bugfix on 0.2.9.8. 9699 9700 o Minor bugfixes (logging, documentation): 9701 - When SafeLogging is enabled, scrub IP address in 9702 channel_tls_process_netinfo_cell(). Also, add a note to manpage 9703 that scrubbing is not guaranteed on loglevels below Notice. Fixes 9704 bug 26882; bugfix on 0.2.4.10-alpha. 9705 9706 o Minor bugfixes (memory leaks): 9707 - Fix a harmless memory leak in libtorrunner.a. Fixes bug 28419; 9708 bugfix on 0.3.3.1-alpha. Patch from Martin Kepplinger. 9709 - Fix a small memory leak when calling Tor with --dump-config. Fixes 9710 bug 27893; bugfix on 0.3.2.1-alpha. 9711 9712 o Minor bugfixes (netflow padding): 9713 - Ensure circuitmux queues are empty before scheduling or sending 9714 padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha. 9715 9716 o Minor bugfixes (onion service v2): 9717 - Log at level "info", not "warning", in the case that we do not 9718 have a consensus when a .onion request comes in. This can happen 9719 normally while bootstrapping. Fixes bug 27040; bugfix 9720 on 0.2.8.2-alpha. 9721 9722 o Minor bugfixes (onion service v3): 9723 - When deleting an ephemeral onion service (DEL_ONION), do not close 9724 any rendezvous circuits in order to let the existing client 9725 connections finish by themselves or closed by the application. The 9726 HS v2 is doing that already so now we have the same behavior for 9727 all versions. Fixes bug 28619; bugfix on 0.3.3.1-alpha. 9728 - Build the service descriptor's signing key certificate before 9729 uploading, so we always have a fresh one: leaving no chances for 9730 it to expire service side. Fixes bug 27838; bugfix 9731 on 0.3.2.1-alpha. 9732 - Stop dumping a stack trace when trying to connect to an intro 9733 point without having a descriptor for it. Fixes bug 27774; bugfix 9734 on 0.3.2.1-alpha. 9735 - When selecting a v3 rendezvous point, don't only look at the 9736 protover, but also check whether the curve25519 onion key is 9737 present. This way we avoid picking a relay that supports the v3 9738 rendezvous but for which we don't have the microdescriptor. Fixes 9739 bug 27797; bugfix on 0.3.2.1-alpha. 9740 - Close all SOCKS request (for the same .onion) if the newly fetched 9741 descriptor is unusable. Before that, we would close only the first 9742 one leaving the other hanging and let to time out by themselves. 9743 Fixes bug 27410; bugfix on 0.3.2.1-alpha. 9744 - When the onion service directory can't be created or has the wrong 9745 permissions, do not log a stack trace. Fixes bug 27335; bugfix 9746 on 0.3.2.1-alpha. 9747 - When replacing a descriptor in the client cache, make sure to 9748 close all client introduction circuits for the old descriptor, so 9749 we don't end up with unusable leftover circuits. Fixes bug 27471; 9750 bugfix on 0.3.2.1-alpha. 9751 9752 o Minor bugfixes (OS compatibility): 9753 - Properly handle configuration changes that move a listener to/from 9754 wildcard IP address. If the first attempt to bind a socket fails, 9755 close the old listener and try binding the socket again. Fixes bug 9756 17873; bugfix on 0.0.8pre-1. 9757 9758 o Minor bugfixes (performance):: 9759 - Rework node_is_a_configured_bridge() to no longer call 9760 node_get_all_orports(), which was performing too many memory 9761 allocations. Fixes bug 27224; bugfix on 0.2.3.9. 9762 9763 o Minor bugfixes (protover): 9764 - Reject protocol names containing bytes other than alphanumeric 9765 characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix 9766 on 0.2.9.4-alpha. 9767 9768 o Minor bugfixes (protover, rust): 9769 - Reject extra commas in version strings. Fixes bug 27197; bugfix 9770 on 0.3.3.3-alpha. 9771 - protover_all_supported() would attempt to allocate up to 16GB on 9772 some inputs, leading to a potential memory DoS. Fixes bug 27206; 9773 bugfix on 0.3.3.5-rc. 9774 - Compute protover votes correctly in the rust version of the 9775 protover code. Previously, the protover rewrite in 24031 allowed 9776 repeated votes from the same voter for the same protocol version 9777 to be counted multiple times in protover_compute_vote(). Fixes bug 9778 27649; bugfix on 0.3.3.5-rc. 9779 - Reject protover names that contain invalid characters. Fixes bug 9780 27687; bugfix on 0.3.3.1-alpha. 9781 9782 o Minor bugfixes (relay shutdown, systemd): 9783 - Notify systemd of ShutdownWaitLength so it can be set to longer 9784 than systemd's TimeoutStopSec. In Tor's systemd service file, set 9785 TimeoutSec to 60 seconds to allow Tor some time to shut down. 9786 Fixes bug 28113; bugfix on 0.2.6.2-alpha. 9787 9788 o Minor bugfixes (relay statistics): 9789 - Update relay descriptor on bandwidth changes only when the uptime 9790 is smaller than 24h, in order to reduce the efficiency of guard 9791 discovery attacks. Fixes bug 24104; bugfix on 0.1.1.6-alpha. 9792 9793 o Minor bugfixes (relay): 9794 - Consider the fact that we'll be making direct connections to our 9795 entry and guard nodes when computing the fraction of nodes that 9796 have their descriptors. Also, if we are using bridges and there is 9797 at least one bridge with a full descriptor, treat the fraction of 9798 guards available as 100%. Fixes bug 25886; bugfix on 0.2.4.10-alpha. 9799 Patch by Neel Chauhan. 9800 - Update the message logged on relays when DirCache is disabled. 9801 Since 0.3.3.5-rc, authorities require DirCache (V2Dir) for the 9802 Guard flag. Fixes bug 24312; bugfix on 0.3.3.5-rc. 9803 9804 o Minor bugfixes (testing): 9805 - Stop running stem's unit tests as part of "make test-stem", but 9806 continue to run stem's unit and online tests during "make test- 9807 stem-full". Fixes bug 28568; bugfix on 0.2.6.3-alpha. 9808 - Stop leaking memory in an entry guard unit test. Fixes bug 28554; 9809 bugfix on 0.3.0.1-alpha. 9810 - Make the hs_service tests use the same time source when creating 9811 the introduction point and when testing it. Now tests work better 9812 on very slow systems like ARM or Travis. Fixes bug 27810; bugfix 9813 on 0.3.2.1-alpha. 9814 - Revise the "conditionvar_timeout" test so that it succeeds even on 9815 heavily loaded systems where the test threads are not scheduled 9816 within 200 msec. Fixes bug 27073; bugfix on 0.2.6.3-alpha. 9817 - Fix two unit tests to work when HOME environment variable is not 9818 set. Fixes bug 27096; bugfix on 0.2.8.1-alpha. 9819 - If a unit test running in a subprocess exits abnormally or with a 9820 nonzero status code, treat the test as having failed, even if the 9821 test reported success. Without this fix, memory leaks don't cause 9822 the tests to fail, even with LeakSanitizer. Fixes bug 27658; 9823 bugfix on 0.2.2.4-alpha. 9824 - When logging a version mismatch in our openssl_version tests, 9825 report the actual offending version strings. Fixes bug 26152; 9826 bugfix on 0.2.9.1-alpha. 9827 - Fix forking tests on Windows when there is a space somewhere in 9828 the path. Fixes bug 26437; bugfix on 0.2.2.4-alpha. 9829 9830 o Minor bugfixes (Windows): 9831 - Correctly identify Windows 8.1, Windows 10, and Windows Server 9832 2008 and later from their NT versions. Fixes bug 28096; bugfix on 9833 0.2.2.34; reported by Keifer Bly. 9834 - On recent Windows versions, the GetVersionEx() function may report 9835 an earlier Windows version than the running OS. To avoid user 9836 confusion, add "[or later]" to Tor's version string on affected 9837 versions of Windows. Fixes bug 28096; bugfix on 0.2.2.34; reported 9838 by Keifer Bly. 9839 - Remove Windows versions that were never supported by the 9840 GetVersionEx() function. Stop duplicating the latest Windows 9841 version in get_uname(). Fixes bug 28096; bugfix on 0.2.2.34; 9842 reported by Keifer Bly. 9843 9844 o Code simplification and refactoring: 9845 - When parsing a port configuration, make it more obvious to static 9846 analyzer tools that we always initialize the address. Closes 9847 ticket 28881. 9848 - Divide more large Tor source files -- especially ones that span 9849 multiple areas of functionality -- into smaller parts, including 9850 onion.c and main.c. Closes ticket 26747. 9851 - Divide the "routerparse.c" module into separate modules for each 9852 group of parsed objects. Closes ticket 27924. 9853 - Move protover_rust.c to the same place protover.c was moved to. 9854 Closes ticket 27814. 9855 - Split directory.c into separate pieces for client, server, and 9856 common functionality. Closes ticket 26744. 9857 - Split the non-statistics-related parts from the rephist.c and 9858 geoip.c modules. Closes ticket 27892. 9859 - Split the router.c file into relay-only and shared components, to 9860 help with future modularization. Closes ticket 27864. 9861 - Divide the routerlist.c and dirserv.c modules into smaller parts. 9862 Closes ticket 27799. 9863 - 'updateFallbackDirs.py' now ignores the blacklist file, as it's not 9864 longer needed. Closes ticket 26502. 9865 - Include paths to header files within Tor are now qualified by 9866 directory within the top-level src directory. 9867 - Many structures have been removed from the centralized "or.h" 9868 header, and moved into their own headers. This will allow us to 9869 reduce the number of places in the code that rely on each 9870 structure's contents and layout. Closes ticket 26383. 9871 - Remove ATTR_NONNULL macro from codebase. Resolves ticket 26527. 9872 - Remove GetAdaptersAddresses_fn_t. The code that used it was 9873 removed as part of the 26481 refactor. Closes ticket 27467. 9874 - Rework Tor SOCKS server code to use Trunnel and benefit from 9875 autogenerated functions for parsing and generating SOCKS wire 9876 format. New implementation is cleaner, more maintainable and 9877 should be less prone to heartbleed-style vulnerabilities. 9878 Implements a significant fraction of ticket 3569. 9879 - Split sampled_guards_update_from_consensus() and 9880 select_entry_guard_for_circuit() into subfunctions. In 9881 entry_guards_update_primary() unite three smartlist enumerations 9882 into one and move smartlist comparison code out of the function. 9883 Closes ticket 21349. 9884 - Tor now assumes that you have standards-conformant stdint.h and 9885 inttypes.h headers when compiling. Closes ticket 26626. 9886 - Unify our bloom filter logic. Previously we had two copies of this 9887 code: one for routerlist filtering, and one for address set 9888 calculations. Closes ticket 26510. 9889 - Use the simpler strcmpstart() helper in 9890 rend_parse_v2_service_descriptor instead of strncmp(). Closes 9891 ticket 27630. 9892 - Utility functions that can perform a DNS lookup are now wholly 9893 separated from those that can't, in separate headers and C 9894 modules. Closes ticket 26526. 9895 9896 o Documentation: 9897 - In the tor-resolve(1) manpage, fix the reference to socks- 9898 extensions.txt by adding a web URL. Resolves ticket 27853. 9899 - Mention that we require Python to be 2.7 or newer for some 9900 integration tests that we ship with Tor. Resolves ticket 27677. 9901 - Copy paragraph and URL to Tor's code of conduct document from 9902 CONTRIBUTING to new CODE_OF_CONDUCT file. Resolves ticket 26638. 9903 - Remove old instructions from INSTALL document. Closes ticket 26588. 9904 - Warn users that they should not include MyFamily line(s) in their 9905 torrc when running Tor bridge. Closes ticket 26908. 9906 9907 o Removed features: 9908 - Tor no longer supports building with the dmalloc library. For 9909 debugging memory issues, we suggest using gperftools or msan 9910 instead. Closes ticket 26426. 9911 - Tor no longer attempts to run on Windows environments without the 9912 GetAdaptersAddresses() function. This function has existed since 9913 Windows XP, which is itself already older than we support. 9914 - Remove Tor2web functionality for version 2 onion services. The 9915 Tor2webMode and Tor2webRendezvousPoints options are now obsolete. 9916 (This feature was never shipped in vanilla Tor and it was only 9917 possible to use this feature by building the support at compile 9918 time. Tor2webMode is not implemented for version 3 onion services.) 9919 Closes ticket 26367. 9920 9921 o Testing: 9922 - Increase logging and tag all log entries with timestamps in 9923 test_rebind.py. Provides diagnostics for issue 28229. 9924 9925 o Code simplification and refactoring (shared random, dirauth): 9926 - Change many tor_assert() to use BUG() instead. The idea is to not 9927 crash a dirauth but rather scream loudly with a stacktrace and let 9928 it continue run. The shared random subsystem is very resilient and 9929 if anything wrong happens with it, at worst a non coherent value 9930 will be put in the vote and discarded by the other authorities. 9931 Closes ticket 19566. 9932 9933 o Documentation (onion services): 9934 - Improve HSv3 client authorization by making some options more 9935 explicit and detailed. Closes ticket 28026. Patch by Mike Tigas. 9936 - Document in the man page that changing ClientOnionAuthDir value or 9937 adding a new file in the directory will not work at runtime upon 9938 sending a HUP if Sandbox 1. Closes ticket 28128. 9939 - Note in the man page that the only real way to fully revoke an 9940 onion service v3 client authorization is by restarting the tor 9941 process. Closes ticket 28275. 9942 9943 9944 Changes in version 0.3.4.9 - 2018-11-02 9945 Tor 0.3.4.9 is the second stable release in its series; it backports 9946 numerous fixes, including a fix for a bandwidth management bug that 9947 was causing memory exhaustion on relays. Anyone running an earlier 9948 version of Tor 0.3.4.9 should upgrade. 9949 9950 o Major bugfixes (compilation, backport from 0.3.5.3-alpha): 9951 - Fix compilation on ARM (and other less-used CPUs) when compiling 9952 with OpenSSL before 1.1. Fixes bug 27781; bugfix on 0.3.4.1-alpha. 9953 9954 o Major bugfixes (mainloop, bootstrap, backport from 0.3.5.3-alpha): 9955 - Make sure Tor bootstraps and works properly if only the 9956 ControlPort is set. Prior to this fix, Tor would only bootstrap 9957 when a client port was set (Socks, Trans, NATD, DNS or HTTPTunnel 9958 port). Fixes bug 27849; bugfix on 0.3.4.1-alpha. 9959 9960 o Major bugfixes (relay, backport from 0.3.5.3-alpha): 9961 - When our write bandwidth limit is exhausted, stop writing on the 9962 connection. Previously, we had a typo in the code that would make 9963 us stop reading instead, leading to relay connections being stuck 9964 indefinitely and consuming kernel RAM. Fixes bug 28089; bugfix 9965 on 0.3.4.1-alpha. 9966 9967 o Major bugfixes (restart-in-process, backport from 0.3.5.1-alpha): 9968 - Fix a use-after-free error that could be caused by passing Tor an 9969 impossible set of options that would fail during options_act(). 9970 Fixes bug 27708; bugfix on 0.3.3.1-alpha. 9971 9972 o Minor features (continuous integration, backport from 0.3.5.1-alpha): 9973 - Don't do a distcheck with --disable-module-dirauth in Travis. 9974 Implements ticket 27252. 9975 - Only run one online rust build in Travis, to reduce network 9976 errors. Skip offline rust builds on Travis for Linux gcc, because 9977 they're redundant. Implements ticket 27252. 9978 - Skip gcc on OSX in Travis CI, because it's rarely used. Skip a 9979 duplicate hardening-off build in Travis on Tor 0.2.9. Skip gcc on 9980 Linux with default settings, because all the non-default builds 9981 use gcc on Linux. Implements ticket 27252. 9982 9983 o Minor features (continuous integration, backport from 0.3.5.3-alpha): 9984 - Use the Travis Homebrew addon to install packages on macOS during 9985 Travis CI. The package list is the same, but the Homebrew addon 9986 does not do a `brew update` by default. Implements ticket 27738. 9987 9988 o Minor features (geoip): 9989 - Update geoip and geoip6 to the October 9 2018 Maxmind GeoLite2 9990 Country database. Closes ticket 27991. 9991 9992 o Minor bugfixes (32-bit OSX and iOS, timing, backport from 0.3.5.2-alpha): 9993 - Fix an integer overflow bug in our optimized 32-bit millisecond- 9994 difference algorithm for 32-bit Apple platforms. Previously, it 9995 would overflow when calculating the difference between two times 9996 more than 47 days apart. Fixes part of bug 27139; bugfix 9997 on 0.3.4.1-alpha. 9998 - Improve the precision of our 32-bit millisecond difference 9999 algorithm for 32-bit Apple platforms. Fixes part of bug 27139; 10000 bugfix on 0.3.4.1-alpha. 10001 - Relax the tolerance on the mainloop/update_time_jumps test when 10002 running on 32-bit Apple platforms. Fixes part of bug 27139; bugfix 10003 on 0.3.4.1-alpha. 10004 10005 o Minor bugfixes (C correctness, to appear in 0.3.5.4-alpha): 10006 - Avoid undefined behavior in an end-of-string check when parsing 10007 the BEGIN line in a directory object. Fixes bug 28202; bugfix 10008 on 0.2.0.3-alpha. 10009 10010 o Minor bugfixes (CI, appveyor, to appear in 0.3.5.4-alpha): 10011 - Only install the necessary mingw packages during our appveyor 10012 builds. This change makes the build a little faster, and prevents 10013 a conflict with a preinstalled mingw openssl that appveyor now 10014 ships. Fixes bugs 27943 and 27765; bugfix on 0.3.4.2-alpha. 10015 10016 o Minor bugfixes (code safety, backport from 0.3.5.3-alpha): 10017 - Rewrite our assertion macros so that they no longer suppress the 10018 compiler's -Wparentheses warnings. Fixes bug 27709; bugfix 10019 10020 o Minor bugfixes (continuous integration, backport from 0.3.5.1-alpha): 10021 - Stop reinstalling identical packages in our Windows CI. Fixes bug 10022 27464; bugfix on 0.3.4.1-alpha. 10023 10024 o Minor bugfixes (directory authority, to appear in 0.3.5.4-alpha): 10025 - Log additional info when we get a relay that shares an ed25519 ID 10026 with a different relay, instead making a BUG() warning. Fixes bug 10027 27800; bugfix on 0.3.2.1-alpha. 10028 10029 o Minor bugfixes (directory connection shutdown, backport from 0.3.5.1-alpha): 10030 - Avoid a double-close when shutting down a stalled directory 10031 connection. Fixes bug 26896; bugfix on 0.3.4.1-alpha. 10032 10033 o Minor bugfixes (HTTP tunnel, backport from 0.3.5.1-alpha): 10034 - Fix a bug warning when closing an HTTP tunnel connection due to an 10035 HTTP request we couldn't handle. Fixes bug 26470; bugfix 10036 on 0.3.2.1-alpha. 10037 10038 o Minor bugfixes (netflow padding, backport from 0.3.5.1-alpha): 10039 - Ensure circuitmux queues are empty before scheduling or sending 10040 padding. Fixes bug 25505; bugfix on 0.3.1.1-alpha. 10041 10042 o Minor bugfixes (onion service v3, backport from 0.3.5.1-alpha): 10043 - When the onion service directory can't be created or has the wrong 10044 permissions, do not log a stack trace. Fixes bug 27335; bugfix 10045 on 0.3.2.1-alpha. 10046 10047 o Minor bugfixes (onion service v3, backport from 0.3.5.2-alpha): 10048 - Close all SOCKS request (for the same .onion) if the newly fetched 10049 descriptor is unusable. Before that, we would close only the first 10050 one leaving the other hanging and let to time out by themselves. 10051 Fixes bug 27410; bugfix on 0.3.2.1-alpha. 10052 10053 o Minor bugfixes (onion service v3, backport from 0.3.5.3-alpha): 10054 - When selecting a v3 rendezvous point, don't only look at the 10055 protover, but also check whether the curve25519 onion key is 10056 present. This way we avoid picking a relay that supports the v3 10057 rendezvous but for which we don't have the microdescriptor. Fixes 10058 bug 27797; bugfix on 0.3.2.1-alpha. 10059 10060 o Minor bugfixes (protover, backport from 0.3.5.3-alpha): 10061 - Reject protocol names containing bytes other than alphanumeric 10062 characters and hyphens ([A-Za-z0-9-]). Fixes bug 27316; bugfix 10063 on 0.2.9.4-alpha. 10064 10065 o Minor bugfixes (rust, backport from 0.3.5.1-alpha): 10066 - Compute protover votes correctly in the rust version of the 10067 protover code. Previously, the protover rewrite in 24031 allowed 10068 repeated votes from the same voter for the same protocol version 10069 to be counted multiple times in protover_compute_vote(). Fixes bug 10070 27649; bugfix on 0.3.3.5-rc. 10071 - Reject protover names that contain invalid characters. Fixes bug 10072 27687; bugfix on 0.3.3.1-alpha. 10073 10074 o Minor bugfixes (rust, backport from 0.3.5.2-alpha): 10075 - protover_all_supported() would attempt to allocate up to 16GB on 10076 some inputs, leading to a potential memory DoS. Fixes bug 27206; 10077 bugfix on 0.3.3.5-rc. 10078 10079 o Minor bugfixes (rust, directory authority, to appear in 0.3.5.4-alpha): 10080 - Fix an API mismatch in the rust implementation of 10081 protover_compute_vote(). This bug could have caused crashes on any 10082 directory authorities running Tor with Rust (which we do not yet 10083 recommend). Fixes bug 27741; bugfix on 0.3.3.6. 10084 10085 o Minor bugfixes (rust, to appear in 0.3.5.4-alpha): 10086 - Fix a potential null dereference in protover_all_supported(). Add 10087 a test for it. Fixes bug 27804; bugfix on 0.3.3.1-alpha. 10088 - Return a string that can be safely freed by C code, not one 10089 created by the rust allocator, in protover_all_supported(). Fixes 10090 bug 27740; bugfix on 0.3.3.1-alpha. 10091 10092 o Minor bugfixes (testing, backport from 0.3.5.1-alpha): 10093 - If a unit test running in a subprocess exits abnormally or with a 10094 nonzero status code, treat the test as having failed, even if the 10095 test reported success. Without this fix, memory leaks don't cause 10096 the tests to fail, even with LeakSanitizer. Fixes bug 27658; 10097 bugfix on 0.2.2.4-alpha. 10098 10099 o Minor bugfixes (testing, backport from 0.3.5.3-alpha): 10100 - Make the hs_service tests use the same time source when creating 10101 the introduction point and when testing it. Now tests work better 10102 on very slow systems like ARM or Travis. Fixes bug 27810; bugfix 10103 on 0.3.2.1-alpha. 10104 10105 o Minor bugfixes (testing, to appear in 0.3.5.4-alpha): 10106 - Treat backtrace test failures as expected on BSD-derived systems 10107 (NetBSD, OpenBSD, and macOS/Darwin) until we solve bug 17808. 10108 (FreeBSD failures have been treated as expected since 18204 in 10109 0.2.8.) Fixes bug 27948; bugfix on 0.2.5.2-alpha. 10110 10111 10112 Changes in version 0.2.9.17 - 2018-09-10 10113 Tor 0.2.9.17 backports numerous bugfixes from later versions of Tor. 10114 10115 o Minor features (compatibility, backport from 0.3.4.8): 10116 - Tell OpenSSL to maintain backward compatibility with previous 10117 RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these 10118 ciphers are disabled by default. Closes ticket 27344. 10119 10120 o Minor features (continuous integration, backport from 0.3.4.7-rc): 10121 - Enable macOS builds in our Travis CI configuration. Closes 10122 ticket 24629. 10123 - Install libcap-dev and libseccomp2-dev so these optional 10124 dependencies get tested on Travis CI. Closes ticket 26560. 10125 - Run asciidoc during Travis CI. Implements ticket 27087. 10126 - Use ccache in our Travis CI configuration. Closes ticket 26952. 10127 10128 o Minor features (geoip): 10129 - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2 10130 Country database. Closes ticket 27089. 10131 10132 o Minor bugfixes (compilation, backport from 0.3.4.6-rc): 10133 - When compiling with --enable-openbsd-malloc or --enable-tcmalloc, 10134 tell the compiler not to include the system malloc implementation. 10135 Fixes bug 20424; bugfix on 0.2.0.20-rc. 10136 10137 o Minor bugfixes (compilation, backport from 0.3.4.7-rc): 10138 - Silence a spurious compiler warning on the GetAdaptersAddresses 10139 function pointer cast. This issue is already fixed by 26481 in 10140 0.3.5 and later, by removing the lookup and cast. Fixes bug 27465; 10141 bugfix on 0.2.3.11-alpha. 10142 - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not 10143 supported, and always fails. Some compilers warn about the 10144 function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix 10145 on 0.2.2.23-alpha. 10146 10147 o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc): 10148 - Don't link or search for pthreads when building for Windows, even 10149 if we are using build environment (like mingw) that provides a 10150 pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc. 10151 10152 o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc): 10153 - Skip a pair of unreliable key generation tests on Windows, until 10154 the underlying issue in bug 26076 is resolved. Fixes bug 26830 and 10155 bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively. 10156 10157 o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc): 10158 - Pass the module flags to distcheck configure, and log the flags 10159 before running configure. (Backported to 0.2.9 and later as a 10160 precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha. 10161 10162 o Minor bugfixes (continuous integration, backport from 0.3.4.8): 10163 - When a Travis build fails, and showing a log fails, keep trying to 10164 show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc. 10165 - When we use echo in Travis, don't pass a --flag as the first 10166 argument. Fixes bug 27418; bugfix on 0.3.4.7-rc. 10167 10168 o Minor bugfixes (directory authority, backport from 0.3.4.6-rc): 10169 - When voting for recommended versions, make sure that all of the 10170 versions are well-formed and parsable. Fixes bug 26485; bugfix 10171 on 0.1.1.6-alpha. 10172 10173 o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc): 10174 - Fix a bug in out sandboxing rules for the openat() syscall. 10175 Previously, no openat() call would be permitted, which would break 10176 filesystem operations on recent glibc versions. Fixes bug 25440; 10177 bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto. 10178 10179 o Minor bugfixes (onion services, backport from 0.3.4.8): 10180 - Silence a spurious compiler warning in 10181 rend_client_send_introduction(). Fixes bug 27463; bugfix 10182 on 0.1.1.2-alpha. 10183 10184 o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc): 10185 - Log a protocol warning when single onion services or Tor2web clients 10186 fail to authenticate direct connections to relays. 10187 Fixes bug 26924; bugfix on 0.2.9.1-alpha. 10188 10189 o Minor bugfixes (testing, backport from 0.3.4.6-rc): 10190 - Disable core dumps in test_bt.sh, to avoid failures in "make 10191 distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha. 10192 10193 o Minor bugfixes (testing, chutney, backport from 0.3.4.8): 10194 - Before running make test-network-all, delete old logs and test 10195 result files, to avoid spurious failures. Fixes bug 27295; bugfix 10196 on 0.2.7.3-rc. 10197 10198 o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc): 10199 - Our "tortls/cert_matches_key" unit test no longer relies on 10200 OpenSSL internals. Previously, it relied on unsupported OpenSSL 10201 behavior in a way that caused it to crash with OpenSSL 1.0.2p. 10202 Fixes bug 27226; bugfix on 0.2.5.1-alpha. 10203 10204 o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc): 10205 - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug 10206 27185; bugfix on 0.2.2.2-alpha. 10207 10208 10209 Changes in version 0.3.2.12 - 2018-09-10 10210 Tor 0.3.2.12 backport numerous fixes from later versions of Tor. 10211 10212 o Minor features (compatibility, backport from 0.3.4.8): 10213 - Tell OpenSSL to maintain backward compatibility with previous 10214 RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these 10215 ciphers are disabled by default. Closes ticket 27344. 10216 10217 o Minor features (continuous integration, backport from 0.3.4.7-rc): 10218 - Enable macOS builds in our Travis CI configuration. Closes 10219 ticket 24629. 10220 - Install libcap-dev and libseccomp2-dev so these optional 10221 dependencies get tested on Travis CI. Closes ticket 26560. 10222 - Run asciidoc during Travis CI. Implements ticket 27087. 10223 - Use ccache in our Travis CI configuration. Closes ticket 26952. 10224 10225 o Minor features (continuous integration, rust, backport from 0.3.4.7-rc): 10226 - Use cargo cache in our Travis CI configuration. Closes 10227 ticket 26952. 10228 10229 o Minor features (controller, backport from 0.3.4.6-rc): 10230 - The control port now exposes the list of HTTPTunnelPorts and 10231 ExtOrPorts via GETINFO net/listeners/httptunnel and 10232 net/listeners/extor respectively. Closes ticket 26647. 10233 10234 o Minor features (directory authorities, backport from 0.3.4.7-rc): 10235 - Authorities no longer vote to make the subprotocol version 10236 "LinkAuth=1" a requirement: it is unsupportable with NSS, and 10237 hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286. 10238 10239 o Minor features (geoip): 10240 - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2 10241 Country database. Closes ticket 27089. 10242 10243 o Minor bugfixes (compilation, backport from 0.3.4.6-rc): 10244 - When compiling with --enable-openbsd-malloc or --enable-tcmalloc, 10245 tell the compiler not to include the system malloc implementation. 10246 Fixes bug 20424; bugfix on 0.2.0.20-rc. 10247 - Don't try to use a pragma to temporarily disable the 10248 -Wunused-const-variable warning if the compiler doesn't support 10249 it. Fixes bug 26785; bugfix on 0.3.2.11. 10250 10251 o Minor bugfixes (compilation, backport from 0.3.4.7-rc): 10252 - Silence a spurious compiler warning on the GetAdaptersAddresses 10253 function pointer cast. This issue is already fixed by 26481 in 10254 0.3.5 and later, by removing the lookup and cast. Fixes bug 27465; 10255 bugfix on 0.2.3.11-alpha. 10256 - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not 10257 supported, and always fails. Some compilers warn about the 10258 function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix 10259 on 0.2.2.23-alpha. 10260 10261 o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc): 10262 - Don't link or search for pthreads when building for Windows, even 10263 if we are using build environment (like mingw) that provides a 10264 pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc. 10265 10266 o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc): 10267 - Skip a pair of unreliable key generation tests on Windows, until 10268 the underlying issue in bug 26076 is resolved. Fixes bug 26830 and 10269 bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively. 10270 10271 o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc): 10272 - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha. 10273 - Pass the module flags to distcheck configure, and log the flags 10274 before running configure. (Backported to 0.2.9 and later as a 10275 precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha. 10276 10277 o Minor bugfixes (continuous integration, backport from 0.3.4.8): 10278 - When a Travis build fails, and showing a log fails, keep trying to 10279 show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc. 10280 - When we use echo in Travis, don't pass a --flag as the first 10281 argument. Fixes bug 27418; bugfix on 0.3.4.7-rc. 10282 10283 o Minor bugfixes (directory authority, backport from 0.3.4.6-rc): 10284 - When voting for recommended versions, make sure that all of the 10285 versions are well-formed and parsable. Fixes bug 26485; bugfix 10286 on 0.1.1.6-alpha. 10287 10288 o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc): 10289 - Fix a bug in out sandboxing rules for the openat() syscall. 10290 Previously, no openat() call would be permitted, which would break 10291 filesystem operations on recent glibc versions. Fixes bug 25440; 10292 bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto. 10293 10294 o Minor bugfixes (logging, backport from 0.3.4.6-rc): 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. 10298 10299 o Minor bugfixes (onion services, backport from 0.3.4.7-rc): 10300 - Fix bug that causes services to not ever rotate their descriptors 10301 if they were getting SIGHUPed often. Fixes bug 26932; bugfix 10302 on 0.3.2.1-alpha. 10303 10304 o Minor bugfixes (onion services, backport from 0.3.4.8): 10305 - Silence a spurious compiler warning in 10306 rend_client_send_introduction(). Fixes bug 27463; bugfix 10307 on 0.1.1.2-alpha. 10308 10309 o Minor bugfixes (rust, backport from 0.3.4.7-rc): 10310 - Backport test_rust.sh from master. Fixes bug 26497; bugfix 10311 on 0.3.1.5-alpha. 10312 - Consistently use ../../.. as a fallback for $abs_top_srcdir in 10313 test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha. 10314 - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or 10315 $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha. 10316 10317 o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc): 10318 - Log a protocol warning when single onion services or Tor2web clients 10319 fail to authenticate direct connections to relays. 10320 Fixes bug 26924; bugfix on 0.2.9.1-alpha. 10321 10322 o Minor bugfixes (testing, backport from 0.3.4.6-rc): 10323 - Disable core dumps in test_bt.sh, to avoid failures in "make 10324 distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha. 10325 10326 o Minor bugfixes (testing, chutney, backport from 0.3.4.8): 10327 - When running make test-network-all, use the mixed+hs-v2 network. 10328 (A previous fix to chutney removed v3 onion services from the 10329 mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is 10330 confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha. 10331 - Before running make test-network-all, delete old logs and test 10332 result files, to avoid spurious failures. Fixes bug 27295; bugfix 10333 on 0.2.7.3-rc. 10334 10335 o Minor bugfixes (testing, openssl compatibility): 10336 - Our "tortls/cert_matches_key" unit test no longer relies on OpenSSL 10337 internals. Previously, it relied on unsupported OpenSSL behavior in 10338 a way that caused it to crash with OpenSSL 1.0.2p. Fixes bug 27226; 10339 bugfix on 0.2.5.1-alpha. 10340 10341 o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc): 10342 - Our "tortls/cert_matches_key" unit test no longer relies on 10343 OpenSSL internals. Previously, it relied on unsupported OpenSSL 10344 behavior in a way that caused it to crash with OpenSSL 1.0.2p. 10345 Fixes bug 27226; bugfix on 0.2.5.1-alpha. 10346 10347 o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc): 10348 - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug 10349 27185; bugfix on 0.2.2.2-alpha. 10350 10351 10352 Changes in version 0.3.3.10 - 2018-09-10 10353 Tor 0.3.3.10 backports numerous fixes from later versions of Tor. 10354 10355 o Minor features (bug workaround, backport from 0.3.4.7-rc): 10356 - Compile correctly on systems that provide the C11 stdatomic.h 10357 header, but where C11 atomic functions don't actually compile. 10358 Closes ticket 26779; workaround for Debian issue 903709. 10359 10360 o Minor features (compatibility, backport from 0.3.4.8): 10361 - Tell OpenSSL to maintain backward compatibility with previous 10362 RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these 10363 ciphers are disabled by default. Closes ticket 27344. 10364 10365 o Minor features (continuous integration, backport from 0.3.4.7-rc): 10366 - Backport Travis rust distcheck to 0.3.3. Closes ticket 24629. 10367 - Enable macOS builds in our Travis CI configuration. Closes 10368 ticket 24629. 10369 - Install libcap-dev and libseccomp2-dev so these optional 10370 dependencies get tested on Travis CI. Closes ticket 26560. 10371 - Run asciidoc during Travis CI. Implements ticket 27087. 10372 - Use ccache in our Travis CI configuration. Closes ticket 26952. 10373 10374 o Minor features (continuous integration, rust, backport from 0.3.4.7-rc): 10375 - Use cargo cache in our Travis CI configuration. Closes 10376 ticket 26952. 10377 10378 o Minor features (controller, backport from 0.3.4.6-rc): 10379 - The control port now exposes the list of HTTPTunnelPorts and 10380 ExtOrPorts via GETINFO net/listeners/httptunnel and 10381 net/listeners/extor respectively. Closes ticket 26647. 10382 10383 o Minor features (directory authorities, backport from 0.3.4.7-rc): 10384 - Authorities no longer vote to make the subprotocol version 10385 "LinkAuth=1" a requirement: it is unsupportable with NSS, and 10386 hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286. 10387 10388 o Minor features (geoip): 10389 - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2 10390 Country database. Closes ticket 27089. 10391 10392 o Minor bugfixes (compilation, backport from 0.3.4.6-rc): 10393 - When compiling with --enable-openbsd-malloc or --enable-tcmalloc, 10394 tell the compiler not to include the system malloc implementation. 10395 Fixes bug 20424; bugfix on 0.2.0.20-rc. 10396 - Don't try to use a pragma to temporarily disable the 10397 -Wunused-const-variable warning if the compiler doesn't support 10398 it. Fixes bug 26785; bugfix on 0.3.2.11. 10399 10400 o Minor bugfixes (compilation, backport from 0.3.4.7-rc): 10401 - Silence a spurious compiler warning on the GetAdaptersAddresses 10402 function pointer cast. This issue is already fixed by 26481 in 10403 0.3.5 and later, by removing the lookup and cast. Fixes bug 27465; 10404 bugfix on 0.2.3.11-alpha. 10405 - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not 10406 supported, and always fails. Some compilers warn about the 10407 function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix 10408 on 0.2.2.23-alpha. 10409 10410 o Minor bugfixes (compilation, windows, backport from 0.3.4.7-rc): 10411 - Don't link or search for pthreads when building for Windows, even 10412 if we are using build environment (like mingw) that provides a 10413 pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc. 10414 10415 o Minor bugfixes (continuous integration, backport from 0.3.4.6-rc): 10416 - Skip a pair of unreliable key generation tests on Windows, until 10417 the underlying issue in bug 26076 is resolved. Fixes bug 26830 and 10418 bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively. 10419 10420 o Minor bugfixes (continuous integration, backport from 0.3.4.7-rc): 10421 - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha. 10422 - Pass the module flags to distcheck configure, and log the flags 10423 before running configure. (Backported to 0.2.9 and later as a 10424 precaution.) Fixes bug 27088; bugfix on 0.3.4.1-alpha. 10425 10426 o Minor bugfixes (continuous integration, backport from 0.3.4.8): 10427 - When a Travis build fails, and showing a log fails, keep trying to 10428 show the other logs. Fixes bug 27453; bugfix on 0.3.4.7-rc. 10429 - When we use echo in Travis, don't pass a --flag as the first 10430 argument. Fixes bug 27418; bugfix on 0.3.4.7-rc. 10431 10432 o Minor bugfixes (directory authority, backport from 0.3.4.6-rc): 10433 - When voting for recommended versions, make sure that all of the 10434 versions are well-formed and parsable. Fixes bug 26485; bugfix 10435 on 0.1.1.6-alpha. 10436 10437 o Minor bugfixes (in-process restart, backport from 0.3.4.7-rc): 10438 - Always call tor_free_all() when leaving tor_run_main(). When we 10439 did not, restarting tor in-process would cause an assertion 10440 failure. Fixes bug 26948; bugfix on 0.3.3.1-alpha. 10441 10442 o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.4.7-rc): 10443 - Fix a bug in our sandboxing rules for the openat() syscall. 10444 Previously, no openat() call would be permitted, which would break 10445 filesystem operations on recent glibc versions. Fixes bug 25440; 10446 bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto. 10447 10448 o Minor bugfixes (logging, backport from 0.3.4.6-rc): 10449 - Improve the log message when connection initiators fail to 10450 authenticate direct connections to relays. Fixes bug 26927; bugfix 10451 on 0.3.0.1-alpha. 10452 10453 o Minor bugfixes (onion services, backport from 0.3.4.7-rc): 10454 - Fix bug that causes services to not ever rotate their descriptors 10455 if they were getting SIGHUPed often. Fixes bug 26932; bugfix 10456 on 0.3.2.1-alpha. 10457 10458 o Minor bugfixes (onion services, backport from 0.3.4.8): 10459 - Silence a spurious compiler warning in 10460 rend_client_send_introduction(). Fixes bug 27463; bugfix 10461 on 0.1.1.2-alpha. 10462 10463 o Minor bugfixes (portability, backport from 0.3.4.6-rc): 10464 - Work around two different bugs in the OS X 10.10 and later SDKs 10465 that would prevent us from successfully targeting earlier versions 10466 of OS X. Fixes bug 26876; bugfix on 0.3.3.1-alpha. 10467 10468 o Minor bugfixes (portability, backport from 0.3.4.7-rc): 10469 - Fix compilation of the unit tests on GNU/Hurd, which does not 10470 define PATH_MAX. Fixes bug 26873; bugfix on 0.3.3.1-alpha. Patch 10471 from "paulusASol". 10472 10473 o Minor bugfixes (rust, backport from 0.3.4.7-rc): 10474 - Backport test_rust.sh from master. Fixes bug 26497; bugfix 10475 on 0.3.1.5-alpha. 10476 - Consistently use ../../.. as a fallback for $abs_top_srcdir in 10477 test_rust.sh. Fixes bug 27093; bugfix on 0.3.4.3-alpha. 10478 - Protover parsing was accepting the presence of whitespace in 10479 version strings, which the C implementation would choke on, e.g. 10480 "Desc=1\t,2". Fixes bug 27177; bugfix on 0.3.3.5-rc. 10481 - Protover parsing was ignoring a 2nd hyphen and everything after 10482 it, accepting entries like "Link=1-5-foo". Fixes bug 27164; bugfix 10483 on 0.3.3.1-alpha. 10484 - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or 10485 $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha. 10486 - cd to ${abs_top_builddir}/src/rust before running cargo in 10487 src/test/test_rust.sh. This makes the working directory consistent 10488 between builds and tests. Fixes bug 26497; bugfix on 0.3.3.2-alpha. 10489 10490 o Minor bugfixes (single onion services, Tor2web, backport from 0.3.4.6-rc): 10491 - Log a protocol warning when single onion services or Tor2web clients 10492 fail to authenticate direct connections to relays. 10493 Fixes bug 26924; bugfix on 0.2.9.1-alpha. 10494 10495 o Minor bugfixes (testing, backport from 0.3.4.6-rc): 10496 - Disable core dumps in test_bt.sh, to avoid failures in "make 10497 distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha. 10498 10499 o Minor bugfixes (testing, chutney, backport from 0.3.4.8): 10500 - When running make test-network-all, use the mixed+hs-v2 network. 10501 (A previous fix to chutney removed v3 onion services from the 10502 mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is 10503 confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha. 10504 - Before running make test-network-all, delete old logs and test 10505 result files, to avoid spurious failures. Fixes bug 27295; bugfix 10506 on 0.2.7.3-rc. 10507 10508 o Minor bugfixes (testing, openssl compatibility, backport from 0.3.4.7-rc): 10509 - Our "tortls/cert_matches_key" unit test no longer relies on 10510 OpenSSL internals. Previously, it relied on unsupported OpenSSL 10511 behavior in a way that caused it to crash with OpenSSL 1.0.2p. 10512 Fixes bug 27226; bugfix on 0.2.5.1-alpha. 10513 10514 o Minor bugfixes (v3 onion services, backport from 0.3.4.6-rc): 10515 - Stop sending ed25519 link specifiers in v3 onion service introduce 10516 cells and descriptors, when the rendezvous or introduction point 10517 doesn't support ed25519 link authentication. Fixes bug 26627; 10518 bugfix on 0.3.2.4-alpha. 10519 10520 o Minor bugfixes (Windows, compilation, backport from 0.3.4.7-rc): 10521 - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug 10522 27185; bugfix on 0.2.2.2-alpha. 10523 10524 10525 Changes in version 0.3.4.8 - 2018-09-10 10526 Tor 0.3.4.8 is the first stable release in its series; it includes 10527 compilation and portability fixes. 10528 10529 The Tor 0.3.4 series includes improvements for running Tor in 10530 low-power and embedded environments, which should help performance in 10531 general. We've begun work on better modularity, and included preliminary 10532 changes on the directory authority side to accommodate a new bandwidth 10533 measurement system. We've also integrated more continuous-integration 10534 systems into our development process, and made corresponding changes to 10535 Tor's testing infrastructure. Finally, we've continued to refine 10536 our anti-denial-of-service code. 10537 10538 Below are the changes since 0.3.3.9. For a list of only the changes 10539 since 0.3.4.7-rc, see the ChangeLog file. 10540 10541 o New system requirements: 10542 - Tor no longer tries to support old operating systems without 10543 mmap() or some local equivalent. Apparently, compilation on such 10544 systems has been broken for some time, without anybody noticing or 10545 complaining. Closes ticket 25398. 10546 10547 o Major features (directory authority, modularization): 10548 - The directory authority subsystem has been modularized. The code 10549 is now located in src/or/dirauth/, and is compiled in by default. 10550 To disable the module, the configure option 10551 --disable-module-dirauth has been added. This module may be 10552 disabled by default in some future release. Closes ticket 25610. 10553 10554 o Major features (main loop, CPU usage): 10555 - When Tor is disabled (via DisableNetwork or via hibernation), it 10556 no longer needs to run any per-second events. This change should 10557 make it easier for mobile applications to disable Tor while the 10558 device is sleeping, or Tor is not running. Closes ticket 26063. 10559 - Tor no longer enables all of its periodic events by default. 10560 Previously, Tor would enable all possible main loop events, 10561 regardless of whether it needed them. Furthermore, many of these 10562 events are now disabled when Tor is hibernating or DisableNetwork 10563 is set. This is a big step towards reducing client CPU usage by 10564 reducing the amount of wake-ups the daemon does. Closes tickets 10565 25376 and 25762. 10566 - The bandwidth-limitation logic has been refactored so that 10567 bandwidth calculations are performed on-demand, rather than every 10568 TokenBucketRefillInterval milliseconds. This change should improve 10569 the granularity of our bandwidth calculations, and limit the 10570 number of times that the Tor process needs to wake up when it is 10571 idle. Closes ticket 25373. 10572 - Move responsibility for many operations from a once-per-second 10573 callback to a callback that is only scheduled as needed. Moving 10574 this functionality has allowed us to disable the callback when 10575 Tor's network is disabled. Once enough items are removed from our 10576 once-per-second callback, we can eliminate it entirely to conserve 10577 CPU when idle. The functionality removed includes: closing 10578 connections, circuits, and channels (ticket 25932); consensus 10579 voting (25937); flushing log callbacks (25951); honoring delayed 10580 SIGNEWNYM requests (25949); rescanning the consensus cache 10581 (25931); saving the state file to disk (25948); warning relay 10582 operators about unreachable ports (25952); and keeping track of 10583 Tor's uptime (26009). 10584 10585 o Minor features (accounting): 10586 - When Tor becomes dormant, it now uses a scheduled event to wake up 10587 at the right time. Previously, we would use the per-second timer 10588 to check whether to wake up, but we no longer have any per-second 10589 timers enabled when the network is disabled. Closes ticket 26064. 10590 10591 o Minor features (bug workaround): 10592 - Compile correctly on systems that provide the C11 stdatomic.h 10593 header, but where C11 atomic functions don't actually compile. 10594 Closes ticket 26779; workaround for Debian issue 903709. 10595 10596 o Minor features (code quality): 10597 - Add optional spell-checking for the Tor codebase, using the 10598 "misspell" program. To use this feature, run "make check-typos". 10599 Closes ticket 25024. 10600 10601 o Minor features (compatibility): 10602 - Tell OpenSSL to maintain backward compatibility with previous 10603 RSA1024/DH1024 users in Tor. With OpenSSL 1.1.1-pre6, these 10604 ciphers are disabled by default. Closes ticket 27344. 10605 - Tor now detects versions of OpenSSL 1.1.0 and later compiled with 10606 the no-deprecated option, and builds correctly with them. Closes 10607 tickets 19429, 19981, and 25353. 10608 10609 o Minor features (compilation): 10610 - When compiling with --enable-openbsd-malloc or --enable-tcmalloc, 10611 tell the compiler not to include the system malloc implementation. 10612 Fixes bug 20424; bugfix on 0.2.0.20-rc. 10613 - Don't try to use a pragma to temporarily disable the 10614 -Wunused-const-variable warning if the compiler doesn't support 10615 it. Fixes bug 26785; bugfix on 0.3.2.11. 10616 - When building Tor, prefer to use Python 3 over Python 2, and more 10617 recent (contemplated) versions over older ones. Closes 10618 ticket 26372. 10619 10620 o Minor features (compression, zstd): 10621 - When running with zstd, Tor now considers using advanced functions 10622 that the zstd maintainers have labeled as potentially unstable. To 10623 prevent breakage, Tor will only use this functionality when the 10624 runtime version of the zstd library matches the version with which 10625 Tor was compiled. Closes ticket 25162. 10626 10627 o Minor features (configuration): 10628 - The "DownloadSchedule" options have been renamed to end with 10629 "DownloadInitialDelay". The old names are still allowed, but will 10630 produce a warning. Comma-separated lists are still permitted for 10631 these options, but all values after the first are ignored (as they 10632 have been since 0.2.9). Closes ticket 23354. 10633 10634 o Minor features (continuous integration): 10635 - Log the compiler path and version during Appveyor builds. 10636 Implements ticket 27449. 10637 - Show config.log and test-suite.log after failed Appveyor builds. 10638 Also upload the zipped full logs as a build artifact. Implements 10639 ticket 27430. 10640 - Backport Travis rust distcheck to 0.3.3. Closes ticket 24629. 10641 - Enable macOS builds in our Travis CI configuration. Closes 10642 ticket 24629. 10643 - Install libcap-dev and libseccomp2-dev so these optional 10644 dependencies get tested on Travis CI. Closes ticket 26560. 10645 - Only post Appveyor IRC notifications when the build fails. 10646 Implements ticket 27275. 10647 - Run asciidoc during Travis CI. Implements ticket 27087. 10648 - Use ccache in our Travis CI configuration. Closes ticket 26952. 10649 - Add the necessary configuration files for continuous integration 10650 testing on Windows, via the Appveyor platform. Closes ticket 10651 25549. Patches from Marcin Cieślak and Isis Lovecruft. 10652 10653 o Minor features (continuous integration, rust): 10654 - Use cargo cache in our Travis CI configuration. Closes 10655 ticket 26952. 10656 10657 o Minor features (control port): 10658 - Introduce GETINFO "current-time/{local,utc}" to return the local 10659 and UTC times respectively in ISO format. This helps a controller 10660 like Tor Browser detect a time-related error. Closes ticket 25511. 10661 Patch by Neel Chauhan. 10662 - Introduce new fields to the CIRC_BW event. There are two new 10663 fields in each of the read and written directions. The DELIVERED 10664 fields report the total valid data on the circuit, as measured by 10665 the payload sizes of verified and error-checked relay command 10666 cells. The OVERHEAD fields report the total unused bytes in each 10667 of these cells. Closes ticket 25903. 10668 10669 o Minor features (controller): 10670 - The control port now exposes the list of HTTPTunnelPorts and 10671 ExtOrPorts via GETINFO net/listeners/httptunnel and 10672 net/listeners/extor respectively. Closes ticket 26647. 10673 10674 o Minor features (directory authorities): 10675 - Stop warning about incomplete bw lines before the first complete 10676 bw line has been found, so that additional header lines can be 10677 ignored. Fixes bug 25960; bugfix on 0.2.2.1-alpha 10678 - Authorities no longer vote to make the subprotocol version 10679 "LinkAuth=1" a requirement: it is unsupportable with NSS, and 10680 hasn't been needed since Tor 0.3.0.1-alpha. Closes ticket 27286. 10681 10682 o Minor features (directory authority): 10683 - Directory authorities now open their key-pinning files as O_SYNC, 10684 to limit their chances of accidentally writing partial lines. 10685 Closes ticket 23909. 10686 10687 o Minor features (directory authority, forward compatibility): 10688 - Make the lines of the measured bandwidth file able to contain 10689 their entries in any order. Previously, the node_id entry needed 10690 to come first. Closes ticket 26004. 10691 10692 o Minor features (entry guards): 10693 - Introduce a new torrc option NumPrimaryGuards for controlling the 10694 number of primary guards. Closes ticket 25843. 10695 10696 o Minor features (geoip): 10697 - Update geoip and geoip6 to the August 7 2018 Maxmind GeoLite2 10698 Country database. Closes ticket 27089. 10699 10700 o Minor features (performance): 10701 - Avoid a needless call to malloc() when processing an incoming 10702 relay cell. Closes ticket 24914. 10703 - Make our timing-wheel code run a tiny bit faster on 32-bit 10704 platforms, by preferring 32-bit math to 64-bit. Closes 10705 ticket 24688. 10706 - Avoid a needless malloc()/free() pair every time we handle an ntor 10707 handshake. Closes ticket 25150. 10708 10709 o Minor features (Rust, portability): 10710 - Rust cross-compilation is now supported. Closes ticket 25895. 10711 10712 o Minor features (testing): 10713 - Add a unit test for voting_schedule_get_start_of_next_interval(). 10714 Closes ticket 26014, and helps make unit test coverage 10715 more deterministic. 10716 - A new unittests module specifically for testing the functions in 10717 the (new-ish) bridges.c module has been created with new 10718 unittests, raising the code coverage percentages. Closes 25425. 10719 - We now have improved testing for addressmap_get_virtual_address() 10720 function. This should improve our test coverage, and make our test 10721 coverage more deterministic. Closes ticket 25993. 10722 10723 o Minor features (timekeeping, circuit scheduling): 10724 - When keeping track of how busy each circuit have been recently on 10725 a given connection, use coarse-grained monotonic timers rather 10726 than gettimeofday(). This change should marginally increase 10727 accuracy and performance. Implements part of ticket 25927. 10728 10729 o Minor features (unit tests): 10730 - Test complete bandwidth measurements files, and test that 10731 incomplete bandwidth lines only give warnings when the end of the 10732 header has not been detected. Fixes bug 25947; bugfix 10733 on 0.2.2.1-alpha 10734 10735 o Minor bugfixes (bandwidth management): 10736 - Consider ourselves "low on write bandwidth" if we have exhausted 10737 our write bandwidth some time in the last second. This was the 10738 documented behavior before, but the actual behavior was to change 10739 this value every TokenBucketRefillInterval. Fixes bug 25828; 10740 bugfix on 0.2.3.5-alpha. 10741 10742 o Minor bugfixes (C correctness): 10743 - Add a missing lock acquisition in the shutdown code of the control 10744 subsystem. Fixes bug 25675; bugfix on 0.2.7.3-rc. Found by 10745 Coverity; this is CID 1433643. 10746 10747 o Minor bugfixes (code style): 10748 - Fixed multiple includes of transports.h in src/or/connection.c 10749 Fixes bug 25261; bugfix on 0.2.5.1-alpha. 10750 - Remove the unused variable n_possible from the function 10751 channel_get_for_extend(). Fixes bug 25645; bugfix on 0.2.4.4-alpha 10752 10753 o Minor bugfixes (compilation): 10754 - Silence a spurious compiler warning on the GetAdaptersAddresses 10755 function pointer cast. This issue is already fixed by 26481 in 10756 0.3.5 and later, by removing the lookup and cast. Fixes bug 27465; 10757 bugfix on 0.2.3.11-alpha. 10758 - Stop calling SetProcessDEPPolicy() on 64-bit Windows. It is not 10759 supported, and always fails. Some compilers warn about the 10760 function pointer cast on 64-bit Windows. Fixes bug 27461; bugfix 10761 on 0.2.2.23-alpha. 10762 - Fix a compilation warning on some versions of GCC when building 10763 code that calls routerinfo_get_my_routerinfo() twice, assuming 10764 that the second call will succeed if the first one did. Fixes bug 10765 26269; bugfix on 0.2.8.2-alpha. 10766 - Refrain from compiling unit testing related object files when 10767 --disable-unittests is set to configure script. Fixes bug 24891; 10768 bugfix on 0.2.5.1-alpha. 10769 - The --enable-fatal-warnings flag now affects Rust code as well. 10770 Closes ticket 26245. 10771 - Avoid a compiler warning when casting the return value of 10772 smartlist_len() to double with DEBUG_SMARTLIST enabled. Fixes bug 10773 26283; bugfix on 0.2.4.10-alpha. 10774 10775 o Minor bugfixes (compilation, windows): 10776 - Don't link or search for pthreads when building for Windows, even 10777 if we are using build environment (like mingw) that provides a 10778 pthreads library. Fixes bug 27081; bugfix on 0.1.0.1-rc. 10779 10780 o Minor bugfixes (continuous integration): 10781 - Build with zstd on macOS. Fixes bug 27090; bugfix on 0.3.1.5-alpha. 10782 - Skip a pair of unreliable key generation tests on Windows, until 10783 the underlying issue in bug 26076 is resolved. Fixes bug 26830 and 10784 bug 26853; bugfix on 0.2.7.3-rc and 0.3.2.1-alpha respectively. 10785 10786 o Minor bugfixes (control port): 10787 - Respond with more human-readable error messages to GETINFO exit- 10788 policy/* requests. Also, let controller know if an error is 10789 transient (response code 551) or not (response code 552). Fixes 10790 bug 25852; bugfix on 0.2.8.1-alpha. 10791 - Parse the "HSADDRESS=" parameter in HSPOST commands properly. 10792 Previously, it was misparsed and ignored. Fixes bug 26523; bugfix 10793 on 0.3.3.1-alpha. Patch by "akwizgran". 10794 - Make CIRC_BW event reflect the total of all data sent on a 10795 circuit, including padding and dropped cells. Also fix a mis- 10796 counting bug when STREAM_BW events were enabled. Fixes bug 25400; 10797 bugfix on 0.2.5.2-alpha. 10798 10799 o Minor bugfixes (correctness, flow control): 10800 - Upon receiving a stream-level SENDME cell, verify that our window 10801 has not grown too large. Fixes bug 26214; bugfix on svn 10802 r54 (pre-0.0.1). 10803 10804 o Minor bugfixes (directory authority): 10805 - When voting for recommended versions, make sure that all of the 10806 versions are well-formed and parsable. Fixes bug 26485; bugfix 10807 on 0.1.1.6-alpha. 10808 10809 o Minor bugfixes (directory client): 10810 - When unverified-consensus is verified, rename it to cached- 10811 consenus. Fixes bug 4187; bugfix on 0.2.0.3-alpha. 10812 - Fixed launching a certificate fetch always during the scheduled 10813 periodic consensus fetch by fetching only in those cases when 10814 consensus are waiting for certs. Fixes bug 24740; bugfix 10815 on 0.2.9.1-alpha. 10816 10817 o Minor bugfixes (error reporting): 10818 - Improve tolerance for directory authorities with skewed clocks. 10819 Previously, an authority with a clock more than 60 seconds ahead 10820 could cause a client with a correct clock to warn that the 10821 client's clock was behind. Now the clocks of a majority of 10822 directory authorities have to be ahead of the client before this 10823 warning will occur. Fixes bug 25756; bugfix on 0.2.2.25-alpha. 10824 10825 o Minor bugfixes (in-process restart): 10826 - Always call tor_free_all() when leaving tor_run_main(). When we 10827 did not, restarting tor in-process would cause an assertion 10828 failure. Fixes bug 26948; bugfix on 0.3.3.1-alpha. 10829 10830 o Minor bugfixes (Linux seccomp2 sandbox): 10831 - Fix a bug in our sandboxing rules for the openat() syscall. 10832 Previously, no openat() call would be permitted, which would break 10833 filesystem operations on recent glibc versions. Fixes bug 25440; 10834 bugfix on 0.2.9.15. Diagnosis and patch from Daniel Pinto. 10835 10836 o Minor bugfixes (logging): 10837 - Improve the log message when connection initiators fail to 10838 authenticate direct connections to relays. Fixes bug 26927; bugfix 10839 on 0.3.0.1-alpha. 10840 10841 o Minor bugfixes (onion services): 10842 - Silence a spurious compiler warning in 10843 rend_client_send_introduction(). Fixes bug 27463; bugfix 10844 on 0.1.1.2-alpha. 10845 - Fix bug that causes services to not ever rotate their descriptors 10846 if they were getting SIGHUPed often. Fixes bug 26932; bugfix 10847 on 0.3.2.1-alpha. 10848 - Recompute some consensus information after detecting a clock jump, 10849 or after transitioning from a non-live consensus to a live 10850 consensus. We do this to avoid having an outdated state, and 10851 miscalculating the index for next-generation onion services. Fixes 10852 bug 24977; bugfix on 0.3.2.1-alpha. 10853 10854 o Minor bugfixes (portability): 10855 - Fix compilation of the unit tests on GNU/Hurd, which does not 10856 define PATH_MAX. Fixes bug 26873; bugfix on 0.3.3.1-alpha. Patch 10857 from "paulusASol". 10858 - Work around two different bugs in the OS X 10.10 and later SDKs 10859 that would prevent us from successfully targeting earlier versions 10860 of OS X. Fixes bug 26876; bugfix on 0.3.3.1-alpha. 10861 - Do not align mmap length, as it is not required by POSIX, and the 10862 getpagesize function is deprecated. Fixes bug 25399; bugfix 10863 on 0.1.1.23. 10864 10865 o Minor bugfixes (portability, FreeBSD): 10866 - In have_enough_mem_for_dircache(), the variable DIRCACHE_MIN_MEM_MB 10867 does not stringify on FreeBSD, so we switch to tor_asprintf(). 10868 Fixes bug 20887; bugfix on 0.2.8.1-alpha. Patch by Neel Chauhan. 10869 10870 o Minor bugfixes (relay statistics): 10871 - When a relay is collecting internal statistics about how many 10872 create cell requests it has seen of each type, accurately count 10873 the requests from relays that temporarily fall out of the 10874 consensus. (To be extra conservative, we were already ignoring 10875 requests from clients in our counts, and we continue ignoring them 10876 here.) Fixes bug 24910; bugfix on 0.2.4.17-rc. 10877 10878 o Minor bugfixes (rust): 10879 - Backport test_rust.sh from master. Fixes bug 26497; bugfix 10880 on 0.3.1.5-alpha. 10881 - Protover parsing was accepting the presence of whitespace in 10882 version strings, which the C implementation would choke on, e.g. 10883 "Desc=1\t,2". Fixes bug 27177; bugfix on 0.3.3.5-rc. 10884 - Protover parsing was ignoring a 2nd hyphen and everything after 10885 it, accepting entries like "Link=1-5-foo". Fixes bug 27164; bugfix 10886 on 0.3.3.1-alpha. 10887 - Stop setting $CARGO_HOME. cargo will use the user's $CARGO_HOME, or 10888 $HOME/.cargo by default. Fixes bug 26497; bugfix on 0.3.1.5-alpha. 10889 - cd to ${abs_top_builddir}/src/rust before running cargo in 10890 src/test/test_rust.sh. This makes the working directory consistent 10891 between builds and tests. Fixes bug 26497; bugfix on 0.3.3.2-alpha. 10892 10893 o Minor bugfixes (single onion services, Tor2web): 10894 - Log a protocol warning when single onion services or Tor2web 10895 clients fail to authenticate direct connections to relays. Fixes 10896 bug 26924; bugfix on 0.2.9.1-alpha. 10897 10898 o Minor bugfixes (test coverage tools): 10899 - Update our "cov-diff" script to handle output from the latest 10900 version of gcov, and to remove extraneous timestamp information 10901 from its output. Fixes bugs 26101 and 26102; bugfix 10902 on 0.2.5.1-alpha. 10903 10904 o Minor bugfixes (testing): 10905 - Disable core dumps in test_bt.sh, to avoid failures in "make 10906 distcheck". Fixes bug 26787; bugfix on 0.2.5.2-alpha. 10907 - When testing workqueue event-cancellation, make sure that we 10908 actually cancel an event, and that cancel each event with equal 10909 probability. (It was previously possible, though extremely 10910 unlikely, for our event-canceling test not to cancel any events.) 10911 Fixes bug 26008; bugfix on 0.2.6.3-alpha. 10912 - Repeat part of the test in test_client_pick_intro() a number of 10913 times, to give it consistent coverage. Fixes bug 25996; bugfix 10914 on 0.3.2.1-alpha. 10915 - Remove randomness from the hs_common/responsible_hsdirs test, so 10916 that it always takes the same path through the function it tests. 10917 Fixes bug 25997; bugfix on 0.3.2.1-alpha. 10918 - Change the behavior of the "channel/outbound" test so that it 10919 never causes a 10-second rollover for the EWMA circuitmux code. 10920 Previously, this behavior would happen randomly, and result in 10921 fluctuating test coverage. Fixes bug 25994; bugfix 10922 on 0.3.3.1-alpha. 10923 - Use X509_new() to allocate certificates that will be freed later 10924 with X509_free(). Previously, some parts of the unit tests had 10925 used tor_malloc_zero(), which is incorrect, and which caused test 10926 failures on Windows when they were built with extra hardening. 10927 Fixes bugs 25943 and 25944; bugfix on 0.2.8.1-alpha. Patch by 10928 Marcin Cieślak. 10929 - While running the circuit_timeout test, fix the PRNG to a 10930 deterministic AES stream, so that the test coverage from this test 10931 will itself be deterministic. Fixes bug 25995; bugfix 10932 on 0.2.2.2-alpha. 10933 10934 o Minor bugfixes (testing, bootstrap): 10935 - When calculating bootstrap progress, check exit policies and the 10936 exit flag. Previously, Tor would only check the exit flag, which 10937 caused race conditions in small and fast networks like chutney. 10938 Fixes bug 27236; bugfix on 0.2.6.3-alpha. 10939 10940 o Minor bugfixes (testing, chutney): 10941 - When running make test-network-all, use the mixed+hs-v2 network. 10942 (A previous fix to chutney removed v3 onion services from the 10943 mixed+hs-v23 network, so seeing "mixed+hs-v23" in tests is 10944 confusing.) Fixes bug 27345; bugfix on 0.3.2.1-alpha. 10945 - Before running make test-network-all, delete old logs and test 10946 result files, to avoid spurious failures. Fixes bug 27295; bugfix 10947 on 0.2.7.3-rc. 10948 10949 o Minor bugfixes (testing, openssl compatibility): 10950 - Our "tortls/cert_matches_key" unit test no longer relies on 10951 OpenSSL internals. Previously, it relied on unsupported OpenSSL 10952 behavior in a way that caused it to crash with OpenSSL 1.0.2p. 10953 Fixes bug 27226; bugfix on 0.2.5.1-alpha. 10954 10955 o Minor bugfixes (v3 onion services): 10956 - Stop sending ed25519 link specifiers in v3 onion service introduce 10957 cells and descriptors, when the rendezvous or introduction point 10958 doesn't support ed25519 link authentication. Fixes bug 26627; 10959 bugfix on 0.3.2.4-alpha. 10960 10961 o Minor bugfixes (vanguards): 10962 - Allow the last hop in a vanguard circuit to be the same as our 10963 first, to prevent the adversary from influencing guard node choice 10964 by choice of last hop. Also prevent the creation of A - B - A 10965 paths, or A - A paths, which are forbidden by relays. Fixes bug 10966 25870; bugfix on 0.3.3.1-alpha. 10967 10968 o Minor bugfixes (Windows, compilation): 10969 - Silence a compilation warning on MSVC 2017 and clang-cl. Fixes bug 10970 27185; bugfix on 0.2.2.2-alpha. 10971 10972 o Code simplification and refactoring: 10973 - Remove duplicate code in parse_{c,s}method_line and bootstrap 10974 their functionalities into a single function. Fixes bug 6236; 10975 bugfix on 0.2.3.6-alpha. 10976 - We remove the PortForwarding and PortForwardingHelper options, 10977 related functions, and the port_forwarding tests. These options 10978 were used by the now-deprecated Vidalia to help ordinary users 10979 become Tor relays or bridges. Closes ticket 25409. Patch by 10980 Neel Chauhan. 10981 - In order to make the OR and dir checking function in router.c less 10982 confusing we renamed some functions and 10983 consider_testing_reachability() has been split into 10984 router_should_check_reachability() and 10985 router_do_reachability_checks(). Also we improved the documentation 10986 in some functions. Closes ticket 18918. 10987 - Initial work to isolate Libevent usage to a handful of modules in 10988 our codebase, to simplify our call structure, and so that we can 10989 more easily change event loops in the future if needed. Closes 10990 ticket 23750. 10991 - Introduce a function to call getsockname() and return tor_addr_t, 10992 to save a little complexity throughout the codebase. Closes 10993 ticket 18105. 10994 - Make hsdir_index in node_t a hsdir_index_t rather than a pointer 10995 as hsdir_index is always present. Also, we move hsdir_index_t into 10996 or.h. Closes ticket 23094. Patch by Neel Chauhan. 10997 - Merge functions used for describing nodes and suppress the 10998 functions that do not allocate memory for the output buffer 10999 string. NODE_DESC_BUF_LEN constant and format_node_description() 11000 function cannot be used externally from router.c module anymore. 11001 Closes ticket 25432. Patch by valentecaio. 11002 - Our main loop has been simplified so that all important operations 11003 happen inside events. Previously, some operations had to happen 11004 outside the event loop, to prevent infinite sequences of event 11005 activations. Closes ticket 25374. 11006 - Put a SHA1 public key digest in hs_service_intro_point_t, and use 11007 it in register_intro_circ() and service_intro_point_new(). This 11008 prevents the digest from being re-calculated each time. Closes 11009 ticket 23107. Patch by Neel Chauhan. 11010 - Refactor token-bucket implementations to use a common backend. 11011 Closes ticket 25766. 11012 - Remove extern declaration of stats_n_seconds_working variable from 11013 main, protecting its accesses with get_uptime() and reset_uptime() 11014 functions. Closes ticket 25081, patch by “valentecaio”. 11015 - Remove our previous logic for "cached gettimeofday()" -- our 11016 coarse monotonic timers are fast enough for this purpose, and far 11017 less error-prone. Implements part of ticket 25927. 11018 - Remove the return value for fascist_firewall_choose_address_base(), 11019 and sister functions such as fascist_firewall_choose_address_node() 11020 and fascist_firewall_choose_address_rs(). Also, while we're here, 11021 initialize the ap argument as leaving it uninitialized can pose a 11022 security hazard. Closes ticket 24734. Patch by Neel Chauhan. 11023 - Rename two fields of connection_t struct. timestamp_lastwritten is 11024 renamed to timestamp_last_write_allowed and timestamp_lastread is 11025 renamed to timestamp_last_read_allowed. Closes ticket 24714, patch 11026 by "valentecaio". 11027 - Since Tor requires C99, remove our old workaround code for libc 11028 implementations where free(NULL) doesn't work. Closes ticket 24484. 11029 - Use our standard rate-limiting code to deal with excessive 11030 libevent failures, rather than the hand-rolled logic we had 11031 before. Closes ticket 26016. 11032 - We remove the return value of node_get_prim_orport() and 11033 node_get_prim_dirport(), and introduce node_get_prim_orport() in 11034 node_ipv6_or_preferred() and node_ipv6_dir_preferred() in order to 11035 check for a null address. Closes ticket 23873. Patch by 11036 Neel Chauhan. 11037 - We switch to should_record_bridge_info() in 11038 geoip_note_client_seen() and options_need_geoip_info() instead of 11039 accessing the configuration values directly. Fixes bug 25290; 11040 bugfix on 0.2.1.6-alpha. Patch by Neel Chauhan. 11041 11042 o Deprecated features: 11043 - As we are not recommending 0.2.5 anymore, we require relays that 11044 once had an ed25519 key associated with their RSA key to always 11045 have that key, instead of allowing them to drop back to a version 11046 that didn't support ed25519. This means they need to use a new RSA 11047 key if they want to downgrade to an older version of tor without 11048 ed25519. Closes ticket 20522. 11049 11050 o Removed features: 11051 - Directory authorities will no longer support voting according to 11052 any consensus method before consensus method 25. This keeps 11053 authorities compatible with all authorities running 0.2.9.8 and 11054 later, and does not break any clients or relays. Implements ticket 11055 24378 and proposal 290. 11056 - The PortForwarding and PortForwardingHelper features have been 11057 removed. The reasoning is, given that implementations of NAT 11058 traversal protocols within common consumer grade routers are 11059 frequently buggy, and that the target audience for a NAT punching 11060 feature is a perhaps less-technically-inclined relay operator, 11061 when the helper fails to setup traversal the problems are usually 11062 deep, ugly, and very router specific, making them horrendously 11063 impossible for technical support to reliable assist with, and thus 11064 resulting in frustration all around. Unfortunately, relay 11065 operators who would like to run relays behind NATs will need to 11066 become more familiar with the port forwarding configurations on 11067 their local router. Closes 25409. 11068 - The TestingEnableTbEmptyEvent option has been removed. It was used 11069 in testing simulations to measure how often connection buckets 11070 were emptied, in order to improve our scheduling, but it has not 11071 been actively used in years. Closes ticket 25760. 11072 - The old "round-robin" circuit multiplexer (circuitmux) 11073 implementation has been removed, along with a fairly large set of 11074 code that existed to support it. It has not been the default 11075 circuitmux since we introduced the "EWMA" circuitmux in 0.2.4.x, 11076 but it still required an unreasonable amount of memory and CPU. 11077 Closes ticket 25268. 11078 11079 11080 Changes in version 0.3.3.9 - 2018-07-13 11081 Tor 0.3.3.9 moves to a new bridge authority, meaning people running 11082 bridge relays should upgrade. 11083 11084 o Directory authority changes: 11085 - The "Bifroest" bridge authority has been retired; the new bridge 11086 authority is "Serge", and it is operated by George from the 11087 TorBSD project. Closes ticket 26771. 11088 11089 11090 Changes in version 0.3.2.11 - 2018-07-13 11091 Tor 0.3.2.11 moves to a new bridge authority, meaning people running 11092 bridge relays should upgrade. We also take this opportunity to backport 11093 other minor fixes. 11094 11095 o Directory authority changes: 11096 - The "Bifroest" bridge authority has been retired; the new bridge 11097 authority is "Serge", and it is operated by George from the 11098 TorBSD project. Closes ticket 26771. 11099 11100 o Directory authority changes (backport from 0.3.3.7): 11101 - Add an IPv6 address for the "dannenberg" directory authority. 11102 Closes ticket 26343. 11103 11104 o Major bugfixes (directory authorities, backport from 0.3.4.1-alpha): 11105 - When directory authorities read a zero-byte bandwidth file, they 11106 would previously log a warning with the contents of an 11107 uninitialised buffer. They now log a warning about the empty file 11108 instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha. 11109 11110 o Major bugfixes (onion service, backport from 0.3.4.1-alpha): 11111 - Correctly detect when onion services get disabled after HUP. Fixes 11112 bug 25761; bugfix on 0.3.2.1. 11113 11114 o Minor features (sandbox, backport from 0.3.3.4-alpha): 11115 - Explicitly permit the poll() system call when the Linux 11116 seccomp2-based sandbox is enabled: apparently, some versions of 11117 libc use poll() when calling getpwnam(). Closes ticket 25313. 11118 11119 o Minor feature (continuous integration, backport from 0.3.3.5-rc): 11120 - Update the Travis CI configuration to use the stable Rust channel, 11121 now that we have decided to require that. Closes ticket 25714. 11122 11123 o Minor features (continuous integration, backport from 0.3.4.1-alpha): 11124 - Our .travis.yml configuration now includes support for testing the 11125 results of "make distcheck". (It's not uncommon for "make check" 11126 to pass but "make distcheck" to fail.) Closes ticket 25814. 11127 - Our Travis CI configuration now integrates with the Coveralls 11128 coverage analysis tool. Closes ticket 25818. 11129 11130 o Minor features (relay, diagnostic, backport from 0.3.4.3-alpha): 11131 - Add several checks to detect whether Tor relays are uploading 11132 their descriptors without specifying why they regenerated them. 11133 Diagnostic for ticket 25686. 11134 11135 o Minor features (compilation, backport from 0.3.4.4-rc): 11136 - When building Tor, prefer to use Python 3 over Python 2, and more 11137 recent (contemplated) versions over older ones. Closes 11138 ticket 26372. 11139 11140 o Minor features (geoip): 11141 - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2 11142 Country database. Closes ticket 26674. 11143 11144 o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha): 11145 - Upon receiving a malformed connected cell, stop processing the 11146 cell immediately. Previously we would mark the connection for 11147 close, but continue processing the cell as if the connection were 11148 open. Fixes bug 26072; bugfix on 0.2.4.7-alpha. 11149 11150 o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha): 11151 - Allow the nanosleep() system call, which glibc uses to implement 11152 sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha. 11153 11154 o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc): 11155 - When running the hs_ntor_ref.py test, make sure only to pass 11156 strings (rather than "bytes" objects) to the Python subprocess 11157 module. Python 3 on Windows seems to require this. Fixes bug 11158 26535; bugfix on 0.3.1.1-alpha. 11159 - When running the ntor_ref.py test, make sure only to pass strings 11160 (rather than "bytes" objects) to the Python subprocess module. 11161 Python 3 on Windows seems to require this. Fixes bug 26535; bugfix 11162 on 0.2.5.5-alpha. 11163 11164 o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha): 11165 - Work around a change in OpenSSL 1.1.1 where return values that 11166 would previously indicate "no password" now indicate an empty 11167 password. Without this workaround, Tor instances running with 11168 OpenSSL 1.1.1 would accept descriptors that other Tor instances 11169 would reject. Fixes bug 26116; bugfix on 0.2.5.16. 11170 11171 o Minor bugfixes (documentation, backport from 0.3.3.5-rc): 11172 - Document that the PerConnBW{Rate,Burst} options will fall back to 11173 their corresponding consensus parameters only if those parameters 11174 are set. Previously we had claimed that these values would always 11175 be set in the consensus. Fixes bug 25296; bugfix on 0.2.2.7-alpha. 11176 11177 o Minor bugfixes (compilation, backport from 0.3.4.4-rc): 11178 - Fix a compilation warning on some versions of GCC when building 11179 code that calls routerinfo_get_my_routerinfo() twice, assuming 11180 that the second call will succeed if the first one did. Fixes bug 11181 26269; bugfix on 0.2.8.2-alpha. 11182 11183 o Minor bugfixes (client, backport from 0.3.4.1-alpha): 11184 - Don't consider Tor running as a client if the ControlPort is open, 11185 but no actual client ports are open. Fixes bug 26062; bugfix 11186 on 0.2.9.4-alpha. 11187 11188 o Minor bugfixes (hardening, backport from 0.3.4.2-alpha): 11189 - Prevent a possible out-of-bounds smartlist read in 11190 protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha. 11191 11192 o Minor bugfixes (C correctness, backport from 0.3.3.4-alpha): 11193 - Fix a very unlikely (impossible, we believe) null pointer 11194 dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by 11195 Coverity; this is CID 1430932. 11196 11197 o Minor bugfixes (onion service, backport from 0.3.4.1-alpha): 11198 - Fix a memory leak when a v3 onion service is configured and gets a 11199 SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha. 11200 - When parsing the descriptor signature, look for the token plus an 11201 extra white-space at the end. This is more correct but also will 11202 allow us to support new fields that might start with "signature". 11203 Fixes bug 26069; bugfix on 0.3.0.1-alpha. 11204 11205 o Minor bugfixes (relay, backport from 0.3.4.3-alpha): 11206 - Relays now correctly block attempts to re-extend to the previous 11207 relay by Ed25519 identity. Previously they would warn in this 11208 case, but not actually reject the attempt. Fixes bug 26158; bugfix 11209 on 0.3.0.1-alpha. 11210 11211 o Minor bugfixes (relay, crash, backport from 0.3.4.1-alpha): 11212 - Avoid a crash when running with DirPort set but ORPort turned off. 11213 Fixes a case of bug 23693; bugfix on 0.3.1.1-alpha. 11214 11215 o Minor bugfixes (compilation, backport from 0.3.4.2-alpha): 11216 - Silence unused-const-variable warnings in zstd.h with some GCC 11217 versions. Fixes bug 26272; bugfix on 0.3.1.1-alpha. 11218 11219 o Minor bugfixes (testing, backport from 0.3.3.4-alpha): 11220 - Avoid intermittent test failures due to a test that had relied on 11221 onion service introduction point creation finishing within 5 11222 seconds of real clock time. Fixes bug 25450; bugfix 11223 on 0.3.1.3-alpha. 11224 11225 o Minor bugfixes (compilation, backport from 0.3.3.4-alpha): 11226 - Fix a C99 compliance issue in our configuration script that caused 11227 compilation issues when compiling Tor with certain versions of 11228 xtools. Fixes bug 25474; bugfix on 0.3.2.5-alpha. 11229 11230 o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc): 11231 - Fix a number of small memory leaks identified by coverity. Fixes 11232 bug 26467; bugfix on numerous Tor versions. 11233 11234 o Code simplification and refactoring (backport from 0.3.3.5-rc): 11235 - Move the list of default directory authorities to its own file. 11236 Closes ticket 24854. Patch by "beastr0". 11237 11238 11239 Changes in version 0.2.9.16 - 2018-07-13 11240 Tor 0.2.9.16 moves to a new bridge authority, meaning people running 11241 bridge relays should upgrade. We also take this opportunity to backport 11242 other minor fixes. 11243 11244 o Directory authority changes: 11245 - The "Bifroest" bridge authority has been retired; the new bridge 11246 authority is "Serge", and it is operated by George from the 11247 TorBSD project. Closes ticket 26771. 11248 11249 o Directory authority changes (backport from 0.3.3.7): 11250 - Add an IPv6 address for the "dannenberg" directory authority. 11251 Closes ticket 26343. 11252 11253 o Major bugfixes (directory authorities, backport from 0.3.4.1-alpha): 11254 - When directory authorities read a zero-byte bandwidth file, they 11255 would previously log a warning with the contents of an 11256 uninitialised buffer. They now log a warning about the empty file 11257 instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha. 11258 11259 o Minor features (sandbox, backport from 0.3.3.4-alpha): 11260 - Explicitly permit the poll() system call when the Linux 11261 seccomp2-based sandbox is enabled: apparently, some versions of 11262 libc use poll() when calling getpwnam(). Closes ticket 25313. 11263 11264 o Minor features (continuous integration, backport from 0.3.4.1-alpha): 11265 - Our .travis.yml configuration now includes support for testing the 11266 results of "make distcheck". (It's not uncommon for "make check" 11267 to pass but "make distcheck" to fail.) Closes ticket 25814. 11268 - Our Travis CI configuration now integrates with the Coveralls 11269 coverage analysis tool. Closes ticket 25818. 11270 11271 o Minor features (compilation, backport from 0.3.4.4-rc): 11272 - When building Tor, prefer to use Python 3 over Python 2, and more 11273 recent (contemplated) versions over older ones. Closes 11274 ticket 26372. 11275 11276 o Minor features (geoip): 11277 - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2 11278 Country database. Closes ticket 26674. 11279 11280 o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha): 11281 - Upon receiving a malformed connected cell, stop processing the 11282 cell immediately. Previously we would mark the connection for 11283 close, but continue processing the cell as if the connection were 11284 open. Fixes bug 26072; bugfix on 0.2.4.7-alpha. 11285 11286 o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha): 11287 - Allow the nanosleep() system call, which glibc uses to implement 11288 sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha. 11289 11290 o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc): 11291 - When running the ntor_ref.py test, make sure only to pass strings 11292 (rather than "bytes" objects) to the Python subprocess module. 11293 Python 3 on Windows seems to require this. Fixes bug 26535; bugfix 11294 on 0.2.5.5-alpha. 11295 11296 o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha): 11297 - Work around a change in OpenSSL 1.1.1 where return values that 11298 would previously indicate "no password" now indicate an empty 11299 password. Without this workaround, Tor instances running with 11300 OpenSSL 1.1.1 would accept descriptors that other Tor instances 11301 would reject. Fixes bug 26116; bugfix on 0.2.5.16. 11302 11303 o Minor bugfixes (compilation, backport from 0.3.4.4-rc): 11304 - Fix a compilation warning on some versions of GCC when building 11305 code that calls routerinfo_get_my_routerinfo() twice, assuming 11306 that the second call will succeed if the first one did. Fixes bug 11307 26269; bugfix on 0.2.8.2-alpha. 11308 11309 o Minor bugfixes (client, backport from 0.3.4.1-alpha): 11310 - Don't consider Tor running as a client if the ControlPort is open, 11311 but no actual client ports are open. Fixes bug 26062; bugfix 11312 on 0.2.9.4-alpha. 11313 11314 o Minor bugfixes (hardening, backport from 0.3.4.2-alpha): 11315 - Prevent a possible out-of-bounds smartlist read in 11316 protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha. 11317 11318 o Minor bugfixes (C correctness, backport from 0.3.3.4-alpha): 11319 - Fix a very unlikely (impossible, we believe) null pointer 11320 dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by 11321 Coverity; this is CID 1430932. 11322 11323 o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc): 11324 - Fix a number of small memory leaks identified by coverity. Fixes 11325 bug 26467; bugfix on numerous Tor versions. 11326 11327 o Code simplification and refactoring (backport from 0.3.3.5-rc): 11328 - Move the list of default directory authorities to its own file. 11329 Closes ticket 24854. Patch by "beastr0". 11330 11331 11332 Changes in version 0.3.3.8 - 2018-07-09 11333 Tor 0.3.3.8 backports several changes from the 0.3.4.x series, including 11334 fixes for a memory leak affecting directory authorities. 11335 11336 o Major bugfixes (directory authority, backport from 0.3.4.3-alpha): 11337 - Stop leaking memory on directory authorities when planning to 11338 vote. This bug was crashing authorities by exhausting their 11339 memory. Fixes bug 26435; bugfix on 0.3.3.6. 11340 11341 o Major bugfixes (rust, testing, backport from 0.3.4.3-alpha): 11342 - Make sure that failing tests in Rust will actually cause the build 11343 to fail: previously, they were ignored. Fixes bug 26258; bugfix 11344 on 0.3.3.4-alpha. 11345 11346 o Minor features (compilation, backport from 0.3.4.4-rc): 11347 - When building Tor, prefer to use Python 3 over Python 2, and more 11348 recent (contemplated) versions over older ones. Closes 11349 ticket 26372. 11350 11351 o Minor features (geoip): 11352 - Update geoip and geoip6 to the July 3 2018 Maxmind GeoLite2 11353 Country database. Closes ticket 26674. 11354 11355 o Minor features (relay, diagnostic, backport from 0.3.4.3-alpha): 11356 - Add several checks to detect whether Tor relays are uploading 11357 their descriptors without specifying why they regenerated them. 11358 Diagnostic for ticket 25686. 11359 11360 o Minor bugfixes (circuit path selection, backport from 0.3.4.1-alpha): 11361 - Don't count path selection failures as circuit build failures. 11362 This change should eliminate cases where Tor blames its guard or 11363 the network for situations like insufficient microdescriptors 11364 and/or overly restrictive torrc settings. Fixes bug 25705; bugfix 11365 on 0.3.3.1-alpha. 11366 11367 o Minor bugfixes (compilation, backport from 0.3.4.4-rc): 11368 - Fix a compilation warning on some versions of GCC when building 11369 code that calls routerinfo_get_my_routerinfo() twice, assuming 11370 that the second call will succeed if the first one did. Fixes bug 11371 26269; bugfix on 0.2.8.2-alpha. 11372 11373 o Minor bugfixes (control port, backport from 0.3.4.4-rc): 11374 - Handle the HSADDRESS= argument to the HSPOST command properly. 11375 (Previously, this argument was misparsed and thus ignored.) Fixes 11376 bug 26523; bugfix on 0.3.3.1-alpha. Patch by "akwizgran". 11377 11378 o Minor bugfixes (memory, correctness, backport from 0.3.4.4-rc): 11379 - Fix a number of small memory leaks identified by coverity. Fixes 11380 bug 26467; bugfix on numerous Tor versions. 11381 11382 o Minor bugfixes (relay, backport from 0.3.4.3-alpha): 11383 - Relays now correctly block attempts to re-extend to the previous 11384 relay by Ed25519 identity. Previously they would warn in this 11385 case, but not actually reject the attempt. Fixes bug 26158; bugfix 11386 on 0.3.0.1-alpha. 11387 11388 o Minor bugfixes (restart-in-process, backport from 0.3.4.1-alpha): 11389 - When shutting down, Tor now clears all the flags in the control.c 11390 module. This should prevent a bug where authentication cookies are 11391 not generated on restart. Fixes bug 25512; bugfix on 0.3.3.1-alpha. 11392 11393 o Minor bugfixes (testing, compatibility, backport from 0.3.4.4-rc): 11394 - When running the hs_ntor_ref.py test, make sure only to pass 11395 strings (rather than "bytes" objects) to the Python subprocess 11396 module. Python 3 on Windows seems to require this. Fixes bug 11397 26535; bugfix on 0.3.1.1-alpha. 11398 - When running the ntor_ref.py test, make sure only to pass strings 11399 (rather than "bytes" objects) to the Python subprocess module. 11400 Python 3 on Windows seems to require this. Fixes bug 26535; bugfix 11401 on 0.2.5.5-alpha. 11402 11403 11404 Changes in version 0.3.3.7 - 2018-06-12 11405 Tor 0.3.3.7 backports several changes from the 0.3.4.x series, including 11406 fixes for bugs affecting compatibility and stability. 11407 11408 o Directory authority changes: 11409 - Add an IPv6 address for the "dannenberg" directory authority. 11410 Closes ticket 26343. 11411 11412 o Minor features (geoip): 11413 - Update geoip and geoip6 to the June 7 2018 Maxmind GeoLite2 11414 Country database. Closes ticket 26351. 11415 11416 o Minor bugfixes (compatibility, openssl, backport from 0.3.4.2-alpha): 11417 - Work around a change in OpenSSL 1.1.1 where return values that 11418 would previously indicate "no password" now indicate an empty 11419 password. Without this workaround, Tor instances running with 11420 OpenSSL 1.1.1 would accept descriptors that other Tor instances 11421 would reject. Fixes bug 26116; bugfix on 0.2.5.16. 11422 11423 o Minor bugfixes (compilation, backport from 0.3.4.2-alpha): 11424 - Silence unused-const-variable warnings in zstd.h with some GCC 11425 versions. Fixes bug 26272; bugfix on 0.3.1.1-alpha. 11426 11427 o Minor bugfixes (controller, backport from 0.3.4.2-alpha): 11428 - Improve accuracy of the BUILDTIMEOUT_SET control port event's 11429 TIMEOUT_RATE and CLOSE_RATE fields. (We were previously 11430 miscounting the total number of circuits for these field values.) 11431 Fixes bug 26121; bugfix on 0.3.3.1-alpha. 11432 11433 o Minor bugfixes (hardening, backport from 0.3.4.2-alpha): 11434 - Prevent a possible out-of-bounds smartlist read in 11435 protover_compute_vote(). Fixes bug 26196; bugfix on 0.2.9.4-alpha. 11436 11437 o Minor bugfixes (path selection, backport from 0.3.4.1-alpha): 11438 - Only select relays when they have the descriptors we prefer to use 11439 for them. This change fixes a bug where we could select a relay 11440 because it had _some_ descriptor, but reject it later with a 11441 nonfatal assertion error because it didn't have the exact one we 11442 wanted. Fixes bugs 25691 and 25692; bugfix on 0.3.3.4-alpha. 11443 11444 11445 Changes in version 0.3.3.6 - 2018-05-22 11446 Tor 0.3.3.6 is the first stable release in the 0.3.3 series. It 11447 backports several important fixes from the 0.3.4.1-alpha. 11448 11449 The Tor 0.3.3 series includes controller support and other 11450 improvements for v3 onion services, official support for embedding Tor 11451 within other applications, and our first non-trivial module written in 11452 the Rust programming language. (Rust is still not enabled by default 11453 when building Tor.) And as usual, there are numerous other smaller 11454 bugfixes, features, and improvements. 11455 11456 Below are the changes since 0.3.2.10. For a list of only the changes 11457 since 0.3.3.5-rc, see the ChangeLog file. 11458 11459 o New system requirements: 11460 - When built with Rust, Tor now depends on version 0.2.39 of the 11461 libc crate. Closes tickets 25310 and 25664. 11462 11463 o Major features (embedding): 11464 - There is now a documented stable API for programs that need to 11465 embed Tor. See tor_api.h for full documentation and known bugs. 11466 Closes ticket 23684. 11467 - Tor now has support for restarting in the same process. 11468 Controllers that run Tor using the "tor_api.h" interface can now 11469 restart Tor after Tor has exited. This support is incomplete, 11470 however: we fixed crash bugs that prevented it from working at 11471 all, but many bugs probably remain, including a possibility of 11472 security issues. Implements ticket 24581. 11473 11474 o Major features (IPv6, directory documents): 11475 - Add consensus method 27, which adds IPv6 ORPorts to the microdesc 11476 consensus. This information makes it easier for IPv6 clients to 11477 bootstrap and choose reachable entry guards. Implements 11478 ticket 23826. 11479 - Add consensus method 28, which removes IPv6 ORPorts from 11480 microdescriptors. Now that the consensus contains IPv6 ORPorts, 11481 they are redundant in microdescs. This change will be used by Tor 11482 clients on 0.2.8.x and later. (That is to say, with all Tor 11483 clients that have IPv6 bootstrap and guard support.) Implements 11484 ticket 23828. 11485 - Expand the documentation for AuthDirHasIPv6Connectivity when it is 11486 set by different numbers of authorities. Fixes 23870 11487 on 0.2.4.1-alpha. 11488 11489 o Major features (onion service v3, control port): 11490 - The control port now supports commands and events for v3 onion 11491 services. It is now possible to create ephemeral v3 services using 11492 ADD_ONION. Additionally, several events (HS_DESC, HS_DESC_CONTENT, 11493 CIRC and CIRC_MINOR) and commands (GETINFO, HSPOST, ADD_ONION and 11494 DEL_ONION) have been extended to support v3 onion services. Closes 11495 ticket 20699; implements proposal 284. 11496 11497 o Major features (onion services): 11498 - Provide torrc options to pin the second and third hops of onion 11499 service circuits to a list of nodes. The option HSLayer2Guards 11500 pins the second hop, and the option HSLayer3Guards pins the third 11501 hop. These options are for use in conjunction with experiments 11502 with "vanguards" for preventing guard enumeration attacks. Closes 11503 ticket 13837. 11504 - When v3 onion service clients send introduce cells, they now 11505 include the IPv6 address of the rendezvous point, if it has one. 11506 Current v3 onion services running 0.3.2 ignore IPv6 addresses, but 11507 in future Tor versions, IPv6-only v3 single onion services will be 11508 able to use IPv6 addresses to connect directly to the rendezvous 11509 point. Closes ticket 23577. Patch by Neel Chauhan. 11510 11511 o Major features (relay): 11512 - Implement an option, ReducedExitPolicy, to allow an Tor exit relay 11513 operator to use a more reasonable ("reduced") exit policy, rather 11514 than the default one. If you want to run an exit node without 11515 thinking too hard about which ports to allow, this one is for you. 11516 Closes ticket 13605. Patch from Neel Chauhan. 11517 11518 o Major features (rust, portability, experimental): 11519 - Tor now ships with an optional implementation of one of its 11520 smaller modules (protover.c) in the Rust programming language. To 11521 try it out, install a Rust build environment, and configure Tor 11522 with "--enable-rust --enable-cargo-online-mode". This should not 11523 cause any user-visible changes, but should help us gain more 11524 experience with Rust, and plan future Rust integration work. 11525 Implementation by Chelsea Komlo. Closes ticket 22840. 11526 11527 o Major bugfixes (directory authorities, security, backport from 0.3.4.1-alpha): 11528 - When directory authorities read a zero-byte bandwidth file, they 11529 would previously log a warning with the contents of an 11530 uninitialised buffer. They now log a warning about the empty file 11531 instead. Fixes bug 26007; bugfix on 0.2.2.1-alpha. 11532 11533 o Major bugfixes (security, directory authority, denial-of-service): 11534 - Fix a bug that could have allowed an attacker to force a directory 11535 authority to use up all its RAM by passing it a maliciously 11536 crafted protocol versions string. Fixes bug 25517; bugfix on 11537 0.2.9.4-alpha. This issue is also tracked as TROVE-2018-005. 11538 11539 o Major bugfixes (crash, backport from 0.3.4.1-alpha): 11540 - Avoid a rare assertion failure in the circuit build timeout code 11541 if we fail to allow any circuits to actually complete. Fixes bug 11542 25733; bugfix on 0.2.2.2-alpha. 11543 11544 o Major bugfixes (netflow padding): 11545 - Stop adding unneeded channel padding right after we finish 11546 flushing to a connection that has been trying to flush for many 11547 seconds. Instead, treat all partial or complete flushes as 11548 activity on the channel, which will defer the time until we need 11549 to add padding. This fix should resolve confusing and scary log 11550 messages like "Channel padding timeout scheduled 221453ms in the 11551 past." Fixes bug 22212; bugfix on 0.3.1.1-alpha. 11552 11553 o Major bugfixes (networking): 11554 - Tor will no longer reject IPv6 address strings from Tor Browser 11555 when they are passed as hostnames in SOCKS5 requests. Fixes bug 11556 25036, bugfix on Tor 0.3.1.2. 11557 11558 o Major bugfixes (onion service, backport from 0.3.4.1-alpha): 11559 - Correctly detect when onion services get disabled after HUP. Fixes 11560 bug 25761; bugfix on 0.3.2.1. 11561 11562 o Major bugfixes (performance, load balancing): 11563 - Directory authorities no longer vote in favor of the Guard flag 11564 for relays without directory support. Starting in Tor 11565 0.3.0.1-alpha, clients have been avoiding using such relays in the 11566 Guard position, leading to increasingly broken load balancing for 11567 the 5%-or-so of Guards that don't advertise directory support. 11568 Fixes bug 22310; bugfix on 0.3.0.6. 11569 11570 o Major bugfixes (relay): 11571 - If we have failed to connect to a relay and received a connection 11572 refused, timeout, or similar error (at the TCP level), do not try 11573 that same address/port again for 60 seconds after the failure has 11574 occurred. Fixes bug 24767; bugfix on 0.0.6. 11575 11576 o Major bugfixes (relay, denial of service, backport from 0.3.4.1-alpha): 11577 - Impose a limit on circuit cell queue size. The limit can be 11578 controlled by a consensus parameter. Fixes bug 25226; bugfix 11579 on 0.2.4.14-alpha. 11580 11581 o Minor features (cleanup): 11582 - Tor now deletes the CookieAuthFile and ExtORPortCookieAuthFile 11583 when it stops. Closes ticket 23271. 11584 11585 o Minor features (compatibility, backport from 0.3.4.1-alpha): 11586 - Avoid some compilation warnings with recent versions of LibreSSL. 11587 Closes ticket 26006. 11588 11589 o Minor features (config options): 11590 - Change the way the default value for MaxMemInQueues is calculated. 11591 We now use 40% of the hardware RAM if the system has 8 GB RAM or 11592 more. Otherwise we use the former value of 75%. Closes 11593 ticket 24782. 11594 11595 o Minor features (continuous integration): 11596 - Update the Travis CI configuration to use the stable Rust channel, 11597 now that we have decided to require that. Closes ticket 25714. 11598 11599 o Minor features (continuous integration, backport from 0.3.4.1-alpha): 11600 - Our .travis.yml configuration now includes support for testing the 11601 results of "make distcheck". (It's not uncommon for "make check" 11602 to pass but "make distcheck" to fail.) Closes ticket 25814. 11603 - Our Travis CI configuration now integrates with the Coveralls 11604 coverage analysis tool. Closes ticket 25818. 11605 11606 o Minor features (defensive programming): 11607 - Most of the functions in Tor that free objects have been replaced 11608 with macros that free the objects and set the corresponding 11609 pointers to NULL. This change should help prevent a large class of 11610 dangling pointer bugs. Closes ticket 24337. 11611 - Where possible, the tor_free() macro now only evaluates its input 11612 once. Part of ticket 24337. 11613 - Check that microdesc ed25519 ids are non-zero in 11614 node_get_ed25519_id() before returning them. Implements ticket 11615 24001, patch by "aruna1234". 11616 11617 o Minor features (directory authority): 11618 - When directory authorities are unable to add signatures to a 11619 pending consensus, log the reason why. Closes ticket 24849. 11620 11621 o Minor features (embedding): 11622 - Tor can now start with a preauthenticated control connection 11623 created by the process that launched it. This feature is meant for 11624 use by programs that want to launch and manage a Tor process 11625 without allowing other programs to manage it as well. For more 11626 information, see the __OwningControllerFD option documented in 11627 control-spec.txt. Closes ticket 23900. 11628 - On most errors that would cause Tor to exit, it now tries to 11629 return from the tor_main() function, rather than calling the 11630 system exit() function. Most users won't notice a difference here, 11631 but it should be significant for programs that run Tor inside a 11632 separate thread: they should now be able to survive Tor's exit 11633 conditions rather than having Tor shut down the entire process. 11634 Closes ticket 23848. 11635 - Applications that want to embed Tor can now tell Tor not to 11636 register any of its own POSIX signal handlers, using the 11637 __DisableSignalHandlers option. Closes ticket 24588. 11638 11639 o Minor features (fallback directory list): 11640 - Avoid selecting fallbacks that change their IP addresses too 11641 often. Select more fallbacks by ignoring the Guard flag, and 11642 allowing lower cutoffs for the Running and V2Dir flags. Also allow 11643 a lower bandwidth, and a higher number of fallbacks per operator 11644 (5% of the list). Implements ticket 24785. 11645 - Update the fallback whitelist and blacklist based on opt-ins and 11646 relay changes. Closes tickets 22321, 24678, 22527, 24135, 11647 and 24695. 11648 11649 o Minor features (fallback directory mirror configuration): 11650 - Add a nickname to each fallback in a C comment. This makes it 11651 easier for operators to find their relays, and allows stem to use 11652 nicknames to identify fallbacks. Implements ticket 24600. 11653 - Add a type and version header to the fallback directory mirror 11654 file. Also add a delimiter to the end of each fallback entry. This 11655 helps external parsers like stem and Relay Search. Implements 11656 ticket 24725. 11657 - Add an extrainfo cache flag for each fallback in a C comment. This 11658 allows stem to use fallbacks to fetch extra-info documents, rather 11659 than using authorities. Implements ticket 22759. 11660 - Add the generateFallbackDirLine.py script for automatically 11661 generating fallback directory mirror lines from relay fingerprints. 11662 No more typos! Add the lookupFallbackDirContact.py script for 11663 automatically looking up operator contact info from relay 11664 fingerprints. Implements ticket 24706, patch by teor and atagar. 11665 - Reject any fallback directory mirror that serves an expired 11666 consensus. Implements ticket 20942, patch by "minik". 11667 - Remove commas and equals signs from external string inputs to the 11668 fallback list. This avoids format confusion attacks. Implements 11669 ticket 24726. 11670 - Remove the "weight=10" line from fallback directory mirror 11671 entries. Ticket 24681 will maintain the current fallback weights 11672 by changing Tor's default fallback weight to 10. Implements 11673 ticket 24679. 11674 - Stop logging excessive information about fallback netblocks. 11675 Implements ticket 24791. 11676 11677 o Minor features (forward-compatibility): 11678 - If a relay supports some link authentication protocol that we do 11679 not recognize, then include that relay's ed25519 key when telling 11680 other relays to extend to it. Previously, we treated future 11681 versions as if they were too old to support ed25519 link 11682 authentication. Closes ticket 20895. 11683 11684 o Minor features (geoip): 11685 - Update geoip and geoip6 to the May 1 2018 Maxmind GeoLite2 Country 11686 database. Closes ticket 26104. 11687 11688 o Minor features (heartbeat): 11689 - Add onion service information to our heartbeat logs, displaying 11690 stats about the activity of configured onion services. Closes 11691 ticket 24896. 11692 11693 o Minor features (instrumentation, development): 11694 - Add the MainloopStats option to allow developers to get 11695 instrumentation information from the main event loop via the 11696 heartbeat messages. We hope to use this to improve Tor's behavior 11697 when it's trying to sleep. Closes ticket 24605. 11698 11699 o Minor features (IPv6): 11700 - Make IPv6-only clients wait for microdescs for relays, even if we 11701 were previously using descriptors (or were using them as a bridge) 11702 and have a cached descriptor for them. Implements ticket 23827. 11703 - When a consensus has IPv6 ORPorts, make IPv6-only clients use 11704 them, rather than waiting to download microdescriptors. Implements 11705 ticket 23827. 11706 11707 o Minor features (log messages): 11708 - Improve log message in the out-of-memory handler to include 11709 information about memory usage from the different compression 11710 backends. Closes ticket 25372. 11711 - Improve a warning message that happens when we fail to re-parse an 11712 old router because of an expired certificate. Closes ticket 20020. 11713 - Make the log more quantitative when we hit MaxMemInQueues 11714 threshold exposing some values. Closes ticket 24501. 11715 11716 o Minor features (logging): 11717 - Clarify the log messages produced when getrandom() or a related 11718 entropy-generation mechanism gives an error. Closes ticket 25120. 11719 - Added support for the Android logging subsystem. Closes 11720 ticket 24362. 11721 11722 o Minor features (performance): 11723 - Support predictive circuit building for onion service circuits 11724 with multiple layers of guards. Closes ticket 23101. 11725 - Use stdatomic.h where available, rather than mutexes, to implement 11726 atomic_counter_t. Closes ticket 23953. 11727 11728 o Minor features (performance, 32-bit): 11729 - Improve performance on 32-bit systems by avoiding 64-bit division 11730 when calculating the timestamp in milliseconds for channel padding 11731 computations. Implements ticket 24613. 11732 - Improve performance on 32-bit systems by avoiding 64-bit division 11733 when timestamping cells and buffer chunks for OOM calculations. 11734 Implements ticket 24374. 11735 11736 o Minor features (performance, OSX, iOS): 11737 - Use the mach_approximate_time() function (when available) to 11738 implement coarse monotonic time. Having a coarse time function 11739 should avoid a large number of system calls, and improve 11740 performance slightly, especially under load. Closes ticket 24427. 11741 11742 o Minor features (performance, windows): 11743 - Improve performance on Windows Vista and Windows 7 by adjusting 11744 TCP send window size according to the recommendation from 11745 SIO_IDEAL_SEND_BACKLOG_QUERY. Closes ticket 22798. Patch 11746 from Vort. 11747 11748 o Minor features (sandbox): 11749 - Explicitly permit the poll() system call when the Linux 11750 seccomp2-based sandbox is enabled: apparently, some versions of 11751 libc use poll() when calling getpwnam(). Closes ticket 25313. 11752 11753 o Minor features (storage, configuration): 11754 - Users can store cached directory documents somewhere other than 11755 the DataDirectory by using the CacheDirectory option. Similarly, 11756 the storage location for relay's keys can be overridden with the 11757 KeyDirectory option. Closes ticket 22703. 11758 11759 o Minor features (testing): 11760 - Add a "make test-rust" target to run the rust tests only. Closes 11761 ticket 25071. 11762 11763 o Minor features (testing, debugging, embedding): 11764 - For development purposes, Tor now has a mode in which it runs for 11765 a few seconds, then stops, and starts again without exiting the 11766 process. This mode is meant to help us debug various issues with 11767 ticket 23847. To use this feature, compile with 11768 --enable-restart-debugging, and set the TOR_DEBUG_RESTART 11769 environment variable. This is expected to crash a lot, and is 11770 really meant for developers only. It will likely be removed in a 11771 future release. Implements ticket 24583. 11772 11773 o Minor bugfixes (build, rust): 11774 - Fix output of autoconf checks to display success messages for Rust 11775 dependencies and a suitable rustc compiler version. Fixes bug 11776 24612; bugfix on 0.3.1.3-alpha. 11777 - Don't pass the --quiet option to cargo: it seems to suppress some 11778 errors, which is not what we want to do when building. Fixes bug 11779 24518; bugfix on 0.3.1.7. 11780 - Build correctly when building from outside Tor's source tree with 11781 the TOR_RUST_DEPENDENCIES option set. Fixes bug 22768; bugfix 11782 on 0.3.1.7. 11783 11784 o Minor bugfixes (C correctness): 11785 - Fix a very unlikely (impossible, we believe) null pointer 11786 dereference. Fixes bug 25629; bugfix on 0.2.9.15. Found by 11787 Coverity; this is CID 1430932. 11788 11789 o Minor bugfixes (channel, client): 11790 - Better identify client connection when reporting to the geoip 11791 client cache. Fixes bug 24904; bugfix on 0.3.1.7. 11792 11793 o Minor bugfixes (circuit, cannibalization): 11794 - Don't cannibalize preemptively-built circuits if we no longer 11795 recognize their first hop. This situation can happen if our Guard 11796 relay went off the consensus after the circuit was created. Fixes 11797 bug 24469; bugfix on 0.0.6. 11798 11799 o Minor bugfixes (client, backport from 0.3.4.1-alpha): 11800 - Don't consider Tor running as a client if the ControlPort is open, 11801 but no actual client ports are open. Fixes bug 26062; bugfix 11802 on 0.2.9.4-alpha. 11803 11804 o Minor bugfixes (compilation): 11805 - Fix a C99 compliance issue in our configuration script that caused 11806 compilation issues when compiling Tor with certain versions of 11807 xtools. Fixes bug 25474; bugfix on 0.3.2.5-alpha. 11808 11809 o Minor bugfixes (controller): 11810 - Restore the correct operation of the RESOLVE command, which had 11811 been broken since we added the ability to enable/disable DNS on 11812 specific listener ports. Fixes bug 25617; bugfix on 0.2.9.3-alpha. 11813 - Avoid a (nonfatal) assertion failure when extending a one-hop 11814 circuit from the controller to become a multihop circuit. Fixes 11815 bug 24903; bugfix on 0.2.5.2-alpha. 11816 11817 o Minor bugfixes (correctness): 11818 - Remove a nonworking, unnecessary check to see whether a circuit 11819 hop's identity digest was set when the circuit failed. Fixes bug 11820 24927; bugfix on 0.2.4.4-alpha. 11821 11822 o Minor bugfixes (correctness, client, backport from 0.3.4.1-alpha): 11823 - Upon receiving a malformed connected cell, stop processing the 11824 cell immediately. Previously we would mark the connection for 11825 close, but continue processing the cell as if the connection were 11826 open. Fixes bug 26072; bugfix on 0.2.4.7-alpha. 11827 11828 o Minor bugfixes (directory authorities, IPv6): 11829 - When creating a routerstatus (vote) from a routerinfo (descriptor), 11830 set the IPv6 address to the unspecified IPv6 address, and 11831 explicitly initialize the port to zero. Fixes bug 24488; bugfix 11832 on 0.2.4.1-alpha. 11833 11834 o Minor bugfixes (documentation): 11835 - Document that the PerConnBW{Rate,Burst} options will fall back to 11836 their corresponding consensus parameters only if those parameters 11837 are set. Previously we had claimed that these values would always 11838 be set in the consensus. Fixes bug 25296; bugfix on 0.2.2.7-alpha. 11839 11840 o Minor bugfixes (documentation, backport from 0.3.4.1-alpha): 11841 - Stop saying in the manual that clients cache ipv4 dns answers from 11842 exit relays. We haven't used them since 0.2.6.3-alpha, and in 11843 ticket 24050 we stopped even caching them as of 0.3.2.6-alpha, but 11844 we forgot to say so in the man page. Fixes bug 26052; bugfix 11845 on 0.3.2.6-alpha. 11846 11847 o Minor bugfixes (exit relay DNS retries): 11848 - Re-attempt timed-out DNS queries 3 times before failure, since our 11849 timeout is 5 seconds for them, but clients wait 10-15. Also allow 11850 slightly more timeouts per resolver when an exit has multiple 11851 resolvers configured. Fixes bug 21394; bugfix on 0.3.1.9. 11852 11853 o Minor bugfixes (fallback directory mirrors): 11854 - Make updateFallbackDirs.py search harder for python. (Some OSs 11855 don't put it in /usr/bin.) Fixes bug 24708; bugfix 11856 on 0.2.8.1-alpha. 11857 11858 o Minor bugfixes (hibernation, bandwidth accounting, shutdown): 11859 - When hibernating, close connections normally and allow them to 11860 flush. Fixes bug 23571; bugfix on 0.2.4.7-alpha. Also fixes 11861 bug 7267. 11862 - Do not attempt to launch self-reachability tests when entering 11863 hibernation. Fixes a case of bug 12062; bugfix on 0.0.9pre5. 11864 - Resolve several bugs related to descriptor fetching on bridge 11865 clients with bandwidth accounting enabled. (This combination is 11866 not recommended!) Fixes a case of bug 12062; bugfix 11867 on 0.2.0.3-alpha. 11868 - When hibernating, do not attempt to launch DNS checks. Fixes a 11869 case of bug 12062; bugfix on 0.1.2.2-alpha. 11870 - When hibernating, do not try to upload or download descriptors. 11871 Fixes a case of bug 12062; bugfix on 0.0.9pre5. 11872 11873 o Minor bugfixes (IPv6, bridges): 11874 - Tor now always sets IPv6 preferences for bridges. Fixes bug 24573; 11875 bugfix on 0.2.8.2-alpha. 11876 - Tor now sets IPv6 address in the routerstatus as well as in the 11877 router descriptors when updating addresses for a bridge. Closes 11878 ticket 24572; bugfix on 0.2.4.5-alpha. Patch by "ffmancera". 11879 11880 o Minor bugfixes (Linux seccomp2 sandbox): 11881 - When running with the sandbox enabled, reload configuration files 11882 correctly even when %include was used. Previously we would crash. 11883 Fixes bug 22605; bugfix on 0.3.1. Patch from Daniel Pinto. 11884 11885 o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.4.1-alpha): 11886 - Allow the nanosleep() system call, which glibc uses to implement 11887 sleep() and usleep(). Fixes bug 24969; bugfix on 0.2.5.1-alpha. 11888 11889 o Minor bugfixes (logging): 11890 - Fix a (mostly harmless) race condition when invoking 11891 LOG_PROTOCOL_WARN message from a subthread while the torrc options 11892 are changing. Fixes bug 23954; bugfix on 0.1.1.9-alpha. 11893 11894 o Minor bugfixes (man page, SocksPort): 11895 - Remove dead code from the old "SocksSocket" option, and rename 11896 SocksSocketsGroupWritable to UnixSocksGroupWritable. The old 11897 option still works, but is deprecated. Fixes bug 24343; bugfix 11898 on 0.2.6.3. 11899 11900 o Minor bugfixes (memory leaks): 11901 - Avoid possible at-exit memory leaks related to use of Libevent's 11902 event_base_once() function. (This function tends to leak memory if 11903 the event_base is closed before the event fires.) Fixes bug 24584; 11904 bugfix on 0.2.8.1-alpha. 11905 - Fix a harmless memory leak in tor-resolve. Fixes bug 24582; bugfix 11906 on 0.2.1.1-alpha. 11907 11908 o Minor bugfixes (network IPv6 test): 11909 - Tor's test scripts now check if "ping -6 ::1" works when the user 11910 runs "make test-network-all". Fixes bug 24677; bugfix on 11911 0.2.9.3-alpha. Patch by "ffmancera". 11912 11913 o Minor bugfixes (networking): 11914 - string_is_valid_hostname() will not consider IP strings to be 11915 valid hostnames. Fixes bug 25055; bugfix on Tor 0.2.5.5. 11916 11917 o Minor bugfixes (onion service v3): 11918 - Avoid an assertion failure when the next onion service descriptor 11919 rotation type is out of sync with the consensus's valid-after 11920 time. Instead, log a warning message with extra information, so we 11921 can better hunt down the cause of this assertion. Fixes bug 25306; 11922 bugfix on 0.3.2.1-alpha. 11923 11924 o Minor bugfixes (onion service, backport from 0.3.4.1-alpha): 11925 - Fix a memory leak when a v3 onion service is configured and gets a 11926 SIGHUP signal. Fixes bug 25901; bugfix on 0.3.2.1-alpha. 11927 - When parsing the descriptor signature, look for the token plus an 11928 extra white-space at the end. This is more correct but also will 11929 allow us to support new fields that might start with "signature". 11930 Fixes bug 26069; bugfix on 0.3.0.1-alpha. 11931 11932 o Minor bugfixes (onion services): 11933 - If we are configured to offer a single onion service, don't log 11934 long-term established one hop rendezvous points in the heartbeat. 11935 Fixes bug 25116; bugfix on 0.2.9.6-rc. 11936 11937 o Minor bugfixes (performance): 11938 - Reduce the number of circuits that will be opened at once during 11939 the circuit build timeout phase. This is done by increasing the 11940 idle timeout to 3 minutes, and lowering the maximum number of 11941 concurrent learning circuits to 10. Fixes bug 24769; bugfix 11942 on 0.3.1.1-alpha. 11943 - Avoid calling protocol_list_supports_protocol() from inside tight 11944 loops when running with cached routerinfo_t objects. Instead, 11945 summarize the relevant protocols as flags in the routerinfo_t, as 11946 we do for routerstatus_t objects. This change simplifies our code 11947 a little, and saves a large amount of short-term memory allocation 11948 operations. Fixes bug 25008; bugfix on 0.2.9.4-alpha. 11949 11950 o Minor bugfixes (performance, timeouts): 11951 - Consider circuits for timeout as soon as they complete a hop. This 11952 is more accurate than applying the timeout in 11953 circuit_expire_building() because that function is only called 11954 once per second, which is now too slow for typical timeouts on the 11955 current network. Fixes bug 23114; bugfix on 0.2.2.2-alpha. 11956 - Use onion service circuits (and other circuits longer than 3 hops) 11957 to calculate a circuit build timeout. Previously, Tor only 11958 calculated its build timeout based on circuits that planned to be 11959 exactly 3 hops long. With this change, we include measurements 11960 from all circuits at the point where they complete their third 11961 hop. Fixes bug 23100; bugfix on 0.2.2.2-alpha. 11962 11963 o Minor bugfixes (relay, crash, backport from 0.3.4.1-alpha): 11964 - Avoid a crash when running with DirPort set but ORPort turned off. 11965 Fixes a case of bug 23693; bugfix on 0.3.1.1-alpha. 11966 11967 o Minor bugfixes (Rust FFI): 11968 - Fix a minor memory leak which would happen whenever the C code 11969 would call the Rust implementation of 11970 protover_get_supported_protocols(). This was due to the C version 11971 returning a static string, whereas the Rust version newly allocated 11972 a CString to pass across the FFI boundary. Consequently, the C 11973 code was not expecting to need to free() what it was given. Fixes 11974 bug 25127; bugfix on 0.3.2.1-alpha. 11975 11976 o Minor bugfixes (spelling): 11977 - Use the "misspell" tool to detect and fix typos throughout the 11978 source code. Fixes bug 23650; bugfix on various versions of Tor. 11979 Patch from Deepesh Pathak. 11980 11981 o Minor bugfixes (testing): 11982 - Avoid intermittent test failures due to a test that had relied on 11983 onion service introduction point creation finishing within 5 11984 seconds of real clock time. Fixes bug 25450; bugfix 11985 on 0.3.1.3-alpha. 11986 - Give out Exit flags in bootstrapping networks. Fixes bug 24137; 11987 bugfix on 0.2.3.1-alpha. 11988 11989 o Minor bugfixes (unit test, monotonic time): 11990 - Increase a constant (1msec to 10msec) in the monotonic time test 11991 that makes sure the nsec/usec/msec times read are synchronized. 11992 This change was needed to accommodate slow systems like armel or 11993 when the clock_gettime() is not a VDSO on the running kernel. 11994 Fixes bug 25113; bugfix on 0.2.9.1. 11995 11996 o Code simplification and refactoring: 11997 - Move the list of default directory authorities to its own file. 11998 Closes ticket 24854. Patch by "beastr0". 11999 - Remove the old (deterministic) directory retry logic entirely: 12000 We've used exponential backoff exclusively for some time. Closes 12001 ticket 23814. 12002 - Remove the unused nodelist_recompute_all_hsdir_indices(). Closes 12003 ticket 25108. 12004 - Remove a series of counters used to track circuit extend attempts 12005 and connection status but that in reality we aren't using for 12006 anything other than stats logged by a SIGUSR1 signal. Closes 12007 ticket 25163. 12008 - Remove /usr/athena from search path in configure.ac. Closes 12009 ticket 24363. 12010 - Remove duplicate code in node_has_curve25519_onion_key() and 12011 node_get_curve25519_onion_key(), and add a check for a zero 12012 microdesc curve25519 onion key. Closes ticket 23966, patch by 12013 "aruna1234" and teor. 12014 - Rewrite channel_rsa_id_group_set_badness to reduce temporary 12015 memory allocations with large numbers of OR connections (e.g. 12016 relays). Closes ticket 24119. 12017 - Separate the function that deletes ephemeral files when Tor 12018 stops gracefully. 12019 - Small changes to Tor's buf_t API to make it suitable for use as a 12020 general-purpose safe string constructor. Closes ticket 22342. 12021 - Switch -Wnormalized=id to -Wnormalized=nfkc in configure.ac to 12022 avoid source code identifier confusion. Closes ticket 24467. 12023 - The tor_git_revision[] constant no longer needs to be redeclared 12024 by everything that links against the rest of Tor. Done as part of 12025 ticket 23845, to simplify our external API. 12026 - We make extend_info_from_node() use node_get_curve25519_onion_key() 12027 introduced in ticket 23577 to access the curve25519 public keys 12028 rather than accessing it directly. Closes ticket 23760. Patch by 12029 Neel Chauhan. 12030 - Add a function to log channels' scheduler state changes to aid 12031 debugging efforts. Closes ticket 24531. 12032 12033 o Documentation: 12034 - Improved the documentation of AccountingStart parameter. Closes 12035 ticket 23635. 12036 - Update the documentation for "Log" to include the current list of 12037 logging domains. Closes ticket 25378. 12038 - Add documentation on how to build tor with Rust dependencies 12039 without having to be online. Closes ticket 22907; bugfix 12040 on 0.3.0.3-alpha. 12041 - Clarify the behavior of RelayBandwidth{Rate,Burst} with client 12042 traffic. Closes ticket 24318. 12043 - Document that OutboundBindAddress doesn't apply to DNS requests. 12044 Closes ticket 22145. Patch from Aruna Maurya. 12045 12046 o Code simplification and refactoring (channels): 12047 - Remove the incoming and outgoing channel queues. These were never 12048 used, but still took up a step in our fast path. 12049 - The majority of the channel unit tests have been rewritten and the 12050 code coverage has now been raised to 83.6% for channel.c. Closes 12051 ticket 23709. 12052 - Remove other dead code from the channel subsystem: All together, 12053 this cleanup has removed more than 1500 lines of code overall and 12054 adding very little except for unit test. 12055 12056 o Code simplification and refactoring (circuit rendezvous): 12057 - Split the client-side rendezvous circuit lookup into two 12058 functions: one that returns only established circuits and another 12059 that returns all kinds of circuits. Closes ticket 23459. 12060 12061 o Code simplification and refactoring (controller): 12062 - Make most of the variables in networkstatus_getinfo_by_purpose() 12063 const. Implements ticket 24489. 12064 12065 o Documentation (backport from 0.3.4.1-alpha): 12066 - Correct an IPv6 error in the documentation for ExitPolicy. Closes 12067 ticket 25857. Patch from "CTassisF". 12068 12069 o Documentation (man page): 12070 - The HiddenServiceVersion torrc option accepts only one number: 12071 either version 2 or 3. Closes ticket 25026; bugfix 12072 on 0.3.2.2-alpha. 12073 12074 o Documentation (manpage, denial of service): 12075 - Provide more detail about the denial-of-service options, by 12076 listing each mitigation and explaining how they relate. Closes 12077 ticket 25248. 12078 12079 12080 Changes in version 0.3.1.10 - 2018-03-03 12081 Tor 0.3.1.10 backports a number of bugfixes, including important fixes for 12082 security issues. 12083 12084 It includes an important security fix for a remote crash attack 12085 against directory authorities, tracked as TROVE-2018-001. 12086 12087 This release also backports our new system for improved resistance to 12088 denial-of-service attacks against relays. 12089 12090 This release also fixes several minor bugs and annoyances from 12091 earlier releases. 12092 12093 All directory authorities should upgrade to one of the versions 12094 released today. Relays running 0.3.1.x may wish to update to one of 12095 the versions released today, for the DoS mitigations. 12096 12097 Please note: according to our release calendar, Tor 0.3.1 will no 12098 longer be supported after 1 July 2018. If you will be running Tor 12099 after that date, you should make sure to plan to upgrade to the latest 12100 stable version, or downgrade to 0.2.9 (which will receive long-term 12101 support). 12102 12103 o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha): 12104 - Fix a protocol-list handling bug that could be used to remotely crash 12105 directory authorities with a null-pointer exception. Fixes bug 25074; 12106 bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and 12107 CVE-2018-0490. 12108 12109 o Major features (denial-of-service mitigation, backport from 0.3.3.2-alpha): 12110 - Give relays some defenses against the recent network overload. We 12111 start with three defenses (default parameters in parentheses). 12112 First: if a single client address makes too many concurrent 12113 connections (>100), hang up on further connections. Second: if a 12114 single client address makes circuits too quickly (more than 3 per 12115 second, with an allowed burst of 90) while also having too many 12116 connections open (3), refuse new create cells for the next while 12117 (1-2 hours). Third: if a client asks to establish a rendezvous 12118 point to you directly, ignore the request. These defenses can be 12119 manually controlled by new torrc options, but relays will also 12120 take guidance from consensus parameters, so there's no need to 12121 configure anything manually. Implements ticket 24902. 12122 12123 o Minor features (linux seccomp2 sandbox, backport from 0.3.2.5-alpha): 12124 - Update the sandbox rules so that they should now work correctly 12125 with Glibc 2.26. Closes ticket 24315. 12126 12127 o Major bugfixes (onion services, retry behavior, backport from 0.3.3.1-alpha): 12128 - Fix an "off by 2" error in counting rendezvous failures on the 12129 onion service side. While we thought we would stop the rendezvous 12130 attempt after one failed circuit, we were actually making three 12131 circuit attempts before giving up. Now switch to a default of 2, 12132 and allow the consensus parameter "hs_service_max_rdv_failures" to 12133 override. Fixes bug 24895; bugfix on 0.0.6. 12134 12135 o Major bugfixes (protocol versions, backport from 0.3.3.2-alpha): 12136 - Add Link protocol version 5 to the supported protocols list. Fixes 12137 bug 25070; bugfix on 0.3.1.1-alpha. 12138 12139 o Major bugfixes (relay, backport from 0.3.3.1-alpha): 12140 - Fix a set of false positives where relays would consider 12141 connections to other relays as being client-only connections (and 12142 thus e.g. deserving different link padding schemes) if those 12143 relays fell out of the consensus briefly. Now we look only at the 12144 initial handshake and whether the connection authenticated as a 12145 relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha. 12146 12147 o Minor features (denial-of-service avoidance, backport from 0.3.3.2-alpha): 12148 - Make our OOM handler aware of the geoip client history cache so it 12149 doesn't fill up the memory. This check is important for IPv6 and 12150 our DoS mitigation subsystem. Closes ticket 25122. 12151 12152 o Minor feature (relay statistics, backport from 0.3.2.6-alpha): 12153 - Change relay bandwidth reporting stats interval from 4 hours to 24 12154 hours in order to reduce the efficiency of guard discovery 12155 attacks. Fixes ticket 23856. 12156 12157 o Minor features (compatibility, OpenSSL, backport from 0.3.3.3-alpha): 12158 - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released. 12159 Previous versions of Tor would not have worked with OpenSSL 1.1.1, 12160 since they neither disabled TLS 1.3 nor enabled any of the 12161 ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites. 12162 Closes ticket 24978. 12163 12164 o Minor features (fallback directory mirrors, backport from 0.3.2.9): 12165 - The fallback directory list has been re-generated based on the 12166 current status of the network. Tor uses fallback directories to 12167 bootstrap when it doesn't yet have up-to-date directory 12168 information. Closes ticket 24801. 12169 - Make the default DirAuthorityFallbackRate 0.1, so that clients 12170 prefer to bootstrap from fallback directory mirrors. This is a 12171 follow-up to 24679, which removed weights from the default 12172 fallbacks. Implements ticket 24681. 12173 12174 o Minor features (geoip): 12175 - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2 12176 Country database. 12177 12178 o Minor bugfix (channel connection, backport from 0.3.3.2-alpha): 12179 - Use the actual observed address of an incoming relay connection, 12180 not the canonical address of the relay from its descriptor, when 12181 making decisions about how to handle the incoming connection. 12182 Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera". 12183 12184 o Minor bugfix (directory authority, backport from 0.3.3.2-alpha): 12185 - Directory authorities, when refusing a descriptor from a rejected 12186 relay, now explicitly tell the relay (in its logs) to set a valid 12187 ContactInfo address and contact the bad-relays@ mailing list. 12188 Fixes bug 25170; bugfix on 0.2.9.1. 12189 12190 o Minor bugfixes (address selection, backport from 0.3.2.9): 12191 - When the fascist_firewall_choose_address_ functions don't find a 12192 reachable address, set the returned address to the null address 12193 and port. This is a precautionary measure, because some callers do 12194 not check the return value. Fixes bug 24736; bugfix 12195 on 0.2.8.2-alpha. 12196 12197 o Major bugfixes (bootstrapping, backport from 0.3.2.5-alpha): 12198 - Fetch descriptors aggressively whenever we lack enough to build 12199 circuits, regardless of how many descriptors we are missing. 12200 Previously, we would delay launching the fetch when we had fewer 12201 than 15 missing descriptors, even if some of those descriptors 12202 were blocking circuits from building. Fixes bug 23985; bugfix on 12203 0.1.1.11-alpha. The effects of this bug became worse in 12204 0.3.0.3-alpha, when we began treating missing descriptors from our 12205 primary guards as a reason to delay circuits. 12206 - Don't try fetching microdescriptors from relays that have failed 12207 to deliver them in the past. Fixes bug 23817; bugfix 12208 on 0.3.0.1-alpha. 12209 12210 o Minor bugfixes (compilation, backport from 0.3.2.7-rc): 12211 - Fix a signed/unsigned comparison warning introduced by our fix to 12212 TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16. 12213 12214 o Minor bugfixes (control port, linux seccomp2 sandbox, backport from 0.3.2.5-alpha): 12215 - Avoid a crash when attempting to use the seccomp2 sandbox together 12216 with the OwningControllerProcess feature. Fixes bug 24198; bugfix 12217 on 0.2.5.1-alpha. 12218 12219 o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha): 12220 - Fix a possible crash on malformed consensus. If a consensus had 12221 contained an unparseable protocol line, it could have made clients 12222 and relays crash with a null-pointer exception. To exploit this 12223 issue, however, an attacker would need to be able to subvert the 12224 directory authority system. Fixes bug 25251; bugfix on 12225 0.2.9.4-alpha. Also tracked as TROVE-2018-004. 12226 12227 o Minor bugfixes (directory cache, backport from 0.3.2.5-alpha): 12228 - Recover better from empty or corrupt files in the consensus cache 12229 directory. Fixes bug 24099; bugfix on 0.3.1.1-alpha. 12230 - When a consensus diff calculation is only partially successful, 12231 only record the successful parts as having succeeded. Partial 12232 success can happen if (for example) one compression method fails 12233 but the others succeed. Previously we misrecorded all the 12234 calculations as having succeeded, which would later cause a 12235 nonfatal assertion failure. Fixes bug 24086; bugfix 12236 on 0.3.1.1-alpha. 12237 12238 o Minor bugfixes (entry guards, backport from 0.3.2.3-alpha): 12239 - Tor now updates its guard state when it reads a consensus 12240 regardless of whether it's missing descriptors. That makes tor use 12241 its primary guards to fetch descriptors in some edge cases where 12242 it would previously have used fallback directories. Fixes bug 12243 23862; bugfix on 0.3.0.1-alpha. 12244 12245 o Minor bugfixes (logging, backport from 0.3.3.2-alpha): 12246 - Don't treat inability to store a cached consensus object as a bug: 12247 it can happen normally when we are out of disk space. Fixes bug 12248 24859; bugfix on 0.3.1.1-alpha. 12249 12250 o Minor bugfixes (memory usage, backport from 0.3.2.8-rc): 12251 - When queuing DESTROY cells on a channel, only queue the circuit-id 12252 and reason fields: not the entire 514-byte cell. This fix should 12253 help mitigate any bugs or attacks that fill up these queues, and 12254 free more RAM for other uses. Fixes bug 24666; bugfix 12255 on 0.2.5.1-alpha. 12256 12257 o Minor bugfixes (network layer, backport from 0.3.2.5-alpha): 12258 - When closing a connection via close_connection_immediately(), we 12259 mark it as "not blocked on bandwidth", to prevent later calls from 12260 trying to unblock it, and give it permission to read. This fixes a 12261 backtrace warning that can happen on relays under various 12262 circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc. 12263 12264 o Minor bugfixes (path selection, backport from 0.3.2.4-alpha): 12265 - When selecting relays by bandwidth, avoid a rounding error that 12266 could sometimes cause load to be imbalanced incorrectly. 12267 Previously, we would always round upwards; now, we round towards 12268 the nearest integer. This had the biggest effect when a relay's 12269 weight adjustments should have given it weight 0, but it got 12270 weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha. 12271 - When calculating the fraction of nodes that have descriptors, and 12272 all nodes in the network have zero bandwidths, count the number of 12273 nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha. 12274 - Actually log the total bandwidth in compute_weighted_bandwidths(). 12275 Fixes bug 24170; bugfix on 0.2.4.3-alpha. 12276 12277 o Minor bugfixes (performance, fragile-hardening, backport from 0.3.3.1-alpha): 12278 - Improve the performance of our consensus-diff application code 12279 when Tor is built with the --enable-fragile-hardening option set. 12280 Fixes bug 24826; bugfix on 0.3.1.1-alpha. 12281 12282 o Minor bugfixes (OSX, backport from 0.3.3.1-alpha): 12283 - Don't exit the Tor process if setrlimit() fails to change the file 12284 limit (which can happen sometimes on some versions of OSX). Fixes 12285 bug 21074; bugfix on 0.0.9pre5. 12286 12287 o Minor bugfixes (portability, msvc, backport from 0.3.2.9): 12288 - Fix a bug in the bit-counting parts of our timing-wheel code on 12289 MSVC. (Note that MSVC is still not a supported build platform, due 12290 to cyptographic timing channel risks.) Fixes bug 24633; bugfix 12291 on 0.2.9.1-alpha. 12292 12293 o Minor bugfixes (relay, partial backport): 12294 - Make the internal channel_is_client() function look at what sort 12295 of connection handshake the other side used, rather than whether 12296 the other side ever sent a create_fast cell to us. Backports part 12297 of the fixes from bugs 22805 and 24898. 12298 12299 o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha): 12300 - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on 12301 0.2.9.4-alpha. 12302 - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249; 12303 bugfix on 0.2.9.4-alpha. 12304 12305 o Code simplification and refactoring (backport from 0.3.3.3-alpha): 12306 - Update the "rust dependencies" submodule to be a project-level 12307 repository, rather than a user repository. Closes ticket 25323. 12308 12309 12310 Changes in version 0.2.9.15 - 2018-03-03 12311 Tor 0.2.9.15 backports important security and stability bugfixes from 12312 later Tor releases. 12313 12314 It includes an important security fix for a remote crash attack 12315 against directory authorities, tracked as TROVE-2018-001. 12316 12317 This release also backports our new system for improved resistance to 12318 denial-of-service attacks against relays. 12319 12320 This release also fixes several minor bugs and annoyances from 12321 earlier releases. 12322 12323 All directory authorities should upgrade to one of the versions 12324 released today. Relays running 0.2.9.x may wish to update to one of 12325 the versions released today, for the DoS mitigations. 12326 12327 o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha): 12328 - Fix a protocol-list handling bug that could be used to remotely crash 12329 directory authorities with a null-pointer exception. Fixes bug 25074; 12330 bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and 12331 CVE-2018-0490. 12332 12333 o Major features (denial-of-service mitigation): 12334 - Give relays some defenses against the recent network overload. We 12335 start with three defenses (default parameters in parentheses). 12336 First: if a single client address makes too many concurrent 12337 connections (>100), hang up on further connections. Second: if a 12338 single client address makes circuits too quickly (more than 3 per 12339 second, with an allowed burst of 90) while also having too many 12340 connections open (3), refuse new create cells for the next while 12341 (1-2 hours). Third: if a client asks to establish a rendezvous 12342 point to you directly, ignore the request. These defenses can be 12343 manually controlled by new torrc options, but relays will also 12344 take guidance from consensus parameters, so there's no need to 12345 configure anything manually. Implements ticket 24902. 12346 12347 o Major bugfixes (bootstrapping): 12348 - Fetch descriptors aggressively whenever we lack enough to build 12349 circuits, regardless of how many descriptors we are missing. 12350 Previously, we would delay launching the fetch when we had fewer 12351 than 15 missing descriptors, even if some of those descriptors 12352 were blocking circuits from building. Fixes bug 23985; bugfix on 12353 0.1.1.11-alpha. The effects of this bug became worse in 12354 0.3.0.3-alpha, when we began treating missing descriptors from our 12355 primary guards as a reason to delay circuits. 12356 12357 o Major bugfixes (onion services, retry behavior): 12358 - Fix an "off by 2" error in counting rendezvous failures on the 12359 onion service side. While we thought we would stop the rendezvous 12360 attempt after one failed circuit, we were actually making three 12361 circuit attempts before giving up. Now switch to a default of 2, 12362 and allow the consensus parameter "hs_service_max_rdv_failures" to 12363 override. Fixes bug 24895; bugfix on 0.0.6. 12364 12365 o Minor feature (relay statistics): 12366 - Change relay bandwidth reporting stats interval from 4 hours to 24 12367 hours in order to reduce the efficiency of guard discovery 12368 attacks. Fixes ticket 23856. 12369 12370 o Minor features (compatibility, OpenSSL): 12371 - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released. 12372 Previous versions of Tor would not have worked with OpenSSL 1.1.1, 12373 since they neither disabled TLS 1.3 nor enabled any of the 12374 ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites. 12375 Closes ticket 24978. 12376 12377 o Minor features (denial-of-service avoidance): 12378 - Make our OOM handler aware of the geoip client history cache so it 12379 doesn't fill up the memory. This check is important for IPv6 and 12380 our DoS mitigation subsystem. Closes ticket 25122. 12381 12382 o Minor features (fallback directory mirrors): 12383 - The fallback directory list has been re-generated based on the 12384 current status of the network. Tor uses fallback directories to 12385 bootstrap when it doesn't yet have up-to-date directory 12386 information. Closes ticket 24801. 12387 - Make the default DirAuthorityFallbackRate 0.1, so that clients 12388 prefer to bootstrap from fallback directory mirrors. This is a 12389 follow-up to 24679, which removed weights from the default 12390 fallbacks. Implements ticket 24681. 12391 12392 o Minor features (geoip): 12393 - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2 12394 Country database. 12395 12396 o Minor features (linux seccomp2 sandbox): 12397 - Update the sandbox rules so that they should now work correctly 12398 with Glibc 2.26. Closes ticket 24315. 12399 12400 o Minor bugfix (channel connection): 12401 - Use the actual observed address of an incoming relay connection, 12402 not the canonical address of the relay from its descriptor, when 12403 making decisions about how to handle the incoming connection. 12404 Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera". 12405 12406 o Minor bugfix (directory authority): 12407 - Directory authorities, when refusing a descriptor from a rejected 12408 relay, now explicitly tell the relay (in its logs) to set a valid 12409 ContactInfo address and contact the bad-relays@ mailing list. 12410 Fixes bug 25170; bugfix on 0.2.9.1. 12411 12412 o Minor bugfixes (address selection): 12413 - When the fascist_firewall_choose_address_ functions don't find a 12414 reachable address, set the returned address to the null address 12415 and port. This is a precautionary measure, because some callers do 12416 not check the return value. Fixes bug 24736; bugfix 12417 on 0.2.8.2-alpha. 12418 12419 o Minor bugfixes (compilation): 12420 - Fix a signed/unsigned comparison warning introduced by our fix to 12421 TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16. 12422 12423 o Minor bugfixes (control port, linux seccomp2 sandbox): 12424 - Avoid a crash when attempting to use the seccomp2 sandbox together 12425 with the OwningControllerProcess feature. Fixes bug 24198; bugfix 12426 on 0.2.5.1-alpha. 12427 12428 o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha): 12429 - Fix a possible crash on malformed consensus. If a consensus had 12430 contained an unparseable protocol line, it could have made clients 12431 and relays crash with a null-pointer exception. To exploit this 12432 issue, however, an attacker would need to be able to subvert the 12433 directory authority system. Fixes bug 25251; bugfix on 12434 0.2.9.4-alpha. Also tracked as TROVE-2018-004. 12435 12436 o Minor bugfixes (memory usage): 12437 - When queuing DESTROY cells on a channel, only queue the circuit-id 12438 and reason fields: not the entire 514-byte cell. This fix should 12439 help mitigate any bugs or attacks that fill up these queues, and 12440 free more RAM for other uses. Fixes bug 24666; bugfix 12441 on 0.2.5.1-alpha. 12442 12443 o Minor bugfixes (network layer): 12444 - When closing a connection via close_connection_immediately(), we 12445 mark it as "not blocked on bandwidth", to prevent later calls from 12446 trying to unblock it, and give it permission to read. This fixes a 12447 backtrace warning that can happen on relays under various 12448 circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc. 12449 12450 o Minor bugfixes (OSX): 12451 - Don't exit the Tor process if setrlimit() fails to change the file 12452 limit (which can happen sometimes on some versions of OSX). Fixes 12453 bug 21074; bugfix on 0.0.9pre5. 12454 12455 o Minor bugfixes (path selection): 12456 - When selecting relays by bandwidth, avoid a rounding error that 12457 could sometimes cause load to be imbalanced incorrectly. 12458 Previously, we would always round upwards; now, we round towards 12459 the nearest integer. This had the biggest effect when a relay's 12460 weight adjustments should have given it weight 0, but it got 12461 weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha. 12462 - When calculating the fraction of nodes that have descriptors, and 12463 all nodes in the network have zero bandwidths, count the number of 12464 nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha. 12465 - Actually log the total bandwidth in compute_weighted_bandwidths(). 12466 Fixes bug 24170; bugfix on 0.2.4.3-alpha. 12467 12468 o Minor bugfixes (portability, msvc): 12469 - Fix a bug in the bit-counting parts of our timing-wheel code on 12470 MSVC. (Note that MSVC is still not a supported build platform, due 12471 to cryptographic timing channel risks.) Fixes bug 24633; bugfix 12472 on 0.2.9.1-alpha. 12473 12474 o Minor bugfixes (relay): 12475 - Make the internal channel_is_client() function look at what sort 12476 of connection handshake the other side used, rather than whether 12477 the other side ever sent a create_fast cell to us. Backports part 12478 of the fixes from bugs 22805 and 24898. 12479 12480 o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha): 12481 - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on 12482 0.2.9.4-alpha. 12483 - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249; 12484 bugfix on 0.2.9.4-alpha. 12485 12486 12487 Changes in version 0.3.2.10 - 2018-03-03 12488 Tor 0.3.2.10 is the second stable release in the 0.3.2 series. It 12489 backports a number of bugfixes, including important fixes for security 12490 issues. 12491 12492 It includes an important security fix for a remote crash attack 12493 against directory authorities, tracked as TROVE-2018-001. 12494 12495 Additionally, it backports a fix for a bug whose severity we have 12496 upgraded: Bug 24700, which was fixed in 0.3.3.2-alpha, can be remotely 12497 triggered in order to crash relays with a use-after-free pattern. As 12498 such, we are now tracking that bug as TROVE-2018-002 and 12499 CVE-2018-0491, and backporting it to earlier releases. This bug 12500 affected versions 0.3.2.1-alpha through 0.3.2.9, as well as version 12501 0.3.3.1-alpha. 12502 12503 This release also backports our new system for improved resistance to 12504 denial-of-service attacks against relays. 12505 12506 This release also fixes several minor bugs and annoyances from 12507 earlier releases. 12508 12509 Relays running 0.3.2.x SHOULD upgrade to one of the versions released 12510 today, for the fix to TROVE-2018-002. Directory authorities should 12511 also upgrade. (Relays on earlier versions might want to update too for 12512 the DoS mitigations.) 12513 12514 o Major bugfixes (denial-of-service, directory authority, backport from 0.3.3.3-alpha): 12515 - Fix a protocol-list handling bug that could be used to remotely crash 12516 directory authorities with a null-pointer exception. Fixes bug 25074; 12517 bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2018-001 and 12518 CVE-2018-0490. 12519 12520 o Major bugfixes (scheduler, KIST, denial-of-service, backport from 0.3.3.2-alpha): 12521 - Avoid adding the same channel twice in the KIST scheduler pending 12522 list, which could lead to remote denial-of-service use-after-free 12523 attacks against relays. Fixes bug 24700; bugfix on 0.3.2.1-alpha. 12524 12525 o Major features (denial-of-service mitigation, backport from 0.3.3.2-alpha): 12526 - Give relays some defenses against the recent network overload. We 12527 start with three defenses (default parameters in parentheses). 12528 First: if a single client address makes too many concurrent 12529 connections (>100), hang up on further connections. Second: if a 12530 single client address makes circuits too quickly (more than 3 per 12531 second, with an allowed burst of 90) while also having too many 12532 connections open (3), refuse new create cells for the next while 12533 (1-2 hours). Third: if a client asks to establish a rendezvous 12534 point to you directly, ignore the request. These defenses can be 12535 manually controlled by new torrc options, but relays will also 12536 take guidance from consensus parameters, so there's no need to 12537 configure anything manually. Implements ticket 24902. 12538 12539 o Major bugfixes (onion services, retry behavior, backport from 0.3.3.1-alpha): 12540 - Fix an "off by 2" error in counting rendezvous failures on the 12541 onion service side. While we thought we would stop the rendezvous 12542 attempt after one failed circuit, we were actually making three 12543 circuit attempts before giving up. Now switch to a default of 2, 12544 and allow the consensus parameter "hs_service_max_rdv_failures" to 12545 override. Fixes bug 24895; bugfix on 0.0.6. 12546 - New-style (v3) onion services now obey the "max rendezvous circuit 12547 attempts" logic. Previously they would make as many rendezvous 12548 circuit attempts as they could fit in the MAX_REND_TIMEOUT second 12549 window before giving up. Fixes bug 24894; bugfix on 0.3.2.1-alpha. 12550 12551 o Major bugfixes (protocol versions, backport from 0.3.3.2-alpha): 12552 - Add Link protocol version 5 to the supported protocols list. Fixes 12553 bug 25070; bugfix on 0.3.1.1-alpha. 12554 12555 o Major bugfixes (relay, backport from 0.3.3.1-alpha): 12556 - Fix a set of false positives where relays would consider 12557 connections to other relays as being client-only connections (and 12558 thus e.g. deserving different link padding schemes) if those 12559 relays fell out of the consensus briefly. Now we look only at the 12560 initial handshake and whether the connection authenticated as a 12561 relay. Fixes bug 24898; bugfix on 0.3.1.1-alpha. 12562 12563 o Major bugfixes (scheduler, consensus, backport from 0.3.3.2-alpha): 12564 - The scheduler subsystem was failing to promptly notice changes in 12565 consensus parameters, making it harder to switch schedulers 12566 network-wide. Fixes bug 24975; bugfix on 0.3.2.1-alpha. 12567 12568 o Minor features (denial-of-service avoidance, backport from 0.3.3.2-alpha): 12569 - Make our OOM handler aware of the geoip client history cache so it 12570 doesn't fill up the memory. This check is important for IPv6 and 12571 our DoS mitigation subsystem. Closes ticket 25122. 12572 12573 o Minor features (compatibility, OpenSSL, backport from 0.3.3.3-alpha): 12574 - Tor will now support TLS1.3 once OpenSSL 1.1.1 is released. 12575 Previous versions of Tor would not have worked with OpenSSL 1.1.1, 12576 since they neither disabled TLS 1.3 nor enabled any of the 12577 ciphersuites it requires. Now we enable the TLS 1.3 ciphersuites. 12578 Closes ticket 24978. 12579 12580 o Minor features (geoip): 12581 - Update geoip and geoip6 to the February 7 2018 Maxmind GeoLite2 12582 Country database. 12583 12584 o Minor features (logging, diagnostic, backport from 0.3.3.2-alpha): 12585 - When logging a failure to create an onion service's descriptor, 12586 also log what the problem with the descriptor was. Diagnostic 12587 for ticket 24972. 12588 12589 o Minor bugfix (channel connection, backport from 0.3.3.2-alpha): 12590 - Use the actual observed address of an incoming relay connection, 12591 not the canonical address of the relay from its descriptor, when 12592 making decisions about how to handle the incoming connection. 12593 Fixes bug 24952; bugfix on 0.2.4.11-alpha. Patch by "ffmancera". 12594 12595 o Minor bugfixes (denial-of-service, backport from 0.3.3.3-alpha): 12596 - Fix a possible crash on malformed consensus. If a consensus had 12597 contained an unparseable protocol line, it could have made clients 12598 and relays crash with a null-pointer exception. To exploit this 12599 issue, however, an attacker would need to be able to subvert the 12600 directory authority system. Fixes bug 25251; bugfix on 12601 0.2.9.4-alpha. Also tracked as TROVE-2018-004. 12602 12603 o Minor bugfix (directory authority, backport from 0.3.3.2-alpha): 12604 - Directory authorities, when refusing a descriptor from a rejected 12605 relay, now explicitly tell the relay (in its logs) to set a valid 12606 ContactInfo address and contact the bad-relays@ mailing list. 12607 Fixes bug 25170; bugfix on 0.2.9.1. 12608 12609 o Minor bugfixes (build, rust, backport from 0.3.3.1-alpha): 12610 - When building with Rust on OSX, link against libresolv, to work 12611 around the issue at https://github.com/rust-lang/rust/issues/46797. 12612 Fixes bug 24652; bugfix on 0.3.1.1-alpha. 12613 12614 o Minor bugfixes (onion services, backport from 0.3.3.2-alpha): 12615 - Remove a BUG() statement when a client fetches an onion descriptor 12616 that has a lower revision counter than the one in its cache. This 12617 can happen in normal circumstances due to HSDir desync. Fixes bug 12618 24976; bugfix on 0.3.2.1-alpha. 12619 12620 o Minor bugfixes (logging, backport from 0.3.3.2-alpha): 12621 - Don't treat inability to store a cached consensus object as a bug: 12622 it can happen normally when we are out of disk space. Fixes bug 12623 24859; bugfix on 0.3.1.1-alpha. 12624 12625 o Minor bugfixes (performance, fragile-hardening, backport from 0.3.3.1-alpha): 12626 - Improve the performance of our consensus-diff application code 12627 when Tor is built with the --enable-fragile-hardening option set. 12628 Fixes bug 24826; bugfix on 0.3.1.1-alpha. 12629 12630 o Minor bugfixes (OSX, backport from 0.3.3.1-alpha): 12631 - Don't exit the Tor process if setrlimit() fails to change the file 12632 limit (which can happen sometimes on some versions of OSX). Fixes 12633 bug 21074; bugfix on 0.0.9pre5. 12634 12635 o Minor bugfixes (spec conformance, backport from 0.3.3.3-alpha): 12636 - Forbid "-0" as a protocol version. Fixes part of bug 25249; bugfix on 12637 0.2.9.4-alpha. 12638 - Forbid UINT32_MAX as a protocol version. Fixes part of bug 25249; 12639 bugfix on 0.2.9.4-alpha. 12640 12641 o Minor bugfixes (testing, backport from 0.3.3.1-alpha): 12642 - Fix a memory leak in the scheduler/loop_kist unit test. Fixes bug 12643 25005; bugfix on 0.3.2.7-rc. 12644 12645 o Minor bugfixes (v3 onion services, backport from 0.3.3.2-alpha): 12646 - Look at the "HSRend" protocol version, not the "HSDir" protocol 12647 version, when deciding whether a consensus entry can support the 12648 v3 onion service protocol as a rendezvous point. Fixes bug 25105; 12649 bugfix on 0.3.2.1-alpha. 12650 12651 o Code simplification and refactoring (backport from 0.3.3.3-alpha): 12652 - Update the "rust dependencies" submodule to be a project-level 12653 repository, rather than a user repository. Closes ticket 25323. 12654 12655 o Documentation (backport from 0.3.3.1-alpha) 12656 - Document that operators who run more than one relay or bridge are 12657 expected to set MyFamily and ContactInfo correctly. Closes 12658 ticket 24526. 12659 12660 12661 Changes in version 0.3.2.9 - 2018-01-09 12662 Tor 0.3.2.9 is the first stable release in the 0.3.2 series. 12663 12664 The 0.3.2 series includes our long-anticipated new onion service 12665 design, with numerous security features. (For more information, see 12666 our blog post at https://blog.torproject.org/fall-harvest.) We also 12667 have a new circuit scheduler algorithm for improved performance on 12668 relays everywhere (see https://blog.torproject.org/kist-and-tell), 12669 along with many smaller features and bugfixes. 12670 12671 Per our stable release policy, we plan to support each stable release 12672 series for at least the next nine months, or for three months after 12673 the first stable release of the next series: whichever is longer. If 12674 you need a release with long-term support, we recommend that you stay 12675 with the 0.2.9 series. 12676 12677 Below is a list of the changes since 0.3.1.7. For a list of all 12678 changes since 0.3.2.8-rc, see the ChangeLog file. 12679 12680 o Directory authority changes: 12681 - Add "Bastet" as a ninth directory authority to the default list. 12682 Closes ticket 23910. 12683 - The directory authority "Longclaw" has changed its IP address. 12684 Closes ticket 23592. 12685 - Remove longclaw's IPv6 address, as it will soon change. Authority 12686 IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves 12687 3/8 directory authorities with IPv6 addresses, but there are also 12688 52 fallback directory mirrors with IPv6 addresses. Resolves 19760. 12689 - Add an IPv6 address for the "bastet" directory authority. Closes 12690 ticket 24394. 12691 12692 o Major features (next-generation onion services): 12693 - Tor now supports the next-generation onion services protocol for 12694 clients and services! As part of this release, the core of 12695 proposal 224 has been implemented and is available for 12696 experimentation and testing by our users. This newer version of 12697 onion services ("v3") features many improvements over the legacy 12698 system, including: 12699 12700 a) Better crypto (replaced SHA1/DH/RSA1024 12701 with SHA3/ed25519/curve25519) 12702 12703 b) Improved directory protocol, leaking much less information to 12704 directory servers. 12705 12706 c) Improved directory protocol, with smaller surface for 12707 targeted attacks. 12708 12709 d) Better onion address security against impersonation. 12710 12711 e) More extensible introduction/rendezvous protocol. 12712 12713 f) A cleaner and more modular codebase. 12714 12715 You can identify a next-generation onion address by its length: 12716 they are 56 characters long, as in 12717 "4acth47i6kxnvkewtm6q7ib2s3ufpo5sqbsnzjpbi7utijcltosqemad.onion". 12718 12719 In the future, we will release more options and features for v3 12720 onion services, but we first need a testing period, so that the 12721 current codebase matures and becomes more robust. Planned features 12722 include: offline keys, advanced client authorization, improved 12723 guard algorithms, and statistics. For full details, see 12724 proposal 224. 12725 12726 Legacy ("v2") onion services will still work for the foreseeable 12727 future, and will remain the default until this new codebase gets 12728 tested and hardened. Service operators who want to experiment with 12729 the new system can use the 'HiddenServiceVersion 3' torrc 12730 directive along with the regular onion service configuration 12731 options. For more information, see our blog post at 12732 "https://blog.torproject.org/fall-harvest". Enjoy! 12733 12734 o Major feature (scheduler, channel): 12735 - Tor now uses new schedulers to decide which circuits should 12736 deliver cells first, in order to improve congestion at relays. The 12737 first type is called "KIST" ("Kernel Informed Socket Transport"), 12738 and is only available on Linux-like systems: it uses feedback from 12739 the kernel to prevent the kernel's TCP buffers from growing too 12740 full. The second new scheduler type is called "KISTLite": it 12741 behaves the same as KIST, but runs on systems without kernel 12742 support for inspecting TCP implementation details. The old 12743 scheduler is still available, under the name "Vanilla". To change 12744 the default scheduler preference order, use the new "Schedulers" 12745 option. (The default preference order is "KIST,KISTLite,Vanilla".) 12746 12747 Matt Traudt implemented KIST, based on research by Rob Jansen, 12748 John Geddes, Christ Wacek, Micah Sherr, and Paul Syverson. For 12749 more information, see the design paper at 12750 http://www.robgjansen.com/publications/kist-sec2014.pdf and the 12751 followup implementation paper at https://arxiv.org/abs/1709.01044. 12752 Closes ticket 12541. For more information, see our blog post at 12753 "https://blog.torproject.org/kist-and-tell". 12754 12755 o Major bugfixes (security, general): 12756 - Fix a denial of service bug where an attacker could use a 12757 malformed directory object to cause a Tor instance to pause while 12758 OpenSSL would try to read a passphrase from the terminal. (Tor 12759 instances run without a terminal, which is the case for most Tor 12760 packages, are not impacted.) Fixes bug 24246; bugfix on every 12761 version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821. 12762 Found by OSS-Fuzz as testcase 6360145429790720. 12763 12764 o Major bugfixes (security, directory authority): 12765 - Fix a denial of service issue where an attacker could crash a 12766 directory authority using a malformed router descriptor. Fixes bug 12767 24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010 12768 and CVE-2017-8820. 12769 12770 o Major bugfixes (security, onion service v2): 12771 - Fix a use-after-free error that could crash v2 Tor onion services 12772 when they failed to open circuits while expiring introduction 12773 points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is 12774 also tracked as TROVE-2017-013 and CVE-2017-8823. 12775 - When checking for replays in the INTRODUCE1 cell data for a 12776 (legacy) onion service, correctly detect replays in the RSA- 12777 encrypted part of the cell. We were previously checking for 12778 replays on the entire cell, but those can be circumvented due to 12779 the malleability of Tor's legacy hybrid encryption. This fix helps 12780 prevent a traffic confirmation attack. Fixes bug 24244; bugfix on 12781 0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009 12782 and CVE-2017-8819. 12783 12784 o Major bugfixes (security, relay): 12785 - When running as a relay, make sure that we never build a path 12786 through ourselves, even in the case where we have somehow lost the 12787 version of our descriptor appearing in the consensus. Fixes part 12788 of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked 12789 as TROVE-2017-012 and CVE-2017-8822. 12790 - When running as a relay, make sure that we never choose ourselves 12791 as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This 12792 issue is also tracked as TROVE-2017-012 and CVE-2017-8822. 12793 12794 o Major bugfixes (bootstrapping): 12795 - Fetch descriptors aggressively whenever we lack enough to build 12796 circuits, regardless of how many descriptors we are missing. 12797 Previously, we would delay launching the fetch when we had fewer 12798 than 15 missing descriptors, even if some of those descriptors 12799 were blocking circuits from building. Fixes bug 23985; bugfix on 12800 0.1.1.11-alpha. The effects of this bug became worse in 12801 0.3.0.3-alpha, when we began treating missing descriptors from our 12802 primary guards as a reason to delay circuits. 12803 - Don't try fetching microdescriptors from relays that have failed 12804 to deliver them in the past. Fixes bug 23817; bugfix 12805 on 0.3.0.1-alpha. 12806 12807 o Major bugfixes (circuit prediction): 12808 - Fix circuit prediction logic so that a client doesn't treat a port 12809 as being "handled" by a circuit if that circuit already has 12810 isolation settings on it. This change should make Tor clients more 12811 responsive by improving their chances of having a pre-created 12812 circuit ready for use when a request arrives. Fixes bug 18859; 12813 bugfix on 0.2.3.3-alpha. 12814 12815 o Major bugfixes (exit relays, DNS): 12816 - Fix an issue causing DNS to fail on high-bandwidth exit nodes, 12817 making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on 12818 0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for 12819 identifying and finding a workaround to this bug and to Moritz, 12820 Arthur Edelstein, and Roger for helping to track it down and 12821 analyze it. 12822 12823 o Major bugfixes (relay, crash, assertion failure): 12824 - Fix a timing-based assertion failure that could occur when the 12825 circuit out-of-memory handler freed a connection's output buffer. 12826 Fixes bug 23690; bugfix on 0.2.6.1-alpha. 12827 12828 o Major bugfixes (usability, control port): 12829 - Report trusted clock skew indications as bootstrap errors, so 12830 controllers can more easily alert users when their clocks are 12831 wrong. Fixes bug 23506; bugfix on 0.1.2.6-alpha. 12832 12833 o Minor features (bridge): 12834 - Bridge relays can now set the BridgeDistribution config option to 12835 add a "bridge-distribution-request" line to their bridge 12836 descriptor, which tells BridgeDB how they'd like their bridge 12837 address to be given out. (Note that as of Oct 2017, BridgeDB does 12838 not yet implement this feature.) As a side benefit, this feature 12839 provides a way to distinguish bridge descriptors from non-bridge 12840 descriptors. Implements tickets 18329. 12841 - When handling the USERADDR command on an ExtOrPort, warn when the 12842 transports provides a USERADDR with no port. In a future version, 12843 USERADDR commands of this format may be rejected. Detects problems 12844 related to ticket 23080. 12845 12846 o Minor features (bug detection): 12847 - Log a warning message with a stack trace for any attempt to call 12848 get_options() during option validation. This pattern has caused 12849 subtle bugs in the past. Closes ticket 22281. 12850 12851 o Minor features (build, compilation): 12852 - The "check-changes" feature is now part of the "make check" tests; 12853 we'll use it to try to prevent misformed changes files from 12854 accumulating. Closes ticket 23564. 12855 - Tor builds should now fail if there are any mismatches between the 12856 C type representing a configuration variable and the C type the 12857 data-driven parser uses to store a value there. Previously, we 12858 needed to check these by hand, which sometimes led to mistakes. 12859 Closes ticket 23643. 12860 12861 o Minor features (client): 12862 - You can now use Tor as a tunneled HTTP proxy: use the new 12863 HTTPTunnelPort option to open a port that accepts HTTP CONNECT 12864 requests. Closes ticket 22407. 12865 - Add an extra check to make sure that we always use the newer guard 12866 selection code for picking our guards. Closes ticket 22779. 12867 - When downloading (micro)descriptors, don't split the list into 12868 multiple requests unless we want at least 32 descriptors. 12869 Previously, we split at 4, not 32, which led to significant 12870 overhead in HTTP request size and degradation in compression 12871 performance. Closes ticket 23220. 12872 - Improve log messages when missing descriptors for primary guards. 12873 Resolves ticket 23670. 12874 12875 o Minor features (command line): 12876 - Add a new commandline option, --key-expiration, which prints when 12877 the current signing key is going to expire. Implements ticket 12878 17639; patch by Isis Lovecruft. 12879 12880 o Minor features (control port): 12881 - If an application tries to use the control port as an HTTP proxy, 12882 respond with a meaningful "This is the Tor control port" message, 12883 and log the event. Closes ticket 1667. Patch from Ravi 12884 Chandra Padmala. 12885 - Provide better error message for GETINFO desc/(id|name) when not 12886 fetching router descriptors. Closes ticket 5847. Patch by 12887 Kevin Butler. 12888 - Add GETINFO "{desc,md}/download-enabled", to inform the controller 12889 whether Tor will try to download router descriptors and 12890 microdescriptors respectively. Closes ticket 22684. 12891 - Added new GETINFO targets "ip-to-country/{ipv4,ipv6}-available", 12892 so controllers can tell whether the geoip databases are loaded. 12893 Closes ticket 23237. 12894 - Adds a timestamp field to the CIRC_BW and STREAM_BW bandwidth 12895 events. Closes ticket 19254. Patch by "DonnchaC". 12896 12897 o Minor features (development support): 12898 - Developers can now generate a call-graph for Tor using the 12899 "calltool" python program, which post-processes object dumps. It 12900 should work okay on many Linux and OSX platforms, and might work 12901 elsewhere too. To run it, install calltool from 12902 https://gitweb.torproject.org/user/nickm/calltool.git and run 12903 "make callgraph". Closes ticket 19307. 12904 12905 o Minor features (directory authority): 12906 - Make the "Exit" flag assignment only depend on whether the exit 12907 policy allows connections to ports 80 and 443. Previously relays 12908 would get the Exit flag if they allowed connections to one of 12909 these ports and also port 6667. Resolves ticket 23637. 12910 12911 o Minor features (ed25519): 12912 - Add validation function to checks for torsion components in 12913 ed25519 public keys, used by prop224 client-side code. Closes 12914 ticket 22006. Math help by Ian Goldberg. 12915 12916 o Minor features (exit relay, DNS): 12917 - Improve the clarity and safety of the log message from evdns when 12918 receiving an apparently spoofed DNS reply. Closes ticket 3056. 12919 12920 o Minor features (fallback directory mirrors): 12921 - The fallback directory list has been re-generated based on the 12922 current status of the network. Tor uses fallback directories to 12923 bootstrap when it doesn't yet have up-to-date directory 12924 information. Closes ticket 24801. 12925 - Make the default DirAuthorityFallbackRate 0.1, so that clients 12926 prefer to bootstrap from fallback directory mirrors. This is a 12927 follow-up to 24679, which removed weights from the default 12928 fallbacks. Implements ticket 24681. 12929 12930 o Minor features (geoip): 12931 - Update geoip and geoip6 to the January 5 2018 Maxmind GeoLite2 12932 Country database. 12933 12934 o Minor features (integration, hardening): 12935 - Add a new NoExec option to prevent Tor from running other 12936 programs. When this option is set to 1, Tor will never try to run 12937 another program, regardless of the settings of 12938 PortForwardingHelper, ClientTransportPlugin, or 12939 ServerTransportPlugin. Once NoExec is set, it cannot be disabled 12940 without restarting Tor. Closes ticket 22976. 12941 12942 o Minor features (linux seccomp2 sandbox): 12943 - Update the sandbox rules so that they should now work correctly 12944 with Glibc 2.26. Closes ticket 24315. 12945 12946 o Minor features (logging): 12947 - Provide better warnings when the getrandom() syscall fails. Closes 12948 ticket 24500. 12949 - Downgrade a pair of log messages that could occur when an exit's 12950 resolver gave us an unusual (but not forbidden) response. Closes 12951 ticket 24097. 12952 - Improve the message we log when re-enabling circuit build timeouts 12953 after having received a consensus. Closes ticket 20963. 12954 - Log more circuit information whenever we are about to try to 12955 package a relay cell on a circuit with a nonexistent n_chan. 12956 Attempt to diagnose ticket 8185. 12957 - Improve info-level log identification of particular circuits, to 12958 help with debugging. Closes ticket 23645. 12959 - Improve the warning message for specifying a relay by nickname. 12960 The previous message implied that nickname registration was still 12961 part of the Tor network design, which it isn't. Closes 12962 ticket 20488. 12963 - If the sandbox filter fails to load, suggest to the user that 12964 their kernel might not support seccomp2. Closes ticket 23090. 12965 12966 o Minor features (onion service, circuit, logging): 12967 - Improve logging of many callsite in the circuit subsystem to print 12968 the circuit identifier(s). 12969 - Log when we cleanup an intro point from a service so we know when 12970 and for what reason it happened. Closes ticket 23604. 12971 12972 o Minor features (portability): 12973 - Tor now compiles correctly on arm64 with libseccomp-dev installed. 12974 (It doesn't yet work with the sandbox enabled.) Closes 12975 ticket 24424. 12976 - Check at configure time whether uint8_t is the same type as 12977 unsigned char. Lots of existing code already makes this 12978 assumption, and there could be strict aliasing issues if the 12979 assumption is violated. Closes ticket 22410. 12980 12981 o Minor features (relay): 12982 - When choosing which circuits can be expired as unused, consider 12983 circuits from clients even if those clients used regular CREATE 12984 cells to make them; and do not consider circuits from relays even 12985 if they were made with CREATE_FAST. Part of ticket 22805. 12986 - Reject attempts to use relative file paths when RunAsDaemon is 12987 set. Previously, Tor would accept these, but the directory- 12988 changing step of RunAsDaemon would give strange and/or confusing 12989 results. Closes ticket 22731. 12990 12991 o Minor features (relay statistics): 12992 - Change relay bandwidth reporting stats interval from 4 hours to 24 12993 hours in order to reduce the efficiency of guard discovery 12994 attacks. Fixes ticket 23856. 12995 12996 o Minor features (reverted deprecations): 12997 - The ClientDNSRejectInternalAddresses flag can once again be set in 12998 non-testing Tor networks, so long as they do not use the default 12999 directory authorities. This change also removes the deprecation of 13000 this flag from 0.2.9.2-alpha. Closes ticket 21031. 13001 13002 o Minor features (robustness): 13003 - Change several fatal assertions when flushing buffers into non- 13004 fatal assertions, to prevent any recurrence of 23690. 13005 13006 o Minor features (startup, safety): 13007 - When configured to write a PID file, Tor now exits if it is unable 13008 to do so. Previously, it would warn and continue. Closes 13009 ticket 20119. 13010 13011 o Minor features (static analysis): 13012 - The BUG() macro has been changed slightly so that Coverity no 13013 longer complains about dead code if the bug is impossible. Closes 13014 ticket 23054. 13015 13016 o Minor features (testing): 13017 - Our fuzzing tests now test the encrypted portions of v3 onion 13018 service descriptors. Implements more of 21509. 13019 - Add a unit test to make sure that our own generated platform 13020 string will be accepted by directory authorities. Closes 13021 ticket 22109. 13022 - The default chutney network tests now include tests for the v3 13023 onion service design. Make sure you have the latest version of 13024 chutney if you want to run these. Closes ticket 22437. 13025 - Add a unit test to verify that we can parse a hardcoded v2 onion 13026 service descriptor. Closes ticket 15554. 13027 13028 o Minor bugfixes (address selection): 13029 - When the fascist_firewall_choose_address_ functions don't find a 13030 reachable address, set the returned address to the null address 13031 and port. This is a precautionary measure, because some callers do 13032 not check the return value. Fixes bug 24736; bugfix 13033 on 0.2.8.2-alpha. 13034 13035 o Minor bugfixes (bootstrapping): 13036 - When warning about state file clock skew, report the correct 13037 direction for the detected skew. Fixes bug 23606; bugfix 13038 on 0.2.8.1-alpha. 13039 13040 o Minor bugfixes (bridge clients, bootstrap): 13041 - Retry directory downloads when we get our first bridge descriptor 13042 during bootstrap or while reconnecting to the network. Keep 13043 retrying every time we get a bridge descriptor, until we have a 13044 reachable bridge. Fixes part of bug 24367; bugfix on 0.2.0.3-alpha. 13045 - Stop delaying bridge descriptor fetches when we have cached bridge 13046 descriptors. Instead, only delay bridge descriptor fetches when we 13047 have at least one reachable bridge. Fixes part of bug 24367; 13048 bugfix on 0.2.0.3-alpha. 13049 - Stop delaying directory fetches when we have cached bridge 13050 descriptors. Instead, only delay bridge descriptor fetches when 13051 all our bridges are definitely unreachable. Fixes part of bug 13052 24367; bugfix on 0.2.0.3-alpha. 13053 13054 o Minor bugfixes (bridge): 13055 - Overwrite the bridge address earlier in the process of retrieving 13056 its descriptor, to make sure we reach it on the configured 13057 address. Fixes bug 20532; bugfix on 0.2.0.10-alpha. 13058 13059 o Minor bugfixes (build, compilation): 13060 - Fix a compilation warning when building with zstd support on 13061 32-bit platforms. Fixes bug 23568; bugfix on 0.3.1.1-alpha. Found 13062 and fixed by Andreas Stieger. 13063 - When searching for OpenSSL, don't accept any OpenSSL library that 13064 lacks TLSv1_1_method(): Tor doesn't build with those versions. 13065 Additionally, look in /usr/local/opt/openssl, if it's present. 13066 These changes together repair the default build on OSX systems 13067 with Homebrew installed. Fixes bug 23602; bugfix on 0.2.7.2-alpha. 13068 - Fix a signed/unsigned comparison warning introduced by our fix to 13069 TROVE-2017-009. Fixes bug 24480; bugfix on 0.2.5.16. 13070 - Fix a memory leak warning in one of the libevent-related 13071 configuration tests that could occur when manually specifying 13072 -fsanitize=address. Fixes bug 24279; bugfix on 0.3.0.2-alpha. 13073 Found and patched by Alex Xu. 13074 - Fix unused-variable warnings in donna's Curve25519 SSE2 code. 13075 Fixes bug 22895; bugfix on 0.2.7.2-alpha. 13076 13077 o Minor bugfixes (certificate handling): 13078 - Fix a time handling bug in Tor certificates set to expire after 13079 the year 2106. Fixes bug 23055; bugfix on 0.3.0.1-alpha. Found by 13080 Coverity as CID 1415728. 13081 13082 o Minor bugfixes (client): 13083 - By default, do not enable storage of client-side DNS values. These 13084 values were unused by default previously, but they should not have 13085 been cached at all. Fixes bug 24050; bugfix on 0.2.6.3-alpha. 13086 13087 o Minor bugfixes (client, usability): 13088 - Refrain from needlessly rejecting SOCKS5-with-hostnames and 13089 SOCKS4a requests that contain IP address strings, even when 13090 SafeSocks in enabled, as this prevents user from connecting to 13091 known IP addresses without relying on DNS for resolving. SafeSocks 13092 still rejects SOCKS connections that connect to IP addresses when 13093 those addresses are _not_ encoded as hostnames. Fixes bug 22461; 13094 bugfix on Tor 0.2.6.2-alpha. 13095 13096 o Minor bugfixes (code correctness): 13097 - Call htons() in extend_cell_format() for encoding a 16-bit value. 13098 Previously we used ntohs(), which happens to behave the same on 13099 all the platforms we support, but which isn't really correct. 13100 Fixes bug 23106; bugfix on 0.2.4.8-alpha. 13101 - For defense-in-depth, make the controller's write_escaped_data() 13102 function robust to extremely long inputs. Fixes bug 19281; bugfix 13103 on 0.1.1.1-alpha. Reported by Guido Vranken. 13104 - Fix several places in our codebase where a C compiler would be 13105 likely to eliminate a check, based on assuming that undefined 13106 behavior had not happened elsewhere in the code. These cases are 13107 usually a sign of redundant checking or dubious arithmetic. Found 13108 by Georg Koppen using the "STACK" tool from Wang, Zeldovich, 13109 Kaashoek, and Solar-Lezama. Fixes bug 24423; bugfix on various 13110 Tor versions. 13111 13112 o Minor bugfixes (compression): 13113 - Handle a pathological case when decompressing Zstandard data when 13114 the output buffer size is zero. Fixes bug 23551; bugfix 13115 on 0.3.1.1-alpha. 13116 13117 o Minor bugfixes (consensus expiry): 13118 - Check for adequate directory information correctly. Previously, Tor 13119 would reconsider whether it had sufficient directory information 13120 every 2 minutes. Fixes bug 23091; bugfix on 0.2.0.19-alpha. 13121 13122 o Minor bugfixes (control port, linux seccomp2 sandbox): 13123 - Avoid a crash when attempting to use the seccomp2 sandbox together 13124 with the OwningControllerProcess feature. Fixes bug 24198; bugfix 13125 on 0.2.5.1-alpha. 13126 13127 o Minor bugfixes (control port, onion services): 13128 - Report "FAILED" instead of "UPLOAD_FAILED" "FAILED" for the 13129 HS_DESC event when a service is not able to upload a descriptor. 13130 Fixes bug 24230; bugfix on 0.2.7.1-alpha. 13131 13132 o Minor bugfixes (directory cache): 13133 - Recover better from empty or corrupt files in the consensus cache 13134 directory. Fixes bug 24099; bugfix on 0.3.1.1-alpha. 13135 - When a consensus diff calculation is only partially successful, 13136 only record the successful parts as having succeeded. Partial 13137 success can happen if (for example) one compression method fails 13138 but the others succeed. Previously we misrecorded all the 13139 calculations as having succeeded, which would later cause a 13140 nonfatal assertion failure. Fixes bug 24086; bugfix 13141 on 0.3.1.1-alpha. 13142 13143 o Minor bugfixes (directory client): 13144 - On failure to download directory information, delay retry attempts 13145 by a random amount based on the "decorrelated jitter" algorithm. 13146 Our previous delay algorithm tended to produce extra-long delays 13147 too easily. Fixes bug 23816; bugfix on 0.2.9.1-alpha. 13148 13149 o Minor bugfixes (directory protocol): 13150 - Directory servers now include a "Date:" http header for response 13151 codes other than 200. Clients starting with a skewed clock and a 13152 recent consensus were getting "304 Not modified" responses from 13153 directory authorities, so without the Date header, the client 13154 would never hear about a wrong clock. Fixes bug 23499; bugfix 13155 on 0.0.8rc1. 13156 - Make clients wait for 6 seconds before trying to download a 13157 consensus from an authority. Fixes bug 17750; bugfix 13158 on 0.2.8.1-alpha. 13159 13160 o Minor bugfixes (documentation): 13161 - Document better how to read gcov, and what our gcov postprocessing 13162 scripts do. Fixes bug 23739; bugfix on 0.2.9.1-alpha. 13163 - Fix manpage to not refer to the obsolete (and misspelled) 13164 UseEntryGuardsAsDirectoryGuards parameter in the description of 13165 NumDirectoryGuards. Fixes bug 23611; bugfix on 0.2.4.8-alpha. 13166 13167 o Minor bugfixes (DoS-resistance): 13168 - If future code asks if there are any running bridges, without 13169 checking if bridges are enabled, log a BUG warning rather than 13170 crashing. Fixes bug 23524; bugfix on 0.3.0.1-alpha. 13171 13172 o Minor bugfixes (entry guards): 13173 - Tor now updates its guard state when it reads a consensus 13174 regardless of whether it's missing descriptors. That makes tor use 13175 its primary guards to fetch descriptors in some edge cases where 13176 it would previously have used fallback directories. Fixes bug 13177 23862; bugfix on 0.3.0.1-alpha. 13178 13179 o Minor bugfixes (format strictness): 13180 - Restrict several data formats to decimal. Previously, the 13181 BuildTimeHistogram entries in the state file, the "bw=" entries in 13182 the bandwidth authority file, and the process IDs passed to the 13183 __OwningControllerProcess option could all be specified in hex or 13184 octal as well as in decimal. This was not an intentional feature. 13185 Fixes bug 22802; bugfixes on 0.2.2.1-alpha, 0.2.2.2-alpha, 13186 and 0.2.2.28-beta. 13187 13188 o Minor bugfixes (heartbeat): 13189 - If we fail to write a heartbeat message, schedule a retry for the 13190 minimum heartbeat interval number of seconds in the future. Fixes 13191 bug 19476; bugfix on 0.2.3.1-alpha. 13192 13193 o Minor bugfixes (logging): 13194 - Suppress a log notice when relay descriptors arrive. We already 13195 have a bootstrap progress for this so no need to log notice 13196 everytime tor receives relay descriptors. Microdescriptors behave 13197 the same. Fixes bug 23861; bugfix on 0.2.8.2-alpha. 13198 - Remove duplicate log messages regarding opening non-local 13199 SocksPorts upon parsing config and opening listeners at startup. 13200 Fixes bug 4019; bugfix on 0.2.3.3-alpha. 13201 - Use a more comprehensible log message when telling the user 13202 they've excluded every running exit node. Fixes bug 7890; bugfix 13203 on 0.2.2.25-alpha. 13204 - When logging the number of descriptors we intend to download per 13205 directory request, do not log a number higher than then the number 13206 of descriptors we're fetching in total. Fixes bug 19648; bugfix 13207 on 0.1.1.8-alpha. 13208 - When warning about a directory owned by the wrong user, log the 13209 actual name of the user owning the directory. Previously, we'd log 13210 the name of the process owner twice. Fixes bug 23487; bugfix 13211 on 0.2.9.1-alpha. 13212 - Fix some messages on unexpected errors from the seccomp2 library. 13213 Fixes bug 22750; bugfix on 0.2.5.1-alpha. Patch from "cypherpunks". 13214 - The tor specification says hop counts are 1-based, so fix two log 13215 messages that mistakenly logged 0-based hop counts. Fixes bug 13216 18982; bugfix on 0.2.6.2-alpha and 0.2.4.5-alpha. Patch by teor. 13217 Credit to Xiaofan Li for reporting this issue. 13218 13219 o Minor bugfixes (logging, relay shutdown, annoyance): 13220 - When a circuit is marked for close, do not attempt to package any 13221 cells for channels on that circuit. Previously, we would detect 13222 this condition lower in the call stack, when we noticed that the 13223 circuit had no attached channel, and log an annoying message. 13224 Fixes bug 8185; bugfix on 0.2.5.4-alpha. 13225 13226 o Minor bugfixes (memory safety, defensive programming): 13227 - Clear the target address when node_get_prim_orport() returns 13228 early. Fixes bug 23874; bugfix on 0.2.8.2-alpha. 13229 13230 o Minor bugfixes (memory usage): 13231 - When queuing DESTROY cells on a channel, only queue the circuit-id 13232 and reason fields: not the entire 514-byte cell. This fix should 13233 help mitigate any bugs or attacks that fill up these queues, and 13234 free more RAM for other uses. Fixes bug 24666; bugfix 13235 on 0.2.5.1-alpha. 13236 13237 o Minor bugfixes (network layer): 13238 - When closing a connection via close_connection_immediately(), we 13239 mark it as "not blocked on bandwidth", to prevent later calls from 13240 trying to unblock it, and give it permission to read. This fixes a 13241 backtrace warning that can happen on relays under various 13242 circumstances. Fixes bug 24167; bugfix on 0.1.0.1-rc. 13243 13244 o Minor bugfixes (onion services): 13245 - The introduction circuit was being timed out too quickly while 13246 waiting for the rendezvous circuit to complete. Keep the intro 13247 circuit around longer instead of timing out and reopening new ones 13248 constantly. Fixes bug 23681; bugfix on 0.2.4.8-alpha. 13249 - Rename the consensus parameter "hsdir-interval" to "hsdir_interval" 13250 so it matches dir-spec.txt. Fixes bug 24262; bugfix 13251 on 0.3.1.1-alpha. 13252 - When handling multiple SOCKS request for the same .onion address, 13253 only fetch the service descriptor once. 13254 - Avoid a possible double close of a circuit by the intro point on 13255 error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610; 13256 bugfix on 0.3.0.1-alpha. 13257 - When reloading configured onion services, copy all information 13258 from the old service object. Previously, some data was omitted, 13259 causing delays in descriptor upload, and other bugs. Fixes bug 13260 23790; bugfix on 0.2.1.9-alpha. 13261 13262 o Minor bugfixes (path selection): 13263 - When selecting relays by bandwidth, avoid a rounding error that 13264 could sometimes cause load to be imbalanced incorrectly. 13265 Previously, we would always round upwards; now, we round towards 13266 the nearest integer. This had the biggest effect when a relay's 13267 weight adjustments should have given it weight 0, but it got 13268 weight 1 instead. Fixes bug 23318; bugfix on 0.2.4.3-alpha. 13269 - When calculating the fraction of nodes that have descriptors, and 13270 all nodes in the network have zero bandwidths, count the number of 13271 nodes instead. Fixes bug 23318; bugfix on 0.2.4.10-alpha. 13272 - Actually log the total bandwidth in compute_weighted_bandwidths(). 13273 Fixes bug 24170; bugfix on 0.2.4.3-alpha. 13274 13275 o Minor bugfixes (portability): 13276 - Stop using the PATH_MAX variable, which is not defined on GNU 13277 Hurd. Fixes bug 23098; bugfix on 0.3.1.1-alpha. 13278 - Fix a bug in the bit-counting parts of our timing-wheel code on 13279 MSVC. (Note that MSVC is still not a supported build platform, due 13280 to cryptographic timing channel risks.) Fixes bug 24633; bugfix 13281 on 0.2.9.1-alpha. 13282 13283 o Minor bugfixes (relay): 13284 - When uploading our descriptor for the first time after startup, 13285 report the reason for uploading as "Tor just started" rather than 13286 leaving it blank. Fixes bug 22885; bugfix on 0.2.3.4-alpha. 13287 - Avoid unnecessary calls to directory_fetches_from_authorities() on 13288 relays, to prevent spurious address resolutions and descriptor 13289 rebuilds. This is a mitigation for bug 21789. Fixes bug 23470; 13290 bugfix on in 0.2.8.1-alpha. 13291 - Avoid a crash when transitioning from client mode to bridge mode. 13292 Previously, we would launch the worker threads whenever our 13293 "public server" mode changed, but not when our "server" mode 13294 changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha. 13295 13296 o Minor bugfixes (testing): 13297 - Fix a spurious fuzzing-only use of an uninitialized value. Found 13298 by Brian Carpenter. Fixes bug 24082; bugfix on 0.3.0.3-alpha. 13299 - Test that IPv6-only clients can use microdescriptors when running 13300 "make test-network-all". Requires chutney master 61c28b9 or later. 13301 Closes ticket 24109. 13302 - Prevent scripts/test/coverage from attempting to move gcov output 13303 to the root directory. Fixes bug 23741; bugfix on 0.2.5.1-alpha. 13304 - Capture and detect several "Result does not fit" warnings in unit 13305 tests on platforms with 32-bit time_t. Fixes bug 21800; bugfix 13306 on 0.2.9.3-alpha. 13307 - Fix additional channelpadding unit test failures by using mocked 13308 time instead of actual time for all tests. Fixes bug 23608; bugfix 13309 on 0.3.1.1-alpha. 13310 - Fix a bug in our fuzzing mock replacement for crypto_pk_checksig(), 13311 to correctly handle cases where a caller gives it an RSA key of 13312 under 160 bits. (This is not actually a bug in Tor itself, but 13313 rather in our fuzzing code.) Fixes bug 24247; bugfix on 13314 0.3.0.3-alpha. Found by OSS-Fuzz as issue 4177. 13315 - Fix a broken unit test for the OutboundAddress option: the parsing 13316 function was never returning an error on failure. Fixes bug 23366; 13317 bugfix on 0.3.0.3-alpha. 13318 - Fix a signed-integer overflow in the unit tests for 13319 dir/download_status_random_backoff, which was untriggered until we 13320 fixed bug 17750. Fixes bug 22924; bugfix on 0.2.9.1-alpha. 13321 13322 o Minor bugfixes (usability, control port): 13323 - Stop making an unnecessary routerlist check in NETINFO clock skew 13324 detection; this was preventing clients from reporting NETINFO clock 13325 skew to controllers. Fixes bug 23532; bugfix on 0.2.4.4-alpha. 13326 13327 o Code simplification and refactoring: 13328 - Remove various ways of testing circuits and connections for 13329 "clientness"; instead, favor channel_is_client(). Part of 13330 ticket 22805. 13331 - Extract the code for handling newly-open channels into a separate 13332 function from the general code to handle channel state 13333 transitions. This change simplifies our callgraph, reducing the 13334 size of the largest strongly connected component by roughly a 13335 factor of two. Closes ticket 22608. 13336 - Remove dead code for largely unused statistics on the number of 13337 times we've attempted various public key operations. Fixes bug 13338 19871; bugfix on 0.1.2.4-alpha. Fix by Isis Lovecruft. 13339 - Remove several now-obsolete functions for asking about old 13340 variants directory authority status. Closes ticket 22311; patch 13341 from "huyvq". 13342 - Remove some of the code that once supported "Named" and "Unnamed" 13343 routers. Authorities no longer vote for these flags. Closes 13344 ticket 22215. 13345 - Rename the obsolete malleable hybrid_encrypt functions used in TAP 13346 and old hidden services, to indicate that they aren't suitable for 13347 new protocols or formats. Closes ticket 23026. 13348 - Replace our STRUCT_OFFSET() macro with offsetof(). Closes ticket 13349 22521. Patch from Neel Chauhan. 13350 - Split the enormous circuit_send_next_onion_skin() function into 13351 multiple subfunctions. Closes ticket 22804. 13352 - Split the portions of the buffer.c module that handle particular 13353 protocols into separate modules. Part of ticket 23149. 13354 - Use our test macros more consistently, to produce more useful 13355 error messages when our unit tests fail. Add coccinelle patches to 13356 allow us to re-check for test macro uses. Closes ticket 22497. 13357 13358 o Deprecated features: 13359 - The ReachableDirAddresses and ClientPreferIPv6DirPort options are 13360 now deprecated; they do not apply to relays, and they have had no 13361 effect on clients since 0.2.8.x. Closes ticket 19704. 13362 - Deprecate HTTPProxy/HTTPProxyAuthenticator config options. They 13363 only applies to direct unencrypted HTTP connections to your 13364 directory server, which your Tor probably isn't using. Closes 13365 ticket 20575. 13366 13367 o Documentation: 13368 - Add notes in man page regarding OS support for the various 13369 scheduler types. Attempt to use less jargon in the scheduler 13370 section. Closes ticket 24254. 13371 - Clarify that the Address option is entirely about setting an 13372 advertised IPv4 address. Closes ticket 18891. 13373 - Clarify the manpage's use of the term "address" to clarify what 13374 kind of address is intended. Closes ticket 21405. 13375 - Document that onion service subdomains are allowed, and ignored. 13376 Closes ticket 18736. 13377 - Clarify in the manual that "Sandbox 1" is only supported on Linux 13378 kernels. Closes ticket 22677. 13379 - Document all values of PublishServerDescriptor in the manpage. 13380 Closes ticket 15645. 13381 - Improve the documentation for the directory port part of the 13382 DirAuthority line. Closes ticket 20152. 13383 - Restore documentation for the authorities' "approved-routers" 13384 file. Closes ticket 21148. 13385 13386 o Removed features: 13387 - The AllowDotExit option has been removed as unsafe. It has been 13388 deprecated since 0.2.9.2-alpha. Closes ticket 23426. 13389 - The ClientDNSRejectInternalAddresses flag can no longer be set on 13390 non-testing networks. It has been deprecated since 0.2.9.2-alpha. 13391 Closes ticket 21031. 13392 - The controller API no longer includes an AUTHDIR_NEWDESCS event: 13393 nobody was using it any longer. Closes ticket 22377. 13394 13395 13396 Changes in version 0.3.1.9 - 2017-12-01: 13397 Tor 0.3.1.9 backports important security and stability fixes from the 13398 0.3.2 development series. All Tor users should upgrade to this 13399 release, or to another of the releases coming out today. 13400 13401 o Major bugfixes (security, backport from 0.3.2.6-alpha): 13402 - Fix a denial of service bug where an attacker could use a 13403 malformed directory object to cause a Tor instance to pause while 13404 OpenSSL would try to read a passphrase from the terminal. (Tor 13405 instances run without a terminal, which is the case for most Tor 13406 packages, are not impacted.) Fixes bug 24246; bugfix on every 13407 version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821. 13408 Found by OSS-Fuzz as testcase 6360145429790720. 13409 - Fix a denial of service issue where an attacker could crash a 13410 directory authority using a malformed router descriptor. Fixes bug 13411 24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010 13412 and CVE-2017-8820. 13413 - When checking for replays in the INTRODUCE1 cell data for a 13414 (legacy) onion service, correctly detect replays in the RSA- 13415 encrypted part of the cell. We were previously checking for 13416 replays on the entire cell, but those can be circumvented due to 13417 the malleability of Tor's legacy hybrid encryption. This fix helps 13418 prevent a traffic confirmation attack. Fixes bug 24244; bugfix on 13419 0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009 13420 and CVE-2017-8819. 13421 13422 o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha): 13423 - Fix a use-after-free error that could crash v2 Tor onion services 13424 when they failed to open circuits while expiring introduction 13425 points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is 13426 also tracked as TROVE-2017-013 and CVE-2017-8823. 13427 13428 o Major bugfixes (security, relay, backport from 0.3.2.6-alpha): 13429 - When running as a relay, make sure that we never build a path 13430 through ourselves, even in the case where we have somehow lost the 13431 version of our descriptor appearing in the consensus. Fixes part 13432 of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked 13433 as TROVE-2017-012 and CVE-2017-8822. 13434 - When running as a relay, make sure that we never choose ourselves 13435 as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This 13436 issue is also tracked as TROVE-2017-012 and CVE-2017-8822. 13437 13438 o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha): 13439 - Fix an issue causing DNS to fail on high-bandwidth exit nodes, 13440 making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on 13441 0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for 13442 identifying and finding a workaround to this bug and to Moritz, 13443 Arthur Edelstein, and Roger for helping to track it down and 13444 analyze it. 13445 13446 o Minor features (bridge): 13447 - Bridges now include notice in their descriptors that they are 13448 bridges, and notice of their distribution status, based on their 13449 publication settings. Implements ticket 18329. For more fine- 13450 grained control of how a bridge is distributed, upgrade to 0.3.2.x 13451 or later. 13452 13453 o Minor features (directory authority, backport from 0.3.2.6-alpha): 13454 - Add an IPv6 address for the "bastet" directory authority. Closes 13455 ticket 24394. 13456 13457 o Minor features (geoip): 13458 - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2 13459 Country database. 13460 13461 o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha): 13462 - Avoid unnecessary calls to directory_fetches_from_authorities() on 13463 relays, to prevent spurious address resolutions and descriptor 13464 rebuilds. This is a mitigation for bug 21789. Fixes bug 23470; 13465 bugfix on in 0.2.8.1-alpha. 13466 13467 o Minor bugfixes (compilation, backport from 0.3.2.1-alpha): 13468 - Fix unused variable warnings in donna's Curve25519 SSE2 code. 13469 Fixes bug 22895; bugfix on 0.2.7.2-alpha. 13470 13471 o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha): 13472 - When a circuit is marked for close, do not attempt to package any 13473 cells for channels on that circuit. Previously, we would detect 13474 this condition lower in the call stack, when we noticed that the 13475 circuit had no attached channel, and log an annoying message. 13476 Fixes bug 8185; bugfix on 0.2.5.4-alpha. 13477 13478 o Minor bugfixes (onion service, backport from 0.3.2.5-alpha): 13479 - Rename the consensus parameter "hsdir-interval" to "hsdir_interval" 13480 so it matches dir-spec.txt. Fixes bug 24262; bugfix 13481 on 0.3.1.1-alpha. 13482 13483 o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha): 13484 - Avoid a crash when transitioning from client mode to bridge mode. 13485 Previously, we would launch the worker threads whenever our 13486 "public server" mode changed, but not when our "server" mode 13487 changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha. 13488 13489 13490 Changes in version 0.3.0.13 - 2017-12-01 13491 Tor 0.3.0.13 backports important security and stability bugfixes from 13492 later Tor releases. All Tor users should upgrade to this release, or 13493 to another of the releases coming out today. 13494 13495 Note: the Tor 0.3.0 series will no longer be supported after 26 Jan 13496 2018. If you need a release with long-term support, please stick with 13497 the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later. 13498 13499 o Major bugfixes (security, backport from 0.3.2.6-alpha): 13500 - Fix a denial of service bug where an attacker could use a 13501 malformed directory object to cause a Tor instance to pause while 13502 OpenSSL would try to read a passphrase from the terminal. (Tor 13503 instances run without a terminal, which is the case for most Tor 13504 packages, are not impacted.) Fixes bug 24246; bugfix on every 13505 version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821. 13506 Found by OSS-Fuzz as testcase 6360145429790720. 13507 - Fix a denial of service issue where an attacker could crash a 13508 directory authority using a malformed router descriptor. Fixes bug 13509 24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010 13510 and CVE-2017-8820. 13511 - When checking for replays in the INTRODUCE1 cell data for a 13512 (legacy) onion service, correctly detect replays in the RSA- 13513 encrypted part of the cell. We were previously checking for 13514 replays on the entire cell, but those can be circumvented due to 13515 the malleability of Tor's legacy hybrid encryption. This fix helps 13516 prevent a traffic confirmation attack. Fixes bug 24244; bugfix on 13517 0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009 13518 and CVE-2017-8819. 13519 13520 o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha): 13521 - Fix a use-after-free error that could crash v2 Tor onion services 13522 when they failed to open circuits while expiring introduction 13523 points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is 13524 also tracked as TROVE-2017-013 and CVE-2017-8823. 13525 13526 o Major bugfixes (security, relay, backport from 0.3.2.6-alpha): 13527 - When running as a relay, make sure that we never build a path 13528 through ourselves, even in the case where we have somehow lost the 13529 version of our descriptor appearing in the consensus. Fixes part 13530 of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked 13531 as TROVE-2017-012 and CVE-2017-8822. 13532 - When running as a relay, make sure that we never choose ourselves 13533 as a guard. Fixes part of bug 21534; bugfix on 0.3.0.1-alpha. This 13534 issue is also tracked as TROVE-2017-012 and CVE-2017-8822. 13535 13536 o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha): 13537 - Fix an issue causing DNS to fail on high-bandwidth exit nodes, 13538 making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on 13539 0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for 13540 identifying and finding a workaround to this bug and to Moritz, 13541 Arthur Edelstein, and Roger for helping to track it down and 13542 analyze it. 13543 13544 o Minor features (security, windows, backport from 0.3.1.1-alpha): 13545 - Enable a couple of pieces of Windows hardening: one 13546 (HeapEnableTerminationOnCorruption) that has been on-by-default 13547 since Windows 8, and unavailable before Windows 7; and one 13548 (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't 13549 affect us, but shouldn't do any harm. Closes ticket 21953. 13550 13551 o Minor features (bridge, backport from 0.3.1.9): 13552 - Bridges now include notice in their descriptors that they are 13553 bridges, and notice of their distribution status, based on their 13554 publication settings. Implements ticket 18329. For more fine- 13555 grained control of how a bridge is distributed, upgrade to 0.3.2.x 13556 or later. 13557 13558 o Minor features (directory authority, backport from 0.3.2.6-alpha): 13559 - Add an IPv6 address for the "bastet" directory authority. Closes 13560 ticket 24394. 13561 13562 o Minor features (geoip): 13563 - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2 13564 Country database. 13565 13566 o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha): 13567 - Avoid unnecessary calls to directory_fetches_from_authorities() on 13568 relays, to prevent spurious address resolutions and descriptor 13569 rebuilds. This is a mitigation for bug 21789. Fixes bug 23470; 13570 bugfix on in 0.2.8.1-alpha. 13571 13572 o Minor bugfixes (compilation, backport from 0.3.2.1-alpha): 13573 - Fix unused variable warnings in donna's Curve25519 SSE2 code. 13574 Fixes bug 22895; bugfix on 0.2.7.2-alpha. 13575 13576 o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha): 13577 - When a circuit is marked for close, do not attempt to package any 13578 cells for channels on that circuit. Previously, we would detect 13579 this condition lower in the call stack, when we noticed that the 13580 circuit had no attached channel, and log an annoying message. 13581 Fixes bug 8185; bugfix on 0.2.5.4-alpha. 13582 13583 o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha): 13584 - Avoid a crash when transitioning from client mode to bridge mode. 13585 Previously, we would launch the worker threads whenever our 13586 "public server" mode changed, but not when our "server" mode 13587 changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha. 13588 13589 o Minor bugfixes (testing, backport from 0.3.1.6-rc): 13590 - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291; 13591 bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij. 13592 13593 13594 Changes in version 0.2.9.14 - 2017-12-01 13595 Tor 0.3.0.13 backports important security and stability bugfixes from 13596 later Tor releases. All Tor users should upgrade to this release, or 13597 to another of the releases coming out today. 13598 13599 o Major bugfixes (exit relays, DNS, backport from 0.3.2.4-alpha): 13600 - Fix an issue causing DNS to fail on high-bandwidth exit nodes, 13601 making them nearly unusable. Fixes bugs 21394 and 18580; bugfix on 13602 0.1.2.2-alpha, which introduced eventdns. Thanks to Dhalgren for 13603 identifying and finding a workaround to this bug and to Moritz, 13604 Arthur Edelstein, and Roger for helping to track it down and 13605 analyze it. 13606 13607 o Major bugfixes (security, backport from 0.3.2.6-alpha): 13608 - Fix a denial of service bug where an attacker could use a 13609 malformed directory object to cause a Tor instance to pause while 13610 OpenSSL would try to read a passphrase from the terminal. (Tor 13611 instances run without a terminal, which is the case for most Tor 13612 packages, are not impacted.) Fixes bug 24246; bugfix on every 13613 version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821. 13614 Found by OSS-Fuzz as testcase 6360145429790720. 13615 - Fix a denial of service issue where an attacker could crash a 13616 directory authority using a malformed router descriptor. Fixes bug 13617 24245; bugfix on 0.2.9.4-alpha. Also tracked as TROVE-2017-010 13618 and CVE-2017-8820. 13619 - When checking for replays in the INTRODUCE1 cell data for a 13620 (legacy) onion service, correctly detect replays in the RSA- 13621 encrypted part of the cell. We were previously checking for 13622 replays on the entire cell, but those can be circumvented due to 13623 the malleability of Tor's legacy hybrid encryption. This fix helps 13624 prevent a traffic confirmation attack. Fixes bug 24244; bugfix on 13625 0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009 13626 and CVE-2017-8819. 13627 13628 o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha): 13629 - Fix a use-after-free error that could crash v2 Tor onion services 13630 when they failed to open circuits while expiring introduction 13631 points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is 13632 also tracked as TROVE-2017-013 and CVE-2017-8823. 13633 13634 o Major bugfixes (security, relay, backport from 0.3.2.6-alpha): 13635 - When running as a relay, make sure that we never build a path 13636 through ourselves, even in the case where we have somehow lost the 13637 version of our descriptor appearing in the consensus. Fixes part 13638 of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked 13639 as TROVE-2017-012 and CVE-2017-8822. 13640 13641 o Minor features (bridge, backport from 0.3.1.9): 13642 - Bridges now include notice in their descriptors that they are 13643 bridges, and notice of their distribution status, based on their 13644 publication settings. Implements ticket 18329. For more fine- 13645 grained control of how a bridge is distributed, upgrade to 0.3.2.x 13646 or later. 13647 13648 o Minor features (directory authority, backport from 0.3.2.6-alpha): 13649 - Add an IPv6 address for the "bastet" directory authority. Closes 13650 ticket 24394. 13651 13652 o Minor features (geoip): 13653 - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2 13654 Country database. 13655 13656 o Minor features (security, windows, backport from 0.3.1.1-alpha): 13657 - Enable a couple of pieces of Windows hardening: one 13658 (HeapEnableTerminationOnCorruption) that has been on-by-default 13659 since Windows 8, and unavailable before Windows 7; and one 13660 (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't 13661 affect us, but shouldn't do any harm. Closes ticket 21953. 13662 13663 o Minor bugfix (relay address resolution, backport from 0.3.2.1-alpha): 13664 - Avoid unnecessary calls to directory_fetches_from_authorities() on 13665 relays, to prevent spurious address resolutions and descriptor 13666 rebuilds. This is a mitigation for bug 21789. Fixes bug 23470; 13667 bugfix on in 0.2.8.1-alpha. 13668 13669 o Minor bugfixes (compilation, backport from 0.3.2.1-alpha): 13670 - Fix unused variable warnings in donna's Curve25519 SSE2 code. 13671 Fixes bug 22895; bugfix on 0.2.7.2-alpha. 13672 13673 o Minor bugfixes (logging, relay shutdown, annoyance, backport from 0.3.2.2-alpha): 13674 - When a circuit is marked for close, do not attempt to package any 13675 cells for channels on that circuit. Previously, we would detect 13676 this condition lower in the call stack, when we noticed that the 13677 circuit had no attached channel, and log an annoying message. 13678 Fixes bug 8185; bugfix on 0.2.5.4-alpha. 13679 13680 o Minor bugfixes (relay, crash, backport from 0.3.2.4-alpha): 13681 - Avoid a crash when transitioning from client mode to bridge mode. 13682 Previously, we would launch the worker threads whenever our 13683 "public server" mode changed, but not when our "server" mode 13684 changed. Fixes bug 23693; bugfix on 0.2.6.3-alpha. 13685 13686 o Minor bugfixes (testing, backport from 0.3.1.6-rc): 13687 - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291; 13688 bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij. 13689 13690 13691 Changes in version 0.2.8.17 - 2017-12-01 13692 Tor 0.2.8.17 backports important security and stability bugfixes from 13693 later Tor releases. All Tor users should upgrade to this release, or 13694 to another of the releases coming out today. 13695 13696 Note: the Tor 0.2.8 series will no longer be supported after 1 Jan 13697 2018. If you need a release with long-term support, please upgrade with 13698 the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later. 13699 13700 o Major bugfixes (security, backport from 0.3.2.6-alpha): 13701 - Fix a denial of service bug where an attacker could use a 13702 malformed directory object to cause a Tor instance to pause while 13703 OpenSSL would try to read a passphrase from the terminal. (Tor 13704 instances run without a terminal, which is the case for most Tor 13705 packages, are not impacted.) Fixes bug 24246; bugfix on every 13706 version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821. 13707 Found by OSS-Fuzz as testcase 6360145429790720. 13708 - When checking for replays in the INTRODUCE1 cell data for a 13709 (legacy) onion service, correctly detect replays in the RSA- 13710 encrypted part of the cell. We were previously checking for 13711 replays on the entire cell, but those can be circumvented due to 13712 the malleability of Tor's legacy hybrid encryption. This fix helps 13713 prevent a traffic confirmation attack. Fixes bug 24244; bugfix on 13714 0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009 13715 and CVE-2017-8819. 13716 13717 o Major bugfixes (security, onion service v2, backport from 0.3.2.6-alpha): 13718 - Fix a use-after-free error that could crash v2 Tor onion services 13719 when they failed to open circuits while expiring introduction 13720 points. Fixes bug 24313; bugfix on 0.2.7.2-alpha. This issue is 13721 also tracked as TROVE-2017-013 and CVE-2017-8823. 13722 13723 o Major bugfixes (security, relay, backport from 0.3.2.6-alpha): 13724 - When running as a relay, make sure that we never build a path through 13725 ourselves, even in the case where we have somehow lost the version of 13726 our descriptor appearing in the consensus. Fixes part of bug 21534; 13727 bugfix on 0.2.0.1-alpha. This issue is also tracked as TROVE-2017-012 13728 and CVE-2017-8822. 13729 13730 o Minor features (bridge, backport from 0.3.1.9): 13731 - Bridges now include notice in their descriptors that they are 13732 bridges, and notice of their distribution status, based on their 13733 publication settings. Implements ticket 18329. For more fine- 13734 grained control of how a bridge is distributed, upgrade to 0.3.2.x 13735 or later. 13736 13737 o Minor features (directory authority, backport from 0.3.2.6-alpha): 13738 - Add an IPv6 address for the "bastet" directory authority. Closes 13739 ticket 24394. 13740 13741 o Minor features (geoip): 13742 - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2 13743 Country database. 13744 13745 o Minor bugfixes (testing, backport from 0.3.1.6-rc): 13746 - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291; 13747 bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij. 13748 13749 13750 Changes in version 0.2.5.16 - 2017-12-01 13751 Tor 0.2.5.13 backports important security and stability bugfixes from 13752 later Tor releases. All Tor users should upgrade to this release, or 13753 to another of the releases coming out today. 13754 13755 Note: the Tor 0.2.5 series will no longer be supported after 1 May 13756 2018. If you need a release with long-term support, please upgrade to 13757 the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later. 13758 13759 o Major bugfixes (security, backport from 0.3.2.6-alpha): 13760 - Fix a denial of service bug where an attacker could use a 13761 malformed directory object to cause a Tor instance to pause while 13762 OpenSSL would try to read a passphrase from the terminal. (Tor 13763 instances run without a terminal, which is the case for most Tor 13764 packages, are not impacted.) Fixes bug 24246; bugfix on every 13765 version of Tor. Also tracked as TROVE-2017-011 and CVE-2017-8821. 13766 Found by OSS-Fuzz as testcase 6360145429790720. 13767 - When checking for replays in the INTRODUCE1 cell data for a 13768 (legacy) onion service, correctly detect replays in the RSA- 13769 encrypted part of the cell. We were previously checking for 13770 replays on the entire cell, but those can be circumvented due to 13771 the malleability of Tor's legacy hybrid encryption. This fix helps 13772 prevent a traffic confirmation attack. Fixes bug 24244; bugfix on 13773 0.2.4.1-alpha. This issue is also tracked as TROVE-2017-009 13774 and CVE-2017-8819. 13775 13776 o Major bugfixes (security, relay, backport from 0.3.2.6-alpha): 13777 - When running as a relay, make sure that we never build a path 13778 through ourselves, even in the case where we have somehow lost the 13779 version of our descriptor appearing in the consensus. Fixes part 13780 of bug 21534; bugfix on 0.2.0.1-alpha. This issue is also tracked 13781 as TROVE-2017-012 and CVE-2017-8822. 13782 13783 o Minor features (bridge, backport from 0.3.1.9): 13784 - Bridges now include notice in their descriptors that they are 13785 bridges, and notice of their distribution status, based on their 13786 publication settings. Implements ticket 18329. For more fine- 13787 grained control of how a bridge is distributed, upgrade to 0.3.2.x 13788 or later. 13789 13790 o Minor features (geoip): 13791 - Update geoip and geoip6 to the November 6 2017 Maxmind GeoLite2 13792 Country database. 13793 13794 13795 Changes in version 0.2.5.15 - 2017-10-25 13796 Tor 0.2.5.15 backports a collection of bugfixes from later Tor release 13797 series. It also adds a new directory authority, Bastet. 13798 13799 Note: the Tor 0.2.5 series will no longer be supported after 1 May 13800 2018. If you need a release with long-term support, please upgrade to 13801 the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later. 13802 13803 o Directory authority changes: 13804 - Add "Bastet" as a ninth directory authority to the default list. 13805 Closes ticket 23910. 13806 - The directory authority "Longclaw" has changed its IP address. 13807 Closes ticket 23592. 13808 13809 o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha): 13810 - Avoid an assertion failure bug affecting our implementation of 13811 inet_pton(AF_INET6) on certain OpenBSD systems whose strtol() 13812 handling of "0xx" differs from what we had expected. Fixes bug 13813 22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007. 13814 13815 o Minor features (geoip): 13816 - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2 13817 Country database. 13818 13819 o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha): 13820 - Fix a memset() off the end of an array when packing cells. This 13821 bug should be harmless in practice, since the corrupted bytes are 13822 still in the same structure, and are always padding bytes, 13823 ignored, or immediately overwritten, depending on compiler 13824 behavior. Nevertheless, because the memset()'s purpose is to make 13825 sure that any other cell-handling bugs can't expose bytes to the 13826 network, we need to fix it. Fixes bug 22737; bugfix on 13827 0.2.4.11-alpha. Fixes CID 1401591. 13828 13829 o Build features (backport from 0.3.1.5-alpha): 13830 - Tor's repository now includes a Travis Continuous Integration (CI) 13831 configuration file (.travis.yml). This is meant to help new 13832 developers and contributors who fork Tor to a Github repository be 13833 better able to test their changes, and understand what we expect 13834 to pass. To use this new build feature, you must fork Tor to your 13835 Github account, then go into the "Integrations" menu in the 13836 repository settings for your fork and enable Travis, then push 13837 your changes. Closes ticket 22636. 13838 13839 13840 Changes in version 0.2.8.16 - 2017-10-25 13841 Tor 0.2.8.16 backports a collection of bugfixes from later Tor release 13842 series, including a bugfix for a crash issue that had affected relays 13843 under memory pressure. It also adds a new directory authority, Bastet. 13844 13845 Note: the Tor 0.2.8 series will no longer be supported after 1 Jan 13846 2018. If you need a release with long-term support, please stick with 13847 the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later. 13848 13849 o Directory authority changes: 13850 - Add "Bastet" as a ninth directory authority to the default list. 13851 Closes ticket 23910. 13852 - The directory authority "Longclaw" has changed its IP address. 13853 Closes ticket 23592. 13854 13855 o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha): 13856 - Fix a timing-based assertion failure that could occur when the 13857 circuit out-of-memory handler freed a connection's output buffer. 13858 Fixes bug 23690; bugfix on 0.2.6.1-alpha. 13859 13860 o Minor features (directory authorities, backport from 0.3.2.2-alpha): 13861 - Remove longclaw's IPv6 address, as it will soon change. Authority 13862 IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves 13863 3/8 directory authorities with IPv6 addresses, but there are also 13864 52 fallback directory mirrors with IPv6 addresses. Resolves 19760. 13865 13866 o Minor features (geoip): 13867 - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2 13868 Country database. 13869 13870 13871 Changes in version 0.2.9.13 - 2017-10-25 13872 Tor 0.2.9.13 backports a collection of bugfixes from later Tor release 13873 series, including a bugfix for a crash issue that had affected relays 13874 under memory pressure. It also adds a new directory authority, Bastet. 13875 13876 o Directory authority changes: 13877 - Add "Bastet" as a ninth directory authority to the default list. 13878 Closes ticket 23910. 13879 - The directory authority "Longclaw" has changed its IP address. 13880 Closes ticket 23592. 13881 13882 o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha): 13883 - Fix a timing-based assertion failure that could occur when the 13884 circuit out-of-memory handler freed a connection's output buffer. 13885 Fixes bug 23690; bugfix on 0.2.6.1-alpha. 13886 13887 o Minor features (directory authorities, backport from 0.3.2.2-alpha): 13888 - Remove longclaw's IPv6 address, as it will soon change. Authority 13889 IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves 13890 3/8 directory authorities with IPv6 addresses, but there are also 13891 52 fallback directory mirrors with IPv6 addresses. Resolves 19760. 13892 13893 o Minor features (geoip): 13894 - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2 13895 Country database. 13896 13897 o Minor bugfixes (directory authority, backport from 0.3.1.5-alpha): 13898 - When a directory authority rejects a descriptor or extrainfo with 13899 a given digest, mark that digest as undownloadable, so that we do 13900 not attempt to download it again over and over. We previously 13901 tried to avoid downloading such descriptors by other means, but we 13902 didn't notice if we accidentally downloaded one anyway. This 13903 behavior became problematic in 0.2.7.2-alpha, when authorities 13904 began pinning Ed25519 keys. Fixes bug 22349; bugfix 13905 on 0.2.1.19-alpha. 13906 13907 o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha): 13908 - Clear the address when node_get_prim_orport() returns early. 13909 Fixes bug 23874; bugfix on 0.2.8.2-alpha. 13910 13911 o Minor bugfixes (Windows service, backport from 0.3.1.6-rc): 13912 - When running as a Windows service, set the ID of the main thread 13913 correctly. Failure to do so made us fail to send log messages to 13914 the controller in 0.2.1.16-rc, slowed down controller event 13915 delivery in 0.2.7.3-rc and later, and crash with an assertion 13916 failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha. 13917 Patch and diagnosis from "Vort". 13918 13919 13920 Changes in version 0.3.0.12 - 2017-10-25 13921 Tor 0.3.0.12 backports a collection of bugfixes from later Tor release 13922 series, including a bugfix for a crash issue that had affected relays 13923 under memory pressure. It also adds a new directory authority, Bastet. 13924 13925 Note: the Tor 0.3.0 series will no longer be supported after 26 Jan 13926 2018. If you need a release with long-term support, please stick with 13927 the 0.2.9 series. Otherwise, please upgrade to 0.3.1 or later. 13928 13929 o Directory authority changes: 13930 - Add "Bastet" as a ninth directory authority to the default list. 13931 Closes ticket 23910. 13932 - The directory authority "Longclaw" has changed its IP address. 13933 Closes ticket 23592. 13934 13935 o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha): 13936 - Fix a timing-based assertion failure that could occur when the 13937 circuit out-of-memory handler freed a connection's output buffer. 13938 Fixes bug 23690; bugfix on 0.2.6.1-alpha. 13939 13940 o Minor features (directory authorities, backport from 0.3.2.2-alpha): 13941 - Remove longclaw's IPv6 address, as it will soon change. Authority 13942 IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves 13943 3/8 directory authorities with IPv6 addresses, but there are also 13944 52 fallback directory mirrors with IPv6 addresses. Resolves 19760. 13945 13946 o Minor features (geoip): 13947 - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2 13948 Country database. 13949 13950 o Minor bugfixes (directory authority, backport from 0.3.1.5-alpha): 13951 - When a directory authority rejects a descriptor or extrainfo with 13952 a given digest, mark that digest as undownloadable, so that we do 13953 not attempt to download it again over and over. We previously 13954 tried to avoid downloading such descriptors by other means, but we 13955 didn't notice if we accidentally downloaded one anyway. This 13956 behavior became problematic in 0.2.7.2-alpha, when authorities 13957 began pinning Ed25519 keys. Fixes bug 22349; bugfix 13958 on 0.2.1.19-alpha. 13959 13960 o Minor bugfixes (hidden service, relay, backport from 0.3.2.2-alpha): 13961 - Avoid a possible double close of a circuit by the intro point on 13962 error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610; 13963 bugfix on 0.3.0.1-alpha. 13964 13965 o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha): 13966 - Clear the address when node_get_prim_orport() returns early. 13967 Fixes bug 23874; bugfix on 0.2.8.2-alpha. 13968 13969 o Minor bugfixes (Windows service, backport from 0.3.1.6-rc): 13970 - When running as a Windows service, set the ID of the main thread 13971 correctly. Failure to do so made us fail to send log messages to 13972 the controller in 0.2.1.16-rc, slowed down controller event 13973 delivery in 0.2.7.3-rc and later, and crash with an assertion 13974 failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha. 13975 Patch and diagnosis from "Vort". 13976 13977 13978 Changes in version 0.3.1.8 - 2017-10-25 13979 Tor 0.3.1.8 is the second stable release in the 0.3.1 series. 13980 It includes several bugfixes, including a bugfix for a crash issue 13981 that had affected relays under memory pressure. It also adds 13982 a new directory authority, Bastet. 13983 13984 o Directory authority changes: 13985 - Add "Bastet" as a ninth directory authority to the default list. 13986 Closes ticket 23910. 13987 - The directory authority "Longclaw" has changed its IP address. 13988 Closes ticket 23592. 13989 13990 o Major bugfixes (relay, crash, assertion failure, backport from 0.3.2.2-alpha): 13991 - Fix a timing-based assertion failure that could occur when the 13992 circuit out-of-memory handler freed a connection's output buffer. 13993 Fixes bug 23690; bugfix on 0.2.6.1-alpha. 13994 13995 o Minor features (directory authorities, backport from 0.3.2.2-alpha): 13996 - Remove longclaw's IPv6 address, as it will soon change. Authority 13997 IPv6 addresses were originally added in 0.2.8.1-alpha. This leaves 13998 3/8 directory authorities with IPv6 addresses, but there are also 13999 52 fallback directory mirrors with IPv6 addresses. Resolves 19760. 14000 14001 o Minor features (geoip): 14002 - Update geoip and geoip6 to the October 4 2017 Maxmind GeoLite2 14003 Country database. 14004 14005 o Minor bugfixes (compilation, backport from 0.3.2.2-alpha): 14006 - Fix a compilation warning when building with zstd support on 14007 32-bit platforms. Fixes bug 23568; bugfix on 0.3.1.1-alpha. Found 14008 and fixed by Andreas Stieger. 14009 14010 o Minor bugfixes (compression, backport from 0.3.2.2-alpha): 14011 - Handle a pathological case when decompressing Zstandard data when 14012 the output buffer size is zero. Fixes bug 23551; bugfix 14013 on 0.3.1.1-alpha. 14014 14015 o Minor bugfixes (directory authority, backport from 0.3.2.1-alpha): 14016 - Remove the length limit on HTTP status lines that authorities can 14017 send in their replies. Fixes bug 23499; bugfix on 0.3.1.6-rc. 14018 14019 o Minor bugfixes (hidden service, relay, backport from 0.3.2.2-alpha): 14020 - Avoid a possible double close of a circuit by the intro point on 14021 error of sending the INTRO_ESTABLISHED cell. Fixes bug 23610; 14022 bugfix on 0.3.0.1-alpha. 14023 14024 o Minor bugfixes (memory safety, backport from 0.3.2.3-alpha): 14025 - Clear the address when node_get_prim_orport() returns early. 14026 Fixes bug 23874; bugfix on 0.2.8.2-alpha. 14027 14028 o Minor bugfixes (unit tests, backport from 0.3.2.2-alpha): 14029 - Fix additional channelpadding unit test failures by using mocked 14030 time instead of actual time for all tests. Fixes bug 23608; bugfix 14031 on 0.3.1.1-alpha. 14032 14033 14034 Changes in version 0.2.8.15 - 2017-09-18 14035 Tor 0.2.8.15 backports a collection of bugfixes from later 14036 Tor series. 14037 14038 Most significantly, it includes a fix for TROVE-2017-008, a 14039 security bug that affects hidden services running with the 14040 SafeLogging option disabled. For more information, see 14041 https://trac.torproject.org/projects/tor/ticket/23490 14042 14043 Note that Tor 0.2.8.x will no longer be supported after 1 Jan 14044 2018. We suggest that you upgrade to the latest stable release if 14045 possible. If you can't, we recommend that you upgrade at least to 14046 0.2.9, which will be supported until 2020. 14047 14048 o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha): 14049 - Avoid an assertion failure bug affecting our implementation of 14050 inet_pton(AF_INET6) on certain OpenBSD systems whose strtol() 14051 handling of "0xx" differs from what we had expected. Fixes bug 14052 22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007. 14053 14054 o Minor features: 14055 - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2 14056 Country database. 14057 14058 o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha): 14059 - Backport a fix for an "unused variable" warning that appeared 14060 in some versions of mingw. Fixes bug 22838; bugfix on 14061 0.2.8.1-alpha. 14062 14063 o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha): 14064 - Fix a memset() off the end of an array when packing cells. This 14065 bug should be harmless in practice, since the corrupted bytes are 14066 still in the same structure, and are always padding bytes, 14067 ignored, or immediately overwritten, depending on compiler 14068 behavior. Nevertheless, because the memset()'s purpose is to make 14069 sure that any other cell-handling bugs can't expose bytes to the 14070 network, we need to fix it. Fixes bug 22737; bugfix on 14071 0.2.4.11-alpha. Fixes CID 1401591. 14072 14073 o Build features (backport from 0.3.1.5-alpha): 14074 - Tor's repository now includes a Travis Continuous Integration (CI) 14075 configuration file (.travis.yml). This is meant to help new 14076 developers and contributors who fork Tor to a Github repository be 14077 better able to test their changes, and understand what we expect 14078 to pass. To use this new build feature, you must fork Tor to your 14079 Github account, then go into the "Integrations" menu in the 14080 repository settings for your fork and enable Travis, then push 14081 your changes. Closes ticket 22636. 14082 14083 14084 Changes in version 0.2.9.12 - 2017-09-18 14085 Tor 0.2.9.12 backports a collection of bugfixes from later 14086 Tor series. 14087 14088 Most significantly, it includes a fix for TROVE-2017-008, a 14089 security bug that affects hidden services running with the 14090 SafeLogging option disabled. For more information, see 14091 https://trac.torproject.org/projects/tor/ticket/23490 14092 14093 o Major features (security, backport from 0.3.0.2-alpha): 14094 - Change the algorithm used to decide DNS TTLs on client and server 14095 side, to better resist DNS-based correlation attacks like the 14096 DefecTor attack of Greschbach, Pulls, Roberts, Winter, and 14097 Feamster. Now relays only return one of two possible DNS TTL 14098 values, and clients are willing to believe DNS TTL values up to 3 14099 hours long. Closes ticket 19769. 14100 14101 o Major bugfixes (crash, directory connections, backport from 0.3.0.5-rc): 14102 - Fix a rare crash when sending a begin cell on a circuit whose 14103 linked directory connection had already been closed. Fixes bug 14104 21576; bugfix on 0.2.9.3-alpha. Reported by Alec Muffett. 14105 14106 o Major bugfixes (DNS, backport from 0.3.0.2-alpha): 14107 - Fix a bug that prevented exit nodes from caching DNS records for 14108 more than 60 seconds. Fixes bug 19025; bugfix on 0.2.4.7-alpha. 14109 14110 o Major bugfixes (linux TPROXY support, backport from 0.3.1.1-alpha): 14111 - Fix a typo that had prevented TPROXY-based transparent proxying 14112 from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha. 14113 Patch from "d4fq0fQAgoJ". 14114 14115 o Major bugfixes (openbsd, denial-of-service, backport from 0.3.1.5-alpha): 14116 - Avoid an assertion failure bug affecting our implementation of 14117 inet_pton(AF_INET6) on certain OpenBSD systems whose strtol() 14118 handling of "0xx" differs from what we had expected. Fixes bug 14119 22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007. 14120 14121 o Minor features (code style, backport from 0.3.1.3-alpha): 14122 - Add "Falls through" comments to our codebase, in order to silence 14123 GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas 14124 Stieger. Closes ticket 22446. 14125 14126 o Minor features (geoip): 14127 - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2 14128 Country database. 14129 14130 o Minor bugfixes (bandwidth accounting, backport from 0.3.1.1-alpha): 14131 - Roll over monthly accounting at the configured hour and minute, 14132 rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1. 14133 Found by Andrey Karpov with PVS-Studio. 14134 14135 o Minor bugfixes (compilation, backport from 0.3.1.5-alpha): 14136 - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug 22915; 14137 bugfix on 0.2.8.1-alpha. 14138 - Fix warnings when building with libscrypt and openssl scrypt support 14139 on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha. 14140 - When building with certain versions the mingw C header files, avoid 14141 float-conversion warnings when calling the C functions isfinite(), 14142 isnan(), and signbit(). Fixes bug 22801; bugfix on 0.2.8.1-alpha. 14143 14144 o Minor bugfixes (compilation, backport from 0.3.1.7): 14145 - Avoid compiler warnings in the unit tests for running tor_sscanf() 14146 with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha. 14147 14148 o Minor bugfixes (compilation, mingw, backport from 0.3.1.1-alpha): 14149 - Backport a fix for an "unused variable" warning that appeared 14150 in some versions of mingw. Fixes bug 22838; bugfix on 14151 0.2.8.1-alpha. 14152 14153 o Minor bugfixes (controller, backport from 0.3.1.7): 14154 - Do not crash when receiving a HSPOST command with an empty body. 14155 Fixes part of bug 22644; bugfix on 0.2.7.1-alpha. 14156 - Do not crash when receiving a POSTDESCRIPTOR command with an 14157 empty body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha. 14158 14159 o Minor bugfixes (coverity build support, backport from 0.3.1.5-alpha): 14160 - Avoid Coverity build warnings related to our BUG() macro. By 14161 default, Coverity treats BUG() as the Linux kernel does: an 14162 instant abort(). We need to override that so our BUG() macro 14163 doesn't prevent Coverity from analyzing functions that use it. 14164 Fixes bug 23030; bugfix on 0.2.9.1-alpha. 14165 14166 o Minor bugfixes (defensive programming, undefined behavior, backport from 0.3.1.4-alpha): 14167 - Fix a memset() off the end of an array when packing cells. This 14168 bug should be harmless in practice, since the corrupted bytes are 14169 still in the same structure, and are always padding bytes, 14170 ignored, or immediately overwritten, depending on compiler 14171 behavior. Nevertheless, because the memset()'s purpose is to make 14172 sure that any other cell-handling bugs can't expose bytes to the 14173 network, we need to fix it. Fixes bug 22737; bugfix on 14174 0.2.4.11-alpha. Fixes CID 1401591. 14175 14176 o Minor bugfixes (file limits, osx, backport from 0.3.1.5-alpha): 14177 - When setting the maximum number of connections allowed by the OS, 14178 always allow some extra file descriptors for other files. Fixes 14179 bug 22797; bugfix on 0.2.0.10-alpha. 14180 14181 o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.5-alpha): 14182 - Avoid a sandbox failure when trying to re-bind to a socket and 14183 mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha. 14184 14185 o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.4-alpha): 14186 - Permit the fchmod system call, to avoid crashing on startup when 14187 starting with the seccomp2 sandbox and an unexpected set of 14188 permissions on the data directory or its contents. Fixes bug 14189 22516; bugfix on 0.2.5.4-alpha. 14190 14191 o Minor bugfixes (relay, backport from 0.3.0.5-rc): 14192 - Avoid a double-marked-circuit warning that could happen when we 14193 receive DESTROY cells under heavy load. Fixes bug 20059; bugfix 14194 on 0.1.0.1-rc. 14195 14196 o Minor bugfixes (voting consistency, backport from 0.3.1.1-alpha): 14197 - Reject version numbers with non-numeric prefixes (such as +, -, or 14198 whitespace). Disallowing whitespace prevents differential version 14199 parsing between POSIX-based and Windows platforms. Fixes bug 21507 14200 and part of 21508; bugfix on 0.0.8pre1. 14201 14202 o Build features (backport from 0.3.1.5-alpha): 14203 - Tor's repository now includes a Travis Continuous Integration (CI) 14204 configuration file (.travis.yml). This is meant to help new 14205 developers and contributors who fork Tor to a Github repository be 14206 better able to test their changes, and understand what we expect 14207 to pass. To use this new build feature, you must fork Tor to your 14208 Github account, then go into the "Integrations" menu in the 14209 repository settings for your fork and enable Travis, then push 14210 your changes. Closes ticket 22636. 14211 14212 14213 Changes in version 0.3.0.11 - 2017-09-18 14214 Tor 0.3.0.11 backports a collection of bugfixes from Tor the 0.3.1 14215 series. 14216 14217 Most significantly, it includes a fix for TROVE-2017-008, a 14218 security bug that affects hidden services running with the 14219 SafeLogging option disabled. For more information, see 14220 https://trac.torproject.org/projects/tor/ticket/23490 14221 14222 o Minor features (code style, backport from 0.3.1.7): 14223 - Add "Falls through" comments to our codebase, in order to silence 14224 GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas 14225 Stieger. Closes ticket 22446. 14226 14227 o Minor features: 14228 - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2 14229 Country database. 14230 14231 o Minor bugfixes (compilation, backport from 0.3.1.7): 14232 - Avoid compiler warnings in the unit tests for calling tor_sscanf() 14233 with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha. 14234 14235 o Minor bugfixes (controller, backport from 0.3.1.7): 14236 - Do not crash when receiving a HSPOST command with an empty body. 14237 Fixes part of bug 22644; bugfix on 0.2.7.1-alpha. 14238 - Do not crash when receiving a POSTDESCRIPTOR command with an empty 14239 body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha. 14240 14241 o Minor bugfixes (file limits, osx, backport from 0.3.1.5-alpha): 14242 - When setting the maximum number of connections allowed by the OS, 14243 always allow some extra file descriptors for other files. Fixes 14244 bug 22797; bugfix on 0.2.0.10-alpha. 14245 14246 o Minor bugfixes (logging, relay, backport from 0.3.1.6-rc): 14247 - Remove a forgotten debugging message when an introduction point 14248 successfully establishes a hidden service prop224 circuit with 14249 a client. 14250 - Change three other log_warn() for an introduction point to 14251 protocol warnings, because they can be failure from the network 14252 and are not relevant to the operator. Fixes bug 23078; bugfix on 14253 0.3.0.1-alpha and 0.3.0.2-alpha. 14254 14255 14256 Changes in version 0.3.1.7 - 2017-09-18 14257 Tor 0.3.1.7 is the first stable release in the 0.3.1 series. 14258 14259 With the 0.3.1 series, Tor now serves and downloads directory 14260 information in more compact formats, to save on bandwidth overhead. It 14261 also contains a new padding system to resist netflow-based traffic 14262 analysis, and experimental support for building parts of Tor in Rust 14263 (though no parts of Tor are in Rust yet). There are also numerous 14264 small features, bugfixes on earlier release series, and groundwork for 14265 the hidden services revamp of 0.3.2. 14266 14267 This release also includes a fix for TROVE-2017-008, a security bug 14268 that affects hidden services running with the SafeLogging option 14269 disabled. For more information, see 14270 https://trac.torproject.org/projects/tor/ticket/23490 14271 14272 Per our stable release policy, we plan to support each stable release 14273 series for at least the next nine months, or for three months after 14274 the first stable release of the next series: whichever is longer. If 14275 you need a release with long-term support, we recommend that you stay 14276 with the 0.2.9 series. 14277 14278 Below is a list of the changes since 0.3.0. For a list of all 14279 changes since 0.3.1.6-rc, see the ChangeLog file. 14280 14281 o New dependencies: 14282 - To build with zstd and lzma support, Tor now requires the 14283 pkg-config tool at build time. 14284 14285 o Major bugfixes (security, hidden services, loggging): 14286 - Fix a bug where we could log uninitialized stack when a certain 14287 hidden service error occurred while SafeLogging was disabled. 14288 Fixes bug #23490; bugfix on 0.2.7.2-alpha. 14289 This is also tracked as TROVE-2017-008 and CVE-2017-0380. 14290 14291 o Major features (build system, continuous integration): 14292 - Tor's repository now includes a Travis Continuous Integration (CI) 14293 configuration file (.travis.yml). This is meant to help new 14294 developers and contributors who fork Tor to a Github repository be 14295 better able to test their changes, and understand what we expect 14296 to pass. To use this new build feature, you must fork Tor to your 14297 Github account, then go into the "Integrations" menu in the 14298 repository settings for your fork and enable Travis, then push 14299 your changes. Closes ticket 22636. 14300 14301 o Major features (directory protocol): 14302 - Tor relays and authorities can now serve clients an abbreviated 14303 version of the consensus document, containing only the changes 14304 since an older consensus document that the client holds. Clients 14305 now request these documents when available. When both client and 14306 server use this new protocol, they will use far less bandwidth (up 14307 to 94% less) to keep the client's consensus up-to-date. Implements 14308 proposal 140; closes ticket 13339. Based on work by Daniel Martí. 14309 - Tor can now compress directory traffic with lzma or with zstd 14310 compression algorithms, which can deliver better bandwidth 14311 performance. Because lzma is computationally expensive, it's only 14312 used for documents that can be compressed once and served many 14313 times. Support for these algorithms requires that tor is built 14314 with the libzstd and/or liblzma libraries available. Implements 14315 proposal 278; closes ticket 21662. 14316 - Relays now perform the more expensive compression operations, and 14317 consensus diff generation, in worker threads. This separation 14318 avoids delaying the main thread when a new consensus arrives. 14319 14320 o Major features (experimental): 14321 - Tor can now build modules written in Rust. To turn this on, pass 14322 the "--enable-rust" flag to the configure script. It's not time to 14323 get excited yet: currently, there is no actual Rust functionality 14324 beyond some simple glue code, and a notice at startup to tell you 14325 that Rust is running. Still, we hope that programmers and 14326 packagers will try building Tor with Rust support, so that we can 14327 find issues and solve portability problems. Closes ticket 22106. 14328 14329 o Major features (traffic analysis resistance): 14330 - Connections between clients and relays now send a padding cell in 14331 each direction every 1.5 to 9.5 seconds (tunable via consensus 14332 parameters). This padding will not resist specialized 14333 eavesdroppers, but it should be enough to make many ISPs' routine 14334 network flow logging less useful in traffic analysis against 14335 Tor users. 14336 14337 Padding is negotiated using Tor's link protocol, so both relays 14338 and clients must upgrade for this to take effect. Clients may 14339 still send padding despite the relay's version by setting 14340 ConnectionPadding 1 in torrc, and may disable padding by setting 14341 ConnectionPadding 0 in torrc. Padding may be minimized for mobile 14342 users with the torrc option ReducedConnectionPadding. Implements 14343 Proposal 251 and Section 2 of Proposal 254; closes ticket 16861. 14344 - Relays will publish 24 hour totals of padding and non-padding cell 14345 counts to their extra-info descriptors, unless PaddingStatistics 0 14346 is set in torrc. These 24 hour totals are also rounded to 14347 multiples of 10000. 14348 14349 o Major bugfixes (hidden service, relay, security): 14350 - Fix a remotely triggerable assertion failure when a hidden service 14351 handles a malformed BEGIN cell. Fixes bug 22493, tracked as 14352 TROVE-2017-004 and as CVE-2017-0375; bugfix on 0.3.0.1-alpha. 14353 - Fix a remotely triggerable assertion failure caused by receiving a 14354 BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug 14355 22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix 14356 on 0.2.2.1-alpha. 14357 14358 o Major bugfixes (path selection, security): 14359 - When choosing which guard to use for a circuit, avoid the exit's 14360 family along with the exit itself. Previously, the new guard 14361 selection logic avoided the exit, but did not consider its family. 14362 Fixes bug 22753; bugfix on 0.3.0.1-alpha. Tracked as TROVE-2017- 14363 006 and CVE-2017-0377. 14364 14365 o Major bugfixes (connection usage): 14366 - We use NETINFO cells to try to determine if both relays involved 14367 in a connection will agree on the canonical status of that 14368 connection. We prefer the connections where this is the case for 14369 extend cells, and try to close connections where relays disagree 14370 on their canonical status early. Also, we now prefer the oldest 14371 valid connection for extend cells. These two changes should reduce 14372 the number of long-term connections that are kept open between 14373 relays. Fixes bug 17604; bugfix on 0.2.5.5-alpha. 14374 - Relays now log hourly statistics (look for 14375 "channel_check_for_duplicates" lines) on the total number of 14376 connections to other relays. If the number of connections per 14377 relay is unexpectedly large, this log message is at notice level. 14378 Otherwise it is at info. 14379 14380 o Major bugfixes (entry guards): 14381 - When starting with an old consensus, do not add new entry guards 14382 unless the consensus is "reasonably live" (under 1 day old). Fixes 14383 one root cause of bug 22400; bugfix on 0.3.0.1-alpha. 14384 - Don't block bootstrapping when a primary bridge is offline and we 14385 can't get its descriptor. Fixes bug 22325; fixes one case of bug 14386 21969; bugfix on 0.3.0.3-alpha. 14387 14388 o Major bugfixes (linux TPROXY support): 14389 - Fix a typo that had prevented TPROXY-based transparent proxying 14390 from working under Linux. Fixes bug 18100; bugfix on 0.2.6.3-alpha. 14391 Patch from "d4fq0fQAgoJ". 14392 14393 o Major bugfixes (openbsd, denial-of-service): 14394 - Avoid an assertion failure bug affecting our implementation of 14395 inet_pton(AF_INET6) on certain OpenBSD systems whose strtol() 14396 handling of "0xx" differs from what we had expected. Fixes bug 14397 22789; bugfix on 0.2.3.8-alpha. Also tracked as TROVE-2017-007. 14398 14399 o Major bugfixes (relay, link handshake): 14400 - When performing the v3 link handshake on a TLS connection, report 14401 that we have the x509 certificate that we actually used on that 14402 connection, even if we have changed certificates since that 14403 connection was first opened. Previously, we would claim to have 14404 used our most recent x509 link certificate, which would sometimes 14405 make the link handshake fail. Fixes one case of bug 22460; bugfix 14406 on 0.2.3.6-alpha. 14407 14408 o Major bugfixes (relays, key management): 14409 - Regenerate link and authentication certificates whenever the key 14410 that signs them changes; also, regenerate link certificates 14411 whenever the signed key changes. Previously, these processes were 14412 only weakly coupled, and we relays could (for minutes to hours) 14413 wind up with an inconsistent set of keys and certificates, which 14414 other relays would not accept. Fixes two cases of bug 22460; 14415 bugfix on 0.3.0.1-alpha. 14416 - When sending an Ed25519 signing->link certificate in a CERTS cell, 14417 send the certificate that matches the x509 certificate that we 14418 used on the TLS connection. Previously, there was a race condition 14419 if the TLS context rotated after we began the TLS handshake but 14420 before we sent the CERTS cell. Fixes a case of bug 22460; bugfix 14421 on 0.3.0.1-alpha. 14422 14423 o Minor features (security, windows): 14424 - Enable a couple of pieces of Windows hardening: one 14425 (HeapEnableTerminationOnCorruption) that has been on-by-default 14426 since Windows 8, and unavailable before Windows 7; and one 14427 (PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION) which we believe doesn't 14428 affect us, but shouldn't do any harm. Closes ticket 21953. 14429 14430 o Minor features (bridge authority): 14431 - Add "fingerprint" lines to the networkstatus-bridges file produced 14432 by bridge authorities. Closes ticket 22207. 14433 14434 o Minor features (code style): 14435 - Add "Falls through" comments to our codebase, in order to silence 14436 GCC 7's -Wimplicit-fallthrough warnings. Patch from Andreas 14437 Stieger. Closes ticket 22446. 14438 14439 o Minor features (config options): 14440 - Allow "%include" directives in torrc configuration files. These 14441 directives import the settings from other files, or from all the 14442 files in a directory. Closes ticket 1922. Code by Daniel Pinto. 14443 - Make SAVECONF return an error when overwriting a torrc that has 14444 includes. Using SAVECONF with the FORCE option will allow it to 14445 overwrite torrc even if includes are used. Related to ticket 1922. 14446 - Add "GETINFO config-can-saveconf" to tell controllers if SAVECONF 14447 will work without the FORCE option. Related to ticket 1922. 14448 14449 o Minor features (controller): 14450 - Warn the first time that a controller requests data in the long- 14451 deprecated 'GETINFO network-status' format. Closes ticket 21703. 14452 14453 o Minor features (defaults): 14454 - The default value for UseCreateFast is now 0: clients which 14455 haven't yet received a consensus document will now use a proper 14456 ntor handshake to talk to their directory servers whenever they 14457 can. Closes ticket 21407. 14458 - Onion key rotation and expiry intervals are now defined as a 14459 network consensus parameter, per proposal 274. The default 14460 lifetime of an onion key is increased from 7 to 28 days. Old onion 14461 keys will expire after 7 days by default. This change will make 14462 consensus diffs much smaller, and save significant bandwidth. 14463 Closes ticket 21641. 14464 14465 o Minor features (defensive programming): 14466 - Create a pair of consensus parameters, nf_pad_tor2web and 14467 nf_pad_single_onion, to disable netflow padding in the consensus 14468 for non-anonymous connections in case the overhead is high. Closes 14469 ticket 17857. 14470 14471 o Minor features (diagnostic): 14472 - Add a stack trace to the bug warnings that can be logged when 14473 trying to send an outgoing relay cell with n_chan == 0. Diagnostic 14474 attempt for bug 23105. 14475 - Add logging messages to try to diagnose a rare bug that seems to 14476 generate RSA->Ed25519 cross-certificates dated in the 1970s. We 14477 think this is happening because of incorrect system clocks, but 14478 we'd like to know for certain. Diagnostic for bug 22466. 14479 - Avoid an assertion failure, and log a better error message, when 14480 unable to remove a file from the consensus cache on Windows. 14481 Attempts to mitigate and diagnose bug 22752. 14482 14483 o Minor features (directory authority): 14484 - Improve the message that authorities report to relays that present 14485 RSA/Ed25519 keypairs that conflict with previously pinned keys. 14486 Closes ticket 22348. 14487 14488 o Minor features (directory cache, consensus diff): 14489 - Add a new MaxConsensusAgeForDiffs option to allow directory cache 14490 operators with low-resource environments to adjust the number of 14491 consensuses they'll store and generate diffs from. Most cache 14492 operators should leave it unchanged. Helps to work around 14493 bug 22883. 14494 14495 o Minor features (fallback directory list): 14496 - Update the fallback directory mirror whitelist and blacklist based 14497 on operator emails. Closes task 21121. 14498 - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in 14499 December 2016 (of which ~126 were still functional) with a list of 14500 151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May 14501 2017. Resolves ticket 21564. 14502 14503 o Minor features (geoip): 14504 - Update geoip and geoip6 to the September 6 2017 Maxmind GeoLite2 14505 Country database. 14506 14507 o Minor features (hidden services, logging): 14508 - Log a message when a hidden service descriptor has fewer 14509 introduction points than specified in 14510 HiddenServiceNumIntroductionPoints. Closes tickets 21598. 14511 - Log a message when a hidden service reaches its introduction point 14512 circuit limit, and when that limit is reset. Follow up to ticket 14513 21594; closes ticket 21622. 14514 - Warn user if multiple entries in EntryNodes and at least one 14515 HiddenService are used together. Pinning EntryNodes along with a 14516 hidden service can be possibly harmful; for instance see ticket 14517 14917 or 21155. Closes ticket 21155. 14518 14519 o Minor features (linux seccomp2 sandbox): 14520 - We now have a document storage backend compatible with the Linux 14521 seccomp2 sandbox. This backend is used for consensus documents and 14522 diffs between them; in the long term, we'd like to use it for 14523 unparseable directory material too. Closes ticket 21645 14524 - Increase the maximum allowed size passed to mprotect(PROT_WRITE) 14525 from 1MB to 16MB. This was necessary with the glibc allocator in 14526 order to allow worker threads to allocate more memory -- which in 14527 turn is necessary because of our new use of worker threads for 14528 compression. Closes ticket 22096. 14529 14530 o Minor features (logging): 14531 - Log files are no longer created world-readable by default. 14532 (Previously, most distributors would store the logs in a non- 14533 world-readable location to prevent inappropriate access. This 14534 change is an extra precaution.) Closes ticket 21729; patch 14535 from toralf. 14536 14537 o Minor features (performance): 14538 - Our Keccak (SHA-3) implementation now accesses memory more 14539 efficiently, especially on little-endian systems. Closes 14540 ticket 21737. 14541 - Add an O(1) implementation of channel_find_by_global_id(), to 14542 speed some controller functions. 14543 14544 o Minor features (relay, configuration): 14545 - The MyFamily option may now be repeated as many times as desired, 14546 for relays that want to configure large families. Closes ticket 14547 4998; patch by Daniel Pinto. 14548 14549 o Minor features (relay, performance): 14550 - Always start relays with at least two worker threads, to prevent 14551 priority inversion on slow tasks. Part of the fix for bug 22883. 14552 - Allow background work to be queued with different priorities, so 14553 that a big pile of slow low-priority jobs will not starve out 14554 higher priority jobs. This lays the groundwork for a fix for 14555 bug 22883. 14556 14557 o Minor features (safety): 14558 - Add an explicit check to extrainfo_parse_entry_from_string() for 14559 NULL inputs. We don't believe this can actually happen, but it may 14560 help silence a warning from the Clang analyzer. Closes 14561 ticket 21496. 14562 14563 o Minor features (testing): 14564 - Add more tests for compression backend initialization. Closes 14565 ticket 22286. 14566 - Add a "--disable-memory-sentinels" feature to help with fuzzing. 14567 When Tor is compiled with this option, we disable a number of 14568 redundant memory-safety failsafes that are intended to stop bugs 14569 from becoming security issues. This makes it easier to hunt for 14570 bugs that would be security issues without the failsafes turned 14571 on. Closes ticket 21439. 14572 - Add a general event-tracing instrumentation support to Tor. This 14573 subsystem will enable developers and researchers to add fine- 14574 grained instrumentation to their Tor instances, for use when 14575 examining Tor network performance issues. There are no trace 14576 events yet, and event-tracing is off by default unless enabled at 14577 compile time. Implements ticket 13802. 14578 - Improve our version parsing tests: add tests for typical version 14579 components, add tests for invalid versions, including numeric 14580 range and non-numeric prefixes. Unit tests 21278, 21450, and 14581 21507. Partially implements 21470. 14582 14583 o Minor bugfixes (bandwidth accounting): 14584 - Roll over monthly accounting at the configured hour and minute, 14585 rather than always at 00:00. Fixes bug 22245; bugfix on 0.0.9rc1. 14586 Found by Andrey Karpov with PVS-Studio. 14587 14588 o Minor bugfixes (code correctness): 14589 - Accurately identify client connections by their lack of peer 14590 authentication. This means that we bail out earlier if asked to 14591 extend to a client. Follow-up to 21407. Fixes bug 21406; bugfix 14592 on 0.2.4.23. 14593 14594 o Minor bugfixes (compilation warnings): 14595 - Suppress -Wdouble-promotion warnings with clang 4.0. Fixes bug 14596 22915; bugfix on 0.2.8.1-alpha. 14597 - Fix warnings when building with libscrypt and openssl scrypt 14598 support on Clang. Fixes bug 22916; bugfix on 0.2.7.2-alpha. 14599 - When building with certain versions of the mingw C header files, 14600 avoid float-conversion warnings when calling the C functions 14601 isfinite(), isnan(), and signbit(). Fixes bug 22801; bugfix 14602 on 0.2.8.1-alpha. 14603 14604 o Minor bugfixes (compilation): 14605 - Avoid compiler warnings in the unit tests for calling tor_sscanf() 14606 with wide string outputs. Fixes bug 15582; bugfix on 0.2.6.2-alpha. 14607 14608 o Minor bugfixes (compression): 14609 - When spooling compressed data to an output buffer, don't try to 14610 spool more data when there is no more data to spool and we are not 14611 trying to flush the input. Previously, we would sometimes launch 14612 compression requests with nothing to do, which interferes with our 14613 22672 checks. Fixes bug 22719; bugfix on 0.2.0.16-alpha. 14614 14615 o Minor bugfixes (configuration): 14616 - Do not crash when starting with LearnCircuitBuildTimeout 0. Fixes 14617 bug 22252; bugfix on 0.2.9.3-alpha. 14618 14619 o Minor bugfixes (connection lifespan): 14620 - Allow more control over how long TLS connections are kept open: 14621 unify CircuitIdleTimeout and PredictedPortsRelevanceTime into a 14622 single option called CircuitsAvailableTimeout. Also, allow the 14623 consensus to control the default values for both this preference 14624 and the lifespan of relay-to-relay connections. Fixes bug 17592; 14625 bugfix on 0.2.5.5-alpha. 14626 - Increase the initial circuit build timeout testing frequency, to 14627 help ensure that ReducedConnectionPadding clients finish learning 14628 a timeout before their orconn would expire. The initial testing 14629 rate was set back in the days of TAP and before the Tor Browser 14630 updater, when we had to be much more careful about new clients 14631 making lots of circuits. With this change, a circuit build timeout 14632 is learned in about 15-20 minutes, instead of 100-120 minutes. 14633 14634 o Minor bugfixes (controller): 14635 - Do not crash when receiving a HSPOST command with an empty body. 14636 Fixes part of bug 22644; bugfix on 0.2.7.1-alpha. 14637 - Do not crash when receiving a POSTDESCRIPTOR command with an empty 14638 body. Fixes part of bug 22644; bugfix on 0.2.0.1-alpha. 14639 - GETINFO onions/current and onions/detached no longer respond with 14640 551 on empty lists. Fixes bug 21329; bugfix on 0.2.7.1-alpha. 14641 - Trigger HS descriptor events on the control port when the client 14642 fails to pick a hidden service directory for a hidden service. 14643 This can happen if all the hidden service directories are in 14644 ExcludeNodes, or they have all been queried within the last 15 14645 minutes. Fixes bug 22042; bugfix on 0.2.5.2-alpha. 14646 14647 o Minor bugfixes (correctness): 14648 - Avoid undefined behavior when parsing IPv6 entries from the geoip6 14649 file. Fixes bug 22490; bugfix on 0.2.4.6-alpha. 14650 14651 o Minor bugfixes (coverity build support): 14652 - Avoid Coverity build warnings related to our BUG() macro. By 14653 default, Coverity treats BUG() as the Linux kernel does: an 14654 instant abort(). We need to override that so our BUG() macro 14655 doesn't prevent Coverity from analyzing functions that use it. 14656 Fixes bug 23030; bugfix on 0.2.9.1-alpha. 14657 14658 o Minor bugfixes (defensive programming): 14659 - Detect and break out of infinite loops in our compression code. We 14660 don't think that any such loops exist now, but it's best to be 14661 safe. Closes ticket 22672. 14662 - Fix a memset() off the end of an array when packing cells. This 14663 bug should be harmless in practice, since the corrupted bytes are 14664 still in the same structure, and are always padding bytes, 14665 ignored, or immediately overwritten, depending on compiler 14666 behavior. Nevertheless, because the memset()'s purpose is to make 14667 sure that any other cell-handling bugs can't expose bytes to the 14668 network, we need to fix it. Fixes bug 22737; bugfix on 14669 0.2.4.11-alpha. Fixes CID 1401591. 14670 14671 o Minor bugfixes (directory authority): 14672 - When a directory authority rejects a descriptor or extrainfo with 14673 a given digest, mark that digest as undownloadable, so that we do 14674 not attempt to download it again over and over. We previously 14675 tried to avoid downloading such descriptors by other means, but we 14676 didn't notice if we accidentally downloaded one anyway. This 14677 behavior became problematic in 0.2.7.2-alpha, when authorities 14678 began pinning Ed25519 keys. Fixes bug 22349; bugfix 14679 on 0.2.1.19-alpha. 14680 - When rejecting a router descriptor for running an obsolete version 14681 of Tor without ntor support, warn about the obsolete tor version, 14682 not the missing ntor key. Fixes bug 20270; bugfix on 0.2.9.3-alpha. 14683 - Prevent the shared randomness subsystem from asserting when 14684 initialized by a bridge authority with an incomplete configuration 14685 file. Fixes bug 21586; bugfix on 0.2.9.8. 14686 14687 o Minor bugfixes (error reporting, windows): 14688 - When formatting Windows error messages, use the English format to 14689 avoid codepage issues. Fixes bug 22520; bugfix on 0.1.2.8-alpha. 14690 Patch from "Vort". 14691 14692 o Minor bugfixes (exit-side DNS): 14693 - Fix an untriggerable assertion that checked the output of a 14694 libevent DNS error, so that the assertion actually behaves as 14695 expected. Fixes bug 22244; bugfix on 0.2.0.20-rc. Found by Andrey 14696 Karpov using PVS-Studio. 14697 14698 o Minor bugfixes (fallback directories): 14699 - Make the usage example in updateFallbackDirs.py actually work, and 14700 explain what it does. Fixes bug 22270; bugfix on 0.3.0.3-alpha. 14701 - Decrease the guard flag average required to be a fallback. This 14702 allows us to keep relays that have their guard flag removed when 14703 they restart. Fixes bug 20913; bugfix on 0.2.8.1-alpha. 14704 - Decrease the minimum number of fallbacks to 100. Fixes bug 20913; 14705 bugfix on 0.2.8.1-alpha. 14706 - Make sure fallback directory mirrors have the same address, port, 14707 and relay identity key for at least 30 days before they are 14708 selected. Fixes bug 20913; bugfix on 0.2.8.1-alpha. 14709 14710 o Minor bugfixes (file limits, osx): 14711 - When setting the maximum number of connections allowed by the OS, 14712 always allow some extra file descriptors for other files. Fixes 14713 bug 22797; bugfix on 0.2.0.10-alpha. 14714 14715 o Minor bugfixes (hidden services): 14716 - Increase the number of circuits that a service is allowed to 14717 open over a specific period of time. The value was lower than it 14718 should be (8 vs 12) in the normal case of 3 introduction points. 14719 Fixes bug 22159; bugfix on 0.3.0.5-rc. 14720 - Fix a BUG warning during HSv3 descriptor decoding that could be 14721 cause by a specially crafted descriptor. Fixes bug 23233; bugfix 14722 on 0.3.0.1-alpha. Bug found by "haxxpop". 14723 - Stop printing a cryptic warning when a hidden service gets a 14724 request to connect to a virtual port that it hasn't configured. 14725 Fixes bug 16706; bugfix on 0.2.6.3-alpha. 14726 - Simplify hidden service descriptor creation by using an existing 14727 flag to check if an introduction point is established. Fixes bug 14728 21599; bugfix on 0.2.7.2-alpha. 14729 14730 o Minor bugfixes (link handshake): 14731 - Lower the lifetime of the RSA->Ed25519 cross-certificate to six 14732 months, and regenerate it when it is within one month of expiring. 14733 Previously, we had generated this certificate at startup with a 14734 ten-year lifetime, but that could lead to weird behavior when Tor 14735 was started with a grossly inaccurate clock. Mitigates bug 22466; 14736 mitigation on 0.3.0.1-alpha. 14737 14738 o Minor bugfixes (linux seccomp2 sandbox): 14739 - Avoid a sandbox failure when trying to re-bind to a socket and 14740 mark it as IPv6-only. Fixes bug 20247; bugfix on 0.2.5.1-alpha. 14741 - Permit the fchmod system call, to avoid crashing on startup when 14742 starting with the seccomp2 sandbox and an unexpected set of 14743 permissions on the data directory or its contents. Fixes bug 14744 22516; bugfix on 0.2.5.4-alpha. 14745 14746 o Minor bugfixes (logging): 14747 - When decompressing, do not warn if we fail to decompress using a 14748 compression method that we merely guessed. Fixes part of bug 14749 22670; bugfix on 0.1.1.14-alpha. 14750 - When decompressing, treat mismatch between content-encoding and 14751 actual compression type as a protocol warning. Fixes part of bug 14752 22670; bugfix on 0.1.1.9-alpha. 14753 - Downgrade "assigned_to_cpuworker failed" message to info-level 14754 severity. In every case that can reach it, either a better warning 14755 has already been logged, or no warning is warranted. Fixes bug 14756 22356; bugfix on 0.2.6.3-alpha. 14757 - Log a better message when a directory authority replies to an 14758 upload with an unexpected status code. Fixes bug 11121; bugfix 14759 on 0.1.0.1-rc. 14760 - Downgrade a log statement about unexpected relay cells from "bug" 14761 to "protocol warning", because there is at least one use case 14762 where it can be triggered by a buggy tor implementation. Fixes bug 14763 21293; bugfix on 0.1.1.14-alpha. 14764 14765 o Minor bugfixes (logging, relay): 14766 - Remove a forgotten debugging message when an introduction point 14767 successfully establishes a hidden service prop224 circuit with 14768 a client. 14769 - Change three other log_warn() for an introduction point to 14770 protocol warnings, because they can be failure from the network 14771 and are not relevant to the operator. Fixes bug 23078; bugfix on 14772 0.3.0.1-alpha and 0.3.0.2-alpha. 14773 14774 o Minor bugfixes (relay): 14775 - Inform the geoip and rephist modules about all requests, even on 14776 relays that are only fetching microdescriptors. Fixes a bug 14777 related to 21585; bugfix on 0.3.0.1-alpha. 14778 14779 o Minor bugfixes (memory leaks): 14780 - Fix a small memory leak at exit from the backtrace handler code. 14781 Fixes bug 21788; bugfix on 0.2.5.2-alpha. Patch from Daniel Pinto. 14782 - When directory authorities reject a router descriptor due to 14783 keypinning, free the router descriptor rather than leaking the 14784 memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha. 14785 - Fix a small memory leak when validating a configuration that uses 14786 two or more AF_UNIX sockets for the same port type. Fixes bug 14787 23053; bugfix on 0.2.6.3-alpha. This is CID 1415725. 14788 14789 o Minor bugfixes (process behavior): 14790 - When exiting because of an error, always exit with a nonzero exit 14791 status. Previously, we would fail to report an error in our exit 14792 status in cases related to __OwningControllerProcess failure, 14793 lockfile contention, and Ed25519 key initialization. Fixes bug 14794 22720; bugfix on versions 0.2.1.6-alpha, 0.2.2.28-beta, and 14795 0.2.7.2-alpha respectively. Reported by "f55jwk4f"; patch 14796 from "huyvq". 14797 14798 o Minor bugfixes (robustness, error handling): 14799 - Improve our handling of the cases where OpenSSL encounters a 14800 memory error while encoding keys and certificates. We haven't 14801 observed these errors in the wild, but if they do happen, we now 14802 detect and respond better. Fixes bug 19418; bugfix on all versions 14803 of Tor. Reported by Guido Vranken. 14804 14805 o Minor bugfixes (testing): 14806 - Fix an undersized buffer in test-memwipe.c. Fixes bug 23291; 14807 bugfix on 0.2.7.2-alpha. Found and patched by Ties Stuij. 14808 - Use unbuffered I/O for utility functions around the 14809 process_handle_t type. This fixes unit test failures reported on 14810 OpenBSD and FreeBSD. Fixes bug 21654; bugfix on 0.2.3.1-alpha. 14811 - Make display of captured unit test log messages consistent. Fixes 14812 bug 21510; bugfix on 0.2.9.3-alpha. 14813 - Make test-network.sh always call chutney's test-network.sh. 14814 Previously, this only worked on systems which had bash installed, 14815 due to some bash-specific code in the script. Fixes bug 19699; 14816 bugfix on 0.3.0.4-rc. Follow-up to ticket 21581. 14817 - Fix a memory leak in the link-handshake/certs_ok_ed25519 test. 14818 Fixes bug 22803; bugfix on 0.3.0.1-alpha. 14819 - The unit tests now pass on systems where localhost is misconfigured 14820 to some IPv4 address other than 127.0.0.1. Fixes bug 6298; bugfix 14821 on 0.0.9pre2. 14822 14823 o Minor bugfixes (voting consistency): 14824 - Reject version numbers with non-numeric prefixes (such as +, -, or 14825 whitespace). Disallowing whitespace prevents differential version 14826 parsing between POSIX-based and Windows platforms. Fixes bug 21507 14827 and part of 21508; bugfix on 0.0.8pre1. 14828 14829 o Minor bugfixes (Windows service): 14830 - When running as a Windows service, set the ID of the main thread 14831 correctly. Failure to do so made us fail to send log messages to 14832 the controller in 0.2.1.16-rc, slowed down controller event 14833 delivery in 0.2.7.3-rc and later, and crash with an assertion 14834 failure in 0.3.1.1-alpha. Fixes bug 23081; bugfix on 0.2.1.6-alpha. 14835 Patch and diagnosis from "Vort". 14836 14837 o Minor bugfixes (windows, relay): 14838 - Resolve "Failure from drain_fd: No error" warnings on Windows 14839 relays. Fixes bug 21540; bugfix on 0.2.6.3-alpha. 14840 14841 o Code simplification and refactoring: 14842 - Break up the 630-line function connection_dir_client_reached_eof() 14843 into a dozen smaller functions. This change should help 14844 maintainability and readability of the client directory code. 14845 - Isolate our use of the openssl headers so that they are only 14846 included from our crypto wrapper modules, and from tests that 14847 examine those modules' internals. Closes ticket 21841. 14848 - Simplify our API to launch directory requests, making it more 14849 extensible and less error-prone. Now it's easier to add extra 14850 headers to directory requests. Closes ticket 21646. 14851 - Our base64 decoding functions no longer overestimate the output 14852 space that they need when parsing unpadded inputs. Closes 14853 ticket 17868. 14854 - Remove unused "ROUTER_ADDED_NOTIFY_GENERATOR" internal value. 14855 Resolves ticket 22213. 14856 - The logic that directory caches use to spool request to clients, 14857 serving them one part at a time so as not to allocate too much 14858 memory, has been refactored for consistency. Previously there was 14859 a separate spooling implementation per type of spoolable data. Now 14860 there is one common spooling implementation, with extensible data 14861 types. Closes ticket 21651. 14862 - Tor's compression module now supports multiple backends. Part of 14863 the implementation for proposal 278; closes ticket 21663. 14864 14865 o Documentation: 14866 - Add a manpage description for the key-pinning-journal file. Closes 14867 ticket 22347. 14868 - Correctly note that bandwidth accounting values are stored in the 14869 state file, and the bw_accounting file is now obsolete. Closes 14870 ticket 16082. 14871 - Document more of the files in the Tor data directory, including 14872 cached-extrainfo, secret_onion_key{,_ntor}.old, hidserv-stats, 14873 approved-routers, sr-random, and diff-cache. Found while fixing 14874 ticket 22347. 14875 - Clarify the manpage for the (deprecated) torify script. Closes 14876 ticket 6892. 14877 - Clarify the behavior of the KeepAliveIsolateSOCKSAuth sub-option. 14878 Closes ticket 21873. 14879 - Correct documentation about the default DataDirectory value. 14880 Closes ticket 21151. 14881 - Document the default behavior of NumEntryGuards and 14882 NumDirectoryGuards correctly. Fixes bug 21715; bugfix 14883 on 0.3.0.1-alpha. 14884 - Document key=value pluggable transport arguments for Bridge lines 14885 in torrc. Fixes bug 20341; bugfix on 0.2.5.1-alpha. 14886 - Note that bandwidth-limiting options don't affect TCP headers or 14887 DNS. Closes ticket 17170. 14888 14889 o Removed features (configuration options, all in ticket 22060): 14890 - These configuration options are now marked Obsolete, and no longer 14891 have any effect: AllowInvalidNodes, AllowSingleHopCircuits, 14892 AllowSingleHopExits, ExcludeSingleHopRelays, FastFirstHopPK, 14893 TLSECGroup, WarnUnsafeSocks. They were first marked as deprecated 14894 in 0.2.9.2-alpha and have now been removed. The previous default 14895 behavior is now always chosen; the previous (less secure) non- 14896 default behavior is now unavailable. 14897 - CloseHSClientCircuitsImmediatelyOnTimeout and 14898 CloseHSServiceRendCircuitsImmediatelyOnTimeout were deprecated in 14899 0.2.9.2-alpha and now have been removed. HS circuits never close 14900 on circuit build timeout; they have a longer timeout period. 14901 - {Control,DNS,Dir,Socks,Trans,NATD,OR}ListenAddress were deprecated 14902 in 0.2.9.2-alpha and now have been removed. Use the ORPort option 14903 (and others) to configure listen-only and advertise-only addresses. 14904 14905 o Removed features (tools): 14906 - We've removed the tor-checkkey tool from src/tools. Long ago, we 14907 used it to help people detect RSA keys that were generated by 14908 versions of Debian affected by CVE-2008-0166. But those keys have 14909 been out of circulation for ages, and this tool is no longer 14910 required. Closes ticket 21842. 14911 14912 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. 14917 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. 14927 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". 14932 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. 14938 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. 14942 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. 14947 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. 14957 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. 14962 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. 14969 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. 14974 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. 14978 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. 14982 14983 14984 Changes in version 0.3.0.9 - 2017-06-29 14985 Tor 0.3.0.9 fixes a path selection bug that would allow a client 14986 to use a guard that was in the same network family as a chosen exit 14987 relay. This is a security regression; all clients running earlier 14988 versions of 0.3.0.x or 0.3.1.x should upgrade to 0.3.0.9 or 14989 0.3.1.4-alpha. 14990 14991 This release also backports several other bugfixes from the 0.3.1.x 14992 series. 14993 14994 o Major bugfixes (path selection, security, backport from 0.3.1.4-alpha): 14995 - When choosing which guard to use for a circuit, avoid the exit's 14996 family along with the exit itself. Previously, the new guard 14997 selection logic avoided the exit, but did not consider its family. 14998 Fixes bug 22753; bugfix on 0.3.0.1-alpha. Tracked as TROVE-2017- 14999 006 and CVE-2017-0377. 15000 15001 o Major bugfixes (entry guards, backport from 0.3.1.1-alpha): 15002 - Don't block bootstrapping when a primary bridge is offline and we 15003 can't get its descriptor. Fixes bug 22325; fixes one case of bug 15004 21969; bugfix on 0.3.0.3-alpha. 15005 15006 o Major bugfixes (entry guards, backport from 0.3.1.4-alpha): 15007 - When starting with an old consensus, do not add new entry guards 15008 unless the consensus is "reasonably live" (under 1 day old). Fixes 15009 one root cause of bug 22400; bugfix on 0.3.0.1-alpha. 15010 15011 o Minor features (geoip): 15012 - Update geoip and geoip6 to the June 8 2017 Maxmind GeoLite2 15013 Country database. 15014 15015 o Minor bugfixes (voting consistency, backport from 0.3.1.1-alpha): 15016 - Reject version numbers with non-numeric prefixes (such as +, -, or 15017 whitespace). Disallowing whitespace prevents differential version 15018 parsing between POSIX-based and Windows platforms. Fixes bug 21507 15019 and part of 21508; bugfix on 0.0.8pre1. 15020 15021 o Minor bugfixes (linux seccomp2 sandbox, backport from 0.3.1.4-alpha): 15022 - Permit the fchmod system call, to avoid crashing on startup when 15023 starting with the seccomp2 sandbox and an unexpected set of 15024 permissions on the data directory or its contents. Fixes bug 15025 22516; bugfix on 0.2.5.4-alpha. 15026 15027 o Minor bugfixes (defensive programming, backport from 0.3.1.4-alpha): 15028 - Fix a memset() off the end of an array when packing cells. This 15029 bug should be harmless in practice, since the corrupted bytes are 15030 still in the same structure, and are always padding bytes, 15031 ignored, or immediately overwritten, depending on compiler 15032 behavior. Nevertheless, because the memset()'s purpose is to make 15033 sure that any other cell-handling bugs can't expose bytes to the 15034 network, we need to fix it. Fixes bug 22737; bugfix on 15035 0.2.4.11-alpha. Fixes CID 1401591. 15036 15037 15038 Changes in version 0.3.0.8 - 2017-06-08 15039 Tor 0.3.0.8 fixes a pair of bugs that would allow an attacker to 15040 remotely crash a hidden service with an assertion failure. Anyone 15041 running a hidden service should upgrade to this version, or to some 15042 other version with fixes for TROVE-2017-004 and TROVE-2017-005. 15043 15044 Tor 0.3.0.8 also includes fixes for several key management bugs 15045 that sometimes made relays unreliable, as well as several other 15046 bugfixes described below. 15047 15048 o Major bugfixes (hidden service, relay, security, backport 15049 from 0.3.1.3-alpha): 15050 - Fix a remotely triggerable assertion failure when a hidden service 15051 handles a malformed BEGIN cell. Fixes bug 22493, tracked as 15052 TROVE-2017-004 and as CVE-2017-0375; bugfix on 0.3.0.1-alpha. 15053 - Fix a remotely triggerable assertion failure caused by receiving a 15054 BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug 15055 22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix 15056 on 0.2.2.1-alpha. 15057 15058 o Major bugfixes (relay, link handshake, backport from 0.3.1.3-alpha): 15059 - When performing the v3 link handshake on a TLS connection, report 15060 that we have the x509 certificate that we actually used on that 15061 connection, even if we have changed certificates since that 15062 connection was first opened. Previously, we would claim to have 15063 used our most recent x509 link certificate, which would sometimes 15064 make the link handshake fail. Fixes one case of bug 22460; bugfix 15065 on 0.2.3.6-alpha. 15066 15067 o Major bugfixes (relays, key management, backport from 0.3.1.3-alpha): 15068 - Regenerate link and authentication certificates whenever the key 15069 that signs them changes; also, regenerate link certificates 15070 whenever the signed key changes. Previously, these processes were 15071 only weakly coupled, and we relays could (for minutes to hours) 15072 wind up with an inconsistent set of keys and certificates, which 15073 other relays would not accept. Fixes two cases of bug 22460; 15074 bugfix on 0.3.0.1-alpha. 15075 - When sending an Ed25519 signing->link certificate in a CERTS cell, 15076 send the certificate that matches the x509 certificate that we 15077 used on the TLS connection. Previously, there was a race condition 15078 if the TLS context rotated after we began the TLS handshake but 15079 before we sent the CERTS cell. Fixes a case of bug 22460; bugfix 15080 on 0.3.0.1-alpha. 15081 15082 o Major bugfixes (hidden service v3, backport from 0.3.1.1-alpha): 15083 - Stop rejecting v3 hidden service descriptors because their size 15084 did not match an old padding rule. Fixes bug 22447; bugfix on 15085 tor-0.3.0.1-alpha. 15086 15087 o Minor features (fallback directory list, backport from 0.3.1.3-alpha): 15088 - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in 15089 December 2016 (of which ~126 were still functional) with a list of 15090 151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May 15091 2017. Resolves ticket 21564. 15092 15093 o Minor bugfixes (configuration, backport from 0.3.1.1-alpha): 15094 - Do not crash when starting with LearnCircuitBuildTimeout 0. Fixes 15095 bug 22252; bugfix on 0.2.9.3-alpha. 15096 15097 o Minor bugfixes (correctness, backport from 0.3.1.3-alpha): 15098 - Avoid undefined behavior when parsing IPv6 entries from the geoip6 15099 file. Fixes bug 22490; bugfix on 0.2.4.6-alpha. 15100 15101 o Minor bugfixes (link handshake, backport from 0.3.1.3-alpha): 15102 - Lower the lifetime of the RSA->Ed25519 cross-certificate to six 15103 months, and regenerate it when it is within one month of expiring. 15104 Previously, we had generated this certificate at startup with a 15105 ten-year lifetime, but that could lead to weird behavior when Tor 15106 was started with a grossly inaccurate clock. Mitigates bug 22466; 15107 mitigation on 0.3.0.1-alpha. 15108 15109 o Minor bugfixes (memory leak, directory authority, backport from 15110 0.3.1.2-alpha): 15111 - When directory authorities reject a router descriptor due to 15112 keypinning, free the router descriptor rather than leaking the 15113 memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha. 15114 15115 15116 Changes in version 0.2.9.11 - 2017-06-08 15117 Tor 0.2.9.11 backports a fix for a bug that would allow an attacker to 15118 remotely crash a hidden service with an assertion failure. Anyone 15119 running a hidden service should upgrade to this version, or to some 15120 other version with fixes for TROVE-2017-005. (Versions before 0.3.0 15121 are not affected by TROVE-2017-004.) 15122 15123 Tor 0.2.9.11 also backports fixes for several key management bugs 15124 that sometimes made relays unreliable, as well as several other 15125 bugfixes described below. 15126 15127 o Major bugfixes (hidden service, relay, security, backport 15128 from 0.3.1.3-alpha): 15129 - Fix a remotely triggerable assertion failure caused by receiving a 15130 BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug 15131 22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix 15132 on 0.2.2.1-alpha. 15133 15134 o Major bugfixes (relay, link handshake, backport from 0.3.1.3-alpha): 15135 - When performing the v3 link handshake on a TLS connection, report 15136 that we have the x509 certificate that we actually used on that 15137 connection, even if we have changed certificates since that 15138 connection was first opened. Previously, we would claim to have 15139 used our most recent x509 link certificate, which would sometimes 15140 make the link handshake fail. Fixes one case of bug 22460; bugfix 15141 on 0.2.3.6-alpha. 15142 15143 o Minor features (fallback directory list, backport from 0.3.1.3-alpha): 15144 - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in 15145 December 2016 (of which ~126 were still functional) with a list of 15146 151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May 15147 2017. Resolves ticket 21564. 15148 15149 o Minor features (future-proofing, backport from 0.3.0.7): 15150 - Tor no longer refuses to download microdescriptors or descriptors if 15151 they are listed as "published in the future". This change will 15152 eventually allow us to stop listing meaningful "published" dates 15153 in microdescriptor consensuses, and thereby allow us to reduce the 15154 resources required to download consensus diffs by over 50%. 15155 Implements part of ticket 21642; implements part of proposal 275. 15156 15157 o Minor features (directory authorities, backport from 0.3.0.4-rc) 15158 - Directory authorities now reject relays running versions 15159 0.2.9.1-alpha through 0.2.9.4-alpha, because those relays 15160 suffer from bug 20499 and don't keep their consensus cache 15161 up-to-date. Resolves ticket 20509. 15162 15163 o Minor features (geoip): 15164 - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2 15165 Country database. 15166 15167 o Minor bugfixes (control port, backport from 0.3.0.6): 15168 - The GETINFO extra-info/digest/<digest> command was broken because 15169 of a wrong base16 decode return value check, introduced when 15170 refactoring that API. Fixes bug 22034; bugfix on 0.2.9.1-alpha. 15171 15172 o Minor bugfixes (correctness, backport from 0.3.1.3-alpha): 15173 - Avoid undefined behavior when parsing IPv6 entries from the geoip6 15174 file. Fixes bug 22490; bugfix on 0.2.4.6-alpha. 15175 15176 o Minor bugfixes (Linux seccomp2 sandbox, backport from 0.3.0.7): 15177 - The getpid() system call is now permitted under the Linux seccomp2 15178 sandbox, to avoid crashing with versions of OpenSSL (and other 15179 libraries) that attempt to learn the process's PID by using the 15180 syscall rather than the VDSO code. Fixes bug 21943; bugfix 15181 on 0.2.5.1-alpha. 15182 15183 o Minor bugfixes (memory leak, directory authority, backport 15184 from 0.3.1.2-alpha): 15185 - When directory authorities reject a router descriptor due to 15186 keypinning, free the router descriptor rather than leaking the 15187 memory. Fixes bug 22370; bugfix on 0.2.7.2-alpha. 15188 15189 Changes in version 0.2.8.14 - 2017-06-08 15190 Tor 0.2.7.8 backports a fix for a bug that would allow an attacker to 15191 remotely crash a hidden service with an assertion failure. Anyone 15192 running a hidden service should upgrade to this version, or to some 15193 other version with fixes for TROVE-2017-005. (Versions before 0.3.0 15194 are not affected by TROVE-2017-004.) 15195 15196 o Major bugfixes (hidden service, relay, security): 15197 - Fix a remotely triggerable assertion failure caused by receiving a 15198 BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug 15199 22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix 15200 on 0.2.2.1-alpha. 15201 15202 o Minor features (geoip): 15203 - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2 15204 Country database. 15205 15206 o Minor features (fallback directory list, backport from 0.3.1.3-alpha): 15207 - Replace the 177 fallbacks originally introduced in Tor 0.2.9.8 in 15208 December 2016 (of which ~126 were still functional) with a list of 15209 151 fallbacks (32 new, 119 unchanged, 58 removed) generated in May 15210 2017. Resolves ticket 21564. 15211 15212 o Minor bugfixes (correctness): 15213 - Avoid undefined behavior when parsing IPv6 entries from the geoip6 15214 file. Fixes bug 22490; bugfix on 0.2.4.6-alpha. 15215 15216 Changes in version 0.2.7.8 - 2017-06-08 15217 Tor 0.2.7.8 backports a fix for a bug that would allow an attacker to 15218 remotely crash a hidden service with an assertion failure. Anyone 15219 running a hidden service should upgrade to this version, or to some 15220 other version with fixes for TROVE-2017-005. (Versions before 0.3.0 15221 are not affected by TROVE-2017-004.) 15222 15223 o Major bugfixes (hidden service, relay, security): 15224 - Fix a remotely triggerable assertion failure caused by receiving a 15225 BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug 15226 22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix 15227 on 0.2.2.1-alpha. 15228 15229 o Minor features (geoip): 15230 - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2 15231 Country database. 15232 15233 o Minor bugfixes (correctness): 15234 - Avoid undefined behavior when parsing IPv6 entries from the geoip6 15235 file. Fixes bug 22490; bugfix on 0.2.4.6-alpha. 15236 15237 15238 Changes in version 0.2.6.12 - 2017-06-08 15239 Tor 0.2.6.12 backports a fix for a bug that would allow an attacker to 15240 remotely crash a hidden service with an assertion failure. Anyone 15241 running a hidden service should upgrade to this version, or to some 15242 other version with fixes for TROVE-2017-005. (Versions before 0.3.0 15243 are not affected by TROVE-2017-004.) 15244 15245 o Major bugfixes (hidden service, relay, security): 15246 - Fix a remotely triggerable assertion failure caused by receiving a 15247 BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug 15248 22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix 15249 on 0.2.2.1-alpha. 15250 15251 o Minor features (geoip): 15252 - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2 15253 Country database. 15254 15255 o Minor bugfixes (correctness): 15256 - Avoid undefined behavior when parsing IPv6 entries from the geoip6 15257 file. Fixes bug 22490; bugfix on 0.2.4.6-alpha. 15258 15259 Changes in version 0.2.5.14 - 2017-06-08 15260 Tor 0.2.5.14 backports a fix for a bug that would allow an attacker to 15261 remotely crash a hidden service with an assertion failure. Anyone 15262 running a hidden service should upgrade to this version, or to some 15263 other version with fixes for TROVE-2017-005. (Versions before 0.3.0 15264 are not affected by TROVE-2017-004.) 15265 15266 o Major bugfixes (hidden service, relay, security): 15267 - Fix a remotely triggerable assertion failure caused by receiving a 15268 BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug 15269 22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix 15270 on 0.2.2.1-alpha. 15271 15272 o Minor features (geoip): 15273 - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2 15274 Country database. 15275 15276 o Minor bugfixes (correctness): 15277 - Avoid undefined behavior when parsing IPv6 entries from the geoip6 15278 file. Fixes bug 22490; bugfix on 0.2.4.6-alpha. 15279 15280 Changes in version 0.2.4.29 - 2017-06-08 15281 Tor 0.2.4.29 backports a fix for a bug that would allow an attacker to 15282 remotely crash a hidden service with an assertion failure. Anyone 15283 running a hidden service should upgrade to this version, or to some 15284 other version with fixes for TROVE-2017-005. (Versions before 0.3.0 15285 are not affected by TROVE-2017-004.) 15286 15287 o Major bugfixes (hidden service, relay, security): 15288 - Fix a remotely triggerable assertion failure caused by receiving a 15289 BEGIN_DIR cell on a hidden service rendezvous circuit. Fixes bug 15290 22494, tracked as TROVE-2017-005 and CVE-2017-0376; bugfix 15291 on 0.2.2.1-alpha. 15292 15293 o Minor features (geoip): 15294 - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2 15295 Country database. 15296 15297 o Minor bugfixes (correctness): 15298 - Avoid undefined behavior when parsing IPv6 entries from the geoip6 15299 file. Fixes bug 22490; bugfix on 0.2.4.6-alpha. 15300 15301 15302 Changes in version 0.3.0.7 - 2017-05-15 15303 Tor 0.3.0.7 fixes a medium-severity security bug in earlier versions 15304 of Tor 0.3.0.x, where an attacker could cause a Tor relay process 15305 to exit. Relays running earlier versions of Tor 0.3.0.x should upgrade; 15306 clients are not affected. 15307 15308 o Major bugfixes (hidden service directory, security): 15309 - Fix an assertion failure in the hidden service directory code, which 15310 could be used by an attacker to remotely cause a Tor relay process to 15311 exit. Relays running earlier versions of Tor 0.3.0.x should upgrade. 15312 should upgrade. This security issue is tracked as TROVE-2017-002. 15313 Fixes bug 22246; bugfix on 0.3.0.1-alpha. 15314 15315 o Minor features: 15316 - Update geoip and geoip6 to the May 2 2017 Maxmind GeoLite2 15317 Country database. 15318 15319 o Minor features (future-proofing): 15320 - Tor no longer refuses to download microdescriptors or descriptors 15321 if they are listed as "published in the future". This change will 15322 eventually allow us to stop listing meaningful "published" dates 15323 in microdescriptor consensuses, and thereby allow us to reduce the 15324 resources required to download consensus diffs by over 50%. 15325 Implements part of ticket 21642; implements part of proposal 275. 15326 15327 o Minor bugfixes (Linux seccomp2 sandbox): 15328 - The getpid() system call is now permitted under the Linux seccomp2 15329 sandbox, to avoid crashing with versions of OpenSSL (and other 15330 libraries) that attempt to learn the process's PID by using the 15331 syscall rather than the VDSO code. Fixes bug 21943; bugfix 15332 on 0.2.5.1-alpha. 15333 15334 15335 Changes in version 0.3.0.6 - 2017-04-26 15336 Tor 0.3.0.6 is the first stable release of the Tor 0.3.0 series. 15337 15338 With the 0.3.0 series, clients and relays now use Ed25519 keys to 15339 authenticate their link connections to relays, rather than the old 15340 RSA1024 keys that they used before. (Circuit crypto has been 15341 Curve25519-authenticated since 0.2.4.8-alpha.) We have also replaced 15342 the guard selection and replacement algorithm to behave more robustly 15343 in the presence of unreliable networks, and to resist guard- 15344 capture attacks. 15345 15346 This series also includes numerous other small features and bugfixes, 15347 along with more groundwork for the upcoming hidden-services revamp. 15348 15349 Per our stable release policy, we plan to support the Tor 0.3.0 15350 release series for at least the next nine months, or for three months 15351 after the first stable release of the 0.3.1 series: whichever is 15352 longer. If you need a release with long-term support, we recommend 15353 that you stay with the 0.2.9 series. 15354 15355 Below are the changes since 0.2.9.10. For a list of only the changes 15356 since 0.3.0.5-rc, see the ChangeLog file. 15357 15358 o Major features (directory authority, security): 15359 - The default for AuthDirPinKeys is now 1: directory authorities 15360 will reject relays where the RSA identity key matches a previously 15361 seen value, but the Ed25519 key has changed. Closes ticket 18319. 15362 15363 o Major features (guard selection algorithm): 15364 - Tor's guard selection algorithm has been redesigned from the 15365 ground up, to better support unreliable networks and restrictive 15366 sets of entry nodes, and to better resist guard-capture attacks by 15367 hostile local networks. Implements proposal 271; closes 15368 ticket 19877. 15369 15370 o Major features (next-generation hidden services): 15371 - Relays can now handle v3 ESTABLISH_INTRO cells as specified by 15372 prop224 aka "Next Generation Hidden Services". Service and clients 15373 don't use this functionality yet. Closes ticket 19043. Based on 15374 initial code by Alec Heifetz. 15375 - Relays now support the HSDir version 3 protocol, so that they can 15376 can store and serve v3 descriptors. This is part of the next- 15377 generation onion service work detailed in proposal 224. Closes 15378 ticket 17238. 15379 15380 o Major features (protocol, ed25519 identity keys): 15381 - Clients now support including Ed25519 identity keys in the EXTEND2 15382 cells they generate. By default, this is controlled by a consensus 15383 parameter, currently disabled. You can turn this feature on for 15384 testing by setting ExtendByEd25519ID in your configuration. This 15385 might make your traffic appear different than the traffic 15386 generated by other users, however. Implements part of ticket 15387 15056; part of proposal 220. 15388 - Relays now understand requests to extend to other relays by their 15389 Ed25519 identity keys. When an Ed25519 identity key is included in 15390 an EXTEND2 cell, the relay will only extend the circuit if the 15391 other relay can prove ownership of that identity. Implements part 15392 of ticket 15056; part of proposal 220. 15393 - Relays now use Ed25519 to prove their Ed25519 identities and to 15394 one another, and to clients. This algorithm is faster and more 15395 secure than the RSA-based handshake we've been doing until now. 15396 Implements the second big part of proposal 220; Closes 15397 ticket 15055. 15398 15399 o Major features (security): 15400 - Change the algorithm used to decide DNS TTLs on client and server 15401 side, to better resist DNS-based correlation attacks like the 15402 DefecTor attack of Greschbach, Pulls, Roberts, Winter, and 15403 Feamster. Now relays only return one of two possible DNS TTL 15404 values, and clients are willing to believe DNS TTL values up to 3 15405 hours long. Closes ticket 19769. 15406 15407 o Major bugfixes (client, onion service, also in 0.2.9.9): 15408 - Fix a client-side onion service reachability bug, where multiple 15409 socks requests to an onion service (or a single slow request) 15410 could cause us to mistakenly mark some of the service's 15411 introduction points as failed, and we cache that failure so 15412 eventually we run out and can't reach the service. Also resolves a 15413 mysterious "Remote server sent bogus reason code 65021" log 15414 warning. The bug was introduced in ticket 17218, where we tried to 15415 remember the circuit end reason as a uint16_t, which mangled 15416 negative values. Partially fixes bug 21056 and fixes bug 20307; 15417 bugfix on 0.2.8.1-alpha. 15418 15419 o Major bugfixes (crash, directory connections): 15420 - Fix a rare crash when sending a begin cell on a circuit whose 15421 linked directory connection had already been closed. Fixes bug 15422 21576; bugfix on 0.2.9.3-alpha. Reported by Alec Muffett. 15423 15424 o Major bugfixes (directory authority): 15425 - During voting, when marking a relay as a probable sybil, do not 15426 clear its BadExit flag: sybils can still be bad in other ways 15427 too. (We still clear the other flags.) Fixes bug 21108; bugfix 15428 on 0.2.0.13-alpha. 15429 15430 o Major bugfixes (DNS): 15431 - Fix a bug that prevented exit nodes from caching DNS records for 15432 more than 60 seconds. Fixes bug 19025; bugfix on 0.2.4.7-alpha. 15433 15434 o Major bugfixes (IPv6 Exits): 15435 - Stop rejecting all IPv6 traffic on Exits whose exit policy rejects 15436 any IPv6 addresses. Instead, only reject a port over IPv6 if the 15437 exit policy rejects that port on more than an IPv6 /16 of 15438 addresses. This bug was made worse by 17027 in 0.2.8.1-alpha, 15439 which rejected a relay's own IPv6 address by default. Fixes bug 15440 21357; bugfix on commit 004f3f4e53 in 0.2.4.7-alpha. 15441 15442 o Major bugfixes (parsing): 15443 - Fix an integer underflow bug when comparing malformed Tor 15444 versions. This bug could crash Tor when built with 15445 --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor 15446 0.2.9.8, which were built with -ftrapv by default. In other cases 15447 it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix 15448 on 0.0.8pre1. Found by OSS-Fuzz. 15449 - When parsing a malformed content-length field from an HTTP 15450 message, do not read off the end of the buffer. This bug was a 15451 potential remote denial-of-service attack against Tor clients and 15452 relays. A workaround was released in October 2016, to prevent this 15453 bug from crashing Tor. This is a fix for the underlying issue, 15454 which should no longer matter (if you applied the earlier patch). 15455 Fixes bug 20894; bugfix on 0.2.0.16-alpha. Bug found by fuzzing 15456 using AFL (http://lcamtuf.coredump.cx/afl/). 15457 15458 o Major bugfixes (scheduler): 15459 - Actually compare circuit policies in ewma_cmp_cmux(). This bug 15460 caused the channel scheduler to behave more or less randomly, 15461 rather than preferring channels with higher-priority circuits. 15462 Fixes bug 20459; bugfix on 0.2.6.2-alpha. 15463 15464 o Major bugfixes (security, also in 0.2.9.9): 15465 - Downgrade the "-ftrapv" option from "always on" to "only on when 15466 --enable-expensive-hardening is provided." This hardening option, 15467 like others, can turn survivable bugs into crashes--and having it 15468 on by default made a (relatively harmless) integer overflow bug 15469 into a denial-of-service bug. Fixes bug 21278 (TROVE-2017-001); 15470 bugfix on 0.2.9.1-alpha. 15471 15472 o Minor feature (client): 15473 - Enable IPv6 traffic on the SocksPort by default. To disable this, 15474 a user will have to specify "NoIPv6Traffic". Closes ticket 21269. 15475 15476 o Minor feature (fallback scripts): 15477 - Add a check_existing mode to updateFallbackDirs.py, which checks 15478 if fallbacks in the hard-coded list are working. Closes ticket 15479 20174. Patch by haxxpop. 15480 15481 o Minor feature (protocol versioning): 15482 - Add new protocol version for proposal 224. HSIntro now advertises 15483 version "3-4" and HSDir version "1-2". Fixes ticket 20656. 15484 15485 o Minor features (ciphersuite selection): 15486 - Allow relays to accept a wider range of ciphersuites, including 15487 chacha20-poly1305 and AES-CCM. Closes the other part of 15426. 15488 - Clients now advertise a list of ciphersuites closer to the ones 15489 preferred by Firefox. Closes part of ticket 15426. 15490 15491 o Minor features (controller): 15492 - Add "GETINFO sr/current" and "GETINFO sr/previous" keys, to expose 15493 shared-random values to the controller. Closes ticket 19925. 15494 - When HSFETCH arguments cannot be parsed, say "Invalid argument" 15495 rather than "unrecognized." Closes ticket 20389; patch from 15496 Ivan Markin. 15497 15498 o Minor features (controller, configuration): 15499 - Each of the *Port options, such as SocksPort, ORPort, ControlPort, 15500 and so on, now comes with a __*Port variant that will not be saved 15501 to the torrc file by the controller's SAVECONF command. This 15502 change allows TorBrowser to set up a single-use domain socket for 15503 each time it launches Tor. Closes ticket 20956. 15504 - The GETCONF command can now query options that may only be 15505 meaningful in context-sensitive lists. This allows the controller 15506 to query the mixed SocksPort/__SocksPort style options introduced 15507 in feature 20956. Implements ticket 21300. 15508 15509 o Minor features (diagnostic, directory client): 15510 - Warn when we find an unexpected inconsistency in directory 15511 download status objects. Prevents some negative consequences of 15512 bug 20593. 15513 15514 o Minor features (directory authorities): 15515 - Directory authorities now reject descriptors that claim to be 15516 malformed versions of Tor. Helps prevent exploitation of 15517 bug 21278. 15518 - Reject version numbers with components that exceed INT32_MAX. 15519 Otherwise 32-bit and 64-bit platforms would behave inconsistently. 15520 Fixes bug 21450; bugfix on 0.0.8pre1. 15521 15522 o Minor features (directory authority): 15523 - Add a new authority-only AuthDirTestEd25519LinkKeys option (on by 15524 default) to control whether authorities should try to probe relays 15525 by their Ed25519 link keys. This option will go away in a few 15526 releases--unless we encounter major trouble in our ed25519 link 15527 protocol rollout, in which case it will serve as a safety option. 15528 15529 o Minor features (directory cache): 15530 - Relays and bridges will now refuse to serve the consensus they 15531 have if they know it is too old for a client to use. Closes 15532 ticket 20511. 15533 15534 o Minor features (ed25519 link handshake): 15535 - Advertise support for the ed25519 link handshake using the 15536 subprotocol-versions mechanism, so that clients can tell which 15537 relays can identity themselves by Ed25519 ID. Closes ticket 20552. 15538 15539 o Minor features (entry guards): 15540 - Add UseEntryGuards to TEST_OPTIONS_DEFAULT_VALUES in order to not 15541 break regression tests. 15542 - Require UseEntryGuards when UseBridges is set, in order to make 15543 sure bridges aren't bypassed. Resolves ticket 20502. 15544 15545 o Minor features (fallback directories): 15546 - Allow 3 fallback relays per operator, which is safe now that we 15547 are choosing 200 fallback relays. Closes ticket 20912. 15548 - Annotate updateFallbackDirs.py with the bandwidth and consensus 15549 weight for each candidate fallback. Closes ticket 20878. 15550 - Display the relay fingerprint when downloading consensuses from 15551 fallbacks. Closes ticket 20908. 15552 - Exclude relays affected by bug 20499 from the fallback list. 15553 Exclude relays from the fallback list if they are running versions 15554 known to be affected by bug 20499, or if in our tests they deliver 15555 a stale consensus (i.e. one that expired more than 24 hours ago). 15556 Closes ticket 20539. 15557 - Make it easier to change the output sort order of fallbacks. 15558 Closes ticket 20822. 15559 - Reduce the minimum fallback bandwidth to 1 MByte/s. Part of 15560 ticket 18828. 15561 - Require fallback directories to have the same address and port for 15562 7 days (now that we have enough relays with this stability). 15563 Relays whose OnionOO stability timer is reset on restart by bug 15564 18050 should upgrade to Tor 0.2.8.7 or later, which has a fix for 15565 this issue. Closes ticket 20880; maintains short-term fix 15566 in 0.2.8.2-alpha. 15567 - Require fallbacks to have flags for 90% of the time (weighted 15568 decaying average), rather than 95%. This allows at least 73% of 15569 clients to bootstrap in the first 5 seconds without contacting an 15570 authority. Part of ticket 18828. 15571 - Select 200 fallback directories for each release. Closes 15572 ticket 20881. 15573 15574 o Minor features (fingerprinting resistance, authentication): 15575 - Extend the length of RSA keys used for TLS link authentication to 15576 2048 bits. (These weren't used for forward secrecy; for forward 15577 secrecy, we used P256.) Closes ticket 13752. 15578 15579 o Minor features (geoip): 15580 - Update geoip and geoip6 to the April 4 2017 Maxmind GeoLite2 15581 Country database. 15582 15583 o Minor features (geoip, also in 0.2.9.9): 15584 - Update geoip and geoip6 to the January 4 2017 Maxmind GeoLite2 15585 Country database. 15586 15587 o Minor features (infrastructure): 15588 - Implement smartlist_add_strdup() function. Replaces the use of 15589 smartlist_add(sl, tor_strdup(str)). Closes ticket 20048. 15590 15591 o Minor features (linting): 15592 - Enhance the changes file linter to warn on Tor versions that are 15593 prefixed with "tor-". Closes ticket 21096. 15594 15595 o Minor features (logging): 15596 - In several places, describe unset ed25519 keys as "<unset>", 15597 rather than the scary "AAAAAAAA...AAA". Closes ticket 21037. 15598 15599 o Minor features (portability, compilation): 15600 - Autoconf now checks to determine if OpenSSL structures are opaque, 15601 instead of explicitly checking for OpenSSL version numbers. Part 15602 of ticket 21359. 15603 - Support building with recent LibreSSL code that uses opaque 15604 structures. Closes ticket 21359. 15605 15606 o Minor features (relay): 15607 - We now allow separation of exit and relay traffic to different 15608 source IP addresses, using the OutboundBindAddressExit and 15609 OutboundBindAddressOR options respectively. Closes ticket 17975. 15610 Written by Michael Sonntag. 15611 15612 o Minor features (reliability, crash): 15613 - Try better to detect problems in buffers where they might grow (or 15614 think they have grown) over 2 GB in size. Diagnostic for 15615 bug 21369. 15616 15617 o Minor features (testing): 15618 - During 'make test-network-all', if tor logs any warnings, ask 15619 chutney to output them. Requires a recent version of chutney with 15620 the 21572 patch. Implements 21570. 15621 15622 o Minor bugfix (control protocol): 15623 - The reply to a "GETINFO config/names" request via the control 15624 protocol now spells the type "Dependent" correctly. This is a 15625 breaking change in the control protocol. (The field seems to be 15626 ignored by the most common known controllers.) Fixes bug 18146; 15627 bugfix on 0.1.1.4-alpha. 15628 - The GETINFO extra-info/digest/<digest> command was broken because 15629 of a wrong base16 decode return value check, introduced when 15630 refactoring that API. Fixes bug 22034; bugfix on 0.2.9.1-alpha. 15631 15632 o Minor bugfix (logging): 15633 - Don't recommend the use of Tor2web in non-anonymous mode. 15634 Recommending Tor2web is a bad idea because the client loses all 15635 anonymity. Tor2web should only be used in specific cases by users 15636 who *know* and understand the issues. Fixes bug 21294; bugfix 15637 on 0.2.9.3-alpha. 15638 15639 o Minor bugfixes (bug resilience): 15640 - Fix an unreachable size_t overflow in base64_decode(). Fixes bug 15641 19222; bugfix on 0.2.0.9-alpha. Found by Guido Vranken; fixed by 15642 Hans Jerry Illikainen. 15643 15644 o Minor bugfixes (build): 15645 - Replace obsolete Autoconf macros with their modern equivalent and 15646 prevent similar issues in the future. Fixes bug 20990; bugfix 15647 on 0.1.0.1-rc. 15648 15649 o Minor bugfixes (certificate expiration time): 15650 - Avoid using link certificates that don't become valid till some 15651 time in the future. Fixes bug 21420; bugfix on 0.2.4.11-alpha 15652 15653 o Minor bugfixes (client): 15654 - Always recover from failures in extend_info_from_node(), in an 15655 attempt to prevent any recurrence of bug 21242. Fixes bug 21372; 15656 bugfix on 0.2.3.1-alpha. 15657 - When clients that use bridges start up with a cached consensus on 15658 disk, they were ignoring it and downloading a new one. Now they 15659 use the cached one. Fixes bug 20269; bugfix on 0.2.3.12-alpha. 15660 15661 o Minor bugfixes (code correctness): 15662 - Repair a couple of (unreachable or harmless) cases of the risky 15663 comparison-by-subtraction pattern that caused bug 21278. 15664 15665 o Minor bugfixes (config): 15666 - Don't assert on startup when trying to get the options list and 15667 LearnCircuitBuildTimeout is set to 0: we are currently parsing the 15668 options so of course they aren't ready yet. Fixes bug 21062; 15669 bugfix on 0.2.9.3-alpha. 15670 15671 o Minor bugfixes (configuration): 15672 - Accept non-space whitespace characters after the severity level in 15673 the `Log` option. Fixes bug 19965; bugfix on 0.2.1.1-alpha. 15674 - Support "TByte" and "TBytes" units in options given in bytes. 15675 "TB", "terabyte(s)", "TBit(s)" and "terabit(s)" were already 15676 supported. Fixes bug 20622; bugfix on 0.2.0.14-alpha. 15677 15678 o Minor bugfixes (configure, autoconf): 15679 - Rename the configure option --enable-expensive-hardening to 15680 --enable-fragile-hardening. Expensive hardening makes the tor 15681 daemon abort when some kinds of issues are detected. Thus, it 15682 makes tor more at risk of remote crashes but safer against RCE or 15683 heartbleed bug category. We now try to explain this issue in a 15684 message from the configure script. Fixes bug 21290; bugfix 15685 on 0.2.5.4-alpha. 15686 15687 o Minor bugfixes (consensus weight): 15688 - Add new consensus method that initializes bw weights to 1 instead 15689 of 0. This prevents a zero weight from making it all the way to 15690 the end (happens in small testing networks) and causing an error. 15691 Fixes bug 14881; bugfix on 0.2.2.17-alpha. 15692 15693 o Minor bugfixes (crash prevention): 15694 - Fix an (currently untriggerable, but potentially dangerous) crash 15695 bug when base32-encoding inputs whose sizes are not a multiple of 15696 5. Fixes bug 21894; bugfix on 0.2.9.1-alpha. 15697 15698 o Minor bugfixes (dead code): 15699 - Remove a redundant check for PidFile changes at runtime in 15700 options_transition_allowed(): this check is already performed 15701 regardless of whether the sandbox is active. Fixes bug 21123; 15702 bugfix on 0.2.5.4-alpha. 15703 15704 o Minor bugfixes (descriptors): 15705 - Correctly recognise downloaded full descriptors as valid, even 15706 when using microdescriptors as circuits. This affects clients with 15707 FetchUselessDescriptors set, and may affect directory authorities. 15708 Fixes bug 20839; bugfix on 0.2.3.2-alpha. 15709 15710 o Minor bugfixes (directory mirrors): 15711 - Allow relays to use directory mirrors without a DirPort: these 15712 relays need to be contacted over their ORPorts using a begindir 15713 connection. Fixes one case of bug 20711; bugfix on 0.2.8.2-alpha. 15714 - Clarify the message logged when a remote relay is unexpectedly 15715 missing an ORPort or DirPort: users were confusing this with a 15716 local port. Fixes another case of bug 20711; bugfix 15717 on 0.2.8.2-alpha. 15718 15719 o Minor bugfixes (directory system): 15720 - Bridges and relays now use microdescriptors (like clients do) 15721 rather than old-style router descriptors. Now bridges will blend 15722 in with clients in terms of the circuits they build. Fixes bug 15723 6769; bugfix on 0.2.3.2-alpha. 15724 - Download all consensus flavors, descriptors, and authority 15725 certificates when FetchUselessDescriptors is set, regardless of 15726 whether tor is a directory cache or not. Fixes bug 20667; bugfix 15727 on all recent tor versions. 15728 15729 o Minor bugfixes (documentation): 15730 - Update the tor manual page to document every option that can not 15731 be changed while tor is running. Fixes bug 21122. 15732 15733 o Minor bugfixes (ed25519 certificates): 15734 - Correctly interpret ed25519 certificates that would expire some 15735 time after 19 Jan 2038. Fixes bug 20027; bugfix on 0.2.7.2-alpha. 15736 15737 o Minor bugfixes (fallback directories): 15738 - Avoid checking fallback candidates' DirPorts if they are down in 15739 OnionOO. When a relay operator has multiple relays, this 15740 prioritizes relays that are up over relays that are down. Fixes 15741 bug 20926; bugfix on 0.2.8.3-alpha. 15742 - Stop failing when OUTPUT_COMMENTS is True in updateFallbackDirs.py. 15743 Fixes bug 20877; bugfix on 0.2.8.3-alpha. 15744 - Stop failing when a relay has no uptime data in 15745 updateFallbackDirs.py. Fixes bug 20945; bugfix on 0.2.8.1-alpha. 15746 15747 o Minor bugfixes (hidden service): 15748 - Clean up the code for expiring intro points with no associated 15749 circuits. It was causing, rarely, a service with some expiring 15750 introduction points to not open enough additional introduction 15751 points. Fixes part of bug 21302; bugfix on 0.2.7.2-alpha. 15752 - Resolve two possible underflows which could lead to creating and 15753 closing a lot of introduction point circuits in a non-stop loop. 15754 Fixes bug 21302; bugfix on 0.2.7.2-alpha. 15755 - Stop setting the torrc option HiddenServiceStatistics to "0" just 15756 because we're not a bridge or relay. Instead, we preserve whatever 15757 value the user set (or didn't set). Fixes bug 21150; bugfix 15758 on 0.2.6.2-alpha. 15759 15760 o Minor bugfixes (hidden services): 15761 - Make hidden services check for failed intro point connections, 15762 even when they have exceeded their intro point creation limit. 15763 Fixes bug 21596; bugfix on 0.2.7.2-alpha. Reported by Alec Muffett. 15764 - Make hidden services with 8 to 10 introduction points check for 15765 failed circuits immediately after startup. Previously, they would 15766 wait for 5 minutes before performing their first checks. Fixes bug 15767 21594; bugfix on 0.2.3.9-alpha. Reported by Alec Muffett. 15768 - Stop ignoring misconfigured hidden services. Instead, refuse to 15769 start tor until the misconfigurations have been corrected. Fixes 15770 bug 20559; bugfix on multiple commits in 0.2.7.1-alpha 15771 and earlier. 15772 15773 o Minor bugfixes (IPv6): 15774 - Make IPv6-using clients try harder to find an IPv6 directory 15775 server. Fixes bug 20999; bugfix on 0.2.8.2-alpha. 15776 - When IPv6 addresses have not been downloaded yet (microdesc 15777 consensus documents don't list relay IPv6 addresses), use hard- 15778 coded addresses for authorities, fallbacks, and configured 15779 bridges. Now IPv6-only clients can use microdescriptors. Fixes bug 15780 20996; bugfix on b167e82 from 19608 in 0.2.8.5-alpha. 15781 15782 o Minor bugfixes (memory leak at exit): 15783 - Fix a small harmless memory leak at exit of the previously unused 15784 RSA->Ed identity cross-certificate. Fixes bug 17779; bugfix 15785 on 0.2.7.2-alpha. 15786 15787 o Minor bugfixes (onion services): 15788 - Allow the number of introduction points to be as low as 0, rather 15789 than as low as 3. Fixes bug 21033; bugfix on 0.2.7.2-alpha. 15790 15791 o Minor bugfixes (portability): 15792 - Use "OpenBSD" compiler macro instead of "OPENBSD" or "__OpenBSD__". 15793 It is supported by OpenBSD itself, and also by most OpenBSD 15794 variants (such as Bitrig). Fixes bug 20980; bugfix 15795 on 0.1.2.1-alpha. 15796 15797 o Minor bugfixes (portability, also in 0.2.9.9): 15798 - Avoid crashing when Tor is built using headers that contain 15799 CLOCK_MONOTONIC_COARSE, but then tries to run on an older kernel 15800 without CLOCK_MONOTONIC_COARSE. Fixes bug 21035; bugfix 15801 on 0.2.9.1-alpha. 15802 - Fix Libevent detection on platforms without Libevent 1 headers 15803 installed. Fixes bug 21051; bugfix on 0.2.9.1-alpha. 15804 15805 o Minor bugfixes (relay): 15806 - Avoid a double-marked-circuit warning that could happen when we 15807 receive DESTROY cells under heavy load. Fixes bug 20059; bugfix 15808 on 0.1.0.1-rc. 15809 - Honor DataDirectoryGroupReadable when tor is a relay. Previously, 15810 initializing the keys would reset the DataDirectory to 0700 15811 instead of 0750 even if DataDirectoryGroupReadable was set to 1. 15812 Fixes bug 19953; bugfix on 0.0.2pre16. Patch by "redfish". 15813 15814 o Minor bugfixes (testing): 15815 - Fix Raspbian build issues related to missing socket errno in 15816 test_util.c. Fixes bug 21116; bugfix on 0.2.8.2. Patch by "hein". 15817 - Remove undefined behavior from the backtrace generator by removing 15818 its signal handler. Fixes bug 21026; bugfix on 0.2.5.2-alpha. 15819 - Use bash in src/test/test-network.sh. This ensures we reliably 15820 call chutney's newer tools/test-network.sh when available. Fixes 15821 bug 21562; bugfix on 0.2.9.1-alpha. 15822 15823 o Minor bugfixes (tor-resolve): 15824 - The tor-resolve command line tool now rejects hostnames over 255 15825 characters in length. Previously, it would silently truncate them, 15826 which could lead to bugs. Fixes bug 21280; bugfix on 0.0.9pre5. 15827 Patch by "junglefowl". 15828 15829 o Minor bugfixes (unit tests): 15830 - Allow the unit tests to pass even when DNS lookups of bogus 15831 addresses do not fail as expected. Fixes bug 20862 and 20863; 15832 bugfix on unit tests introduced in 0.2.8.1-alpha 15833 through 0.2.9.4-alpha. 15834 15835 o Minor bugfixes (util): 15836 - When finishing writing a file to disk, if we were about to replace 15837 the file with the temporary file created before and we fail to 15838 replace it, remove the temporary file so it doesn't stay on disk. 15839 Fixes bug 20646; bugfix on 0.2.0.7-alpha. Patch by fk. 15840 15841 o Minor bugfixes (Windows services): 15842 - Be sure to initialize the monotonic time subsystem before using 15843 it, even when running as an NT service. Fixes bug 21356; bugfix 15844 on 0.2.9.1-alpha. 15845 15846 o Minor bugfixes (Windows): 15847 - Check for getpagesize before using it to mmap files. This fixes 15848 compilation in some MinGW environments. Fixes bug 20530; bugfix on 15849 0.1.2.1-alpha. Reported by "ice". 15850 15851 o Code simplification and refactoring: 15852 - Abolish all global guard context in entrynodes.c; replace with new 15853 guard_selection_t structure as preparation for proposal 271. 15854 Closes ticket 19858. 15855 - Extract magic numbers in circuituse.c into defined variables. 15856 - Introduce rend_service_is_ephemeral() that tells if given onion 15857 service is ephemeral. Replace unclear NULL-checkings for service 15858 directory with this function. Closes ticket 20526. 15859 - Refactor circuit_is_available_for_use to remove unnecessary check. 15860 - Refactor circuit_predict_and_launch_new for readability and 15861 testability. Closes ticket 18873. 15862 - Refactor code to manipulate global_origin_circuit_list into 15863 separate functions. Closes ticket 20921. 15864 - Refactor large if statement in purpose_needs_anonymity to use 15865 switch statement instead. Closes part of ticket 20077. 15866 - Refactor the hashing API to return negative values for errors, as 15867 is done as throughout the codebase. Closes ticket 20717. 15868 - Remove data structures that were used to index or_connection 15869 objects by their RSA identity digests. These structures are fully 15870 redundant with the similar structures used in the 15871 channel abstraction. 15872 - Remove duplicate code in the channel_write_*cell() functions. 15873 Closes ticket 13827; patch from Pingl. 15874 - Remove redundant behavior of is_sensitive_dir_purpose, refactor to 15875 use only purpose_needs_anonymity. Closes part of ticket 20077. 15876 - The code to generate and parse EXTEND and EXTEND2 cells has been 15877 replaced with code automatically generated by the 15878 "trunnel" utility. 15879 15880 o Documentation (formatting): 15881 - Clean up formatting of tor.1 man page and HTML doc, where <pre> 15882 blocks were incorrectly appearing. Closes ticket 20885. 15883 15884 o Documentation (man page): 15885 - Clarify many options in tor.1 and add some min/max values for 15886 HiddenService options. Closes ticket 21058. 15887 15888 o Documentation: 15889 - Change '1' to 'weight_scale' in consensus bw weights calculation 15890 comments, as that is reality. Closes ticket 20273. Patch 15891 from pastly. 15892 - Clarify that when ClientRejectInternalAddresses is enabled (which 15893 is the default), multicast DNS hostnames for machines on the local 15894 network (of the form *.local) are also rejected. Closes 15895 ticket 17070. 15896 - Correct the value for AuthDirGuardBWGuarantee in the manpage, from 15897 250 KBytes to 2 MBytes. Fixes bug 20435; bugfix on 0.2.5.6-alpha. 15898 - Include the "TBits" unit in Tor's man page. Fixes part of bug 15899 20622; bugfix on 0.2.5.1-alpha. 15900 - Small fixes to the fuzzing documentation. Closes ticket 21472. 15901 - Stop the man page from incorrectly stating that HiddenServiceDir 15902 must already exist. Fixes 20486. 15903 - Update the description of the directory server options in the 15904 manual page, to clarify that a relay no longer needs to set 15905 DirPort in order to be a directory cache. Closes ticket 21720. 15906 15907 o Removed features: 15908 - The AuthDirMaxServersPerAuthAddr option no longer exists: The same 15909 limit for relays running on a single IP applies to authority IP 15910 addresses as well as to non-authority IP addresses. Closes 15911 ticket 20960. 15912 - The UseDirectoryGuards torrc option no longer exists: all users 15913 that use entry guards will also use directory guards. Related to 15914 proposal 271; implements part of ticket 20831. 15915 15916 o Testing: 15917 - Add tests for networkstatus_compute_bw_weights_v10. 15918 - Add unit tests circuit_predict_and_launch_new. 15919 - Extract dummy_origin_circuit_new so it can be used by other 15920 test functions. 15921 - New unit tests for tor_htonll(). Closes ticket 19563. Patch 15922 from "overcaffeinated". 15923 - Perform the coding style checks when running the tests and fail 15924 when coding style violations are found. Closes ticket 5500. 15925 15926 15927 Changes in version 0.2.8.13 - 2017-03-03 15928 Tor 0.2.8.13 backports a security fix from later Tor 15929 releases. Anybody running Tor 0.2.8.12 or earlier should upgrade to this 15930 this release, if for some reason they cannot upgrade to a later 15931 release series, and if they build Tor with the --enable-expensive-hardening 15932 option. 15933 15934 Note that support for Tor 0.2.8.x is ending next year: we will not issue 15935 any fixes for the Tor 0.2.8.x series after 1 Jan 2018. If you need 15936 a Tor release series with longer-term support, we recommend Tor 0.2.9.x. 15937 15938 o Major bugfixes (parsing, backported from 0.3.0.4-rc): 15939 - Fix an integer underflow bug when comparing malformed Tor 15940 versions. This bug could crash Tor when built with 15941 --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor 15942 0.2.9.8, which were built with -ftrapv by default. In other cases 15943 it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix 15944 on 0.0.8pre1. Found by OSS-Fuzz. 15945 15946 o Minor features (geoip): 15947 - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2 15948 Country database. 15949 15950 15951 Changes in version 0.2.7.7 - 2017-03-03 15952 Tor 0.2.7.7 backports a number of security fixes from later Tor 15953 releases. Anybody running Tor 0.2.7.6 or earlier should upgrade to 15954 this release, if for some reason they cannot upgrade to a later 15955 release series. 15956 15957 Note that support for Tor 0.2.7.x is ending this year: we will not issue 15958 any fixes for the Tor 0.2.7.x series after 1 August 2017. If you need 15959 a Tor release series with longer-term support, we recommend Tor 0.2.9.x. 15960 15961 o Directory authority changes (backport from 0.2.8.5-rc): 15962 - Urras is no longer a directory authority. Closes ticket 19271. 15963 15964 o Directory authority changes (backport from 0.2.9.2-alpha): 15965 - The "Tonga" bridge authority has been retired; the new bridge 15966 authority is "Bifroest". Closes tickets 19728 and 19690. 15967 15968 o Directory authority key updates (backport from 0.2.8.1-alpha): 15969 - Update the V3 identity key for the dannenberg directory authority: 15970 it was changed on 18 November 2015. Closes task 17906. Patch 15971 by "teor". 15972 15973 o Major bugfixes (parsing, security, backport from 0.2.9.8): 15974 - Fix a bug in parsing that could cause clients to read a single 15975 byte past the end of an allocated region. This bug could be used 15976 to cause hardened clients (built with --enable-expensive-hardening) 15977 to crash if they tried to visit a hostile hidden service. Non- 15978 hardened clients are only affected depending on the details of 15979 their platform's memory allocator. Fixes bug 21018; bugfix on 15980 0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE- 15981 2016-12-002 and as CVE-2016-1254. 15982 15983 o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha): 15984 - Stop a crash that could occur when a client running with DNSPort 15985 received a query with multiple address types, and the first 15986 address type was not supported. Found and fixed by Scott Dial. 15987 Fixes bug 18710; bugfix on 0.2.5.4-alpha. 15988 - Prevent a class of security bugs caused by treating the contents 15989 of a buffer chunk as if they were a NUL-terminated string. At 15990 least one such bug seems to be present in all currently used 15991 versions of Tor, and would allow an attacker to remotely crash 15992 most Tor instances, especially those compiled with extra compiler 15993 hardening. With this defense in place, such bugs can't crash Tor, 15994 though we should still fix them as they occur. Closes ticket 15995 20384 (TROVE-2016-10-001). 15996 15997 o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha): 15998 - Avoid a difficult-to-trigger heap corruption attack when extending 15999 a smartlist to contain over 16GB of pointers. Fixes bug 18162; 16000 bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely. 16001 Reported by Guido Vranken. 16002 16003 o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha): 16004 - Avoid crashing when running as a DNS proxy. Fixes bug 16248; 16005 bugfix on 0.2.0.1-alpha. Patch from "cypherpunks". 16006 16007 o Major bugfixes (key management, backport from 0.2.8.3-alpha): 16008 - If OpenSSL fails to generate an RSA key, do not retain a dangling 16009 pointer to the previous (uninitialized) key value. The impact here 16010 should be limited to a difficult-to-trigger crash, if OpenSSL is 16011 running an engine that makes key generation failures possible, or 16012 if OpenSSL runs out of memory. Fixes bug 19152; bugfix on 16013 0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and 16014 Baishakhi Ray. 16015 16016 o Major bugfixes (parsing, backported from 0.3.0.4-rc): 16017 - Fix an integer underflow bug when comparing malformed Tor 16018 versions. This bug could crash Tor when built with 16019 --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor 16020 0.2.9.8, which were built with -ftrapv by default. In other cases 16021 it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix 16022 on 0.0.8pre1. Found by OSS-Fuzz. 16023 16024 o Minor features (security, memory erasure, backport from 0.2.8.1-alpha): 16025 - Make memwipe() do nothing when passed a NULL pointer or buffer of 16026 zero size. Check size argument to memwipe() for underflow. Fixes 16027 bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk", 16028 patch by "teor". 16029 16030 o Minor features (bug-resistance, backport from 0.2.8.2-alpha): 16031 - Make Tor survive errors involving connections without a 16032 corresponding event object. Previously we'd fail with an 16033 assertion; now we produce a log message. Related to bug 16248. 16034 16035 o Minor features (geoip): 16036 - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2 16037 Country database. 16038 16039 16040 Changes in version 0.2.6.11 - 2017-03-03 16041 Tor 0.2.6.11 backports a number of security fixes from later Tor 16042 releases. Anybody running Tor 0.2.6.10 or earlier should upgrade to 16043 this release, if for some reason they cannot upgrade to a later 16044 release series. 16045 16046 Note that support for Tor 0.2.6.x is ending this year: we will not issue 16047 any fixes for the Tor 0.2.6.x series after 1 August 2017. If you need 16048 a Tor release series with longer-term support, we recommend Tor 0.2.9.x. 16049 16050 o Directory authority changes (backport from 0.2.8.5-rc): 16051 - Urras is no longer a directory authority. Closes ticket 19271. 16052 16053 o Directory authority changes (backport from 0.2.9.2-alpha): 16054 - The "Tonga" bridge authority has been retired; the new bridge 16055 authority is "Bifroest". Closes tickets 19728 and 19690. 16056 16057 o Directory authority key updates (backport from 0.2.8.1-alpha): 16058 - Update the V3 identity key for the dannenberg directory authority: 16059 it was changed on 18 November 2015. Closes task 17906. Patch 16060 by "teor". 16061 16062 o Major features (security fixes, backport from 0.2.9.4-alpha): 16063 - Prevent a class of security bugs caused by treating the contents 16064 of a buffer chunk as if they were a NUL-terminated string. At 16065 least one such bug seems to be present in all currently used 16066 versions of Tor, and would allow an attacker to remotely crash 16067 most Tor instances, especially those compiled with extra compiler 16068 hardening. With this defense in place, such bugs can't crash Tor, 16069 though we should still fix them as they occur. Closes ticket 16070 20384 (TROVE-2016-10-001). 16071 16072 o Major bugfixes (parsing, security, backport from 0.2.9.8): 16073 - Fix a bug in parsing that could cause clients to read a single 16074 byte past the end of an allocated region. This bug could be used 16075 to cause hardened clients (built with --enable-expensive-hardening) 16076 to crash if they tried to visit a hostile hidden service. Non- 16077 hardened clients are only affected depending on the details of 16078 their platform's memory allocator. Fixes bug 21018; bugfix on 16079 0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE- 16080 2016-12-002 and as CVE-2016-1254. 16081 16082 o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha): 16083 - Stop a crash that could occur when a client running with DNSPort 16084 received a query with multiple address types, and the first 16085 address type was not supported. Found and fixed by Scott Dial. 16086 Fixes bug 18710; bugfix on 0.2.5.4-alpha. 16087 16088 o Major bugfixes (security, correctness, backport from 0.2.7.4-rc): 16089 - Fix an error that could cause us to read 4 bytes before the 16090 beginning of an openssl string. This bug could be used to cause 16091 Tor to crash on systems with unusual malloc implementations, or 16092 systems with unusual hardening installed. Fixes bug 17404; bugfix 16093 on 0.2.3.6-alpha. 16094 16095 o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha): 16096 - Avoid a difficult-to-trigger heap corruption attack when extending 16097 a smartlist to contain over 16GB of pointers. Fixes bug 18162; 16098 bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely. 16099 Reported by Guido Vranken. 16100 16101 o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha): 16102 - Avoid crashing when running as a DNS proxy. Fixes bug 16248; 16103 bugfix on 0.2.0.1-alpha. Patch from "cypherpunks". 16104 16105 o Major bugfixes (guard selection, backport from 0.2.7.6): 16106 - Actually look at the Guard flag when selecting a new directory 16107 guard. When we implemented the directory guard design, we 16108 accidentally started treating all relays as if they have the Guard 16109 flag during guard selection, leading to weaker anonymity and worse 16110 performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered 16111 by Mohsen Imani. 16112 16113 o Major bugfixes (key management, backport from 0.2.8.3-alpha): 16114 - If OpenSSL fails to generate an RSA key, do not retain a dangling 16115 pointer to the previous (uninitialized) key value. The impact here 16116 should be limited to a difficult-to-trigger crash, if OpenSSL is 16117 running an engine that makes key generation failures possible, or 16118 if OpenSSL runs out of memory. Fixes bug 19152; bugfix on 16119 0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and 16120 Baishakhi Ray. 16121 16122 o Major bugfixes (parsing, backported from 0.3.0.4-rc): 16123 - Fix an integer underflow bug when comparing malformed Tor 16124 versions. This bug could crash Tor when built with 16125 --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor 16126 0.2.9.8, which were built with -ftrapv by default. In other cases 16127 it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix 16128 on 0.0.8pre1. Found by OSS-Fuzz. 16129 16130 o Minor features (security, memory erasure, backport from 0.2.8.1-alpha): 16131 - Make memwipe() do nothing when passed a NULL pointer or buffer of 16132 zero size. Check size argument to memwipe() for underflow. Fixes 16133 bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk", 16134 patch by "teor". 16135 16136 o Minor features (bug-resistance, backport from 0.2.8.2-alpha): 16137 - Make Tor survive errors involving connections without a 16138 corresponding event object. Previously we'd fail with an 16139 assertion; now we produce a log message. Related to bug 16248. 16140 16141 o Minor features (geoip): 16142 - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2 16143 Country database. 16144 16145 o Minor bugfixes (compilation, backport from 0.2.7.6): 16146 - Fix a compilation warning with Clang 3.6: Do not check the 16147 presence of an address which can never be NULL. Fixes bug 17781. 16148 16149 16150 Changes in version 0.2.5.13 - 2017-03-03 16151 Tor 0.2.5.13 backports a number of security fixes from later Tor 16152 releases. Anybody running Tor 0.2.5.13 or earlier should upgrade to 16153 this release, if for some reason they cannot upgrade to a later 16154 release series. 16155 16156 Note that support for Tor 0.2.5.x is ending next year: we will not issue 16157 any fixes for the Tor 0.2.5.x series after 1 May 2018. If you need 16158 a Tor release series with longer-term support, we recommend Tor 0.2.9.x. 16159 16160 o Directory authority changes (backport from 0.2.8.5-rc): 16161 - Urras is no longer a directory authority. Closes ticket 19271. 16162 16163 o Directory authority changes (backport from 0.2.9.2-alpha): 16164 - The "Tonga" bridge authority has been retired; the new bridge 16165 authority is "Bifroest". Closes tickets 19728 and 19690. 16166 16167 o Directory authority key updates (backport from 0.2.8.1-alpha): 16168 - Update the V3 identity key for the dannenberg directory authority: 16169 it was changed on 18 November 2015. Closes task 17906. Patch 16170 by "teor". 16171 16172 o Major features (security fixes, backport from 0.2.9.4-alpha): 16173 - Prevent a class of security bugs caused by treating the contents 16174 of a buffer chunk as if they were a NUL-terminated string. At 16175 least one such bug seems to be present in all currently used 16176 versions of Tor, and would allow an attacker to remotely crash 16177 most Tor instances, especially those compiled with extra compiler 16178 hardening. With this defense in place, such bugs can't crash Tor, 16179 though we should still fix them as they occur. Closes ticket 16180 20384 (TROVE-2016-10-001). 16181 16182 o Major bugfixes (parsing, security, backport from 0.2.9.8): 16183 - Fix a bug in parsing that could cause clients to read a single 16184 byte past the end of an allocated region. This bug could be used 16185 to cause hardened clients (built with --enable-expensive-hardening) 16186 to crash if they tried to visit a hostile hidden service. Non- 16187 hardened clients are only affected depending on the details of 16188 their platform's memory allocator. Fixes bug 21018; bugfix on 16189 0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE- 16190 2016-12-002 and as CVE-2016-1254. 16191 16192 o Major bugfixes (security, client, DNS proxy, backport from 0.2.8.3-alpha): 16193 - Stop a crash that could occur when a client running with DNSPort 16194 received a query with multiple address types, and the first 16195 address type was not supported. Found and fixed by Scott Dial. 16196 Fixes bug 18710; bugfix on 0.2.5.4-alpha. 16197 16198 o Major bugfixes (security, correctness, backport from 0.2.7.4-rc): 16199 - Fix an error that could cause us to read 4 bytes before the 16200 beginning of an openssl string. This bug could be used to cause 16201 Tor to crash on systems with unusual malloc implementations, or 16202 systems with unusual hardening installed. Fixes bug 17404; bugfix 16203 on 0.2.3.6-alpha. 16204 16205 o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha): 16206 - Avoid a difficult-to-trigger heap corruption attack when extending 16207 a smartlist to contain over 16GB of pointers. Fixes bug 18162; 16208 bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely. 16209 Reported by Guido Vranken. 16210 16211 o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha): 16212 - Avoid crashing when running as a DNS proxy. Fixes bug 16248; 16213 bugfix on 0.2.0.1-alpha. Patch from "cypherpunks". 16214 16215 o Major bugfixes (guard selection, backport from 0.2.7.6): 16216 - Actually look at the Guard flag when selecting a new directory 16217 guard. When we implemented the directory guard design, we 16218 accidentally started treating all relays as if they have the Guard 16219 flag during guard selection, leading to weaker anonymity and worse 16220 performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered 16221 by Mohsen Imani. 16222 16223 o Major bugfixes (key management, backport from 0.2.8.3-alpha): 16224 - If OpenSSL fails to generate an RSA key, do not retain a dangling 16225 pointer to the previous (uninitialized) key value. The impact here 16226 should be limited to a difficult-to-trigger crash, if OpenSSL is 16227 running an engine that makes key generation failures possible, or 16228 if OpenSSL runs out of memory. Fixes bug 19152; bugfix on 16229 0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and 16230 Baishakhi Ray. 16231 16232 o Major bugfixes (parsing, backported from 0.3.0.4-rc): 16233 - Fix an integer underflow bug when comparing malformed Tor 16234 versions. This bug could crash Tor when built with 16235 --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor 16236 0.2.9.8, which were built with -ftrapv by default. In other cases 16237 it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix 16238 on 0.0.8pre1. Found by OSS-Fuzz. 16239 16240 o Minor features (security, memory erasure, backport from 0.2.8.1-alpha): 16241 - Make memwipe() do nothing when passed a NULL pointer or buffer of 16242 zero size. Check size argument to memwipe() for underflow. Fixes 16243 bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk", 16244 patch by "teor". 16245 16246 o Minor features (bug-resistance, backport from 0.2.8.2-alpha): 16247 - Make Tor survive errors involving connections without a 16248 corresponding event object. Previously we'd fail with an 16249 assertion; now we produce a log message. Related to bug 16248. 16250 16251 o Minor features (geoip): 16252 - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2 16253 Country database. 16254 16255 o Minor bugfixes (compilation, backport from 0.2.7.6): 16256 - Fix a compilation warning with Clang 3.6: Do not check the 16257 presence of an address which can never be NULL. Fixes bug 17781. 16258 16259 o Minor bugfixes (crypto error-handling, backport from 0.2.7.2-alpha): 16260 - Check for failures from crypto_early_init, and refuse to continue. 16261 A previous typo meant that we could keep going with an 16262 uninitialized crypto library, and would have OpenSSL initialize 16263 its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced 16264 when implementing ticket 4900. Patch by "teor". 16265 16266 o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha): 16267 - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on 16268 a client authorized hidden service. Fixes bug 15823; bugfix 16269 on 0.2.1.6-alpha. 16270 16271 16272 Changes in version 0.2.4.28 - 2017-03-03 16273 Tor 0.2.4.28 backports a number of security fixes from later Tor 16274 releases. Anybody running Tor 0.2.4.27 or earlier should upgrade to 16275 this release, if for some reason they cannot upgrade to a later 16276 release series. 16277 16278 Note that support for Tor 0.2.4.x is ending soon: we will not issue 16279 any fixes for the Tor 0.2.4.x series after 1 August 2017. If you need 16280 a Tor release series with long-term support, we recommend Tor 0.2.9.x. 16281 16282 o Directory authority changes (backport from 0.2.8.5-rc): 16283 - Urras is no longer a directory authority. Closes ticket 19271. 16284 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. 16288 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". 16293 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). 16303 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. 16313 16314 o Major bugfixes (security, correctness, backport from 0.2.7.4-rc): 16315 - Fix an error that could cause us to read 4 bytes before the 16316 beginning of an openssl string. This bug could be used to cause 16317 Tor to crash on systems with unusual malloc implementations, or 16318 systems with unusual hardening installed. Fixes bug 17404; bugfix 16319 on 0.2.3.6-alpha. 16320 16321 o Major bugfixes (security, pointers, backport from 0.2.8.2-alpha): 16322 - Avoid a difficult-to-trigger heap corruption attack when extending 16323 a smartlist to contain over 16GB of pointers. Fixes bug 18162; 16324 bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely. 16325 Reported by Guido Vranken. 16326 16327 o Major bugfixes (dns proxy mode, crash, backport from 0.2.8.2-alpha): 16328 - Avoid crashing when running as a DNS proxy. Fixes bug 16248; 16329 bugfix on 0.2.0.1-alpha. Patch from "cypherpunks". 16330 16331 o Major bugfixes (guard selection, backport from 0.2.7.6): 16332 - Actually look at the Guard flag when selecting a new directory 16333 guard. When we implemented the directory guard design, we 16334 accidentally started treating all relays as if they have the Guard 16335 flag during guard selection, leading to weaker anonymity and worse 16336 performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered 16337 by Mohsen Imani. 16338 16339 o Major bugfixes (key management, backport from 0.2.8.3-alpha): 16340 - If OpenSSL fails to generate an RSA key, do not retain a dangling 16341 pointer to the previous (uninitialized) key value. The impact here 16342 should be limited to a difficult-to-trigger crash, if OpenSSL is 16343 running an engine that makes key generation failures possible, or 16344 if OpenSSL runs out of memory. Fixes bug 19152; bugfix on 16345 0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and 16346 Baishakhi Ray. 16347 16348 o Major bugfixes (parsing, backported from 0.3.0.4-rc): 16349 - Fix an integer underflow bug when comparing malformed Tor 16350 versions. This bug could crash Tor when built with 16351 --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor 16352 0.2.9.8, which were built with -ftrapv by default. In other cases 16353 it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix 16354 on 0.0.8pre1. Found by OSS-Fuzz. 16355 16356 o Minor features (security, memory erasure, backport from 0.2.8.1-alpha): 16357 - Make memwipe() do nothing when passed a NULL pointer or buffer of 16358 zero size. Check size argument to memwipe() for underflow. Fixes 16359 bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk", 16360 patch by "teor". 16361 16362 o Minor features (bug-resistance, backport from 0.2.8.2-alpha): 16363 - Make Tor survive errors involving connections without a 16364 corresponding event object. Previously we'd fail with an 16365 assertion; now we produce a log message. Related to bug 16248. 16366 16367 o Minor features (DoS-resistance, backport from 0.2.7.1-alpha): 16368 - Make it harder for attackers to overload hidden services with 16369 introductions, by blocking multiple introduction requests on the 16370 same circuit. Resolves ticket 15515. 16371 16372 o Minor features (geoip): 16373 - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2 16374 Country database. 16375 16376 o Minor bugfixes (compilation, backport from 0.2.7.6): 16377 - Fix a compilation warning with Clang 3.6: Do not check the 16378 presence of an address which can never be NULL. Fixes bug 17781. 16379 16380 o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha): 16381 - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on 16382 a client authorized hidden service. Fixes bug 15823; bugfix 16383 on 0.2.1.6-alpha. 16384 16385 16386 Changes in version 0.2.9.10 - 2017-03-01 16387 Tor 0.2.9.10 backports a security fix from later Tor release. It also 16388 includes fixes for some major issues affecting directory authorities, 16389 LibreSSL compatibility, and IPv6 correctness. 16390 16391 The Tor 0.2.9.x release series is now marked as a long-term-support 16392 series. We intend to backport security fixes to 0.2.9.x until at 16393 least January of 2020. 16394 16395 o Major bugfixes (directory authority, 0.3.0.3-alpha): 16396 - During voting, when marking a relay as a probable sybil, do not 16397 clear its BadExit flag: sybils can still be bad in other ways 16398 too. (We still clear the other flags.) Fixes bug 21108; bugfix 16399 on 0.2.0.13-alpha. 16400 16401 o Major bugfixes (IPv6 Exits, backport from 0.3.0.3-alpha): 16402 - Stop rejecting all IPv6 traffic on Exits whose exit policy rejects 16403 any IPv6 addresses. Instead, only reject a port over IPv6 if the 16404 exit policy rejects that port on more than an IPv6 /16 of 16405 addresses. This bug was made worse by 17027 in 0.2.8.1-alpha, 16406 which rejected a relay's own IPv6 address by default. Fixes bug 16407 21357; bugfix on commit 004f3f4e53 in 0.2.4.7-alpha. 16408 16409 o Major bugfixes (parsing, also in 0.3.0.4-rc): 16410 - Fix an integer underflow bug when comparing malformed Tor 16411 versions. This bug could crash Tor when built with 16412 --enable-expensive-hardening, or on Tor 0.2.9.1-alpha through Tor 16413 0.2.9.8, which were built with -ftrapv by default. In other cases 16414 it was harmless. Part of TROVE-2017-001. Fixes bug 21278; bugfix 16415 on 0.0.8pre1. Found by OSS-Fuzz. 16416 16417 o Minor features (directory authorities, also in 0.3.0.4-rc): 16418 - Directory authorities now reject descriptors that claim to be 16419 malformed versions of Tor. Helps prevent exploitation of 16420 bug 21278. 16421 - Reject version numbers with components that exceed INT32_MAX. 16422 Otherwise 32-bit and 64-bit platforms would behave inconsistently. 16423 Fixes bug 21450; bugfix on 0.0.8pre1. 16424 16425 o Minor features (geoip): 16426 - Update geoip and geoip6 to the February 8 2017 Maxmind GeoLite2 16427 Country database. 16428 16429 o Minor features (portability, compilation, backport from 0.3.0.3-alpha): 16430 - Autoconf now checks to determine if OpenSSL structures are opaque, 16431 instead of explicitly checking for OpenSSL version numbers. Part 16432 of ticket 21359. 16433 - Support building with recent LibreSSL code that uses opaque 16434 structures. Closes ticket 21359. 16435 16436 o Minor bugfixes (code correctness, also in 0.3.0.4-rc): 16437 - Repair a couple of (unreachable or harmless) cases of the risky 16438 comparison-by-subtraction pattern that caused bug 21278. 16439 16440 o Minor bugfixes (tor-resolve, backport from 0.3.0.3-alpha): 16441 - The tor-resolve command line tool now rejects hostnames over 255 16442 characters in length. Previously, it would silently truncate them, 16443 which could lead to bugs. Fixes bug 21280; bugfix on 0.0.9pre5. 16444 Patch by "junglefowl". 16445 16446 16447 Changes in version 0.2.9.9 - 2017-01-23 16448 Tor 0.2.9.9 fixes a denial-of-service bug where an attacker could 16449 cause relays and clients to crash, even if they were not built with 16450 the --enable-expensive-hardening option. This bug affects all 0.2.9.x 16451 versions, and also affects 0.3.0.1-alpha: all relays running an affected 16452 version should upgrade. 16453 16454 This release also resolves a client-side onion service reachability 16455 bug, and resolves a pair of small portability issues. 16456 16457 o Major bugfixes (security): 16458 - Downgrade the "-ftrapv" option from "always on" to "only on when 16459 --enable-expensive-hardening is provided." This hardening option, 16460 like others, can turn survivable bugs into crashes -- and having 16461 it on by default made a (relatively harmless) integer overflow bug 16462 into a denial-of-service bug. Fixes bug 21278 (TROVE-2017-001); 16463 bugfix on 0.2.9.1-alpha. 16464 16465 o Major bugfixes (client, onion service): 16466 - Fix a client-side onion service reachability bug, where multiple 16467 socks requests to an onion service (or a single slow request) 16468 could cause us to mistakenly mark some of the service's 16469 introduction points as failed, and we cache that failure so 16470 eventually we run out and can't reach the service. Also resolves a 16471 mysterious "Remote server sent bogus reason code 65021" log 16472 warning. The bug was introduced in ticket 17218, where we tried to 16473 remember the circuit end reason as a uint16_t, which mangled 16474 negative values. Partially fixes bug 21056 and fixes bug 20307; 16475 bugfix on 0.2.8.1-alpha. 16476 16477 o Minor features (geoip): 16478 - Update geoip and geoip6 to the January 4 2017 Maxmind GeoLite2 16479 Country database. 16480 16481 o Minor bugfixes (portability): 16482 - Avoid crashing when Tor is built using headers that contain 16483 CLOCK_MONOTONIC_COARSE, but then tries to run on an older kernel 16484 without CLOCK_MONOTONIC_COARSE. Fixes bug 21035; bugfix 16485 on 0.2.9.1-alpha. 16486 - Fix Libevent detection on platforms without Libevent 1 headers 16487 installed. Fixes bug 21051; bugfix on 0.2.9.1-alpha. 16488 16489 16490 Changes in version 0.2.8.12 - 2016-12-19 16491 Tor 0.2.8.12 backports a fix for a medium-severity issue (bug 21018 16492 below) where Tor clients could crash when attempting to visit a 16493 hostile hidden service. Clients are recommended to upgrade as packages 16494 become available for their systems. 16495 16496 It also includes an updated list of fallback directories, backported 16497 from 0.2.9. 16498 16499 Now that the Tor 0.2.9 series is stable, only major bugfixes will be 16500 backported to 0.2.8 in the future. 16501 16502 o Major bugfixes (parsing, security, backported from 0.2.9.8): 16503 - Fix a bug in parsing that could cause clients to read a single 16504 byte past the end of an allocated region. This bug could be used 16505 to cause hardened clients (built with --enable-expensive-hardening) 16506 to crash if they tried to visit a hostile hidden service. Non- 16507 hardened clients are only affected depending on the details of 16508 their platform's memory allocator. Fixes bug 21018; bugfix on 16509 0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE- 16510 2016-12-002 and as CVE-2016-1254. 16511 16512 o Minor features (fallback directory list, backported from 0.2.9.8): 16513 - Replace the 81 remaining fallbacks of the 100 originally 16514 introduced in Tor 0.2.8.3-alpha in March 2016, with a list of 177 16515 fallbacks (123 new, 54 existing, 27 removed) generated in December 16516 2016. Resolves ticket 20170. 16517 16518 o Minor features (geoip, backported from 0.2.9.7-rc): 16519 - Update geoip and geoip6 to the December 7 2016 Maxmind GeoLite2 16520 Country database. 16521 16522 16523 Changes in version 0.2.9.8 - 2016-12-19 16524 Tor 0.2.9.8 is the first stable release of the Tor 0.2.9 series. 16525 16526 The Tor 0.2.9 series makes mandatory a number of security features 16527 that were formerly optional. It includes support for a new shared- 16528 randomness protocol that will form the basis for next generation 16529 hidden services, includes a single-hop hidden service mode for 16530 optimizing .onion services that don't actually want to be hidden, 16531 tries harder not to overload the directory authorities with excessive 16532 downloads, and supports a better protocol versioning scheme for 16533 improved compatibility with other implementations of the Tor protocol. 16534 16535 And of course, there are numerous other bugfixes and improvements. 16536 16537 This release also includes a fix for a medium-severity issue (bug 16538 21018 below) where Tor clients could crash when attempting to visit a 16539 hostile hidden service. Clients are recommended to upgrade as packages 16540 become available for their systems. 16541 16542 Below are listed the changes since Tor 0.2.8.11. For a list of 16543 changes since 0.2.9.7-rc, see the ChangeLog file. 16544 16545 o New system requirements: 16546 - When building with OpenSSL, Tor now requires version 1.0.1 or 16547 later. OpenSSL 1.0.0 and earlier are no longer supported by the 16548 OpenSSL team, and should not be used. Closes ticket 20303. 16549 - Tor now requires Libevent version 2.0.10-stable or later. Older 16550 versions of Libevent have less efficient backends for several 16551 platforms, and lack the DNS code that we use for our server-side 16552 DNS support. This implements ticket 19554. 16553 - Tor now requires zlib version 1.2 or later, for security, 16554 efficiency, and (eventually) gzip support. (Back when we started, 16555 zlib 1.1 and zlib 1.0 were still found in the wild. 1.2 was 16556 released in 2003. We recommend the latest version.) 16557 16558 o Deprecated features: 16559 - A number of DNS-cache-related sub-options for client ports are now 16560 deprecated for security reasons, and may be removed in a future 16561 version of Tor. (We believe that client-side DNS caching is a bad 16562 idea for anonymity, and you should not turn it on.) The options 16563 are: CacheDNS, CacheIPv4DNS, CacheIPv6DNS, UseDNSCache, 16564 UseIPv4Cache, and UseIPv6Cache. 16565 - A number of options are deprecated for security reasons, and may 16566 be removed in a future version of Tor. The options are: 16567 AllowDotExit, AllowInvalidNodes, AllowSingleHopCircuits, 16568 AllowSingleHopExits, ClientDNSRejectInternalAddresses, 16569 CloseHSClientCircuitsImmediatelyOnTimeout, 16570 CloseHSServiceRendCircuitsImmediatelyOnTimeout, 16571 ExcludeSingleHopRelays, FastFirstHopPK, TLSECGroup, 16572 UseNTorHandshake, and WarnUnsafeSocks. 16573 - The *ListenAddress options are now deprecated as unnecessary: the 16574 corresponding *Port options should be used instead. These options 16575 may someday be removed. The affected options are: 16576 ControlListenAddress, DNSListenAddress, DirListenAddress, 16577 NATDListenAddress, ORListenAddress, SocksListenAddress, 16578 and TransListenAddress. 16579 16580 o Major bugfixes (parsing, security, new since 0.2.9.7-rc): 16581 - Fix a bug in parsing that could cause clients to read a single 16582 byte past the end of an allocated region. This bug could be used 16583 to cause hardened clients (built with --enable-expensive-hardening) 16584 to crash if they tried to visit a hostile hidden service. Non- 16585 hardened clients are only affected depending on the details of 16586 their platform's memory allocator. Fixes bug 21018; bugfix on 16587 0.2.0.8-alpha. Found by using libFuzzer. Also tracked as TROVE- 16588 2016-12-002 and as CVE-2016-1254. 16589 16590 o Major features (build, hardening): 16591 - Tor now builds with -ftrapv by default on compilers that support 16592 it. This option detects signed integer overflow (which C forbids), 16593 and turns it into a hard-failure. We do not apply this option to 16594 code that needs to run in constant time to avoid side-channels; 16595 instead, we use -fwrapv in that code. Closes ticket 17983. 16596 - When --enable-expensive-hardening is selected, stop applying the 16597 clang/gcc sanitizers to code that needs to run in constant time. 16598 Although we are aware of no introduced side-channels, we are not 16599 able to prove that there are none. Related to ticket 17983. 16600 16601 o Major features (circuit building, security): 16602 - Authorities, relays, and clients now require ntor keys in all 16603 descriptors, for all hops (except for rare hidden service protocol 16604 cases), for all circuits, and for all other roles. Part of 16605 ticket 19163. 16606 - Authorities, relays, and clients only use ntor, except for 16607 rare cases in the hidden service protocol. Part of ticket 19163. 16608 16609 o Major features (compilation): 16610 - Our big list of extra GCC warnings is now enabled by default when 16611 building with GCC (or with anything like Clang that claims to be 16612 GCC-compatible). To make all warnings into fatal compilation 16613 errors, pass --enable-fatal-warnings to configure. Closes 16614 ticket 19044. 16615 - Use the Autoconf macro AC_USE_SYSTEM_EXTENSIONS to automatically 16616 turn on C and POSIX extensions. (Previously, we attempted to do 16617 this on an ad hoc basis.) Closes ticket 19139. 16618 16619 o Major features (directory authorities, hidden services): 16620 - Directory authorities can now perform the shared randomness 16621 protocol specified by proposal 250. Using this protocol, directory 16622 authorities generate a global fresh random value every day. In the 16623 future, this value will be used by hidden services to select 16624 HSDirs. This release implements the directory authority feature; 16625 the hidden service side will be implemented in the future as part 16626 of proposal 224. Resolves ticket 16943; implements proposal 250. 16627 16628 o Major features (downloading, random exponential backoff): 16629 - When we fail to download an object from a directory service, wait 16630 for an (exponentially increasing) randomized amount of time before 16631 retrying, rather than a fixed interval as we did before. This 16632 prevents a group of Tor instances from becoming too synchronized, 16633 or a single Tor instance from becoming too predictable, in its 16634 download schedule. Closes ticket 15942. 16635 16636 o Major features (resource management): 16637 - Tor can now notice it is about to run out of sockets, and 16638 preemptively close connections of lower priority. (This feature is 16639 off by default for now, since the current prioritizing method is 16640 yet not mature enough. You can enable it by setting 16641 "DisableOOSCheck 0", but watch out: it might close some sockets 16642 you would rather have it keep.) Closes ticket 18640. 16643 16644 o Major features (single-hop "hidden" services): 16645 - Add experimental HiddenServiceSingleHopMode and 16646 HiddenServiceNonAnonymousMode options. When both are set to 1, 16647 every hidden service on that Tor instance becomes a non-anonymous 16648 Single Onion Service. Single Onions make one-hop (direct) 16649 connections to their introduction and rendezvous points. One-hop 16650 circuits make Single Onion servers easily locatable, but clients 16651 remain location-anonymous. This is compatible with the existing 16652 hidden service implementation, and works on the current Tor 16653 network without any changes to older relays or clients. Implements 16654 proposal 260, completes ticket 17178. Patch by teor and asn. 16655 16656 o Major features (subprotocol versions): 16657 - Tor directory authorities now vote on a set of recommended 16658 "subprotocol versions", and on a set of required subprotocol 16659 versions. Clients and relays that lack support for a _required_ 16660 subprotocol version will not start; those that lack support for a 16661 _recommended_ subprotocol version will warn the user to upgrade. 16662 This change allows compatible implementations of the Tor protocol(s) 16663 to exist without pretending to be 100% bug-compatible with 16664 particular releases of Tor itself. Closes ticket 19958; implements 16665 part of proposal 264. 16666 16667 o Major bugfixes (circuit building): 16668 - Hidden service client-to-intro-point and service-to-rendezvous- 16669 point circuits use the TAP key supplied by the protocol, to avoid 16670 epistemic attacks. Fixes bug 19163; bugfix on 0.2.4.18-rc. 16671 16672 o Major bugfixes (download scheduling): 16673 - Avoid resetting download status for consensuses hourly, since we 16674 already have another, smarter retry mechanism. Fixes bug 8625; 16675 bugfix on 0.2.0.9-alpha. 16676 - If a consensus expires while we are waiting for certificates to 16677 download, stop waiting for certificates. 16678 - If we stop waiting for certificates less than a minute after we 16679 started downloading them, do not consider the certificate download 16680 failure a separate failure. Fixes bug 20533; bugfix 16681 on 0.2.0.9-alpha. 16682 - When using exponential backoff in test networks, use a lower 16683 exponent, so the delays do not vary as much. This helps test 16684 networks bootstrap consistently. Fixes bug 20597; bugfix on 20499. 16685 16686 o Major bugfixes (exit policies): 16687 - Avoid disclosing exit outbound bind addresses, configured port 16688 bind addresses, and local interface addresses in relay descriptors 16689 by default under ExitPolicyRejectPrivate. Instead, only reject 16690 these (otherwise unlisted) addresses if 16691 ExitPolicyRejectLocalInterfaces is set. Fixes bug 18456; bugfix on 16692 0.2.7.2-alpha. Patch by teor. 16693 16694 o Major bugfixes (hidden services): 16695 - Allow Tor clients with appropriate controllers to work with 16696 FetchHidServDescriptors set to 0. Previously, this option also 16697 disabled descriptor cache lookup, thus breaking hidden services 16698 entirely. Fixes bug 18704; bugfix on 0.2.0.20-rc. Patch by "twim". 16699 - Clients now require hidden services to include the TAP keys for 16700 their intro points in the hidden service descriptor. This prevents 16701 an inadvertent upgrade to ntor, which a malicious hidden service 16702 could use to distinguish clients by consensus version. Fixes bug 16703 20012; bugfix on 0.2.4.8-alpha. Patch by teor. 16704 16705 o Major bugfixes (relay, resolver, logging): 16706 - For relays that don't know their own address, avoid attempting a 16707 local hostname resolve for each descriptor we download. This 16708 will cut down on the number of "Success: chose address 'x.x.x.x'" 16709 log lines, and also avoid confusing clock jumps if the resolver 16710 is slow. Fixes bugs 20423 and 20610; bugfix on 0.2.8.1-alpha. 16711 16712 o Minor features (port flags): 16713 - Add new flags to the *Port options to give finer control over which 16714 requests are allowed. The flags are NoDNSRequest, NoOnionTraffic, 16715 and the synthetic flag OnionTrafficOnly, which is equivalent to 16716 NoDNSRequest, NoIPv4Traffic, and NoIPv6Traffic. Closes enhancement 16717 18693; patch by "teor". 16718 16719 o Minor features (build, hardening): 16720 - Detect and work around a libclang_rt problem that would prevent 16721 clang from finding __mulodi4() on some 32-bit platforms, and thus 16722 keep -ftrapv from linking on those systems. Closes ticket 19079. 16723 - When building on a system without runtime support for the runtime 16724 hardening options, try to log a useful warning at configuration 16725 time, rather than an incomprehensible warning at link time. If 16726 expensive hardening was requested, this warning becomes an error. 16727 Closes ticket 18895. 16728 16729 o Minor features (client, directory): 16730 - Since authorities now omit all routers that lack the Running and 16731 Valid flags, we assume that any relay listed in the consensus must 16732 have those flags. Closes ticket 20001; implements part of 16733 proposal 272. 16734 16735 o Minor features (code safety): 16736 - In our integer-parsing functions, ensure that the maximum value we 16737 allow is no smaller than the minimum value. Closes ticket 19063; 16738 patch from "U+039b". 16739 16740 o Minor features (compilation, portability): 16741 - Compile correctly on MacOS 10.12 (aka "Sierra"). Closes 16742 ticket 20241. 16743 16744 o Minor features (config): 16745 - Warn users when descriptor and port addresses are inconsistent. 16746 Mitigates bug 13953; patch by teor. 16747 16748 o Minor features (controller): 16749 - Allow controllers to configure basic client authorization on 16750 hidden services when they create them with the ADD_ONION controller 16751 command. Implements ticket 15588. Patch by "special". 16752 - Fire a STATUS_SERVER controller event whenever the hibernation 16753 status changes between "awake"/"soft"/"hard". Closes ticket 18685. 16754 - Implement new GETINFO queries for all downloads that use 16755 download_status_t to schedule retries. This allows controllers to 16756 examine the schedule for pending downloads. Closes ticket 19323. 16757 16758 o Minor features (development tools, etags): 16759 - Teach the "make tags" Makefile target how to correctly find 16760 "MOCK_IMPL" function definitions. Patch from nherring; closes 16761 ticket 16869. 16762 16763 o Minor features (directory authority): 16764 - After voting, if the authorities decide that a relay is not 16765 "Valid", they no longer include it in the consensus at all. Closes 16766 ticket 20002; implements part of proposal 272. 16767 - Directory authorities now only give the Guard flag to a relay if 16768 they are also giving it the Stable flag. This change allows us to 16769 simplify path selection for clients. It should have minimal effect 16770 in practice, since >99% of Guards already have the Stable flag. 16771 Implements ticket 18624. 16772 - Directory authorities now write their v3-status-votes file out to 16773 disk earlier in the consensus process, so we have a record of the 16774 votes even if we abort the consensus process. Resolves 16775 ticket 19036. 16776 16777 o Minor features (fallback directory list, new since 0.2.9.7-rc): 16778 - Replace the 81 remaining fallbacks of the 100 originally 16779 introduced in Tor 0.2.8.3-alpha in March 2016, with a list of 177 16780 fallbacks (123 new, 54 existing, 27 removed) generated in December 16781 2016. Resolves ticket 20170. 16782 16783 o Minor features (hidden service): 16784 - Stop being so strict about the payload length of "rendezvous1" 16785 cells. We used to be locked in to the "TAP" handshake length, and 16786 now we can handle better handshakes like "ntor". Resolves 16787 ticket 18998. 16788 16789 o Minor features (infrastructure, time): 16790 - Tor now includes an improved timer backend, so that we can 16791 efficiently support tens or hundreds of thousands of concurrent 16792 timers, as will be needed for some of our planned anti-traffic- 16793 analysis work. This code is based on William Ahern's "timeout.c" 16794 project, which implements a "tickless hierarchical timing wheel". 16795 Closes ticket 18365. 16796 - Tor now uses the operating system's monotonic timers (where 16797 available) for internal fine-grained timing. Previously we would 16798 look at the system clock, and then attempt to compensate for the 16799 clock running backwards. Closes ticket 18908. 16800 16801 o Minor features (logging): 16802 - Add a set of macros to check nonfatal assertions, for internal 16803 use. Migrating more of our checks to these should help us avoid 16804 needless crash bugs. Closes ticket 18613. 16805 - Provide a more useful warning message when configured with an 16806 invalid Nickname. Closes ticket 18300; patch from "icanhasaccount". 16807 - When dumping unparseable router descriptors, optionally store them 16808 in separate files, named by digest, up to a configurable size 16809 limit. You can change the size limit by setting the 16810 MaxUnparseableDescSizeToLog option, and disable this feature by 16811 setting that option to 0. Closes ticket 18322. 16812 16813 o Minor features (performance): 16814 - Change the "optimistic data" extension from "off by default" to 16815 "on by default". The default was ordinarily overridden by a 16816 consensus option, but when clients were bootstrapping for the 16817 first time, they would not have a consensus to get the option 16818 from. Changing this default saves a round-trip during startup. 16819 Closes ticket 18815. 16820 16821 o Minor features (relay, usability): 16822 - When the directory authorities refuse a bad relay's descriptor, 16823 encourage the relay operator to contact us. Many relay operators 16824 won't notice this line in their logs, but it's a win if even a few 16825 learn why we don't like what their relay was doing. Resolves 16826 ticket 18760. 16827 16828 o Minor features (security, TLS): 16829 - Servers no longer support clients that lack AES ciphersuites. 16830 (3DES is no longer considered an acceptable cipher.) We believe 16831 that no such Tor clients currently exist, since Tor has required 16832 OpenSSL 0.9.7 or later since 2009. Closes ticket 19998. 16833 16834 o Minor features (testing): 16835 - Disable memory protections on OpenBSD when performing our unit 16836 tests for memwipe(). The test deliberately invokes undefined 16837 behavior, and the OpenBSD protections interfere with this. Patch 16838 from "rubiate". Closes ticket 20066. 16839 - Move the test-network.sh script to chutney, and modify tor's test- 16840 network.sh to call the (newer) chutney version when available. 16841 Resolves ticket 19116. Patch by teor. 16842 - Use the lcov convention for marking lines as unreachable, so that 16843 we don't count them when we're generating test coverage data. 16844 Update our coverage tools to understand this convention. Closes 16845 ticket 16792. 16846 - Our link-handshake unit tests now check that when invalid 16847 handshakes fail, they fail with the error messages we expected. 16848 - Our unit testing code that captures log messages no longer 16849 prevents them from being written out if the user asked for them 16850 (by passing --debug or --info or --notice or --warn to the "test" 16851 binary). This change prevents us from missing unexpected log 16852 messages simply because we were looking for others. Related to 16853 ticket 19999. 16854 - The unit tests now log all warning messages with the "BUG" flag. 16855 Previously, they only logged errors by default. This change will 16856 help us make our testing code more correct, and make sure that we 16857 only hit this code when we mean to. In the meantime, however, 16858 there will be more warnings in the unit test logs than before. 16859 This is preparatory work for ticket 19999. 16860 - The unit tests now treat any failure of a "tor_assert_nonfatal()" 16861 assertion as a test failure. 16862 - We've done significant work to make the unit tests run faster. 16863 16864 o Minor features (testing, ipv6): 16865 - Add the hs-ipv6 chutney target to make test-network-all's IPv6 16866 tests. Remove bridges+hs, as it's somewhat redundant. This 16867 requires a recent chutney version that supports IPv6 clients, 16868 relays, and authorities. Closes ticket 20069; patch by teor. 16869 - Add the single-onion and single-onion-ipv6 chutney targets to 16870 "make test-network-all". This requires a recent chutney version 16871 with the single onion network flavors (git c72a652 or later). 16872 Closes ticket 20072; patch by teor. 16873 16874 o Minor features (Tor2web): 16875 - Make Tor2web clients respect ReachableAddresses. This feature was 16876 inadvertently enabled in 0.2.8.6, then removed by bugfix 19973 on 16877 0.2.8.7. Implements feature 20034. Patch by teor. 16878 16879 o Minor features (unix domain sockets): 16880 - When configuring a unix domain socket for a SocksPort, 16881 ControlPort, or Hidden service, you can now wrap the address in 16882 quotes, using C-style escapes inside the quotes. This allows unix 16883 domain socket paths to contain spaces. Resolves ticket 18753. 16884 16885 o Minor features (user interface): 16886 - Tor now supports the ability to declare options deprecated, so 16887 that we can recommend that people stop using them. Previously, this 16888 was done in an ad-hoc way. There is a new --list-deprecated-options 16889 command-line option to list all of the deprecated options. Closes 16890 ticket 19820. 16891 16892 o Minor features (virtual addresses): 16893 - Increase the maximum number of bits for the IPv6 virtual network 16894 prefix from 16 to 104. In this way, the condition for address 16895 allocation is less restrictive. Closes ticket 20151; feature 16896 on 0.2.4.7-alpha. 16897 16898 o Minor bug fixes (circuits): 16899 - Use the CircuitBuildTimeout option whenever 16900 LearnCircuitBuildTimeout is disabled. Previously, we would respect 16901 the option when a user disabled it, but not when it was disabled 16902 because some other option was set. Fixes bug 20073; bugfix on 16903 0.2.4.12-alpha. Patch by teor. 16904 16905 o Minor bugfixes (build): 16906 - The current Git revision when building from a local repository is 16907 now detected correctly when using git worktrees. Fixes bug 20492; 16908 bugfix on 0.2.3.9-alpha. 16909 16910 o Minor bugfixes (relay address discovery): 16911 - Stop reordering IP addresses returned by the OS. This makes it 16912 more likely that Tor will guess the same relay IP address every 16913 time. Fixes issue 20163; bugfix on 0.2.7.1-alpha, ticket 17027. 16914 Reported by René Mayrhofer, patch by "cypherpunks". 16915 16916 o Minor bugfixes (memory allocation): 16917 - Change how we allocate memory for large chunks on buffers, to 16918 avoid a (currently impossible) integer overflow, and to waste less 16919 space when allocating unusually large chunks. Fixes bug 20081; 16920 bugfix on 0.2.0.16-alpha. Issue identified by Guido Vranken. 16921 16922 o Minor bugfixes (bootstrap): 16923 - Remember the directory server we fetched the consensus or previous 16924 certificates from, and use it to fetch future authority 16925 certificates. This change improves bootstrapping performance. 16926 Fixes bug 18963; bugfix on 0.2.8.1-alpha. 16927 16928 o Minor bugfixes (circuits): 16929 - Make sure extend_info_from_router() is only called on servers. 16930 Fixes bug 19639; bugfix on 0.2.8.1-alpha. 16931 16932 o Minor bugfixes (client, fascistfirewall): 16933 - Avoid spurious warnings when ReachableAddresses or FascistFirewall 16934 is set. Fixes bug 20306; bugfix on 0.2.8.2-alpha. 16935 16936 o Minor bugfixes (client, unix domain sockets): 16937 - Disable IsolateClientAddr when using AF_UNIX backed SocksPorts as 16938 the client address is meaningless. Fixes bug 20261; bugfix 16939 on 0.2.6.3-alpha. 16940 16941 o Minor bugfixes (code style): 16942 - Fix an integer signedness conversion issue in the case conversion 16943 tables. Fixes bug 19168; bugfix on 0.2.1.11-alpha. 16944 16945 o Minor bugfixes (compilation): 16946 - Build correctly on versions of libevent2 without support for 16947 evutil_secure_rng_add_bytes(). Fixes bug 19904; bugfix 16948 on 0.2.5.4-alpha. 16949 - When building with Clang, use a full set of GCC warnings. 16950 (Previously, we included only a subset, because of the way we 16951 detected them.) Fixes bug 19216; bugfix on 0.2.0.1-alpha. 16952 - Detect Libevent2 functions correctly on systems that provide 16953 libevent2, but where libevent1 is linked with -levent. Fixes bug 16954 19904; bugfix on 0.2.2.24-alpha. Patch from Rubiate. 16955 - Run correctly when built on Windows build environments that 16956 require _vcsprintf(). Fixes bug 20560; bugfix on 0.2.2.11-alpha. 16957 16958 o Minor bugfixes (configuration): 16959 - When parsing quoted configuration values from the torrc file, 16960 handle Windows line endings correctly. Fixes bug 19167; bugfix on 16961 0.2.0.16-alpha. Patch from "Pingl". 16962 16963 o Minor bugfixes (directory authority): 16964 - Authorities now sort the "package" lines in their votes, for ease 16965 of debugging. (They are already sorted in consensus documents.) 16966 Fixes bug 18840; bugfix on 0.2.6.3-alpha. 16967 - Die with a more useful error when the operator forgets to place 16968 the authority_signing_key file into the keys directory. This 16969 avoids an uninformative assert & traceback about having an invalid 16970 key. Fixes bug 20065; bugfix on 0.2.0.1-alpha. 16971 - When allowing private addresses, mark Exits that only exit to 16972 private locations as such. Fixes bug 20064; bugfix 16973 on 0.2.2.9-alpha. 16974 - When parsing a detached signature, make sure we use the length of 16975 the digest algorithm instead of a hardcoded DIGEST256_LEN in 16976 order to avoid comparing bytes out-of-bounds with a smaller digest 16977 length such as SHA1. Fixes bug 19066; bugfix on 0.2.2.6-alpha. 16978 16979 o Minor bugfixes (getpass): 16980 - Defensively fix a non-triggerable heap corruption at do_getpass() 16981 to protect ourselves from mistakes in the future. Fixes bug 16982 19223; bugfix on 0.2.7.3-rc. Bug found by Guido Vranken, patch 16983 by nherring. 16984 16985 o Minor bugfixes (guard selection): 16986 - Don't mark guards as unreachable if connection_connect() fails. 16987 That function fails for local reasons, so it shouldn't reveal 16988 anything about the status of the guard. Fixes bug 14334; bugfix 16989 on 0.2.3.10-alpha. 16990 - Use a single entry guard even if the NumEntryGuards consensus 16991 parameter is not provided. Fixes bug 17688; bugfix 16992 on 0.2.5.6-alpha. 16993 16994 o Minor bugfixes (hidden services): 16995 - Increase the minimum number of internal circuits we preemptively 16996 build from 2 to 3, so a circuit is available when a client 16997 connects to another onion service. Fixes bug 13239; bugfix 16998 on 0.1.0.1-rc. 16999 - Allow hidden services to run on IPv6 addresses even when the 17000 IPv6Exit option is not set. Fixes bug 18357; bugfix 17001 on 0.2.4.7-alpha. 17002 - Stop logging intro point details to the client log on certain 17003 error conditions. Fixed as part of bug 20012; bugfix on 17004 0.2.4.8-alpha. Patch by teor. 17005 - When deleting an ephemeral hidden service, close its intro points 17006 even if they are not completely open. Fixes bug 18604; bugfix 17007 on 0.2.7.1-alpha. 17008 - When configuring hidden services, check every hidden service 17009 directory's permissions. Previously, we only checked the last 17010 hidden service. Fixes bug 20529; bugfix on 0.2.6.2-alpha. 17011 17012 o Minor bugfixes (IPv6, testing): 17013 - Check for IPv6 correctly on Linux when running test networks. 17014 Fixes bug 19905; bugfix on 0.2.7.3-rc; patch by teor. 17015 17016 o Minor bugfixes (Linux seccomp2 sandbox): 17017 - Add permission to run the sched_yield() and sigaltstack() system 17018 calls, in order to support versions of Tor compiled with asan or 17019 ubsan code that use these calls. Now "sandbox 1" and 17020 "--enable-expensive-hardening" should be compatible on more 17021 systems. Fixes bug 20063; bugfix on 0.2.5.1-alpha. 17022 17023 o Minor bugfixes (logging): 17024 - Downgrade a harmless log message about the 17025 pending_entry_connections list from "warn" to "info". Mitigates 17026 bug 19926. 17027 - Log a more accurate message when we fail to dump a microdescriptor. 17028 Fixes bug 17758; bugfix on 0.2.2.8-alpha. Patch from Daniel Pinto. 17029 - When logging a directory ownership mismatch, log the owning 17030 username correctly. Fixes bug 19578; bugfix on 0.2.2.29-beta. 17031 - When we are unable to remove the bw_accounting file, do not warn 17032 if the reason we couldn't remove it was that it didn't exist. 17033 Fixes bug 19964; bugfix on 0.2.5.4-alpha. Patch from pastly. 17034 17035 o Minor bugfixes (memory leak): 17036 - Fix a series of slow memory leaks related to parsing torrc files 17037 and options. Fixes bug 19466; bugfix on 0.2.1.6-alpha. 17038 - Avoid a small memory leak when informing worker threads about 17039 rotated onion keys. Fixes bug 20401; bugfix on 0.2.6.3-alpha. 17040 - Fix a small memory leak when receiving AF_UNIX connections on a 17041 SocksPort. Fixes bug 20716; bugfix on 0.2.6.3-alpha. 17042 - When moving a signed descriptor object from a source to an 17043 existing destination, free the allocated memory inside that 17044 destination object. Fixes bug 20715; bugfix on 0.2.8.3-alpha. 17045 - Fix a memory leak and use-after-free error when removing entries 17046 from the sandbox's getaddrinfo() cache. Fixes bug 20710; bugfix on 17047 0.2.5.5-alpha. Patch from "cypherpunks". 17048 - Fix a small, uncommon memory leak that could occur when reading a 17049 truncated ed25519 key file. Fixes bug 18956; bugfix 17050 on 0.2.6.1-alpha. 17051 17052 o Minor bugfixes (option parsing): 17053 - Count unix sockets when counting client listeners (SOCKS, Trans, 17054 NATD, and DNS). This has no user-visible behavior changes: these 17055 options are set once, and never read. Required for correct 17056 behavior in ticket 17178. Fixes bug 19677; bugfix on 17057 0.2.6.3-alpha. Patch by teor. 17058 17059 o Minor bugfixes (options): 17060 - Check the consistency of UseEntryGuards and EntryNodes more 17061 reliably. Fixes bug 20074; bugfix on 0.2.4.12-alpha. Patch 17062 by teor. 17063 - Stop changing the configured value of UseEntryGuards on 17064 authorities and Tor2web clients. Fixes bug 20074; bugfix on 17065 commits 51fc6799 in 0.1.1.16-rc and acda1735 in 0.2.4.3-alpha. 17066 Patch by teor. 17067 17068 o Minor bugfixes (relay): 17069 - Ensure relays don't make multiple connections during bootstrap. 17070 Fixes bug 20591; bugfix on 0.2.8.1-alpha. 17071 - Do not try to parallelize workers more than 16x without the user 17072 explicitly configuring us to do so, even if we do detect more than 17073 16 CPU cores. Fixes bug 19968; bugfix on 0.2.3.1-alpha. 17074 17075 o Minor bugfixes (testing): 17076 - The test-stem and test-network makefile targets now depend only on 17077 the tor binary that they are testing. Previously, they depended on 17078 "make all". Fixes bug 18240; bugfix on 0.2.8.2-alpha. Based on a 17079 patch from "cypherpunks". 17080 - Allow clients to retry HSDirs much faster in test networks. Fixes 17081 bug 19702; bugfix on 0.2.7.1-alpha. Patch by teor. 17082 - Avoid a unit test failure on systems with over 16 detectable CPU 17083 cores. Fixes bug 19968; bugfix on 0.2.3.1-alpha. 17084 - Let backtrace tests work correctly under AddressSanitizer: 17085 disable ASAN's detection of segmentation faults while running 17086 test_bt.sh, so that we can make sure that our own backtrace 17087 generation code works. Fixes bug 18934; bugfix 17088 on 0.2.5.2-alpha. Patch from "cypherpunks". 17089 - Fix the test-network-all target on out-of-tree builds by using the 17090 correct path to the test driver script. Fixes bug 19421; bugfix 17091 on 0.2.7.3-rc. 17092 - Stop spurious failures in the local interface address discovery 17093 unit tests. Fixes bug 20634; bugfix on 0.2.8.1-alpha; patch by 17094 Neel Chauhan. 17095 - Use ECDHE ciphers instead of ECDH in tortls tests. LibreSSL has 17096 removed the ECDH ciphers which caused the tests to fail on 17097 platforms which use it. Fixes bug 20460; bugfix on 0.2.8.1-alpha. 17098 - The tor_tls_server_info_callback unit test no longer crashes when 17099 debug-level logging is turned on. Fixes bug 20041; bugfix 17100 on 0.2.8.1-alpha. 17101 17102 o Minor bugfixes (time): 17103 - Improve overflow checks in tv_udiff and tv_mdiff. Fixes bug 19483; 17104 bugfix on all released tor versions. 17105 - When computing the difference between two times in milliseconds, 17106 we now round to the nearest millisecond correctly. Previously, we 17107 could sometimes round in the wrong direction. Fixes bug 19428; 17108 bugfix on 0.2.2.2-alpha. 17109 17110 o Minor bugfixes (Tor2web): 17111 - Prevent Tor2web clients from running hidden services: these services 17112 are not anonymous due to the one-hop client paths. Fixes bug 17113 19678. Patch by teor. 17114 17115 o Minor bugfixes (user interface): 17116 - Display a more accurate number of suppressed messages in the log 17117 rate-limiter. Previously, there was a potential integer overflow 17118 in the counter. Now, if the number of messages hits a maximum, the 17119 rate-limiter doesn't count any further. Fixes bug 19435; bugfix 17120 on 0.2.4.11-alpha. 17121 - Fix a typo in the passphrase prompt for the ed25519 identity key. 17122 Fixes bug 19503; bugfix on 0.2.7.2-alpha. 17123 17124 o Code simplification and refactoring: 17125 - Remove redundant declarations of the MIN macro. Closes 17126 ticket 18889. 17127 - Rename tor_dup_addr() to tor_addr_to_str_dup() to avoid confusion. 17128 Closes ticket 18462; patch from "icanhasaccount". 17129 - Split the 600-line directory_handle_command_get function into 17130 separate functions for different URL types. Closes ticket 16698. 17131 17132 o Documentation: 17133 - Add module-level internal documentation for 36 C files that 17134 previously didn't have a high-level overview. Closes ticket 20385. 17135 - Correct the IPv6 syntax in our documentation for the 17136 VirtualAddrNetworkIPv6 torrc option. Closes ticket 19743. 17137 - Correct the minimum bandwidth value in torrc.sample, and queue a 17138 corresponding change for torrc.minimal. Closes ticket 20085. 17139 - Fix spelling of "--enable-tor2web-mode" in the manpage. Closes 17140 ticket 19153. Patch from "U+039b". 17141 - Module-level documentation for several more modules. Closes 17142 tickets 19287 and 19290. 17143 - Document the --passphrase-fd option in the tor manpage. Fixes bug 17144 19504; bugfix on 0.2.7.3-rc. 17145 - Document the default PathsNeededToBuildCircuits value that's used 17146 by clients when the directory authorities don't set 17147 min_paths_for_circs_pct. Fixes bug 20117; bugfix on 0.2.4.10-alpha. 17148 Patch by teor, reported by Jesse V. 17149 - Fix manual for the User option: it takes a username, not a UID. 17150 Fixes bug 19122; bugfix on 0.0.2pre16 (the first version to have 17151 a manpage!). 17152 - Fix the description of the --passphrase-fd option in the 17153 tor-gencert manpage. The option is used to pass the number of a 17154 file descriptor to read the passphrase from, not to read the file 17155 descriptor from. Fixes bug 19505; bugfix on 0.2.0.20-alpha. 17156 17157 o Removed code: 17158 - We no longer include the (dead, deprecated) bufferevent code in 17159 Tor. Closes ticket 19450. Based on a patch from "U+039b". 17160 17161 o Removed features: 17162 - Remove support for "GET /tor/bytes.txt" DirPort request, and 17163 "GETINFO dir-usage" controller request, which were only available 17164 via a compile-time option in Tor anyway. Feature was added in 17165 0.2.2.1-alpha. Resolves ticket 19035. 17166 - There is no longer a compile-time option to disable support for 17167 TransPort. (If you don't want TransPort, just don't use it.) Patch 17168 from "U+039b". Closes ticket 19449. 17169 17170 o Testing: 17171 - Run more workqueue tests as part of "make check". These had 17172 previously been implemented, but you needed to know special 17173 command-line options to enable them. 17174 - We now have unit tests for our code to reject zlib "compression 17175 bombs". (Fortunately, the code works fine.) 17176 17177 17178 Changes in version 0.2.8.11 - 2016-12-08 17179 Tor 0.2.8.11 backports fixes for additional portability issues that 17180 could prevent Tor from building correctly on OSX Sierra, or with 17181 OpenSSL 1.1. Affected users should upgrade; others can safely stay 17182 with 0.2.8.10. 17183 17184 o Minor bugfixes (portability): 17185 - Avoid compilation errors when building on OSX Sierra. Sierra began 17186 to support the getentropy() and clock_gettime() APIs, but created 17187 a few problems in doing so. Tor 0.2.9 has a more thorough set of 17188 workarounds; in 0.2.8, we are just using the /dev/urandom and mach 17189 monotonic time interfaces. Fixes bug 20865. Bugfix 17190 on 0.2.8.1-alpha. 17191 17192 o Minor bugfixes (portability, backport from 0.2.9.5-alpha): 17193 - Fix compilation with OpenSSL 1.1 and less commonly-used CPU 17194 architectures. Closes ticket 20588. 17195 17196 17197 Changes in version 0.2.8.10 - 2016-12-02 17198 Tor 0.2.8.10 backports a fix for a bug that would sometimes make clients 17199 unusable after they left standby mode. It also backports fixes for 17200 a few portability issues and a small but problematic memory leak. 17201 17202 o Major bugfixes (client reliability, backport from 0.2.9.5-alpha): 17203 - When Tor leaves standby because of a new application request, open 17204 circuits as needed to serve that request. Previously, we would 17205 potentially wait a very long time. Fixes part of bug 19969; bugfix 17206 on 0.2.8.1-alpha. 17207 17208 o Major bugfixes (client performance, backport from 0.2.9.5-alpha): 17209 - Clients now respond to new application stream requests immediately 17210 when they arrive, rather than waiting up to one second before 17211 starting to handle them. Fixes part of bug 19969; bugfix 17212 on 0.2.8.1-alpha. 17213 17214 o Minor bugfixes (portability, backport from 0.2.9.6-rc): 17215 - Work around a bug in the OSX 10.12 SDK that would prevent us from 17216 successfully targeting earlier versions of OSX. Resolves 17217 ticket 20235. 17218 17219 o Minor bugfixes (portability, backport from 0.2.9.5-alpha): 17220 - Fix implicit conversion warnings under OpenSSL 1.1. Fixes bug 17221 20551; bugfix on 0.2.1.1-alpha. 17222 17223 o Minor bugfixes (relay, backport from 0.2.9.5-alpha): 17224 - Work around a memory leak in OpenSSL 1.1 when encoding public 17225 keys. Fixes bug 20553; bugfix on 0.0.2pre8. 17226 17227 o Minor features (geoip): 17228 - Update geoip and geoip6 to the November 3 2016 Maxmind GeoLite2 17229 Country database. 17230 17231 17232 Changes in version 0.2.8.9 - 2016-10-17 17233 Tor 0.2.8.9 backports a fix for a security hole in previous versions 17234 of Tor that would allow a remote attacker to crash a Tor client, 17235 hidden service, relay, or authority. All Tor users should upgrade to 17236 this version, or to 0.2.9.4-alpha. Patches will be released for older 17237 versions of Tor. 17238 17239 o Major features (security fixes, also in 0.2.9.4-alpha): 17240 - Prevent a class of security bugs caused by treating the contents 17241 of a buffer chunk as if they were a NUL-terminated string. At 17242 least one such bug seems to be present in all currently used 17243 versions of Tor, and would allow an attacker to remotely crash 17244 most Tor instances, especially those compiled with extra compiler 17245 hardening. With this defense in place, such bugs can't crash Tor, 17246 though we should still fix them as they occur. Closes ticket 17247 20384 (TROVE-2016-10-001). 17248 17249 o Minor features (geoip): 17250 - Update geoip and geoip6 to the October 4 2016 Maxmind GeoLite2 17251 Country database. 17252 17253 17254 Changes in version 0.2.8.8 - 2016-09-23 17255 Tor 0.2.8.8 fixes two crash bugs present in previous versions of the 17256 0.2.8.x series. Relays running 0.2.8.x should upgrade, as should users 17257 who select public relays as their bridges. 17258 17259 o Major bugfixes (crash): 17260 - Fix a complicated crash bug that could affect Tor clients 17261 configured to use bridges when replacing a networkstatus consensus 17262 in which one of their bridges was mentioned. OpenBSD users saw 17263 more crashes here, but all platforms were potentially affected. 17264 Fixes bug 20103; bugfix on 0.2.8.2-alpha. 17265 17266 o Major bugfixes (relay, OOM handler): 17267 - Fix a timing-dependent assertion failure that could occur when we 17268 tried to flush from a circuit after having freed its cells because 17269 of an out-of-memory condition. Fixes bug 20203; bugfix on 17270 0.2.8.1-alpha. Thanks to "cypherpunks" for help diagnosing 17271 this one. 17272 17273 o Minor feature (fallback directories): 17274 - Remove broken fallbacks from the hard-coded fallback directory 17275 list. Closes ticket 20190; patch by teor. 17276 17277 o Minor features (geoip): 17278 - Update geoip and geoip6 to the September 6 2016 Maxmind GeoLite2 17279 Country database. 17280 17281 17282 Changes in version 0.2.8.7 - 2016-08-24 17283 Tor 0.2.8.7 fixes an important bug related to the ReachableAddresses 17284 option in 0.2.8.6, and replaces a retiring bridge authority. Everyone 17285 who sets the ReachableAddresses option, and all bridges, are strongly 17286 encouraged to upgrade. 17287 17288 o Directory authority changes: 17289 - The "Tonga" bridge authority has been retired; the new bridge 17290 authority is "Bifroest". Closes tickets 19728 and 19690. 17291 17292 o Major bugfixes (client, security): 17293 - Only use the ReachableAddresses option to restrict the first hop 17294 in a path. In earlier versions of 0.2.8.x, it would apply to 17295 every hop in the path, with a possible degradation in anonymity 17296 for anyone using an uncommon ReachableAddress setting. Fixes bug 17297 19973; bugfix on 0.2.8.2-alpha. 17298 17299 o Minor features (geoip): 17300 - Update geoip and geoip6 to the August 2 2016 Maxmind GeoLite2 17301 Country database. 17302 17303 o Minor bugfixes (compilation): 17304 - Remove an inappropriate "inline" in tortls.c that was causing 17305 warnings on older versions of GCC. Fixes bug 19903; bugfix 17306 on 0.2.8.1-alpha. 17307 17308 o Minor bugfixes (fallback directories): 17309 - Avoid logging a NULL string pointer when loading fallback 17310 directory information. Fixes bug 19947; bugfix on 0.2.4.7-alpha 17311 and 0.2.8.1-alpha. Report and patch by "rubiate". 17312 17313 17314 Changes in version 0.2.8.6 - 2016-08-02 17315 17316 Tor 0.2.8.6 is the first stable version of the Tor 0.2.8 series. 17317 17318 The Tor 0.2.8 series improves client bootstrapping performance, 17319 completes the authority-side implementation of improved identity 17320 keys for relays, and includes numerous bugfixes and performance 17321 improvements throughout the program. This release continues to 17322 improve the coverage of Tor's test suite. For a full list of 17323 changes since Tor 0.2.7, see the ReleaseNotes file. 17324 17325 Below is a list of the changes since Tor 0.2.7. 17326 17327 o New system requirements: 17328 - Tor no longer attempts to support platforms where the "time_t" 17329 type is unsigned. (To the best of our knowledge, only OpenVMS does 17330 this, and Tor has never actually built on OpenVMS.) Closes 17331 ticket 18184. 17332 - Tor no longer supports versions of OpenSSL with a broken 17333 implementation of counter mode. (This bug was present in OpenSSL 17334 1.0.0, and was fixed in OpenSSL 1.0.0a.) Tor still detects, but no 17335 longer runs with, these versions. 17336 - Tor now uses Autoconf version 2.63 or later, and Automake 1.11 or 17337 later (released in 2008 and 2009 respectively). If you are 17338 building Tor from the git repository instead of from the source 17339 distribution, and your tools are older than this, you will need to 17340 upgrade. Closes ticket 17732. 17341 17342 o Directory authority changes: 17343 - Update the V3 identity key for the dannenberg directory authority: 17344 it was changed on 18 November 2015. Closes task 17906. Patch 17345 by teor. 17346 - Urras is no longer a directory authority. Closes ticket 19271. 17347 17348 o Major features (directory system): 17349 - Include a trial list of default fallback directories, based on an 17350 opt-in survey of suitable relays. Doing this should make clients 17351 bootstrap more quickly and reliably, and reduce the load on the 17352 directory authorities. Closes ticket 15775. Patch by teor. 17353 Candidates identified using an OnionOO script by weasel, teor, 17354 gsathya, and karsten. 17355 - Previously only relays that explicitly opened a directory port 17356 (DirPort) accepted directory requests from clients. Now all 17357 relays, with and without a DirPort, accept and serve tunneled 17358 directory requests that they receive through their ORPort. You can 17359 disable this behavior using the new DirCache option. Closes 17360 ticket 12538. 17361 - When bootstrapping multiple consensus downloads at a time, use the 17362 first one that starts downloading, and close the rest. This 17363 reduces failures when authorities or fallback directories are slow 17364 or down. Together with the code for feature 15775, this feature 17365 should reduces failures due to fallback churn. Implements ticket 17366 4483. Patch by teor. Implements IPv4 portions of proposal 210 by 17367 mikeperry and teor. 17368 17369 o Major features (security, Linux): 17370 - When Tor starts as root on Linux and is told to switch user ID, it 17371 can now retain the capability to bind to low ports. By default, 17372 Tor will do this only when it's switching user ID and some low 17373 ports have been configured. You can change this behavior with the 17374 new option KeepBindCapabilities. Closes ticket 8195. 17375 17376 o Major bugfixes (client, bootstrapping): 17377 - Check if bootstrap consensus downloads are still needed when the 17378 linked connection attaches. This prevents tor making unnecessary 17379 begindir-style connections, which are the only directory 17380 connections tor clients make since the fix for 18483 was merged. 17381 - Fix some edge cases where consensus download connections may not 17382 have been closed, even though they were not needed. Related to fix 17383 for 18809. 17384 - Make relays retry consensus downloads the correct number of times, 17385 rather than the more aggressive client retry count. Fixes part of 17386 ticket 18809. 17387 17388 o Major bugfixes (dns proxy mode, crash): 17389 - Avoid crashing when running as a DNS proxy. Fixes bug 16248; 17390 bugfix on 0.2.0.1-alpha. Patch from "cypherpunks". 17391 17392 o Major bugfixes (ed25519, voting): 17393 - Actually enable support for authorities to match routers by their 17394 Ed25519 identities. Previously, the code had been written, but 17395 some debugging code that had accidentally been left in the 17396 codebase made it stay turned off. Fixes bug 17702; bugfix 17397 on 0.2.7.2-alpha. 17398 - When collating votes by Ed25519 identities, authorities now 17399 include a "NoEdConsensus" flag if the ed25519 value (or lack 17400 thereof) for a server does not reflect the majority consensus. 17401 Related to bug 17668; bugfix on 0.2.7.2-alpha. 17402 - When generating a vote with keypinning disabled, never include two 17403 entries for the same ed25519 identity. This bug was causing 17404 authorities to generate votes that they could not parse when a 17405 router violated key pinning by changing its RSA identity but 17406 keeping its Ed25519 identity. Fixes bug 17668; fixes part of bug 17407 18318. Bugfix on 0.2.7.2-alpha. 17408 17409 o Major bugfixes (key management): 17410 - If OpenSSL fails to generate an RSA key, do not retain a dangling 17411 pointer to the previous (uninitialized) key value. The impact here 17412 should be limited to a difficult-to-trigger crash, if OpenSSL is 17413 running an engine that makes key generation failures possible, or 17414 if OpenSSL runs out of memory. Fixes bug 19152; bugfix on 17415 0.2.1.10-alpha. Found by Yuan Jochen Kang, Suman Jana, and 17416 Baishakhi Ray. 17417 17418 o Major bugfixes (security, client, DNS proxy): 17419 - Stop a crash that could occur when a client running with DNSPort 17420 received a query with multiple address types, and the first 17421 address type was not supported. Found and fixed by Scott Dial. 17422 Fixes bug 18710; bugfix on 0.2.5.4-alpha. 17423 17424 o Major bugfixes (security, compilation): 17425 - Correctly detect compiler flags on systems where _FORTIFY_SOURCE 17426 is predefined. Previously, our use of -D_FORTIFY_SOURCE would 17427 cause a compiler warning, thereby making other checks fail, and 17428 needlessly disabling compiler-hardening support. Fixes one case of 17429 bug 18841; bugfix on 0.2.3.17-beta. Patch from "trudokal". 17430 - Repair hardened builds under the clang compiler. Previously, our 17431 use of _FORTIFY_SOURCE would conflict with clang's address 17432 sanitizer. Fixes bug 14821; bugfix on 0.2.5.4-alpha. 17433 17434 o Major bugfixes (security, pointers): 17435 - Avoid a difficult-to-trigger heap corruption attack when extending 17436 a smartlist to contain over 16GB of pointers. Fixes bug 18162; 17437 bugfix on 0.1.1.11-alpha, which fixed a related bug incompletely. 17438 Reported by Guido Vranken. 17439 17440 o Major bugfixes (testing): 17441 - Fix a bug that would block 'make test-network-all' on systems where 17442 IPv6 packets were lost. Fixes bug 19008; bugfix on 0.2.7.3-rc. 17443 17444 o Major bugfixes (user interface): 17445 - Correctly give a warning in the cases where a relay is specified 17446 by nickname, and one such relay is found, but it is not officially 17447 Named. Fixes bug 19203; bugfix on 0.2.3.1-alpha. 17448 17449 o Minor features (accounting): 17450 - Added two modes to the AccountingRule option: One for limiting 17451 only the number of bytes sent ("AccountingRule out"), and one for 17452 limiting only the number of bytes received ("AccountingRule in"). 17453 Closes ticket 15989; patch from "unixninja92". 17454 17455 o Minor features (bug-resistance): 17456 - Make Tor survive errors involving connections without a 17457 corresponding event object. Previously we'd fail with an 17458 assertion; now we produce a log message. Related to bug 16248. 17459 - Use tor_snprintf() and tor_vsnprintf() even in external and low- 17460 level code, to harden against accidental failures to NUL- 17461 terminate. Part of ticket 17852. Patch from jsturgix. Found 17462 with Flawfinder. 17463 17464 o Minor features (build): 17465 - Detect systems with FreeBSD-derived kernels (such as GNU/kFreeBSD) 17466 as having possible IPFW support. Closes ticket 18448. Patch from 17467 Steven Chamberlain. 17468 - Since our build process now uses "make distcheck", we no longer 17469 force "make dist" to depend on "make check". Closes ticket 17893; 17470 patch from "cypherpunks". 17471 - Tor now builds once again with the recent OpenSSL 1.1 development 17472 branch (tested against 1.1.0-pre5 and 1.1.0-pre6-dev). We have been 17473 tracking OpenSSL 1.1 development as it has progressed, and fixing 17474 numerous compatibility issues as they arose. See tickets 17475 17549, 17921, 17984, 19499, and 18286. 17476 - When building manual pages, set the timezone to "UTC", so that the 17477 output is reproducible. Fixes bug 19558; bugfix on 0.2.2.9-alpha. 17478 Patch from intrigeri. 17479 17480 o Minor features (clients): 17481 - Make clients, onion services, and bridge relays always use an 17482 encrypted begindir connection for directory requests. Resolves 17483 ticket 18483. Patch by teor. 17484 17485 o Minor features (controller): 17486 - Add 'GETINFO exit-policy/reject-private/[default,relay]', so 17487 controllers can examine the the reject rules added by 17488 ExitPolicyRejectPrivate. This makes it easier for stem to display 17489 exit policies. 17490 - Adds the FallbackDir entries to 'GETINFO config/defaults'. Closes 17491 tickets 16774 and 17817. Patch by George Tankersley. 17492 - New 'GETINFO hs/service/desc/id/' command to retrieve a hidden 17493 service descriptor from a service's local hidden service 17494 descriptor cache. Closes ticket 14846. 17495 17496 o Minor features (crypto): 17497 - Add SHA3 and SHAKE support to crypto.c. Closes ticket 17783. 17498 - Add SHA512 support to crypto.c. Closes ticket 17663; patch from 17499 George Tankersley. 17500 - Improve performance when hashing non-multiple of 8 sized buffers, 17501 based on Andrew Moon's public domain SipHash-2-4 implementation. 17502 Fixes bug 17544; bugfix on 0.2.5.3-alpha. 17503 - Validate the hard-coded Diffie-Hellman parameters and ensure that 17504 p is a safe prime, and g is a suitable generator. Closes 17505 ticket 18221. 17506 - When allocating a digest state object, allocate no more space than 17507 we actually need. Previously, we would allocate as much space as 17508 the state for the largest algorithm would need. This change saves 17509 up to 672 bytes per circuit. Closes ticket 17796. 17510 17511 o Minor features (directory downloads): 17512 - Add UseDefaultFallbackDirs, which enables any hard-coded fallback 17513 directory mirrors. The default is 1; set it to 0 to disable 17514 fallbacks. Implements ticket 17576. Patch by teor. 17515 - Wait for busy authorities and fallback directories to become non- 17516 busy when bootstrapping. (A similar change was made in 6c443e987d 17517 for directory caches chosen from the consensus.) Closes ticket 17518 17864; patch by teor. 17519 17520 o Minor features (geoip): 17521 - Update geoip and geoip6 to the July 6 2016 Maxmind GeoLite2 17522 Country database. 17523 17524 o Minor features (hidden service directory): 17525 - Streamline relay-side hsdir handling: when relays consider whether 17526 to accept an uploaded hidden service descriptor, they no longer 17527 check whether they are one of the relays in the network that is 17528 "supposed" to handle that descriptor. Implements ticket 18332. 17529 17530 o Minor features (IPv6): 17531 - Add ClientPreferIPv6DirPort, which is set to 0 by default. If set 17532 to 1, tor prefers IPv6 directory addresses. 17533 - Add ClientUseIPv4, which is set to 1 by default. If set to 0, tor 17534 avoids using IPv4 for client OR and directory connections. 17535 - Add address policy assume_action support for IPv6 addresses. 17536 - Add an argument 'ipv6=address:orport' to the DirAuthority and 17537 FallbackDir torrc options, to specify an IPv6 address for an 17538 authority or fallback directory. Add hard-coded ipv6 addresses for 17539 directory authorities that have them. Closes ticket 17327; patch 17540 from Nick Mathewson and teor. 17541 - Allow users to configure directory authorities and fallback 17542 directory servers with IPv6 addresses and ORPorts. Resolves 17543 ticket 6027. 17544 - Limit IPv6 mask bits to 128. 17545 - Make tor_ersatz_socketpair work on IPv6-only systems. Fixes bug 17546 17638; bugfix on 0.0.2pre8. Patch by teor. 17547 - Try harder to obey the IP version restrictions "ClientUseIPv4 0", 17548 "ClientUseIPv6 0", "ClientPreferIPv6ORPort", and 17549 "ClientPreferIPv6DirPort". Closes ticket 17840; patch by teor. 17550 - Warn when comparing against an AF_UNSPEC address in a policy, it's 17551 almost always a bug. Closes ticket 17863; patch by teor. 17552 - routerset_parse now accepts IPv6 literal addresses. Fixes bug 17553 17060; bugfix on 0.2.1.3-alpha. Patch by teor. 17554 17555 o Minor features (Linux seccomp2 sandbox): 17556 - Reject attempts to change our Address with "Sandbox 1" enabled. 17557 Changing Address with Sandbox turned on would never actually work, 17558 but previously it would fail in strange and confusing ways. Found 17559 while fixing 18548. 17560 17561 o Minor features (logging): 17562 - When logging to syslog, allow a tag to be added to the syslog 17563 identity (the string prepended to every log message). The tag can 17564 be configured with SyslogIdentityTag and defaults to none. Setting 17565 it to "foo" will cause logs to be tagged as "Tor-foo". Closes 17566 ticket 17194. 17567 17568 o Minor features (portability): 17569 - Use timingsafe_memcmp() where available. Closes ticket 17944; 17570 patch from <logan@hackers.mu>. 17571 17572 o Minor features (relay, address discovery): 17573 - Add a family argument to get_interface_addresses_raw() and 17574 subfunctions to make network interface address interogation more 17575 efficient. Now Tor can specifically ask for IPv4, IPv6 or both 17576 types of interfaces from the operating system. Resolves 17577 ticket 17950. 17578 - When get_interface_address6_list(.,AF_UNSPEC,.) is called and 17579 fails to enumerate interface addresses using the platform-specific 17580 API, have it rely on the UDP socket fallback technique to try and 17581 find out what IP addresses (both IPv4 and IPv6) our machine has. 17582 Resolves ticket 17951. 17583 17584 o Minor features (replay cache): 17585 - The replay cache now uses SHA256 instead of SHA1. Implements 17586 feature 8961. Patch by teor, issue reported by rransom. 17587 17588 o Minor features (robustness): 17589 - Exit immediately with an error message if the code attempts to use 17590 Libevent without having initialized it. This should resolve some 17591 frequently-made mistakes in our unit tests. Closes ticket 18241. 17592 17593 o Minor features (security, clock): 17594 - Warn when the system clock appears to move back in time (when the 17595 state file was last written in the future). Tor doesn't know that 17596 consensuses have expired if the clock is in the past. Patch by 17597 teor. Implements ticket 17188. 17598 17599 o Minor features (security, exit policies): 17600 - ExitPolicyRejectPrivate now rejects more private addresses by 17601 default. Specifically, it now rejects the relay's outbound bind 17602 addresses (if configured), and the relay's configured port 17603 addresses (such as ORPort and DirPort). Fixes bug 17027; bugfix on 17604 0.2.0.11-alpha. Patch by teor. 17605 17606 o Minor features (security, memory erasure): 17607 - Make memwipe() do nothing when passed a NULL pointer or buffer of 17608 zero size. Check size argument to memwipe() for underflow. Fixes 17609 bug 18089; bugfix on 0.2.3.25 and 0.2.4.6-alpha. Reported by "gk", 17610 patch by teor. 17611 - Set the unused entries in a smartlist to NULL. This helped catch 17612 a (harmless) bug, and shouldn't affect performance too much. 17613 Implements ticket 17026. 17614 - Use SecureMemoryWipe() function to securely clean memory on 17615 Windows. Previously we'd use OpenSSL's OPENSSL_cleanse() function. 17616 Implements feature 17986. 17617 - Use explicit_bzero or memset_s when present. Previously, we'd use 17618 OpenSSL's OPENSSL_cleanse() function. Closes ticket 7419; patches 17619 from <logan@hackers.mu> and <selven@hackers.mu>. 17620 17621 o Minor features (security, RNG): 17622 - Adjust Tor's use of OpenSSL's RNG APIs so that they absolutely, 17623 positively are not allowed to fail. Previously we depended on 17624 internal details of OpenSSL's behavior. Closes ticket 17686. 17625 - Never use the system entropy output directly for anything besides 17626 seeding the PRNG. When we want to generate important keys, instead 17627 of using system entropy directly, we now hash it with the PRNG 17628 stream. This may help resist certain attacks based on broken OS 17629 entropy implementations. Closes part of ticket 17694. 17630 - Use modern system calls (like getentropy() or getrandom()) to 17631 generate strong entropy on platforms that have them. Closes 17632 ticket 13696. 17633 17634 o Minor features (security, win32): 17635 - Set SO_EXCLUSIVEADDRUSE on Win32 to avoid a local port-stealing 17636 attack. Fixes bug 18123; bugfix on all tor versions. Patch 17637 by teor. 17638 17639 o Minor features (unix domain sockets): 17640 - Add a new per-socket option, RelaxDirModeCheck, to allow creating 17641 Unix domain sockets without checking the permissions on the parent 17642 directory. (Tor checks permissions by default because some 17643 operating systems only check permissions on the parent directory. 17644 However, some operating systems do look at permissions on the 17645 socket, and tor's default check is unneeded.) Closes ticket 18458. 17646 Patch by weasel. 17647 17648 o Minor features (unix file permissions): 17649 - Defer creation of Unix sockets until after setuid. This avoids 17650 needing CAP_CHOWN and CAP_FOWNER when using systemd's 17651 CapabilityBoundingSet, or chown and fowner when using SELinux. 17652 Implements part of ticket 17562. Patch from Jamie Nguyen. 17653 - If any directory created by Tor is marked as group readable, the 17654 filesystem group is allowed to be either the default GID or the 17655 root user. Allowing root to read the DataDirectory prevents the 17656 need for CAP_READ_SEARCH when using systemd's 17657 CapabilityBoundingSet, or dac_read_search when using SELinux. 17658 Implements part of ticket 17562. Patch from Jamie Nguyen. 17659 - Introduce a new DataDirectoryGroupReadable option. If it is set to 17660 1, the DataDirectory will be made readable by the default GID. 17661 Implements part of ticket 17562. Patch from Jamie Nguyen. 17662 17663 o Minor bugfixes (accounting): 17664 - The max bandwidth when using 'AccountRule sum' is now correctly 17665 logged. Fixes bug 18024; bugfix on 0.2.6.1-alpha. Patch 17666 from "unixninja92". 17667 17668 o Minor bugfixes (assert, portability): 17669 - Fix an assertion failure in memarea.c on systems where "long" is 17670 shorter than the size of a pointer. Fixes bug 18716; bugfix 17671 on 0.2.1.1-alpha. 17672 17673 o Minor bugfixes (bootstrap): 17674 - Consistently use the consensus download schedule for authority 17675 certificates. Fixes bug 18816; bugfix on 0.2.4.13-alpha. 17676 17677 o Minor bugfixes (build): 17678 - Avoid spurious failures from configure files related to calling 17679 exit(0) in TOR_SEARCH_LIBRARY. Fixes bug 18626; bugfix on 17680 0.2.0.1-alpha. Patch from "cypherpunks". 17681 - Do not link the unit tests against both the testing and non- 17682 testing versions of the static libraries. Fixes bug 18490; bugfix 17683 on 0.2.7.1-alpha. 17684 - Resolve warnings when building on systems that are concerned with 17685 signed char. Fixes bug 18728; bugfix on 0.2.7.2-alpha 17686 and 0.2.6.1-alpha. 17687 - Silence spurious clang-scan warnings in the ed25519_donna code by 17688 explicitly initializing some objects. Fixes bug 18384; bugfix on 17689 0.2.7.2-alpha. Patch by teor. 17690 - When libscrypt.h is found, but no libscrypt library can be linked, 17691 treat libscrypt as absent. Fixes bug 19161; bugfix 17692 on 0.2.6.1-alpha. 17693 - Cause the unit tests to compile correctly on mingw64 versions that 17694 lack sscanf. Fixes bug 19213; bugfix on 0.2.7.1-alpha. 17695 - Don't try to use the pthread_condattr_setclock() function unless 17696 it actually exists. Fixes compilation on NetBSD-6.x. Fixes bug 17697 17819; bugfix on 0.2.6.3-alpha. 17698 - Fix backtrace compilation on FreeBSD. Fixes bug 17827; bugfix 17699 on 0.2.5.2-alpha. 17700 - Fix search for libevent libraries on OpenBSD (and other systems 17701 that install libevent 1 and libevent 2 in parallel). Fixes bug 17702 16651; bugfix on 0.1.0.7-rc. Patch from "rubiate". 17703 - Isolate environment variables meant for tests from the rest of the 17704 build system. Fixes bug 17818; bugfix on 0.2.7.3-rc. 17705 - Mark all object files that include micro-revision.i as depending 17706 on it, so as to make parallel builds more reliable. Fixes bug 17707 17826; bugfix on 0.2.5.1-alpha. 17708 - Remove config.log only from make distclean, not from make clean. 17709 Fixes bug 17924; bugfix on 0.2.4.1-alpha. 17710 - Replace usage of 'INLINE' with 'inline'. Fixes bug 17804; bugfix 17711 on 0.0.2pre8. 17712 - Remove an #endif from configure.ac so that we correctly detect the 17713 presence of in6_addr.s6_addr32. Fixes bug 17923; bugfix 17714 on 0.2.0.13-alpha. 17715 17716 o Minor bugfixes (client, bootstrap): 17717 - Count receipt of new microdescriptors as progress towards 17718 bootstrapping. Previously, with EntryNodes set, Tor might not 17719 successfully repopulate the guard set on bootstrapping. Fixes bug 17720 16825; bugfix on 0.2.3.1-alpha. 17721 17722 o Minor bugfixes (code correctness): 17723 - Fix a bad memory handling bug that would occur if we had queued a 17724 cell on a channel's incoming queue. Fortunately, we can't actually 17725 queue a cell like that as our code is constructed today, but it's 17726 best to avoid this kind of error, even if there isn't any code 17727 that triggers it today. Fixes bug 18570; bugfix on 0.2.4.4-alpha. 17728 - Assert that allocated memory held by the reputation code is freed 17729 according to its internal counters. Fixes bug 17753; bugfix 17730 on 0.1.1.1-alpha. 17731 - Assert when the TLS contexts fail to initialize. Fixes bug 17683; 17732 bugfix on 0.0.6. 17733 - Update to the latest version of Trunnel, which tries harder to 17734 avoid generating code that can invoke memcpy(p,NULL,0). Bug found 17735 by clang address sanitizer. Fixes bug 18373; bugfix 17736 on 0.2.7.2-alpha. 17737 - When closing an entry connection, generate a warning if we should 17738 have sent an end cell for it but we haven't. Fixes bug 17876; 17739 bugfix on 0.2.3.2-alpha. 17740 17741 o Minor bugfixes (configuration): 17742 - Fix a tiny memory leak when parsing a port configuration ending in 17743 ":auto". Fixes bug 18374; bugfix on 0.2.3.3-alpha. 17744 17745 o Minor bugfixes (containers): 17746 - If we somehow attempt to construct a heap with more than 17747 1073741822 elements, avoid an integer overflow when maintaining 17748 the heap property. Fixes bug 18296; bugfix on 0.1.2.1-alpha. 17749 17750 o Minor bugfixes (controller, microdescriptors): 17751 - Make GETINFO dir/status-vote/current/consensus conform to the 17752 control specification by returning "551 Could not open cached 17753 consensus..." when not caching consensuses. Fixes bug 18920; 17754 bugfix on 0.2.2.6-alpha. 17755 17756 o Minor bugfixes (crypto): 17757 - Check the return value of HMAC() and assert on failure. Fixes bug 17758 17658; bugfix on 0.2.3.6-alpha. Patch by teor. 17759 17760 o Minor bugfixes (directories): 17761 - When fetching extrainfo documents, compare their SHA256 digests 17762 and Ed25519 signing key certificates with the routerinfo that led 17763 us to fetch them, rather than with the most recent routerinfo. 17764 Otherwise we generate many spurious warnings about mismatches. 17765 Fixes bug 17150; bugfix on 0.2.7.2-alpha. 17766 - When generating a URL for a directory server on an IPv6 address, 17767 wrap the IPv6 address in square brackets. Fixes bug 18051; bugfix 17768 on 0.2.3.9-alpha. Patch from Malek. 17769 17770 o Minor bugfixes (downloading): 17771 - Predict more correctly whether we'll be downloading over HTTP when 17772 we determine the maximum length of a URL. This should avoid a 17773 "BUG" warning about the Squid HTTP proxy and its URL limits. Fixes 17774 bug 19191. 17775 17776 o Minor bugfixes (exit policies, security): 17777 - Refresh an exit relay's exit policy when interface addresses 17778 change. Previously, tor only refreshed the exit policy when the 17779 configured external address changed. Fixes bug 18208; bugfix on 17780 0.2.7.3-rc. Patch by teor. 17781 17782 o Minor bugfixes (fallback directories): 17783 - Mark fallbacks as "too busy" when they return a 503 response, 17784 rather than just marking authorities. Fixes bug 17572; bugfix on 17785 0.2.4.7-alpha. Patch by teor. 17786 - When requesting extrainfo descriptors from a trusted directory 17787 server, check whether it is an authority or a fallback directory 17788 which supports extrainfo descriptors. Fixes bug 18489; bugfix on 17789 0.2.4.7-alpha. Reported by atagar, patch by teor. 17790 17791 o Minor bugfixes (hidden service, client): 17792 - Handle the case where the user makes several fast consecutive 17793 requests to the same .onion address. Previously, the first six 17794 requests would each trigger a descriptor fetch, each picking a 17795 directory (there are 6 overall) and the seventh one would fail 17796 because no directories were left, thereby triggering a close on 17797 all current directory connections asking for the hidden service. 17798 The solution here is to not close the connections if we have 17799 pending directory fetches. Fixes bug 15937; bugfix 17800 on 0.2.7.1-alpha. 17801 17802 o Minor bugfixes (hidden service, control port): 17803 - Add the onion address to the HS_DESC event for the UPLOADED action 17804 both on success or failure. It was previously hardcoded with 17805 UNKNOWN. Fixes bug 16023; bugfix on 0.2.7.2-alpha. 17806 17807 o Minor bugfixes (hidden service, directory): 17808 - Bridges now refuse "rendezvous2" (hidden service descriptor) 17809 publish attempts. Suggested by ticket 18332. 17810 17811 o Minor bugfixes (IPv6): 17812 - Update the limits in max_dl_per_request for IPv6 address length. 17813 Fixes bug 17573; bugfix on 0.2.1.5-alpha. 17814 17815 o Minor bugfixes (Linux seccomp2 sandbox): 17816 - Allow more syscalls when running with "Sandbox 1" enabled: 17817 sysinfo, getsockopt(SO_SNDBUF), and setsockopt(SO_SNDBUFFORCE). On 17818 some systems, these are required for Tor to start. Fixes bug 17819 18397; bugfix on 0.2.5.1-alpha. Patch from Daniel Pinto. 17820 - Allow IPPROTO_UDP datagram sockets when running with "Sandbox 1", 17821 so that get_interface_address6_via_udp_socket_hack() can work. 17822 Fixes bug 19660; bugfix on 0.2.5.1-alpha. 17823 - Allow the setrlimit syscall, and the prlimit and prlimit64 17824 syscalls, which some libc implementations use under the hood. 17825 Fixes bug 15221; bugfix on 0.2.5.1-alpha. 17826 - Avoid a 10-second delay when starting as a client with "Sandbox 1" 17827 enabled and no DNS resolvers configured. This should help TAILS 17828 start up faster. Fixes bug 18548; bugfix on 0.2.5.1-alpha. 17829 - Fix a crash when using offline master ed25519 keys with the Linux 17830 seccomp2 sandbox enabled. Fixes bug 17675; bugfix on 0.2.7.3-rc. 17831 - Allow statistics to be written to disk when "Sandbox 1" is 17832 enabled. Fixes bugs 19556 and 19957; bugfix on 0.2.5.1-alpha and 17833 0.2.6.1-alpha respectively. 17834 17835 o Minor bugfixes (logging): 17836 - In log messages that include a function name, use __FUNCTION__ 17837 instead of __PRETTY_FUNCTION__. In GCC, these are synonymous, but 17838 with clang __PRETTY_FUNCTION__ has extra information we don't 17839 need. Fixes bug 16563; bugfix on 0.0.2pre8. Fix by Tom van 17840 der Woerdt. 17841 - Remove needless quotes from a log message about unparseable 17842 addresses. Fixes bug 17843; bugfix on 0.2.3.3-alpha. 17843 - Scrub service name in "unrecognized service ID" log messages. 17844 Fixes bug 18600; bugfix on 0.2.4.11-alpha. 17845 - When logging information about an unparsable networkstatus vote or 17846 consensus, do not say "vote" when we mean consensus. Fixes bug 17847 18368; bugfix on 0.2.0.8-alpha. 17848 - When we can't generate a signing key because OfflineMasterKey is 17849 set, do not imply that we should have been able to load it. Fixes 17850 bug 18133; bugfix on 0.2.7.2-alpha. 17851 - When logging a malformed hostname received through socks4, scrub 17852 it if SafeLogging says we should. Fixes bug 17419; bugfix 17853 on 0.1.1.16-rc. 17854 17855 o Minor bugfixes (memory safety): 17856 - Avoid freeing an uninitialized pointer when opening a socket fails 17857 in get_interface_addresses_ioctl(). Fixes bug 18454; bugfix on 17858 0.2.3.11-alpha. Reported by toralf and "cypherpunks", patch 17859 by teor. 17860 - Fix a memory leak in "tor --list-fingerprint". Fixes part of bug 17861 18672; bugfix on 0.2.5.1-alpha. 17862 - Fix a memory leak in tor-gencert. Fixes part of bug 18672; bugfix 17863 on 0.2.0.1-alpha. 17864 17865 o Minor bugfixes (pluggable transports): 17866 - Avoid reporting a spurious error when we decide that we don't need 17867 to terminate a pluggable transport because it has already exited. 17868 Fixes bug 18686; bugfix on 0.2.5.5-alpha. 17869 17870 o Minor bugfixes (pointer arithmetic): 17871 - Fix a bug in memarea_alloc() that could have resulted in remote 17872 heap write access, if Tor had ever passed an unchecked size to 17873 memarea_alloc(). Fortunately, all the sizes we pass to 17874 memarea_alloc() are pre-checked to be less than 128 kilobytes. 17875 Fixes bug 19150; bugfix on 0.2.1.1-alpha. Bug found by 17876 Guido Vranken. 17877 17878 o Minor bugfixes (private directory): 17879 - Prevent a race condition when creating private directories. Fixes 17880 part of bug 17852; bugfix on 0.0.2pre13. Part of ticket 17852. 17881 Patch from jsturgix. Found with Flawfinder. 17882 17883 o Minor bugfixes (relays): 17884 - Check that both the ORPort and DirPort (if present) are reachable 17885 before publishing a relay descriptor. Otherwise, relays publish a 17886 descriptor with DirPort 0 when the DirPort reachability test takes 17887 longer than the ORPort reachability test. Fixes bug 18050; bugfix 17888 on 0.1.0.1-rc. Reported by "starlight", patch by teor. 17889 - Resolve some edge cases where we might launch an ORPort 17890 reachability check even when DisableNetwork is set. Noticed while 17891 fixing bug 18616; bugfix on 0.2.3.9-alpha. 17892 17893 o Minor bugfixes (relays, hidden services): 17894 - Refuse connection requests to private OR addresses unless 17895 ExtendAllowPrivateAddresses is set. Previously, tor would connect, 17896 then refuse to send any cells to a private address. Fixes bugs 17897 17674 and 8976; bugfix on 0.2.3.21-rc. Patch by teor. 17898 17899 o Minor bugfixes (security, hidden services): 17900 - Prevent hidden services connecting to client-supplied rendezvous 17901 addresses that are reserved as internal or multicast. Fixes bug 17902 8976; bugfix on 0.2.3.21-rc. Patch by dgoulet and teor. 17903 17904 o Minor bugfixes (statistics): 17905 - Consistently check for overflow in round_*_to_next_multiple_of 17906 functions, and add unit tests with additional and maximal values. 17907 Fixes part of bug 13192; bugfix on 0.2.2.1-alpha. 17908 - Handle edge cases in the laplace functions: avoid division by 17909 zero, avoid taking the log of zero, and silence clang type 17910 conversion warnings using round and trunc. Add unit tests for edge 17911 cases with maximal values. Fixes part of bug 13192; bugfix 17912 on 0.2.6.2-alpha. 17913 - We now include consensus downloads via IPv6 in our directory- 17914 request statistics. Fixes bug 18460; bugfix on 0.2.3.14-alpha. 17915 17916 o Minor bugfixes (test networks, IPv6): 17917 - Allow internal IPv6 addresses in descriptors in test networks. 17918 Fixes bug 17153; bugfix on 0.2.3.16-alpha. Patch by teor, reported 17919 by karsten. 17920 17921 o Minor bugfixes (testing): 17922 - Check the full results of SHA256 and SHA512 digests in the unit 17923 tests. Bugfix on 0.2.2.4-alpha. Patch by teor. 17924 - Fix a memory leak in the ntor test. Fixes bug 17778; bugfix 17925 on 0.2.4.8-alpha. 17926 - Fix a small memory leak that would occur when the 17927 TestingEnableCellStatsEvent option was turned on. Fixes bug 18673; 17928 bugfix on 0.2.5.2-alpha. 17929 - Make unit tests pass on IPv6-only systems, and systems without 17930 localhost addresses (like some FreeBSD jails). Fixes bug 17632; 17931 bugfix on 0.2.7.3-rc. Patch by teor. 17932 - The test for log_heartbeat was incorrectly failing in timezones 17933 with non-integer offsets. Instead of comparing the end of the time 17934 string against a constant, compare it to the output of 17935 format_local_iso_time when given the correct input. Fixes bug 17936 18039; bugfix on 0.2.5.4-alpha. 17937 - We no longer disable assertions in the unit tests when coverage is 17938 enabled. Instead, we require you to say --disable-asserts-in-tests 17939 to the configure script if you need assertions disabled in the 17940 unit tests (for example, if you want to perform branch coverage). 17941 Fixes bug 18242; bugfix on 0.2.7.1-alpha. 17942 17943 o Minor bugfixes (time handling): 17944 - When correcting a corrupt 'struct tm' value, fill in the tm_wday 17945 field. Otherwise, our unit tests crash on Windows. Fixes bug 17946 18977; bugfix on 0.2.2.25-alpha. 17947 - Avoid overflow in tor_timegm when parsing dates in and after 2038 17948 on platforms with 32-bit time_t. Fixes bug 18479; bugfix on 17949 0.0.2pre14. Patch by teor. 17950 17951 o Minor bugfixes (tor-gencert): 17952 - Correctly handle the case where an authority operator enters a 17953 passphrase but sends an EOF before sending a newline. Fixes bug 17954 17443; bugfix on 0.2.0.20-rc. Found by junglefowl. 17955 17956 o Code simplification and refactoring: 17957 - Clean up a little duplicated code in 17958 crypto_expand_key_material_TAP(). Closes ticket 17587; patch 17959 from "pfrankw". 17960 - Decouple the list of streams waiting to be attached to circuits 17961 from the overall connection list. This change makes it possible to 17962 attach streams quickly while simplifying Tor's callgraph and 17963 avoiding O(N) scans of the entire connection list. Closes 17964 ticket 17590. 17965 - Extract the more complicated parts of circuit_mark_for_close() 17966 into a new function that we run periodically before circuits are 17967 freed. This change removes more than half of the functions 17968 currently in the "blob". Closes ticket 17218. 17969 - Move logging of redundant policy entries in 17970 policies_parse_exit_policy_internal into its own function. Closes 17971 ticket 17608; patch from "juce". 17972 - Quote all the string interpolations in configure.ac -- even those 17973 which we are pretty sure can't contain spaces. Closes ticket 17974 17744. Patch from zerosion. 17975 - Remove code for configuring OpenSSL dynamic locks; OpenSSL doesn't 17976 use them. Closes ticket 17926. 17977 - Remove specialized code for non-inplace AES_CTR. 99% of our AES is 17978 inplace, so there's no need to have a separate implementation for 17979 the non-inplace code. Closes ticket 18258. Patch from Malek. 17980 - Simplify return types for some crypto functions that can't 17981 actually fail. Patch from Hassan Alsibyani. Closes ticket 18259. 17982 - When a direct directory request fails immediately on launch, 17983 instead of relaunching that request from inside the code that 17984 launches it, instead mark the connection for teardown. This change 17985 simplifies Tor's callback and prevents the directory-request 17986 launching code from invoking itself recursively. Closes 17987 ticket 17589. 17988 17989 o Documentation: 17990 - Add a description of the correct use of the '--keygen' command- 17991 line option. Closes ticket 17583; based on text by 's7r'. 17992 - Change build messages to refer to "Fedora" instead of "Fedora 17993 Core", and "dnf" instead of "yum". Closes tickets 18459 and 18426. 17994 Patches from "icanhasaccount" and "cypherpunks". 17995 - Document the contents of the 'datadir/keys' subdirectory in the 17996 manual page. Closes ticket 17621. 17997 - Document the minimum HeartbeatPeriod value. Closes ticket 15638. 17998 - Explain actual minima for BandwidthRate. Closes ticket 16382. 17999 - Fix a minor formatting typo in the manpage. Closes ticket 17791. 18000 - Mention torspec URL in the manpage and point the reader to it 18001 whenever we mention a document that belongs in torspce. Fixes 18002 issue 17392. 18003 - Stop recommending use of nicknames to identify relays in our 18004 MapAddress documentation. Closes ticket 18312. 18005 18006 o Removed features: 18007 - Remove client-side support for connecting to Tor relays running 18008 versions of Tor before 0.2.3.6-alpha. These relays didn't support 18009 the v3 TLS handshake protocol, and are no longer allowed on the 18010 Tor network. Implements the client side of ticket 11150. Based on 18011 patches by Tom van der Woerdt. 18012 - We no longer maintain an internal freelist in memarea.c. 18013 Allocators should be good enough to make this code unnecessary, 18014 and it's doubtful that it ever had any performance benefit. 18015 18016 o Testing: 18017 - Add unit tests to check for common RNG failure modes, such as 18018 returning all zeroes, identical values, or incrementing values 18019 (OpenSSL's rand_predictable feature). Patch by teor. 18020 - Always test both ed25519 backends, so that we can be sure that our 18021 batch-open replacement code works. Part of ticket 16794. 18022 - Cover dns_resolve_impl() in dns.c with unit tests. Implements a 18023 portion of ticket 16831. 18024 - Fix several warnings from clang's address sanitizer produced in 18025 the unit tests. 18026 - Log more information when the backtrace tests fail. Closes ticket 18027 17892. Patch from "cypherpunks." 18028 - More unit tests for compat_libevent.c, procmon.c, tortls.c, 18029 util_format.c, directory.c, and options_validate.c. Closes tickets 18030 17075, 17082, 17084, 17003, and 17076 respectively. Patches from 18031 Ola Bini. 18032 - Treat backtrace test failures as expected on FreeBSD until we 18033 solve bug 17808. Closes ticket 18204. 18034 - Unit tests for directory_handle_command_get. Closes ticket 17004. 18035 Patch from Reinaldo de Souza Jr. 18036 18037 18038 Changes in version 0.2.7.6 - 2015-12-10 18039 Tor version 0.2.7.6 fixes a major bug in entry guard selection, as 18040 well as a minor bug in hidden service reliability. 18041 18042 o Major bugfixes (guard selection): 18043 - Actually look at the Guard flag when selecting a new directory 18044 guard. When we implemented the directory guard design, we 18045 accidentally started treating all relays as if they have the Guard 18046 flag during guard selection, leading to weaker anonymity and worse 18047 performance. Fixes bug 17772; bugfix on 0.2.4.8-alpha. Discovered 18048 by Mohsen Imani. 18049 18050 o Minor features (geoip): 18051 - Update geoip and geoip6 to the December 1 2015 Maxmind GeoLite2 18052 Country database. 18053 18054 o Minor bugfixes (compilation): 18055 - When checking for net/pfvar.h, include netinet/in.h if possible. 18056 This fixes transparent proxy detection on OpenBSD. Fixes bug 18057 17551; bugfix on 0.1.2.1-alpha. Patch from "rubiate". 18058 - Fix a compilation warning with Clang 3.6: Do not check the 18059 presence of an address which can never be NULL. Fixes bug 17781. 18060 18061 o Minor bugfixes (correctness): 18062 - When displaying an IPv6 exit policy, include the mask bits 18063 correctly even when the number is greater than 31. Fixes bug 18064 16056; bugfix on 0.2.4.7-alpha. Patch from "gturner". 18065 - The wrong list was used when looking up expired intro points in a 18066 rend service object, causing what we think could be reachability 18067 issues for hidden services, and triggering a BUG log. Fixes bug 18068 16702; bugfix on 0.2.7.2-alpha. 18069 - Fix undefined behavior in the tor_cert_checksig function. Fixes 18070 bug 17722; bugfix on 0.2.7.2-alpha. 18071 18072 18073 Changes in version 0.2.7.5 - 2015-11-20 18074 The Tor 0.2.7 release series is dedicated to the memory of Tor user 18075 and privacy advocate Caspar Bowden (1961-2015). Caspar worked 18076 tirelessly to advocate human rights regardless of national borders, 18077 and oppose the encroachments of mass surveillance. He opposed national 18078 exceptionalism, he brought clarity to legal and policy debates, he 18079 understood and predicted the impact of mass surveillance on the world, 18080 and he laid the groundwork for resisting it. While serving on the Tor 18081 Project's board of directors, he brought us his uncompromising focus 18082 on technical excellence in the service of humankind. Caspar was an 18083 inimitable force for good and a wonderful friend. He was kind, 18084 humorous, generous, gallant, and believed we should protect one 18085 another without exception. We honor him here for his ideals, his 18086 efforts, and his accomplishments. Please honor his memory with works 18087 that would make him proud. 18088 18089 Tor 0.2.7.5 is the first stable release in the Tor 0.2.7 series. 18090 18091 The 0.2.7 series adds a more secure identity key type for relays, 18092 improves cryptography performance, resolves several longstanding 18093 hidden-service performance issues, improves controller support for 18094 hidden services, and includes small bugfixes and performance 18095 improvements throughout the program. This release series also includes 18096 more tests than before, and significant simplifications to which parts 18097 of Tor invoke which others. For a full list of changes, see below. 18098 18099 o New system requirements: 18100 - Tor no longer includes workarounds to support Libevent versions 18101 before 1.3e. Libevent 2.0 or later is recommended. Closes 18102 ticket 15248. 18103 - Tor no longer supports copies of OpenSSL that are missing support 18104 for Elliptic Curve Cryptography. (We began using ECC when 18105 available in 0.2.4.8-alpha, for more safe and efficient key 18106 negotiation.) In particular, support for at least one of P256 or 18107 P224 is now required, with manual configuration needed if only 18108 P224 is available. Resolves ticket 16140. 18109 - Tor no longer supports versions of OpenSSL before 1.0. (If you are 18110 on an operating system that has not upgraded to OpenSSL 1.0 or 18111 later, and you compile Tor from source, you will need to install a 18112 more recent OpenSSL to link Tor against.) These versions of 18113 OpenSSL are still supported by the OpenSSL, but the numerous 18114 cryptographic improvements in later OpenSSL releases makes them a 18115 clear choice. Resolves ticket 16034. 18116 18117 o Major features (controller): 18118 - Add the ADD_ONION and DEL_ONION commands that allow the creation 18119 and management of hidden services via the controller. Closes 18120 ticket 6411. 18121 - New "GETINFO onions/current" and "GETINFO onions/detached" 18122 commands to get information about hidden services created via the 18123 controller. Part of ticket 6411. 18124 - New HSFETCH command to launch a request for a hidden service 18125 descriptor. Closes ticket 14847. 18126 - New HSPOST command to upload a hidden service descriptor. Closes 18127 ticket 3523. Patch by "DonnchaC". 18128 18129 o Major features (Ed25519 identity keys, Proposal 220): 18130 - Add support for offline encrypted Ed25519 master keys. To use this 18131 feature on your tor relay, run "tor --keygen" to make a new master 18132 key (or to make a new signing key if you already have a master 18133 key). Closes ticket 13642. 18134 - All relays now maintain a stronger identity key, using the Ed25519 18135 elliptic curve signature format. This master key is designed so 18136 that it can be kept offline. Relays also generate an online 18137 signing key, and a set of other Ed25519 keys and certificates. 18138 These are all automatically regenerated and rotated as needed. 18139 Implements part of ticket 12498. 18140 - Directory authorities now vote on Ed25519 identity keys along with 18141 RSA1024 keys. Implements part of ticket 12498. 18142 - Directory authorities track which Ed25519 identity keys have been 18143 used with which RSA1024 identity keys, and do not allow them to 18144 vary freely. Implements part of ticket 12498. 18145 - Microdescriptors now include Ed25519 identity keys. Implements 18146 part of ticket 12498. 18147 - Add a --newpass option to allow changing or removing the 18148 passphrase of an encrypted key with tor --keygen. Implements part 18149 of ticket 16769. 18150 - Add a new OfflineMasterKey option to tell Tor never to try loading 18151 or generating a secret Ed25519 identity key. You can use this in 18152 combination with tor --keygen to manage offline and/or encrypted 18153 Ed25519 keys. Implements ticket 16944. 18154 - On receiving a HUP signal, check to see whether the Ed25519 18155 signing key has changed, and reload it if so. Closes ticket 16790. 18156 - Significant usability improvements for Ed25519 key management. Log 18157 messages are better, and the code can recover from far more 18158 failure conditions. Thanks to "s7r" for reporting and diagnosing 18159 so many of these! 18160 18161 o Major features (ECC performance): 18162 - Improve the runtime speed of Ed25519 signature verification by 18163 using Ed25519-donna's batch verification support. Implements 18164 ticket 16533. 18165 - Improve the speed of Ed25519 operations and Curve25519 keypair 18166 generation when built targeting 32 bit x86 platforms with SSE2 18167 available. Implements ticket 16535. 18168 - Improve the runtime speed of Ed25519 operations by using the 18169 public-domain Ed25519-donna by Andrew M. ("floodyberry"). 18170 Implements ticket 16467. 18171 - Improve the runtime speed of the ntor handshake by using an 18172 optimized curve25519 basepoint scalarmult implementation from the 18173 public-domain Ed25519-donna by Andrew M. ("floodyberry"), based on 18174 ideas by Adam Langley. Implements ticket 9663. 18175 18176 o Major features (Hidden services): 18177 - Hidden services, if using the EntryNodes option, are required to 18178 use more than one EntryNode, in order to avoid a guard discovery 18179 attack. (This would only affect people who had configured hidden 18180 services and manually specified the EntryNodes option with a 18181 single entry-node. The impact was that it would be easy to 18182 remotely identify the guard node used by such a hidden service. 18183 See ticket for more information.) Fixes ticket 14917. 18184 - Add the torrc option HiddenServiceNumIntroductionPoints, to 18185 specify a fixed number of introduction points. Its maximum value 18186 is 10 and default is 3. Using this option can increase a hidden 18187 service's reliability under load, at the cost of making it more 18188 visible that the hidden service is facing extra load. Closes 18189 ticket 4862. 18190 - Remove the adaptive algorithm for choosing the number of 18191 introduction points, which used to change the number of 18192 introduction points (poorly) depending on the number of 18193 connections the HS sees. Closes ticket 4862. 18194 18195 o Major features (onion key cross-certification): 18196 - Relay descriptors now include signatures of their own identity 18197 keys, made using the TAP and ntor onion keys. These signatures 18198 allow relays to prove ownership of their own onion keys. Because 18199 of this change, microdescriptors will no longer need to include 18200 RSA identity keys. Implements proposal 228; closes ticket 12499. 18201 18202 o Major bugfixes (client-side privacy, also in 0.2.6.9): 18203 - Properly separate out each SOCKSPort when applying stream 18204 isolation. The error occurred because each port's session group 18205 was being overwritten by a default value when the listener 18206 connection was initialized. Fixes bug 16247; bugfix on 18207 0.2.6.3-alpha. Patch by "jojelino". 18208 18209 o Major bugfixes (hidden service clients, stability, also in 0.2.6.10): 18210 - Stop refusing to store updated hidden service descriptors on a 18211 client. This reverts commit 9407040c59218 (which indeed fixed bug 18212 14219, but introduced a major hidden service reachability 18213 regression detailed in bug 16381). This is a temporary fix since 18214 we can live with the minor issue in bug 14219 (it just results in 18215 some load on the network) but the regression of 16381 is too much 18216 of a setback. First-round fix for bug 16381; bugfix 18217 on 0.2.6.3-alpha. 18218 18219 o Major bugfixes (hidden services): 18220 - Revert commit that made directory authorities assign the HSDir 18221 flag to relays without a DirPort; this was bad because such relays 18222 can't handle BEGIN_DIR cells. Fixes bug 15850; bugfix 18223 on 0.2.6.3-alpha. 18224 - When cannibalizing a circuit for an introduction point, always 18225 extend to the chosen exit node (creating a 4 hop circuit). 18226 Previously Tor would use the current circuit exit node, which 18227 changed the original choice of introduction point, and could cause 18228 the hidden service to skip excluded introduction points or 18229 reconnect to a skipped introduction point. Fixes bug 16260; bugfix 18230 on 0.1.0.1-rc. 18231 18232 o Major bugfixes (memory leaks): 18233 - Fix a memory leak in ed25519 batch signature checking. Fixes bug 18234 17398; bugfix on 0.2.6.1-alpha. 18235 18236 o Major bugfixes (open file limit): 18237 - The open file limit wasn't checked before calling 18238 tor_accept_socket_nonblocking(), which would make Tor exceed the 18239 limit. Now, before opening a new socket, Tor validates the open 18240 file limit just before, and if the max has been reached, return an 18241 error. Fixes bug 16288; bugfix on 0.1.1.1-alpha. 18242 18243 o Major bugfixes (security, correctness): 18244 - Fix an error that could cause us to read 4 bytes before the 18245 beginning of an openssl string. This bug could be used to cause 18246 Tor to crash on systems with unusual malloc implementations, or 18247 systems with unusual hardening installed. Fixes bug 17404; bugfix 18248 on 0.2.3.6-alpha. 18249 18250 o Major bugfixes (stability, also in 0.2.6.10): 18251 - Stop crashing with an assertion failure when parsing certain kinds 18252 of malformed or truncated microdescriptors. Fixes bug 16400; 18253 bugfix on 0.2.6.1-alpha. Found by "torkeln"; fix based on a patch 18254 by "cypherpunks_backup". 18255 - Stop random client-side assertion failures that could occur when 18256 connecting to a busy hidden service, or connecting to a hidden 18257 service while a NEWNYM is in progress. Fixes bug 16013; bugfix 18258 on 0.1.0.1-rc. 18259 18260 o Minor features (client, SOCKS): 18261 - Add GroupWritable and WorldWritable options to unix-socket based 18262 SocksPort and ControlPort options. These options apply to a single 18263 socket, and override {Control,Socks}SocketsGroupWritable. Closes 18264 ticket 15220. 18265 - Relax the validation done to hostnames in SOCKS5 requests, and 18266 allow a single trailing '.' to cope with clients that pass FQDNs 18267 using that syntax to explicitly indicate that the domain name is 18268 fully-qualified. Fixes bug 16674; bugfix on 0.2.6.2-alpha. 18269 - Relax the validation of hostnames in SOCKS5 requests, allowing the 18270 character '_' to appear, in order to cope with domains observed in 18271 the wild that are serving non-RFC compliant records. Resolves 18272 ticket 16430. 18273 18274 o Minor features (client-side privacy): 18275 - New KeepAliveIsolateSOCKSAuth option to indefinitely extend circuit 18276 lifespan when IsolateSOCKSAuth and streams with SOCKS 18277 authentication are attached to the circuit. This allows 18278 applications like TorBrowser to manage circuit lifetime on their 18279 own. Implements feature 15482. 18280 - When logging malformed hostnames from SOCKS5 requests, respect 18281 SafeLogging configuration. Fixes bug 16891; bugfix on 0.1.1.16-rc. 18282 18283 o Minor features (clock-jump tolerance): 18284 - Recover better when our clock jumps back many hours, like might 18285 happen for Tails or Whonix users who start with a very wrong 18286 hardware clock, use Tor to discover a more accurate time, and then 18287 fix their clock. Resolves part of ticket 8766. 18288 18289 o Minor features (command-line interface): 18290 - Make --hash-password imply --hush to prevent unnecessary noise. 18291 Closes ticket 15542. Patch from "cypherpunks". 18292 - Print a warning whenever we find a relative file path being used 18293 as torrc option. Resolves issue 14018. 18294 18295 o Minor features (compilation): 18296 - Give a warning as early as possible when trying to build with an 18297 unsupported OpenSSL version. Closes ticket 16901. 18298 - Use C99 variadic macros when the compiler is not GCC. This avoids 18299 failing compilations on MSVC, and fixes a log-file-based race 18300 condition in our old workarounds. Original patch from Gisle Vanem. 18301 18302 o Minor features (control protocol): 18303 - Support network-liveness GETINFO key and NETWORK_LIVENESS event in 18304 the control protocol. Resolves ticket 15358. 18305 18306 o Minor features (controller): 18307 - Add DirAuthority lines for default directory authorities to the 18308 output of the "GETINFO config/defaults" command if not already 18309 present. Implements ticket 14840. 18310 - Controllers can now use "GETINFO hs/client/desc/id/..." to 18311 retrieve items from the client's hidden service descriptor cache. 18312 Closes ticket 14845. 18313 - Implement a new controller command "GETINFO status/fresh-relay- 18314 descs" to fetch a descriptor/extrainfo pair that was generated on 18315 demand just for the controller's use. Implements ticket 14784. 18316 18317 o Minor features (directory authorities): 18318 - Directory authorities no longer vote against the "Fast", "Stable", 18319 and "HSDir" flags just because they were going to vote against 18320 "Running": if the consensus turns out to be that the router was 18321 running, then the authority's vote should count. Patch from Peter 18322 Retzlaff; closes issue 8712. 18323 18324 o Minor features (directory authorities, security, also in 0.2.6.9): 18325 - The HSDir flag given by authorities now requires the Stable flag. 18326 For the current network, this results in going from 2887 to 2806 18327 HSDirs. Also, it makes it harder for an attacker to launch a sybil 18328 attack by raising the effort for a relay to become Stable to 18329 require at the very least 7 days, while maintaining the 96 hours 18330 uptime requirement for HSDir. Implements ticket 8243. 18331 18332 o Minor features (DoS-resistance): 18333 - Make it harder for attackers to overload hidden services with 18334 introductions, by blocking multiple introduction requests on the 18335 same circuit. Resolves ticket 15515. 18336 18337 o Minor features (geoip): 18338 - Update geoip and geoip6 to the October 9 2015 Maxmind GeoLite2 18339 Country database. 18340 18341 o Minor features (hidden services): 18342 - Add the new options "HiddenServiceMaxStreams" and 18343 "HiddenServiceMaxStreamsCloseCircuit" to allow hidden services to 18344 limit the maximum number of simultaneous streams per circuit, and 18345 optionally tear down the circuit when the limit is exceeded. Part 18346 of ticket 16052. 18347 - Client now uses an introduction point failure cache to know when 18348 to fetch or keep a descriptor in their cache. Previously, failures 18349 were recorded implicitly, but not explicitly remembered. Closes 18350 ticket 16389. 18351 - Relays need to have the Fast flag to get the HSDir flag. As this 18352 is being written, we'll go from 2745 HSDirs down to 2342, a ~14% 18353 drop. This change should make some attacks against the hidden 18354 service directory system harder. Fixes ticket 15963. 18355 - Turn on hidden service statistics collection by setting the torrc 18356 option HiddenServiceStatistics to "1" by default. (This keeps 18357 track only of the fraction of traffic used by hidden services, and 18358 the total number of hidden services in existence.) Closes 18359 ticket 15254. 18360 - To avoid leaking HS popularity, don't cycle the introduction point 18361 when we've handled a fixed number of INTRODUCE2 cells but instead 18362 cycle it when a random number of introductions is reached, thus 18363 making it more difficult for an attacker to find out the amount of 18364 clients that have used the introduction point for a specific HS. 18365 Closes ticket 15745. 18366 18367 o Minor features (logging): 18368 - Include the Tor version in all LD_BUG log messages, since people 18369 tend to cut and paste those into the bugtracker. Implements 18370 ticket 15026. 18371 18372 o Minor features (pluggable transports): 18373 - When launching managed pluggable transports on Linux systems, 18374 attempt to have the kernel deliver a SIGTERM on tor exit if the 18375 pluggable transport process is still running. Resolves 18376 ticket 15471. 18377 - When launching managed pluggable transports, setup a valid open 18378 stdin in the child process that can be used to detect if tor has 18379 terminated. The "TOR_PT_EXIT_ON_STDIN_CLOSE" environment variable 18380 can be used by implementations to detect this new behavior. 18381 Resolves ticket 15435. 18382 18383 o Minor bugfixes (torrc exit policies): 18384 - In each instance above, usage advice is provided to avoid the 18385 message. Resolves ticket 16069. Patch by "teor". Fixes part of bug 18386 16069; bugfix on 0.2.4.7-alpha. 18387 - In torrc, "accept6 *" and "reject6 *" ExitPolicy lines now only 18388 produce IPv6 wildcard addresses. Previously they would produce 18389 both IPv4 and IPv6 wildcard addresses. Patch by "teor". Fixes part 18390 of bug 16069; bugfix on 0.2.4.7-alpha. 18391 - When parsing torrc ExitPolicies, we now issue an info-level 18392 message when expanding an "accept/reject *" line to include both 18393 IPv4 and IPv6 wildcard addresses. Related to ticket 16069. 18394 - When parsing torrc ExitPolicies, we now warn for a number of cases 18395 where the user's intent is likely to differ from Tor's actual 18396 behavior. These include: using an IPv4 address with an accept6 or 18397 reject6 line; using "private" on an accept6 or reject6 line; and 18398 including any ExitPolicy lines after accept *:* or reject *:*. 18399 Related to ticket 16069. 18400 18401 o Minor bugfixes (command-line interface): 18402 - When "--quiet" is provided along with "--validate-config", do not 18403 write anything to stdout on success. Fixes bug 14994; bugfix 18404 on 0.2.3.3-alpha. 18405 - When complaining about bad arguments to "--dump-config", use 18406 stderr, not stdout. 18407 - Print usage information for --dump-config when it is used without 18408 an argument. Also, fix the error message to use different wording 18409 and add newline at the end. Fixes bug 15541; bugfix 18410 on 0.2.5.1-alpha. 18411 18412 o Minor bugfixes (compilation): 18413 - Fix compilation of sandbox.c with musl-libc. Fixes bug 17347; 18414 bugfix on 0.2.5.1-alpha. Patch from 'jamestk'. 18415 - Repair compilation with the most recent (unreleased, alpha) 18416 vesions of OpenSSL 1.1. Fixes part of ticket 17237. 18417 18418 o Minor bugfixes (compilation, also in 0.2.6.9): 18419 - Build with --enable-systemd correctly when libsystemd is 18420 installed, but systemd is not. Fixes bug 16164; bugfix on 18421 0.2.6.3-alpha. Patch from Peter Palfrader. 18422 18423 o Minor bugfixes (configuration, unit tests): 18424 - Only add the default fallback directories when the DirAuthorities, 18425 AlternateDirAuthority, and FallbackDir directory config options 18426 are set to their defaults. The default fallback directory list is 18427 currently empty, this fix will only change tor's behavior when it 18428 has default fallback directories. Includes unit tests for 18429 consider_adding_dir_servers(). Fixes bug 15642; bugfix on 18430 90f6071d8dc0 in 0.2.4.7-alpha. Patch by "teor". 18431 18432 o Minor bugfixes (controller): 18433 - Add the descriptor ID in each HS_DESC control event. It was 18434 missing, but specified in control-spec.txt. Fixes bug 15881; 18435 bugfix on 0.2.5.2-alpha. 18436 18437 o Minor bugfixes (correctness): 18438 - For correctness, avoid modifying a constant string in 18439 handle_control_postdescriptor. Fixes bug 15546; bugfix 18440 on 0.1.1.16-rc. 18441 - Remove side-effects from tor_assert() calls. This was harmless, 18442 because we never disable assertions, but it is bad style and 18443 unnecessary. Fixes bug 15211; bugfix on 0.2.5.5, 0.2.2.36, 18444 and 0.2.0.10. 18445 - When calling channel_free_list(), avoid calling smartlist_remove() 18446 while inside a FOREACH loop. This partially reverts commit 18447 17356fe7fd96af where the correct SMARTLIST_DEL_CURRENT was 18448 incorrectly removed. Fixes bug 16924; bugfix on 0.2.4.4-alpha. 18449 18450 o Minor bugfixes (crypto error-handling, also in 0.2.6.10): 18451 - Check for failures from crypto_early_init, and refuse to continue. 18452 A previous typo meant that we could keep going with an 18453 uninitialized crypto library, and would have OpenSSL initialize 18454 its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced 18455 when implementing ticket 4900. Patch by "teor". 18456 18457 o Minor bugfixes (hidden service): 18458 - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on 18459 a client authorized hidden service. Fixes bug 15823; bugfix 18460 on 0.2.1.6-alpha. 18461 - Remove an extraneous newline character from the end of hidden 18462 service descriptors. Fixes bug 15296; bugfix on 0.2.0.10-alpha. 18463 18464 o Minor bugfixes (Linux seccomp2 sandbox): 18465 - Use the sandbox in tor_open_cloexec whether or not O_CLOEXEC is 18466 defined. Patch by "teor". Fixes bug 16515; bugfix on 0.2.3.1-alpha. 18467 - Allow bridge authorities to run correctly under the seccomp2 18468 sandbox. Fixes bug 16964; bugfix on 0.2.5.1-alpha. 18469 - Add the "hidserv-stats" filename to our sandbox filter for the 18470 HiddenServiceStatistics option to work properly. Fixes bug 17354; 18471 bugfix on 0.2.6.2-alpha. Patch from David Goulet. 18472 18473 o Minor bugfixes (Linux seccomp2 sandbox, also in 0.2.6.10): 18474 - Allow pipe() and pipe2() syscalls in the seccomp2 sandbox: we need 18475 these when eventfd2() support is missing. Fixes bug 16363; bugfix 18476 on 0.2.6.3-alpha. Patch from "teor". 18477 18478 o Minor bugfixes (Linux seccomp2 sandbox, also in 0.2.6.9): 18479 - Allow systemd connections to work with the Linux seccomp2 sandbox 18480 code. Fixes bug 16212; bugfix on 0.2.6.2-alpha. Patch by 18481 Peter Palfrader. 18482 - Fix sandboxing to work when running as a relay, by allowing the 18483 renaming of secret_id_key, and allowing the eventfd2 and futex 18484 syscalls. Fixes bug 16244; bugfix on 0.2.6.1-alpha. Patch by 18485 Peter Palfrader. 18486 18487 o Minor bugfixes (logging): 18488 - When building Tor under Clang, do not include an extra set of 18489 parentheses in log messages that include function names. Fixes bug 18490 15269; bugfix on every released version of Tor when compiled with 18491 recent enough Clang. 18492 18493 o Minor bugfixes (network): 18494 - When attempting to use fallback technique for network interface 18495 lookup, disregard loopback and multicast addresses since they are 18496 unsuitable for public communications. 18497 18498 o Minor bugfixes (open file limit): 18499 - Fix set_max_file_descriptors() to set by default the max open file 18500 limit to the current limit when setrlimit() fails. Fixes bug 18501 16274; bugfix on tor- 0.2.0.10-alpha. Patch by dgoulet. 18502 18503 o Minor bugfixes (portability): 18504 - Check correctly for Windows socket errors in the workqueue 18505 backend. Fixes bug 16741; bugfix on 0.2.6.3-alpha. 18506 - Try harder to normalize the exit status of the Tor process to the 18507 standard-provided range. Fixes bug 16975; bugfix on every version 18508 of Tor ever. 18509 - Use libexecinfo on FreeBSD to enable backtrace support. Fixes part 18510 of bug 17151; bugfix on 0.2.5.2-alpha. Patch from Marcin Cieślak. 18511 18512 o Minor bugfixes (relay): 18513 - Ensure that worker threads actually exit when a fatal error or 18514 shutdown is indicated. This fix doesn't currently affect the 18515 behavior of Tor, because Tor workers never indicates fatal error 18516 or shutdown except in the unit tests. Fixes bug 16868; bugfix 18517 on 0.2.6.3-alpha. 18518 - Fix a rarely-encountered memory leak when failing to initialize 18519 the thread pool. Fixes bug 16631; bugfix on 0.2.6.3-alpha. Patch 18520 from "cypherpunks". 18521 - Unblock threads before releasing the work queue mutex to ensure 18522 predictable scheduling behavior. Fixes bug 16644; bugfix 18523 on 0.2.6.3-alpha. 18524 18525 o Minor bugfixes (security, exit policies): 18526 - ExitPolicyRejectPrivate now also rejects the relay's published 18527 IPv6 address (if any), and any publicly routable IPv4 or IPv6 18528 addresses on any local interfaces. ticket 17027. Patch by "teor". 18529 Fixes bug 17027; bugfix on 0.2.0.11-alpha. 18530 18531 o Minor bugfixes (statistics): 18532 - Disregard the ConnDirectionStatistics torrc options when Tor is 18533 not a relay since in that mode of operation no sensible data is 18534 being collected and because Tor might run into measurement hiccups 18535 when running as a client for some time, then becoming a relay. 18536 Fixes bug 15604; bugfix on 0.2.2.35. 18537 18538 o Minor bugfixes (systemd): 18539 - Tor's systemd unit file no longer contains extraneous spaces. 18540 These spaces would sometimes confuse tools like deb-systemd- 18541 helper. Fixes bug 16162; bugfix on 0.2.5.5-alpha. 18542 18543 o Minor bugfixes (test networks): 18544 - When self-testing reachability, use ExtendAllowPrivateAddresses to 18545 determine if local/private addresses imply reachability. The 18546 previous fix used TestingTorNetwork, which implies 18547 ExtendAllowPrivateAddresses, but this excluded rare configurations 18548 where ExtendAllowPrivateAddresses is set but TestingTorNetwork is 18549 not. Fixes bug 15771; bugfix on 0.2.6.1-alpha. Patch by "teor", 18550 issue discovered by CJ Ess. 18551 18552 o Minor bugfixes (tests, also in 0.2.6.9): 18553 - Fix a crash in the unit tests when built with MSVC2013. Fixes bug 18554 16030; bugfix on 0.2.6.2-alpha. Patch from "NewEraCracker". 18555 18556 o Code simplification and refactoring: 18557 - Change the function that's called when we need to retry all 18558 downloads so that it only reschedules the downloads to happen 18559 immediately, rather than launching them all at once itself. This 18560 further simplifies Tor's callgraph. 18561 - Define WINVER and _WIN32_WINNT centrally, in orconfig.h, in order 18562 to ensure they remain consistent and visible everywhere. 18563 - Move some format-parsing functions out of crypto.c and 18564 crypto_curve25519.c into crypto_format.c and/or util_format.c. 18565 - Move the client-only parts of init_keys() into a separate 18566 function. Closes ticket 16763. 18567 - Move the hacky fallback code out of get_interface_address6() into 18568 separate function and get it covered with unit-tests. Resolves 18569 ticket 14710. 18570 - Refactor hidden service client-side cache lookup to intelligently 18571 report its various failure cases, and disentangle failure cases 18572 involving a lack of introduction points. Closes ticket 14391. 18573 - Remove some vestigial workarounds for the MSVC6 compiler. We 18574 haven't supported that in ages. 18575 - Remove the unused "nulterminate" argument from buf_pullup(). 18576 - Simplify the microdesc_free() implementation so that it no longer 18577 appears (to code analysis tools) to potentially invoke a huge 18578 suite of other microdesc functions. 18579 - Simply the control graph further by deferring the inner body of 18580 directory_all_unreachable() into a callback. Closes ticket 16762. 18581 - The link authentication code has been refactored for better 18582 testability and reliability. It now uses code generated with the 18583 "trunnel" binary encoding generator, to reduce the risk of bugs 18584 due to programmer error. Done as part of ticket 12498. 18585 - Treat the loss of an owning controller as equivalent to a SIGTERM 18586 signal. This removes a tiny amount of duplicated code, and 18587 simplifies our callgraph. Closes ticket 16788. 18588 - Use our own Base64 encoder instead of OpenSSL's, to allow more 18589 control over the output. Part of ticket 15652. 18590 - When generating an event to send to the controller, we no longer 18591 put the event over the network immediately. Instead, we queue 18592 these events, and use a Libevent callback to deliver them. This 18593 change simplifies Tor's callgraph by reducing the number of 18594 functions from which all other Tor functions are reachable. Closes 18595 ticket 16695. 18596 - Wrap Windows-only C files inside '#ifdef _WIN32' so that tools 18597 that try to scan or compile every file on Unix won't decide that 18598 they are broken. 18599 18600 o Documentation: 18601 - Fix capitalization of SOCKS in sample torrc. Closes ticket 15609. 18602 - Improve the descriptions of statistics-related torrc options in 18603 the manpage to describe rationale and possible uses cases. Fixes 18604 issue 15550. 18605 - Improve the layout and formatting of ./configure --help messages. 18606 Closes ticket 15024. Patch from "cypherpunks". 18607 - Include a specific and (hopefully) accurate documentation of the 18608 torrc file's meta-format in doc/torrc_format.txt. This is mainly 18609 of interest to people writing programs to parse or generate torrc 18610 files. This document is not a commitment to long-term 18611 compatibility; some aspects of the current format are a bit 18612 ridiculous. Closes ticket 2325. 18613 - Include the TUNING document in our source tarball. It is referred 18614 to in the ChangeLog and an error message. Fixes bug 16929; bugfix 18615 on 0.2.6.1-alpha. 18616 - Note that HiddenServicePorts can take a unix domain socket. Closes 18617 ticket 17364. 18618 - Recommend a 40 GB example AccountingMax in torrc.sample rather 18619 than a 4 GB max. Closes ticket 16742. 18620 - Standardize on the term "server descriptor" in the manual page. 18621 Previously, we had used "router descriptor", "server descriptor", 18622 and "relay descriptor" interchangeably. Part of ticket 14987. 18623 - Advise users on how to configure separate IPv4 and IPv6 exit 18624 policies in the manpage and sample torrcs. Related to ticket 16069. 18625 - Fix an error in the manual page and comments for 18626 TestingDirAuthVoteHSDir[IsStrict], which suggested that a HSDir 18627 required "ORPort connectivity". While this is true, it is in no 18628 way unique to the HSDir flag. Of all the flags, only HSDirs need a 18629 DirPort configured in order for the authorities to assign that 18630 particular flag. Patch by "teor". Fixed as part of 14882; bugfix 18631 on 0.2.6.3-alpha. 18632 - Fix the usage message of tor-resolve(1) so that it no longer lists 18633 the removed -F option. Fixes bug 16913; bugfix on 0.2.2.28-beta. 18634 18635 o Removed code: 18636 - Remove `USE_OPENSSL_BASE64` and the corresponding fallback code 18637 and always use the internal Base64 decoder. The internal decoder 18638 has been part of tor since 0.2.0.10-alpha, and no one should 18639 be using the OpenSSL one. Part of ticket 15652. 18640 - Remove the 'tor_strclear()' function; use memwipe() instead. 18641 Closes ticket 14922. 18642 - Remove the code that would try to aggressively flush controller 18643 connections while writing to them. This code was introduced in 18644 0.1.2.7-alpha, in order to keep output buffers from exceeding 18645 their limits. But there is no longer a maximum output buffer size, 18646 and flushing data in this way caused some undesirable recursions 18647 in our call graph. Closes ticket 16480. 18648 - The internal pure-C tor-fw-helper tool is now removed from the Tor 18649 distribution, in favor of the pure-Go clone available from 18650 https://gitweb.torproject.org/tor-fw-helper.git/ . The libraries 18651 used by the C tor-fw-helper are not, in our opinion, very 18652 confidence- inspiring in their secure-programming techniques. 18653 Closes ticket 13338. 18654 18655 o Removed features: 18656 - Remove the (seldom-used) DynamicDHGroups feature. For anti- 18657 fingerprinting we now recommend pluggable transports; for forward- 18658 secrecy in TLS, we now use the P-256 group. Closes ticket 13736. 18659 - Remove the HidServDirectoryV2 option. Now all relays offer to 18660 store hidden service descriptors. Related to 16543. 18661 - Remove the VoteOnHidServDirectoriesV2 option, since all 18662 authorities have long set it to 1. Closes ticket 16543. 18663 - Remove the undocumented "--digests" command-line option. It 18664 complicated our build process, caused subtle build issues on 18665 multiple platforms, and is now redundant since we started 18666 including git version identifiers. Closes ticket 14742. 18667 - Tor no longer contains checks for ancient directory cache versions 18668 that didn't know about microdescriptors. 18669 - Tor no longer contains workarounds for stat files generated by 18670 super-old versions of Tor that didn't choose guards sensibly. 18671 18672 o Testing: 18673 - The test-network.sh script now supports performance testing. 18674 Requires corresponding chutney performance testing changes. Patch 18675 by "teor". Closes ticket 14175. 18676 - Add a new set of callgraph analysis scripts that use clang to 18677 produce a list of which Tor functions are reachable from which 18678 other Tor functions. We're planning to use these to help simplify 18679 our code structure by identifying illogical dependencies. 18680 - Add new 'test-full' and 'test-full-online' targets to run all 18681 tests, including integration tests with stem and chutney. 18682 - Autodetect CHUTNEY_PATH if the chutney and Tor sources are side- 18683 by-side in the same parent directory. Closes ticket 16903. Patch 18684 by "teor". 18685 - Document use of coverity, clang static analyzer, and clang dynamic 18686 undefined behavior and address sanitizers in doc/HACKING. Include 18687 detailed usage instructions in the blacklist. Patch by "teor". 18688 Closes ticket 15817. 18689 - Make "bridges+hs" the default test network. This tests almost all 18690 tor functionality during make test-network, while allowing tests 18691 to succeed on non-IPv6 systems. Requires chutney commit 396da92 in 18692 test-network-bridges-hs. Closes tickets 16945 (tor) and 16946 18693 (chutney). Patches by "teor". 18694 - Make the test-workqueue test work on Windows by initializing the 18695 network before we begin. 18696 - New make target (make test-network-all) to run multiple applicable 18697 chutney test cases. Patch from Teor; closes 16953. 18698 - Now that OpenSSL has its own scrypt implementation, add an unit 18699 test that checks for interoperability between libscrypt_scrypt() 18700 and OpenSSL's EVP_PBE_scrypt() so that we could not use libscrypt 18701 and rely on EVP_PBE_scrypt() whenever possible. Resolves 18702 ticket 16189. 18703 - The link authentication protocol code now has extensive tests. 18704 - The relay descriptor signature testing code now has 18705 extensive tests. 18706 - The test_workqueue program now runs faster, and is enabled by 18707 default as a part of "make check". 18708 - Unit test dns_resolve(), dns_clip_ttl() and dns_get_expiry_ttl() 18709 functions in dns.c. Implements a portion of ticket 16831. 18710 - Use environment variables rather than autoconf substitutions to 18711 send variables from the build system to the test scripts. This 18712 change should be easier to maintain, and cause 'make distcheck' to 18713 work better than before. Fixes bug 17148. 18714 - When building Tor with testing coverage enabled, run Chutney tests 18715 (if any) using the 'tor-cov' coverage binary. 18716 - When running test-network or test-stem, check for the absence of 18717 stem/chutney before doing any build operations. 18718 - Add a test to verify that the compiler does not eliminate our 18719 memwipe() implementation. Closes ticket 15377. 18720 - Add make rule `check-changes` to verify the format of changes 18721 files. Closes ticket 15180. 18722 - Add unit tests for control_event_is_interesting(). Add a compile- 18723 time check that the number of events doesn't exceed the capacity 18724 of control_event_t.event_mask. Closes ticket 15431, checks for 18725 bugs similar to 13085. Patch by "teor". 18726 - Command-line argument tests moved to Stem. Resolves ticket 14806. 18727 - Integrate the ntor, backtrace, and zero-length keys tests into the 18728 automake test suite. Closes ticket 15344. 18729 - Remove assertions during builds to determine Tor's test coverage. 18730 We don't want to trigger these even in assertions, so including 18731 them artificially makes our branch coverage look worse than it is. 18732 This patch provides the new test-stem-full and coverage-html-full 18733 configure options. Implements ticket 15400. 18734 - New TestingDirAuthVote{Exit,Guard,HSDir}IsStrict flags to 18735 explicitly manage consensus flags in testing networks. Patch by 18736 "robgjansen", modified by "teor". Implements part of ticket 14882. 18737 - Check for matching value in server response in ntor_ref.py. Fixes 18738 bug 15591; bugfix on 0.2.4.8-alpha. Reported and fixed 18739 by "joelanders". 18740 - Set the severity correctly when testing 18741 get_interface_addresses_ifaddrs() and 18742 get_interface_addresses_win32(), so that the tests fail gracefully 18743 instead of triggering an assertion. Fixes bug 15759; bugfix on 18744 0.2.6.3-alpha. Reported by Nicolas Derive. 18745 18746 Changes in version 0.2.6.10 - 2015-07-12 18747 Tor version 0.2.6.10 fixes some significant stability and hidden 18748 service client bugs, bulletproofs the cryptography init process, and 18749 fixes a bug when using the sandbox code with some older versions of 18750 Linux. Everyone running an older version, especially an older version 18751 of 0.2.6, should upgrade. 18752 18753 o Major bugfixes (hidden service clients, stability): 18754 - Stop refusing to store updated hidden service descriptors on a 18755 client. This reverts commit 9407040c59218 (which indeed fixed bug 18756 14219, but introduced a major hidden service reachability 18757 regression detailed in bug 16381). This is a temporary fix since 18758 we can live with the minor issue in bug 14219 (it just results in 18759 some load on the network) but the regression of 16381 is too much 18760 of a setback. First-round fix for bug 16381; bugfix 18761 on 0.2.6.3-alpha. 18762 18763 o Major bugfixes (stability): 18764 - Stop crashing with an assertion failure when parsing certain kinds 18765 of malformed or truncated microdescriptors. Fixes bug 16400; 18766 bugfix on 0.2.6.1-alpha. Found by "torkeln"; fix based on a patch 18767 by "cypherpunks_backup". 18768 - Stop random client-side assertion failures that could occur when 18769 connecting to a busy hidden service, or connecting to a hidden 18770 service while a NEWNYM is in progress. Fixes bug 16013; bugfix 18771 on 0.1.0.1-rc. 18772 18773 o Minor features (geoip): 18774 - Update geoip to the June 3 2015 Maxmind GeoLite2 Country database. 18775 - Update geoip6 to the June 3 2015 Maxmind GeoLite2 Country database. 18776 18777 o Minor bugfixes (crypto error-handling): 18778 - Check for failures from crypto_early_init, and refuse to continue. 18779 A previous typo meant that we could keep going with an 18780 uninitialized crypto library, and would have OpenSSL initialize 18781 its own PRNG. Fixes bug 16360; bugfix on 0.2.5.2-alpha, introduced 18782 when implementing ticket 4900. Patch by "teor". 18783 18784 o Minor bugfixes (Linux seccomp2 sandbox): 18785 - Allow pipe() and pipe2() syscalls in the seccomp2 sandbox: we need 18786 these when eventfd2() support is missing. Fixes bug 16363; bugfix 18787 on 0.2.6.3-alpha. Patch from "teor". 18788 18789 18790 Changes in version 0.2.6.9 - 2015-06-11 18791 Tor 0.2.6.9 fixes a regression in the circuit isolation code, increases the 18792 requirements for receiving an HSDir flag, and addresses some other small 18793 bugs in the systemd and sandbox code. Clients using circuit isolation 18794 should upgrade; all directory authorities should upgrade. 18795 18796 o Major bugfixes (client-side privacy): 18797 - Properly separate out each SOCKSPort when applying stream 18798 isolation. The error occurred because each port's session group was 18799 being overwritten by a default value when the listener connection 18800 was initialized. Fixes bug 16247; bugfix on 0.2.6.3-alpha. Patch 18801 by "jojelino". 18802 18803 o Minor feature (directory authorities, security): 18804 - The HSDir flag given by authorities now requires the Stable flag. 18805 For the current network, this results in going from 2887 to 2806 18806 HSDirs. Also, it makes it harder for an attacker to launch a sybil 18807 attack by raising the effort for a relay to become Stable which 18808 takes at the very least 7 days to do so and by keeping the 96 18809 hours uptime requirement for HSDir. Implements ticket 8243. 18810 18811 o Minor bugfixes (compilation): 18812 - Build with --enable-systemd correctly when libsystemd is 18813 installed, but systemd is not. Fixes bug 16164; bugfix on 18814 0.2.6.3-alpha. Patch from Peter Palfrader. 18815 18816 o Minor bugfixes (Linux seccomp2 sandbox): 18817 - Fix sandboxing to work when running as a relaymby renaming of 18818 secret_id_key, and allowing the eventfd2 and futex syscalls. Fixes 18819 bug 16244; bugfix on 0.2.6.1-alpha. Patch by Peter Palfrader. 18820 - Allow systemd connections to work with the Linux seccomp2 sandbox 18821 code. Fixes bug 16212; bugfix on 0.2.6.2-alpha. Patch by 18822 Peter Palfrader. 18823 18824 o Minor bugfixes (tests): 18825 - Fix a crash in the unit tests when built with MSVC2013. Fixes bug 18826 16030; bugfix on 0.2.6.2-alpha. Patch from "NewEraCracker". 18827 18828 18829 Changes in version 0.2.6.8 - 2015-05-21 18830 Tor 0.2.6.8 fixes a bit of dodgy code in parsing INTRODUCE2 cells, and 18831 fixes an authority-side bug in assigning the HSDir flag. All directory 18832 authorities should upgrade. 18833 18834 o Major bugfixes (hidden services, backport from 0.2.7.1-alpha): 18835 - Revert commit that made directory authorities assign the HSDir 18836 flag to relays without a DirPort; this was bad because such relays 18837 can't handle BEGIN_DIR cells. Fixes bug 15850; bugfix 18838 on 0.2.6.3-alpha. 18839 18840 o Minor bugfixes (hidden service, backport from 0.2.7.1-alpha): 18841 - Fix an out-of-bounds read when parsing invalid INTRODUCE2 cells on 18842 a client authorized hidden service. Fixes bug 15823; bugfix 18843 on 0.2.1.6-alpha. 18844 18845 o Minor features (geoip): 18846 - Update geoip to the April 8 2015 Maxmind GeoLite2 Country database. 18847 - Update geoip6 to the April 8 2015 Maxmind GeoLite2 18848 Country database. 18849 18850 18851 Changes in version 0.2.6.7 - 2015-04-06 18852 Tor 0.2.6.7 fixes two security issues that could be used by an 18853 attacker to crash hidden services, or crash clients visiting hidden 18854 services. Hidden services should upgrade as soon as possible; clients 18855 should upgrade whenever packages become available. 18856 18857 This release also contains two simple improvements to make hidden 18858 services a bit less vulnerable to denial-of-service attacks. 18859 18860 o Major bugfixes (security, hidden service): 18861 - Fix an issue that would allow a malicious client to trigger an 18862 assertion failure and halt a hidden service. Fixes bug 15600; 18863 bugfix on 0.2.1.6-alpha. Reported by "disgleirio". 18864 - Fix a bug that could cause a client to crash with an assertion 18865 failure when parsing a malformed hidden service descriptor. Fixes 18866 bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC". 18867 18868 o Minor features (DoS-resistance, hidden service): 18869 - Introduction points no longer allow multiple INTRODUCE1 cells to 18870 arrive on the same circuit. This should make it more expensive for 18871 attackers to overwhelm hidden services with introductions. 18872 Resolves ticket 15515. 18873 - Decrease the amount of reattempts that a hidden service performs 18874 when its rendezvous circuits fail. This reduces the computational 18875 cost for running a hidden service under heavy load. Resolves 18876 ticket 11447. 18877 18878 18879 Changes in version 0.2.5.12 - 2015-04-06 18880 Tor 0.2.5.12 backports two fixes from 0.2.6.7 for security issues that 18881 could be used by an attacker to crash hidden services, or crash clients 18882 visiting hidden services. Hidden services should upgrade as soon as 18883 possible; clients should upgrade whenever packages become available. 18884 18885 This release also backports a simple improvement to make hidden 18886 services a bit less vulnerable to denial-of-service attacks. 18887 18888 o Major bugfixes (security, hidden service): 18889 - Fix an issue that would allow a malicious client to trigger an 18890 assertion failure and halt a hidden service. Fixes bug 15600; 18891 bugfix on 0.2.1.6-alpha. Reported by "disgleirio". 18892 - Fix a bug that could cause a client to crash with an assertion 18893 failure when parsing a malformed hidden service descriptor. Fixes 18894 bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC". 18895 18896 o Minor features (DoS-resistance, hidden service): 18897 - Introduction points no longer allow multiple INTRODUCE1 cells to 18898 arrive on the same circuit. This should make it more expensive for 18899 attackers to overwhelm hidden services with introductions. 18900 Resolves ticket 15515. 18901 18902 18903 Changes in version 0.2.4.27 - 2015-04-06 18904 Tor 0.2.4.27 backports two fixes from 0.2.6.7 for security issues that 18905 could be used by an attacker to crash hidden services, or crash clients 18906 visiting hidden services. Hidden services should upgrade as soon as 18907 possible; clients should upgrade whenever packages become available. 18908 18909 This release also backports a simple improvement to make hidden 18910 services a bit less vulnerable to denial-of-service attacks. 18911 18912 o Major bugfixes (security, hidden service): 18913 - Fix an issue that would allow a malicious client to trigger an 18914 assertion failure and halt a hidden service. Fixes bug 15600; 18915 bugfix on 0.2.1.6-alpha. Reported by "disgleirio". 18916 - Fix a bug that could cause a client to crash with an assertion 18917 failure when parsing a malformed hidden service descriptor. Fixes 18918 bug 15601; bugfix on 0.2.1.5-alpha. Found by "DonnchaC". 18919 18920 o Minor features (DoS-resistance, hidden service): 18921 - Introduction points no longer allow multiple INTRODUCE1 cells to 18922 arrive on the same circuit. This should make it more expensive for 18923 attackers to overwhelm hidden services with introductions. 18924 Resolves ticket 15515. 18925 18926 18927 Changes in version 0.2.6.6 - 2015-03-24 18928 Tor 0.2.6.6 is the first stable release in the 0.2.6 series. 18929 18930 It adds numerous safety, security, correctness, and performance 18931 improvements. Client programs can be configured to use more kinds of 18932 sockets, AutomapHosts works better, the multithreading backend is 18933 improved, cell transmission is refactored, test coverage is much 18934 higher, more denial-of-service attacks are handled, guard selection is 18935 improved to handle long-term guards better, pluggable transports 18936 should work a bit better, and some annoying hidden service performance 18937 bugs should be addressed. 18938 18939 o New compiler and system requirements: 18940 - Tor 0.2.6.x requires that your compiler support more of the C99 18941 language standard than before. The 'configure' script now detects 18942 whether your compiler supports C99 mid-block declarations and 18943 designated initializers. If it does not, Tor will not compile. 18944 18945 We may revisit this requirement if it turns out that a significant 18946 number of people need to build Tor with compilers that don't 18947 bother implementing a 15-year-old standard. Closes ticket 13233. 18948 - Tor no longer supports systems without threading support. When we 18949 began working on Tor, there were several systems that didn't have 18950 threads, or where the thread support wasn't able to run the 18951 threads of a single process on multiple CPUs. That no longer 18952 holds: every system where Tor needs to run well now has threading 18953 support. Resolves ticket 12439. 18954 18955 o Deprecated versions and removed support: 18956 - Tor relays older than 0.2.4.18-rc are no longer allowed to 18957 advertise themselves on the network. Closes ticket 13555. 18958 - Tor clients no longer support connecting to hidden services 18959 running on Tor 0.2.2.x and earlier; the Support022HiddenServices 18960 option has been removed. (There shouldn't be any hidden services 18961 running these versions on the network.) Closes ticket 7803. 18962 18963 o Directory authority changes: 18964 - The directory authority Faravahar has a new IP address. This 18965 closes ticket 14487. 18966 - Remove turtles as a directory authority. 18967 - Add longclaw as a new (v3) directory authority. This implements 18968 ticket 13296. This keeps the directory authority count at 9. 18969 18970 o Major features (bridges): 18971 - Expose the outgoing upstream HTTP/SOCKS proxy to pluggable 18972 transports if they are configured via the "TOR_PT_PROXY" 18973 environment variable. Implements proposal 232. Resolves 18974 ticket 8402. 18975 18976 o Major features (changed defaults): 18977 - Prevent relay operators from unintentionally running exits: When a 18978 relay is configured as an exit node, we now warn the user unless 18979 the "ExitRelay" option is set to 1. We warn even more loudly if 18980 the relay is configured with the default exit policy, since this 18981 can indicate accidental misconfiguration. Setting "ExitRelay 0" 18982 stops Tor from running as an exit relay. Closes ticket 10067. 18983 18984 o Major features (client performance, hidden services): 18985 - Allow clients to use optimistic data when connecting to a hidden 18986 service, which should remove a round-trip from hidden service 18987 initialization. See proposal 181 for details. Implements 18988 ticket 13211. 18989 18990 o Major features (directory system): 18991 - Upon receiving an unparseable directory object, if its digest 18992 matches what we expected, then don't try to download it again. 18993 Previously, when we got a descriptor we didn't like, we would keep 18994 trying to download it over and over. Closes ticket 11243. 18995 - When downloading server- or microdescriptors from a directory 18996 server, we no longer launch multiple simultaneous requests to the 18997 same server. This reduces load on the directory servers, 18998 especially when directory guards are in use. Closes ticket 9969. 18999 - When downloading server- or microdescriptors over a tunneled 19000 connection, do not limit the length of our requests to what the 19001 Squid proxy is willing to handle. Part of ticket 9969. 19002 - Authorities can now vote on the correct digests and latest 19003 versions for different software packages. This allows packages 19004 that include Tor to use the Tor authority system as a way to get 19005 notified of updates and their correct digests. Implements proposal 19006 227. Closes ticket 10395. 19007 19008 o Major features (guards): 19009 - Introduce the Guardfraction feature to improves load balancing on 19010 guard nodes. Specifically, it aims to reduce the traffic gap that 19011 guard nodes experience when they first get the Guard flag. This is 19012 a required step if we want to increase the guard lifetime to 9 19013 months or greater. Closes ticket 9321. 19014 19015 o Major features (hidden services): 19016 - Make HS port scanning more difficult by immediately closing the 19017 circuit when a user attempts to connect to a nonexistent port. 19018 Closes ticket 13667. 19019 - Add a HiddenServiceStatistics option that allows Tor relays to 19020 gather and publish statistics about the overall size and volume of 19021 hidden service usage. Specifically, when this option is turned on, 19022 an HSDir will publish an approximate number of hidden services 19023 that have published descriptors to it the past 24 hours. Also, if 19024 a relay has acted as a hidden service rendezvous point, it will 19025 publish the approximate amount of rendezvous cells it has relayed 19026 the past 24 hours. The statistics themselves are obfuscated so 19027 that the exact values cannot be derived. For more details see 19028 proposal 238, "Better hidden service stats from Tor relays". This 19029 feature is currently disabled by default. Implements feature 13192. 19030 19031 o Major features (performance): 19032 - Make the CPU worker implementation more efficient by avoiding the 19033 kernel and lengthening pipelines. The original implementation used 19034 sockets to transfer data from the main thread to the workers, and 19035 didn't allow any thread to be assigned more than a single piece of 19036 work at once. The new implementation avoids communications 19037 overhead by making requests in shared memory, avoiding kernel IO 19038 where possible, and keeping more requests in flight at once. 19039 Implements ticket 9682. 19040 19041 o Major features (relay): 19042 - Raise the minimum acceptable configured bandwidth rate for bridges 19043 to 50 KiB/sec and for relays to 75 KiB/sec. (The old values were 19044 20 KiB/sec.) Closes ticket 13822. 19045 - Complete revision of the code that relays use to decide which cell 19046 to send next. Formerly, we selected the best circuit to write on 19047 each channel, but we didn't select among channels in any 19048 sophisticated way. Now, we choose the best circuits globally from 19049 among those whose channels are ready to deliver traffic. 19050 19051 This patch implements a new inter-cmux comparison API, a global 19052 high/low watermark mechanism and a global scheduler loop for 19053 transmission prioritization across all channels as well as among 19054 circuits on one channel. This schedule is currently tuned to 19055 (tolerantly) avoid making changes in network performance, but it 19056 should form the basis for major circuit performance increases in 19057 the future. Code by Andrea; tuning by Rob Jansen; implements 19058 ticket 9262. 19059 19060 o Major features (sample torrc): 19061 - Add a new, infrequently-changed "torrc.minimal". This file is 19062 similar to torrc.sample, but it will change as infrequently as 19063 possible, for the benefit of users whose systems prompt them for 19064 intervention whenever a default configuration file is changed. 19065 Making this change allows us to update torrc.sample to be a more 19066 generally useful "sample torrc". 19067 19068 o Major features (security, unix domain sockets): 19069 - Allow SocksPort to be an AF_UNIX Unix Domain Socket. Now high risk 19070 applications can reach Tor without having to create AF_INET or 19071 AF_INET6 sockets, meaning they can completely disable their 19072 ability to make non-Tor network connections. To create a socket of 19073 this type, use "SocksPort unix:/path/to/socket". Implements 19074 ticket 12585. 19075 - Support mapping hidden service virtual ports to AF_UNIX sockets. 19076 The syntax is "HiddenServicePort 80 unix:/path/to/socket". 19077 Implements ticket 11485. 19078 19079 o Major bugfixes (client, automap): 19080 - Repair automapping with IPv6 addresses. This automapping should 19081 have worked previously, but one piece of debugging code that we 19082 inserted to detect a regression actually caused the regression to 19083 manifest itself again. Fixes bug 13811 and bug 12831; bugfix on 19084 0.2.4.7-alpha. Diagnosed and fixed by Francisco Blas 19085 Izquierdo Riera. 19086 19087 o Major bugfixes (crash, OSX, security): 19088 - Fix a remote denial-of-service opportunity caused by a bug in 19089 OSX's _strlcat_chk() function. Fixes bug 15205; bug first appeared 19090 in OSX 10.9. 19091 19092 o Major bugfixes (directory authorities): 19093 - Do not assign the HSDir flag to relays if they are not Valid, or 19094 currently hibernating. Fixes 12573; bugfix on 0.2.0.10-alpha. 19095 19096 o Major bugfixes (directory bandwidth performance): 19097 - Don't flush the zlib buffer aggressively when compressing 19098 directory information for clients. This should save about 7% of 19099 the bandwidth currently used for compressed descriptors and 19100 microdescriptors. Fixes bug 11787; bugfix on 0.1.1.23. 19101 19102 o Major bugfixes (exit node stability): 19103 - Fix an assertion failure that could occur under high DNS load. 19104 Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr"; 19105 diagnosed and fixed by "cypherpunks". 19106 19107 o Major bugfixes (FreeBSD IPFW transparent proxy): 19108 - Fix address detection with FreeBSD transparent proxies, when 19109 "TransProxyType ipfw" is in use. Fixes bug 15064; bugfix 19110 on 0.2.5.4-alpha. 19111 19112 o Major bugfixes (hidden services): 19113 - When closing an introduction circuit that was opened in parallel 19114 with others, don't mark the introduction point as unreachable. 19115 Previously, the first successful connection to an introduction 19116 point would make the other introduction points get marked as 19117 having timed out. Fixes bug 13698; bugfix on 0.0.6rc2. 19118 19119 o Major bugfixes (Linux seccomp2 sandbox): 19120 - Upon receiving sighup with the seccomp2 sandbox enabled, do not 19121 crash during attempts to call wait4. Fixes bug 15088; bugfix on 19122 0.2.5.1-alpha. Patch from "sanic". 19123 19124 o Major bugfixes (mixed relay-client operation): 19125 - When running as a relay and client at the same time (not 19126 recommended), if we decide not to use a new guard because we want 19127 to retry older guards, only close the locally-originating circuits 19128 passing through that guard. Previously we would close all the 19129 circuits through that guard. Fixes bug 9819; bugfix on 19130 0.2.1.1-alpha. Reported by "skruffy". 19131 19132 o Major bugfixes (pluggable transports): 19133 - Initialize the extended OR Port authentication cookie before 19134 launching pluggable transports. This prevents a race condition 19135 that occurred when server-side pluggable transports would cache the 19136 authentication cookie before it has been (re)generated. Fixes bug 19137 15240; bugfix on 0.2.5.1-alpha. 19138 19139 o Major bugfixes (relay, stability, possible security): 19140 - Fix a bug that could lead to a relay crashing with an assertion 19141 failure if a buffer of exactly the wrong layout is passed to 19142 buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on 19143 0.2.0.10-alpha. Patch from "cypherpunks". 19144 - Do not assert if the 'data' pointer on a buffer is advanced to the 19145 very end of the buffer; log a BUG message instead. Only assert if 19146 it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha. 19147 19148 o Minor features (build): 19149 - New --disable-system-torrc compile-time option to prevent Tor from 19150 looking for the system-wide torrc or torrc-defaults files. 19151 Resolves ticket 13037. 19152 19153 o Minor features (client): 19154 - Clients are now willing to send optimistic data (before they 19155 receive a 'connected' cell) to relays of any version. (Relays 19156 without support for optimistic data are no longer supported on the 19157 Tor network.) Resolves ticket 13153. 19158 19159 o Minor features (client): 19160 - Validate hostnames in SOCKS5 requests more strictly. If SafeSocks 19161 is enabled, reject requests with IP addresses as hostnames. 19162 Resolves ticket 13315. 19163 19164 o Minor features (controller): 19165 - Add a "SIGNAL HEARTBEAT" controller command that tells Tor to 19166 write an unscheduled heartbeat message to the log. Implements 19167 feature 9503. 19168 - Include SOCKS_USERNAME and SOCKS_PASSWORD values in controller 19169 events so controllers can observe circuit isolation inputs. Closes 19170 ticket 8405. 19171 - ControlPort now supports the unix:/path/to/socket syntax as an 19172 alternative to the ControlSocket option, for consistency with 19173 SocksPort and HiddenServicePort. Closes ticket 14451. 19174 - New "GETINFO bw-event-cache" to get information about recent 19175 bandwidth events. Closes ticket 14128. Useful for controllers to 19176 get recent bandwidth history after the fix for ticket 13988. 19177 - Messages about problems in the bootstrap process now include 19178 information about the server we were trying to connect to when we 19179 noticed the problem. Closes ticket 15006. 19180 19181 o Minor features (Denial of service resistance): 19182 - Count the total number of bytes used storing hidden service 19183 descriptors against the value of MaxMemInQueues. If we're low on 19184 memory, and more than 20% of our memory is used holding hidden 19185 service descriptors, free them until no more than 10% of our 19186 memory holds hidden service descriptors. Free the least recently 19187 fetched descriptors first. Resolves ticket 13806. 19188 - When we have recently been under memory pressure (over 3/4 of 19189 MaxMemInQueues is allocated), then allocate smaller zlib objects 19190 for small requests. Closes ticket 11791. 19191 19192 o Minor features (directory authorities): 19193 - Don't list relays with a bandwidth estimate of 0 in the consensus. 19194 Implements a feature proposed during discussion of bug 13000. 19195 - In tor-gencert, report an error if the user provides the same 19196 argument more than once. 19197 - If a directory authority can't find a best consensus method in the 19198 votes that it holds, it now falls back to its favorite consensus 19199 method. Previously, it fell back to method 1. Neither of these is 19200 likely to get enough signatures, but "fall back to favorite" 19201 doesn't require us to maintain support an obsolete consensus 19202 method. Implements part of proposal 215. 19203 19204 o Minor features (geoip): 19205 - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database. 19206 - Update geoip6 to the March 3 2015 Maxmind GeoLite2 19207 Country database. 19208 19209 o Minor features (guard nodes): 19210 - Reduce the time delay before saving guard status to disk from 10 19211 minutes to 30 seconds (or from one hour to 10 minutes if 19212 AvoidDiskWrites is set). Closes ticket 12485. 19213 19214 o Minor features (heartbeat): 19215 - On relays, report how many connections we negotiated using each 19216 version of the Tor link protocols. This information will let us 19217 know if removing support for very old versions of the Tor 19218 protocols is harming the network. Closes ticket 15212. 19219 19220 o Minor features (hidden service): 19221 - Make Sybil attacks against hidden services harder by changing the 19222 minimum time required to get the HSDir flag from 25 hours up to 96 19223 hours. Addresses ticket 14149. 19224 - New option "HiddenServiceAllowUnknownPorts" to allow hidden 19225 services to disable the anti-scanning feature introduced in 19226 0.2.6.2-alpha. With this option not set, a connection to an 19227 unlisted port closes the circuit. With this option set, only a 19228 RELAY_DONE cell is sent. Closes ticket 14084. 19229 - When re-enabling the network, don't try to build introduction 19230 circuits until we have successfully built a circuit. This makes 19231 hidden services come up faster when the network is re-enabled. 19232 Patch from "akwizgran". Closes ticket 13447. 19233 - When we fail to retrieve a hidden service descriptor, send the 19234 controller an "HS_DESC FAILED" controller event. Implements 19235 feature 13212. 19236 - New HiddenServiceDirGroupReadable option to cause hidden service 19237 directories and hostname files to be created group-readable. Patch 19238 from "anon", David Stainton, and "meejah". Closes ticket 11291. 19239 19240 o Minor features (interface): 19241 - Implement "-f -" command-line option to read torrc configuration 19242 from standard input, if you don't want to store the torrc file in 19243 the file system. Implements feature 13865. 19244 19245 o Minor features (logging): 19246 - Add a count of unique clients to the bridge heartbeat message. 19247 Resolves ticket 6852. 19248 - Suppress "router info incompatible with extra info" message when 19249 reading extrainfo documents from cache. (This message got loud 19250 around when we closed bug 9812 in 0.2.6.2-alpha.) Closes 19251 ticket 13762. 19252 - Elevate hidden service authorized-client message from DEBUG to 19253 INFO. Closes ticket 14015. 19254 - On Unix-like systems, you can now use named pipes as the target of 19255 the Log option, and other options that try to append to files. 19256 Closes ticket 12061. Patch from "carlo von lynX". 19257 - When opening a log file at startup, send it every log message that 19258 we generated between startup and opening it. Previously, log 19259 messages that were generated before opening the log file were only 19260 logged to stdout. Closes ticket 6938. 19261 - Add a TruncateLogFile option to overwrite logs instead of 19262 appending to them. Closes ticket 5583. 19263 - Quiet some log messages in the heartbeat and at startup. Closes 19264 ticket 14950. 19265 19266 o Minor features (portability, Solaris): 19267 - Threads are no longer disabled by default on Solaris; we believe 19268 that the versions of Solaris with broken threading support are all 19269 obsolete by now. Resolves ticket 9495. 19270 19271 o Minor features (relay): 19272 - Re-check our address after we detect a changed IP address from 19273 getsockname(). This ensures that the controller command "GETINFO 19274 address" will report the correct value. Resolves ticket 11582. 19275 Patch from "ra". 19276 - A new AccountingRule option lets Relays set whether they'd like 19277 AccountingMax to be applied separately to inbound and outbound 19278 traffic, or applied to the sum of inbound and outbound traffic. 19279 Resolves ticket 961. Patch by "chobe". 19280 - When identity keypair is generated for first time, log a 19281 congratulatory message that links to the new relay lifecycle 19282 document. Implements feature 10427. 19283 19284 o Minor features (security, memory wiping): 19285 - Ensure we securely wipe keys from memory after 19286 crypto_digest_get_digest and init_curve25519_keypair_from_file 19287 have finished using them. Resolves ticket 13477. 19288 19289 o Minor features (security, out-of-memory handling): 19290 - When handling an out-of-memory condition, allocate less memory for 19291 temporary data structures. Fixes issue 10115. 19292 - When handling an out-of-memory condition, consider more types of 19293 buffers, including those on directory connections, and zlib 19294 buffers. Resolves ticket 11792. 19295 19296 o Minor features (stability): 19297 - Add assertions in our hash-table iteration code to check for 19298 corrupted values that could cause infinite loops. Closes 19299 ticket 11737. 19300 19301 o Minor features (systemd): 19302 - Various improvements and modernizations in systemd hardening 19303 support. Closes ticket 13805. Patch from Craig Andrews. 19304 - Where supported, when running with systemd, report successful 19305 startup to systemd. Part of ticket 11016. Patch by Michael Scherer. 19306 - When running with systemd, support systemd watchdog messages. Part 19307 of ticket 11016. Patch by Michael Scherer. 19308 19309 o Minor features (testing networks): 19310 - Add the TestingDirAuthVoteExit option, which lists nodes to assign 19311 the "Exit" flag regardless of their uptime, bandwidth, or exit 19312 policy. TestingTorNetwork must be set for this option to have any 19313 effect. Previously, authorities would take up to 35 minutes to 19314 give nodes the Exit flag in a test network. Partially implements 19315 ticket 13161. 19316 - Drop the minimum RendPostPeriod on a testing network to 5 seconds, 19317 and the default on a testing network to 2 minutes. Drop the 19318 MIN_REND_INITIAL_POST_DELAY on a testing network to 5 seconds, but 19319 keep the default on a testing network at 30 seconds. This reduces 19320 HS bootstrap time to around 25 seconds. Also, change the default 19321 time in test-network.sh to match. Closes ticket 13401. Patch 19322 by "teor". 19323 - Create TestingDirAuthVoteHSDir to correspond to 19324 TestingDirAuthVoteExit/Guard. Ensures that authorities vote the 19325 HSDir flag for the listed relays regardless of uptime or ORPort 19326 connectivity. Respects the value of VoteOnHidServDirectoriesV2. 19327 Partial implementation for ticket 14067. Patch by "teor". 19328 19329 o Minor features (tor2web mode): 19330 - Introduce the config option Tor2webRendezvousPoints, which allows 19331 clients in Tor2webMode to select a specific Rendezvous Point to be 19332 used in HS circuits. This might allow better performance for 19333 Tor2Web nodes. Implements ticket 12844. 19334 19335 o Minor features (transparent proxy): 19336 - Update the transparent proxy option checks to allow for both ipfw 19337 and pf on OS X. Closes ticket 14002. 19338 - Use the correct option when using IPv6 with transparent proxy 19339 support on Linux. Resolves 13808. Patch by Francisco Blas 19340 Izquierdo Riera. 19341 19342 o Minor features (validation): 19343 - Check all date/time values passed to tor_timegm and 19344 parse_rfc1123_time for validity, taking leap years into account. 19345 Improves HTTP header validation. Implemented with bug 13476. 19346 - In correct_tm(), limit the range of values returned by system 19347 localtime(_r) and gmtime(_r) to be between the years 1 and 8099. 19348 This means we don't have to deal with negative or too large dates, 19349 even if a clock is wrong. Otherwise we might fail to read a file 19350 written by us which includes such a date. Fixes bug 13476. 19351 - Stop allowing invalid address patterns like "*/24" that contain 19352 both a wildcard address and a bit prefix length. This affects all 19353 our address-range parsing code. Fixes bug 7484; bugfix 19354 on 0.0.2pre14. 19355 19356 o Minor bugfixes (bridge clients): 19357 - When configured to use a bridge without an identity digest (not 19358 recommended), avoid launching an extra channel to it when 19359 bootstrapping. Fixes bug 7733; bugfix on 0.2.4.4-alpha. 19360 19361 o Minor bugfixes (bridges): 19362 - When DisableNetwork is set, do not launch pluggable transport 19363 plugins, and if any are running, terminate them. Fixes bug 13213; 19364 bugfix on 0.2.3.6-alpha. 19365 19366 o Minor bugfixes (C correctness): 19367 - Fix several instances of possible integer overflow/underflow/NaN. 19368 Fixes bug 13104; bugfix on 0.2.3.1-alpha and later. Patches 19369 from "teor". 19370 - In circuit_build_times_calculate_timeout() in circuitstats.c, 19371 avoid dividing by zero in the pareto calculations. This traps 19372 under clang's "undefined-trap" sanitizer. Fixes bug 13290; bugfix 19373 on 0.2.2.2-alpha. 19374 - Fix an integer overflow in format_time_interval(). Fixes bug 19375 13393; bugfix on 0.2.0.10-alpha. 19376 - Set the correct day of year value when the system's localtime(_r) 19377 or gmtime(_r) functions fail to set struct tm. Not externally 19378 visible. Fixes bug 13476; bugfix on 0.0.2pre14. 19379 - Avoid unlikely signed integer overflow in tor_timegm on systems 19380 with 32-bit time_t. Fixes bug 13476; bugfix on 0.0.2pre14. 19381 19382 o Minor bugfixes (certificate handling): 19383 - If an authority operator accidentally makes a signing certificate 19384 with a future publication time, do not discard its real signing 19385 certificates. Fixes bug 11457; bugfix on 0.2.0.3-alpha. 19386 - Remove any old authority certificates that have been superseded 19387 for at least two days. Previously, we would keep superseded 19388 certificates until they expired, if they were published close in 19389 time to the certificate that superseded them. Fixes bug 11454; 19390 bugfix on 0.2.1.8-alpha. 19391 19392 o Minor bugfixes (client): 19393 - Fix smartlist_choose_node_by_bandwidth() so that relays with the 19394 BadExit flag are not considered worthy candidates. Fixes bug 19395 13066; bugfix on 0.1.2.3-alpha. 19396 - Use the consensus schedule for downloading consensuses, and not 19397 the generic schedule. Fixes bug 11679; bugfix on 0.2.2.6-alpha. 19398 - Handle unsupported or malformed SOCKS5 requests properly by 19399 responding with the appropriate error message before closing the 19400 connection. Fixes bugs 12971 and 13314; bugfix on 0.0.2pre13. 19401 19402 o Minor bugfixes (client, automapping): 19403 - Avoid crashing on torrc lines for VirtualAddrNetworkIPv[4|6] when 19404 no value follows the option. Fixes bug 14142; bugfix on 19405 0.2.4.7-alpha. Patch by "teor". 19406 - Fix a memory leak when using AutomapHostsOnResolve. Fixes bug 19407 14195; bugfix on 0.1.0.1-rc. 19408 - Prevent changes to other options from removing the wildcard value 19409 "." from "AutomapHostsSuffixes". Fixes bug 12509; bugfix 19410 on 0.2.0.1-alpha. 19411 - Allow MapAddress and AutomapHostsOnResolve to work together when 19412 an address is mapped into another address type (like .onion) that 19413 must be automapped at resolve time. Fixes bug 7555; bugfix 19414 on 0.2.0.1-alpha. 19415 19416 o Minor bugfixes (client, bridges): 19417 - When we are using bridges and we had a network connectivity 19418 problem, only retry connecting to our currently configured 19419 bridges, not all bridges we know about and remember using. Fixes 19420 bug 14216; bugfix on 0.2.2.17-alpha. 19421 19422 o Minor bugfixes (client, DNS): 19423 - Report the correct cached DNS expiration times on SOCKS port or in 19424 DNS replies. Previously, we would report everything as "never 19425 expires." Fixes bug 14193; bugfix on 0.2.3.17-beta. 19426 - Avoid a small memory leak when we find a cached answer for a 19427 reverse DNS lookup in a client-side DNS cache. (Remember, client- 19428 side DNS caching is off by default, and is not recommended.) Fixes 19429 bug 14259; bugfix on 0.2.0.1-alpha. 19430 19431 o Minor bugfixes (client, IPv6): 19432 - Reject socks requests to literal IPv6 addresses when IPv6Traffic 19433 flag is not set; and not because the NoIPv4Traffic flag was set. 19434 Previously we'd looked at the NoIPv4Traffic flag for both types of 19435 literal addresses. Fixes bug 14280; bugfix on 0.2.4.7-alpha. 19436 19437 o Minor bugfixes (client, microdescriptors): 19438 - Use a full 256 bits of the SHA256 digest of a microdescriptor when 19439 computing which microdescriptors to download. This keeps us from 19440 erroneous download behavior if two microdescriptor digests ever 19441 have the same first 160 bits. Fixes part of bug 13399; bugfix 19442 on 0.2.3.1-alpha. 19443 - Reset a router's status if its microdescriptor digest changes, 19444 even if the first 160 bits remain the same. Fixes part of bug 19445 13399; bugfix on 0.2.3.1-alpha. 19446 19447 o Minor bugfixes (client, torrc): 19448 - Stop modifying the value of our DirReqStatistics torrc option just 19449 because we're not a bridge or relay. This bug was causing Tor 19450 Browser users to write "DirReqStatistics 0" in their torrc files 19451 as if they had chosen to change the config. Fixes bug 4244; bugfix 19452 on 0.2.3.1-alpha. 19453 - When GeoIPExcludeUnknown is enabled, do not incorrectly decide 19454 that our options have changed every time we SIGHUP. Fixes bug 19455 9801; bugfix on 0.2.4.10-alpha. Patch from "qwerty1". 19456 19457 o Minor bugfixes (compilation): 19458 - Fix a compilation warning on s390. Fixes bug 14988; bugfix 19459 on 0.2.5.2-alpha. 19460 - Silence clang warnings under --enable-expensive-hardening, 19461 including implicit truncation of 64 bit values to 32 bit, const 19462 char assignment to self, tautological compare, and additional 19463 parentheses around equality tests. Fixes bug 13577; bugfix 19464 on 0.2.5.4-alpha. 19465 - Fix a clang warning about checking whether an address in the 19466 middle of a structure is NULL. Fixes bug 14001; bugfix 19467 on 0.2.1.2-alpha. 19468 - The address of an array in the middle of a structure will always 19469 be non-NULL. clang recognises this and complains. Disable the 19470 tautologous and redundant check to silence this warning. Fixes bug 19471 14001; bugfix on 0.2.1.2-alpha. 19472 - Compile correctly with (unreleased) OpenSSL 1.1.0 headers. 19473 Addresses ticket 14188. 19474 - Build without warnings with the stock OpenSSL srtp.h header, which 19475 has a duplicate declaration of SSL_get_selected_srtp_profile(). 19476 Fixes bug 14220; this is OpenSSL's bug, not ours. 19477 - Do not compile any code related to Tor2Web mode when Tor2Web mode 19478 is not enabled at compile time. Previously, this code was included 19479 in a disabled state. See discussion on ticket 12844. 19480 - Allow our configure script to build correctly with autoconf 2.62 19481 again. Fixes bug 12693; bugfix on 0.2.5.2-alpha. 19482 - Improve the error message from ./configure to make it clear that 19483 when asciidoc has not been found, the user will have to either add 19484 --disable-asciidoc argument or install asciidoc. Resolves 19485 ticket 13228. 19486 19487 o Minor bugfixes (controller): 19488 - Report "down" in response to the "GETINFO entry-guards" command 19489 when relays are down with an unreachable_since value. Previously, 19490 we would report "up". Fixes bug 14184; bugfix on 0.1.2.2-alpha. 19491 - Avoid crashing on a malformed EXTENDCIRCUIT command. Fixes bug 19492 14116; bugfix on 0.2.2.9-alpha. 19493 19494 o Minor bugfixes (controller): 19495 - Return an error when the second or later arguments of the 19496 "setevents" controller command are invalid events. Previously we 19497 would return success while silently skipping invalid events. Fixes 19498 bug 13205; bugfix on 0.2.3.2-alpha. Reported by "fpxnns". 19499 19500 o Minor bugfixes (directory authority): 19501 - Allow directory authorities to fetch more data from one another if 19502 they find themselves missing lots of votes. Previously, they had 19503 been bumping against the 10 MB queued data limit. Fixes bug 14261; 19504 bugfix on 0.1.2.5-alpha. 19505 - Do not attempt to download extrainfo documents which we will be 19506 unable to validate with a matching server descriptor. Fixes bug 19507 13762; bugfix on 0.2.0.1-alpha. 19508 - Fix a bug that was truncating AUTHDIR_NEWDESC events sent to the 19509 control port. Fixes bug 14953; bugfix on 0.2.0.1-alpha. 19510 - Enlarge the buffer to read bwauth generated files to avoid an 19511 issue when parsing the file in dirserv_read_measured_bandwidths(). 19512 Fixes bug 14125; bugfix on 0.2.2.1-alpha. 19513 - When running as a v3 directory authority, advertise that you serve 19514 extra-info documents so that clients who want them can find them 19515 from you too. Fixes part of bug 11683; bugfix on 0.2.0.1-alpha. 19516 19517 o Minor bugfixes (directory system): 19518 - Always believe that v3 directory authorities serve extra-info 19519 documents, whether they advertise "caches-extra-info" or not. 19520 Fixes part of bug 11683; bugfix on 0.2.0.1-alpha. 19521 - Check the BRIDGE_DIRINFO flag bitwise rather than using equality. 19522 Previously, directories offering BRIDGE_DIRINFO and some other 19523 flag (i.e. microdescriptors or extrainfo) would be ignored when 19524 looking for bridges. Partially fixes bug 13163; bugfix 19525 on 0.2.0.7-alpha. 19526 19527 o Minor bugfixes (file handling): 19528 - Stop failing when key files are zero-length. Instead, generate new 19529 keys, and overwrite the empty key files. Fixes bug 13111; bugfix 19530 on all versions of Tor. Patch by "teor". 19531 - Stop generating a fresh .old RSA onion key file when the .old file 19532 is missing. Fixes part of 13111; bugfix on 0.0.6rc1. 19533 - Avoid overwriting .old key files with empty key files. 19534 - Skip loading zero-length extrainfo store, router store, stats, 19535 state, and key files. 19536 - Avoid crashing when trying to reload a torrc specified as a 19537 relative path with RunAsDaemon turned on. Fixes bug 13397; bugfix 19538 on 0.2.3.11-alpha. 19539 19540 o Minor bugfixes (hidden services): 19541 - Close the introduction circuit when we have no more usable intro 19542 points, instead of waiting for it to time out. This also ensures 19543 that no follow-up HS descriptor fetch is triggered when the 19544 circuit eventually times out. Fixes bug 14224; bugfix on 0.0.6. 19545 - When fetching a hidden service descriptor for a down service that 19546 was recently up, do not keep refetching until we try the same 19547 replica twice in a row. Fixes bug 14219; bugfix on 0.2.0.10-alpha. 19548 - Correctly send a controller event when we find that a rendezvous 19549 circuit has finished. Fixes bug 13936; bugfix on 0.1.1.5-alpha. 19550 - Pre-check directory permissions for new hidden-services to avoid 19551 at least one case of "Bug: Acting on config options left us in a 19552 broken state. Dying." Fixes bug 13942; bugfix on 0.0.6pre1. 19553 - When fetching hidden service descriptors, we now check not only 19554 for whether we got the hidden service we had in mind, but also 19555 whether we got the particular descriptors we wanted. This prevents 19556 a class of inefficient but annoying DoS attacks by hidden service 19557 directories. Fixes bug 13214; bugfix on 0.2.1.6-alpha. Reported 19558 by "special". 19559 19560 o Minor bugfixes (Linux seccomp2 sandbox): 19561 - Make transparent proxy support work along with the seccomp2 19562 sandbox. Fixes part of bug 13808; bugfix on 0.2.5.1-alpha. Patch 19563 by Francisco Blas Izquierdo Riera. 19564 - Fix a memory leak in tor-resolve when running with the sandbox 19565 enabled. Fixes bug 14050; bugfix on 0.2.5.9-rc. 19566 - Allow glibc fatal errors to be sent to stderr before Tor exits. 19567 Previously, glibc would try to write them to /dev/tty, and the 19568 sandbox would trap the call and make Tor exit prematurely. Fixes 19569 bug 14759; bugfix on 0.2.5.1-alpha. 19570 19571 o Minor bugfixes (logging): 19572 - Avoid crashing when there are more log domains than entries in 19573 domain_list. Bugfix on 0.2.3.1-alpha. 19574 - Downgrade warnings about RSA signature failures to info log level. 19575 Emit a warning when an extra info document is found incompatible 19576 with a corresponding router descriptor. Fixes bug 9812; bugfix 19577 on 0.0.6rc3. 19578 - Make connection_ap_handshake_attach_circuit() log the circuit ID 19579 correctly. Fixes bug 13701; bugfix on 0.0.6. 19580 19581 o Minor bugfixes (networking): 19582 - Check for orconns and use connection_or_close_for_error() rather 19583 than connection_mark_for_close() directly in the getsockopt() 19584 failure case of connection_handle_write_impl(). Fixes bug 11302; 19585 bugfix on 0.2.4.4-alpha. 19586 19587 o Minor bugfixes (parsing): 19588 - Stop accepting milliseconds (or other junk) at the end of 19589 descriptor publication times. Fixes bug 9286; bugfix on 0.0.2pre25. 19590 - Support two-number and three-number version numbers correctly, in 19591 case we change the Tor versioning system in the future. Fixes bug 19592 13661; bugfix on 0.0.8pre1. 19593 19594 o Minor bugfixes (portability): 19595 - Fix the ioctl()-based network interface lookup code so that it 19596 will work on systems that have variable-length struct ifreq, for 19597 example Mac OS X. 19598 - Use the correct datatype in the SipHash-2-4 function to prevent 19599 compilers from assuming any sort of alignment. Fixes bug 15436; 19600 bugfix on 0.2.5.3-alpha. 19601 19602 o Minor bugfixes (preventative security, C safety): 19603 - When reading a hexadecimal, base-32, or base-64 encoded value from 19604 a string, always overwrite the whole output buffer. This prevents 19605 some bugs where we would look at (but fortunately, not reveal) 19606 uninitialized memory on the stack. Fixes bug 14013; bugfix on all 19607 versions of Tor. 19608 - Clear all memory targeted by tor_addr_{to,from}_sockaddr(), not 19609 just the part that's used. This makes it harder for data leak bugs 19610 to occur in the event of other programming failures. Resolves 19611 ticket 14041. 19612 19613 o Minor bugfixes (relay): 19614 - When generating our family list, remove spaces from around the 19615 entries. Fixes bug 12728; bugfix on 0.2.1.7-alpha. 19616 - If our previous bandwidth estimate was 0 bytes, allow publishing a 19617 new relay descriptor immediately. Fixes bug 13000; bugfix 19618 on 0.1.1.6-alpha. 19619 19620 o Minor bugfixes (shutdown): 19621 - When shutting down, always call event_del() on lingering read or 19622 write events before freeing them. Otherwise, we risk double-frees 19623 or read-after-frees in event_base_free(). Fixes bug 12985; bugfix 19624 on 0.1.0.2-rc. 19625 19626 o Minor bugfixes (small memory leaks): 19627 - Avoid leaking memory when using IPv6 virtual address mappings. 19628 Fixes bug 14123; bugfix on 0.2.4.7-alpha. Patch by Tom van 19629 der Woerdt. 19630 19631 o Minor bugfixes (statistics): 19632 - Increase period over which bandwidth observations are aggregated 19633 from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1. 19634 19635 o Minor bugfixes (systemd support): 19636 - Run correctly under systemd with the RunAsDaemon option set. Fixes 19637 part of bug 14141; bugfix on 0.2.5.7-rc. Patch from Tomasz Torcz. 19638 - Inform the systemd supervisor about more changes in the Tor 19639 process status. Implements part of ticket 14141. Patch from 19640 Tomasz Torcz. 19641 19642 o Minor bugfixes (testing networks): 19643 - Fix TestingDirAuthVoteGuard to properly give out Guard flags in a 19644 testing network. Fixes bug 13064; bugfix on 0.2.5.2-alpha. 19645 - Stop using the default authorities in networks which provide both 19646 AlternateDirAuthority and AlternateBridgeAuthority. Partially 19647 fixes bug 13163; bugfix on 0.2.0.13-alpha. 19648 19649 o Minor bugfixes (testing networks, fast startup): 19650 - Allow Tor to build circuits using a consensus with no exits. If 19651 the consensus has no exits (typical of a bootstrapping test 19652 network), allow Tor to build circuits once enough descriptors have 19653 been downloaded. This assists in bootstrapping a testing Tor 19654 network. Fixes bug 13718; bugfix on 0.2.4.10-alpha. Patch 19655 by "teor". 19656 - When V3AuthVotingInterval is low, give a lower If-Modified-Since 19657 header to directory servers. This allows us to obtain consensuses 19658 promptly when the consensus interval is very short. This assists 19659 in bootstrapping a testing Tor network. Fixes parts of bugs 13718 19660 and 13963; bugfix on 0.2.0.3-alpha. Patch by "teor". 19661 - Stop assuming that private addresses are local when checking 19662 reachability in a TestingTorNetwork. Instead, when testing, assume 19663 all OR connections are remote. (This is necessary due to many test 19664 scenarios running all relays on localhost.) This assists in 19665 bootstrapping a testing Tor network. Fixes bug 13924; bugfix on 19666 0.1.0.1-rc. Patch by "teor". 19667 - Avoid building exit circuits from a consensus with no exits. Now 19668 thanks to our fix for 13718, we accept a no-exit network as not 19669 wholly lost, but we need to remember not to try to build exit 19670 circuits on it. Closes ticket 13814; patch by "teor". 19671 - Stop requiring exits to have non-zero bandwithcapacity in a 19672 TestingTorNetwork. Instead, when TestingMinExitFlagThreshold is 0, 19673 ignore exit bandwidthcapacity. This assists in bootstrapping a 19674 testing Tor network. Fixes parts of bugs 13718 and 13839; bugfix 19675 on 0.2.0.3-alpha. Patch by "teor". 19676 - Add "internal" to some bootstrap statuses when no exits are 19677 available. If the consensus does not contain Exits, Tor will only 19678 build internal circuits. In this case, relevant statuses will 19679 contain the word "internal" as indicated in the Tor control- 19680 spec.txt. When bootstrap completes, Tor will be ready to build 19681 internal circuits. If a future consensus contains Exits, exit 19682 circuits may become available. Fixes part of bug 13718; bugfix on 19683 0.2.4.10-alpha. Patch by "teor". 19684 - Decrease minimum consensus interval to 10 seconds when 19685 TestingTorNetwork is set, or 5 seconds for the first consensus. 19686 Fix assumptions throughout the code that assume larger intervals. 19687 Fixes bugs 13718 and 13823; bugfix on 0.2.0.3-alpha. Patch 19688 by "teor". 19689 - Avoid excluding guards from path building in minimal test 19690 networks, when we're in a test network and excluding guards would 19691 exclude all relays. This typically occurs in incredibly small tor 19692 networks, and those using "TestingAuthVoteGuard *". Fixes part of 19693 bug 13718; bugfix on 0.1.1.11-alpha. Patch by "teor". 19694 19695 o Minor bugfixes (testing): 19696 - Avoid a side-effect in a tor_assert() in the unit tests. Fixes bug 19697 15188; bugfix on 0.1.2.3-alpha. Patch from Tom van der Woerdt. 19698 - Stop spawn test failures due to a race condition between the 19699 SIGCHLD handler updating the process status, and the test reading 19700 it. Fixes bug 13291; bugfix on 0.2.3.3-alpha. 19701 - Avoid passing an extra backslash when creating a temporary 19702 directory for running the unit tests on Windows. Fixes bug 12392; 19703 bugfix on 0.2.2.25-alpha. Patch from Gisle Vanem. 19704 19705 o Minor bugfixes (TLS): 19706 - Check more thoroughly throughout the TLS code for possible 19707 unlogged TLS errors. Possible diagnostic or fix for bug 13319. 19708 19709 o Minor bugfixes (transparent proxy): 19710 - Use getsockname, not getsockopt, to retrieve the address for a 19711 TPROXY-redirected connection. Fixes bug 13796; bugfix 19712 on 0.2.5.2-alpha. 19713 19714 o Minor bugfixes (windows): 19715 - Remove code to special-case handling of NTE_BAD_KEYSET when 19716 acquiring windows CryptoAPI context. This error can't actually 19717 occur for the parameters we're providing. Fixes bug 10816; bugfix 19718 on 0.0.2pre26. 19719 19720 o Minor bugfixes (zlib): 19721 - Avoid truncating a zlib stream when trying to finalize it with an 19722 empty output buffer. Fixes bug 11824; bugfix on 0.1.1.23. 19723 19724 o Code simplification and refactoring: 19725 - Change the entry_is_live() function to take named bitfield 19726 elements instead of an unnamed list of booleans. Closes 19727 ticket 12202. 19728 - Refactor and unit-test entry_is_time_to_retry() in entrynodes.c. 19729 Resolves ticket 12205. 19730 - Use calloc and reallocarray functions instead of multiply- 19731 then-malloc. This makes it less likely for us to fall victim to an 19732 integer overflow attack when allocating. Resolves ticket 12855. 19733 - Use the standard macro name SIZE_MAX, instead of our 19734 own SIZE_T_MAX. 19735 - Document usage of the NO_DIRINFO and ALL_DIRINFO flags clearly in 19736 functions which take them as arguments. Replace 0 with NO_DIRINFO 19737 in a function call for clarity. Seeks to prevent future issues 19738 like 13163. 19739 - Avoid 4 null pointer errors under clang static analysis by using 19740 tor_assert() to prove that the pointers aren't null. Fixes 19741 bug 13284. 19742 - Rework the API of policies_parse_exit_policy() to use a bitmask to 19743 represent parsing options, instead of a confusing mess of 19744 booleans. Resolves ticket 8197. 19745 - Introduce a helper function to parse ExitPolicy in 19746 or_options_t structure. 19747 - Move fields related to isolating and configuring client ports into 19748 a shared structure. Previously, they were duplicated across 19749 port_cfg_t, listener_connection_t, and edge_connection_t. Failure 19750 to copy them correctly had been the cause of at least one bug in 19751 the past. Closes ticket 8546. 19752 - Refactor the get_interface_addresses_raw() doom-function into 19753 multiple smaller and simpler subfunctions. Cover the resulting 19754 subfunctions with unit-tests. Fixes a significant portion of 19755 issue 12376. 19756 - Remove workaround in dirserv_thinks_router_is_hs_dir() that was 19757 only for version <= 0.2.2.24 which is now deprecated. Closes 19758 ticket 14202. 19759 - Remove a test for a long-defunct broken version-one 19760 directory server. 19761 - Refactor main loop to extract the 'loop' part. This makes it 19762 easier to run Tor under Shadow. Closes ticket 15176. 19763 - Stop using can_complete_circuits as a global variable; access it 19764 with a function instead. 19765 - Avoid using operators directly as macro arguments: this lets us 19766 apply coccinelle transformations to our codebase more directly. 19767 Closes ticket 13172. 19768 - Combine the functions used to parse ClientTransportPlugin and 19769 ServerTransportPlugin into a single function. Closes ticket 6456. 19770 - Add inline functions and convenience macros for inspecting channel 19771 state. Refactor the code to use convenience macros instead of 19772 checking channel state directly. Fixes issue 7356. 19773 - Document all members of was_router_added_t and rename 19774 ROUTER_WAS_NOT_NEW to ROUTER_IS_ALREADY_KNOWN to make it less 19775 confusable with ROUTER_WAS_TOO_OLD. Fixes issue 13644. 19776 - In connection_exit_begin_conn(), use END_CIRC_REASON_TORPROTOCOL 19777 constant instead of hardcoded value. Fixes issue 13840. 19778 - Refactor our generic strmap and digestmap types into a single 19779 implementation, so that we can add a new digest256map 19780 type trivially. 19781 19782 o Documentation: 19783 - Add a doc/TUNING document with tips for handling large numbers of 19784 TCP connections when running busy Tor relay. Update the warning 19785 message to point to this file when running out of sockets 19786 operating system is allowing to use simultaneously. Resolves 19787 ticket 9708. 19788 - Adding section on OpenBSD to our TUNING document. Thanks to mmcc 19789 for writing the OpenBSD-specific tips. Resolves ticket 13702. 19790 - Make the tor-resolve documentation match its help string and its 19791 options. Resolves part of ticket 14325. 19792 - Log a more useful error message from tor-resolve when failing to 19793 look up a hidden service address. Resolves part of ticket 14325. 19794 - Document the bridge-authority-only 'networkstatus-bridges' file. 19795 Closes ticket 13713; patch from "tom". 19796 - Fix typo in PredictedPortsRelevanceTime option description in 19797 manpage. Resolves issue 13707. 19798 - Stop suggesting that users specify relays by nickname: it isn't a 19799 good idea. Also, properly cross-reference how to specify relays in 19800 all parts of manual documenting options that take a list of 19801 relays. Closes ticket 13381. 19802 - Clarify the HiddenServiceDir option description in manpage to make 19803 it clear that relative paths are taken with respect to the current 19804 working directory. Also clarify that this behavior is not 19805 guaranteed to remain indefinitely. Fixes issue 13913. 19806 19807 o Distribution (systemd): 19808 - systemd unit file: only allow tor to write to /var/lib/tor and 19809 /var/log/tor. The rest of the filesystem is accessible for reading 19810 only. Patch by intrigeri; resolves ticket 12751. 19811 - systemd unit file: ensure that the process and all its children 19812 can never gain new privileges. Patch by intrigeri; resolves 19813 ticket 12939. 19814 - systemd unit file: set up /var/run/tor as writable for the Tor 19815 service. Patch by intrigeri; resolves ticket 13196. 19816 19817 o Downgraded warnings: 19818 - Don't warn when we've attempted to contact a relay using the wrong 19819 ntor onion key. Closes ticket 9635. 19820 19821 o Removed code: 19822 - Remove some lingering dead code that once supported mempools. 19823 Mempools were disabled by default in 0.2.5, and removed entirely 19824 in 0.2.6.3-alpha. Closes more of ticket 14848; patch 19825 by "cypherpunks". 19826 19827 o Removed features (directory authorities): 19828 - Remove code that prevented authorities from listing Tor relays 19829 affected by CVE-2011-2769 as guards. These relays are already 19830 rejected altogether due to the minimum version requirement of 19831 0.2.3.16-alpha. Closes ticket 13152. 19832 - The "AuthDirRejectUnlisted" option no longer has any effect, as 19833 the fingerprints file (approved-routers) has been deprecated. 19834 - Directory authorities do not support being Naming dirauths anymore. 19835 The "NamingAuthoritativeDir" config option is now obsolete. 19836 - Directory authorities do not support giving out the BadDirectory 19837 flag anymore. 19838 - Directory authorities no longer advertise or support consensus 19839 methods 1 through 12 inclusive. These consensus methods were 19840 obsolete and/or insecure: maintaining the ability to support them 19841 served no good purpose. Implements part of proposal 215; closes 19842 ticket 10163. 19843 19844 o Removed features: 19845 - To avoid confusion with the "ExitRelay" option, "ExitNode" is no 19846 longer silently accepted as an alias for "ExitNodes". 19847 - The --enable-mempool and --enable-buf-freelists options, which 19848 were originally created to work around bad malloc implementations, 19849 no longer exist. They were off-by-default in 0.2.5. Closes 19850 ticket 14848. 19851 - We no longer remind the user about configuration options that have 19852 been obsolete since 0.2.3.x or earlier. Patch by Adrien Bak. 19853 - Remove our old, non-weighted bandwidth-based node selection code. 19854 Previously, we used it as a fallback when we couldn't perform 19855 weighted bandwidth-based node selection. But that would only 19856 happen in the cases where we had no consensus, or when we had a 19857 consensus generated by buggy or ancient directory authorities. In 19858 either case, it's better to use the more modern, better maintained 19859 algorithm, with reasonable defaults for the weights. Closes 19860 ticket 13126. 19861 - Remove the --disable-curve25519 configure option. Relays and 19862 clients now are required to support curve25519 and the 19863 ntor handshake. 19864 - The old "StrictEntryNodes" and "StrictExitNodes" options, which 19865 used to be deprecated synonyms for "StrictNodes", are now marked 19866 obsolete. Resolves ticket 12226. 19867 - Clients don't understand the BadDirectory flag in the consensus 19868 anymore, and ignore it. 19869 19870 o Removed platform support: 19871 - We no longer include special code to build on Windows CE; as far 19872 as we know, nobody has used Tor on Windows CE in a very long time. 19873 Closes ticket 11446. 19874 19875 o Testing (test-network.sh): 19876 - Stop using "echo -n", as some shells' built-in echo doesn't 19877 support "-n". Instead, use "/bin/echo -n". Partially fixes 19878 bug 13161. 19879 - Stop an apparent test-network hang when used with make -j2. Fixes 19880 bug 13331. 19881 - Add a --delay option to test-network.sh, which configures the 19882 delay before the chutney network tests for data transmission. 19883 Partially implements ticket 13161. 19884 19885 o Testing: 19886 - Test that tor does not fail when key files are zero-length. Check 19887 that tor generates new keys, and overwrites the empty key files. 19888 - Test that tor generates new keys when keys are missing 19889 (existing behavior). 19890 - Test that tor does not overwrite key files that already contain 19891 data (existing behavior). Tests bug 13111. Patch by "teor". 19892 - New "make test-stem" target to run stem integration tests. 19893 Requires that the "STEM_SOURCE_DIR" environment variable be set. 19894 Closes ticket 14107. 19895 - Make the test_cmdline_args.py script work correctly on Windows. 19896 Patch from Gisle Vanem. 19897 - Move the slower unit tests into a new "./src/test/test-slow" 19898 binary that can be run independently of the other tests. Closes 19899 ticket 13243. 19900 - New tests for many parts of channel, relay, and circuitmux 19901 functionality. Code by Andrea; part of 9262. 19902 - New tests for parse_transport_line(). Part of ticket 6456. 19903 - In the unit tests, use chgrp() to change the group of the unit 19904 test temporary directory to the current user, so that the sticky 19905 bit doesn't interfere with tests that check directory groups. 19906 Closes 13678. 19907 - Add unit tests for resolve_my_addr(). Part of ticket 12376; patch 19908 by 'rl1987'. 19909 - Refactor the function that chooses guard nodes so that it can more 19910 easily be tested; write some tests for it. 19911 - Fix and re-enable the fgets_eagain unit test. Fixes bug 12503; 19912 bugfix on 0.2.3.1-alpha. Patch from "cypherpunks." 19913 - Create unit tests for format_time_interval(). With bug 13393. 19914 - Add unit tests for tor_timegm signed overflow, tor_timegm and 19915 parse_rfc1123_time validity checks, correct_tm year clamping. Unit 19916 tests (visible) fixes in bug 13476. 19917 - Add a "coverage-html" make target to generate HTML-visualized 19918 coverage results when building with --enable-coverage. (Requires 19919 lcov.) Patch from Kevin Murray. 19920 - Enable the backtrace handler (where supported) when running the 19921 unit tests. 19922 - Revise all unit tests that used the legacy test_* macros to 19923 instead use the recommended tt_* macros. This patch was generated 19924 with coccinelle, to avoid manual errors. Closes ticket 13119. 19925 19926 Changes in version 0.2.5.11 - 2015-03-17 19927 Tor 0.2.5.11 is the second stable release in the 0.2.5 series. 19928 19929 It backports several bugfixes from the 0.2.6 branch, including a 19930 couple of medium-level security fixes for relays and exit nodes. 19931 It also updates the list of directory authorities. 19932 19933 o Directory authority changes: 19934 - Remove turtles as a directory authority. 19935 - Add longclaw as a new (v3) directory authority. This implements 19936 ticket 13296. This keeps the directory authority count at 9. 19937 - The directory authority Faravahar has a new IP address. This 19938 closes ticket 14487. 19939 19940 o Major bugfixes (crash, OSX, security): 19941 - Fix a remote denial-of-service opportunity caused by a bug in 19942 OSX's _strlcat_chk() function. Fixes bug 15205; bug first appeared 19943 in OSX 10.9. 19944 19945 o Major bugfixes (relay, stability, possible security): 19946 - Fix a bug that could lead to a relay crashing with an assertion 19947 failure if a buffer of exactly the wrong layout was passed to 19948 buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on 19949 0.2.0.10-alpha. Patch from 'cypherpunks'. 19950 - Do not assert if the 'data' pointer on a buffer is advanced to the 19951 very end of the buffer; log a BUG message instead. Only assert if 19952 it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha. 19953 19954 o Major bugfixes (exit node stability): 19955 - Fix an assertion failure that could occur under high DNS load. 19956 Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr"; 19957 diagnosed and fixed by "cypherpunks". 19958 19959 o Major bugfixes (Linux seccomp2 sandbox): 19960 - Upon receiving sighup with the seccomp2 sandbox enabled, do not 19961 crash during attempts to call wait4. Fixes bug 15088; bugfix on 19962 0.2.5.1-alpha. Patch from "sanic". 19963 19964 o Minor features (controller): 19965 - New "GETINFO bw-event-cache" to get information about recent 19966 bandwidth events. Closes ticket 14128. Useful for controllers to 19967 get recent bandwidth history after the fix for ticket 13988. 19968 19969 o Minor features (geoip): 19970 - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database. 19971 - Update geoip6 to the March 3 2015 Maxmind GeoLite2 19972 Country database. 19973 19974 o Minor bugfixes (client, automapping): 19975 - Avoid crashing on torrc lines for VirtualAddrNetworkIPv[4|6] when 19976 no value follows the option. Fixes bug 14142; bugfix on 19977 0.2.4.7-alpha. Patch by "teor". 19978 - Fix a memory leak when using AutomapHostsOnResolve. Fixes bug 19979 14195; bugfix on 0.1.0.1-rc. 19980 19981 o Minor bugfixes (compilation): 19982 - Build without warnings with the stock OpenSSL srtp.h header, which 19983 has a duplicate declaration of SSL_get_selected_srtp_profile(). 19984 Fixes bug 14220; this is OpenSSL's bug, not ours. 19985 19986 o Minor bugfixes (directory authority): 19987 - Allow directory authorities to fetch more data from one another if 19988 they find themselves missing lots of votes. Previously, they had 19989 been bumping against the 10 MB queued data limit. Fixes bug 14261; 19990 bugfix on 0.1.2.5-alpha. 19991 - Enlarge the buffer to read bwauth generated files to avoid an 19992 issue when parsing the file in dirserv_read_measured_bandwidths(). 19993 Fixes bug 14125; bugfix on 0.2.2.1-alpha. 19994 19995 o Minor bugfixes (statistics): 19996 - Increase period over which bandwidth observations are aggregated 19997 from 15 minutes to 4 hours. Fixes bug 13988; bugfix on 0.0.8pre1. 19998 19999 o Minor bugfixes (preventative security, C safety): 20000 - When reading a hexadecimal, base-32, or base-64 encoded value from 20001 a string, always overwrite the whole output buffer. This prevents 20002 some bugs where we would look at (but fortunately, not reveal) 20003 uninitialized memory on the stack. Fixes bug 14013; bugfix on all 20004 versions of Tor. 20005 20006 20007 Changes in version 0.2.4.26 - 2015-03-17 20008 Tor 0.2.4.26 includes an updated list of directory authorities. It 20009 also backports a couple of stability and security bugfixes from 0.2.5 20010 and beyond. 20011 20012 o Directory authority changes: 20013 - Remove turtles as a directory authority. 20014 - Add longclaw as a new (v3) directory authority. This implements 20015 ticket 13296. This keeps the directory authority count at 9. 20016 - The directory authority Faravahar has a new IP address. This 20017 closes ticket 14487. 20018 20019 o Major bugfixes (exit node stability, also in 0.2.6.3-alpha): 20020 - Fix an assertion failure that could occur under high DNS load. 20021 Fixes bug 14129; bugfix on Tor 0.0.7rc1. Found by "jowr"; 20022 diagnosed and fixed by "cypherpunks". 20023 20024 o Major bugfixes (relay, stability, possible security, also in 0.2.6.4-rc): 20025 - Fix a bug that could lead to a relay crashing with an assertion 20026 failure if a buffer of exactly the wrong layout was passed to 20027 buf_pullup() at exactly the wrong time. Fixes bug 15083; bugfix on 20028 0.2.0.10-alpha. Patch from 'cypherpunks'. 20029 - Do not assert if the 'data' pointer on a buffer is advanced to the 20030 very end of the buffer; log a BUG message instead. Only assert if 20031 it is past that point. Fixes bug 15083; bugfix on 0.2.0.10-alpha. 20032 20033 o Minor features (geoip): 20034 - Update geoip to the March 3 2015 Maxmind GeoLite2 Country database. 20035 - Update geoip6 to the March 3 2015 Maxmind GeoLite2 20036 Country database. 20037 20038 Changes in version 0.2.5.10 - 2014-10-24 20039 Tor 0.2.5.10 is the first stable release in the 0.2.5 series. 20040 20041 It adds several new security features, including improved 20042 denial-of-service resistance for relays, new compiler hardening 20043 options, and a system-call sandbox for hardened installations on Linux 20044 (requires seccomp2). The controller protocol has several new features, 20045 resolving IPv6 addresses should work better than before, and relays 20046 should be a little more CPU-efficient. We've added support for more 20047 OpenBSD and FreeBSD transparent proxy types. We've improved the build 20048 system and testing infrastructure to allow unit testing of more parts 20049 of the Tor codebase. Finally, we've addressed several nagging pluggable 20050 transport usability issues, and included numerous other small bugfixes 20051 and features mentioned below. 20052 20053 This release marks end-of-life for Tor 0.2.3.x; those Tor versions 20054 have accumulated many known flaws; everyone should upgrade. 20055 20056 o Major features (security): 20057 - The ntor handshake is now on-by-default, no matter what the 20058 directory authorities recommend. Implements ticket 8561. 20059 - Make the "tor-gencert" tool used by directory authority operators 20060 create 2048-bit signing keys by default (rather than 1024-bit, since 20061 1024-bit is uncomfortably small these days). Addresses ticket 10324. 20062 - Warn about attempts to run hidden services and relays in the same 20063 process: that's probably not a good idea. Closes ticket 12908. 20064 - Disable support for SSLv3. All versions of OpenSSL in use with Tor 20065 today support TLS 1.0 or later, so we can safely turn off support 20066 for this old (and insecure) protocol. Fixes bug 13426. 20067 20068 o Major features (relay security, DoS-resistance): 20069 - When deciding whether we have run out of memory and we need to 20070 close circuits, also consider memory allocated in buffers for 20071 streams attached to each circuit. 20072 20073 This change, which extends an anti-DoS feature introduced in 20074 0.2.4.13-alpha and improved in 0.2.4.14-alpha, lets Tor exit relays 20075 better resist more memory-based DoS attacks than before. Since the 20076 MaxMemInCellQueues option now applies to all queues, it is renamed 20077 to MaxMemInQueues. This feature fixes bug 10169. 20078 - Avoid hash-flooding denial-of-service attacks by using the secure 20079 SipHash-2-4 hash function for our hashtables. Without this 20080 feature, an attacker could degrade performance of a targeted 20081 client or server by flooding their data structures with a large 20082 number of entries to be stored at the same hash table position, 20083 thereby slowing down the Tor instance. With this feature, hash 20084 table positions are derived from a randomized cryptographic key, 20085 and an attacker cannot predict which entries will collide. Closes 20086 ticket 4900. 20087 - If you don't specify MaxMemInQueues yourself, Tor now tries to 20088 pick a good value based on your total system memory. Previously, 20089 the default was always 8 GB. You can still override the default by 20090 setting MaxMemInQueues yourself. Resolves ticket 11396. 20091 20092 o Major features (bridges and pluggable transports): 20093 - Add support for passing arguments to managed pluggable transport 20094 proxies. Implements ticket 3594. 20095 - Bridges now track GeoIP information and the number of their users 20096 even when pluggable transports are in use, and report usage 20097 statistics in their extra-info descriptors. Resolves tickets 4773 20098 and 5040. 20099 - Don't launch pluggable transport proxies if we don't have any 20100 bridges configured that would use them. Now we can list many 20101 pluggable transports, and Tor will dynamically start one when it 20102 hears a bridge address that needs it. Resolves ticket 5018. 20103 - The bridge directory authority now assigns status flags (Stable, 20104 Guard, etc) to bridges based on thresholds calculated over all 20105 Running bridges. Now bridgedb can finally make use of its features 20106 to e.g. include at least one Stable bridge in its answers. Fixes 20107 bug 9859. 20108 20109 o Major features (controller): 20110 - Extend ORCONN controller event to include an "ID" parameter, 20111 and add four new controller event types CONN_BW, CIRC_BW, 20112 CELL_STATS, and TB_EMPTY that show connection and circuit usage. 20113 The new events are emitted in private Tor networks only, with the 20114 goal of being able to better track performance and load during 20115 full-network simulations. Implements proposal 218 and ticket 7359. 20116 20117 o Major features (relay performance): 20118 - Speed up server-side lookups of rendezvous and introduction point 20119 circuits by using hashtables instead of linear searches. These 20120 functions previously accounted between 3 and 7% of CPU usage on 20121 some busy relays. Resolves ticket 9841. 20122 - Avoid wasting CPU when extending a circuit over a channel that is 20123 nearly out of circuit IDs. Previously, we would do a linear scan 20124 over possible circuit IDs before finding one or deciding that we 20125 had exhausted our possibilities. Now, we try at most 64 random 20126 circuit IDs before deciding that we probably won't succeed. Fixes 20127 a possible root cause of ticket 11553. 20128 20129 o Major features (seccomp2 sandbox, Linux only): 20130 - Use the seccomp2 syscall filtering facility on Linux to limit 20131 which system calls Tor can invoke. This is an experimental, 20132 Linux-only feature to provide defense-in-depth against unknown 20133 attacks. To try turning it on, set "Sandbox 1" in your torrc 20134 file. Please be ready to report bugs. We hope to add support 20135 for better sandboxing in the future, including more fine-grained 20136 filters, better division of responsibility, and support for more 20137 platforms. This work has been done by Cristian-Matei Toader for 20138 Google Summer of Code. Resolves tickets 11351 and 11465. 20139 20140 o Major features (testing networks): 20141 - Make testing Tor networks bootstrap better: lower directory fetch 20142 retry schedules and maximum interval without directory requests, 20143 and raise maximum download tries. Implements ticket 6752. 20144 - Add make target 'test-network' to run tests on a Chutney network. 20145 Implements ticket 8530. 20146 20147 o Major features (other): 20148 - On some platforms (currently: recent OSX versions, glibc-based 20149 platforms that support the ELF format, and a few other 20150 Unix-like operating systems), Tor can now dump stack traces 20151 when a crash occurs or an assertion fails. By default, traces 20152 are dumped to stderr (if possible) and to any logs that are 20153 reporting errors. Implements ticket 9299. 20154 20155 o Deprecated versions: 20156 - Tor 0.2.3.x has reached end-of-life; it has received no patches or 20157 attention for some while. 20158 20159 o Major bugfixes (security, directory authorities): 20160 - Directory authorities now include a digest of each relay's 20161 identity key as a part of its microdescriptor. 20162 20163 This is a workaround for bug 11743 (reported by "cypherpunks"), 20164 where Tor clients do not support receiving multiple 20165 microdescriptors with the same SHA256 digest in the same 20166 consensus. When clients receive a consensus like this, they only 20167 use one of the relays. Without this fix, a hostile relay could 20168 selectively disable some client use of target relays by 20169 constructing a router descriptor with a different identity and the 20170 same microdescriptor parameters and getting the authorities to 20171 list it in a microdescriptor consensus. This fix prevents an 20172 attacker from causing a microdescriptor collision, because the 20173 router's identity is not forgeable. 20174 20175 o Major bugfixes (openssl bug workaround): 20176 - Avoid crashing when using OpenSSL version 0.9.8zc, 1.0.0o, or 20177 1.0.1j, built with the 'no-ssl3' configuration option. Fixes 20178 bug 13471. This is a workaround for an OpenSSL bug. 20179 20180 o Major bugfixes (client): 20181 - Perform circuit cleanup operations even when circuit 20182 construction operations are disabled (because the network is 20183 disabled, or because there isn't enough directory information). 20184 Previously, when we were not building predictive circuits, we 20185 were not closing expired circuits either. Fixes bug 8387; bugfix on 20186 0.1.1.11-alpha. This bug became visible in 0.2.4.10-alpha when we 20187 became more strict about when we have "enough directory information 20188 to build circuits". 20189 20190 o Major bugfixes (client, pluggable transports): 20191 - When managing pluggable transports, use OS notification facilities 20192 to learn if they have crashed, and don't attempt to kill any 20193 process that has already exited. Fixes bug 8746; bugfix 20194 on 0.2.3.6-alpha. 20195 20196 o Major bugfixes (relay denial of service): 20197 - Instead of writing destroy cells directly to outgoing connection 20198 buffers, queue them and intersperse them with other outgoing cells. 20199 This can prevent a set of resource starvation conditions where too 20200 many pending destroy cells prevent data cells from actually getting 20201 delivered. Reported by "oftc_must_be_destroyed". Fixes bug 7912; 20202 bugfix on 0.2.0.1-alpha. 20203 20204 o Major bugfixes (relay): 20205 - Avoid queuing or sending destroy cells for circuit ID zero when we 20206 fail to send a CREATE cell. Fixes bug 12848; bugfix on 0.0.8pre1. 20207 Found and fixed by "cypherpunks". 20208 - Fix ORPort reachability detection on relays running behind a 20209 proxy, by correctly updating the "local" mark on the controlling 20210 channel when changing the address of an or_connection_t after the 20211 handshake. Fixes bug 12160; bugfix on 0.2.4.4-alpha. 20212 - Use a direct dirport connection when uploading non-anonymous 20213 descriptors to the directory authorities. Previously, relays would 20214 incorrectly use tunnel connections under a fairly wide variety of 20215 circumstances. Fixes bug 11469; bugfix on 0.2.4.3-alpha. 20216 - When a circuit accidentally has the same circuit ID for its 20217 forward and reverse direction, correctly detect the direction of 20218 cells using that circuit. Previously, this bug made roughly one 20219 circuit in a million non-functional. Fixes bug 12195; this is a 20220 bugfix on every version of Tor. 20221 20222 o Minor features (security): 20223 - New --enable-expensive-hardening option to enable security 20224 hardening options that consume nontrivial amounts of CPU and 20225 memory. Right now, this includes AddressSanitizer and UbSan, which 20226 are supported in newer versions of GCC and Clang. Closes ticket 20227 11477. 20228 - Authorities now assign the Guard flag to the fastest 25% of the 20229 network (it used to be the fastest 50%). Also raise the consensus 20230 weight that guarantees the Guard flag from 250 to 2000. For the 20231 current network, this results in about 1100 guards, down from 2500. 20232 This step paves the way for moving the number of entry guards 20233 down to 1 (proposal 236) while still providing reasonable expected 20234 performance for most users. Implements ticket 12690. 20235 20236 o Minor features (security, memory management): 20237 - Memory allocation tricks (mempools and buffer freelists) are now 20238 disabled by default. You can turn them back on with 20239 --enable-mempools and --enable-buf-freelists respectively. We're 20240 disabling these features because malloc performance is good enough 20241 on most platforms, and a similar feature in OpenSSL exacerbated 20242 exploitation of the Heartbleed attack. Resolves ticket 11476. 20243 20244 o Minor features (bridge client): 20245 - Report a more useful failure message when we can't connect to a 20246 bridge because we don't have the right pluggable transport 20247 configured. Resolves ticket 9665. Patch from Fábio J. Bertinatto. 20248 20249 o Minor features (bridge): 20250 - Add an ExtORPortCookieAuthFileGroupReadable option to make the 20251 cookie file for the ExtORPort g+r by default. 20252 20253 o Minor features (bridges, pluggable transports): 20254 - Bridges now write the SHA1 digest of their identity key 20255 fingerprint (that is, a hash of a hash of their public key) to 20256 notice-level logs, and to a new hashed-fingerprint file. This 20257 information will help bridge operators look up their bridge in 20258 Globe and similar tools. Resolves ticket 10884. 20259 - Improve the message that Tor displays when running as a bridge 20260 using pluggable transports without an Extended ORPort listener. 20261 Also, log the message in the log file too. Resolves ticket 11043. 20262 - Add threshold cutoffs to the networkstatus document created by 20263 the Bridge Authority. Fixes bug 1117. 20264 - On Windows, spawn background processes using the CREATE_NO_WINDOW 20265 flag. Now Tor Browser Bundle 3.5 with pluggable transports enabled 20266 doesn't pop up a blank console window. (In Tor Browser Bundle 2.x, 20267 Vidalia set this option for us.) Implements ticket 10297. 20268 20269 o Minor features (build): 20270 - The configure script has a --disable-seccomp option to turn off 20271 support for libseccomp on systems that have it, in case it (or 20272 Tor's use of it) is broken. Resolves ticket 11628. 20273 - Assume that a user using ./configure --host wants to cross-compile, 20274 and give an error if we cannot find a properly named 20275 tool-chain. Add a --disable-tool-name-check option to proceed 20276 nevertheless. Addresses ticket 9869. Patch by Benedikt Gollatz. 20277 - If we run ./configure and the compiler recognizes -fstack-protector 20278 but the linker rejects it, warn the user about a potentially missing 20279 libssp package. Addresses ticket 9948. Patch from Benedikt Gollatz. 20280 - Add support for `--library-versions` flag. Implements ticket 6384. 20281 - Return the "unexpected sendme" warnings to a warn severity, but make 20282 them rate limited, to help diagnose ticket 8093. 20283 - Detect a missing asciidoc, and warn the user about it, during 20284 configure rather than at build time. Fixes issue 6506. Patch from 20285 Arlo Breault. 20286 20287 o Minor features (client): 20288 - Add a new option, PredictedPortsRelevanceTime, to control how long 20289 after having received a request to connect to a given port Tor 20290 will try to keep circuits ready in anticipation of future requests 20291 for that port. Patch from "unixninja92"; implements ticket 9176. 20292 20293 o Minor features (config options and command line): 20294 - Add an --allow-missing-torrc commandline option that tells Tor to 20295 run even if the configuration file specified by -f is not available. 20296 Implements ticket 10060. 20297 - Add support for the TPROXY transparent proxying facility on Linux. 20298 See documentation for the new TransProxyType option for more 20299 details. Implementation by "thomo". Closes ticket 10582. 20300 20301 o Minor features (config options): 20302 - Config (torrc) lines now handle fingerprints which are missing 20303 their initial '$'. Resolves ticket 4341; improvement over 0.0.9pre5. 20304 - Support a --dump-config option to print some or all of the 20305 configured options. Mainly useful for debugging the command-line 20306 option parsing code. Helps resolve ticket 4647. 20307 - Raise awareness of safer logging: notify user of potentially 20308 unsafe config options, like logging more verbosely than severity 20309 "notice" or setting SafeLogging to 0. Resolves ticket 5584. 20310 - Add a new configuration option TestingV3AuthVotingStartOffset 20311 that bootstraps a network faster by changing the timing for 20312 consensus votes. Addresses ticket 8532. 20313 - Add a new torrc option "ServerTransportOptions" that allows 20314 bridge operators to pass configuration parameters to their 20315 pluggable transports. Resolves ticket 8929. 20316 - The config (torrc) file now accepts bandwidth and space limits in 20317 bits as well as bytes. (Anywhere that you can say "2 Kilobytes", 20318 you can now say "16 kilobits", and so on.) Resolves ticket 9214. 20319 Patch by CharlieB. 20320 20321 o Minor features (controller): 20322 - Make the entire exit policy available from the control port via 20323 GETINFO exit-policy/*. Implements enhancement 7952. Patch from 20324 "rl1987". 20325 - Because of the fix for ticket 11396, the real limit for memory 20326 usage may no longer match the configured MaxMemInQueues value. The 20327 real limit is now exposed via GETINFO limits/max-mem-in-queues. 20328 - Add a new "HS_DESC" controller event that reports activities 20329 related to hidden service descriptors. Resolves ticket 8510. 20330 - New "DROPGUARDS" controller command to forget all current entry 20331 guards. Not recommended for ordinary use, since replacing guards 20332 too frequently makes several attacks easier. Resolves ticket 9934; 20333 patch from "ra". 20334 - Implement the TRANSPORT_LAUNCHED control port event that 20335 notifies controllers about new launched pluggable 20336 transports. Resolves ticket 5609. 20337 20338 o Minor features (diagnostic): 20339 - When logging a warning because of bug 7164, additionally check the 20340 hash table for consistency (as proposed on ticket 11737). This may 20341 help diagnose bug 7164. 20342 - When we log a heartbeat, log how many one-hop circuits we have 20343 that are at least 30 minutes old, and log status information about 20344 a few of them. This is an attempt to track down bug 8387. 20345 - When encountering an unexpected CR while writing text to a file on 20346 Windows, log the name of the file. Should help diagnosing 20347 bug 11233. 20348 - Give more specific warnings when a client notices that an onion 20349 handshake has failed. Fixes ticket 9635. 20350 - Add significant new logging code to attempt to diagnose bug 12184, 20351 where relays seem to run out of available circuit IDs. 20352 - Improve the diagnostic log message for bug 8387 even further to 20353 try to improve our odds of figuring out why one-hop directory 20354 circuits sometimes do not get closed. 20355 - Add more log messages to diagnose bug 7164, which causes 20356 intermittent "microdesc_free() called but md was still referenced" 20357 warnings. We now include more information, to figure out why we 20358 might be cleaning a microdescriptor for being too old if it's 20359 still referenced by a live node_t object. 20360 - Log current accounting state (bytes sent and received + remaining 20361 time for the current accounting period) in the relay's heartbeat 20362 message. Implements ticket 5526; patch from Peter Retzlaff. 20363 20364 o Minor features (geoip): 20365 - Update geoip and geoip6 to the August 7 2014 Maxmind GeoLite2 20366 Country database. 20367 20368 o Minor features (interface): 20369 - Generate a warning if any ports are listed in the SocksPolicy, 20370 DirPolicy, AuthDirReject, AuthDirInvalid, AuthDirBadDir, or 20371 AuthDirBadExit options. (These options only support address 20372 ranges.) Fixes part of ticket 11108. 20373 20374 o Minor features (kernel API usage): 20375 - Use the SOCK_NONBLOCK socket type, if supported, to open nonblocking 20376 sockets in a single system call. Implements ticket 5129. 20377 20378 o Minor features (log messages): 20379 - When ServerTransportPlugin is set on a bridge, Tor can write more 20380 useful statistics about bridge use in its extrainfo descriptors, 20381 but only if the Extended ORPort ("ExtORPort") is set too. Add a 20382 log message to inform the user in this case. Resolves ticket 9651. 20383 - When receiving a new controller connection, log the origin address. 20384 Resolves ticket 9698; patch from "sigpipe". 20385 - When logging OpenSSL engine status at startup, log the status of 20386 more engines. Fixes ticket 10043; patch from Joshua Datko. 20387 20388 o Minor features (log verbosity): 20389 - Demote the message that we give when a flushing connection times 20390 out for too long from NOTICE to INFO. It was usually meaningless. 20391 Resolves ticket 5286. 20392 - Don't log so many notice-level bootstrapping messages at startup 20393 about downloading descriptors. Previously, we'd log a notice 20394 whenever we learned about more routers. Now, we only log a notice 20395 at every 5% of progress. Fixes bug 9963. 20396 - Warn less verbosely when receiving a malformed 20397 ESTABLISH_RENDEZVOUS cell. Fixes ticket 11279. 20398 20399 o Minor features (performance): 20400 - If we're using the pure-C 32-bit curve25519_donna implementation 20401 of curve25519, build it with the -fomit-frame-pointer option to 20402 make it go faster on register-starved hosts. This improves our 20403 handshake performance by about 6% on i386 hosts without nacl. 20404 Closes ticket 8109. 20405 20406 o Minor features (relay): 20407 - If a circuit timed out for at least 3 minutes, check if we have a 20408 new external IP address, and publish a new descriptor with the new 20409 IP address if it changed. Resolves ticket 2454. 20410 20411 o Minor features (testing): 20412 - If Python is installed, "make check" now runs extra tests beyond 20413 the unit test scripts. 20414 - When bootstrapping a test network, sometimes very few relays get 20415 the Guard flag. Now a new option "TestingDirAuthVoteGuard" can 20416 specify a set of relays which should be voted Guard regardless of 20417 their uptime or bandwidth. Addresses ticket 9206. 20418 20419 o Minor features (transparent proxy, *BSD): 20420 - Support FreeBSD's ipfw firewall interface for TransPort ports on 20421 FreeBSD. To enable it, set "TransProxyType ipfw". Resolves ticket 20422 10267; patch from "yurivict". 20423 - Support OpenBSD's divert-to rules with the pf firewall for 20424 transparent proxy ports. To enable it, set "TransProxyType 20425 pf-divert". This allows Tor to run a TransPort transparent proxy 20426 port on OpenBSD 4.4 or later without root privileges. See the 20427 pf.conf(5) manual page for information on configuring pf to use 20428 divert-to rules. Closes ticket 10896; patch from Dana Koch. 20429 20430 o Minor bugfixes (bridge client): 20431 - Stop accepting bridge lines containing hostnames. Doing so would 20432 cause clients to perform DNS requests on the hostnames, which was 20433 not sensible behavior. Fixes bug 10801; bugfix on 0.2.0.1-alpha. 20434 20435 o Minor bugfixes (bridges): 20436 - Avoid potential crashes or bad behavior when launching a 20437 server-side managed proxy with ORPort or ExtORPort temporarily 20438 disabled. Fixes bug 9650; bugfix on 0.2.3.16-alpha. 20439 - Fix a bug where the first connection works to a bridge that uses a 20440 pluggable transport with client-side parameters, but we don't send 20441 the client-side parameters on subsequent connections. (We don't 20442 use any pluggable transports with client-side parameters yet, 20443 but ScrambleSuit will soon become the first one.) Fixes bug 9162; 20444 bugfix on 0.2.0.3-alpha. Based on a patch from "rl1987". 20445 20446 o Minor bugfixes (build, auxiliary programs): 20447 - Stop preprocessing the "torify" script with autoconf, since 20448 it no longer refers to LOCALSTATEDIR. Fixes bug 5505; patch 20449 from Guilhem. 20450 - The tor-fw-helper program now follows the standard convention and 20451 exits with status code "0" on success. Fixes bug 9030; bugfix on 20452 0.2.3.1-alpha. Patch by Arlo Breault. 20453 - Corrected ./configure advice for what openssl dev package you should 20454 install on Debian. Fixes bug 9207; bugfix on 0.2.0.1-alpha. 20455 20456 o Minor bugfixes (client): 20457 - Avoid "Tried to open a socket with DisableNetwork set" warnings 20458 when starting a client with bridges configured and DisableNetwork 20459 set. (Tor launcher starts Tor with DisableNetwork set the first 20460 time it runs.) Fixes bug 10405; bugfix on 0.2.3.9-alpha. 20461 - Improve the log message when we can't connect to a hidden service 20462 because all of the hidden service directory nodes hosting its 20463 descriptor are excluded. Improves on our fix for bug 10722, which 20464 was a bugfix on 0.2.0.10-alpha. 20465 - Raise a control port warning when we fail to connect to all of 20466 our bridges. Previously, we didn't inform the controller, and 20467 the bootstrap process would stall. Fixes bug 11069; bugfix on 20468 0.2.1.2-alpha. 20469 - Exit immediately when a process-owning controller exits. 20470 Previously, tor relays would wait for a little while after their 20471 controller exited, as if they had gotten an INT signal -- but this 20472 was problematic, since there was no feedback for the user. To do a 20473 clean shutdown, controllers should send an INT signal and give Tor 20474 a chance to clean up. Fixes bug 10449; bugfix on 0.2.2.28-beta. 20475 - Stop attempting to connect to bridges before our pluggable 20476 transports are configured (harmless but resulted in some erroneous 20477 log messages). Fixes bug 11156; bugfix on 0.2.3.2-alpha. 20478 - Fix connections to IPv6 addresses over SOCKS5. Previously, we were 20479 generating incorrect SOCKS5 responses, and confusing client 20480 applications. Fixes bug 10987; bugfix on 0.2.4.7-alpha. 20481 20482 o Minor bugfixes (client, DNSPort): 20483 - When using DNSPort, try to respond to AAAA requests with AAAA 20484 answers. Previously, we hadn't looked at the request type when 20485 deciding which answer type to prefer. Fixes bug 10468; bugfix on 20486 0.2.4.7-alpha. 20487 - When receiving a DNS query for an unsupported record type, reply 20488 with no answer rather than with a NOTIMPL error. This behavior 20489 isn't correct either, but it will break fewer client programs, we 20490 hope. Fixes bug 10268; bugfix on 0.2.0.1-alpha. Original patch 20491 from "epoch". 20492 20493 o Minor bugfixes (client, logging during bootstrap): 20494 - Only report the first fatal bootstrap error on a given OR 20495 connection. This stops us from telling the controller bogus error 20496 messages like "DONE". Fixes bug 10431; bugfix on 0.2.1.1-alpha. 20497 - Avoid generating spurious warnings when starting with 20498 DisableNetwork enabled. Fixes bug 11200 and bug 10405; bugfix on 20499 0.2.3.9-alpha. 20500 20501 o Minor bugfixes (closing OR connections): 20502 - If write_to_buf() in connection_write_to_buf_impl_() ever fails, 20503 check if it's an or_connection_t and correctly call 20504 connection_or_close_for_error() rather than 20505 connection_mark_for_close() directly. Fixes bug 11304; bugfix on 20506 0.2.4.4-alpha. 20507 - When closing all connections on setting DisableNetwork to 1, use 20508 connection_or_close_normally() rather than closing OR connections 20509 out from under the channel layer. Fixes bug 11306; bugfix on 20510 0.2.4.4-alpha. 20511 20512 o Minor bugfixes (code correctness): 20513 - Previously we used two temporary files when writing descriptors to 20514 disk; now we only use one. Fixes bug 1376. 20515 - Remove an erroneous (but impossible and thus harmless) pointer 20516 comparison that would have allowed compilers to skip a bounds 20517 check in channeltls.c. Fixes bugs 10313 and 9980; bugfix on 20518 0.2.0.10-alpha. Noticed by Jared L Wong and David Fifield. 20519 - Fix an always-true assertion in pluggable transports code so it 20520 actually checks what it was trying to check. Fixes bug 10046; 20521 bugfix on 0.2.3.9-alpha. Found by "dcb". 20522 20523 o Minor bugfixes (command line): 20524 - Use a single command-line parser for parsing torrc options on the 20525 command line and for finding special command-line options to avoid 20526 inconsistent behavior for torrc option arguments that have the same 20527 names as command-line options. Fixes bugs 4647 and 9578; bugfix on 20528 0.0.9pre5. 20529 - No longer allow 'tor --hash-password' with no arguments. Fixes bug 20530 9573; bugfix on 0.0.9pre5. 20531 20532 o Minor bugfixes (compilation): 20533 - Compile correctly with builds and forks of OpenSSL (such as 20534 LibreSSL) that disable compression. Fixes bug 12602; bugfix on 20535 0.2.1.1-alpha. Patch from "dhill". 20536 - Restore the ability to compile Tor with V2_HANDSHAKE_SERVER 20537 turned off (that is, without support for v2 link handshakes). Fixes 20538 bug 4677; bugfix on 0.2.3.2-alpha. Patch from "piet". 20539 - In routerlist_assert_ok(), don't take the address of a 20540 routerinfo's cache_info member unless that routerinfo is non-NULL. 20541 Fixes bug 13096; bugfix on 0.1.1.9-alpha. Patch by "teor". 20542 - Fix a large number of false positive warnings from the clang 20543 analyzer static analysis tool. This should make real warnings 20544 easier for clang analyzer to find. Patch from "teor". Closes 20545 ticket 13036. 20546 - Resolve GCC complaints on OpenBSD about discarding constness in 20547 TO_{ORIGIN,OR}_CIRCUIT functions. Fixes part of bug 11633; bugfix 20548 on 0.1.1.23. Patch from Dana Koch. 20549 - Resolve clang complaints on OpenBSD with -Wshorten-64-to-32 due to 20550 treatment of long and time_t as comparable types. Fixes part of 20551 bug 11633. Patch from Dana Koch. 20552 - When deciding whether to build the 64-bit curve25519 20553 implementation, detect platforms where we can compile 128-bit 20554 arithmetic but cannot link it. Fixes bug 11729; bugfix on 20555 0.2.4.8-alpha. Patch from "conradev". 20556 - Fix compilation when DNS_CACHE_DEBUG is enabled. Fixes bug 11761; 20557 bugfix on 0.2.3.13-alpha. Found by "cypherpunks". 20558 - Fix compilation with dmalloc. Fixes bug 11605; bugfix 20559 on 0.2.4.10-alpha. 20560 - Build and run correctly on systems like OpenBSD-current that have 20561 patched OpenSSL to remove get_cipher_by_char and/or its 20562 implementations. Fixes issue 13325. 20563 20564 o Minor bugfixes (controller and command-line): 20565 - If changing a config option via "setconf" fails in a recoverable 20566 way, we used to nonetheless write our new control ports to the 20567 file described by the "ControlPortWriteToFile" option. Now we only 20568 write out that file if we successfully switch to the new config 20569 option. Fixes bug 5605; bugfix on 0.2.2.26-beta. Patch from "Ryman". 20570 20571 o Minor bugfixes (directory server): 20572 - No longer accept malformed http headers when parsing urls from 20573 headers. Now we reply with Bad Request ("400"). Fixes bug 2767; 20574 bugfix on 0.0.6pre1. 20575 - When sending a compressed set of descriptors or microdescriptors, 20576 make sure to finalize the zlib stream. Previously, we would write 20577 all the compressed data, but if the last descriptor we wanted to 20578 send was missing or too old, we would not mark the stream as 20579 finished. This caused problems for decompression tools. Fixes bug 20580 11648; bugfix on 0.1.1.23. 20581 20582 o Minor bugfixes (hidden service): 20583 - Only retry attempts to connect to a chosen rendezvous point 8 20584 times, not 30. Fixes bug 4241; bugfix on 0.1.0.1-rc. 20585 20586 o Minor bugfixes (interface): 20587 - Reject relative control socket paths and emit a warning. Previously, 20588 single-component control socket paths would be rejected, but Tor 20589 would not log why it could not validate the config. Fixes bug 9258; 20590 bugfix on 0.2.3.16-alpha. 20591 20592 o Minor bugfixes (log messages): 20593 - Fix a bug where clients using bridges would report themselves 20594 as 50% bootstrapped even without a live consensus document. 20595 Fixes bug 9922; bugfix on 0.2.1.1-alpha. 20596 - Suppress a warning where, if there's only one directory authority 20597 in the network, we would complain that votes and signatures cannot 20598 be uploaded to other directory authorities. Fixes bug 10842; 20599 bugfix on 0.2.2.26-beta. 20600 - Report bootstrapping progress correctly when we're downloading 20601 microdescriptors. We had updated our "do we have enough microdescs 20602 to begin building circuits?" logic most recently in 0.2.4.10-alpha 20603 (see bug 5956), but we left the bootstrap status event logic at 20604 "how far through getting 1/4 of them are we?" Fixes bug 9958; 20605 bugfix on 0.2.2.36, which is where they diverged (see bug 5343). 20606 20607 o Minor bugfixes (logging): 20608 - Downgrade "Unexpected onionskin length after decryption" warning 20609 to a protocol-warn, since there's nothing relay operators can do 20610 about a client that sends them a malformed create cell. Resolves 20611 bug 12996; bugfix on 0.0.6rc1. 20612 - Log more specific warnings when we get an ESTABLISH_RENDEZVOUS 20613 cell on a cannibalized or non-OR circuit. Resolves ticket 12997. 20614 - When logging information about an EXTEND2 or EXTENDED2 cell, log 20615 their names correctly. Fixes part of bug 12700; bugfix 20616 on 0.2.4.8-alpha. 20617 - When logging information about a relay cell whose command we don't 20618 recognize, log its command as an integer. Fixes part of bug 12700; 20619 bugfix on 0.2.1.10-alpha. 20620 - Escape all strings from the directory connection before logging 20621 them. Fixes bug 13071; bugfix on 0.1.1.15. Patch from "teor". 20622 - Squelch a spurious LD_BUG message "No origin circuit for 20623 successful SOCKS stream" in certain hidden service failure cases; 20624 fixes bug 10616. 20625 - Downgrade the severity of the 'unexpected sendme cell from client' 20626 from 'warn' to 'protocol warning'. Closes ticket 8093. 20627 20628 o Minor bugfixes (misc code correctness): 20629 - In munge_extrainfo_into_routerinfo(), check the return value of 20630 memchr(). This would have been a serious issue if we ever passed 20631 it a non-extrainfo. Fixes bug 8791; bugfix on 0.2.0.6-alpha. Patch 20632 from Arlo Breault. 20633 - On the chance that somebody manages to build Tor on a 20634 platform where time_t is unsigned, correct the way that 20635 microdesc_add_to_cache() handles negative time arguments. 20636 Fixes bug 8042; bugfix on 0.2.3.1-alpha. 20637 - Fix various instances of undefined behavior in channeltls.c, 20638 tor_memmem(), and eventdns.c that would cause us to construct 20639 pointers to memory outside an allocated object. (These invalid 20640 pointers were not accessed, but C does not even allow them to 20641 exist.) Fixes bug 10363; bugfixes on 0.1.1.1-alpha, 0.1.2.1-alpha, 20642 0.2.0.10-alpha, and 0.2.3.6-alpha. Reported by "bobnomnom". 20643 - Use the AddressSanitizer and Ubsan sanitizers (in clang-3.4) to 20644 fix some miscellaneous errors in our tests and codebase. Fixes bug 20645 11232. Bugfixes on versions back as far as 0.2.1.11-alpha. 20646 - Always check return values for unlink, munmap, UnmapViewOfFile; 20647 check strftime return values more often. In some cases all we can 20648 do is report a warning, but this may help prevent deeper bugs from 20649 going unnoticed. Closes ticket 8787; bugfixes on many, many tor 20650 versions. 20651 - Fix numerous warnings from the clang "scan-build" static analyzer. 20652 Some of these are programming style issues; some of them are false 20653 positives that indicated awkward code; some are undefined behavior 20654 cases related to constructing (but not using) invalid pointers; 20655 some are assumptions about API behavior; some are (harmlessly) 20656 logging sizeof(ptr) bytes from a token when sizeof(*ptr) would be 20657 correct; and one or two are genuine bugs that weren't reachable 20658 from the rest of the program. Fixes bug 8793; bugfixes on many, 20659 many tor versions. 20660 20661 o Minor bugfixes (node selection): 20662 - If ExcludeNodes is set, consider non-excluded hidden service 20663 directory servers before excluded ones. Do not consider excluded 20664 hidden service directory servers at all if StrictNodes is 20665 set. (Previously, we would sometimes decide to connect to those 20666 servers, and then realize before we initiated a connection that 20667 we had excluded them.) Fixes bug 10722; bugfix on 0.2.0.10-alpha. 20668 Reported by "mr-4". 20669 - If we set the ExitNodes option but it doesn't include any nodes 20670 that have the Exit flag, we would choose not to bootstrap. Now we 20671 bootstrap so long as ExitNodes includes nodes which can exit to 20672 some port. Fixes bug 10543; bugfix on 0.2.4.10-alpha. 20673 20674 o Minor bugfixes (performance): 20675 - Avoid a bug where every successful connection made us recompute 20676 the flag telling us whether we have sufficient information to 20677 build circuits. Previously, we would forget our cached value 20678 whenever we successfully opened a channel (or marked a router as 20679 running or not running for any other reason), regardless of 20680 whether we had previously believed the router to be running. This 20681 forced us to run an expensive update operation far too often. 20682 Fixes bug 12170; bugfix on 0.1.2.1-alpha. 20683 - Avoid using tor_memeq() for checking relay cell integrity. This 20684 removes a possible performance bottleneck. Fixes part of bug 20685 12169; bugfix on 0.2.1.31. 20686 20687 o Minor bugfixes (platform-specific): 20688 - When dumping a malformed directory object to disk, save it in 20689 binary mode on Windows, not text mode. Fixes bug 11342; bugfix on 20690 0.2.2.1-alpha. 20691 - Don't report failures from make_socket_reuseable() on incoming 20692 sockets on OSX: this can happen when incoming connections close 20693 early. Fixes bug 10081. 20694 20695 o Minor bugfixes (pluggable transports): 20696 - Avoid another 60-second delay when starting Tor in a pluggable- 20697 transport-using configuration when we already have cached 20698 descriptors for our bridges. Fixes bug 11965; bugfix 20699 on 0.2.3.6-alpha. 20700 20701 o Minor bugfixes (protocol correctness): 20702 - When receiving a VERSIONS cell with an odd number of bytes, close 20703 the connection immediately since the cell is malformed. Fixes bug 20704 10365; bugfix on 0.2.0.10-alpha. Spotted by "bobnomnom"; fix by 20705 "rl1987". 20706 20707 o Minor bugfixes (relay, other): 20708 - We now drop CREATE cells for already-existent circuit IDs and for 20709 zero-valued circuit IDs, regardless of other factors that might 20710 otherwise have called for DESTROY cells. Fixes bug 12191; bugfix 20711 on 0.0.8pre1. 20712 - When rejecting DATA cells for stream_id zero, still count them 20713 against the circuit's deliver window so that we don't fail to send 20714 a SENDME. Fixes bug 11246; bugfix on 0.2.4.10-alpha. 20715 20716 o Minor bugfixes (relay, threading): 20717 - Check return code on spawn_func() in cpuworker code, so that we 20718 don't think we've spawned a nonworking cpuworker and write junk to 20719 it forever. Fix related to bug 4345; bugfix on all released Tor 20720 versions. Found by "skruffy". 20721 - Use a pthread_attr to make sure that spawn_func() cannot return an 20722 error while at the same time launching a thread. Fix related to 20723 bug 4345; bugfix on all released Tor versions. Reported 20724 by "cypherpunks". 20725 20726 o Minor bugfixes (relays and bridges): 20727 - Avoid crashing on a malformed resolv.conf file when running a 20728 relay using Libevent 1. Fixes bug 8788; bugfix on 0.1.1.23. 20729 - Non-exit relays no longer launch mock DNS requests to check for 20730 DNS hijacking. This has been unnecessary since 0.2.1.7-alpha, when 20731 non-exit relays stopped servicing DNS requests. Fixes bug 965; 20732 bugfix on 0.2.1.7-alpha. Patch from Matt Pagan. 20733 - Bridges now report complete directory request statistics. Related 20734 to bug 5824; bugfix on 0.2.2.1-alpha. 20735 - Bridges now never collect statistics that were designed for 20736 relays. Fixes bug 5824; bugfix on 0.2.3.8-alpha. 20737 20738 o Minor bugfixes (testing): 20739 - Fix all valgrind warnings produced by the unit tests. There were 20740 over a thousand memory leak warnings previously, mostly produced 20741 by forgetting to free things in the unit test code. Fixes bug 20742 11618, bugfixes on many versions of Tor. 20743 20744 o Minor bugfixes (tor-fw-helper): 20745 - Give a correct log message when tor-fw-helper fails to launch. 20746 (Previously, we would say something like "tor-fw-helper sent us a 20747 string we could not parse".) Fixes bug 9781; bugfix 20748 on 0.2.4.2-alpha. 20749 20750 o Minor bugfixes (trivial memory leaks): 20751 - Fix a small memory leak when signing a directory object. Fixes bug 20752 11275; bugfix on 0.2.4.13-alpha. 20753 - Resolve some memory leaks found by coverity in the unit tests, on 20754 exit in tor-gencert, and on a failure to compute digests for our 20755 own keys when generating a v3 networkstatus vote. These leaks 20756 should never have affected anyone in practice. 20757 20758 o Code simplification and refactoring: 20759 - Remove some old fallback code designed to keep Tor clients working 20760 in a network with only two working relays. Elsewhere in the code we 20761 have long since stopped supporting such networks, so there wasn't 20762 much point in keeping it around. Addresses ticket 9926. 20763 - Reject 0-length EXTEND2 cells more explicitly. Fixes bug 10536; 20764 bugfix on 0.2.4.8-alpha. Reported by "cypherpunks". 20765 - Extract the common duplicated code for creating a subdirectory 20766 of the data directory and writing to a file in it. Fixes ticket 20767 4282; patch from Peter Retzlaff. 20768 - Since OpenSSL 0.9.7, the i2d_*() functions support allocating output 20769 buffer. Avoid calling twice: i2d_RSAPublicKey(), i2d_DHparams(), 20770 i2d_X509(), and i2d_PublicKey(). Resolves ticket 5170. 20771 - Add a set of accessor functions for the circuit timeout data 20772 structure. Fixes ticket 6153; patch from "piet". 20773 - Clean up exit paths from connection_listener_new(). Closes ticket 20774 8789. Patch from Arlo Breault. 20775 - Since we rely on OpenSSL 0.9.8 now, we can use EVP_PKEY_cmp() 20776 and drop our own custom pkey_eq() implementation. Fixes bug 9043. 20777 - Use a doubly-linked list to implement the global circuit list. 20778 Resolves ticket 9108. Patch from Marek Majkowski. 20779 - Remove contrib/id_to_fp.c since it wasn't used anywhere. 20780 - Remove constants and tests for PKCS1 padding; it's insecure and 20781 shouldn't be used for anything new. Fixes bug 8792; patch 20782 from Arlo Breault. 20783 - Remove instances of strcpy() from the unit tests. They weren't 20784 hurting anything, since they were only in the unit tests, but it's 20785 embarrassing to have strcpy() in the code at all, and some analysis 20786 tools don't like it. Fixes bug 8790; bugfix on 0.2.3.6-alpha and 20787 0.2.3.8-alpha. Patch from Arlo Breault. 20788 - Remove is_internal_IP() function. Resolves ticket 4645. 20789 - Remove unused function circuit_dump_by_chan from circuitlist.c. 20790 Closes issue 9107; patch from "marek". 20791 - Change our use of the ENUM_BF macro to avoid declarations that 20792 confuse Doxygen. 20793 - Get rid of router->address, since in all cases it was just the 20794 string representation of router->addr. Resolves ticket 5528. 20795 20796 o Documentation: 20797 - Adjust the URLs in the README to refer to the new locations of 20798 several documents on the website. Fixes bug 12830. Patch from 20799 Matt Pagan. 20800 - Document 'reject6' and 'accept6' ExitPolicy entries. Resolves 20801 ticket 12878. 20802 - Update manpage to describe some of the files you can expect to 20803 find in Tor's DataDirectory. Addresses ticket 9839. 20804 - Clean up several option names in the manpage to match their real 20805 names, add the missing documentation for a couple of testing and 20806 directory authority options, remove the documentation for a 20807 V2-directory fetching option that no longer exists. Resolves 20808 ticket 11634. 20809 - Correct the documentation so that it lists the correct directory 20810 for the stats files. (They are in a subdirectory called "stats", 20811 not "status".) 20812 - In the manpage, move more authority-only options into the 20813 directory authority section so that operators of regular directory 20814 caches don't get confused. 20815 - Fix the layout of the SOCKSPort flags in the manpage. Fixes bug 20816 11061; bugfix on 0.2.4.7-alpha. 20817 - Resolve warnings from Doxygen. 20818 - Document in the manpage that "KBytes" may also be written as 20819 "kilobytes" or "KB", that "Kbits" may also be written as 20820 "kilobits", and so forth. Closes ticket 9222. 20821 - Document that the ClientOnly config option overrides ORPort. 20822 Our old explanation made ClientOnly sound as though it did 20823 nothing at all. Resolves bug 9059. 20824 - Explain that SocksPolicy, DirPolicy, and similar options don't 20825 take port arguments. Fixes the other part of ticket 11108. 20826 - Fix a comment about the rend_server_descriptor_t.protocols field 20827 to more accurately describe its range. Also, make that field 20828 unsigned, to more accurately reflect its usage. Fixes bug 9099; 20829 bugfix on 0.2.1.5-alpha. 20830 - Fix the manpage's description of HiddenServiceAuthorizeClient: 20831 the maximum client name length is 16, not 19. Fixes bug 11118; 20832 bugfix on 0.2.1.6-alpha. 20833 20834 o Package cleanup: 20835 - The contrib directory has been sorted and tidied. Before, it was 20836 an unsorted dumping ground for useful and not-so-useful things. 20837 Now, it is divided based on functionality, and the items which 20838 seemed to be nonfunctional or useless have been removed. Resolves 20839 ticket 8966; based on patches from "rl1987". 20840 20841 o Removed code and features: 20842 - Clients now reject any directory authority certificates lacking 20843 a dir-key-crosscert element. These have been included since 20844 0.2.1.9-alpha, so there's no real reason for them to be optional 20845 any longer. Completes proposal 157. Resolves ticket 10162. 20846 - Remove all code that existed to support the v2 directory system, 20847 since there are no longer any v2 directory authorities. Resolves 20848 ticket 10758. 20849 - Remove the HSAuthoritativeDir and AlternateHSAuthority torrc 20850 options, which were used for designating authorities as "Hidden 20851 service authorities". There has been no use of hidden service 20852 authorities since 0.2.2.1-alpha, when we stopped uploading or 20853 downloading v0 hidden service descriptors. Fixes bug 10881; also 20854 part of a fix for bug 10841. 20855 - Remove /tor/dbg-stability.txt URL that was meant to help debug WFU 20856 and MTBF calculations, but that nobody was using. Fixes bug 11742. 20857 - The TunnelDirConns and PreferTunnelledDirConns options no longer 20858 exist; tunneled directory connections have been available since 20859 0.1.2.5-alpha, and turning them off is not a good idea. This is a 20860 brute-force fix for 10849, where "TunnelDirConns 0" would break 20861 hidden services. 20862 - Remove all code for the long unused v1 directory protocol. 20863 Resolves ticket 11070. 20864 - Remove all remaining code related to version-0 hidden service 20865 descriptors: they have not been in use since 0.2.2.1-alpha. Fixes 20866 the rest of bug 10841. 20867 - Remove migration code from when we renamed the "cached-routers" 20868 file to "cached-descriptors" back in 0.2.0.8-alpha. This 20869 incidentally resolves ticket 6502 by cleaning up the related code 20870 a bit. Patch from Akshay Hebbar. 20871 20872 o Test infrastructure: 20873 - Tor now builds each source file in two modes: a mode that avoids 20874 exposing identifiers needlessly, and another mode that exposes 20875 more identifiers for testing. This lets the compiler do better at 20876 optimizing the production code, while enabling us to take more 20877 radical measures to let the unit tests test things. 20878 - The production builds no longer include functions used only in 20879 the unit tests; all functions exposed from a module only for 20880 unit-testing are now static in production builds. 20881 - Add an --enable-coverage configuration option to make the unit 20882 tests (and a new src/or/tor-cov target) to build with gcov test 20883 coverage support. 20884 - Update to the latest version of tinytest. 20885 - Improve the tinytest implementation of string operation tests so 20886 that comparisons with NULL strings no longer crash the tests; they 20887 now just fail, normally. Fixes bug 9004; bugfix on 0.2.2.4-alpha. 20888 - New macros in test.h to simplify writing mock-functions for unit 20889 tests. Part of ticket 11507. Patch from Dana Koch. 20890 - We now have rudimentary function mocking support that our unit 20891 tests can use to test functions in isolation. Function mocking 20892 lets the tests temporarily replace a function's dependencies with 20893 stub functions, so that the tests can check the function without 20894 invoking the other functions it calls. 20895 20896 o Testing: 20897 - Complete tests for the status.c module. Resolves ticket 11507. 20898 Patch from Dana Koch. 20899 - Add more unit tests for the <circid,channel>->circuit map, and 20900 the destroy-cell-tracking code to fix bug 7912. 20901 - Unit tests for failing cases of the TAP onion handshake. 20902 - More unit tests for address-manipulation functions. 20903 20904 o Distribution (systemd): 20905 - Include a tor.service file in contrib/dist for use with systemd. 20906 Some distributions will be able to use this file unmodified; 20907 others will need to tweak it, or write their own. Patch from Jamie 20908 Nguyen; resolves ticket 8368. 20909 - Verify configuration file via ExecStartPre in the systemd unit 20910 file. Patch from intrigeri; resolves ticket 12730. 20911 - Explicitly disable RunAsDaemon in the systemd unit file. Our 20912 current systemd unit uses "Type = simple", so systemd does not 20913 expect tor to fork. If the user has "RunAsDaemon 1" in their 20914 torrc, then things won't work as expected. This is e.g. the case 20915 on Debian (and derivatives), since there we pass "--defaults-torrc 20916 /usr/share/tor/tor-service-defaults-torrc" (that contains 20917 "RunAsDaemon 1") by default. Patch by intrigeri; resolves 20918 ticket 12731. 20919 20920 20921 Changes in version 0.2.4.25 - 2014-10-20 20922 Tor 0.2.4.25 disables SSL3 in response to the recent "POODLE" attack 20923 (even though POODLE does not affect Tor). It also works around a crash 20924 bug caused by some operating systems' response to the "POODLE" attack 20925 (which does affect Tor). 20926 20927 o Major security fixes (also in 0.2.5.9-rc): 20928 - Disable support for SSLv3. All versions of OpenSSL in use with Tor 20929 today support TLS 1.0 or later, so we can safely turn off support 20930 for this old (and insecure) protocol. Fixes bug 13426. 20931 20932 o Major bugfixes (openssl bug workaround, also in 0.2.5.9-rc): 20933 - Avoid crashing when using OpenSSL version 0.9.8zc, 1.0.0o, or 20934 1.0.1j, built with the 'no-ssl3' configuration option. Fixes bug 20935 13471. This is a workaround for an OpenSSL bug. 20936 20937 20938 Changes in version 0.2.4.24 - 2014-09-22 20939 Tor 0.2.4.24 fixes a bug that affects consistency and speed when 20940 connecting to hidden services, and it updates the location of one of 20941 the directory authorities. 20942 20943 o Major bugfixes: 20944 - Clients now send the correct address for their chosen rendezvous 20945 point when trying to access a hidden service. They used to send 20946 the wrong address, which would still work some of the time because 20947 they also sent the identity digest of the rendezvous point, and if 20948 the hidden service happened to try connecting to the rendezvous 20949 point from a relay that already had a connection open to it, 20950 the relay would reuse that connection. Now connections to hidden 20951 services should be more robust and faster. Also, this bug meant 20952 that clients were leaking to the hidden service whether they were 20953 on a little-endian (common) or big-endian (rare) system, which for 20954 some users might have reduced their anonymity. Fixes bug 13151; 20955 bugfix on 0.2.1.5-alpha. 20956 20957 o Directory authority changes: 20958 - Change IP address for gabelmoo (v3 directory authority). 20959 20960 o Minor features (geoip): 20961 - Update geoip and geoip6 to the August 7 2014 Maxmind GeoLite2 20962 Country database. 20963 20964 20965 Changes in version 0.2.4.23 - 2014-07-28 20966 Tor 0.2.4.23 brings us a big step closer to slowing down the risk from 20967 guard rotation, and also backports several important fixes from the 20968 Tor 0.2.5 alpha release series. 20969 20970 o Major features: 20971 - Clients now look at the "usecreatefast" consensus parameter to 20972 decide whether to use CREATE_FAST or CREATE cells for the first hop 20973 of their circuit. This approach can improve security on connections 20974 where Tor's circuit handshake is stronger than the available TLS 20975 connection security levels, but the tradeoff is more computational 20976 load on guard relays. Implements proposal 221. Resolves ticket 9386. 20977 - Make the number of entry guards configurable via a new 20978 NumEntryGuards consensus parameter, and the number of directory 20979 guards configurable via a new NumDirectoryGuards consensus 20980 parameter. Implements ticket 12688. 20981 20982 o Major bugfixes: 20983 - Fix a bug in the bounds-checking in the 32-bit curve25519-donna 20984 implementation that caused incorrect results on 32-bit 20985 implementations when certain malformed inputs were used along with 20986 a small class of private ntor keys. This bug does not currently 20987 appear to allow an attacker to learn private keys or impersonate a 20988 Tor server, but it could provide a means to distinguish 32-bit Tor 20989 implementations from 64-bit Tor implementations. Fixes bug 12694; 20990 bugfix on 0.2.4.8-alpha. Bug found by Robert Ransom; fix from 20991 Adam Langley. 20992 20993 o Minor bugfixes: 20994 - Warn and drop the circuit if we receive an inbound 'relay early' 20995 cell. Those used to be normal to receive on hidden service circuits 20996 due to bug 1038, but the buggy Tor versions are long gone from 20997 the network so we can afford to resume watching for them. Resolves 20998 the rest of bug 1038; bugfix on 0.2.1.19. 20999 - Correct a confusing error message when trying to extend a circuit 21000 via the control protocol but we don't know a descriptor or 21001 microdescriptor for one of the specified relays. Fixes bug 12718; 21002 bugfix on 0.2.3.1-alpha. 21003 - Avoid an illegal read from stack when initializing the TLS 21004 module using a version of OpenSSL without all of the ciphers 21005 used by the v2 link handshake. Fixes bug 12227; bugfix on 21006 0.2.4.8-alpha. Found by "starlight". 21007 21008 o Minor features: 21009 - Update geoip and geoip6 to the July 10 2014 Maxmind GeoLite2 21010 Country database. 21011 21012 21013 Changes in version 0.2.4.22 - 2014-05-16 21014 Tor 0.2.4.22 backports numerous high-priority fixes from the Tor 0.2.5 21015 alpha release series. These include blocking all authority signing 21016 keys that may have been affected by the OpenSSL "heartbleed" bug, 21017 choosing a far more secure set of TLS ciphersuites by default, closing 21018 a couple of memory leaks that could be used to run a target relay out 21019 of RAM, and several others. 21020 21021 o Major features (security, backport from 0.2.5.4-alpha): 21022 - Block authority signing keys that were used on authorities 21023 vulnerable to the "heartbleed" bug in OpenSSL (CVE-2014-0160). (We 21024 don't have any evidence that these keys _were_ compromised; we're 21025 doing this to be prudent.) Resolves ticket 11464. 21026 21027 o Major bugfixes (security, OOM): 21028 - Fix a memory leak that could occur if a microdescriptor parse 21029 fails during the tokenizing step. This bug could enable a memory 21030 exhaustion attack by directory servers. Fixes bug 11649; bugfix 21031 on 0.2.2.6-alpha. 21032 21033 o Major bugfixes (TLS cipher selection, backport from 0.2.5.4-alpha): 21034 - The relay ciphersuite list is now generated automatically based on 21035 uniform criteria, and includes all OpenSSL ciphersuites with 21036 acceptable strength and forward secrecy. Previously, we had left 21037 some perfectly fine ciphersuites unsupported due to omission or 21038 typo. Resolves bugs 11513, 11492, 11498, 11499. Bugs reported by 21039 'cypherpunks'. Bugfix on 0.2.4.8-alpha. 21040 - Relays now trust themselves to have a better view than clients of 21041 which TLS ciphersuites are better than others. (Thanks to bug 21042 11513, the relay list is now well-considered, whereas the client 21043 list has been chosen mainly for anti-fingerprinting purposes.) 21044 Relays prefer: AES over 3DES; then ECDHE over DHE; then GCM over 21045 CBC; then SHA384 over SHA256 over SHA1; and last, AES256 over 21046 AES128. Resolves ticket 11528. 21047 - Clients now try to advertise the same list of ciphersuites as 21048 Firefox 28. This change enables selection of (fast) GCM 21049 ciphersuites, disables some strange old ciphers, and stops 21050 advertising the ECDH (not to be confused with ECDHE) ciphersuites. 21051 Resolves ticket 11438. 21052 21053 o Minor bugfixes (configuration, security): 21054 - When running a hidden service, do not allow TunneledDirConns 0: 21055 trying to set that option together with a hidden service would 21056 otherwise prevent the hidden service from running, and also make 21057 it publish its descriptors directly over HTTP. Fixes bug 10849; 21058 bugfix on 0.2.1.1-alpha. 21059 21060 o Minor bugfixes (controller, backport from 0.2.5.4-alpha): 21061 - Avoid sending a garbage value to the controller when a circuit is 21062 cannibalized. Fixes bug 11519; bugfix on 0.2.3.11-alpha. 21063 21064 o Minor bugfixes (exit relay, backport from 0.2.5.4-alpha): 21065 - Stop leaking memory when we successfully resolve a PTR record. 21066 Fixes bug 11437; bugfix on 0.2.4.7-alpha. 21067 21068 o Minor bugfixes (bridge client, backport from 0.2.5.4-alpha): 21069 - Avoid 60-second delays in the bootstrapping process when Tor is 21070 launching for a second time while using bridges. Fixes bug 9229; 21071 bugfix on 0.2.0.3-alpha. 21072 21073 o Minor bugfixes (relays and bridges, backport from 0.2.5.4-alpha): 21074 - Give the correct URL in the warning message when trying to run a 21075 relay on an ancient version of Windows. Fixes bug 9393. 21076 21077 o Minor bugfixes (compilation): 21078 - Fix a compilation error when compiling with --disable-curve25519. 21079 Fixes bug 9700; bugfix on 0.2.4.17-rc. 21080 21081 o Minor bugfixes: 21082 - Downgrade the warning severity for the the "md was still 21083 referenced 1 node(s)" warning. Tor 0.2.5.4-alpha has better code 21084 for trying to diagnose this bug, and the current warning in 21085 earlier versions of tor achieves nothing useful. Addresses warning 21086 from bug 7164. 21087 21088 o Minor features (log verbosity, backport from 0.2.5.4-alpha): 21089 - When we run out of usable circuit IDs on a channel, log only one 21090 warning for the whole channel, and describe how many circuits 21091 there were on the channel. Fixes part of ticket 11553. 21092 21093 o Minor features (security, backport from 0.2.5.4-alpha): 21094 - Decrease the lower limit of MaxMemInCellQueues to 256 MBytes (but 21095 leave the default at 8GBytes), to better support Raspberry Pi 21096 users. Fixes bug 9686; bugfix on 0.2.4.14-alpha. 21097 21098 o Documentation (backport from 0.2.5.4-alpha): 21099 - Correctly document that we search for a system torrc file before 21100 looking in ~/.torrc. Fixes documentation side of 9213; bugfix on 21101 0.2.3.18-rc. 21102 21103 21104 Changes in version 0.2.4.21 - 2014-02-28 21105 Tor 0.2.4.21 further improves security against potential adversaries who 21106 find breaking 1024-bit crypto doable, and backports several stability 21107 and robustness patches from the 0.2.5 branch. 21108 21109 o Major features (client security): 21110 - When we choose a path for a 3-hop circuit, make sure it contains 21111 at least one relay that supports the NTor circuit extension 21112 handshake. Otherwise, there is a chance that we're building 21113 a circuit that's worth attacking by an adversary who finds 21114 breaking 1024-bit crypto doable, and that chance changes the game 21115 theory. Implements ticket 9777. 21116 21117 o Major bugfixes: 21118 - Do not treat streams that fail with reason 21119 END_STREAM_REASON_INTERNAL as indicating a definite circuit failure, 21120 since it could also indicate an ENETUNREACH connection error. Fixes 21121 part of bug 10777; bugfix on 0.2.4.8-alpha. 21122 21123 o Code simplification and refactoring: 21124 - Remove data structures which were introduced to implement the 21125 CellStatistics option: they are now redundant with the new timestamp 21126 field in the regular packed_cell_t data structure, which we did 21127 in 0.2.4.18-rc in order to resolve bug 9093. Resolves ticket 10870. 21128 21129 o Minor features: 21130 - Always clear OpenSSL bignums before freeing them -- even bignums 21131 that don't contain secrets. Resolves ticket 10793. Patch by 21132 Florent Daigniere. 21133 - Build without warnings under clang 3.4. (We have some macros that 21134 define static functions only some of which will get used later in 21135 the module. Starting with clang 3.4, these give a warning unless the 21136 unused attribute is set on them.) Resolves ticket 10904. 21137 - Update geoip and geoip6 files to the February 7 2014 Maxmind 21138 GeoLite2 Country database. 21139 21140 o Minor bugfixes: 21141 - Set the listen() backlog limit to the largest actually supported 21142 on the system, not to the value in a header file. Fixes bug 9716; 21143 bugfix on every released Tor. 21144 - Treat ENETUNREACH, EACCES, and EPERM connection failures at an 21145 exit node as a NOROUTE error, not an INTERNAL error, since they 21146 can apparently happen when trying to connect to the wrong sort 21147 of netblocks. Fixes part of bug 10777; bugfix on 0.1.0.1-rc. 21148 - Fix build warnings about missing "a2x" comment when building the 21149 manpages from scratch on OpenBSD; OpenBSD calls it "a2x.py". 21150 Fixes bug 10929; bugfix on 0.2.2.9-alpha. Patch from Dana Koch. 21151 - Avoid a segfault on SIGUSR1, where we had freed a connection but did 21152 not entirely remove it from the connection lists. Fixes bug 9602; 21153 bugfix on 0.2.4.4-alpha. 21154 - Fix a segmentation fault in our benchmark code when running with 21155 Fedora's OpenSSL package, or any other OpenSSL that provides 21156 ECDH but not P224. Fixes bug 10835; bugfix on 0.2.4.8-alpha. 21157 - Turn "circuit handshake stats since last time" log messages into a 21158 heartbeat message. Fixes bug 10485; bugfix on 0.2.4.17-rc. 21159 21160 o Documentation fixes: 21161 - Document that all but one DirPort entry must have the NoAdvertise 21162 flag set. Fixes bug 10470; bugfix on 0.2.3.3-alpha / 0.2.3.16-alpha. 21163 21164 21165 Changes in version 0.2.4.20 - 2013-12-22 21166 Tor 0.2.4.20 fixes potentially poor random number generation for users 21167 who 1) use OpenSSL 1.0.0 or later, 2) set "HardwareAccel 1" in their 21168 torrc file, 3) have "Sandy Bridge" or "Ivy Bridge" Intel processors, 21169 and 4) have no state file in their DataDirectory (as would happen on 21170 first start). Users who generated relay or hidden service identity 21171 keys in such a situation should discard them and generate new ones. 21172 21173 This release also fixes a logic error that caused Tor clients to build 21174 many more preemptive circuits than they actually need. 21175 21176 o Major bugfixes: 21177 - Do not allow OpenSSL engines to replace the PRNG, even when 21178 HardwareAccel is set. The only default builtin PRNG engine uses 21179 the Intel RDRAND instruction to replace the entire PRNG, and 21180 ignores all attempts to seed it with more entropy. That's 21181 cryptographically stupid: the right response to a new alleged 21182 entropy source is never to discard all previously used entropy 21183 sources. Fixes bug 10402; works around behavior introduced in 21184 OpenSSL 1.0.0. Diagnosis and investigation thanks to "coderman" 21185 and "rl1987". 21186 - Fix assertion failure when AutomapHostsOnResolve yields an IPv6 21187 address. Fixes bug 10465; bugfix on 0.2.4.7-alpha. 21188 - Avoid launching spurious extra circuits when a stream is pending. 21189 This fixes a bug where any circuit that _wasn't_ unusable for new 21190 streams would be treated as if it were, causing extra circuits to 21191 be launched. Fixes bug 10456; bugfix on 0.2.4.12-alpha. 21192 21193 o Minor bugfixes: 21194 - Avoid a crash bug when starting with a corrupted microdescriptor 21195 cache file. Fixes bug 10406; bugfix on 0.2.2.6-alpha. 21196 - If we fail to dump a previously cached microdescriptor to disk, avoid 21197 freeing duplicate data later on. Fixes bug 10423; bugfix on 21198 0.2.4.13-alpha. Spotted by "bobnomnom". 21199 21200 21201 Changes in version 0.2.4.19 - 2013-12-11 21202 The Tor 0.2.4 release series is dedicated to the memory of Aaron Swartz 21203 (1986-2013). Aaron worked on diverse projects including helping to guide 21204 Creative Commons, playing a key role in stopping SOPA/PIPA, bringing 21205 transparency to the U.S government's PACER documents, and contributing 21206 design and development for Tor and Tor2Web. Aaron was one of the latest 21207 martyrs in our collective fight for civil liberties and human rights, 21208 and his death is all the more painful because he was one of us. 21209 21210 Tor 0.2.4.19, the first stable release in the 0.2.4 branch, features 21211 a new circuit handshake and link encryption that use ECC to provide 21212 better security and efficiency; makes relays better manage circuit 21213 creation requests; uses "directory guards" to reduce client enumeration 21214 risks; makes bridges collect and report statistics about the pluggable 21215 transports they support; cleans up and improves our geoip database; 21216 gets much closer to IPv6 support for clients, bridges, and relays; makes 21217 directory authorities use measured bandwidths rather than advertised 21218 ones when computing flags and thresholds; disables client-side DNS 21219 caching to reduce tracking risks; and fixes a big bug in bridge 21220 reachability testing. This release introduces two new design 21221 abstractions in the code: a new "channel" abstraction between circuits 21222 and or_connections to allow for implementing alternate relay-to-relay 21223 transports, and a new "circuitmux" abstraction storing the queue of 21224 circuits for a channel. The release also includes many stability, 21225 security, and privacy fixes. 21226 21227 o Major features (new circuit handshake): 21228 - Tor now supports a new circuit extension handshake designed by Ian 21229 Goldberg, Douglas Stebila, and Berkant Ustaoglu. Our original 21230 circuit extension handshake, later called "TAP", was a bit slow 21231 (especially on the relay side), had a fragile security proof, and 21232 used weaker keys than we'd now prefer. The new circuit handshake 21233 uses Dan Bernstein's "curve25519" elliptic-curve Diffie-Hellman 21234 function, making it significantly more secure than the older 21235 handshake, and significantly faster. Tor can use one of two built-in 21236 pure-C curve25519-donna implementations by Adam Langley, or it 21237 can link against the "nacl" library for a tuned version if present. 21238 21239 The built-in version is very fast for 64-bit systems when building 21240 with GCC. The built-in 32-bit version is still faster than the 21241 old TAP protocol, but using libnacl is better on most such hosts. 21242 21243 Implements proposal 216; closes ticket 7202. 21244 21245 o Major features (better link encryption): 21246 - Relays can now enable the ECDHE TLS ciphersuites when available 21247 and appropriate. These ciphersuites let us negotiate forward-secure 21248 TLS secret keys more safely and more efficiently than with our 21249 previous use of Diffie-Hellman modulo a 1024-bit prime. By default, 21250 public relays prefer the (faster) P224 group, and bridges prefer 21251 the (more common) P256 group; you can override this with the 21252 TLSECGroup option. 21253 21254 This feature requires clients running 0.2.3.17-beta or later, 21255 and requires both sides to be running OpenSSL 1.0.0 or later 21256 with ECC support. OpenSSL 1.0.1, with the compile-time option 21257 "enable-ec_nistp_64_gcc_128", is highly recommended. 21258 21259 Implements the relay side of proposal 198; closes ticket 7200. 21260 21261 - Re-enable TLS 1.1 and 1.2 when built with OpenSSL 1.0.1e or later. 21262 Resolves ticket 6055. (OpenSSL before 1.0.1 didn't have TLS 1.1 or 21263 1.2, and OpenSSL from 1.0.1 through 1.0.1d had bugs that prevented 21264 renegotiation from working with TLS 1.1 or 1.2, so we had disabled 21265 them to solve bug 6033.) 21266 21267 o Major features (relay performance): 21268 - Instead of limiting the number of queued onionskins (aka circuit 21269 create requests) to a fixed, hard-to-configure number, we limit 21270 the size of the queue based on how many we expect to be able to 21271 process in a given amount of time. We estimate the time it will 21272 take to process an onionskin based on average processing time 21273 of previous onionskins. Closes ticket 7291. You'll never have to 21274 configure MaxOnionsPending again. 21275 - Relays process the new "NTor" circuit-level handshake requests 21276 with higher priority than the old "TAP" circuit-level handshake 21277 requests. We still process some TAP requests to not totally starve 21278 0.2.3 clients when NTor becomes popular. A new consensus parameter 21279 "NumNTorsPerTAP" lets us tune the balance later if we need to. 21280 Implements ticket 9574. 21281 21282 o Major features (client bootstrapping resilience): 21283 - Add a new "FallbackDir" torrc option to use when we can't use 21284 a directory mirror from the consensus (either because we lack a 21285 consensus, or because they're all down). Currently, all authorities 21286 are fallbacks by default, and there are no other default fallbacks, 21287 but that will change. This option will allow us to give clients a 21288 longer list of servers to try to get a consensus from when first 21289 connecting to the Tor network, and thereby reduce load on the 21290 directory authorities. Implements proposal 206, "Preconfigured 21291 directory sources for bootstrapping". We also removed the old 21292 "FallbackNetworkstatus" option, since we never got it working well 21293 enough to use it. Closes bug 572. 21294 - If we have no circuits open, use a relaxed timeout (the 21295 95th-percentile cutoff) until a circuit succeeds. This heuristic 21296 should allow Tor to succeed at building circuits even when the 21297 network connection drastically changes. Should help with bug 3443. 21298 21299 o Major features (use of guards): 21300 - Support directory guards (proposal 207): when possible, clients now 21301 use their entry guards for non-anonymous directory requests. This 21302 can help prevent client enumeration. Note that this behavior only 21303 works when we have a usable consensus directory, and when options 21304 about what to download are more or less standard. In the future we 21305 should re-bootstrap from our guards, rather than re-bootstrapping 21306 from the preconfigured list of directory sources that ships with 21307 Tor. Resolves ticket 6526. 21308 - Raise the default time that a client keeps an entry guard from 21309 "1-2 months" to "2-3 months", as suggested by Tariq Elahi's WPES 21310 2012 paper. (We would make it even longer, but we need better client 21311 load balancing first.) Also, make the guard lifetime controllable 21312 via a new GuardLifetime torrc option and a GuardLifetime consensus 21313 parameter. Start of a fix for bug 8240; bugfix on 0.1.1.11-alpha. 21314 21315 o Major features (bridges with pluggable transports): 21316 - Bridges now report the pluggable transports they support to the 21317 bridge authority, so it can pass the supported transports on to 21318 bridgedb and/or eventually do reachability testing. Implements 21319 ticket 3589. 21320 - Automatically forward the TCP ports of pluggable transport 21321 proxies using tor-fw-helper if PortForwarding is enabled. Implements 21322 ticket 4567. 21323 21324 o Major features (geoip database): 21325 - Maxmind began labelling Tor relays as being in country "A1", 21326 which breaks by-country node selection inside Tor. Now we use a 21327 script to replace "A1" ("Anonymous Proxy") entries in our geoip 21328 file with real country codes. This script fixes about 90% of "A1" 21329 entries automatically and uses manual country code assignments to 21330 fix the remaining 10%. See src/config/README.geoip for details. 21331 Fixes bug 6266. 21332 - Add GeoIP database for IPv6 addresses. The new config option 21333 is GeoIPv6File. 21334 - Update to the October 2 2013 Maxmind GeoLite Country database. 21335 21336 o Major features (IPv6): 21337 - Clients who set "ClientUseIPv6 1" may connect to entry nodes over 21338 IPv6. Set "ClientPreferIPv6ORPort 1" to make this even more likely 21339 to happen. Implements ticket 5535. 21340 - All kind of relays, not just bridges, can now advertise an IPv6 21341 OR port. Implements ticket 6362. 21342 - Relays can now exit to IPv6 addresses: make sure that you have IPv6 21343 connectivity, then set the IPv6Exit flag to 1. Also make sure your 21344 exit policy reads as you would like: the address * applies to all 21345 address families, whereas *4 is IPv4 address only, and *6 is IPv6 21346 addresses only. On the client side, you'll need to wait for enough 21347 exits to support IPv6, apply the "IPv6Traffic" flag to a SocksPort, 21348 and use Socks5. Closes ticket 5547, implements proposal 117 as 21349 revised in proposal 208. 21350 - Bridge authorities now accept IPv6 bridge addresses and include 21351 them in network status documents. Implements ticket 5534. 21352 - Directory authorities vote on IPv6 OR ports. Implements ticket 6363. 21353 21354 o Major features (directory authorities): 21355 - Directory authorities now prefer using measured bandwidths to 21356 advertised ones when computing flags and thresholds. Resolves 21357 ticket 8273. 21358 - Directory authorities that vote measured bandwidths about more 21359 than a threshold number of relays now treat relays with 21360 unmeasured bandwidths as having bandwidth 0 when computing their 21361 flags. Resolves ticket 8435. 21362 - Directory authorities now support a new consensus method (17) 21363 where they cap the published bandwidth of relays for which 21364 insufficient bandwidth measurements exist. Fixes part of bug 2286. 21365 - Directory authorities that set "DisableV2DirectoryInfo_ 1" no longer 21366 serve any v2 directory information. Now we can test disabling the 21367 old deprecated v2 directory format, and see whether doing so has 21368 any effect on network load. Begins to fix bug 6783. 21369 21370 o Major features (build and portability): 21371 - Switch to a nonrecursive Makefile structure. Now instead of each 21372 Makefile.am invoking other Makefile.am's, there is a master 21373 Makefile.am that includes the others. This change makes our build 21374 process slightly more maintainable, and improves parallelism for 21375 building with make -j. Original patch by Stewart Smith; various 21376 fixes by Jim Meyering. 21377 - Where available, we now use automake's "silent" make rules by 21378 default, so that warnings are easier to spot. You can get the old 21379 behavior with "make V=1". Patch by Stewart Smith for ticket 6522. 21380 - Resume building correctly with MSVC and Makefile.nmake. This patch 21381 resolves numerous bugs and fixes reported by ultramage, including 21382 7305, 7308, 7309, 7310, 7312, 7313, 7315, 7316, and 7669. 21383 21384 o Security features: 21385 - Switch to a completely time-invariant approach for picking nodes 21386 weighted by bandwidth. Our old approach would run through the 21387 part of the loop after it had made its choice slightly slower 21388 than it ran through the part of the loop before it had made its 21389 choice. Addresses ticket 6538. 21390 - Disable the use of Guard nodes when in Tor2WebMode. Guard usage 21391 by tor2web clients allows hidden services to identify tor2web 21392 clients through their repeated selection of the same rendezvous 21393 and introduction point circuit endpoints (their guards). Resolves 21394 ticket 6888. 21395 21396 o Major bugfixes (relay denial of service): 21397 - When we have too much memory queued in circuits (according to a new 21398 MaxMemInCellQueues option), close the circuits that have the oldest 21399 queued cells, on the theory that those are most responsible for 21400 us running low on memory. This prevents us from running out of 21401 memory as a relay if circuits fill up faster than they can be 21402 drained. Fixes bugs 9063 and 9093; bugfix on the 54th commit of 21403 Tor. This bug is a further fix beyond bug 6252, whose fix was 21404 merged into 0.2.3.21-rc. 21405 - Reject bogus create and relay cells with 0 circuit ID or 0 stream 21406 ID: these could be used to create unexpected streams and circuits 21407 which would count as "present" to some parts of Tor but "absent" 21408 to others, leading to zombie circuits and streams or to a bandwidth 21409 denial-of-service. Fixes bug 7889; bugfix on every released version 21410 of Tor. Reported by "oftc_must_be_destroyed". 21411 - Avoid a bug where our response to TLS renegotiation under certain 21412 network conditions could lead to a busy-loop, with 100% CPU 21413 consumption. Fixes bug 5650; bugfix on 0.2.0.16-alpha. 21414 21415 o Major bugfixes (asserts, crashes, leaks): 21416 - Prevent the get_freelists() function from running off the end of 21417 the list of freelists if it somehow gets an unrecognized 21418 allocation. Fixes bug 8844; bugfix on 0.2.0.16-alpha. Reported by 21419 eugenis. 21420 - Avoid a memory leak where we would leak a consensus body when we 21421 find that a consensus which we couldn't previously verify due to 21422 missing certificates is now verifiable. Fixes bug 8719; bugfix 21423 on 0.2.0.10-alpha. 21424 - If we are unable to save a microdescriptor to the journal, do not 21425 drop it from memory and then reattempt downloading it. Fixes bug 21426 9645; bugfix on 0.2.2.6-alpha. 21427 - Fix an assertion failure that would occur when disabling the 21428 ORPort setting on a running Tor process while accounting was 21429 enabled. Fixes bug 6979; bugfix on 0.2.2.18-alpha. 21430 - Avoid an assertion failure on OpenBSD (and perhaps other BSDs) 21431 when an exit connection with optimistic data succeeds immediately 21432 rather than returning EINPROGRESS. Fixes bug 9017; bugfix on 21433 0.2.3.1-alpha. 21434 - Fix a memory leak that would occur whenever a configuration 21435 option changed. Fixes bug 8718; bugfix on 0.2.3.3-alpha. 21436 21437 o Major bugfixes (relay rate limiting): 21438 - When a TLS write is partially successful but incomplete, remember 21439 that the flushed part has been flushed, and notice that bytes were 21440 actually written. Reported and fixed pseudonymously. Fixes bug 7708; 21441 bugfix on Tor 0.1.0.5-rc. 21442 - Raise the default BandwidthRate/BandwidthBurst values from 5MB/10MB 21443 to 1GB/1GB. The previous defaults were intended to be "basically 21444 infinite", but it turns out they're now limiting our 100mbit+ 21445 relays and bridges. Fixes bug 6605; bugfix on 0.2.0.10-alpha (the 21446 last time we raised it). 21447 - No longer stop reading or writing on cpuworker connections when 21448 our rate limiting buckets go empty. Now we should handle circuit 21449 handshake requests more promptly. Resolves bug 9731. 21450 21451 o Major bugfixes (client-side privacy): 21452 - When we mark a circuit as unusable for new circuits, have it 21453 continue to be unusable for new circuits even if MaxCircuitDirtiness 21454 is increased too much at the wrong time, or the system clock jumps 21455 backwards. Fixes bug 6174; bugfix on 0.0.2pre26. 21456 - If ClientDNSRejectInternalAddresses ("do not believe DNS queries 21457 which have resolved to internal addresses") is set, apply that 21458 rule to IPv6 as well. Fixes bug 8475; bugfix on 0.2.0.7-alpha. 21459 - When an exit relay rejects a stream with reason "exit policy", but 21460 we only know an exit policy summary (e.g. from the microdesc 21461 consensus) for it, do not mark the relay as useless for all exiting. 21462 Instead, mark just the circuit as unsuitable for that particular 21463 address. Fixes part of bug 7582; bugfix on 0.2.3.2-alpha. 21464 21465 o Major bugfixes (stream isolation): 21466 - Allow applications to get proper stream isolation with 21467 IsolateSOCKSAuth. Many SOCKS5 clients that want to offer 21468 username/password authentication also offer "no authentication". Tor 21469 had previously preferred "no authentication", so the applications 21470 never actually sent Tor their auth details. Now Tor selects 21471 username/password authentication if it's offered. You can disable 21472 this behavior on a per-SOCKSPort basis via PreferSOCKSNoAuth. Fixes 21473 bug 8117; bugfix on 0.2.3.3-alpha. 21474 - Follow the socks5 protocol when offering username/password 21475 authentication. The fix for bug 8117 exposed this bug, and it 21476 turns out real-world applications like Pidgin do care. Bugfix on 21477 0.2.3.2-alpha; fixes bug 8879. 21478 21479 o Major bugfixes (client circuit building): 21480 - Alter circuit build timeout measurement to start at the point 21481 where we begin the CREATE/CREATE_FAST step (as opposed to circuit 21482 initialization). This should make our timeout measurements more 21483 uniform. Previously, we were sometimes including ORconn setup time 21484 in our circuit build time measurements. Should resolve bug 3443. 21485 - If the circuit build timeout logic is disabled (via the consensus, 21486 or because we are an authority), then don't build testing circuits. 21487 Fixes bug 9657; bugfix on 0.2.2.14-alpha. 21488 21489 o Major bugfixes (client-side DNS): 21490 - Turn off the client-side DNS cache by default. Updating and using 21491 the DNS cache is now configurable on a per-client-port 21492 level. SOCKSPort, DNSPort, etc lines may now contain 21493 {No,}Cache{IPv4,IPv6,}DNS lines to indicate that we shouldn't 21494 cache these types of DNS answers when we receive them from an 21495 exit node in response to an application request on this port, and 21496 {No,}UseCached{IPv4,IPv6,DNS} lines to indicate that if we have 21497 cached DNS answers of these types, we shouldn't use them. It's 21498 potentially risky to use cached DNS answers at the client, since 21499 doing so can indicate to one exit what answers we've gotten 21500 for DNS lookups in the past. With IPv6, this becomes especially 21501 problematic. Using cached DNS answers for requests on the same 21502 circuit would present less linkability risk, since all traffic 21503 on a circuit is already linkable, but it would also provide 21504 little performance benefit: the exit node caches DNS replies 21505 too. Implements a simplified version of Proposal 205. Implements 21506 ticket 7570. 21507 21508 o Major bugfixes (hidden service privacy): 21509 - Limit hidden service descriptors to at most ten introduction 21510 points, to slow one kind of guard enumeration. Fixes bug 9002; 21511 bugfix on 0.1.1.11-alpha. 21512 21513 o Major bugfixes (directory fetching): 21514 - If the time to download the next old-style networkstatus is in 21515 the future, do not decline to consider whether to download the 21516 next microdescriptor networkstatus. Fixes bug 9564; bugfix on 21517 0.2.3.14-alpha. 21518 - We used to always request authority certificates by identity digest, 21519 meaning we'd get the newest one even when we wanted one with a 21520 different signing key. Then we would complain about being given 21521 a certificate we already had, and never get the one we really 21522 wanted. Now we use the "fp-sk/" resource as well as the "fp/" 21523 resource to request the one we want. Fixes bug 5595; bugfix on 21524 0.2.0.8-alpha. 21525 21526 o Major bugfixes (bridge reachability): 21527 - Bridges now send AUTH_CHALLENGE cells during their v3 handshakes; 21528 previously they did not, which prevented them from receiving 21529 successful connections from relays for self-test or bandwidth 21530 testing. Also, when a relay is extending a circuit to a bridge, 21531 it needs to send a NETINFO cell, even when the bridge hasn't sent 21532 an AUTH_CHALLENGE cell. Fixes bug 9546; bugfix on 0.2.3.6-alpha. 21533 21534 o Major bugfixes (control interface): 21535 - When receiving a new configuration file via the control port's 21536 LOADCONF command, do not treat the defaults file as absent. 21537 Fixes bug 9122; bugfix on 0.2.3.9-alpha. 21538 21539 o Major bugfixes (directory authorities): 21540 - Stop marking every relay as having been down for one hour every 21541 time we restart a directory authority. These artificial downtimes 21542 were messing with our Stable and Guard flag calculations. Fixes 21543 bug 8218 (introduced by the fix for 1035). Bugfix on 0.2.2.23-alpha. 21544 - When computing directory thresholds, ignore any rejected-as-sybil 21545 nodes during the computation so that they can't influence Fast, 21546 Guard, etc. (We should have done this for proposal 109.) Fixes 21547 bug 8146. 21548 - When marking a node as a likely sybil, reset its uptime metrics 21549 to zero, so that it cannot time towards getting marked as Guard, 21550 Stable, or HSDir. (We should have done this for proposal 109.) Fixes 21551 bug 8147. 21552 - Fix a bug in the voting algorithm that could yield incorrect results 21553 when a non-naming authority declared too many flags. Fixes bug 9200; 21554 bugfix on 0.2.0.3-alpha. 21555 21556 o Internal abstraction features: 21557 - Introduce new channel_t abstraction between circuits and 21558 or_connection_t to allow for implementing alternate OR-to-OR 21559 transports. A channel_t is an abstract object which can either be a 21560 cell-bearing channel, which is responsible for authenticating and 21561 handshaking with the remote OR and transmitting cells to and from 21562 it, or a listening channel, which spawns new cell-bearing channels 21563 at the request of remote ORs. Implements part of ticket 6465. 21564 - Make a channel_tls_t subclass of channel_t, adapting it to the 21565 existing or_connection_t code. The V2/V3 protocol handshaking 21566 code which formerly resided in command.c has been moved below the 21567 channel_t abstraction layer and may be found in channeltls.c now. 21568 Implements the rest of ticket 6465. 21569 - Introduce new circuitmux_t storing the queue of circuits for 21570 a channel; this encapsulates and abstracts the queue logic and 21571 circuit selection policy, and allows the latter to be overridden 21572 easily by switching out a policy object. The existing EWMA behavior 21573 is now implemented as a circuitmux_policy_t. Resolves ticket 6816. 21574 21575 o New build requirements: 21576 - Tor now requires OpenSSL 0.9.8 or later. OpenSSL 1.0.0 or later is 21577 strongly recommended. 21578 - Tor maintainers now require Automake version 1.9 or later to build 21579 Tor from the Git repository. (Automake is not required when building 21580 from a source distribution.) 21581 21582 o Minor features (protocol): 21583 - No longer include the "opt" prefix when generating routerinfos 21584 or v2 directories: it has been needless since Tor 0.1.2. Closes 21585 ticket 5124. 21586 - Reject EXTEND cells sent to nonexistent streams. According to the 21587 spec, an EXTEND cell sent to _any_ nonzero stream ID is invalid, but 21588 we were only checking for stream IDs that were currently in use. 21589 Found while hunting for more instances of bug 6271. Bugfix on 21590 0.0.2pre8, which introduced incremental circuit construction. 21591 - Tor relays and clients now support a better CREATE/EXTEND cell 21592 format, allowing the sender to specify multiple address, identity, 21593 and handshake types. Implements Robert Ransom's proposal 200; 21594 closes ticket 7199. 21595 - Reject as invalid most directory objects containing a NUL. 21596 Belt-and-suspender fix for bug 8037. 21597 21598 o Minor features (security): 21599 - Clear keys and key-derived material left on the stack in 21600 rendservice.c and rendclient.c. Check return value of 21601 crypto_pk_write_private_key_to_string() in rend_service_load_keys(). 21602 These fixes should make us more forward-secure against cold-boot 21603 attacks and the like. Fixes bug 2385. 21604 - Use our own weak RNG when we need a weak RNG. Windows's rand() and 21605 Irix's random() only return 15 bits; Solaris's random() returns more 21606 bits but its RAND_MAX says it only returns 15, and so on. Motivated 21607 by the fix for bug 7801; bugfix on 0.2.2.20-alpha. 21608 21609 o Minor features (control protocol): 21610 - Add a "GETINFO signal/names" control port command. Implements 21611 ticket 3842. 21612 - Provide default values for all options via "GETINFO config/defaults". 21613 Implements ticket 4971. 21614 - Allow an optional $ before the node identity digest in the 21615 controller command GETINFO ns/id/<identity>, for consistency with 21616 md/id/<identity> and desc/id/<identity>. Resolves ticket 7059. 21617 - Add CACHED keyword to ADDRMAP events in the control protocol 21618 to indicate whether a DNS result will be cached or not. Resolves 21619 ticket 8596. 21620 - Generate bootstrapping status update events correctly when fetching 21621 microdescriptors. Fixes bug 9927. 21622 21623 o Minor features (path selection): 21624 - When deciding whether we have enough descriptors to build circuits, 21625 instead of looking at raw relay counts, look at which fraction 21626 of (bandwidth-weighted) paths we're able to build. This approach 21627 keeps clients from building circuits if their paths are likely to 21628 stand out statistically. The default fraction of paths needed is 21629 taken from the consensus directory; you can override it with the 21630 new PathsNeededToBuildCircuits option. Fixes ticket 5956. 21631 - When any country code is listed in ExcludeNodes or ExcludeExitNodes, 21632 and we have GeoIP information, also exclude all nodes with unknown 21633 countries "??" and "A1". This behavior is controlled by the 21634 new GeoIPExcludeUnknown option: you can make such nodes always 21635 excluded with "GeoIPExcludeUnknown 1", and disable the feature 21636 with "GeoIPExcludeUnknown 0". Setting "GeoIPExcludeUnknown auto" 21637 gets you the default behavior. Implements feature 7706. 21638 21639 o Minor features (hidden services): 21640 - Improve circuit build timeout handling for hidden services. 21641 In particular: adjust build timeouts more accurately depending 21642 upon the number of hop-RTTs that a particular circuit type 21643 undergoes. Additionally, launch intro circuits in parallel 21644 if they timeout, and take the first one to reply as valid. 21645 - The Tor client now ignores sub-domain components of a .onion 21646 address. This change makes HTTP "virtual" hosting 21647 possible: http://foo.aaaaaaaaaaaaaaaa.onion/ and 21648 http://bar.aaaaaaaaaaaaaaaa.onion/ can be two different websites 21649 hosted on the same hidden service. Implements proposal 204. 21650 - Enable Tor to read configuration, state, and key information from 21651 a FIFO. Previously Tor would only read from files with a positive 21652 stat.st_size. Code from meejah; fixes bug 6044. 21653 21654 o Minor features (clients): 21655 - Teach bridge-using clients to avoid 0.2.2.x bridges when making 21656 microdescriptor-related dir requests, and only fall back to normal 21657 descriptors if none of their bridges can handle microdescriptors 21658 (as opposed to the fix in ticket 4013, which caused them to fall 21659 back to normal descriptors if *any* of their bridges preferred 21660 them). Resolves ticket 4994. 21661 - Tweak tor-fw-helper to accept an arbitrary amount of arbitrary 21662 TCP ports to forward. In the past it only accepted two ports: 21663 the ORPort and the DirPort. 21664 21665 o Minor features (protecting client timestamps): 21666 - Clients no longer send timestamps in their NETINFO cells. These were 21667 not used for anything, and they provided one small way for clients 21668 to be distinguished from each other as they moved from network to 21669 network or behind NAT. Implements part of proposal 222. 21670 - Clients now round timestamps in INTRODUCE cells down to the nearest 21671 10 minutes. If a new Support022HiddenServices option is set to 0, or 21672 if it's set to "auto" and the feature is disabled in the consensus, 21673 the timestamp is sent as 0 instead. Implements part of proposal 222. 21674 - Stop sending timestamps in AUTHENTICATE cells. This is not such 21675 a big deal from a security point of view, but it achieves no actual 21676 good purpose, and isn't needed. Implements part of proposal 222. 21677 - Reduce down accuracy of timestamps in hidden service descriptors. 21678 Implements part of proposal 222. 21679 21680 o Minor features (bridges): 21681 - Make bridge relays check once a minute for whether their IP 21682 address has changed, rather than only every 15 minutes. Resolves 21683 bugs 1913 and 1992. 21684 - Bridge statistics now count bridge clients connecting over IPv6: 21685 bridge statistics files now list "bridge-ip-versions" and 21686 extra-info documents list "geoip6-db-digest". The control protocol 21687 "CLIENTS_SEEN" and "ip-to-country" queries now support IPv6. Initial 21688 implementation by "shkoo", addressing ticket 5055. 21689 - Add a new torrc option "ServerTransportListenAddr" to let bridge 21690 operators select the address where their pluggable transports will 21691 listen for connections. Resolves ticket 7013. 21692 - Randomize the lifetime of our SSL link certificate, so censors can't 21693 use the static value for filtering Tor flows. Resolves ticket 8443; 21694 related to ticket 4014 which was included in 0.2.2.33. 21695 21696 o Minor features (relays): 21697 - Option OutboundBindAddress can be specified multiple times and 21698 accepts IPv6 addresses. Resolves ticket 6876. 21699 21700 o Minor features (IPv6, client side): 21701 - AutomapHostsOnResolve now supports IPv6 addresses. By default, we 21702 prefer to hand out virtual IPv6 addresses, since there are more of 21703 them and we can't run out. To override this behavior and make IPv4 21704 addresses preferred, set NoPreferIPv6Automap on whatever SOCKSPort 21705 or DNSPort you're using for resolving. Implements ticket 7571. 21706 - AutomapHostsOnResolve responses are now randomized, to avoid 21707 annoying situations where Tor is restarted and applications 21708 connect to the wrong addresses. 21709 - Never try more than 1000 times to pick a new virtual address when 21710 AutomapHostsOnResolve is set. That's good enough so long as we 21711 aren't close to handing out our entire virtual address space; 21712 if you're getting there, it's best to switch to IPv6 virtual 21713 addresses anyway. 21714 21715 o Minor features (IPv6, relay/authority side): 21716 - New config option "AuthDirHasIPv6Connectivity 1" that directory 21717 authorities should set if they have IPv6 connectivity and want to 21718 do reachability tests for IPv6 relays. Implements feature 5974. 21719 - A relay with an IPv6 OR port now sends that address in NETINFO 21720 cells (in addition to its other address). Implements ticket 6364. 21721 21722 o Minor features (directory authorities): 21723 - Directory authorities no long accept descriptors for any version of 21724 Tor before 0.2.2.35, or for any 0.2.3 release before 0.2.3.10-alpha. 21725 These versions are insecure, unsupported, or both. Implements 21726 ticket 6789. 21727 - When directory authorities are computing thresholds for flags, 21728 never let the threshold for the Fast flag fall below 4096 21729 bytes. Also, do not consider nodes with extremely low bandwidths 21730 when deciding thresholds for various directory flags. This change 21731 should raise our threshold for Fast relays, possibly in turn 21732 improving overall network performance; see ticket 1854. Resolves 21733 ticket 8145. 21734 - Directory authorities now include inside each vote a statement of 21735 the performance thresholds they used when assigning flags. 21736 Implements ticket 8151. 21737 - Add an "ignoring-advertised-bws" boolean to the flag-threshold lines 21738 in directory authority votes to describe whether they have enough 21739 measured bandwidths to ignore advertised (relay descriptor) 21740 bandwidth claims. Resolves ticket 8711. 21741 21742 o Minor features (path bias detection): 21743 - Path Use Bias: Perform separate accounting for successful circuit 21744 use. Keep separate statistics on stream attempt rates versus stream 21745 success rates for each guard. Provide configurable thresholds to 21746 determine when to emit log messages or disable use of guards that 21747 fail too many stream attempts. Resolves ticket 7802. 21748 - Create three levels of Path Bias log messages, as opposed to just 21749 two. These are configurable via consensus as well as via the torrc 21750 options PathBiasNoticeRate, PathBiasWarnRate, PathBiasExtremeRate. 21751 The default values are 0.70, 0.50, and 0.30 respectively. 21752 - Separate the log message levels from the decision to drop guards, 21753 which also is available via torrc option PathBiasDropGuards. 21754 PathBiasDropGuards still defaults to 0 (off). 21755 - Deprecate PathBiasDisableRate in favor of PathBiasDropGuards 21756 in combination with PathBiasExtremeRate. 21757 - Increase the default values for PathBiasScaleThreshold and 21758 PathBiasCircThreshold from (200, 20) to (300, 150). 21759 - Add in circuit usage accounting to path bias. If we try to use a 21760 built circuit but fail for any reason, it counts as path bias. 21761 Certain classes of circuits where the adversary gets to pick your 21762 destination node are exempt from this accounting. Usage accounting 21763 can be specifically disabled via consensus parameter or torrc. 21764 - Convert all internal path bias state to double-precision floating 21765 point, to avoid roundoff error and other issues. 21766 - Only record path bias information for circuits that have completed 21767 *two* hops. Assuming end-to-end tagging is the attack vector, this 21768 makes us more resilient to ambient circuit failure without any 21769 detection capability loss. 21770 21771 o Minor features (build): 21772 - Tor now builds correctly on Bitrig, an OpenBSD fork. Patch from 21773 dhill. Resolves ticket 6982. 21774 - Compile on win64 using mingw64. Fixes bug 7260; patches from 21775 "yayooo". 21776 - Work correctly on Unix systems where EAGAIN and EWOULDBLOCK are 21777 separate error codes; or at least, don't break for that reason. 21778 Fixes bug 7935. Reported by "oftc_must_be_destroyed". 21779 21780 o Build improvements (autotools): 21781 - Warn if building on a platform with an unsigned time_t: there 21782 are too many places where Tor currently assumes that time_t can 21783 hold negative values. We'd like to fix them all, but probably 21784 some will remain. 21785 - Do not report status verbosely from autogen.sh unless the -v flag 21786 is specified. Fixes issue 4664. Patch from Onizuka. 21787 - Detect and reject attempts to build Tor with threading support 21788 when OpenSSL has been compiled without threading support. 21789 Fixes bug 6673. 21790 - Try to detect if we are ever building on a platform where 21791 memset(...,0,...) does not set the value of a double to 0.0. Such 21792 platforms are permitted by the C standard, though in practice 21793 they're pretty rare (since IEEE 754 is nigh-ubiquitous). We don't 21794 currently support them, but it's better to detect them and fail 21795 than to perform erroneously. 21796 - We no longer warn so much when generating manpages from their 21797 asciidoc source. 21798 - Use Ville Laurikari's implementation of AX_CHECK_SIGN() to determine 21799 the signs of types during autoconf. This is better than our old 21800 approach, which didn't work when cross-compiling. 21801 21802 o Minor features (log messages, warnings): 21803 - Detect when we're running with a version of OpenSSL other than the 21804 one we compiled with. This conflict has occasionally given people 21805 hard-to-track-down errors. 21806 - Warn users who run hidden services on a Tor client with 21807 UseEntryGuards disabled that their hidden services will be 21808 vulnerable to http://freehaven.net/anonbib/#hs-attack06 (the 21809 attack which motivated Tor to support entry guards in the first 21810 place). Resolves ticket 6889. 21811 - Warn when we are binding low ports when hibernation is enabled; 21812 previously we had warned when we were _advertising_ low ports with 21813 hibernation enabled. Fixes bug 7285; bugfix on 0.2.3.9-alpha. 21814 - Issue a warning when running with the bufferevents backend enabled. 21815 It's still not stable, and people should know that they're likely 21816 to hit unexpected problems. Closes ticket 9147. 21817 21818 o Minor features (log messages, notices): 21819 - Refactor resolve_my_address() so it returns the method by which we 21820 decided our public IP address (explicitly configured, resolved from 21821 explicit hostname, guessed from interfaces, learned by gethostname). 21822 Now we can provide more helpful log messages when a relay guesses 21823 its IP address incorrectly (e.g. due to unexpected lines in 21824 /etc/hosts). Resolves ticket 2267. 21825 - Track how many "TAP" and "NTor" circuit handshake requests we get, 21826 and how many we complete, and log it every hour to help relay 21827 operators follow trends in network load. Addresses ticket 9658. 21828 21829 o Minor features (log messages, diagnostics): 21830 - If we fail to free a microdescriptor because of bug 7164, log 21831 the filename and line number from which we tried to free it. 21832 - We compute the overhead from passing onionskins back and forth to 21833 cpuworkers, and report it when dumping statistics in response to 21834 SIGUSR1. Supports ticket 7291. 21835 - Add another diagnostic to the heartbeat message: track and log 21836 overhead that TLS is adding to the data we write. If this is 21837 high, we are sending too little data to SSL_write at a time. 21838 Diagnostic for bug 7707. 21839 - Log packaged cell fullness as part of the heartbeat message. 21840 Diagnosis to try to determine the extent of bug 7743. 21841 - Add more detail to a log message about relaxed timeouts, to help 21842 track bug 7799. 21843 - When learning a fingerprint for a bridge, log its corresponding 21844 transport type. Implements ticket 7896. 21845 - Warn more aggressively when flushing microdescriptors to a 21846 microdescriptor cache fails, in an attempt to mitigate bug 8031, 21847 or at least make it more diagnosable. 21848 - Improve the log message when "Bug/attack: unexpected sendme cell 21849 from client" occurs, to help us track bug 8093. 21850 - Improve debugging output to help track down bug 8185 ("Bug: 21851 outgoing relay cell has n_chan==NULL. Dropping.") 21852 21853 o Minor features (log messages, quieter bootstrapping): 21854 - Log fewer lines at level "notice" about our OpenSSL and Libevent 21855 versions and capabilities when everything is going right. Resolves 21856 part of ticket 6736. 21857 - Omit the first heartbeat log message, because it never has anything 21858 useful to say, and it clutters up the bootstrapping messages. 21859 Resolves ticket 6758. 21860 - Don't log about reloading the microdescriptor cache at startup. Our 21861 bootstrap warnings are supposed to tell the user when there's a 21862 problem, and our bootstrap notices say when there isn't. Resolves 21863 ticket 6759; bugfix on 0.2.2.6-alpha. 21864 - Don't log "I learned some more directory information" when we're 21865 reading cached directory information. Reserve it for when new 21866 directory information arrives in response to a fetch. Resolves 21867 ticket 6760. 21868 - Don't complain about bootstrapping problems while hibernating. 21869 These complaints reflect a general code problem, but not one 21870 with any problematic effects (no connections are actually 21871 opened). Fixes part of bug 7302; bugfix on 0.2.3.2-alpha. 21872 21873 o Minor features (testing): 21874 - In our testsuite, create temporary directories with a bit more 21875 entropy in their name to make name collisions less likely. Fixes 21876 bug 8638. 21877 - Add benchmarks for DH (1024-bit multiplicative group) and ECDH 21878 (P-256) Diffie-Hellman handshakes to src/or/bench. 21879 - Add benchmark functions to test onion handshake performance. 21880 21881 o Renamed options: 21882 - The DirServer option is now DirAuthority, for consistency with 21883 current naming patterns. You can still use the old DirServer form. 21884 21885 o Minor bugfixes (protocol): 21886 - Fix the handling of a TRUNCATE cell when it arrives while the 21887 circuit extension is in progress. Fixes bug 7947; bugfix on 0.0.7.1. 21888 - When a Tor client gets a "truncated" relay cell, the first byte of 21889 its payload specifies why the circuit was truncated. We were 21890 ignoring this 'reason' byte when tearing down the circuit, resulting 21891 in the controller not being told why the circuit closed. Now we 21892 pass the reason from the truncated cell to the controller. Bugfix 21893 on 0.1.2.3-alpha; fixes bug 7039. 21894 - Fix a misframing issue when reading the version numbers in a 21895 VERSIONS cell. Previously we would recognize [00 01 00 02] as 21896 'version 1, version 2, and version 0x100', when it should have 21897 only included versions 1 and 2. Fixes bug 8059; bugfix on 21898 0.2.0.10-alpha. Reported pseudonymously. 21899 - Make the format and order of STREAM events for DNS lookups 21900 consistent among the various ways to launch DNS lookups. Fixes 21901 bug 8203; bugfix on 0.2.0.24-rc. Patch by "Desoxy". 21902 21903 o Minor bugfixes (syscalls and disk interaction): 21904 - Always check the return values of functions fcntl() and 21905 setsockopt(). We don't believe these are ever actually failing in 21906 practice, but better safe than sorry. Also, checking these return 21907 values should please analysis tools like Coverity. Patch from 21908 'flupzor'. Fixes bug 8206; bugfix on all versions of Tor. 21909 - Avoid double-closing the listener socket in our socketpair() 21910 replacement (used on Windows) in the case where the addresses on 21911 our opened sockets don't match what we expected. Fixes bug 9400; 21912 bugfix on 0.0.2pre7. Found by Coverity. 21913 - Correctly store microdescriptors and extrainfo descriptors that 21914 include an internal NUL byte. Fixes bug 8037; bugfix on 21915 0.2.0.1-alpha. Bug reported by "cypherpunks". 21916 - If for some reason we fail to write a microdescriptor while 21917 rebuilding the cache, do not let the annotations from that 21918 microdescriptor linger in the cache file, and do not let the 21919 microdescriptor stay recorded as present in its old location. 21920 Fixes bug 9047; bugfix on 0.2.2.6-alpha. 21921 - Use direct writes rather than stdio when building microdescriptor 21922 caches, in an attempt to mitigate bug 8031, or at least make it 21923 less common. 21924 21925 o Minor fixes (config options): 21926 - Warn and fail if a server is configured not to advertise any 21927 ORPorts at all. (We need *something* to put in our descriptor, 21928 or we just won't work.) 21929 - Behave correctly when the user disables LearnCircuitBuildTimeout 21930 but doesn't tell us what they would like the timeout to be. Fixes 21931 bug 6304; bugfix on 0.2.2.14-alpha. 21932 - Rename the (internal-use-only) UsingTestingNetworkDefaults option 21933 to start with a triple-underscore so the controller won't touch it. 21934 Patch by Meejah. Fixes bug 3155. Bugfix on 0.2.2.23-alpha. 21935 - Rename the (testing-use-only) _UseFilteringSSLBufferevents option 21936 so it doesn't start with _. Fixes bug 3155. Bugfix on 0.2.3.1-alpha. 21937 - When autodetecting the number of CPUs, use the number of available 21938 CPUs in preference to the number of configured CPUs. Inform the 21939 user if this reduces the number of available CPUs. Fixes bug 8002; 21940 bugfix on 0.2.3.1-alpha. 21941 - Command-line option "--version" implies "--quiet". Fixes bug 6997. 21942 - Make it an error when you set EntryNodes but disable UseGuardNodes, 21943 since it will (surprisingly to some users) ignore EntryNodes. Fixes 21944 bug 8180; bugfix on 0.2.3.11-alpha. 21945 - Avoid overflows when the user sets MaxCircuitDirtiness to a 21946 ridiculously high value, by imposing a (ridiculously high) 30-day 21947 maximum on MaxCircuitDirtiness. 21948 21949 o Minor bugfixes (control protocol): 21950 - Stop sending a stray "(null)" in some cases for the server status 21951 "EXTERNAL_ADDRESS" controller event. Resolves bug 8200; bugfix 21952 on 0.1.2.6-alpha. 21953 - The ADDRMAP command can no longer generate an ill-formed error 21954 code on a failed MAPADDRESS. It now says "internal" rather than 21955 an English sentence fragment with spaces in the middle. Bugfix on 21956 Tor 0.2.0.19-alpha. 21957 21958 o Minor bugfixes (clients / edges): 21959 - When we receive a RELAY_END cell with the reason DONE, or with no 21960 reason, before receiving a RELAY_CONNECTED cell, report the SOCKS 21961 status as "connection refused". Previously we reported these cases 21962 as success but then immediately closed the connection. Fixes bug 21963 7902; bugfix on 0.1.0.1-rc. Reported by "oftc_must_be_destroyed". 21964 - If the guard we choose first doesn't answer, we would try the 21965 second guard, but once we connected to the second guard we would 21966 abandon it and retry the first one, slowing down bootstrapping. 21967 The fix is to treat all our initially chosen guards as acceptable 21968 to use. Fixes bug 9946; bugfix on 0.1.1.11-alpha. 21969 - When choosing which stream on a formerly stalled circuit to wake 21970 first, make better use of the platform's weak RNG. Previously, 21971 we had been using the % ("modulo") operator to try to generate a 21972 1/N chance of picking each stream, but this behaves badly with 21973 many platforms' choice of weak RNG. Fixes bug 7801; bugfix on 21974 0.2.2.20-alpha. 21975 21976 o Minor bugfixes (path bias detection): 21977 - If the state file's path bias counts are invalid (presumably from a 21978 buggy Tor prior to 0.2.4.10-alpha), make them correct. Also add 21979 additional checks and log messages to the scaling of Path Bias 21980 counts, in case there still are remaining issues with scaling. 21981 Should help resolve bug 8235. 21982 - Prevent rounding error in path bias counts when scaling 21983 them down, and use the correct scale factor default. Also demote 21984 some path bias related log messages down a level and make others 21985 less scary sounding. Fixes bug 6647. Bugfix on 0.2.3.17-beta. 21986 - Remove a source of rounding error during path bias count scaling; 21987 don't count cannibalized circuits as used for path bias until we 21988 actually try to use them; and fix a circuit_package_relay_cell() 21989 warning message about n_chan==NULL. Fixes bug 7802. 21990 - Paste the description for PathBias parameters from the man 21991 page into or.h, so the code documents them too. Fixes bug 7982; 21992 bugfix on 0.2.3.17-beta. 21993 21994 o Minor bugfixes (relays): 21995 - Stop trying to resolve our hostname so often (e.g. every time we 21996 think about doing a directory fetch). Now we reuse the cached 21997 answer in some cases. Fixes bugs 1992 (bugfix on 0.2.0.20-rc) 21998 and 2410 (bugfix on 0.1.2.2-alpha). 21999 - When examining the list of network interfaces to find our address, 22000 do not consider non-running or disabled network interfaces. Fixes 22001 bug 9904; bugfix on 0.2.3.11-alpha. Patch from "hantwister". 22002 22003 o Minor bugfixes (blocking resistance): 22004 - Only disable TLS session ticket support when running as a TLS 22005 server. Now clients will blend better with regular Firefox 22006 connections. Fixes bug 7189; bugfix on Tor 0.2.3.23-rc. 22007 22008 o Minor bugfixes (IPv6): 22009 - Use square brackets around IPv6 addresses in numerous places 22010 that needed them, including log messages, HTTPS CONNECT proxy 22011 requests, TransportProxy statefile entries, and pluggable transport 22012 extra-info lines. Fixes bug 7011; patch by David Fifield. 22013 22014 o Minor bugfixes (directory authorities): 22015 - Reject consensus votes with more than 64 known-flags. We aren't even 22016 close to that limit yet, and our code doesn't handle it correctly. 22017 Fixes bug 6833; bugfix on 0.2.0.1-alpha. 22018 - Correctly handle votes with more than 31 flags. Fixes bug 6853; 22019 bugfix on 0.2.0.3-alpha. 22020 22021 o Minor bugfixes (memory leaks): 22022 - Avoid leaking memory if we fail to compute a consensus signature 22023 or we generate a consensus we can't parse. Bugfix on 0.2.0.5-alpha. 22024 - Fix a memory leak when receiving headers from an HTTPS proxy. Bugfix 22025 on 0.2.1.1-alpha; fixes bug 7816. 22026 - Fix a memory leak during safe-cookie controller authentication. 22027 Bugfix on 0.2.3.13-alpha; fixes bug 7816. 22028 - Free some more still-in-use memory at exit, to make hunting for 22029 memory leaks easier. Resolves bug 7029. 22030 22031 o Minor bugfixes (code correctness): 22032 - Increase the width of the field used to remember a connection's 22033 link protocol version to two bytes. Harmless for now, since the 22034 only currently recognized versions are one byte long. Reported 22035 pseudonymously. Fixes bug 8062; bugfix on 0.2.0.10-alpha. 22036 - Fix a crash when debugging unit tests on Windows: deallocate a 22037 shared library with FreeLibrary, not CloseHandle. Fixes bug 7306; 22038 bugfix on 0.2.2.17-alpha. Reported by "ultramage". 22039 - When detecting the largest possible file descriptor (in order to 22040 close all file descriptors when launching a new program), actually 22041 use _SC_OPEN_MAX. The old code for doing this was very, very broken. 22042 Fixes bug 8209; bugfix on 0.2.3.1-alpha. Found by Coverity; this 22043 is CID 743383. 22044 - Avoid a crash if we fail to generate an extrainfo descriptor. 22045 Fixes bug 8208; bugfix on 0.2.3.16-alpha. Found by Coverity; 22046 this is CID 718634. 22047 - Avoid an off-by-one error when checking buffer boundaries when 22048 formatting the exit status of a pluggable transport helper. 22049 This is probably not an exploitable bug, but better safe than 22050 sorry. Fixes bug 9928; bugfix on 0.2.3.18-rc. Bug found by 22051 Pedro Ribeiro. 22052 - Get rid of a couple of harmless clang warnings, where we compared 22053 enums to ints. These warnings are newly introduced in clang 3.2. 22054 22055 o Minor bugfixes (code cleanliness): 22056 - Avoid use of reserved identifiers in our C code. The C standard 22057 doesn't like us declaring anything that starts with an 22058 underscore, so let's knock it off before we get in trouble. Fix 22059 for bug 1031; bugfix on the first Tor commit. 22060 - Fix round_to_power_of_2() so it doesn't invoke undefined behavior 22061 with large values. This situation was untriggered, but nevertheless 22062 incorrect. Fixes bug 6831; bugfix on 0.2.0.1-alpha. 22063 - Fix an impossible buffer overrun in the AES unit tests. Fixes 22064 bug 8845; bugfix on 0.2.0.7-alpha. Found by eugenis. 22065 - Fix handling of rendezvous client authorization types over 8. 22066 Fixes bug 6861; bugfix on 0.2.1.5-alpha. 22067 - Remove a couple of extraneous semicolons that were upsetting the 22068 cparser library. Patch by Christian Grothoff. Fixes bug 7115; 22069 bugfix on 0.2.2.1-alpha. 22070 - When complaining about a client port on a public address, log 22071 which address we're complaining about. Fixes bug 4020; bugfix on 22072 0.2.3.3-alpha. Patch by Tom Fitzhenry. 22073 22074 o Minor bugfixes (log messages, warnings): 22075 - If we encounter a write failure on a SOCKS connection before we 22076 finish our SOCKS handshake, don't warn that we closed the 22077 connection before we could send a SOCKS reply. Fixes bug 8427; 22078 bugfix on 0.1.0.1-rc. 22079 - Fix a directory authority warn caused when we have a large amount 22080 of badexit bandwidth. Fixes bug 8419; bugfix on 0.2.2.10-alpha. 22081 - Downgrade "Failed to hand off onionskin" messages to "debug" 22082 severity, since they're typically redundant with the "Your computer 22083 is too slow" messages. Fixes bug 7038; bugfix on 0.2.2.16-alpha. 22084 - Avoid spurious warnings when configuring multiple client ports of 22085 which only some are nonlocal. Previously, we had claimed that some 22086 were nonlocal when in fact they weren't. Fixes bug 7836; bugfix on 22087 0.2.3.3-alpha. 22088 22089 o Minor bugfixes (log messages, other): 22090 - Fix log messages and comments to avoid saying "GMT" when we mean 22091 "UTC". Fixes bug 6113. 22092 - When rejecting a configuration because we were unable to parse a 22093 quoted string, log an actual error message. Fixes bug 7950; bugfix 22094 on 0.2.0.16-alpha. 22095 - Correctly recognize that [::1] is a loopback address. Fixes 22096 bug 8377; bugfix on 0.2.1.3-alpha. 22097 - Don't log inappropriate heartbeat messages when hibernating: a 22098 hibernating node is _expected_ to drop out of the consensus, 22099 decide it isn't bootstrapped, and so forth. Fixes bug 7302; 22100 bugfix on 0.2.3.1-alpha. 22101 - Eliminate several instances where we use "Nickname=ID" to refer to 22102 nodes in logs. Use "Nickname (ID)" instead. (Elsewhere, we still use 22103 "$ID=Nickname", which is also acceptable.) Fixes bug 7065. Bugfix 22104 on 0.2.3.21-rc. 22105 22106 o Minor bugfixes (build): 22107 - Fix some bugs in tor-fw-helper-natpmp when trying to build and 22108 run it on Windows. More bugs likely remain. Patch from Gisle Vanem. 22109 Fixes bug 7280; bugfix on 0.2.3.1-alpha. 22110 22111 o Documentation fixes: 22112 - Make the torify manpage no longer refer to tsocks; torify hasn't 22113 supported tsocks since 0.2.3.14-alpha. 22114 - Make the tor manpage no longer reference tsocks. 22115 - Fix the GeoIPExcludeUnknown documentation to refer to 22116 ExcludeExitNodes rather than the currently nonexistent 22117 ExcludeEntryNodes. Spotted by "hamahangi" on tor-talk. 22118 - Resolve a typo in torrc.sample.in. Fixes bug 6819; bugfix on 22119 0.2.3.14-alpha. 22120 - Say "KBytes" rather than "KB" in the man page (for various values 22121 of K), to further reduce confusion about whether Tor counts in 22122 units of memory or fractions of units of memory. Resolves ticket 7054. 22123 - Update tor-fw-helper.1.txt and tor-fw-helper.c to make option 22124 names match. Fixes bug 7768. 22125 - Fix the documentation of HeartbeatPeriod to say that the heartbeat 22126 message is logged at notice, not at info. 22127 - Clarify the usage and risks of setting the ContactInfo torrc line 22128 for your relay or bridge. Resolves ticket 9854. 22129 - Add anchors to the manpage so we can link to the html version of 22130 the documentation for specific options. Resolves ticket 9866. 22131 - Replace remaining references to DirServer in man page and 22132 log entries. Resolves ticket 10124. 22133 22134 o Removed features: 22135 - Stop exporting estimates of v2 and v3 directory traffic shares 22136 in extrainfo documents. They were unneeded and sometimes inaccurate. 22137 Also stop exporting any v2 directory request statistics. Resolves 22138 ticket 5823. 22139 - Drop support for detecting and warning about versions of Libevent 22140 before 1.3e. Nothing reasonable ships with them any longer; warning 22141 the user about them shouldn't be needed. Resolves ticket 6826. 22142 - Now that all versions before 0.2.2.x are disallowed, we no longer 22143 need to work around their missing features. Remove a bunch of 22144 compatibility code. 22145 22146 o Removed files: 22147 - The tor-tsocks.conf is no longer distributed or installed. We 22148 recommend that tsocks users use torsocks instead. Resolves 22149 ticket 8290. 22150 - Remove some of the older contents of doc/ as obsolete; move others 22151 to torspec.git. Fixes bug 8965. 22152 22153 o Code simplification: 22154 - Avoid using character buffers when constructing most directory 22155 objects: this approach was unwieldy and error-prone. Instead, 22156 build smartlists of strings, and concatenate them when done. 22157 - Rename "isin" functions to "contains", for grammar. Resolves 22158 ticket 5285. 22159 - Rename Tor's logging function log() to tor_log(), to avoid conflicts 22160 with the natural logarithm function from the system libm. Resolves 22161 ticket 7599. 22162 - Start using OpenBSD's implementation of queue.h, so that we don't 22163 need to hand-roll our own pointer and list structures whenever we 22164 need them. (We can't rely on a sys/queue.h, since some operating 22165 systems don't have them, and the ones that do have them don't all 22166 present the same extensions.) 22167 - Start using OpenBSD's implementation of queue.h (originally by 22168 Niels Provos). 22169 - Enhance our internal sscanf replacement so that we can eliminate 22170 the last remaining uses of the system sscanf. (Though those uses 22171 of sscanf were safe, sscanf itself is generally error prone, so 22172 we want to eliminate when we can.) Fixes ticket 4195 and Coverity 22173 CID 448. 22174 - Replace all calls to snprintf() outside of src/ext with 22175 tor_snprintf(). Also remove the #define to replace snprintf with 22176 _snprintf on Windows; they have different semantics, and all of 22177 our callers should be using tor_snprintf() anyway. Fixes bug 7304. 22178 22179 o Refactoring: 22180 - Add a wrapper function for the common "log a message with a 22181 rate-limit" case. 22182 - Split the onion.c file into separate modules for the onion queue 22183 and the different handshakes it supports. 22184 - Move the client-side address-map/virtual-address/DNS-cache code 22185 out of connection_edge.c into a new addressmap.c module. 22186 - Move the entry node code from circuitbuild.c to its own file. 22187 - Move the circuit build timeout tracking code from circuitbuild.c 22188 to its own file. 22189 - Source files taken from other packages now reside in src/ext; 22190 previously they were scattered around the rest of Tor. 22191 - Move the generic "config" code into a new file, and have "config.c" 22192 hold only torrc- and state-related code. Resolves ticket 6823. 22193 - Move the core of our "choose a weighted element at random" logic 22194 into its own function, and give it unit tests. Now the logic is 22195 testable, and a little less fragile too. 22196 - Move ipv6_preferred from routerinfo_t to node_t. Addresses bug 4620. 22197 - Move last_reachable and testing_since from routerinfo_t to node_t. 22198 Implements ticket 5529. 22199 - Add replaycache_t structure, functions and unit tests, then refactor 22200 rend_service_introduce() to be more clear to read, improve, debug, 22201 and test. Resolves bug 6177. 22202 22203 o Removed code: 22204 - Remove some now-needless code that tried to aggressively flush 22205 OR connections as data was added to them. Since 0.2.0.1-alpha, our 22206 cell queue logic has saved us from the failure mode that this code 22207 was supposed to prevent. Removing this code will limit the number 22208 of baroque control flow paths through Tor's network logic. Reported 22209 pseudonymously on IRC. Fixes bug 6468; bugfix on 0.2.0.1-alpha. 22210 - Remove unused code for parsing v1 directories and "running routers" 22211 documents. Fixes bug 6887. 22212 - Remove the marshalling/unmarshalling code for sending requests to 22213 cpuworkers over a socket, and instead just send structs. The 22214 recipient will always be the same Tor binary as the sender, so 22215 any encoding is overkill. 22216 - Remove the testing_since field of node_t, which hasn't been used 22217 for anything since 0.2.0.9-alpha. 22218 - Finally remove support for malloc_good_size and malloc_usable_size. 22219 We had hoped that these functions would let us eke a little more 22220 memory out of our malloc implementation. Unfortunately, the only 22221 implementations that provided these functions are also ones that 22222 are already efficient about not overallocation: they never got us 22223 more than 7 or so bytes per allocation. Removing them saves us a 22224 little code complexity and a nontrivial amount of build complexity. 22225 22226 22227 Changes in version 0.2.3.25 - 2012-11-19 22228 The Tor 0.2.3 release series is dedicated to the memory of Len "rabbi" 22229 Sassaman (1980-2011), a long-time cypherpunk, anonymity researcher, 22230 Mixmaster maintainer, Pynchon Gate co-designer, CodeCon organizer, 22231 programmer, and friend. Unstinting in his dedication to the cause of 22232 freedom, he inspired and helped many of us as we began our work on 22233 anonymity, and inspires us still. Please honor his memory by writing 22234 software to protect people's freedoms, and by helping others to do so. 22235 22236 Tor 0.2.3.25, the first stable release in the 0.2.3 branch, features 22237 significantly reduced directory overhead (via microdescriptors), 22238 enormous crypto performance improvements for fast relays on new 22239 enough hardware, a new v3 TLS handshake protocol that can better 22240 resist fingerprinting, support for protocol obfuscation plugins (aka 22241 pluggable transports), better scalability for hidden services, IPv6 22242 support for bridges, performance improvements like allowing clients 22243 to skip the first round-trip on the circuit ("optimistic data") and 22244 refilling token buckets more often, a new "stream isolation" design 22245 to isolate different applications on different circuits, and many 22246 stability, security, and privacy fixes. 22247 22248 Major features (v3 directory protocol): 22249 - Clients now use microdescriptors instead of regular descriptors 22250 to build circuits. Microdescriptors are authority-generated 22251 summaries of regular descriptors' contents, designed to change very 22252 rarely (see proposal 158 for details). This feature is designed 22253 to save bandwidth, especially for clients on slow internet 22254 connections. Use "UseMicrodescriptors 0" to disable it. 22255 - Caches now download, cache, and serve microdescriptors, as well 22256 as multiple "flavors" of the consensus, including a flavor that 22257 describes microdescriptors. 22258 22259 o Major features (build hardening): 22260 - Enable gcc and ld hardening by default. Resolves ticket 5210. 22261 22262 o Major features (relay scaling): 22263 - When built to use OpenSSL 1.0.1, and built for an x86 or x86_64 22264 instruction set, take advantage of OpenSSL's AESNI, bitsliced, or 22265 vectorized AES implementations as appropriate. These can be much, 22266 much faster than other AES implementations. 22267 - When using OpenSSL 1.0.0 or later, use OpenSSL's counter mode 22268 implementation. It makes AES_CTR about 7% faster than our old one 22269 (which was about 10% faster than the one OpenSSL used to provide). 22270 Resolves ticket 4526. 22271 - Use OpenSSL's EVP interface for AES encryption, so that all AES 22272 operations can use hardware acceleration (if present). Resolves 22273 ticket 4442. 22274 - Unconditionally use OpenSSL's AES implementation instead of our 22275 old built-in one. OpenSSL's AES has been better for a while, and 22276 relatively few servers should still be on any version of OpenSSL 22277 that doesn't have good optimized assembly AES. 22278 22279 o Major features (blocking resistance): 22280 - Update TLS cipher list to match Firefox 8 and later. Resolves 22281 ticket 4744. 22282 - Remove support for clients falsely claiming to support standard 22283 ciphersuites that they can actually provide. As of modern OpenSSL 22284 versions, it's not necessary to fake any standard ciphersuite, 22285 and doing so prevents us from using better ciphersuites in the 22286 future, since servers can't know whether an advertised ciphersuite 22287 is really supported or not. Some hosts -- notably, ones with very 22288 old versions of OpenSSL or where OpenSSL has been built with ECC 22289 disabled -- will stand out because of this change; TBB users should 22290 not be affected. Implements the client side of proposal 198. 22291 - Implement a new handshake protocol (v3) for authenticating Tors to 22292 each other over TLS. It should be more resistant to fingerprinting 22293 than previous protocols, and should require less TLS hacking for 22294 future Tor implementations. Implements proposal 176. 22295 - Allow variable-length padding cells, to disguise the length of 22296 Tor's TLS records. Implements part of proposal 184. 22297 - While we're trying to bootstrap, record how many TLS connections 22298 fail in each state, and report which states saw the most failures 22299 in response to any bootstrap failures. This feature may speed up 22300 diagnosis of censorship events. Implements ticket 3116. 22301 22302 o Major features (pluggable transports): 22303 - Clients and bridges can now be configured to use a separate 22304 "transport" proxy. This approach makes the censorship arms race 22305 easier by allowing bridges to use protocol obfuscation plugins. 22306 Implements proposal 180 (tickets 2841 and 3472). 22307 22308 o Major features (DoS resistance): 22309 - Now that Tor 0.2.0.x is completely deprecated, enable the final 22310 part of "Proposal 110: Avoiding infinite length circuits" by 22311 refusing all circuit-extend requests that do not use a relay_early 22312 cell. This change helps Tor resist a class of denial-of-service 22313 attacks by limiting the maximum circuit length. 22314 - Tear down the circuit if we get an unexpected SENDME cell. Clients 22315 could use this trick to make their circuits receive cells faster 22316 than our flow control would have allowed, or to gum up the network, 22317 or possibly to do targeted memory denial-of-service attacks on 22318 entry nodes. Fixes bug 6252. Bugfix on the 54th commit on Tor -- 22319 from July 2002, before the release of Tor 0.0.0. 22320 22321 o Major features (hidden services): 22322 - Adjust the number of introduction points that a hidden service 22323 will try to maintain based on how long its introduction points 22324 remain in use and how many introductions they handle. Fixes 22325 part of bug 3825. 22326 - Add a "tor2web mode" for clients that want to connect to hidden 22327 services non-anonymously (and possibly more quickly). As a safety 22328 measure to try to keep users from turning this on without knowing 22329 what they are doing, tor2web mode must be explicitly enabled at 22330 compile time, and a copy of Tor compiled to run in tor2web mode 22331 cannot be used as a normal Tor client. Implements feature 2553. 22332 22333 o Major features (IPv6): 22334 - Clients can now connect to private bridges over IPv6. Bridges 22335 still need at least one IPv4 address in order to connect to 22336 other relays. Note that we don't yet handle the case where the 22337 user has two bridge lines for the same bridge (one IPv4, one 22338 IPv6). Implements parts of proposal 186. 22339 22340 o Major features (directory authorities): 22341 - Use a more secure consensus parameter voting algorithm. Now at 22342 least three directory authorities or a majority of them must 22343 vote on a given parameter before it will be included in the 22344 consensus. Implements proposal 178. 22345 - Remove the artificially low cutoff of 20KB to guarantee the Fast 22346 flag. In the past few years the average relay speed has picked 22347 up, and while the "top 7/8 of the network get the Fast flag" and 22348 "all relays with 20KB or more of capacity get the Fast flag" rules 22349 used to have the same result, now the top 7/8 of the network has 22350 a capacity more like 32KB. Bugfix on 0.2.1.14-rc. Fixes bug 4489. 22351 22352 o Major features (performance): 22353 - Exit nodes now accept and queue data on not-yet-connected streams. 22354 Previously, the client wasn't allowed to send data until the 22355 stream was connected, which slowed down all connections. This 22356 change will enable clients to perform a "fast-start" on streams 22357 and send data without having to wait for a confirmation that the 22358 stream has opened. Patch from Ian Goldberg; implements the server 22359 side of Proposal 174. 22360 - When using an exit relay running 0.2.3.x, clients can now 22361 "optimistically" send data before the exit relay reports that 22362 the stream has opened. This saves a round trip when starting 22363 connections where the client speaks first (such as web browsing). 22364 This behavior is controlled by a consensus parameter (currently 22365 disabled). To turn it on or off manually, use the "OptimisticData" 22366 torrc option. Implements proposal 181; code by Ian Goldberg. 22367 - Add a new TokenBucketRefillInterval option to refill token buckets 22368 more frequently than once per second. This should improve network 22369 performance, alleviate queueing problems, and make traffic less 22370 bursty. Implements proposal 183; closes ticket 3630. Design by 22371 Florian Tschorsch and Björn Scheuermann; implementation by 22372 Florian Tschorsch. 22373 - Raise the threshold of server descriptors needed (75%) and exit 22374 server descriptors needed (50%) before we will declare ourselves 22375 bootstrapped. This will make clients start building circuits a 22376 little later, but makes the initially constructed circuits less 22377 skewed and less in conflict with further directory fetches. Fixes 22378 ticket 3196. 22379 22380 o Major features (relays): 22381 - Relays now try regenerating and uploading their descriptor more 22382 frequently if they are not listed in the consensus, or if the 22383 version of their descriptor listed in the consensus is too 22384 old. This fix should prevent situations where a server declines 22385 to re-publish itself because it has done so too recently, even 22386 though the authorities decided not to list its recent-enough 22387 descriptor. Fix for bug 3327. 22388 22389 o Major features (stream isolation): 22390 - You can now configure Tor so that streams from different 22391 applications are isolated on different circuits, to prevent an 22392 attacker who sees your streams as they leave an exit node from 22393 linking your sessions to one another. To do this, choose some way 22394 to distinguish the applications: have them connect to different 22395 SocksPorts, or have one of them use SOCKS4 while the other uses 22396 SOCKS5, or have them pass different authentication strings to the 22397 SOCKS proxy. Then, use the new SocksPort syntax to configure the 22398 degree of isolation you need. This implements Proposal 171. 22399 - There's a new syntax for specifying multiple client ports (such as 22400 SOCKSPort, TransPort, DNSPort, NATDPort): you can now just declare 22401 multiple *Port entries with full addr:port syntax on each. 22402 The old *ListenAddress format is still supported, but you can't 22403 mix it with the new *Port syntax. 22404 22405 o Major features (bufferevents): 22406 - Tor can now optionally build with the "bufferevents" buffered IO 22407 backend provided by Libevent 2. To use this feature, make sure you 22408 have the latest possible version of Libevent, and pass the 22409 --enable-bufferevents flag to configure when building Tor from 22410 source. This feature will make our networking code more flexible, 22411 let us stack layers on each other, and let us use more efficient 22412 zero-copy transports where available. 22413 - Add experimental support for running on Windows with IOCP and no 22414 kernel-space socket buffers. This feature is controlled by a new 22415 "UserspaceIOCPBuffers" config option (off by default), which has 22416 no effect unless Tor has been built with bufferevents enabled, 22417 you're running on Windows, and you've set "DisableIOCP 0". In the 22418 long run, this may help solve or mitigate bug 98. 22419 22420 o Major features (path selection): 22421 - The EntryNodes option can now include country codes like {de} or IP 22422 addresses or network masks. Previously we had disallowed these 22423 options because we didn't have an efficient way to keep the list up 22424 to date. Addresses ticket 1982, but see bug 2798 for an unresolved 22425 issue here. 22426 22427 o Major features (port forwarding): 22428 - Add support for automatic port mapping on the many home routers 22429 that support NAT-PMP or UPnP. To build the support code, you'll 22430 need to have the libnatpnp library and/or the libminiupnpc library, 22431 and you'll need to enable the feature specifically by passing 22432 "--enable-upnp" and/or "--enable-natpnp" to ./configure. To turn 22433 it on, use the new PortForwarding option. 22434 22435 o Major features (logging): 22436 - Add a new 'Heartbeat' log message type to periodically log a message 22437 describing Tor's status at level Notice. This feature is meant for 22438 operators who log at notice, and want to make sure that their Tor 22439 server is still working. Implementation by George Kadianakis. 22440 - Make logging resolution configurable with a new LogTimeGranularity 22441 option, and change the default from 1 millisecond to 1 second. 22442 Implements enhancement 1668. 22443 22444 o Major features (other): 22445 - New "DisableNetwork" config option to prevent Tor from launching any 22446 connections or accepting any connections except on a control port. 22447 Bundles and controllers can set this option before letting Tor talk 22448 to the rest of the network, for example to prevent any connections 22449 to a non-bridge address. Packages like Orbot can also use this 22450 option to instruct Tor to save power when the network is off. 22451 - Try to use system facilities for enumerating local interface 22452 addresses, before falling back to our old approach (which was 22453 binding a UDP socket, and calling getsockname() on it). That 22454 approach was scaring OS X users whose draconian firewall 22455 software warned about binding to UDP sockets regardless of 22456 whether packets were sent. Now we try to use getifaddrs(), 22457 SIOCGIFCONF, or GetAdaptersAddresses(), depending on what the 22458 system supports. Resolves ticket 1827. 22459 - Add experimental support for a "defaults" torrc file to be parsed 22460 before the regular torrc. Torrc options override the defaults file's 22461 options in the same way that the command line overrides the torrc. 22462 The SAVECONF controller command saves only those options which 22463 differ between the current configuration and the defaults file. HUP 22464 reloads both files. Implements task 4552. 22465 22466 o New directory authorities: 22467 - Add Faravahar (run by Sina Rabbani) as the ninth v3 directory 22468 authority. Closes ticket 5749. 22469 22470 o Security/privacy fixes: 22471 - Avoid read-from-freed-memory and double-free bugs that could occur 22472 when a DNS request fails while launching it. Fixes bug 6480; 22473 bugfix on 0.2.0.1-alpha. 22474 - Reject any attempt to extend to an internal address. Without 22475 this fix, a router could be used to probe addresses on an internal 22476 network to see whether they were accepting connections. Fixes bug 22477 6710; bugfix on 0.0.8pre1. 22478 - Close any connection that sends unrecognized junk before the TLS 22479 handshake. Solves an issue noted in bug 4369. 22480 - The advertised platform of a relay now includes only its operating 22481 system's name (e.g., "Linux", "Darwin", "Windows 7"), and not 22482 its service pack level (for Windows) or its CPU architecture 22483 (for Unix). Also drop the "git-XYZ" tag in the version. Packagers 22484 can insert an extra string in the platform line by setting the 22485 preprocessor variable TOR_BUILD_TAG. Resolves bug 2988. 22486 - Disable TLS session tickets. OpenSSL's implementation was giving 22487 our TLS session keys the lifetime of our TLS context objects, when 22488 perfect forward secrecy would want us to discard anything that 22489 could decrypt a link connection as soon as the link connection 22490 was closed. Fixes bug 7139; bugfix on all versions of Tor linked 22491 against OpenSSL 1.0.0 or later. Found by Florent Daignière. 22492 - Tor tries to wipe potentially sensitive data after using it, so 22493 that if some subsequent security failure exposes Tor's memory, 22494 the damage will be limited. But we had a bug where the compiler 22495 was eliminating these wipe operations when it decided that the 22496 memory was no longer visible to a (correctly running) program, 22497 hence defeating our attempt at defense in depth. We fix that 22498 by using OpenSSL's OPENSSL_cleanse() operation, which a compiler 22499 is unlikely to optimize away. Future versions of Tor may use 22500 a less ridiculously heavy approach for this. Fixes bug 7352. 22501 Reported in an article by Andrey Karpov. 22502 22503 o Major bugfixes (crashes and asserts): 22504 - Avoid a pair of double-free and use-after-mark bugs that can 22505 occur with certain timings in canceled and re-received DNS 22506 requests. Fixes bug 6472; bugfix on 0.0.7rc1. 22507 - Fix a denial of service attack by which any directory authority 22508 could crash all the others, or by which a single v2 directory 22509 authority could crash everybody downloading v2 directory 22510 information. Fixes bug 7191; bugfix on 0.2.0.10-alpha. 22511 - Fix an assert that directory authorities could trigger on sighup 22512 during some configuration state transitions. We now don't treat 22513 it as a fatal error when the new descriptor we just generated in 22514 init_keys() isn't accepted. Fixes bug 4438; bugfix on 0.2.1.9-alpha. 22515 - Avoid segfault when starting up having run with an extremely old 22516 version of Tor and parsing its state file. Fixes bug 6801; bugfix 22517 on 0.2.2.23-alpha. 22518 22519 o Major bugfixes (clients): 22520 - If we are unable to find any exit that supports our predicted ports, 22521 stop calling them predicted, so that we don't loop and build 22522 hopeless circuits indefinitely. Fixes bug 3296; bugfix on 0.0.9pre6, 22523 which introduced predicted ports. 22524 - Check at each new consensus whether our entry guards were picked 22525 long enough ago that we should rotate them. Previously, we only 22526 did this check at startup, which could lead to us holding a guard 22527 indefinitely. Fixes bug 5380; bugfix on 0.2.1.14-rc. 22528 - When fetching a bridge descriptor from a bridge authority, 22529 always do so anonymously, whether we have been able to open 22530 circuits or not. Partial fix for bug 1938; bugfix on 0.2.0.7-alpha. 22531 This behavior makes it *safer* to use UpdateBridgesFromAuthority, 22532 but we'll need to wait for bug 6010 before it's actually usable. 22533 22534 o Major bugfixes (directory voting): 22535 - Check more thoroughly to prevent a rogue authority from 22536 double-voting on any consensus directory parameter. Previously, 22537 authorities would crash in this case if the total number of 22538 votes for any parameter exceeded the number of active voters, 22539 but would let it pass otherwise. Partially fixes bug 5786; bugfix 22540 on 0.2.2.2-alpha. 22541 - When computing weight parameters, behave more robustly in the 22542 presence of a bad bwweightscale value. Previously, the authorities 22543 would crash if they agreed on a sufficiently broken weight_scale 22544 value; now, they use a reasonable default and carry on. Fixes the 22545 rest of bug 5786; bugfix on 0.2.2.17-alpha. 22546 - If authorities are unable to get a v2 consensus document from other 22547 directory authorities, they no longer fall back to fetching 22548 them from regular directory caches. Fixes bug 5635; bugfix on 22549 0.2.2.26-beta, where routers stopped downloading v2 consensus 22550 documents entirely. 22551 22552 o Major bugfixes (relays): 22553 - Fix a bug handling SENDME cells on nonexistent streams that could 22554 result in bizarre window values. Report and patch contributed 22555 pseudonymously. Fixes part of bug 6271. This bug was introduced 22556 before the first Tor release, in svn commit r152. 22557 - Don't update the AccountingSoftLimitHitAt state file entry whenever 22558 tor gets started. This prevents a wrong average bandwidth 22559 estimate, which would cause relays to always start a new accounting 22560 interval at the earliest possible moment. Fixes bug 2003; bugfix 22561 on 0.2.2.7-alpha. Reported by Bryon Eldridge, who also helped 22562 immensely in tracking this bug down. 22563 - Fix a possible crash bug when checking for deactivated circuits 22564 in connection_or_flush_from_first_active_circuit(). Fixes bug 6341; 22565 bugfix on 0.2.2.7-alpha. Bug report and fix received pseudonymously. 22566 - Set the SO_REUSEADDR socket option before we call bind() on outgoing 22567 connections. This change should allow busy exit relays to stop 22568 running out of available sockets as quickly. Fixes bug 4950; 22569 bugfix on 0.2.2.26-beta. 22570 22571 o Major bugfixes (blocking resistance): 22572 - Bridges no longer include their address in NETINFO cells on outgoing 22573 OR connections, to allow them to blend in better with clients. 22574 Removes another avenue for enumerating bridges. Reported by 22575 "troll_un". Fixes bug 4348; bugfix on 0.2.0.10-alpha, when NETINFO 22576 cells were introduced. 22577 - Warn the user when HTTPProxy, but no other proxy type, is 22578 configured. This can cause surprising behavior: it doesn't send 22579 all of Tor's traffic over the HTTPProxy -- it sends unencrypted 22580 directory traffic only. Resolves ticket 4663. 22581 22582 o Major bugfixes (hidden services): 22583 - Improve hidden service robustness: when an attempt to connect to 22584 a hidden service ends, be willing to refetch its hidden service 22585 descriptors from each of the HSDir relays responsible for them 22586 immediately. Previously, we would not consider refetching the 22587 service's descriptors from each HSDir for 15 minutes after the last 22588 fetch, which was inconvenient if the hidden service was not running 22589 during the first attempt. Bugfix on 0.2.0.18-alpha; fixes bug 3335. 22590 - Hidden services now ignore the timestamps on INTRODUCE2 cells. 22591 They used to check that the timestamp was within 30 minutes 22592 of their system clock, so they could cap the size of their 22593 replay-detection cache, but that approach unnecessarily refused 22594 service to clients with wrong clocks. Bugfix on 0.2.1.6-alpha, when 22595 the v3 intro-point protocol (the first one which sent a timestamp 22596 field in the INTRODUCE2 cell) was introduced; fixes bug 3460. 22597 - When one of a hidden service's introduction points appears to be 22598 unreachable, stop trying it. Previously, we would keep trying 22599 to build circuits to the introduction point until we lost the 22600 descriptor, usually because the user gave up and restarted Tor. 22601 Fixes part of bug 3825. 22602 22603 o Changes to default torrc file: 22604 - Stop listing "socksport 9050" in torrc.sample. We open a socks 22605 port on 9050 by default anyway, so this should not change anything 22606 in practice. 22607 - Stop mentioning the deprecated *ListenAddress options in 22608 torrc.sample. Fixes bug 5438. 22609 - Document unit of bandwidth-related options in sample torrc. 22610 Fixes bug 5621. 22611 - Fix broken URLs in the sample torrc file, and tell readers about 22612 the OutboundBindAddress, ExitPolicyRejectPrivate, and 22613 PublishServerDescriptor options. Addresses bug 4652. 22614 22615 o Minor features (directory authorities): 22616 - Consider new, removed or changed IPv6 OR ports a non-cosmetic 22617 change when the authority is deciding whether to accept a newly 22618 uploaded descriptor. Implements ticket 6423. 22619 - Directory authorities are now a little more lenient at accepting 22620 older router descriptors, or newer router descriptors that don't 22621 make big changes. This should help ameliorate past and future 22622 issues where routers think they have uploaded valid descriptors, 22623 but the authorities don't think so. Fix for ticket 2479. 22624 - Authority operators can now vote for all relays in a given 22625 set of countries to be BadDir/BadExit/Invalid/Rejected. 22626 - Provide two consensus parameters (FastFlagMinThreshold and 22627 FastFlagMaxThreshold) to control the range of allowable bandwidths 22628 for the Fast directory flag. These allow authorities to run 22629 experiments on appropriate requirements for being a "Fast" node. 22630 The AuthDirFastGuarantee config value still applies. Implements 22631 ticket 3946. 22632 22633 o Minor features (bridges / bridge authorities): 22634 - Make bridge SSL certificates a bit more stealthy by using random 22635 serial numbers, in the same fashion as OpenSSL when generating 22636 self-signed certificates. Implements ticket 4584. 22637 - Tag a bridge's descriptor as "never to be sent unencrypted". 22638 This shouldn't matter, since bridges don't open non-anonymous 22639 connections to the bridge authority and don't allow unencrypted 22640 directory connections from clients, but we might as well make 22641 sure. Closes bug 5139. 22642 - The Bridge Authority now writes statistics on how many bridge 22643 descriptors it gave out in total, and how many unique descriptors 22644 it gave out. It also lists how often the most and least commonly 22645 fetched descriptors were given out, as well as the median and 22646 25th/75th percentile. Implements tickets 4200 and 4294. 22647 22648 o Minor features (IPv6): 22649 - Make the code that clients use to detect an address change be 22650 IPv6-aware, so that it won't fill clients' logs with error 22651 messages when trying to get the IPv4 address of an IPv6 22652 connection. Implements ticket 5537. 22653 - Relays now understand an IPv6 address when they get one from a 22654 directory server. Resolves ticket 4875. 22655 22656 o Minor features (hidden services): 22657 - Expire old or over-used hidden service introduction points. 22658 Required by fix for bug 3460. 22659 - Reduce the lifetime of elements of hidden services' Diffie-Hellman 22660 public key replay-detection cache from 60 minutes to 5 minutes. This 22661 replay-detection cache is now used only to detect multiple 22662 INTRODUCE2 cells specifying the same rendezvous point, so we can 22663 avoid launching multiple simultaneous attempts to connect to it. 22664 - When a hidden service's introduction point times out, consider 22665 trying it again during the next attempt to connect to the 22666 HS. Previously, we would not try it again unless a newly fetched 22667 descriptor contained it. Required by fixes for bugs 1297 and 3825. 22668 22669 o Minor features (relays): 22670 - Relays now include a reason for regenerating their descriptors 22671 in an HTTP header when uploading to the authorities. This will 22672 make it easier to debug descriptor-upload issues in the future. 22673 - Turn on directory request statistics by default and include them in 22674 extra-info descriptors. Don't break if we have no GeoIP database. 22675 - Replace files in stats/ rather than appending to them. Now that we 22676 include statistics in extra-info descriptors, it makes no sense to 22677 keep old statistics forever. Implements ticket 2930. 22678 - Relays that set "ConnDirectionStatistics 1" write statistics on the 22679 bidirectional use of connections to disk every 24 hours. 22680 - Add a GeoIP file digest to the extra-info descriptor. Implements 22681 ticket 1883. 22682 22683 o Minor features (new config options): 22684 - New config option "DynamicDHGroups" (disabled by default) provides 22685 each bridge with a unique prime DH modulus to be used during 22686 SSL handshakes. This option attempts to help against censors 22687 who might use the Apache DH modulus as a static identifier for 22688 bridges. Addresses ticket 4548. 22689 - New config option "DisableDebuggerAttachment" (on by default) 22690 to prevent basic debugging attachment attempts by other processes. 22691 Supports Mac OS X and Gnu/Linux. Resolves ticket 3313. 22692 - Ordinarily, Tor does not count traffic from private addresses (like 22693 127.0.0.1 or 10.0.0.1) when calculating rate limits or accounting. 22694 There is now a new option, CountPrivateBandwidth, to disable this 22695 behavior. Patch from Daniel Cagara. 22696 22697 o Minor features (different behavior for old config options): 22698 - Allow MapAddress directives to specify matches against super-domains, 22699 as in "MapAddress *.torproject.org *.torproject.org.torserver.exit". 22700 Implements issue 933. 22701 - Don't disable the DirPort when we cannot exceed our AccountingMax 22702 limit during this interval because the effective bandwidthrate is 22703 low enough. This is useful in a situation where AccountMax is only 22704 used as an additional safeguard or to provide statistics. 22705 - Add port 6523 (Gobby) to LongLivedPorts. Patch by intrigeri; 22706 implements ticket 3439. 22707 - When configuring a large set of nodes in EntryNodes, and there are 22708 enough of them listed as Guard so that we don't need to consider 22709 the non-guard entries, prefer the ones listed with the Guard flag. 22710 - If you set the NumCPUs option to 0, Tor will now try to detect how 22711 many CPUs you have. This is the new default behavior. 22712 - The NodeFamily option -- which let you declare that you want to 22713 consider nodes to be part of a family whether they list themselves 22714 that way or not -- now allows IP address ranges and country codes. 22715 22716 o Minor features (new command-line config behavior): 22717 - Slightly change behavior of "list" options (that is, config 22718 options that can appear more than once) when they appear both in 22719 torrc and on the command line. Previously, the command-line options 22720 would be appended to the ones from torrc. Now, the command-line 22721 options override the torrc options entirely. This new behavior 22722 allows the user to override list options (like exit policies and 22723 ports to listen on) from the command line, rather than simply 22724 appending to the list. 22725 - You can get the old (appending) command-line behavior for "list" 22726 options by prefixing the option name with a "+". 22727 - You can remove all the values for a "list" option from the command 22728 line without adding any new ones by prefixing the option name 22729 with a "/". 22730 22731 o Minor features (controller, new events): 22732 - Extend the control protocol to report flags that control a circuit's 22733 path selection in CIRC events and in replies to 'GETINFO 22734 circuit-status'. Implements part of ticket 2411. 22735 - Extend the control protocol to report the hidden service address 22736 and current state of a hidden-service-related circuit in CIRC 22737 events and in replies to 'GETINFO circuit-status'. Implements part 22738 of ticket 2411. 22739 - Include the creation time of a circuit in CIRC and CIRC2 22740 control-port events and the list produced by the 'GETINFO 22741 circuit-status' control-port command. 22742 - Add a new CONF_CHANGED event so that controllers can be notified 22743 of any configuration changes made by other controllers, or by the 22744 user. Implements ticket 1692. 22745 - Add a new SIGNAL event to the controller interface so that 22746 controllers can be notified when Tor handles a signal. Resolves 22747 issue 1955. Patch by John Brooks. 22748 22749 o Minor features (controller, new getinfo options): 22750 - Expose our view of whether we have gone dormant to the controller, 22751 via a new "GETINFO dormant" value. Torbutton and other controllers 22752 can use this to avoid doing periodic requests through Tor while 22753 it's dormant (bug 4718). Resolves ticket 5954. 22754 - Add a new GETINFO option to get total bytes read and written. Patch 22755 from pipe, revised by atagar. Resolves ticket 2345. 22756 - Implement new GETINFO controller fields to provide information about 22757 the Tor process's pid, euid, username, and resource limits. 22758 22759 o Minor features (controller, other): 22760 - Allow controllers to request an event notification whenever a 22761 circuit is cannibalized or its purpose is changed. Implements 22762 part of ticket 3457. 22763 - Use absolute path names when reporting the torrc filename in the 22764 control protocol, so a controller can more easily find the torrc 22765 file. Resolves bug 1101. 22766 - When reporting the path to the cookie file to the controller, 22767 give an absolute path. Resolves ticket 4881. 22768 22769 o Minor features (log messages): 22770 - Add more information to a log statement that might help track down 22771 bug 4091. If you're seeing "Bug: tor_addr_is_internal() called with a 22772 non-IP address" messages (or any Bug messages, for that matter!), 22773 please let us know about it. 22774 - If EntryNodes are given, but UseEntryGuards is set to 0, warn that 22775 EntryNodes will have no effect. Resolves issue 2571. 22776 - Try to make the introductory warning message that Tor prints on 22777 startup more useful for actually finding help and information. 22778 Resolves ticket 2474. 22779 - When the system call to create a listener socket fails, log the 22780 error message explaining why. This may help diagnose bug 4027. 22781 22782 o Minor features (other): 22783 - When we fail to initialize Libevent, retry with IOCP disabled so we 22784 don't need to turn on multi-threading support in Libevent, which in 22785 turn requires a working socketpair(). This is a workaround for bug 22786 4457, which affects Libevent versions from 2.0.1-alpha through 22787 2.0.15-stable. 22788 - When starting as root and then changing our UID via the User 22789 control option, and we have a ControlSocket configured, make sure 22790 that the ControlSocket is owned by the same account that Tor will 22791 run under. Implements ticket 3421; fix by Jérémy Bobbio. 22792 - Accept attempts to include a password authenticator in the 22793 handshake, as supported by SOCKS5. This handles SOCKS clients that 22794 don't know how to omit a password when authenticating. Resolves 22795 bug 1666. 22796 - Check for and recover from inconsistency in the microdescriptor 22797 cache. This will make it harder for us to accidentally free a 22798 microdescriptor without removing it from the appropriate data 22799 structures. Fixes issue 3135; issue noted by "wanoskarnet". 22800 - Shorten links in the tor-exit-notice file. Patch by Christian Kujau. 22801 22802 o Minor bugfixes (code security): 22803 - Prevent a null-pointer dereference when receiving a data cell 22804 for a nonexistent stream when the circuit in question has an 22805 empty deliver window. We don't believe this is triggerable, 22806 since we don't currently allow deliver windows to become empty, 22807 but the logic is tricky enough that it's better to make the code 22808 robust. Fixes bug 5541; bugfix on 0.0.2pre14. 22809 - Fix a (harmless) integer overflow in cell statistics reported by 22810 some fast relays. Fixes bug 5849; bugfix on 0.2.2.1-alpha. 22811 - Fix our implementation of crypto_random_hostname() so it can't 22812 overflow on ridiculously large inputs. (No Tor version has ever 22813 provided this kind of bad inputs, but let's be correct in depth.) 22814 Fixes bug 4413; bugfix on 0.2.2.9-alpha. Fix by Stephen Palmateer. 22815 - Add a (probably redundant) memory clear between iterations of 22816 the router status voting loop, to prevent future coding errors 22817 where data might leak between iterations of the loop. Resolves 22818 ticket 6514. 22819 22820 o Minor bugfixes (wrapper functions): 22821 - Abort if tor_vasprintf() fails in connection_printf_to_buf() (a 22822 utility function used in the control-port code). This shouldn't 22823 ever happen unless Tor is completely out of memory, but if it did 22824 happen and Tor somehow recovered from it, Tor could have sent a log 22825 message to a control port in the middle of a reply to a controller 22826 command. Fixes part of bug 3428; bugfix on 0.1.2.3-alpha. 22827 - Fix some (not actually triggerable) buffer size checks in usage of 22828 tor_inet_ntop(). Fixes bug 4434; bugfix on Tor 0.2.0.1-alpha. Patch 22829 by Anders Sundman. 22830 - Fix parsing of some corner-cases with tor_inet_pton(). Fixes 22831 bug 4515; bugfix on 0.2.0.1-alpha; fix by Anders Sundman. 22832 - Enforce correct return behavior of tor_vsscanf() when the '%%' 22833 pattern is used. Fixes bug 5558. Bugfix on 0.2.1.13. 22834 - Make our replacement implementation of strtok_r() compatible with 22835 the standard behavior of strtok_r(). Patch by nils. Fixes bug 5091; 22836 bugfix on 0.2.2.1-alpha. 22837 - Find more places in the code that should have been testing for 22838 invalid sockets using the SOCKET_OK macro. Required for a fix 22839 for bug 4533. Bugfix on 0.2.2.28-beta. 22840 22841 o Minor bugfixes (code correctness): 22842 - Check return value of fputs() when writing authority certificate 22843 file. Fixes Coverity issue 709056; bugfix on 0.2.0.1-alpha. 22844 - When building Tor on Windows with -DUNICODE (not default), ensure 22845 that error messages, filenames, and DNS server names are always 22846 NUL-terminated when we convert them to a single-byte encoding. 22847 Fixes bug 5909; bugfix on 0.2.2.16-alpha. 22848 - Fix a memory leak when trying to launch a DNS request when the 22849 nameservers are unconfigurable. Fixes bug 5916; bugfix on Tor 22850 0.1.2.1-alpha. 22851 - Correct file sizes when reading binary files on Cygwin, to avoid 22852 a bug where Tor would fail to read its state file. Fixes bug 6844; 22853 bugfix on 0.1.2.7-alpha. 22854 - Make sure to set *socket_error in all error cases in 22855 connection_connect(), so it can't produce a warning about 22856 errno being zero from errno_to_orconn_end_reason(). Bugfix on 22857 0.2.1.1-alpha; resolves ticket 6028. 22858 - Initialize conn->addr to a valid state in spawn_cpuworker(). Fixes 22859 bug 4532; found by "troll_un". 22860 22861 o Minor bugfixes (clients): 22862 - Allow one-hop directory-fetching circuits the full "circuit build 22863 timeout" period, rather than just half of it, before failing them 22864 and marking the relay down. This fix should help reduce cases where 22865 clients declare relays (or worse, bridges) unreachable because 22866 the TLS handshake takes a few seconds to complete. Fixes bug 6743; 22867 bugfix on 0.2.2.2-alpha, where we changed the timeout from a static 22868 30 seconds. 22869 - Ensure we don't cannibalize circuits that are longer than three hops 22870 already, so we don't end up making circuits with 5 or more 22871 hops. Patch contributed by wanoskarnet. Fixes bug 5231; bugfix on 22872 0.1.0.1-rc which introduced cannibalization. 22873 22874 o Minor bugfixes (relays): 22875 - Don't publish a new relay descriptor when we reload our onion key, 22876 unless the onion key has actually changed. Fixes bug 3263 and 22877 resolves another cause of bug 1810. Bugfix on 0.1.1.11-alpha. 22878 - When relays refuse a "create" cell because their queue of pending 22879 create cells is too big (typically because their cpu can't keep up 22880 with the arrival rate), send back reason "resource limit" rather 22881 than reason "internal", so network measurement scripts can get a 22882 more accurate picture. Bugfix on 0.1.1.11-alpha; fixes bug 7037. 22883 - Exit nodes don't need to fetch certificates for authorities that 22884 they don't recognize; only directory authorities, bridges, 22885 and caches need to do that. Fixes part of bug 2297; bugfix on 22886 0.2.2.11-alpha. 22887 22888 o Minor bugfixes (directory authority / mirrors): 22889 - Avoid O(n^2) performance characteristics when parsing a large 22890 extrainfo cache. Fixes bug 5828; bugfix on 0.2.0.1-alpha. 22891 - Authorities no longer include any router in their microdescriptor 22892 consensuses for which they couldn't generate or agree on a 22893 microdescriptor. Fixes the second piece of bug 6404; fix on 22894 0.2.2.6-alpha. 22895 - When checking for requested signatures on the latest consensus 22896 before serving it to a client, make sure to check the right 22897 consensus flavor. Bugfix on 0.2.2.6-alpha. 22898 - Fix an edge case where TestingTorNetwork is set but the authorities 22899 and relays all have an uptime of zero, so the private Tor network 22900 could briefly lack support for hidden services. Fixes bug 3886; 22901 bugfix on 0.2.2.18-alpha. 22902 - Directory caches no longer refuse to clean out descriptors because 22903 of missing v2 networkstatus documents, unless they're configured 22904 to retrieve v2 networkstatus documents. Fixes bug 4838; bugfix on 22905 0.2.2.26-beta. Patch by Daniel Bryg. 22906 - Don't serve or accept v2 hidden service descriptors over a relay's 22907 DirPort. It's never correct to do so, and disabling it might 22908 make it more annoying to exploit any bugs that turn up in the 22909 descriptor-parsing code. Fixes bug 7149. 22910 22911 o Minor bugfixes (hidden services, client-side): 22912 - Assert that hidden-service-related operations are not performed 22913 using single-hop circuits. Previously, Tor would assert that 22914 client-side streams are not attached to single-hop circuits, 22915 but not that other sensitive operations on the client and service 22916 side are not performed using single-hop circuits. Fixes bug 3332; 22917 bugfix on 0.0.6. 22918 - Avoid undefined behavior when parsing the list of supported 22919 rendezvous/introduction protocols in a hidden service descriptor. 22920 Previously, Tor would have confused (as-yet-unused) protocol version 22921 numbers greater than 32 with lower ones on many platforms. Fixes 22922 bug 6827; bugfix on 0.2.0.10-alpha. Found by George Kadianakis. 22923 - Don't close hidden service client circuits which have almost 22924 finished connecting to their destination when they reach 22925 the normal circuit-build timeout. Previously, we would close 22926 introduction circuits which are waiting for an acknowledgement 22927 from the introduction point, and rendezvous circuits which have 22928 been specified in an INTRODUCE1 cell sent to a hidden service, 22929 after the normal CBT. Now, we mark them as 'timed out', and launch 22930 another rendezvous attempt in parallel. This behavior change can 22931 be disabled using the new CloseHSClientCircuitsImmediatelyOnTimeout 22932 option. Fixes part of bug 1297; bugfix on 0.2.2.2-alpha. 22933 22934 o Minor bugfixes (hidden services, service-side): 22935 - Don't close hidden-service-side rendezvous circuits when they 22936 reach the normal circuit-build timeout. This behavior change can 22937 be disabled using the new 22938 CloseHSServiceRendCircuitsImmediatelyOnTimeout option. Fixes the 22939 remaining part of bug 1297; bugfix on 0.2.2.2-alpha. 22940 - Don't launch more than 10 service-side introduction-point circuits 22941 for a hidden service in five minutes. Previously, we would consider 22942 launching more introduction-point circuits if at least one second 22943 had passed without any introduction-point circuits failing. Fixes 22944 bug 4607; bugfix on 0.0.7pre1. 22945 22946 o Minor bugfixes (config option behavior): 22947 - If the user tries to set MyFamily on a bridge, refuse to 22948 do so, and warn about the security implications. Fixes bug 4657; 22949 bugfix on 0.2.0.3-alpha. 22950 - The "--quiet" and "--hush" options now apply not only to Tor's 22951 behavior before logs are configured, but also to Tor's behavior in 22952 the absence of configured logs. Fixes bug 3550; bugfix on 22953 0.2.0.10-alpha. 22954 - Change the AllowDotExit rules so they should actually work. 22955 We now enforce AllowDotExit only immediately after receiving an 22956 address via SOCKS or DNSPort: other sources are free to provide 22957 .exit addresses after the resolution occurs. Fixes bug 3940; 22958 bugfix on 0.2.2.1-alpha. 22959 - Make "LearnCircuitBuildTimeout 0" work more reliably. Specifically, 22960 don't depend on the consensus parameters or compute adaptive 22961 timeouts when it is disabled. Fixes bug 5049; bugfix on 22962 0.2.2.14-alpha. 22963 - After we pick a directory mirror, we would refuse to use it if 22964 it's in our ExcludeExitNodes list, resulting in mysterious failures 22965 to bootstrap for people who just wanted to avoid exiting from 22966 certain locations. Fixes bug 5623; bugfix on 0.2.2.25-alpha. 22967 - When told to add a bridge with the same digest as a preexisting 22968 bridge but a different addr:port, change the addr:port as 22969 requested. Previously we would not notice the change. Fixes half 22970 of bug 5603; fix on 0.2.2.26-beta. 22971 22972 o Minor bugfixes (controller): 22973 - Allow manual 'authenticate' commands to the controller interface 22974 from netcat (nc) as well as telnet. We were rejecting them because 22975 they didn't come with the expected whitespace at the end of the 22976 command. Bugfix on 0.1.1.1-alpha; fixes bug 2893. 22977 - Report a real bootstrap problem to the controller on router 22978 identity mismatch. Previously we just said "foo", which probably 22979 made a lot of sense at the time. Fixes bug 4169; bugfix on 22980 0.2.1.1-alpha. 22981 - When we receive a SIGHUP and the controller __ReloadTorrcOnSIGHUP 22982 option is set to 0 (which Vidalia version 0.2.16 now does when 22983 a SAVECONF attempt fails), perform other actions that SIGHUP 22984 usually causes (like reopening the logs). Fixes bug 5095; bugfix 22985 on 0.2.1.9-alpha. 22986 - Correctly handle checking the permissions on the parent 22987 directory of a control socket in the root directory. Bug found 22988 by Esteban Manchado Velázquez. Fixes bug 5089; bugfix on Tor 22989 0.2.2.26-beta. 22990 - End AUTHCHALLENGE error messages (in the control protocol) with 22991 a CRLF. Fixes bug 5760; bugfix on 0.2.2.36. 22992 22993 o Minor bugfixes (network reading/writing): 22994 - Disable writing on marked-for-close connections when they are 22995 blocked on bandwidth, to prevent busy-looping in Libevent. Fixes 22996 bug 5263; bugfix on 0.0.2pre13, where we first added a special 22997 case for flushing marked connections. 22998 - Make sure that there are no unhandled pending TLS errors before 22999 reading from a TLS stream. We had checks in 0.1.0.3-rc, but 23000 lost them in 0.1.0.5-rc when we refactored read_to_buf_tls(). 23001 Bugfix on 0.1.0.5-rc; fixes bug 4528. 23002 - Detect SSL handshake even when the initial attempt to write the 23003 server hello fails. Fixes bug 4592; bugfix on 0.2.0.13-alpha. 23004 - If the client fails to set a reasonable set of ciphersuites 23005 during its v2 handshake renegotiation, allow the renegotiation to 23006 continue nevertheless (i.e. send all the required certificates). 23007 Fixes bug 4591; bugfix on 0.2.0.20-rc. 23008 23009 o Minor bugfixes (other): 23010 - Exit nodes now correctly report EADDRINUSE and EADDRNOTAVAIL as 23011 resource exhaustion, so that clients can adjust their load to 23012 try other exits. Fixes bug 4710; bugfix on 0.1.0.1-rc, which 23013 started using END_STREAM_REASON_RESOURCELIMIT. 23014 - Don't check for whether the address we're using for outbound 23015 connections has changed until after the outbound connection has 23016 completed. On Windows, getsockname() doesn't succeed until the 23017 connection is finished. Fixes bug 5374; bugfix on 0.1.1.14-alpha. 23018 - Don't hold a Windows file handle open for every file mapping; 23019 the file mapping handle is sufficient. Fixes bug 5951; bugfix on 23020 0.1.2.1-alpha. 23021 - Fix wrong TCP port range in parse_port_range(). Fixes bug 6218; 23022 bugfix on 0.2.1.10-alpha. 23023 - If we fail to write a microdescriptor to the disk cache, do not 23024 continue replacing the old microdescriptor file. Fixes bug 2954; 23025 bugfix on 0.2.2.6-alpha. 23026 23027 o Minor bugfixes (log messages, path selection): 23028 - Downgrade "set buildtimeout to low value" messages to "info" 23029 severity; they were never an actual problem, there was never 23030 anything reasonable to do about them, and they tended to spam logs 23031 from time to time. Fixes bug 6251; bugfix on 0.2.2.2-alpha. 23032 - Rate-limit the "Weighted bandwidth is 0.000000" message, and add 23033 more information to it, so that we can track it down in case it 23034 returns again. Mitigates bug 5235. 23035 - Check CircuitBuildTimeout and LearnCircuitBuildTimeout in 23036 options_validate(); warn if LearnCircuitBuildTimeout is disabled and 23037 CircuitBuildTimeout is set unreasonably low. Resolves ticket 5452. 23038 - Issue a log message if a guard completes less than 40% of your 23039 circuits. Threshold is configurable by torrc option 23040 PathBiasNoticeRate and consensus parameter pb_noticepct. There is 23041 additional, off-by-default code to disable guards which fail too 23042 many circuits. Addresses ticket 5458. 23043 23044 o Minor bugfixes (log messages, client): 23045 - Downgrade "Got a certificate, but we already have it" log messages 23046 from warning to info, except when we're a dirauth. Fixes bug 5238; 23047 bugfix on 0.2.1.7-alpha. 23048 - Fix the log message describing how we work around discovering 23049 that our version is the ill-fated OpenSSL 0.9.8l. Fixes bug 23050 4837; bugfix on 0.2.2.9-alpha. 23051 - When logging about a disallowed .exit name, do not also call it 23052 an "invalid onion address". Fixes bug 3325; bugfix on 0.2.2.9-alpha. 23053 - Fix a log message suggesting that people contact a non-existent 23054 email address. Fixes bug 3448. 23055 - Rephrase the log message emitted if the TestSocks check is 23056 successful. Patch from Fabian Keil; fixes bug 4094. 23057 - Log (at debug level) whenever a circuit's purpose is changed. 23058 - Log SSL state transitions at log level DEBUG, log domain 23059 HANDSHAKE. This can be useful for debugging censorship events. 23060 Implements ticket 3264. 23061 - We now log which torrc file we're using on startup. Implements 23062 ticket 2444. 23063 - Rate-limit log messages when asked to connect anonymously to 23064 a private address. When these hit, they tended to hit fast and 23065 often. Also, don't bother trying to connect to addresses that we 23066 are sure will resolve to 127.0.0.1: getting 127.0.0.1 in a directory 23067 reply makes us think we have been lied to, even when the address the 23068 client tried to connect to was "localhost." Resolves ticket 2822. 23069 23070 o Minor bugfixes (log messages, non-client): 23071 - Downgrade "eventdns rejected address" message to LOG_PROTOCOL_WARN. 23072 Fixes bug 5932; bugfix on 0.2.2.7-alpha. 23073 - Don't log that we have "decided to publish new relay descriptor" 23074 unless we are actually publishing a descriptor. Fixes bug 3942; 23075 bugfix on 0.2.2.28-beta. 23076 - Log which authority we're missing votes from when we go to fetch 23077 them from the other auths. 23078 - Replace "Sending publish request" log messages with "Launching 23079 upload", so that they no longer confusingly imply that we're 23080 sending something to a directory we might not even be connected 23081 to yet. Fixes bug 3311; bugfix on 0.2.0.10-alpha. 23082 - Warn when Tor is configured to use accounting in a way that can 23083 link a hidden service to some other hidden service or public 23084 address. Resolves ticket 6490. 23085 - Fix a minor formatting issue in one of tor-gencert's error messages. 23086 Fixes bug 4574. 23087 23088 o Testing: 23089 - Update to the latest version of the tinytest unit testing framework. 23090 This includes a couple of bugfixes that can be relevant for 23091 running forked unit tests on Windows, and removes all reserved 23092 identifiers. 23093 - Avoid a false positive in the util/threads unit test by increasing 23094 the maximum timeout time. Fixes bug 6227; bugfix on 0.2.0.4-alpha. 23095 - Make it possible to set the TestingTorNetwork configuration 23096 option using AlternateDirAuthority and AlternateBridgeAuthority 23097 as an alternative to setting DirServer. Addresses ticket 6377. 23098 - Add a unit test for the environment_variable_names_equal() function. 23099 - A wide variety of new unit tests by Esteban Manchado Velázquez. 23100 - Numerous new unit tests for functions in util.c and address.c by 23101 Anders Sundman. 23102 - The long-disabled benchmark tests are now split into their own 23103 ./src/test/bench binary. 23104 - The benchmark tests can now use more accurate timers than 23105 gettimeofday() when such timers are available. 23106 - Use tt_assert(), not tor_assert(), for checking for test failures. 23107 This makes the unit tests more able to go on in the event that 23108 one of them fails. 23109 23110 o Build improvements: 23111 - Use the dead_strip option when building Tor on OS X. This reduces 23112 binary size by almost 19% when linking openssl and libevent 23113 statically, which we do for Tor Browser Bundle. 23114 - Provide a better error message about possible OSX Asciidoc failure 23115 reasons. Fixes bug 6436. 23116 - Detect attempts to build Tor on (as yet hypothetical) versions 23117 of Windows where sizeof(intptr_t) != sizeof(SOCKET). Partial 23118 fix for bug 4533. Bugfix on 0.2.2.28-beta. 23119 - On Windows, we now define the _WIN32_WINNT macros only if they 23120 are not already defined. This lets the person building Tor decide, 23121 if they want, to require a later version of Windows. 23122 - Our autogen.sh script now uses autoreconf to launch autoconf, 23123 automake, and so on. This is more robust against some of the failure 23124 modes associated with running the autotools pieces on their own. 23125 - Running "make version" now displays the version of Tor that 23126 we're about to build. Idea from katmagic; resolves issue 4400. 23127 - Make 'tor --digests' list hashes of all Tor source files. Bugfix 23128 on 0.2.2.4-alpha; fixes bug 3427. 23129 - New --enable-static-tor configure option for building Tor as 23130 statically as possible. Idea, general hackery and thoughts from 23131 Alexei Czeskis, John Gilmore, Jacob Appelbaum. Implements ticket 23132 2702. 23133 - Limited, experimental support for building with nmake and MSVC. 23134 23135 o Build requirements: 23136 - Building Tor with bufferevent support now requires Libevent 23137 2.0.13-stable or later. Previous versions of Libevent had bugs in 23138 SSL-related bufferevents and related issues that would make Tor 23139 work badly with bufferevents. Requiring 2.0.13-stable also allows 23140 Tor with bufferevents to take advantage of Libevent APIs 23141 introduced after 2.0.8-rc. 23142 - Our build system requires automake 1.6 or later to create the 23143 Makefile.in files. Previously, you could have used 1.4. 23144 This only affects developers and people building Tor from git; 23145 people who build Tor from the source distribution without changing 23146 the Makefile.am files should be fine. 23147 - Detect when we try to build on a platform that doesn't define 23148 AF_UNSPEC to 0. We don't work there, so refuse to compile. 23149 23150 o Build fixes (compile/link): 23151 - Format more doubles with %f, not %lf. Patch from grarpamp to make 23152 Tor build correctly on older BSDs again. Fixes bug 3894; bugfix on 23153 Tor 0.2.0.8-alpha. 23154 - When building with --enable-static-tor on OpenBSD, do not 23155 erroneously attempt to link -lrt. Fixes bug 5103. 23156 - Set _WIN32_WINNT to 0x0501 consistently throughout the code, so 23157 that IPv6 stuff will compile on MSVC, and compilation issues 23158 will be easier to track down. Fixes bug 5861. 23159 - Fix build and 64-bit compile warnings from --enable-openbsd-malloc. 23160 Fixes bug 6379. Bugfix on 0.2.0.20-rc. 23161 - Make Tor build correctly again with -DUNICODE -D_UNICODE defined. 23162 Fixes bug 6097; bugfix on 0.2.2.16-alpha. 23163 23164 o Build fixes (other): 23165 - Use the _WIN32 macro throughout our code to detect Windows. 23166 (Previously we had used the obsolete 'WIN32' and the idiosyncratic 23167 'MS_WINDOWS'.) 23168 - Properly handle the case where the build-tree is not the same 23169 as the source tree when generating src/common/common_sha1.i, 23170 src/or/micro-revision.i, and src/or/or_sha1.i. Fixes bug 3953; 23171 bugfix on 0.2.0.1-alpha. 23172 - During configure, search for library containing cos function as 23173 libm lives in libcore on some platforms (BeOS/Haiku). Linking 23174 against libm was hard-coded before. Fixes the first part of bug 23175 4727; bugfix on 0.2.2.2-alpha. Patch and analysis by Martin Hebnes 23176 Pedersen. 23177 - Prevent a false positive from the check-spaces script, by disabling 23178 the "whitespace between function name and (" check for functions 23179 named 'op()'. 23180 23181 o Packaging (RPM) changes: 23182 - Update our default RPM spec files to work with mock and rpmbuild 23183 on RHEL/Fedora. They have an updated set of dependencies and 23184 conflicts, a fix for an ancient typo when creating the "_tor" 23185 user, and better instructions. Thanks to Ondrej Mikle for the 23186 patch series. Fixes bug 6043. 23187 - On OpenSUSE, create the /var/run/tor directory on startup if it 23188 is not already created. Patch from Andreas Stieger. Fixes bug 2573. 23189 23190 o Code refactoring (safety): 23191 - Do not use SMARTLIST_FOREACH for any loop whose body exceeds 23192 10 lines. Also, don't nest them. Doing so in the past has 23193 led to hard-to-debug code. The new style is to use the 23194 SMARTLIST_FOREACH_{BEGIN,END} pair. Addresses issue 6400. 23195 - Use macros to indicate OpenSSL versions, so we don't need to worry 23196 about accidental hexadecimal bit shifts. 23197 - Use tor_sscanf() in place of scanf() in more places through the 23198 code. This makes us a little more locale-independent, and 23199 should help shut up code-analysis tools that can't tell 23200 a safe sscanf string from a dangerous one. 23201 - Convert more instances of tor_snprintf+tor_strdup into tor_asprintf. 23202 - Use the smartlist_add_asprintf() alias more consistently. 23203 23204 o Code refactoring (consolidate): 23205 - A major revision to our internal node-selecting and listing logic. 23206 Tor already had at least two major ways to look at the question of 23207 "which Tor servers do we know about": a list of router descriptors, 23208 and a list of entries in the current consensus. With 23209 microdescriptors, we're adding a third. Having so many systems 23210 without an abstraction layer over them was hurting the codebase. 23211 Now, we have a new "node_t" abstraction that presents a consistent 23212 interface to a client's view of a Tor node, and holds (nearly) all 23213 of the mutable state formerly in routerinfo_t and routerstatus_t. 23214 - Move tor_gettimeofday_cached() into compat_libevent.c, and use 23215 Libevent's notion of cached time when possible. 23216 - Remove duplicate code for invoking getrlimit() from control.c. 23217 - Use OpenSSL's built-in SSL_state_string_long() instead of our 23218 own homebrewed ssl_state_to_string() replacement. Patch from 23219 Emile Snyder. Fixes bug 4653. 23220 - Change the symmetric cipher interface so that creating and 23221 initializing a stream cipher are no longer separate functions. 23222 23223 o Code refactoring (separate): 23224 - Make a new "entry connection" struct as an internal subtype of "edge 23225 connection", to simplify the code and make exit connections smaller. 23226 - Split connection_about_to_close() into separate functions for each 23227 connection type. 23228 - Rewrite the listener-selection logic so that parsing which ports 23229 we want to listen on is now separate from binding to the ports 23230 we want. 23231 23232 o Code refactoring (name changes): 23233 - Rename a handful of old identifiers, mostly related to crypto 23234 structures and crypto functions. By convention, our "create an 23235 object" functions are called "type_new()", our "free an object" 23236 functions are called "type_free()", and our types indicate that 23237 they are types only with a final "_t". But a handful of older 23238 types and functions broke these rules, with function names like 23239 "type_create" or "subsystem_op_type", or with type names like 23240 type_env_t. 23241 - Rename Tor functions that turn strings into addresses, so that 23242 "parse" indicates that no hostname resolution occurs, and 23243 "lookup" indicates that hostname resolution may occur. This 23244 should help prevent mistakes in the future. Fixes bug 3512. 23245 - Use the name "CERTS" consistently to refer to the new cell type; 23246 we were calling it CERT in some places and CERTS in others. 23247 - Use a TOR_INVALID_SOCKET macro when initializing a socket to an 23248 invalid value, rather than just -1. 23249 - Rename the bench_{aes,dmap} functions to test_*, so that tinytest 23250 can pick them up when the tests aren't disabled. Bugfix on 23251 0.2.2.4-alpha which introduced tinytest. 23252 23253 o Code refactoring (other): 23254 - Defensively refactor rend_mid_rendezvous() so that protocol 23255 violations and length checks happen in the beginning. Fixes 23256 bug 5645. 23257 - Remove the pure attribute from all functions that used it 23258 previously. In many cases we assigned it incorrectly, because the 23259 functions might assert or call impure functions, and we don't have 23260 evidence that keeping the pure attribute is worthwhile. Implements 23261 changes suggested in ticket 4421. 23262 - Move the replay-detection cache for the RSA-encrypted parts of 23263 INTRODUCE2 cells to the introduction point data structures. 23264 Previously, we would use one replay-detection cache per hidden 23265 service. Required by fix for bug 3460. 23266 - The helper programs tor-gencert, tor-resolve, and tor-checkkey 23267 no longer link against Libevent: they never used it, but 23268 our library structure used to force them to link it. 23269 23270 o Removed features and files: 23271 - Remove all internal support for unpadded RSA. We never used it, and 23272 it would be a bad idea to start. 23273 - Remove some workaround code for OpenSSL 0.9.6 (which is no longer 23274 supported). 23275 - Remove some redundant #include directives throughout the code. 23276 Patch from Andrea Gelmini. 23277 - Remove some old code to remember statistics about which descriptors 23278 we've served as a directory mirror. The feature wasn't used and 23279 is outdated now that microdescriptors are around. 23280 - Remove some old code to work around even older versions of Tor that 23281 used forked processes to handle DNS requests. Such versions of Tor 23282 are no longer in use as relays. 23283 - The "torify" script no longer supports the "tsocks" socksifier 23284 tool, since tsocks doesn't support DNS and UDP right for Tor. 23285 Everyone should be using torsocks instead. Fixes bugs 3530 and 23286 5180. Based on a patch by "ugh". 23287 - Remove the torrc.bridge file: we don't use it for anything, and 23288 it had become badly desynchronized from torrc.sample. Resolves 23289 bug 5622. 23290 23291 o Documentation: 23292 - Begin a doc/state-contents.txt file to explain the contents of 23293 the Tor state file. Fixes bug 2987. 23294 - Clarify the documentation for the Alternate*Authority options. 23295 Fixes bug 6387. 23296 - Document the --defaults-torrc option, and the new semantics for 23297 overriding, extending, and clearing lists of options. Closes 23298 bug 4748. 23299 - Add missing man page documentation for consensus and microdesc 23300 files. Resolves ticket 6732. 23301 - Fix some typos in the manpages. Patch from A. Costa. Fixes bug 6500. 23302 23303 o Documentation fixes: 23304 - Improve the manual's documentation for the NT Service command-line 23305 options. Addresses ticket 3964. 23306 - Clarify SessionGroup documentation slightly; resolves ticket 5437. 23307 - Document the changes to the ORPort and DirPort options, and the 23308 fact that {OR/Dir}ListenAddress is now unnecessary (and 23309 therefore deprecated). Resolves ticket 5597. 23310 - Correct a broken faq link in the INSTALL file. Fixes bug 2307. 23311 - Clarify that hidden services are TCP only. Fixes bug 6024. 23312 23313 23314 Changes in version 0.2.2.39 - 2012-09-11 23315 Tor 0.2.2.39 fixes two more opportunities for remotely triggerable 23316 assertions. 23317 23318 o Security fixes: 23319 - Fix an assertion failure in tor_timegm() that could be triggered 23320 by a badly formatted directory object. Bug found by fuzzing with 23321 Radamsa. Fixes bug 6811; bugfix on 0.2.0.20-rc. 23322 - Do not crash when comparing an address with port value 0 to an 23323 address policy. This bug could have been used to cause a remote 23324 assertion failure by or against directory authorities, or to 23325 allow some applications to crash clients. Fixes bug 6690; bugfix 23326 on 0.2.1.10-alpha. 23327 23328 23329 Changes in version 0.2.2.38 - 2012-08-12 23330 Tor 0.2.2.38 fixes a remotely triggerable crash bug, and fixes a timing 23331 attack that could in theory leak path information. 23332 23333 o Security fixes: 23334 - Avoid an uninitialized memory read when reading a vote or consensus 23335 document that has an unrecognized flavor name. This read could 23336 lead to a remote crash bug. Fixes bug 6530; bugfix on 0.2.2.6-alpha. 23337 - Try to leak less information about what relays a client is 23338 choosing to a side-channel attacker. Previously, a Tor client would 23339 stop iterating through the list of available relays as soon as it 23340 had chosen one, thus finishing a little earlier when it picked 23341 a router earlier in the list. If an attacker can recover this 23342 timing information (nontrivial but not proven to be impossible), 23343 they could learn some coarse-grained information about which relays 23344 a client was picking (middle nodes in particular are likelier to 23345 be affected than exits). The timing attack might be mitigated by 23346 other factors (see bug 6537 for some discussion), but it's best 23347 not to take chances. Fixes bug 6537; bugfix on 0.0.8rc1. 23348 23349 23350 Changes in version 0.2.2.37 - 2012-06-06 23351 Tor 0.2.2.37 introduces a workaround for a critical renegotiation 23352 bug in OpenSSL 1.0.1 (where 20% of the Tor network can't talk to itself 23353 currently). 23354 23355 o Major bugfixes: 23356 - Work around a bug in OpenSSL that broke renegotiation with TLS 23357 1.1 and TLS 1.2. Without this workaround, all attempts to speak 23358 the v2 Tor connection protocol when both sides were using OpenSSL 23359 1.0.1 would fail. Resolves ticket 6033. 23360 - When waiting for a client to renegotiate, don't allow it to add 23361 any bytes to the input buffer. This fixes a potential DoS issue. 23362 Fixes bugs 5934 and 6007; bugfix on 0.2.0.20-rc. 23363 - Fix an edge case where if we fetch or publish a hidden service 23364 descriptor, we might build a 4-hop circuit and then use that circuit 23365 for exiting afterwards -- even if the new last hop doesn't obey our 23366 ExitNodes config option. Fixes bug 5283; bugfix on 0.2.0.10-alpha. 23367 23368 o Minor bugfixes: 23369 - Fix a build warning with Clang 3.1 related to our use of vasprintf. 23370 Fixes bug 5969. Bugfix on 0.2.2.11-alpha. 23371 23372 o Minor features: 23373 - Tell GCC and Clang to check for any errors in format strings passed 23374 to the tor_v*(print|scan)f functions. 23375 23376 23377 Changes in version 0.2.2.36 - 2012-05-24 23378 Tor 0.2.2.36 updates the addresses for two of the eight directory 23379 authorities, fixes some potential anonymity and security issues, 23380 and fixes several crash bugs. 23381 23382 Tor 0.2.1.x has reached its end-of-life. Those Tor versions have many 23383 known flaws, and nobody should be using them. You should upgrade. If 23384 you're using a Linux or BSD and its packages are obsolete, stop using 23385 those packages and upgrade anyway. 23386 23387 o Directory authority changes: 23388 - Change IP address for maatuska (v3 directory authority). 23389 - Change IP address for ides (v3 directory authority), and rename 23390 it to turtles. 23391 23392 o Security fixes: 23393 - When building or running with any version of OpenSSL earlier 23394 than 0.9.8s or 1.0.0f, disable SSLv3 support. These OpenSSL 23395 versions have a bug (CVE-2011-4576) in which their block cipher 23396 padding includes uninitialized data, potentially leaking sensitive 23397 information to any peer with whom they make a SSLv3 connection. Tor 23398 does not use SSL v3 by default, but a hostile client or server 23399 could force an SSLv3 connection in order to gain information that 23400 they shouldn't have been able to get. The best solution here is to 23401 upgrade to OpenSSL 0.9.8s or 1.0.0f (or later). But when building 23402 or running with a non-upgraded OpenSSL, we disable SSLv3 entirely 23403 to make sure that the bug can't happen. 23404 - Never use a bridge or a controller-supplied node as an exit, even 23405 if its exit policy allows it. Found by wanoskarnet. Fixes bug 23406 5342. Bugfix on 0.1.1.15-rc (for controller-purpose descriptors) 23407 and 0.2.0.3-alpha (for bridge-purpose descriptors). 23408 - Only build circuits if we have a sufficient threshold of the total 23409 descriptors that are marked in the consensus with the "Exit" 23410 flag. This mitigates an attack proposed by wanoskarnet, in which 23411 all of a client's bridges collude to restrict the exit nodes that 23412 the client knows about. Fixes bug 5343. 23413 - Provide controllers with a safer way to implement the cookie 23414 authentication mechanism. With the old method, if another locally 23415 running program could convince a controller that it was the Tor 23416 process, then that program could trick the controller into telling 23417 it the contents of an arbitrary 32-byte file. The new "SAFECOOKIE" 23418 authentication method uses a challenge-response approach to prevent 23419 this attack. Fixes bug 5185; implements proposal 193. 23420 23421 o Major bugfixes: 23422 - Avoid logging uninitialized data when unable to decode a hidden 23423 service descriptor cookie. Fixes bug 5647; bugfix on 0.2.1.5-alpha. 23424 - Avoid a client-side assertion failure when receiving an INTRODUCE2 23425 cell on a general purpose circuit. Fixes bug 5644; bugfix on 23426 0.2.1.6-alpha. 23427 - Fix builds when the path to sed, openssl, or sha1sum contains 23428 spaces, which is pretty common on Windows. Fixes bug 5065; bugfix 23429 on 0.2.2.1-alpha. 23430 - Correct our replacements for the timeradd() and timersub() functions 23431 on platforms that lack them (for example, Windows). The timersub() 23432 function is used when expiring circuits, while timeradd() is 23433 currently unused. Bug report and patch by Vektor. Fixes bug 4778; 23434 bugfix on 0.2.2.24-alpha. 23435 - Fix the SOCKET_OK test that we use to tell when socket 23436 creation fails so that it works on Win64. Fixes part of bug 4533; 23437 bugfix on 0.2.2.29-beta. Bug found by wanoskarnet. 23438 23439 o Minor bugfixes: 23440 - Reject out-of-range times like 23:59:61 in parse_rfc1123_time(). 23441 Fixes bug 5346; bugfix on 0.0.8pre3. 23442 - Make our number-parsing functions always treat too-large values 23443 as an error, even when those values exceed the width of the 23444 underlying type. Previously, if the caller provided these 23445 functions with minima or maxima set to the extreme values of the 23446 underlying integer type, these functions would return those 23447 values on overflow rather than treating overflow as an error. 23448 Fixes part of bug 5786; bugfix on 0.0.9. 23449 - Older Linux kernels erroneously respond to strange nmap behavior 23450 by having accept() return successfully with a zero-length 23451 socket. When this happens, just close the connection. Previously, 23452 we would try harder to learn the remote address: but there was 23453 no such remote address to learn, and our method for trying to 23454 learn it was incorrect. Fixes bugs 1240, 4745, and 4747. Bugfix 23455 on 0.1.0.3-rc. Reported and diagnosed by "r1eo". 23456 - Correct parsing of certain date types in parse_http_time(). 23457 Without this patch, If-Modified-Since would behave 23458 incorrectly. Fixes bug 5346; bugfix on 0.2.0.2-alpha. Patch from 23459 Esteban Manchado Velázques. 23460 - Change the BridgePassword feature (part of the "bridge community" 23461 design, which is not yet implemented) to use a time-independent 23462 comparison. The old behavior might have allowed an adversary 23463 to use timing to guess the BridgePassword value. Fixes bug 5543; 23464 bugfix on 0.2.0.14-alpha. 23465 - Detect and reject certain misformed escape sequences in 23466 configuration values. Previously, these values would cause us 23467 to crash if received in a torrc file or over an authenticated 23468 control port. Bug found by Esteban Manchado Velázquez, and 23469 independently by Robert Connolly from Matta Consulting who further 23470 noted that it allows a post-authentication heap overflow. Patch 23471 by Alexander Schrijver. Fixes bugs 5090 and 5402 (CVE 2012-1668); 23472 bugfix on 0.2.0.16-alpha. 23473 - Fix a compile warning when using the --enable-openbsd-malloc 23474 configure option. Fixes bug 5340; bugfix on 0.2.0.20-rc. 23475 - During configure, detect when we're building with clang version 23476 3.0 or lower and disable the -Wnormalized=id and -Woverride-init 23477 CFLAGS. clang doesn't support them yet. 23478 - When sending an HTTP/1.1 proxy request, include a Host header. 23479 Fixes bug 5593; bugfix on 0.2.2.1-alpha. 23480 - Fix a NULL-pointer dereference on a badly formed SETCIRCUITPURPOSE 23481 command. Found by mikeyc. Fixes bug 5796; bugfix on 0.2.2.9-alpha. 23482 - If we hit the error case where routerlist_insert() replaces an 23483 existing (old) server descriptor, make sure to remove that 23484 server descriptor from the old_routers list. Fix related to bug 23485 1776. Bugfix on 0.2.2.18-alpha. 23486 23487 o Minor bugfixes (documentation and log messages): 23488 - Fix a typo in a log message in rend_service_rendezvous_has_opened(). 23489 Fixes bug 4856; bugfix on Tor 0.0.6. 23490 - Update "ClientOnly" man page entry to explain that there isn't 23491 really any point to messing with it. Resolves ticket 5005. 23492 - Document the GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays 23493 directory authority option (introduced in Tor 0.2.2.34). 23494 - Downgrade the "We're missing a certificate" message from notice 23495 to info: people kept mistaking it for a real problem, whereas it 23496 is seldom the problem even when we are failing to bootstrap. Fixes 23497 bug 5067; bugfix on 0.2.0.10-alpha. 23498 - Correctly spell "connect" in a log message on failure to create a 23499 controlsocket. Fixes bug 4803; bugfix on 0.2.2.26-beta. 23500 - Clarify the behavior of MaxCircuitDirtiness with hidden service 23501 circuits. Fixes issue 5259. 23502 23503 o Minor features: 23504 - Directory authorities now reject versions of Tor older than 23505 0.2.1.30, and Tor versions between 0.2.2.1-alpha and 0.2.2.20-alpha 23506 inclusive. These versions accounted for only a small fraction of 23507 the Tor network, and have numerous known security issues. Resolves 23508 issue 4788. 23509 - Update to the May 1 2012 Maxmind GeoLite Country database. 23510 23511 - Feature removal: 23512 - When sending or relaying a RELAY_EARLY cell, we used to convert 23513 it to a RELAY cell if the connection was using the v1 link 23514 protocol. This was a workaround for older versions of Tor, which 23515 didn't handle RELAY_EARLY cells properly. Now that all supported 23516 versions can handle RELAY_EARLY cells, and now that we're enforcing 23517 the "no RELAY_EXTEND commands except in RELAY_EARLY cells" rule, 23518 remove this workaround. Addresses bug 4786. 23519 23520 23521 Changes in version 0.2.2.35 - 2011-12-16 23522 Tor 0.2.2.35 fixes a critical heap-overflow security issue in Tor's 23523 buffers code. Absolutely everybody should upgrade. 23524 23525 The bug relied on an incorrect calculation when making data continuous 23526 in one of our IO buffers, if the first chunk of the buffer was 23527 misaligned by just the wrong amount. The miscalculation would allow an 23528 attacker to overflow a piece of heap-allocated memory. To mount this 23529 attack, the attacker would need to either open a SOCKS connection to 23530 Tor's SocksPort (usually restricted to localhost), or target a Tor 23531 instance configured to make its connections through a SOCKS proxy 23532 (which Tor does not do by default). 23533 23534 Good security practice requires that all heap-overflow bugs should be 23535 presumed to be exploitable until proven otherwise, so we are treating 23536 this as a potential code execution attack. Please upgrade immediately! 23537 This bug does not affect bufferevents-based builds of Tor. Special 23538 thanks to "Vektor" for reporting this issue to us! 23539 23540 Tor 0.2.2.35 also fixes several bugs in previous versions, including 23541 crash bugs for unusual configurations, and a long-term bug that 23542 would prevent Tor from starting on Windows machines with draconian 23543 AV software. 23544 23545 With this release, we remind everyone that 0.2.0.x has reached its 23546 formal end-of-life. Those Tor versions have many known flaws, and 23547 nobody should be using them. You should upgrade -- ideally to the 23548 0.2.2.x series. If you're using a Linux or BSD and its packages are 23549 obsolete, stop using those packages and upgrade anyway. 23550 23551 The Tor 0.2.1.x series is also approaching its end-of-life: it will no 23552 longer receive support after some time in early 2012. 23553 23554 o Major bugfixes: 23555 - Fix a heap overflow bug that could occur when trying to pull 23556 data into the first chunk of a buffer, when that chunk had 23557 already had some data drained from it. Fixes CVE-2011-2778; 23558 bugfix on 0.2.0.16-alpha. Reported by "Vektor". 23559 - Initialize Libevent with the EVENT_BASE_FLAG_NOLOCK flag enabled, so 23560 that it doesn't attempt to allocate a socketpair. This could cause 23561 some problems on Windows systems with overzealous firewalls. Fix for 23562 bug 4457; workaround for Libevent versions 2.0.1-alpha through 23563 2.0.15-stable. 23564 - If we mark an OR connection for close based on a cell we process, 23565 don't process any further cells on it. We already avoid further 23566 reads on marked-for-close connections, but now we also discard the 23567 cells we'd already read. Fixes bug 4299; bugfix on 0.2.0.10-alpha, 23568 which was the first version where we might mark a connection for 23569 close based on processing a cell on it. 23570 - Correctly sanity-check that we don't underflow on a memory 23571 allocation (and then assert) for hidden service introduction 23572 point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410; 23573 bugfix on 0.2.1.5-alpha. 23574 - Fix a memory leak when we check whether a hidden service 23575 descriptor has any usable introduction points left. Fixes bug 23576 4424. Bugfix on 0.2.2.25-alpha. 23577 - Don't crash when we're running as a relay and don't have a GeoIP 23578 file. Bugfix on 0.2.2.34; fixes bug 4340. This backports a fix 23579 we've had in the 0.2.3.x branch already. 23580 - When running as a client, do not print a misleading (and plain 23581 wrong) log message that we're collecting "directory request" 23582 statistics: clients don't collect statistics. Also don't create a 23583 useless (because empty) stats file in the stats/ directory. Fixes 23584 bug 4353; bugfix on 0.2.2.34. 23585 23586 o Minor bugfixes: 23587 - Detect failure to initialize Libevent. This fix provides better 23588 detection for future instances of bug 4457. 23589 - Avoid frequent calls to the fairly expensive cull_wedged_cpuworkers 23590 function. This was eating up hideously large amounts of time on some 23591 busy servers. Fixes bug 4518; bugfix on 0.0.9.8. 23592 - Resolve an integer overflow bug in smartlist_ensure_capacity(). 23593 Fixes bug 4230; bugfix on Tor 0.1.0.1-rc. Based on a patch by 23594 Mansour Moufid. 23595 - Don't warn about unused log_mutex in log.c when building with 23596 --disable-threads using a recent GCC. Fixes bug 4437; bugfix on 23597 0.1.0.6-rc which introduced --disable-threads. 23598 - When configuring, starting, or stopping an NT service, stop 23599 immediately after the service configuration attempt has succeeded 23600 or failed. Fixes bug 3963; bugfix on 0.2.0.7-alpha. 23601 - When sending a NETINFO cell, include the original address 23602 received for the other side, not its canonical address. Found 23603 by "troll_un"; fixes bug 4349; bugfix on 0.2.0.10-alpha. 23604 - Fix a typo in a hibernation-related log message. Fixes bug 4331; 23605 bugfix on 0.2.2.23-alpha; found by "tmpname0901". 23606 - Fix a memory leak in launch_direct_bridge_descriptor_fetch() that 23607 occurred when a client tried to fetch a descriptor for a bridge 23608 in ExcludeNodes. Fixes bug 4383; bugfix on 0.2.2.25-alpha. 23609 - Backport fixes for a pair of compilation warnings on Windows. 23610 Fixes bug 4521; bugfix on 0.2.2.28-beta and on 0.2.2.29-beta. 23611 - If we had ever tried to call tor_addr_to_str on an address of 23612 unknown type, we would have done a strdup on an uninitialized 23613 buffer. Now we won't. Fixes bug 4529; bugfix on 0.2.1.3-alpha. 23614 Reported by "troll_un". 23615 - Correctly detect and handle transient lookup failures from 23616 tor_addr_lookup. Fixes bug 4530; bugfix on 0.2.1.5-alpha. 23617 Reported by "troll_un". 23618 - Fix null-pointer access that could occur if TLS allocation failed. 23619 Fixes bug 4531; bugfix on 0.2.0.20-rc. Found by "troll_un". 23620 - Use tor_socket_t type for listener argument to accept(). Fixes bug 23621 4535; bugfix on 0.2.2.28-beta. Found by "troll_un". 23622 23623 o Minor features: 23624 - Add two new config options for directory authorities: 23625 AuthDirFastGuarantee sets a bandwidth threshold for guaranteeing the 23626 Fast flag, and AuthDirGuardBWGuarantee sets a bandwidth threshold 23627 that is always sufficient to satisfy the bandwidth requirement for 23628 the Guard flag. Now it will be easier for researchers to simulate 23629 Tor networks with different values. Resolves ticket 4484. 23630 - When Tor ignores a hidden service specified in its configuration, 23631 include the hidden service's directory in the warning message. 23632 Previously, we would only tell the user that some hidden service 23633 was ignored. Bugfix on 0.0.6; fixes bug 4426. 23634 - Update to the December 6 2011 Maxmind GeoLite Country database. 23635 23636 o Packaging changes: 23637 - Make it easier to automate expert package builds on Windows, 23638 by removing an absolute path from makensis.exe command. 23639 23640 23641 Changes in version 0.2.1.32 - 2011-12-16 23642 Tor 0.2.1.32 backports important security and privacy fixes for 23643 oldstable. This release is intended only for package maintainers and 23644 others who cannot use the 0.2.2 stable series. All others should be 23645 using Tor 0.2.2.x or newer. 23646 23647 The Tor 0.2.1.x series will reach formal end-of-life some time in 23648 early 2012; we will stop releasing patches for it then. 23649 23650 o Major bugfixes (also included in 0.2.2.x): 23651 - Correctly sanity-check that we don't underflow on a memory 23652 allocation (and then assert) for hidden service introduction 23653 point decryption. Bug discovered by Dan Rosenberg. Fixes bug 4410; 23654 bugfix on 0.2.1.5-alpha. 23655 - Fix a heap overflow bug that could occur when trying to pull 23656 data into the first chunk of a buffer, when that chunk had 23657 already had some data drained from it. Fixes CVE-2011-2778; 23658 bugfix on 0.2.0.16-alpha. Reported by "Vektor". 23659 23660 o Minor features: 23661 - Update to the December 6 2011 Maxmind GeoLite Country database. 23662 23663 23664 Changes in version 0.2.2.34 - 2011-10-26 23665 Tor 0.2.2.34 fixes a critical anonymity vulnerability where an attacker 23666 can deanonymize Tor users. Everybody should upgrade. 23667 23668 The attack relies on four components: 1) Clients reuse their TLS cert 23669 when talking to different relays, so relays can recognize a user by 23670 the identity key in her cert. 2) An attacker who knows the client's 23671 identity key can probe each guard relay to see if that identity key 23672 is connected to that guard relay right now. 3) A variety of active 23673 attacks in the literature (starting from "Low-Cost Traffic Analysis 23674 of Tor" by Murdoch and Danezis in 2005) allow a malicious website to 23675 discover the guard relays that a Tor user visiting the website is using. 23676 4) Clients typically pick three guards at random, so the set of guards 23677 for a given user could well be a unique fingerprint for her. This 23678 release fixes components #1 and #2, which is enough to block the attack; 23679 the other two remain as open research problems. Special thanks to 23680 "frosty_un" for reporting the issue to us! 23681 23682 Clients should upgrade so they are no longer recognizable by the TLS 23683 certs they present. Relays should upgrade so they no longer allow a 23684 remote attacker to probe them to test whether unpatched clients are 23685 currently connected to them. 23686 23687 This release also fixes several vulnerabilities that allow an attacker 23688 to enumerate bridge relays. Some bridge enumeration attacks still 23689 remain; see for example proposal 188. 23690 23691 o Privacy/anonymity fixes (clients): 23692 - Clients and bridges no longer send TLS certificate chains on 23693 outgoing OR connections. Previously, each client or bridge would 23694 use the same cert chain for all outgoing OR connections until 23695 its IP address changes, which allowed any relay that the client 23696 or bridge contacted to determine which entry guards it is using. 23697 Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un". 23698 - If a relay receives a CREATE_FAST cell on a TLS connection, it 23699 no longer considers that connection as suitable for satisfying a 23700 circuit EXTEND request. Now relays can protect clients from the 23701 CVE-2011-2768 issue even if the clients haven't upgraded yet. 23702 - Directory authorities no longer assign the Guard flag to relays 23703 that haven't upgraded to the above "refuse EXTEND requests 23704 to client connections" fix. Now directory authorities can 23705 protect clients from the CVE-2011-2768 issue even if neither 23706 the clients nor the relays have upgraded yet. There's a new 23707 "GiveGuardFlagTo_CVE_2011_2768_VulnerableRelays" config option 23708 to let us transition smoothly, else tomorrow there would be no 23709 guard relays. 23710 23711 o Privacy/anonymity fixes (bridge enumeration): 23712 - Bridge relays now do their directory fetches inside Tor TLS 23713 connections, like all the other clients do, rather than connecting 23714 directly to the DirPort like public relays do. Removes another 23715 avenue for enumerating bridges. Fixes bug 4115; bugfix on 0.2.0.35. 23716 - Bridges relays now build circuits for themselves in a more similar 23717 way to how clients build them. Removes another avenue for 23718 enumerating bridges. Fixes bug 4124; bugfix on 0.2.0.3-alpha, 23719 when bridges were introduced. 23720 - Bridges now refuse CREATE or CREATE_FAST cells on OR connections 23721 that they initiated. Relays could distinguish incoming bridge 23722 connections from client connections, creating another avenue for 23723 enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha. 23724 Found by "frosty_un". 23725 23726 o Major bugfixes: 23727 - Fix a crash bug when changing node restrictions while a DNS lookup 23728 is in-progress. Fixes bug 4259; bugfix on 0.2.2.25-alpha. Bugfix 23729 by "Tey'". 23730 - Don't launch a useless circuit after failing to use one of a 23731 hidden service's introduction points. Previously, we would 23732 launch a new introduction circuit, but not set the hidden service 23733 which that circuit was intended to connect to, so it would never 23734 actually be used. A different piece of code would then create a 23735 new introduction circuit correctly. Bug reported by katmagic and 23736 found by Sebastian Hahn. Bugfix on 0.2.1.13-alpha; fixes bug 4212. 23737 23738 o Minor bugfixes: 23739 - Change an integer overflow check in the OpenBSD_Malloc code so 23740 that GCC is less likely to eliminate it as impossible. Patch 23741 from Mansour Moufid. Fixes bug 4059. 23742 - When a hidden service turns an extra service-side introduction 23743 circuit into a general-purpose circuit, free the rend_data and 23744 intro_key fields first, so we won't leak memory if the circuit 23745 is cannibalized for use as another service-side introduction 23746 circuit. Bugfix on 0.2.1.7-alpha; fixes bug 4251. 23747 - Bridges now skip DNS self-tests, to act a little more stealthily. 23748 Fixes bug 4201; bugfix on 0.2.0.3-alpha, which first introduced 23749 bridges. Patch by "warms0x". 23750 - Fix internal bug-checking logic that was supposed to catch 23751 failures in digest generation so that it will fail more robustly 23752 if we ask for a nonexistent algorithm. Found by Coverity Scan. 23753 Bugfix on 0.2.2.1-alpha; fixes Coverity CID 479. 23754 - Report any failure in init_keys() calls launched because our 23755 IP address has changed. Spotted by Coverity Scan. Bugfix on 23756 0.1.1.4-alpha; fixes CID 484. 23757 23758 o Minor bugfixes (log messages and documentation): 23759 - Remove a confusing dollar sign from the example fingerprint in the 23760 man page, and also make the example fingerprint a valid one. Fixes 23761 bug 4309; bugfix on 0.2.1.3-alpha. 23762 - The next version of Windows will be called Windows 8, and it has 23763 a major version of 6, minor version of 2. Correctly identify that 23764 version instead of calling it "Very recent version". Resolves 23765 ticket 4153; reported by funkstar. 23766 - Downgrade log messages about circuit timeout calibration from 23767 "notice" to "info": they don't require or suggest any human 23768 intervention. Patch from Tom Lowenthal. Fixes bug 4063; 23769 bugfix on 0.2.2.14-alpha. 23770 23771 o Minor features: 23772 - Turn on directory request statistics by default and include them in 23773 extra-info descriptors. Don't break if we have no GeoIP database. 23774 Backported from 0.2.3.1-alpha; implements ticket 3951. 23775 - Update to the October 4 2011 Maxmind GeoLite Country database. 23776 23777 23778 Changes in version 0.2.1.31 - 2011-10-26 23779 Tor 0.2.1.31 backports important security and privacy fixes for 23780 oldstable. This release is intended only for package maintainers and 23781 others who cannot use the 0.2.2 stable series. All others should be 23782 using Tor 0.2.2.x or newer. 23783 23784 o Security fixes (also included in 0.2.2.x): 23785 - Replace all potentially sensitive memory comparison operations 23786 with versions whose runtime does not depend on the data being 23787 compared. This will help resist a class of attacks where an 23788 adversary can use variations in timing information to learn 23789 sensitive data. Fix for one case of bug 3122. (Safe memcmp 23790 implementation by Robert Ransom based partially on code by DJB.) 23791 - Fix an assert in parsing router descriptors containing IPv6 23792 addresses. This one took down the directory authorities when 23793 somebody tried some experimental code. Bugfix on 0.2.1.3-alpha. 23794 23795 o Privacy/anonymity fixes (also included in 0.2.2.x): 23796 - Clients and bridges no longer send TLS certificate chains on 23797 outgoing OR connections. Previously, each client or bridge would 23798 use the same cert chain for all outgoing OR connections until 23799 its IP address changes, which allowed any relay that the client 23800 or bridge contacted to determine which entry guards it is using. 23801 Fixes CVE-2011-2768. Bugfix on 0.0.9pre5; found by "frosty_un". 23802 - If a relay receives a CREATE_FAST cell on a TLS connection, it 23803 no longer considers that connection as suitable for satisfying a 23804 circuit EXTEND request. Now relays can protect clients from the 23805 CVE-2011-2768 issue even if the clients haven't upgraded yet. 23806 - Bridges now refuse CREATE or CREATE_FAST cells on OR connections 23807 that they initiated. Relays could distinguish incoming bridge 23808 connections from client connections, creating another avenue for 23809 enumerating bridges. Fixes CVE-2011-2769. Bugfix on 0.2.0.3-alpha. 23810 Found by "frosty_un". 23811 - When receiving a hidden service descriptor, check that it is for 23812 the hidden service we wanted. Previously, Tor would store any 23813 hidden service descriptors that a directory gave it, whether it 23814 wanted them or not. This wouldn't have let an attacker impersonate 23815 a hidden service, but it did let directories pre-seed a client 23816 with descriptors that it didn't want. Bugfix on 0.0.6. 23817 - Avoid linkability based on cached hidden service descriptors: forget 23818 all hidden service descriptors cached as a client when processing a 23819 SIGNAL NEWNYM command. Fixes bug 3000; bugfix on 0.0.6. 23820 - Make the bridge directory authority refuse to answer directory 23821 requests for "all" descriptors. It used to include bridge 23822 descriptors in its answer, which was a major information leak. 23823 Found by "piebeer". Bugfix on 0.2.0.3-alpha. 23824 - Don't attach new streams to old rendezvous circuits after SIGNAL 23825 NEWNYM. Previously, we would keep using an existing rendezvous 23826 circuit if it remained open (i.e. if it were kept open by a 23827 long-lived stream, or if a new stream were attached to it before 23828 Tor could notice that it was old and no longer in use). Bugfix on 23829 0.1.1.15-rc; fixes bug 3375. 23830 23831 o Minor bugfixes (also included in 0.2.2.x): 23832 - When we restart our relay, we might get a successful connection 23833 from the outside before we've started our reachability tests, 23834 triggering a warning: "ORPort found reachable, but I have no 23835 routerinfo yet. Failing to inform controller of success." This 23836 bug was harmless unless Tor is running under a controller 23837 like Vidalia, in which case the controller would never get a 23838 REACHABILITY_SUCCEEDED status event. Bugfix on 0.1.2.6-alpha; 23839 fixes bug 1172. 23840 - Build correctly on OSX with zlib 1.2.4 and higher with all warnings 23841 enabled. Fixes bug 1526. 23842 - Remove undocumented option "-F" from tor-resolve: it hasn't done 23843 anything since 0.2.1.16-rc. 23844 - Avoid signed/unsigned comparisons by making SIZE_T_CEILING unsigned. 23845 None of the cases where we did this before were wrong, but by making 23846 this change we avoid warnings. Fixes bug 2475; bugfix on 0.2.1.28. 23847 - Fix a rare crash bug that could occur when a client was configured 23848 with a large number of bridges. Fixes bug 2629; bugfix on 23849 0.2.1.2-alpha. Bugfix by trac user "shitlei". 23850 - Correct the warning displayed when a rendezvous descriptor exceeds 23851 the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found by 23852 John Brooks. 23853 - Fix an uncommon assertion failure when running with DNSPort under 23854 heavy load. Fixes bug 2933; bugfix on 0.2.0.1-alpha. 23855 - When warning about missing zlib development packages during compile, 23856 give the correct package names. Bugfix on 0.2.0.1-alpha. 23857 - Require that introduction point keys and onion keys have public 23858 exponent 65537. Bugfix on 0.2.0.10-alpha. 23859 - Do not crash when our configuration file becomes unreadable, for 23860 example due to a permissions change, between when we start up 23861 and when a controller calls SAVECONF. Fixes bug 3135; bugfix 23862 on 0.0.9pre6. 23863 - Fix warnings from GCC 4.6's "-Wunused-but-set-variable" option. 23864 Fixes bug 3208. 23865 - Always NUL-terminate the sun_path field of a sockaddr_un before 23866 passing it to the kernel. (Not a security issue: kernels are 23867 smart enough to reject bad sockaddr_uns.) Found by Coverity; 23868 CID #428. Bugfix on Tor 0.2.0.3-alpha. 23869 - Don't stack-allocate the list of supplementary GIDs when we're 23870 about to log them. Stack-allocating NGROUPS_MAX gid_t elements 23871 could take up to 256K, which is way too much stack. Found by 23872 Coverity; CID #450. Bugfix on 0.2.1.7-alpha. 23873 23874 o Minor bugfixes (only in 0.2.1.x): 23875 - Resume using micro-version numbers in 0.2.1.x: our Debian packages 23876 rely on them. Bugfix on 0.2.1.30. 23877 - Use git revisions instead of svn revisions when generating our 23878 micro-version numbers. Bugfix on 0.2.1.15-rc; fixes bug 2402. 23879 23880 o Minor features (also included in 0.2.2.x): 23881 - Adjust the expiration time on our SSL session certificates to 23882 better match SSL certs seen in the wild. Resolves ticket 4014. 23883 - Allow nameservers with IPv6 address. Resolves bug 2574. 23884 - Update to the October 4 2011 Maxmind GeoLite Country database. 23885 23886 23887 Changes in version 0.2.2.33 - 2011-09-13 23888 Tor 0.2.2.33 fixes several bugs, and includes a slight tweak to Tor's 23889 TLS handshake that makes relays and bridges that run this new version 23890 reachable from Iran again. 23891 23892 o Major bugfixes: 23893 - Avoid an assertion failure when reloading a configuration with 23894 TrackExitHosts changes. Found and fixed by 'laruldan'. Fixes bug 23895 3923; bugfix on 0.2.2.25-alpha. 23896 23897 o Minor features (security): 23898 - Check for replays of the public-key encrypted portion of an 23899 INTRODUCE1 cell, in addition to the current check for replays of 23900 the g^x value. This prevents a possible class of active attacks 23901 by an attacker who controls both an introduction point and a 23902 rendezvous point, and who uses the malleability of AES-CTR to 23903 alter the encrypted g^x portion of the INTRODUCE1 cell. We think 23904 that these attacks are infeasible (requiring the attacker to send 23905 on the order of zettabytes of altered cells in a short interval), 23906 but we'd rather block them off in case there are any classes of 23907 this attack that we missed. Reported by Willem Pinckaers. 23908 23909 o Minor features: 23910 - Adjust the expiration time on our SSL session certificates to 23911 better match SSL certs seen in the wild. Resolves ticket 4014. 23912 - Change the default required uptime for a relay to be accepted as 23913 a HSDir (hidden service directory) from 24 hours to 25 hours. 23914 Improves on 0.2.0.10-alpha; resolves ticket 2649. 23915 - Add a VoteOnHidServDirectoriesV2 config option to allow directory 23916 authorities to abstain from voting on assignment of the HSDir 23917 consensus flag. Related to bug 2649. 23918 - Update to the September 6 2011 Maxmind GeoLite Country database. 23919 23920 o Minor bugfixes (documentation and log messages): 23921 - Correct the man page to explain that HashedControlPassword and 23922 CookieAuthentication can both be set, in which case either method 23923 is sufficient to authenticate to Tor. Bugfix on 0.2.0.7-alpha, 23924 when we decided to allow these config options to both be set. Issue 23925 raised by bug 3898. 23926 - Demote the 'replay detected' log message emitted when a hidden 23927 service receives the same Diffie-Hellman public key in two different 23928 INTRODUCE2 cells to info level. A normal Tor client can cause that 23929 log message during its normal operation. Bugfix on 0.2.1.6-alpha; 23930 fixes part of bug 2442. 23931 - Demote the 'INTRODUCE2 cell is too {old,new}' log message to info 23932 level. There is nothing that a hidden service's operator can do 23933 to fix its clients' clocks. Bugfix on 0.2.1.6-alpha; fixes part 23934 of bug 2442. 23935 - Clarify a log message specifying the characters permitted in 23936 HiddenServiceAuthorizeClient client names. Previously, the log 23937 message said that "[A-Za-z0-9+-_]" were permitted; that could have 23938 given the impression that every ASCII character between "+" and "_" 23939 was permitted. Now we say "[A-Za-z0-9+_-]". Bugfix on 0.2.1.5-alpha. 23940 23941 o Build fixes: 23942 - Provide a substitute implementation of lround() for MSVC, which 23943 apparently lacks it. Patch from Gisle Vanem. 23944 - Clean up some code issues that prevented Tor from building on older 23945 BSDs. Fixes bug 3894; reported by "grarpamp". 23946 - Search for a platform-specific version of "ar" when cross-compiling. 23947 Should fix builds on iOS. Resolves bug 3909, found by Marco Bonetti. 23948 23949 23950 Changes in version 0.2.2.32 - 2011-08-27 23951 The Tor 0.2.2 release series is dedicated to the memory of Andreas 23952 Pfitzmann (1958-2010), a pioneer in anonymity and privacy research, 23953 a founder of the PETS community, a leader in our field, a mentor, 23954 and a friend. He left us with these words: "I had the possibility 23955 to contribute to this world that is not as it should be. I hope I 23956 could help in some areas to make the world a better place, and that 23957 I could also encourage other people to be engaged in improving the 23958 world. Please, stay engaged. This world needs you, your love, your 23959 initiative -- now I cannot be part of that anymore." 23960 23961 Tor 0.2.2.32, the first stable release in the 0.2.2 branch, is finally 23962 ready. More than two years in the making, this release features improved 23963 client performance and hidden service reliability, better compatibility 23964 for Android, correct behavior for bridges that listen on more than 23965 one address, more extensible and flexible directory object handling, 23966 better reporting of network statistics, improved code security, and 23967 many many other features and bugfixes. 23968 23969 o Major features (client performance): 23970 - When choosing which cells to relay first, relays now favor circuits 23971 that have been quiet recently, to provide lower latency for 23972 low-volume circuits. By default, relays enable or disable this 23973 feature based on a setting in the consensus. They can override 23974 this default by using the new "CircuitPriorityHalflife" config 23975 option. Design and code by Ian Goldberg, Can Tang, and Chris 23976 Alexander. 23977 - Directory authorities now compute consensus weightings that instruct 23978 clients how to weight relays flagged as Guard, Exit, Guard+Exit, 23979 and no flag. Clients use these weightings to distribute network load 23980 more evenly across these different relay types. The weightings are 23981 in the consensus so we can change them globally in the future. Extra 23982 thanks to "outofwords" for finding some nasty security bugs in 23983 the first implementation of this feature. 23984 23985 o Major features (client performance, circuit build timeout): 23986 - Tor now tracks how long it takes to build client-side circuits 23987 over time, and adapts its timeout to local network performance. 23988 Since a circuit that takes a long time to build will also provide 23989 bad performance, we get significant latency improvements by 23990 discarding the slowest 20% of circuits. Specifically, Tor creates 23991 circuits more aggressively than usual until it has enough data 23992 points for a good timeout estimate. Implements proposal 151. 23993 - Circuit build timeout constants can be controlled by consensus 23994 parameters. We set good defaults for these parameters based on 23995 experimentation on broadband and simulated high-latency links. 23996 - Circuit build time learning can be disabled via consensus parameter 23997 or by the client via a LearnCircuitBuildTimeout config option. We 23998 also automatically disable circuit build time calculation if either 23999 AuthoritativeDirectory is set, or if we fail to write our state 24000 file. Implements ticket 1296. 24001 24002 o Major features (relays use their capacity better): 24003 - Set SO_REUSEADDR socket option on all sockets, not just 24004 listeners. This should help busy exit nodes avoid running out of 24005 useable ports just because all the ports have been used in the 24006 near past. Resolves issue 2850. 24007 - Relays now save observed peak bandwidth throughput rates to their 24008 state file (along with total usage, which was already saved), 24009 so that they can determine their correct estimated bandwidth on 24010 restart. Resolves bug 1863, where Tor relays would reset their 24011 estimated bandwidth to 0 after restarting. 24012 - Lower the maximum weighted-fractional-uptime cutoff to 98%. This 24013 should give us approximately 40-50% more Guard-flagged nodes, 24014 improving the anonymity the Tor network can provide and also 24015 decreasing the dropoff in throughput that relays experience when 24016 they first get the Guard flag. 24017 - Directory authorities now take changes in router IP address and 24018 ORPort into account when determining router stability. Previously, 24019 if a router changed its IP or ORPort, the authorities would not 24020 treat it as having any downtime for the purposes of stability 24021 calculation, whereas clients would experience downtime since the 24022 change would take a while to propagate to them. Resolves issue 1035. 24023 - New AccelName and AccelDir options add support for dynamic OpenSSL 24024 hardware crypto acceleration engines. 24025 24026 o Major features (relays control their load better): 24027 - Exit relays now try harder to block exit attempts from unknown 24028 relays, to make it harder for people to use them as one-hop proxies 24029 a la tortunnel. Controlled by the refuseunknownexits consensus 24030 parameter (currently enabled), or you can override it on your 24031 relay with the RefuseUnknownExits torrc option. Resolves bug 1751; 24032 based on a variant of proposal 163. 24033 - Add separate per-conn write limiting to go with the per-conn read 24034 limiting. We added a global write limit in Tor 0.1.2.5-alpha, 24035 but never per-conn write limits. 24036 - New consensus params "bwconnrate" and "bwconnburst" to let us 24037 rate-limit client connections as they enter the network. It's 24038 controlled in the consensus so we can turn it on and off for 24039 experiments. It's starting out off. Based on proposal 163. 24040 24041 o Major features (controllers): 24042 - Export GeoIP information on bridge usage to controllers even if we 24043 have not yet been running for 24 hours. Now Vidalia bridge operators 24044 can get more accurate and immediate feedback about their 24045 contributions to the network. 24046 - Add an __OwningControllerProcess configuration option and a 24047 TAKEOWNERSHIP control-port command. Now a Tor controller can ensure 24048 that when it exits, Tor will shut down. Implements feature 3049. 24049 24050 o Major features (directory authorities): 24051 - Directory authorities now create, vote on, and serve multiple 24052 parallel formats of directory data as part of their voting process. 24053 Partially implements Proposal 162: "Publish the consensus in 24054 multiple flavors". 24055 - Directory authorities now agree on and publish small summaries 24056 of router information that clients can use in place of regular 24057 server descriptors. This transition will allow Tor 0.2.3 clients 24058 to use far less bandwidth for downloading information about the 24059 network. Begins the implementation of Proposal 158: "Clients 24060 download consensus + microdescriptors". 24061 - The directory voting system is now extensible to use multiple hash 24062 algorithms for signatures and resource selection. Newer formats 24063 are signed with SHA256, with a possibility for moving to a better 24064 hash algorithm in the future. 24065 - Directory authorities can now vote on arbitrary integer values as 24066 part of the consensus process. This is designed to help set 24067 network-wide parameters. Implements proposal 167. 24068 24069 o Major features and bugfixes (node selection): 24070 - Revise and reconcile the meaning of the ExitNodes, EntryNodes, 24071 ExcludeEntryNodes, ExcludeExitNodes, ExcludeNodes, and Strict*Nodes 24072 options. Previously, we had been ambiguous in describing what 24073 counted as an "exit" node, and what operations exactly "StrictNodes 24074 0" would permit. This created confusion when people saw nodes built 24075 through unexpected circuits, and made it hard to tell real bugs from 24076 surprises. Now the intended behavior is: 24077 . "Exit", in the context of ExitNodes and ExcludeExitNodes, means 24078 a node that delivers user traffic outside the Tor network. 24079 . "Entry", in the context of EntryNodes, means a node used as the 24080 first hop of a multihop circuit. It doesn't include direct 24081 connections to directory servers. 24082 . "ExcludeNodes" applies to all nodes. 24083 . "StrictNodes" changes the behavior of ExcludeNodes only. When 24084 StrictNodes is set, Tor should avoid all nodes listed in 24085 ExcludeNodes, even when it will make user requests fail. When 24086 StrictNodes is *not* set, then Tor should follow ExcludeNodes 24087 whenever it can, except when it must use an excluded node to 24088 perform self-tests, connect to a hidden service, provide a 24089 hidden service, fulfill a .exit request, upload directory 24090 information, or fetch directory information. 24091 Collectively, the changes to implement the behavior fix bug 1090. 24092 - If EntryNodes, ExitNodes, ExcludeNodes, or ExcludeExitNodes 24093 change during a config reload, mark and discard all our origin 24094 circuits. This fix should address edge cases where we change the 24095 config options and but then choose a circuit that we created before 24096 the change. 24097 - Make EntryNodes config option much more aggressive even when 24098 StrictNodes is not set. Before it would prepend your requested 24099 entrynodes to your list of guard nodes, but feel free to use others 24100 after that. Now it chooses only from your EntryNodes if any of 24101 those are available, and only falls back to others if a) they're 24102 all down and b) StrictNodes is not set. 24103 - Now we refresh your entry guards from EntryNodes at each consensus 24104 fetch -- rather than just at startup and then they slowly rot as 24105 the network changes. 24106 - Add support for the country code "{??}" in torrc options like 24107 ExcludeNodes, to indicate all routers of unknown country. Closes 24108 bug 1094. 24109 - ExcludeNodes now takes precedence over EntryNodes and ExitNodes: if 24110 a node is listed in both, it's treated as excluded. 24111 - ExcludeNodes now applies to directory nodes -- as a preference if 24112 StrictNodes is 0, or an absolute requirement if StrictNodes is 1. 24113 Don't exclude all the directory authorities and set StrictNodes to 1 24114 unless you really want your Tor to break. 24115 - ExcludeNodes and ExcludeExitNodes now override exit enclaving. 24116 - ExcludeExitNodes now overrides .exit requests. 24117 - We don't use bridges listed in ExcludeNodes. 24118 - When StrictNodes is 1: 24119 . We now apply ExcludeNodes to hidden service introduction points 24120 and to rendezvous points selected by hidden service users. This 24121 can make your hidden service less reliable: use it with caution! 24122 . If we have used ExcludeNodes on ourself, do not try relay 24123 reachability self-tests. 24124 . If we have excluded all the directory authorities, we will not 24125 even try to upload our descriptor if we're a relay. 24126 . Do not honor .exit requests to an excluded node. 24127 - When the set of permitted nodes changes, we now remove any mappings 24128 introduced via TrackExitHosts to now-excluded nodes. Bugfix on 24129 0.1.0.1-rc. 24130 - We never cannibalize a circuit that had excluded nodes on it, even 24131 if StrictNodes is 0. Bugfix on 0.1.0.1-rc. 24132 - Improve log messages related to excluded nodes. 24133 24134 o Major features (misc): 24135 - Numerous changes, bugfixes, and workarounds from Nathan Freitas 24136 to help Tor build correctly for Android phones. 24137 - The options SocksPort, ControlPort, and so on now all accept a 24138 value "auto" that opens a socket on an OS-selected port. A 24139 new ControlPortWriteToFile option tells Tor to write its 24140 actual control port or ports to a chosen file. If the option 24141 ControlPortFileGroupReadable is set, the file is created as 24142 group-readable. Now users can run two Tor clients on the same 24143 system without needing to manually mess with parameters. Resolves 24144 part of ticket 3076. 24145 - Tor now supports tunneling all of its outgoing connections over 24146 a SOCKS proxy, using the SOCKS4Proxy and/or SOCKS5Proxy 24147 configuration options. Code by Christopher Davis. 24148 24149 o Code security improvements: 24150 - Replace all potentially sensitive memory comparison operations 24151 with versions whose runtime does not depend on the data being 24152 compared. This will help resist a class of attacks where an 24153 adversary can use variations in timing information to learn 24154 sensitive data. Fix for one case of bug 3122. (Safe memcmp 24155 implementation by Robert Ransom based partially on code by DJB.) 24156 - Enable Address Space Layout Randomization (ASLR) and Data Execution 24157 Prevention (DEP) by default on Windows to make it harder for 24158 attackers to exploit vulnerabilities. Patch from John Brooks. 24159 - New "--enable-gcc-hardening" ./configure flag (off by default) 24160 to turn on gcc compile time hardening options. It ensures 24161 that signed ints have defined behavior (-fwrapv), enables 24162 -D_FORTIFY_SOURCE=2 (requiring -O2), adds stack smashing protection 24163 with canaries (-fstack-protector-all), turns on ASLR protection if 24164 supported by the kernel (-fPIE, -pie), and adds additional security 24165 related warnings. Verified to work on Mac OS X and Debian Lenny. 24166 - New "--enable-linker-hardening" ./configure flag (off by default) 24167 to turn on ELF specific hardening features (relro, now). This does 24168 not work with Mac OS X or any other non-ELF binary format. 24169 - Always search the Windows system directory for system DLLs, and 24170 nowhere else. Bugfix on 0.1.1.23; fixes bug 1954. 24171 - New DisableAllSwap option. If set to 1, Tor will attempt to lock all 24172 current and future memory pages via mlockall(). On supported 24173 platforms (modern Linux and probably BSD but not Windows or OS X), 24174 this should effectively disable any and all attempts to page out 24175 memory. This option requires that you start your Tor as root -- 24176 if you use DisableAllSwap, please consider using the User option 24177 to properly reduce the privileges of your Tor. 24178 24179 o Major bugfixes (crashes): 24180 - Fix crash bug on platforms where gmtime and localtime can return 24181 NULL. Windows 7 users were running into this one. Fixes part of bug 24182 2077. Bugfix on all versions of Tor. Found by boboper. 24183 - Introduce minimum/maximum values that clients will believe 24184 from the consensus. Now we'll have a better chance to avoid crashes 24185 or worse when a consensus param has a weird value. 24186 - Fix a rare crash bug that could occur when a client was configured 24187 with a large number of bridges. Fixes bug 2629; bugfix on 24188 0.2.1.2-alpha. Bugfix by trac user "shitlei". 24189 - Do not crash when our configuration file becomes unreadable, for 24190 example due to a permissions change, between when we start up 24191 and when a controller calls SAVECONF. Fixes bug 3135; bugfix 24192 on 0.0.9pre6. 24193 - If we're in the pathological case where there's no exit bandwidth 24194 but there is non-exit bandwidth, or no guard bandwidth but there 24195 is non-guard bandwidth, don't crash during path selection. Bugfix 24196 on 0.2.0.3-alpha. 24197 - Fix a crash bug when trying to initialize the evdns module in 24198 Libevent 2. Bugfix on 0.2.1.16-rc. 24199 24200 o Major bugfixes (stability): 24201 - Fix an assert in parsing router descriptors containing IPv6 24202 addresses. This one took down the directory authorities when 24203 somebody tried some experimental code. Bugfix on 0.2.1.3-alpha. 24204 - Fix an uncommon assertion failure when running with DNSPort under 24205 heavy load. Fixes bug 2933; bugfix on 0.2.0.1-alpha. 24206 - Treat an unset $HOME like an empty $HOME rather than triggering an 24207 assert. Bugfix on 0.0.8pre1; fixes bug 1522. 24208 - More gracefully handle corrupt state files, removing asserts 24209 in favor of saving a backup and resetting state. 24210 - Instead of giving an assertion failure on an internal mismatch 24211 on estimated freelist size, just log a BUG warning and try later. 24212 Mitigates but does not fix bug 1125. 24213 - Fix an assert that got triggered when using the TestingTorNetwork 24214 configuration option and then issuing a GETINFO config-text control 24215 command. Fixes bug 2250; bugfix on 0.2.1.2-alpha. 24216 - If the cached cert file is unparseable, warn but don't exit. 24217 24218 o Privacy fixes (relays/bridges): 24219 - Don't list Windows capabilities in relay descriptors. We never made 24220 use of them, and maybe it's a bad idea to publish them. Bugfix 24221 on 0.1.1.8-alpha. 24222 - If the Nickname configuration option isn't given, Tor would pick a 24223 nickname based on the local hostname as the nickname for a relay. 24224 Because nicknames are not very important in today's Tor and the 24225 "Unnamed" nickname has been implemented, this is now problematic 24226 behavior: It leaks information about the hostname without being 24227 useful at all. Fixes bug 2979; bugfix on 0.1.2.2-alpha, which 24228 introduced the Unnamed nickname. Reported by tagnaq. 24229 - Maintain separate TLS contexts and certificates for incoming and 24230 outgoing connections in bridge relays. Previously we would use the 24231 same TLS contexts and certs for incoming and outgoing connections. 24232 Bugfix on 0.2.0.3-alpha; addresses bug 988. 24233 - Maintain separate identity keys for incoming and outgoing TLS 24234 contexts in bridge relays. Previously we would use the same 24235 identity keys for incoming and outgoing TLS contexts. Bugfix on 24236 0.2.0.3-alpha; addresses the other half of bug 988. 24237 - Make the bridge directory authority refuse to answer directory 24238 requests for "all descriptors". It used to include bridge 24239 descriptors in its answer, which was a major information leak. 24240 Found by "piebeer". Bugfix on 0.2.0.3-alpha. 24241 24242 o Privacy fixes (clients): 24243 - When receiving a hidden service descriptor, check that it is for 24244 the hidden service we wanted. Previously, Tor would store any 24245 hidden service descriptors that a directory gave it, whether it 24246 wanted them or not. This wouldn't have let an attacker impersonate 24247 a hidden service, but it did let directories pre-seed a client 24248 with descriptors that it didn't want. Bugfix on 0.0.6. 24249 - Start the process of disabling ".exit" address notation, since it 24250 can be used for a variety of esoteric application-level attacks 24251 on users. To reenable it, set "AllowDotExit 1" in your torrc. Fix 24252 on 0.0.9rc5. 24253 - Reject attempts at the client side to open connections to private 24254 IP addresses (like 127.0.0.1, 10.0.0.1, and so on) with 24255 a randomly chosen exit node. Attempts to do so are always 24256 ill-defined, generally prevented by exit policies, and usually 24257 in error. This will also help to detect loops in transparent 24258 proxy configurations. You can disable this feature by setting 24259 "ClientRejectInternalAddresses 0" in your torrc. 24260 - Log a notice when we get a new control connection. Now it's easier 24261 for security-conscious users to recognize when a local application 24262 is knocking on their controller door. Suggested by bug 1196. 24263 24264 o Privacy fixes (newnym): 24265 - Avoid linkability based on cached hidden service descriptors: forget 24266 all hidden service descriptors cached as a client when processing a 24267 SIGNAL NEWNYM command. Fixes bug 3000; bugfix on 0.0.6. 24268 - On SIGHUP, do not clear out all TrackHostExits mappings, client 24269 DNS cache entries, and virtual address mappings: that's what 24270 NEWNYM is for. Fixes bug 1345; bugfix on 0.1.0.1-rc. 24271 - Don't attach new streams to old rendezvous circuits after SIGNAL 24272 NEWNYM. Previously, we would keep using an existing rendezvous 24273 circuit if it remained open (i.e. if it were kept open by a 24274 long-lived stream, or if a new stream were attached to it before 24275 Tor could notice that it was old and no longer in use). Bugfix on 24276 0.1.1.15-rc; fixes bug 3375. 24277 24278 o Major bugfixes (relay bandwidth accounting): 24279 - Fix a bug that could break accounting on 64-bit systems with large 24280 time_t values, making them hibernate for impossibly long intervals. 24281 Fixes bug 2146. Bugfix on 0.0.9pre6; fix by boboper. 24282 - Fix a bug in bandwidth accounting that could make us use twice 24283 the intended bandwidth when our interval start changes due to 24284 daylight saving time. Now we tolerate skew in stored vs computed 24285 interval starts: if the start of the period changes by no more than 24286 50% of the period's duration, we remember bytes that we transferred 24287 in the old period. Fixes bug 1511; bugfix on 0.0.9pre5. 24288 24289 o Major bugfixes (bridges): 24290 - Bridges now use "reject *:*" as their default exit policy. Bugfix 24291 on 0.2.0.3-alpha. Fixes bug 1113. 24292 - If you configure your bridge with a known identity fingerprint, 24293 and the bridge authority is unreachable (as it is in at least 24294 one country now), fall back to directly requesting the descriptor 24295 from the bridge. Finishes the feature started in 0.2.0.10-alpha; 24296 closes bug 1138. 24297 - Fix a bug where bridge users who configure the non-canonical 24298 address of a bridge automatically switch to its canonical 24299 address. If a bridge listens at more than one address, it 24300 should be able to advertise those addresses independently and 24301 any non-blocked addresses should continue to work. Bugfix on Tor 24302 0.2.0.3-alpha. Fixes bug 2510. 24303 - If you configure Tor to use bridge A, and then quit and 24304 configure Tor to use bridge B instead (or if you change Tor 24305 to use bridge B via the controller), it would happily continue 24306 to use bridge A if it's still reachable. While this behavior is 24307 a feature if your goal is connectivity, in some scenarios it's a 24308 dangerous bug. Bugfix on Tor 0.2.0.1-alpha; fixes bug 2511. 24309 - When the controller configures a new bridge, don't wait 10 to 60 24310 seconds before trying to fetch its descriptor. Bugfix on 24311 0.2.0.3-alpha; fixes bug 3198 (suggested by 2355). 24312 24313 o Major bugfixes (directory authorities): 24314 - Many relays have been falling out of the consensus lately because 24315 not enough authorities know about their descriptor for them to get 24316 a majority of votes. When we deprecated the v2 directory protocol, 24317 we got rid of the only way that v3 authorities can hear from each 24318 other about other descriptors. Now authorities examine every v3 24319 vote for new descriptors, and fetch them from that authority. Bugfix 24320 on 0.2.1.23. 24321 - Authorities could be tricked into giving out the Exit flag to relays 24322 that didn't allow exiting to any ports. This bug could screw 24323 with load balancing and stats. Bugfix on 0.1.1.6-alpha; fixes bug 24324 1238. Bug discovered by Martin Kowalczyk. 24325 - If all authorities restart at once right before a consensus vote, 24326 nobody will vote about "Running", and clients will get a consensus 24327 with no usable relays. Instead, authorities refuse to build a 24328 consensus if this happens. Bugfix on 0.2.0.10-alpha; fixes bug 1066. 24329 24330 o Major bugfixes (stream-level fairness): 24331 - When receiving a circuit-level SENDME for a blocked circuit, try 24332 to package cells fairly from all the streams that had previously 24333 been blocked on that circuit. Previously, we had started with the 24334 oldest stream, and allowed each stream to potentially exhaust 24335 the circuit's package window. This gave older streams on any 24336 given circuit priority over newer ones. Fixes bug 1937. Detected 24337 originally by Camilo Viecco. This bug was introduced before the 24338 first Tor release, in svn commit r152: it is the new winner of 24339 the longest-lived bug prize. 24340 - Fix a stream fairness bug that would cause newer streams on a given 24341 circuit to get preference when reading bytes from the origin or 24342 destination. Fixes bug 2210. Fix by Mashael AlSabah. This bug was 24343 introduced before the first Tor release, in svn revision r152. 24344 - When the exit relay got a circuit-level sendme cell, it started 24345 reading on the exit streams, even if had 500 cells queued in the 24346 circuit queue already, so the circuit queue just grew and grew in 24347 some cases. We fix this by not re-enabling reading on receipt of a 24348 sendme cell when the cell queue is blocked. Fixes bug 1653. Bugfix 24349 on 0.2.0.1-alpha. Detected by Mashael AlSabah. Original patch by 24350 "yetonetime". 24351 - Newly created streams were allowed to read cells onto circuits, 24352 even if the circuit's cell queue was blocked and waiting to drain. 24353 This created potential unfairness, as older streams would be 24354 blocked, but newer streams would gladly fill the queue completely. 24355 We add code to detect this situation and prevent any stream from 24356 getting more than one free cell. Bugfix on 0.2.0.1-alpha. Partially 24357 fixes bug 1298. 24358 24359 o Major bugfixes (hidden services): 24360 - Apply circuit timeouts to opened hidden-service-related circuits 24361 based on the correct start time. Previously, we would apply the 24362 circuit build timeout based on time since the circuit's creation; 24363 it was supposed to be applied based on time since the circuit 24364 entered its current state. Bugfix on 0.0.6; fixes part of bug 1297. 24365 - Improve hidden service robustness: When we find that we have 24366 extended a hidden service's introduction circuit to a relay not 24367 listed as an introduction point in the HS descriptor we currently 24368 have, retry with an introduction point from the current 24369 descriptor. Previously we would just give up. Fixes bugs 1024 and 24370 1930; bugfix on 0.2.0.10-alpha. 24371 - Directory authorities now use data collected from their own 24372 uptime observations when choosing whether to assign the HSDir flag 24373 to relays, instead of trusting the uptime value the relay reports in 24374 its descriptor. This change helps prevent an attack where a small 24375 set of nodes with frequently-changing identity keys can blackhole 24376 a hidden service. (Only authorities need upgrade; others will be 24377 fine once they do.) Bugfix on 0.2.0.10-alpha; fixes bug 2709. 24378 - Stop assigning the HSDir flag to relays that disable their 24379 DirPort (and thus will refuse to answer directory requests). This 24380 fix should dramatically improve the reachability of hidden services: 24381 hidden services and hidden service clients pick six HSDir relays 24382 to store and retrieve the hidden service descriptor, and currently 24383 about half of the HSDir relays will refuse to work. Bugfix on 24384 0.2.0.10-alpha; fixes part of bug 1693. 24385 24386 o Major bugfixes (misc): 24387 - Clients now stop trying to use an exit node associated with a given 24388 destination by TrackHostExits if they fail to reach that exit node. 24389 Fixes bug 2999. Bugfix on 0.2.0.20-rc. 24390 - Fix a regression that caused Tor to rebind its ports if it receives 24391 SIGHUP while hibernating. Bugfix in 0.1.1.6-alpha; closes bug 919. 24392 - Remove an extra pair of quotation marks around the error 24393 message in control-port STATUS_GENERAL BUG events. Bugfix on 24394 0.1.2.6-alpha; fixes bug 3732. 24395 24396 o Minor features (relays): 24397 - Ensure that no empty [dirreq-](read|write)-history lines are added 24398 to an extrainfo document. Implements ticket 2497. 24399 - When bandwidth accounting is enabled, be more generous with how 24400 much bandwidth we'll use up before entering "soft hibernation". 24401 Previously, we'd refuse new connections and circuits once we'd 24402 used up 95% of our allotment. Now, we use up 95% of our allotment, 24403 AND make sure that we have no more than 500MB (or 3 hours of 24404 expected traffic, whichever is lower) remaining before we enter 24405 soft hibernation. 24406 - Relays now log the reason for publishing a new relay descriptor, 24407 so we have a better chance of hunting down instances of bug 1810. 24408 Resolves ticket 3252. 24409 - Log a little more clearly about the times at which we're no longer 24410 accepting new connections (e.g. due to hibernating). Resolves 24411 bug 2181. 24412 - When AllowSingleHopExits is set, print a warning to explain to the 24413 relay operator why most clients are avoiding her relay. 24414 - Send END_STREAM_REASON_NOROUTE in response to EHOSTUNREACH errors. 24415 Clients before 0.2.1.27 didn't handle NOROUTE correctly, but such 24416 clients are already deprecated because of security bugs. 24417 24418 o Minor features (network statistics): 24419 - Directory mirrors that set "DirReqStatistics 1" write statistics 24420 about directory requests to disk every 24 hours. As compared to the 24421 "--enable-geoip-stats" ./configure flag in 0.2.1.x, there are a few 24422 improvements: 1) stats are written to disk exactly every 24 hours; 24423 2) estimated shares of v2 and v3 requests are determined as mean 24424 values, not at the end of a measurement period; 3) unresolved 24425 requests are listed with country code '??'; 4) directories also 24426 measure download times. 24427 - Exit nodes that set "ExitPortStatistics 1" write statistics on the 24428 number of exit streams and transferred bytes per port to disk every 24429 24 hours. 24430 - Relays that set "CellStatistics 1" write statistics on how long 24431 cells spend in their circuit queues to disk every 24 hours. 24432 - Entry nodes that set "EntryStatistics 1" write statistics on the 24433 rough number and origins of connecting clients to disk every 24 24434 hours. 24435 - Relays that write any of the above statistics to disk and set 24436 "ExtraInfoStatistics 1" include the past 24 hours of statistics in 24437 their extra-info documents. Implements proposal 166. 24438 24439 o Minor features (GeoIP and statistics): 24440 - Provide a log message stating which geoip file we're parsing 24441 instead of just stating that we're parsing the geoip file. 24442 Implements ticket 2432. 24443 - Make sure every relay writes a state file at least every 12 hours. 24444 Previously, a relay could go for weeks without writing its state 24445 file, and on a crash could lose its bandwidth history, capacity 24446 estimates, client country statistics, and so on. Addresses bug 3012. 24447 - Relays report the number of bytes spent on answering directory 24448 requests in extra-info descriptors similar to {read,write}-history. 24449 Implements enhancement 1790. 24450 - Report only the top 10 ports in exit-port stats in order not to 24451 exceed the maximum extra-info descriptor length of 50 KB. Implements 24452 task 2196. 24453 - If writing the state file to disk fails, wait up to an hour before 24454 retrying again, rather than trying again each second. Fixes bug 24455 2346; bugfix on Tor 0.1.1.3-alpha. 24456 - Delay geoip stats collection by bridges for 6 hours, not 2 hours, 24457 when we switch from being a public relay to a bridge. Otherwise 24458 there will still be clients that see the relay in their consensus, 24459 and the stats will end up wrong. Bugfix on 0.2.1.15-rc; fixes 24460 bug 932. 24461 - Update to the August 2 2011 Maxmind GeoLite Country database. 24462 24463 o Minor features (clients): 24464 - When expiring circuits, use microsecond timers rather than 24465 one-second timers. This can avoid an unpleasant situation where a 24466 circuit is launched near the end of one second and expired right 24467 near the beginning of the next, and prevent fluctuations in circuit 24468 timeout values. 24469 - If we've configured EntryNodes and our network goes away and/or all 24470 our entrynodes get marked down, optimistically retry them all when 24471 a new socks application request appears. Fixes bug 1882. 24472 - Always perform router selections using weighted relay bandwidth, 24473 even if we don't need a high capacity circuit at the time. Non-fast 24474 circuits now only differ from fast ones in that they can use relays 24475 not marked with the Fast flag. This "feature" could turn out to 24476 be a horrible bug; we should investigate more before it goes into 24477 a stable release. 24478 - When we run out of directory information such that we can't build 24479 circuits, but then get enough that we can build circuits, log when 24480 we actually construct a circuit, so the user has a better chance of 24481 knowing what's going on. Fixes bug 1362. 24482 - Log SSL state transitions at debug level during handshake, and 24483 include SSL states in error messages. This may help debug future 24484 SSL handshake issues. 24485 24486 o Minor features (directory authorities): 24487 - When a router changes IP address or port, authorities now launch 24488 a new reachability test for it. Implements ticket 1899. 24489 - Directory authorities now reject relays running any versions of 24490 Tor between 0.2.1.3-alpha and 0.2.1.18 inclusive; they have 24491 known bugs that keep RELAY_EARLY cells from working on rendezvous 24492 circuits. Followup to fix for bug 2081. 24493 - Directory authorities now reject relays running any version of Tor 24494 older than 0.2.0.26-rc. That version is the earliest that fetches 24495 current directory information correctly. Fixes bug 2156. 24496 - Directory authorities now do an immediate reachability check as soon 24497 as they hear about a new relay. This change should slightly reduce 24498 the time between setting up a relay and getting listed as running 24499 in the consensus. It should also improve the time between setting 24500 up a bridge and seeing use by bridge users. 24501 - Directory authorities no longer launch a TLS connection to every 24502 relay as they startup. Now that we have 2k+ descriptors cached, 24503 the resulting network hiccup is becoming a burden. Besides, 24504 authorities already avoid voting about Running for the first half 24505 hour of their uptime. 24506 - Directory authorities now log the source of a rejected POSTed v3 24507 networkstatus vote, so we can track failures better. 24508 - Backport code from 0.2.3.x that allows directory authorities to 24509 clean their microdescriptor caches. Needed to resolve bug 2230. 24510 24511 o Minor features (hidden services): 24512 - Use computed circuit-build timeouts to decide when to launch 24513 parallel introduction circuits for hidden services. (Previously, 24514 we would retry after 15 seconds.) 24515 - Don't allow v0 hidden service authorities to act as clients. 24516 Required by fix for bug 3000. 24517 - Ignore SIGNAL NEWNYM commands on relay-only Tor instances. Required 24518 by fix for bug 3000. 24519 - Make hidden services work better in private Tor networks by not 24520 requiring any uptime to join the hidden service descriptor 24521 DHT. Implements ticket 2088. 24522 - Log (at info level) when purging pieces of hidden-service-client 24523 state because of SIGNAL NEWNYM. 24524 24525 o Minor features (controller interface): 24526 - New "GETINFO net/listeners/(type)" controller command to return 24527 a list of addresses and ports that are bound for listeners for a 24528 given connection type. This is useful when the user has configured 24529 "SocksPort auto" and the controller needs to know which port got 24530 chosen. Resolves another part of ticket 3076. 24531 - Have the controller interface give a more useful message than 24532 "Internal Error" in response to failed GETINFO requests. 24533 - Add a TIMEOUT_RATE keyword to the BUILDTIMEOUT_SET control port 24534 event, to give information on the current rate of circuit timeouts 24535 over our stored history. 24536 - The 'EXTENDCIRCUIT' control port command can now be used with 24537 a circ id of 0 and no path. This feature will cause Tor to build 24538 a new 'fast' general purpose circuit using its own path selection 24539 algorithms. 24540 - Added a BUILDTIMEOUT_SET controller event to describe changes 24541 to the circuit build timeout. 24542 - New controller command "getinfo config-text". It returns the 24543 contents that Tor would write if you send it a SAVECONF command, 24544 so the controller can write the file to disk itself. 24545 24546 o Minor features (controller protocol): 24547 - Add a new ControlSocketsGroupWritable configuration option: when 24548 it is turned on, ControlSockets are group-writeable by the default 24549 group of the current user. Patch by Jérémy Bobbio; implements 24550 ticket 2972. 24551 - Tor now refuses to create a ControlSocket in a directory that is 24552 world-readable (or group-readable if ControlSocketsGroupWritable 24553 is 0). This is necessary because some operating systems do not 24554 enforce permissions on an AF_UNIX sockets. Permissions on the 24555 directory holding the socket, however, seems to work everywhere. 24556 - Warn when CookieAuthFileGroupReadable is set but CookieAuthFile is 24557 not. This would lead to a cookie that is still not group readable. 24558 Closes bug 1843. Suggested by katmagic. 24559 - Future-proof the controller protocol a bit by ignoring keyword 24560 arguments we do not recognize. 24561 24562 o Minor features (more useful logging): 24563 - Revise most log messages that refer to nodes by nickname to 24564 instead use the "$key=nickname at address" format. This should be 24565 more useful, especially since nicknames are less and less likely 24566 to be unique. Resolves ticket 3045. 24567 - When an HTTPS proxy reports "403 Forbidden", we now explain 24568 what it means rather than calling it an unexpected status code. 24569 Closes bug 2503. Patch from Michael Yakubovich. 24570 - Rate-limit a warning about failures to download v2 networkstatus 24571 documents. Resolves part of bug 1352. 24572 - Rate-limit the "your application is giving Tor only an IP address" 24573 warning. Addresses bug 2000; bugfix on 0.0.8pre2. 24574 - Rate-limit "Failed to hand off onionskin" warnings. 24575 - When logging a rate-limited warning, we now mention how many messages 24576 got suppressed since the last warning. 24577 - Make the formerly ugly "2 unknown, 7 missing key, 0 good, 0 bad, 24578 2 no signature, 4 required" messages about consensus signatures 24579 easier to read, and make sure they get logged at the same severity 24580 as the messages explaining which keys are which. Fixes bug 1290. 24581 - Don't warn when we have a consensus that we can't verify because 24582 of missing certificates, unless those certificates are ones 24583 that we have been trying and failing to download. Fixes bug 1145. 24584 24585 o Minor features (log domains): 24586 - Add documentation for configuring logging at different severities in 24587 different log domains. We've had this feature since 0.2.1.1-alpha, 24588 but for some reason it never made it into the manpage. Fixes 24589 bug 2215. 24590 - Make it simpler to specify "All log domains except for A and B". 24591 Previously you needed to say "[*,~A,~B]". Now you can just say 24592 "[~A,~B]". 24593 - Add a "LogMessageDomains 1" option to include the domains of log 24594 messages along with the messages. Without this, there's no way 24595 to use log domains without reading the source or doing a lot 24596 of guessing. 24597 - Add a new "Handshake" log domain for activities that happen 24598 during the TLS handshake. 24599 24600 o Minor features (build process): 24601 - Make compilation with clang possible when using 24602 "--enable-gcc-warnings" by removing two warning options that clang 24603 hasn't implemented yet and by fixing a few warnings. Resolves 24604 ticket 2696. 24605 - Detect platforms that brokenly use a signed size_t, and refuse to 24606 build there. Found and analyzed by doorss and rransom. 24607 - Fix a bunch of compile warnings revealed by mingw with gcc 4.5. 24608 Resolves bug 2314. 24609 - Add support for statically linking zlib by specifying 24610 "--enable-static-zlib", to go with our support for statically 24611 linking openssl and libevent. Resolves bug 1358. 24612 - Instead of adding the svn revision to the Tor version string, report 24613 the git commit (when we're building from a git checkout). 24614 - Rename the "log.h" header to "torlog.h" so as to conflict with fewer 24615 system headers. 24616 - New --digests command-line switch to output the digests of the 24617 source files Tor was built with. 24618 - Generate our manpage and HTML documentation using Asciidoc. This 24619 change should make it easier to maintain the documentation, and 24620 produce nicer HTML. The build process fails if asciidoc cannot 24621 be found and building with asciidoc isn't disabled (via the 24622 "--disable-asciidoc" argument to ./configure. Skipping the manpage 24623 speeds up the build considerably. 24624 24625 o Minor features (options / torrc): 24626 - Warn when the same option is provided more than once in a torrc 24627 file, on the command line, or in a single SETCONF statement, and 24628 the option is one that only accepts a single line. Closes bug 1384. 24629 - Warn when the user configures two HiddenServiceDir lines that point 24630 to the same directory. Bugfix on 0.0.6 (the version introducing 24631 HiddenServiceDir); fixes bug 3289. 24632 - Add new "perconnbwrate" and "perconnbwburst" consensus params to 24633 do individual connection-level rate limiting of clients. The torrc 24634 config options with the same names trump the consensus params, if 24635 both are present. Replaces the old "bwconnrate" and "bwconnburst" 24636 consensus params which were broken from 0.2.2.7-alpha through 24637 0.2.2.14-alpha. Closes bug 1947. 24638 - New config option "WarnUnsafeSocks 0" disables the warning that 24639 occurs whenever Tor receives a socks handshake using a version of 24640 the socks protocol that can only provide an IP address (rather 24641 than a hostname). Setups that do DNS locally over Tor are fine, 24642 and we shouldn't spam the logs in that case. 24643 - New config option "CircuitStreamTimeout" to override our internal 24644 timeout schedule for how many seconds until we detach a stream from 24645 a circuit and try a new circuit. If your network is particularly 24646 slow, you might want to set this to a number like 60. 24647 - New options for SafeLogging to allow scrubbing only log messages 24648 generated while acting as a relay. Specify "SafeLogging relay" if 24649 you want to ensure that only messages known to originate from 24650 client use of the Tor process will be logged unsafely. 24651 - Time and memory units in the configuration file can now be set to 24652 fractional units. For example, "2.5 GB" is now a valid value for 24653 AccountingMax. 24654 - Support line continuations in the torrc config file. If a line 24655 ends with a single backslash character, the newline is ignored, and 24656 the configuration value is treated as continuing on the next line. 24657 Resolves bug 1929. 24658 24659 o Minor features (unit tests): 24660 - Revise our unit tests to use the "tinytest" framework, so we 24661 can run tests in their own processes, have smarter setup/teardown 24662 code, and so on. The unit test code has moved to its own 24663 subdirectory, and has been split into multiple modules. 24664 - Add a unit test for cross-platform directory-listing code. 24665 - Add some forgotten return value checks during unit tests. Found 24666 by coverity. 24667 - Use GetTempDir to find the proper temporary directory location on 24668 Windows when generating temporary files for the unit tests. Patch 24669 by Gisle Vanem. 24670 24671 o Minor features (misc): 24672 - The "torify" script now uses torsocks where available. 24673 - Make Libevent log messages get delivered to controllers later, 24674 and not from inside the Libevent log handler. This prevents unsafe 24675 reentrant Libevent calls while still letting the log messages 24676 get through. 24677 - Certain Tor clients (such as those behind check.torproject.org) may 24678 want to fetch the consensus in an extra early manner. To enable this 24679 a user may now set FetchDirInfoExtraEarly to 1. This also depends on 24680 setting FetchDirInfoEarly to 1. Previous behavior will stay the same 24681 as only certain clients who must have this information sooner should 24682 set this option. 24683 - Expand homedirs passed to tor-checkkey. This should silence a 24684 coverity complaint about passing a user-supplied string into 24685 open() without checking it. 24686 - Make sure to disable DirPort if running as a bridge. DirPorts aren't 24687 used on bridges, and it makes bridge scanning somewhat easier. 24688 - Create the /var/run/tor directory on startup on OpenSUSE if it is 24689 not already created. Patch from Andreas Stieger. Fixes bug 2573. 24690 24691 o Minor bugfixes (relays): 24692 - When a relay decides that its DNS is too broken for it to serve 24693 as an exit server, it advertised itself as a non-exit, but 24694 continued to act as an exit. This could create accidental 24695 partitioning opportunities for users. Instead, if a relay is 24696 going to advertise reject *:* as its exit policy, it should 24697 really act with exit policy "reject *:*". Fixes bug 2366. 24698 Bugfix on Tor 0.1.2.5-alpha. Bugfix by user "postman" on trac. 24699 - Publish a router descriptor even if generating an extra-info 24700 descriptor fails. Previously we would not publish a router 24701 descriptor without an extra-info descriptor; this can cause fast 24702 exit relays collecting exit-port statistics to drop from the 24703 consensus. Bugfix on 0.1.2.9-rc; fixes bug 2195. 24704 - When we're trying to guess whether we know our IP address as 24705 a relay, we would log various ways that we failed to guess 24706 our address, but never log that we ended up guessing it 24707 successfully. Now add a log line to help confused and anxious 24708 relay operators. Bugfix on 0.1.2.1-alpha; fixes bug 1534. 24709 - For bandwidth accounting, calculate our expected bandwidth rate 24710 based on the time during which we were active and not in 24711 soft-hibernation during the last interval. Previously, we were 24712 also considering the time spent in soft-hibernation. If this 24713 was a long time, we would wind up underestimating our bandwidth 24714 by a lot, and skewing our wakeup time towards the start of the 24715 accounting interval. Fixes bug 1789. Bugfix on 0.0.9pre5. 24716 - Demote a confusing TLS warning that relay operators might get when 24717 someone tries to talk to their ORPort. It is not the operator's 24718 fault, nor can they do anything about it. Fixes bug 1364; bugfix 24719 on 0.2.0.14-alpha. 24720 - Change "Application request when we're believed to be offline." 24721 notice to "Application request when we haven't used client 24722 functionality lately.", to clarify that it's not an error. Bugfix 24723 on 0.0.9.3; fixes bug 1222. 24724 24725 o Minor bugfixes (bridges): 24726 - When a client starts or stops using bridges, never use a circuit 24727 that was built before the configuration change. This behavior could 24728 put at risk a user who uses bridges to ensure that her traffic 24729 only goes to the chosen addresses. Bugfix on 0.2.0.3-alpha; fixes 24730 bug 3200. 24731 - Do not reset the bridge descriptor download status every time we 24732 re-parse our configuration or get a configuration change. Fixes 24733 bug 3019; bugfix on 0.2.0.3-alpha. 24734 - Users couldn't configure a regular relay to be their bridge. It 24735 didn't work because when Tor fetched the bridge descriptor, it found 24736 that it already had it, and didn't realize that the purpose of the 24737 descriptor had changed. Now we replace routers with a purpose other 24738 than bridge with bridge descriptors when fetching them. Bugfix on 24739 0.1.1.9-alpha. Fixes bug 1776. 24740 - In the special case where you configure a public exit relay as your 24741 bridge, Tor would be willing to use that exit relay as the last 24742 hop in your circuit as well. Now we fail that circuit instead. 24743 Bugfix on 0.2.0.12-alpha. Fixes bug 2403. Reported by "piebeer". 24744 24745 o Minor bugfixes (clients): 24746 - We now ask the other side of a stream (the client or the exit) 24747 for more data on that stream when the amount of queued data on 24748 that stream dips low enough. Previously, we wouldn't ask the 24749 other side for more data until either it sent us more data (which 24750 it wasn't supposed to do if it had exhausted its window!) or we 24751 had completely flushed all our queued data. This flow control fix 24752 should improve throughput. Fixes bug 2756; bugfix on the earliest 24753 released versions of Tor (svn commit r152). 24754 - When a client finds that an origin circuit has run out of 16-bit 24755 stream IDs, we now mark it as unusable for new streams. Previously, 24756 we would try to close the entire circuit. Bugfix on 0.0.6. 24757 - Make it explicit that we don't cannibalize one-hop circuits. This 24758 happens in the wild, but doesn't turn out to be a problem because 24759 we fortunately don't use those circuits. Many thanks to outofwords 24760 for the initial analysis and to swissknife who confirmed that 24761 two-hop circuits are actually created. 24762 - Resolve an edge case in path weighting that could make us misweight 24763 our relay selection. Fixes bug 1203; bugfix on 0.0.8rc1. 24764 - Make the DNSPort option work with libevent 2.x. Don't alter the 24765 behavior for libevent 1.x. Fixes bug 1143. Found by SwissTorExit. 24766 24767 o Minor bugfixes (directory authorities): 24768 - Make directory authorities more accurate at recording when 24769 relays that have failed several reachability tests became 24770 unreachable, so we can provide more accuracy at assigning Stable, 24771 Guard, HSDir, etc flags. Bugfix on 0.2.0.6-alpha. Resolves bug 2716. 24772 - Directory authorities are now more robust to hops back in time 24773 when calculating router stability. Previously, if a run of uptime 24774 or downtime appeared to be negative, the calculation could give 24775 incorrect results. Bugfix on 0.2.0.6-alpha; noticed when fixing 24776 bug 1035. 24777 - Directory authorities will now attempt to download consensuses 24778 if their own efforts to make a live consensus have failed. This 24779 change means authorities that restart will fetch a valid 24780 consensus, and it means authorities that didn't agree with the 24781 current consensus will still fetch and serve it if it has enough 24782 signatures. Bugfix on 0.2.0.9-alpha; fixes bug 1300. 24783 - Never vote for a server as "Running" if we have a descriptor for 24784 it claiming to be hibernating, and that descriptor was published 24785 more recently than our last contact with the server. Bugfix on 24786 0.2.0.3-alpha; fixes bug 911. 24787 - Directory authorities no longer change their opinion of, or vote on, 24788 whether a router is Running, unless they have themselves been 24789 online long enough to have some idea. Bugfix on 0.2.0.6-alpha. 24790 Fixes bug 1023. 24791 24792 o Minor bugfixes (hidden services): 24793 - Log malformed requests for rendezvous descriptors as protocol 24794 warnings, not warnings. Also, use a more informative log message 24795 in case someone sees it at log level warning without prior 24796 info-level messages. Fixes bug 2748; bugfix on 0.2.0.10-alpha. 24797 - Accept hidden service descriptors if we think we might be a hidden 24798 service directory, regardless of what our consensus says. This 24799 helps robustness, since clients and hidden services can sometimes 24800 have a more up-to-date view of the network consensus than we do, 24801 and if they think that the directory authorities list us a HSDir, 24802 we might actually be one. Related to bug 2732; bugfix on 24803 0.2.0.10-alpha. 24804 - Correct the warning displayed when a rendezvous descriptor exceeds 24805 the maximum size. Fixes bug 2750; bugfix on 0.2.1.5-alpha. Found by 24806 John Brooks. 24807 - Clients and hidden services now use HSDir-flagged relays for hidden 24808 service descriptor downloads and uploads even if the relays have no 24809 DirPort set and the client has disabled TunnelDirConns. This will 24810 eventually allow us to give the HSDir flag to relays with no 24811 DirPort. Fixes bug 2722; bugfix on 0.2.1.6-alpha. 24812 - Only limit the lengths of single HS descriptors, even when multiple 24813 HS descriptors are published to an HSDir relay in a single POST 24814 operation. Fixes bug 2948; bugfix on 0.2.1.5-alpha. Found by hsdir. 24815 24816 o Minor bugfixes (controllers): 24817 - Allow GETINFO fingerprint to return a fingerprint even when 24818 we have not yet built a router descriptor. Fixes bug 3577; 24819 bugfix on 0.2.0.1-alpha. 24820 - Send a SUCCEEDED stream event to the controller when a reverse 24821 resolve succeeded. Fixes bug 3536; bugfix on 0.0.8pre1. Issue 24822 discovered by katmagic. 24823 - Remove a trailing asterisk from "exit-policy/default" in the 24824 output of the control port command "GETINFO info/names". Bugfix 24825 on 0.1.2.5-alpha. 24826 - Make the SIGNAL DUMP controller command work on FreeBSD. Fixes bug 24827 2917. Bugfix on 0.1.1.1-alpha. 24828 - When we restart our relay, we might get a successful connection 24829 from the outside before we've started our reachability tests, 24830 triggering a warning: "ORPort found reachable, but I have no 24831 routerinfo yet. Failing to inform controller of success." This 24832 bug was harmless unless Tor is running under a controller 24833 like Vidalia, in which case the controller would never get a 24834 REACHABILITY_SUCCEEDED status event. Bugfix on 0.1.2.6-alpha; 24835 fixes bug 1172. 24836 - When a controller changes TrackHostExits, remove mappings for 24837 hosts that should no longer have their exits tracked. Bugfix on 24838 0.1.0.1-rc. 24839 - When a controller changes VirtualAddrNetwork, remove any mappings 24840 for hosts that were automapped to the old network. Bugfix on 24841 0.1.1.19-rc. 24842 - When a controller changes one of the AutomapHosts* options, remove 24843 any mappings for hosts that should no longer be automapped. Bugfix 24844 on 0.2.0.1-alpha. 24845 - Fix an off-by-one error in calculating some controller command 24846 argument lengths. Fortunately, this mistake is harmless since 24847 the controller code does redundant NUL termination too. Found by 24848 boboper. Bugfix on 0.1.1.1-alpha. 24849 - Fix a bug in the controller interface where "GETINFO ns/asdaskljkl" 24850 would return "551 Internal error" rather than "552 Unrecognized key 24851 ns/asdaskljkl". Bugfix on 0.1.2.3-alpha. 24852 - Don't spam the controller with events when we have no file 24853 descriptors available. Bugfix on 0.2.1.5-alpha. (Rate-limiting 24854 for log messages was already solved from bug 748.) 24855 - Emit a GUARD DROPPED controller event for a case we missed. 24856 - Ensure DNS requests launched by "RESOLVE" commands from the 24857 controller respect the __LeaveStreamsUnattached setconf options. The 24858 same goes for requests launched via DNSPort or transparent 24859 proxying. Bugfix on 0.2.0.1-alpha; fixes bug 1525. 24860 24861 o Minor bugfixes (config options): 24862 - Tor used to limit HttpProxyAuthenticator values to 48 characters. 24863 Change the limit to 512 characters by removing base64 newlines. 24864 Fixes bug 2752. Fix by Michael Yakubovich. 24865 - Complain if PublishServerDescriptor is given multiple arguments that 24866 include 0 or 1. This configuration will be rejected in the future. 24867 Bugfix on 0.2.0.1-alpha; closes bug 1107. 24868 - Disallow BridgeRelay 1 and ORPort 0 at once in the configuration. 24869 Bugfix on 0.2.0.13-alpha; closes bug 928. 24870 24871 o Minor bugfixes (log subsystem fixes): 24872 - When unable to format an address as a string, report its value 24873 as "???" rather than reusing the last formatted address. Bugfix 24874 on 0.2.1.5-alpha. 24875 - Be more consistent in our treatment of file system paths. "~" should 24876 get expanded to the user's home directory in the Log config option. 24877 Fixes bug 2971; bugfix on 0.2.0.1-alpha, which introduced the 24878 feature for the -f and --DataDirectory options. 24879 24880 o Minor bugfixes (memory management): 24881 - Don't stack-allocate the list of supplementary GIDs when we're 24882 about to log them. Stack-allocating NGROUPS_MAX gid_t elements 24883 could take up to 256K, which is way too much stack. Found by 24884 Coverity; CID #450. Bugfix on 0.2.1.7-alpha. 24885 - Save a couple bytes in memory allocation every time we escape 24886 certain characters in a string. Patch from Florian Zumbiehl. 24887 24888 o Minor bugfixes (protocol correctness): 24889 - When checking for 1024-bit keys, check for 1024 bits, not 128 24890 bytes. This allows Tor to correctly discard keys of length 1017 24891 through 1023. Bugfix on 0.0.9pre5. 24892 - Require that introduction point keys and onion handshake keys 24893 have a public exponent of 65537. Starts to fix bug 3207; bugfix 24894 on 0.2.0.10-alpha. 24895 - Handle SOCKS messages longer than 128 bytes long correctly, rather 24896 than waiting forever for them to finish. Fixes bug 2330; bugfix 24897 on 0.2.0.16-alpha. Found by doorss. 24898 - Never relay a cell for a circuit we have already destroyed. 24899 Between marking a circuit as closeable and finally closing it, 24900 it may have been possible for a few queued cells to get relayed, 24901 even though they would have been immediately dropped by the next 24902 OR in the circuit. Fixes bug 1184; bugfix on 0.2.0.1-alpha. 24903 - Never queue a cell for a circuit that's already been marked 24904 for close. 24905 - Fix a spec conformance issue: the network-status-version token 24906 must be the first token in a v3 consensus or vote. Discovered by 24907 "parakeep". Bugfix on 0.2.0.3-alpha. 24908 - A networkstatus vote must contain exactly one signature. Spec 24909 conformance issue. Bugfix on 0.2.0.3-alpha. 24910 - When asked about a DNS record type we don't support via a 24911 client DNSPort, reply with NOTIMPL rather than an empty 24912 reply. Patch by intrigeri. Fixes bug 3369; bugfix on 2.0.1-alpha. 24913 - Make more fields in the controller protocol case-insensitive, since 24914 control-spec.txt said they were. 24915 24916 o Minor bugfixes (log messages): 24917 - Fix a log message that said "bits" while displaying a value in 24918 bytes. Found by wanoskarnet. Fixes bug 3318; bugfix on 24919 0.2.0.1-alpha. 24920 - Downgrade "no current certificates known for authority" message from 24921 Notice to Info. Fixes bug 2899; bugfix on 0.2.0.10-alpha. 24922 - Correctly describe errors that occur when generating a TLS object. 24923 Previously we would attribute them to a failure while generating a 24924 TLS context. Patch by Robert Ransom. Bugfix on 0.1.0.4-rc; fixes 24925 bug 1994. 24926 - Fix an instance where a Tor directory mirror might accidentally 24927 log the IP address of a misbehaving Tor client. Bugfix on 24928 0.1.0.1-rc. 24929 - Stop logging at severity 'warn' when some other Tor client tries 24930 to establish a circuit with us using weak DH keys. It's a protocol 24931 violation, but that doesn't mean ordinary users need to hear about 24932 it. Fixes the bug part of bug 1114. Bugfix on 0.1.0.13. 24933 - If your relay can't keep up with the number of incoming create 24934 cells, it would log one warning per failure into your logs. Limit 24935 warnings to 1 per minute. Bugfix on 0.0.2pre10; fixes bug 1042. 24936 24937 o Minor bugfixes (build fixes): 24938 - Fix warnings from GCC 4.6's "-Wunused-but-set-variable" option. 24939 - When warning about missing zlib development packages during compile, 24940 give the correct package names. Bugfix on 0.2.0.1-alpha. 24941 - Fix warnings that newer versions of autoconf produce during 24942 ./autogen.sh. These warnings appear to be harmless in our case, 24943 but they were extremely verbose. Fixes bug 2020. 24944 - Squash a compile warning on OpenBSD. Reported by Tas; fixes 24945 bug 1848. 24946 24947 o Minor bugfixes (portability): 24948 - Write several files in text mode, on OSes that distinguish text 24949 mode from binary mode (namely, Windows). These files are: 24950 'buffer-stats', 'dirreq-stats', and 'entry-stats' on relays 24951 that collect those statistics; 'client_keys' and 'hostname' for 24952 hidden services that use authentication; and (in the tor-gencert 24953 utility) newly generated identity and signing keys. Previously, 24954 we wouldn't specify text mode or binary mode, leading to an 24955 assertion failure. Fixes bug 3607. Bugfix on 0.2.1.1-alpha (when 24956 the DirRecordUsageByCountry option which would have triggered 24957 the assertion failure was added), although this assertion failure 24958 would have occurred in tor-gencert on Windows in 0.2.0.1-alpha. 24959 - Selectively disable deprecation warnings on OS X because Lion 24960 started deprecating the shipped copy of openssl. Fixes bug 3643. 24961 - Use a wide type to hold sockets when built for 64-bit Windows. 24962 Fixes bug 3270. 24963 - Fix an issue that prevented static linking of libevent on 24964 some platforms (notably Linux). Fixes bug 2698; bugfix on 0.2.1.23, 24965 where we introduced the "--with-static-libevent" configure option. 24966 - Fix a bug with our locking implementation on Windows that couldn't 24967 correctly detect when a file was already locked. Fixes bug 2504, 24968 bugfix on 0.2.1.6-alpha. 24969 - Build correctly on OSX with zlib 1.2.4 and higher with all warnings 24970 enabled. 24971 - Fix IPv6-related connect() failures on some platforms (BSD, OS X). 24972 Bugfix on 0.2.0.3-alpha; fixes first part of bug 2660. Patch by 24973 "piebeer". 24974 24975 o Minor bugfixes (code correctness): 24976 - Always NUL-terminate the sun_path field of a sockaddr_un before 24977 passing it to the kernel. (Not a security issue: kernels are 24978 smart enough to reject bad sockaddr_uns.) Found by Coverity; 24979 CID #428. Bugfix on Tor 0.2.0.3-alpha. 24980 - Make connection_printf_to_buf()'s behavior sane. Its callers 24981 expect it to emit a CRLF iff the format string ends with CRLF; 24982 it actually emitted a CRLF iff (a) the format string ended with 24983 CRLF or (b) the resulting string was over 1023 characters long or 24984 (c) the format string did not end with CRLF *and* the resulting 24985 string was 1021 characters long or longer. Bugfix on 0.1.1.9-alpha; 24986 fixes part of bug 3407. 24987 - Make send_control_event_impl()'s behavior sane. Its callers 24988 expect it to always emit a CRLF at the end of the string; it 24989 might have emitted extra control characters as well. Bugfix on 24990 0.1.1.9-alpha; fixes another part of bug 3407. 24991 - Make crypto_rand_int() check the value of its input correctly. 24992 Previously, it accepted values up to UINT_MAX, but could return a 24993 negative number if given a value above INT_MAX+1. Found by George 24994 Kadianakis. Fixes bug 3306; bugfix on 0.2.2pre14. 24995 - Fix a potential null-pointer dereference while computing a 24996 consensus. Bugfix on 0.2.0.3-alpha, found with the help of 24997 clang's analyzer. 24998 - If we fail to compute the identity digest of a v3 legacy keypair, 24999 warn, and don't use a buffer-full of junk instead. Bugfix on 25000 0.2.1.1-alpha; fixes bug 3106. 25001 - Resolve an untriggerable issue in smartlist_string_num_isin(), 25002 where if the function had ever in the future been used to check 25003 for the presence of a too-large number, it would have given an 25004 incorrect result. (Fortunately, we only used it for 16-bit 25005 values.) Fixes bug 3175; bugfix on 0.1.0.1-rc. 25006 - Be more careful about reporting the correct error from a failed 25007 connect() system call. Under some circumstances, it was possible to 25008 look at an incorrect value for errno when sending the end reason. 25009 Bugfix on 0.1.0.1-rc. 25010 - Correctly handle an "impossible" overflow cases in connection byte 25011 counting, where we write or read more than 4GB on an edge connection 25012 in a single second. Bugfix on 0.1.2.8-beta. 25013 - Avoid a double mark-for-free warning when failing to attach a 25014 transparent proxy connection. Bugfix on 0.1.2.1-alpha. Fixes 25015 bug 2279. 25016 - Correctly detect failure to allocate an OpenSSL BIO. Fixes bug 2378; 25017 found by "cypherpunks". This bug was introduced before the first 25018 Tor release, in svn commit r110. 25019 - Fix a bug in bandwidth history state parsing that could have been 25020 triggered if a future version of Tor ever changed the timing 25021 granularity at which bandwidth history is measured. Bugfix on 25022 Tor 0.1.1.11-alpha. 25023 - Add assertions to check for overflow in arguments to 25024 base32_encode() and base32_decode(); fix a signed-unsigned 25025 comparison there too. These bugs are not actually reachable in Tor, 25026 but it's good to prevent future errors too. Found by doorss. 25027 - Avoid a bogus overlapped memcpy in tor_addr_copy(). Reported by 25028 "memcpyfail". 25029 - Set target port in get_interface_address6() correctly. Bugfix 25030 on 0.1.1.4-alpha and 0.2.0.3-alpha; fixes second part of bug 2660. 25031 - Fix an impossible-to-actually-trigger buffer overflow in relay 25032 descriptor generation. Bugfix on 0.1.0.15. 25033 - Fix numerous small code-flaws found by Coverity Scan Rung 3. 25034 25035 o Minor bugfixes (code improvements): 25036 - After we free an internal connection structure, overwrite it 25037 with a different memory value than we use for overwriting a freed 25038 internal circuit structure. Should help with debugging. Suggested 25039 by bug 1055. 25040 - If OpenSSL fails to make a duplicate of a private or public key, log 25041 an error message and try to exit cleanly. May help with debugging 25042 if bug 1209 ever remanifests. 25043 - Some options used different conventions for uppercasing of acronyms 25044 when comparing manpage and source. Fix those in favor of the 25045 manpage, as it makes sense to capitalize acronyms. 25046 - Take a first step towards making or.h smaller by splitting out 25047 function definitions for all source files in src/or/. Leave 25048 structures and defines in or.h for now. 25049 - Remove a few dead assignments during router parsing. Found by 25050 coverity. 25051 - Don't use 1-bit wide signed bit fields. Found by coverity. 25052 - Avoid signed/unsigned comparisons by making SIZE_T_CEILING unsigned. 25053 None of the cases where we did this before were wrong, but by making 25054 this change we avoid warnings. Fixes bug 2475; bugfix on 0.2.1.28. 25055 - The memarea code now uses a sentinel value at the end of each area 25056 to make sure nothing writes beyond the end of an area. This might 25057 help debug some conceivable causes of bug 930. 25058 - Always treat failure to allocate an RSA key as an unrecoverable 25059 allocation error. 25060 - Add some more defensive programming for architectures that can't 25061 handle unaligned integer accesses. We don't know of any actual bugs 25062 right now, but that's the best time to fix them. Fixes bug 1943. 25063 25064 o Minor bugfixes (misc): 25065 - Fix a rare bug in rend_fn unit tests: we would fail a test when 25066 a randomly generated port is 0. Diagnosed by Matt Edman. Bugfix 25067 on 0.2.0.10-alpha; fixes bug 1808. 25068 - Where available, use Libevent 2.0's periodic timers so that our 25069 once-per-second cleanup code gets called even more closely to 25070 once per second than it would otherwise. Fixes bug 943. 25071 - Ignore OutboundBindAddress when connecting to localhost. 25072 Connections to localhost need to come _from_ localhost, or else 25073 local servers (like DNS and outgoing HTTP/SOCKS proxies) will often 25074 refuse to listen. 25075 - Update our OpenSSL 0.9.8l fix so that it works with OpenSSL 0.9.8m 25076 too. 25077 - If any of the v3 certs we download are unparseable, we should 25078 actually notice the failure so we don't retry indefinitely. Bugfix 25079 on 0.2.0.x; reported by "rotator". 25080 - When Tor fails to parse a descriptor of any kind, dump it to disk. 25081 Might help diagnosing bug 1051. 25082 - Make our 'torify' script more portable; if we have only one of 25083 'torsocks' or 'tsocks' installed, don't complain to the user; 25084 and explain our warning about tsocks better. 25085 - Fix some urls in the exit notice file and make it XHTML1.1 strict 25086 compliant. Based on a patch from Christian Kujau. 25087 25088 o Documentation changes: 25089 - Modernize the doxygen configuration file slightly. Fixes bug 2707. 25090 - Resolve all doxygen warnings except those for missing documentation. 25091 Fixes bug 2705. 25092 - Add doxygen documentation for more functions, fields, and types. 25093 - Convert the HACKING file to asciidoc, and add a few new sections 25094 to it, explaining how we use Git, how we make changelogs, and 25095 what should go in a patch. 25096 - Document the default socks host and port (127.0.0.1:9050) for 25097 tor-resolve. 25098 - Removed some unnecessary files from the source distribution. The 25099 AUTHORS file has now been merged into the people page on the 25100 website. The roadmaps and design doc can now be found in the 25101 projects directory in svn. 25102 25103 o Deprecated and removed features (config): 25104 - Remove the torrc.complete file. It hasn't been kept up to date 25105 and users will have better luck checking out the manpage. 25106 - Remove the HSAuthorityRecordStats option that version 0 hidden 25107 service authorities could use to track statistics of overall v0 25108 hidden service usage. 25109 - Remove the obsolete "NoPublish" option; it has been flagged 25110 as obsolete and has produced a warning since 0.1.1.18-rc. 25111 - Caches no longer download and serve v2 networkstatus documents 25112 unless FetchV2Networkstatus flag is set: these documents haven't 25113 haven't been used by clients or relays since 0.2.0.x. Resolves 25114 bug 3022. 25115 25116 o Deprecated and removed features (controller): 25117 - The controller no longer accepts the old obsolete "addr-mappings/" 25118 or "unregistered-servers-" GETINFO values. 25119 - The EXTENDED_EVENTS and VERBOSE_NAMES controller features are now 25120 always on; using them is necessary for correct forward-compatible 25121 controllers. 25122 25123 o Deprecated and removed features (misc): 25124 - Hidden services no longer publish version 0 descriptors, and clients 25125 do not request or use version 0 descriptors. However, the old hidden 25126 service authorities still accept and serve version 0 descriptors 25127 when contacted by older hidden services/clients. 25128 - Remove undocumented option "-F" from tor-resolve: it hasn't done 25129 anything since 0.2.1.16-rc. 25130 - Remove everything related to building the expert bundle for OS X. 25131 It has confused many users, doesn't work right on OS X 10.6, 25132 and is hard to get rid of once installed. Resolves bug 1274. 25133 - Remove support for .noconnect style addresses. Nobody was using 25134 them, and they provided another avenue for detecting Tor users 25135 via application-level web tricks. 25136 - When we fixed bug 1038 we had to put in a restriction not to send 25137 RELAY_EARLY cells on rend circuits. This was necessary as long 25138 as relays using Tor 0.2.1.3-alpha through 0.2.1.18-alpha were 25139 active. Now remove this obsolete check. Resolves bug 2081. 25140 - Remove workaround code to handle directory responses from servers 25141 that had bug 539 (they would send HTTP status 503 responses _and_ 25142 send a body too). Since only server versions before 25143 0.2.0.16-alpha/0.1.2.19 were affected, there is no longer reason to 25144 keep the workaround in place. 25145 - Remove the old 'fuzzy time' logic. It was supposed to be used for 25146 handling calculations where we have a known amount of clock skew and 25147 an allowed amount of unknown skew. But we only used it in three 25148 places, and we never adjusted the known/unknown skew values. This is 25149 still something we might want to do someday, but if we do, we'll 25150 want to do it differently. 25151 - Remove the "--enable-iphone" option to ./configure. According to 25152 reports from Marco Bonetti, Tor builds fine without any special 25153 tweaking on recent iPhone SDK versions. 25154 25155 25156 Changes in version 0.2.1.30 - 2011-02-23 25157 Tor 0.2.1.30 fixes a variety of less critical bugs. The main other 25158 change is a slight tweak to Tor's TLS handshake that makes relays 25159 and bridges that run this new version reachable from Iran again. 25160 We don't expect this tweak will win the arms race long-term, but it 25161 buys us time until we roll out a better solution. 25162 25163 o Major bugfixes: 25164 - Stop sending a CLOCK_SKEW controller status event whenever 25165 we fetch directory information from a relay that has a wrong clock. 25166 Instead, only inform the controller when it's a trusted authority 25167 that claims our clock is wrong. Bugfix on 0.1.2.6-alpha; fixes 25168 the rest of bug 1074. 25169 - Fix a bounds-checking error that could allow an attacker to 25170 remotely crash a directory authority. Bugfix on 0.2.1.5-alpha. 25171 Found by "piebeer". 25172 - If relays set RelayBandwidthBurst but not RelayBandwidthRate, 25173 Tor would ignore their RelayBandwidthBurst setting, 25174 potentially using more bandwidth than expected. Bugfix on 25175 0.2.0.1-alpha. Reported by Paul Wouters. Fixes bug 2470. 25176 - Ignore and warn if the user mistakenly sets "PublishServerDescriptor 25177 hidserv" in her torrc. The 'hidserv' argument never controlled 25178 publication of hidden service descriptors. Bugfix on 0.2.0.1-alpha. 25179 25180 o Minor features: 25181 - Adjust our TLS Diffie-Hellman parameters to match those used by 25182 Apache's mod_ssl. 25183 - Update to the February 1 2011 Maxmind GeoLite Country database. 25184 25185 o Minor bugfixes: 25186 - Check for and reject overly long directory certificates and 25187 directory tokens before they have a chance to hit any assertions. 25188 Bugfix on 0.2.1.28. Found by "doorss". 25189 - Bring the logic that gathers routerinfos and assesses the 25190 acceptability of circuits into line. This prevents a Tor OP from 25191 getting locked in a cycle of choosing its local OR as an exit for a 25192 path (due to a .exit request) and then rejecting the circuit because 25193 its OR is not listed yet. It also prevents Tor clients from using an 25194 OR running in the same instance as an exit (due to a .exit request) 25195 if the OR does not meet the same requirements expected of an OR 25196 running elsewhere. Fixes bug 1859; bugfix on 0.1.0.1-rc. 25197 25198 o Packaging changes: 25199 - Stop shipping the Tor specs files and development proposal documents 25200 in the tarball. They are now in a separate git repository at 25201 git://git.torproject.org/torspec.git 25202 - Do not include Git version tags as though they are SVN tags when 25203 generating a tarball from inside a repository that has switched 25204 between branches. Bugfix on 0.2.1.15-rc; fixes bug 2402. 25205 25206 25207 Changes in version 0.2.1.29 - 2011-01-15 25208 Tor 0.2.1.29 continues our recent code security audit work. The main 25209 fix resolves a remote heap overflow vulnerability that can allow remote 25210 code execution. Other fixes address a variety of assert and crash bugs, 25211 most of which we think are hard to exploit remotely. 25212 25213 o Major bugfixes (security): 25214 - Fix a heap overflow bug where an adversary could cause heap 25215 corruption. This bug probably allows remote code execution 25216 attacks. Reported by "debuger". Fixes CVE-2011-0427. Bugfix on 25217 0.1.2.10-rc. 25218 - Prevent a denial-of-service attack by disallowing any 25219 zlib-compressed data whose compression factor is implausibly 25220 high. Fixes part of bug 2324; reported by "doorss". 25221 - Zero out a few more keys in memory before freeing them. Fixes 25222 bug 2384 and part of bug 2385. These key instances found by 25223 "cypherpunks", based on Andrew Case's report about being able 25224 to find sensitive data in Tor's memory space if you have enough 25225 permissions. Bugfix on 0.0.2pre9. 25226 25227 o Major bugfixes (crashes): 25228 - Prevent calls to Libevent from inside Libevent log handlers. 25229 This had potential to cause a nasty set of crashes, especially 25230 if running Libevent with debug logging enabled, and running 25231 Tor with a controller watching for low-severity log messages. 25232 Bugfix on 0.1.0.2-rc. Fixes bug 2190. 25233 - Add a check for SIZE_T_MAX to tor_realloc() to try to avoid 25234 underflow errors there too. Fixes the other part of bug 2324. 25235 - Fix a bug where we would assert if we ever had a 25236 cached-descriptors.new file (or another file read directly into 25237 memory) of exactly SIZE_T_CEILING bytes. Fixes bug 2326; bugfix 25238 on 0.2.1.25. Found by doorss. 25239 - Fix some potential asserts and parsing issues with grossly 25240 malformed router caches. Fixes bug 2352; bugfix on Tor 0.2.1.27. 25241 Found by doorss. 25242 25243 o Minor bugfixes (other): 25244 - Fix a bug with handling misformed replies to reverse DNS lookup 25245 requests in DNSPort. Bugfix on Tor 0.2.0.1-alpha. Related to a 25246 bug reported by doorss. 25247 - Fix compilation on mingw when a pthreads compatibility library 25248 has been installed. (We don't want to use it, so we shouldn't 25249 be including pthread.h.) Fixes bug 2313; bugfix on 0.1.0.1-rc. 25250 - Fix a bug where we would declare that we had run out of virtual 25251 addresses when the address space was only half-exhausted. Bugfix 25252 on 0.1.2.1-alpha. 25253 - Correctly handle the case where AutomapHostsOnResolve is set but 25254 no virtual addresses are available. Fixes bug 2328; bugfix on 25255 0.1.2.1-alpha. Bug found by doorss. 25256 - Correctly handle wrapping around when we run out of virtual 25257 address space. Found by cypherpunks; bugfix on 0.2.0.5-alpha. 25258 25259 o Minor features: 25260 - Update to the January 1 2011 Maxmind GeoLite Country database. 25261 - Introduce output size checks on all of our decryption functions. 25262 25263 o Build changes: 25264 - Tor does not build packages correctly with Automake 1.6 and earlier; 25265 added a check to Makefile.am to make sure that we're building with 25266 Automake 1.7 or later. 25267 - The 0.2.1.28 tarball was missing src/common/OpenBSD_malloc_Linux.c 25268 because we built it with a too-old version of automake. Thus that 25269 release broke ./configure --enable-openbsd-malloc, which is popular 25270 among really fast exit relays on Linux. 25271 25272 25273 Changes in version 0.2.1.28 - 2010-12-17 25274 Tor 0.2.1.28 does some code cleanup to reduce the risk of remotely 25275 exploitable bugs. We also took this opportunity to change the IP address 25276 for one of our directory authorities, and to update the geoip database 25277 we ship. 25278 25279 o Major bugfixes: 25280 - Fix a remotely exploitable bug that could be used to crash instances 25281 of Tor remotely by overflowing on the heap. Remote-code execution 25282 hasn't been confirmed, but can't be ruled out. Everyone should 25283 upgrade. Bugfix on the 0.1.1 series and later. 25284 25285 o Directory authority changes: 25286 - Change IP address and ports for gabelmoo (v3 directory authority). 25287 25288 o Minor features: 25289 - Update to the December 1 2010 Maxmind GeoLite Country database. 25290 25291 25292 Changes in version 0.2.1.27 - 2010-11-23 25293 Yet another OpenSSL security patch broke its compatibility with Tor: 25294 Tor 0.2.1.27 makes relays work with openssl 0.9.8p and 1.0.0.b. We 25295 also took this opportunity to fix several crash bugs, integrate a new 25296 directory authority, and update the bundled GeoIP database. 25297 25298 o Major bugfixes: 25299 - Resolve an incompatibility with OpenSSL 0.9.8p and OpenSSL 1.0.0b: 25300 No longer set the tlsext_host_name extension on server SSL objects; 25301 but continue to set it on client SSL objects. Our goal in setting 25302 it was to imitate a browser, not a vhosting server. Fixes bug 2204; 25303 bugfix on 0.2.1.1-alpha. 25304 - Do not log messages to the controller while shrinking buffer 25305 freelists. Doing so would sometimes make the controller connection 25306 try to allocate a buffer chunk, which would mess up the internals 25307 of the freelist and cause an assertion failure. Fixes bug 1125; 25308 fixed by Robert Ransom. Bugfix on 0.2.0.16-alpha. 25309 - Learn our external IP address when we're a relay or bridge, even if 25310 we set PublishServerDescriptor to 0. Bugfix on 0.2.0.3-alpha, 25311 where we introduced bridge relays that don't need to publish to 25312 be useful. Fixes bug 2050. 25313 - Do even more to reject (and not just ignore) annotations on 25314 router descriptors received anywhere but from the cache. Previously 25315 we would ignore such annotations at first, but cache them to disk 25316 anyway. Bugfix on 0.2.0.8-alpha. Found by piebeer. 25317 - When you're using bridges and your network goes away and your 25318 bridges get marked as down, recover when you attempt a new socks 25319 connection (if the network is back), rather than waiting up to an 25320 hour to try fetching new descriptors for your bridges. Bugfix on 25321 0.2.0.3-alpha; fixes bug 1981. 25322 25323 o Major features: 25324 - Move to the November 2010 Maxmind GeoLite country db (rather 25325 than the June 2009 ip-to-country GeoIP db) for our statistics that 25326 count how many users relays are seeing from each country. Now we'll 25327 have more accurate data, especially for many African countries. 25328 25329 o New directory authorities: 25330 - Set up maatuska (run by Linus Nordberg) as the eighth v3 directory 25331 authority. 25332 25333 o Minor bugfixes: 25334 - Fix an assertion failure that could occur in directory caches or 25335 bridge users when using a very short voting interval on a testing 25336 network. Diagnosed by Robert Hogan. Fixes bug 1141; bugfix on 25337 0.2.0.8-alpha. 25338 - Enforce multiplicity rules when parsing annotations. Bugfix on 25339 0.2.0.8-alpha. Found by piebeer. 25340 - Allow handshaking OR connections to take a full KeepalivePeriod 25341 seconds to handshake. Previously, we would close them after 25342 IDLE_OR_CONN_TIMEOUT (180) seconds, the same timeout as if they 25343 were open. Bugfix on 0.2.1.26; fixes bug 1840. Thanks to mingw-san 25344 for analysis help. 25345 - When building with --enable-gcc-warnings on OpenBSD, disable 25346 warnings in system headers. This makes --enable-gcc-warnings 25347 pass on OpenBSD 4.8. 25348 25349 o Minor features: 25350 - Exit nodes didn't recognize EHOSTUNREACH as a plausible error code, 25351 and so sent back END_STREAM_REASON_MISC. Clients now recognize a new 25352 stream ending reason for this case: END_STREAM_REASON_NOROUTE. 25353 Servers can start sending this code when enough clients recognize 25354 it. Bugfix on 0.1.0.1-rc; fixes part of bug 1793. 25355 - Build correctly on mingw with more recent versions of OpenSSL 0.9.8. 25356 Patch from mingw-san. 25357 25358 o Removed files: 25359 - Remove the old debian/ directory from the main Tor distribution. 25360 The official Tor-for-debian git repository lives at the URL 25361 https://git.torproject.org/debian/tor.git 25362 - Stop shipping the old doc/website/ directory in the tarball. We 25363 changed the website format in late 2010, and what we shipped in 25364 0.2.1.26 really wasn't that useful anyway. 25365 25366 25367 Changes in version 0.2.1.26 - 2010-05-02 25368 Tor 0.2.1.26 addresses the recent connection and memory overload 25369 problems we've been seeing on relays, especially relays with their 25370 DirPort open. If your relay has been crashing, or you turned it off 25371 because it used too many resources, give this release a try. 25372 25373 This release also fixes yet another instance of broken OpenSSL libraries 25374 that was causing some relays to drop out of the consensus. 25375 25376 o Major bugfixes: 25377 - Teach relays to defend themselves from connection overload. Relays 25378 now close idle circuits early if it looks like they were intended 25379 for directory fetches. Relays are also more aggressive about closing 25380 TLS connections that have no circuits on them. Such circuits are 25381 unlikely to be re-used, and tens of thousands of them were piling 25382 up at the fast relays, causing the relays to run out of sockets 25383 and memory. Bugfix on 0.2.0.22-rc (where clients started tunneling 25384 their directory fetches over TLS). 25385 - Fix SSL renegotiation behavior on OpenSSL versions like on Centos 25386 that claim to be earlier than 0.9.8m, but which have in reality 25387 backported huge swaths of 0.9.8m or 0.9.8n renegotiation 25388 behavior. Possible fix for some cases of bug 1346. 25389 - Directory mirrors were fetching relay descriptors only from v2 25390 directory authorities, rather than v3 authorities like they should. 25391 Only 2 v2 authorities remain (compared to 7 v3 authorities), leading 25392 to a serious bottleneck. Bugfix on 0.2.0.9-alpha. Fixes bug 1324. 25393 25394 o Minor bugfixes: 25395 - Finally get rid of the deprecated and now harmful notion of "clique 25396 mode", where directory authorities maintain TLS connections to 25397 every other relay. 25398 25399 o Testsuite fixes: 25400 - In the util/threads test, no longer free the test_mutex before all 25401 worker threads have finished. Bugfix on 0.2.1.6-alpha. 25402 - The master thread could starve the worker threads quite badly on 25403 certain systems, causing them to run only partially in the allowed 25404 window. This resulted in test failures. Now the master thread sleeps 25405 occasionally for a few microseconds while the two worker-threads 25406 compete for the mutex. Bugfix on 0.2.0.1-alpha. 25407 25408 25409 Changes in version 0.2.1.25 - 2010-03-16 25410 Tor 0.2.1.25 fixes a regression introduced in 0.2.1.23 that could 25411 prevent relays from guessing their IP address correctly. It also fixes 25412 several minor potential security bugs. 25413 25414 o Major bugfixes: 25415 - Fix a regression from our patch for bug 1244 that caused relays 25416 to guess their IP address incorrectly if they didn't set Address 25417 in their torrc and/or their address fails to resolve. Bugfix on 25418 0.2.1.23; fixes bug 1269. 25419 - When freeing a session key, zero it out completely. We only zeroed 25420 the first ptrsize bytes. Bugfix on 0.0.2pre8. Discovered and 25421 patched by ekir. Fixes bug 1254. 25422 25423 o Minor bugfixes: 25424 - Fix a dereference-then-NULL-check sequence when publishing 25425 descriptors. Bugfix on 0.2.1.5-alpha. Discovered by ekir; fixes 25426 bug 1255. 25427 - Fix another dereference-then-NULL-check sequence. Bugfix on 25428 0.2.1.14-rc. Discovered by ekir; fixes bug 1256. 25429 - Make sure we treat potentially not NUL-terminated strings correctly. 25430 Bugfix on 0.1.1.13-alpha. Discovered by rieo; fixes bug 1257. 25431 25432 25433 Changes in version 0.2.1.24 - 2010-02-21 25434 Tor 0.2.1.24 makes Tor work again on the latest OS X -- this time 25435 for sure! 25436 25437 o Minor bugfixes: 25438 - Work correctly out-of-the-box with even more vendor-patched versions 25439 of OpenSSL. In particular, make it so Debian and OS X don't need 25440 customized patches to run/build. 25441 25442 25443 Changes in version 0.2.1.23 - 2010-02-13 25444 Tor 0.2.1.23 fixes a huge client-side performance bug, makes Tor work 25445 again on the latest OS X, and updates the location of a directory 25446 authority. 25447 25448 o Major bugfixes (performance): 25449 - We were selecting our guards uniformly at random, and then weighting 25450 which of our guards we'd use uniformly at random. This imbalance 25451 meant that Tor clients were severely limited on throughput (and 25452 probably latency too) by the first hop in their circuit. Now we 25453 select guards weighted by currently advertised bandwidth. We also 25454 automatically discard guards picked using the old algorithm. Fixes 25455 bug 1217; bugfix on 0.2.1.3-alpha. Found by Mike Perry. 25456 25457 o Major bugfixes: 25458 - Make Tor work again on the latest OS X: when deciding whether to 25459 use strange flags to turn TLS renegotiation on, detect the OpenSSL 25460 version at run-time, not compile time. We need to do this because 25461 Apple doesn't update its dev-tools headers when it updates its 25462 libraries in a security patch. 25463 - Fix a potential buffer overflow in lookup_last_hid_serv_request() 25464 that could happen on 32-bit platforms with 64-bit time_t. Also fix 25465 a memory leak when requesting a hidden service descriptor we've 25466 requested before. Fixes bug 1242, bugfix on 0.2.0.18-alpha. Found 25467 by aakova. 25468 25469 o Minor bugfixes: 25470 - Refactor resolve_my_address() to not use gethostbyname() anymore. 25471 Fixes bug 1244; bugfix on 0.0.2pre25. Reported by Mike Mestnik. 25472 25473 o Minor features: 25474 - Avoid a mad rush at the beginning of each month when each client 25475 rotates half of its guards. Instead we spread the rotation out 25476 throughout the month, but we still avoid leaving a precise timestamp 25477 in the state file about when we first picked the guard. Improves 25478 over the behavior introduced in 0.1.2.17. 25479 25480 25481 Changes in version 0.2.1.22 - 2010-01-19 25482 Tor 0.2.1.22 fixes a critical privacy problem in bridge directory 25483 authorities -- it would tell you its whole history of bridge descriptors 25484 if you make the right directory request. This stable update also 25485 rotates two of the seven v3 directory authority keys and locations. 25486 25487 o Directory authority changes: 25488 - Rotate keys (both v3 identity and relay identity) for moria1 25489 and gabelmoo. 25490 25491 o Major bugfixes: 25492 - Stop bridge directory authorities from answering dbg-stability.txt 25493 directory queries, which would let people fetch a list of all 25494 bridge identities they track. Bugfix on 0.2.1.6-alpha. 25495 25496 25497 Changes in version 0.2.1.21 - 2009-12-21 25498 Tor 0.2.1.21 fixes an incompatibility with the most recent OpenSSL 25499 library. If you use Tor on Linux / Unix and you're getting SSL 25500 renegotiation errors, upgrading should help. We also recommend an 25501 upgrade if you're an exit relay. 25502 25503 o Major bugfixes: 25504 - Work around a security feature in OpenSSL 0.9.8l that prevents our 25505 handshake from working unless we explicitly tell OpenSSL that we 25506 are using SSL renegotiation safely. We are, of course, but OpenSSL 25507 0.9.8l won't work unless we say we are. 25508 - Avoid crashing if the client is trying to upload many bytes and the 25509 circuit gets torn down at the same time, or if the flip side 25510 happens on the exit relay. Bugfix on 0.2.0.1-alpha; fixes bug 1150. 25511 25512 o Minor bugfixes: 25513 - Do not refuse to learn about authority certs and v2 networkstatus 25514 documents that are older than the latest consensus. This bug might 25515 have degraded client bootstrapping. Bugfix on 0.2.0.10-alpha. 25516 Spotted and fixed by xmux. 25517 - Fix a couple of very-hard-to-trigger memory leaks, and one hard-to- 25518 trigger platform-specific option misparsing case found by Coverity 25519 Scan. 25520 - Fix a compilation warning on Fedora 12 by removing an impossible-to- 25521 trigger assert. Fixes bug 1173. 25522 25523 25524 Changes in version 0.2.1.20 - 2009-10-15 25525 Tor 0.2.1.20 fixes a crash bug when you're accessing many hidden 25526 services at once, prepares for more performance improvements, and 25527 fixes a bunch of smaller bugs. 25528 25529 The Windows and OS X bundles also include a more recent Vidalia, 25530 and switch from Privoxy to Polipo. 25531 25532 The OS X installers are now drag and drop. It's best to un-install 25533 Tor/Vidalia and then install this new bundle, rather than upgrade. If 25534 you want to upgrade, you'll need to update the paths for Tor and Polipo 25535 in the Vidalia Settings window. 25536 25537 o Major bugfixes: 25538 - Send circuit or stream sendme cells when our window has decreased 25539 by 100 cells, not when it has decreased by 101 cells. Bug uncovered 25540 by Karsten when testing the "reduce circuit window" performance 25541 patch. Bugfix on the 54th commit on Tor -- from July 2002, 25542 before the release of Tor 0.0.0. This is the new winner of the 25543 oldest-bug prize. 25544 - Fix a remotely triggerable memory leak when a consensus document 25545 contains more than one signature from the same voter. Bugfix on 25546 0.2.0.3-alpha. 25547 - Avoid segfault in rare cases when finishing an introduction circuit 25548 as a client and finding out that we don't have an introduction key 25549 for it. Fixes bug 1073. Reported by Aaron Swartz. 25550 25551 o Major features: 25552 - Tor now reads the "circwindow" parameter out of the consensus, 25553 and uses that value for its circuit package window rather than the 25554 default of 1000 cells. Begins the implementation of proposal 168. 25555 25556 o New directory authorities: 25557 - Set up urras (run by Jacob Appelbaum) as the seventh v3 directory 25558 authority. 25559 - Move moria1 and tonga to alternate IP addresses. 25560 25561 o Minor bugfixes: 25562 - Fix a signed/unsigned compile warning in 0.2.1.19. 25563 - Fix possible segmentation fault on directory authorities. Bugfix on 25564 0.2.1.14-rc. 25565 - Fix an extremely rare infinite recursion bug that could occur if 25566 we tried to log a message after shutting down the log subsystem. 25567 Found by Matt Edman. Bugfix on 0.2.0.16-alpha. 25568 - Fix an obscure bug where hidden services on 64-bit big-endian 25569 systems might mis-read the timestamp in v3 introduce cells, and 25570 refuse to connect back to the client. Discovered by "rotor". 25571 Bugfix on 0.2.1.6-alpha. 25572 - We were triggering a CLOCK_SKEW controller status event whenever 25573 we connect via the v2 connection protocol to any relay that has 25574 a wrong clock. Instead, we should only inform the controller when 25575 it's a trusted authority that claims our clock is wrong. Bugfix 25576 on 0.2.0.20-rc; starts to fix bug 1074. Reported by SwissTorExit. 25577 - We were telling the controller about CHECKING_REACHABILITY and 25578 REACHABILITY_FAILED status events whenever we launch a testing 25579 circuit or notice that one has failed. Instead, only tell the 25580 controller when we want to inform the user of overall success or 25581 overall failure. Bugfix on 0.1.2.6-alpha. Fixes bug 1075. Reported 25582 by SwissTorExit. 25583 - Don't warn when we're using a circuit that ends with a node 25584 excluded in ExcludeExitNodes, but the circuit is not used to access 25585 the outside world. This should help fix bug 1090. Bugfix on 25586 0.2.1.6-alpha. 25587 - Work around a small memory leak in some versions of OpenSSL that 25588 stopped the memory used by the hostname TLS extension from being 25589 freed. 25590 25591 o Minor features: 25592 - Add a "getinfo status/accepted-server-descriptor" controller 25593 command, which is the recommended way for controllers to learn 25594 whether our server descriptor has been successfully received by at 25595 least on directory authority. Un-recommend good-server-descriptor 25596 getinfo and status events until we have a better design for them. 25597 25598 25599 Changes in version 0.2.1.19 - 2009-07-28 25600 Tor 0.2.1.19 fixes a major bug with accessing and providing hidden 25601 services. 25602 25603 o Major bugfixes: 25604 - Make accessing hidden services on 0.2.1.x work right again. 25605 Bugfix on 0.2.1.3-alpha; workaround for bug 1038. Diagnosis and 25606 part of patch provided by "optimist". 25607 25608 o Minor features: 25609 - When a relay/bridge is writing out its identity key fingerprint to 25610 the "fingerprint" file and to its logs, write it without spaces. Now 25611 it will look like the fingerprints in our bridges documentation, 25612 and confuse fewer users. 25613 25614 o Minor bugfixes: 25615 - Relays no longer publish a new server descriptor if they change 25616 their MaxAdvertisedBandwidth config option but it doesn't end up 25617 changing their advertised bandwidth numbers. Bugfix on 0.2.0.28-rc; 25618 fixes bug 1026. Patch from Sebastian. 25619 - Avoid leaking memory every time we get a create cell but we have 25620 so many already queued that we refuse it. Bugfix on 0.2.0.19-alpha; 25621 fixes bug 1034. Reported by BarkerJr. 25622 25623 25624 Changes in version 0.2.1.18 - 2009-07-24 25625 Tor 0.2.1.18 lays the foundations for performance improvements, 25626 adds status events to help users diagnose bootstrap problems, adds 25627 optional authentication/authorization for hidden services, fixes a 25628 variety of potential anonymity problems, and includes a huge pile of 25629 other features and bug fixes. 25630 25631 o Major features (clients): 25632 - Start sending "bootstrap phase" status events to the controller, 25633 so it can keep the user informed of progress fetching directory 25634 information and establishing circuits. Also inform the controller 25635 if we think we're stuck at a particular bootstrap phase. Implements 25636 proposal 137. 25637 - Clients replace entry guards that were chosen more than a few months 25638 ago. This change should significantly improve client performance, 25639 especially once more people upgrade, since relays that have been 25640 a guard for a long time are currently overloaded. 25641 - Network status consensus documents and votes now contain bandwidth 25642 information for each relay. Clients use the bandwidth values 25643 in the consensus, rather than the bandwidth values in each 25644 relay descriptor. This approach opens the door to more accurate 25645 bandwidth estimates once the directory authorities start doing 25646 active measurements. Implements part of proposal 141. 25647 25648 o Major features (relays): 25649 - Disable and refactor some debugging checks that forced a linear scan 25650 over the whole server-side DNS cache. These accounted for over 50% 25651 of CPU time on a relatively busy exit node's gprof profile. Also, 25652 disable some debugging checks that appeared in exit node profile 25653 data. Found by Jacob. 25654 - New DirPortFrontPage option that takes an html file and publishes 25655 it as "/" on the DirPort. Now relay operators can provide a 25656 disclaimer without needing to set up a separate webserver. There's 25657 a sample disclaimer in contrib/tor-exit-notice.html. 25658 25659 o Major features (hidden services): 25660 - Make it possible to build hidden services that only certain clients 25661 are allowed to connect to. This is enforced at several points, 25662 so that unauthorized clients are unable to send INTRODUCE cells 25663 to the service, or even (depending on the type of authentication) 25664 to learn introduction points. This feature raises the bar for 25665 certain kinds of active attacks against hidden services. Design 25666 and code by Karsten Loesing. Implements proposal 121. 25667 - Relays now store and serve v2 hidden service descriptors by default, 25668 i.e., the new default value for HidServDirectoryV2 is 1. This is 25669 the last step in proposal 114, which aims to make hidden service 25670 lookups more reliable. 25671 25672 o Major features (path selection): 25673 - ExitNodes and Exclude*Nodes config options now allow you to restrict 25674 by country code ("{US}") or IP address or address pattern 25675 ("255.128.0.0/16"). Patch from Robert Hogan. It still needs some 25676 refinement to decide what config options should take priority if 25677 you ask to both use a particular node and exclude it. 25678 25679 o Major features (misc): 25680 - When building a consensus, do not include routers that are down. 25681 This cuts down 30% to 40% on consensus size. Implements proposal 25682 138. 25683 - New TestingTorNetwork config option to allow adjustment of 25684 previously constant values that could slow bootstrapping. Implements 25685 proposal 135. Patch from Karsten. 25686 - Convert many internal address representations to optionally hold 25687 IPv6 addresses. Generate and accept IPv6 addresses in many protocol 25688 elements. Make resolver code handle nameservers located at IPv6 25689 addresses. 25690 - More work on making our TLS handshake blend in: modify the list 25691 of ciphers advertised by OpenSSL in client mode to even more 25692 closely resemble a common web browser. We cheat a little so that 25693 we can advertise ciphers that the locally installed OpenSSL doesn't 25694 know about. 25695 - Use the TLS1 hostname extension to more closely resemble browser 25696 behavior. 25697 25698 o Security fixes (anonymity/entropy): 25699 - Never use a connection with a mismatched address to extend a 25700 circuit, unless that connection is canonical. A canonical 25701 connection is one whose address is authenticated by the router's 25702 identity key, either in a NETINFO cell or in a router descriptor. 25703 - Implement most of proposal 110: The first K cells to be sent 25704 along a circuit are marked as special "early" cells; only K "early" 25705 cells will be allowed. Once this code is universal, we can block 25706 certain kinds of denial-of-service attack by requiring that EXTEND 25707 commands must be sent using an "early" cell. 25708 - Resume using OpenSSL's RAND_poll() for better (and more portable) 25709 cross-platform entropy collection again. We used to use it, then 25710 stopped using it because of a bug that could crash systems that 25711 called RAND_poll when they had a lot of fds open. It looks like the 25712 bug got fixed in late 2006. Our new behavior is to call RAND_poll() 25713 at startup, and to call RAND_poll() when we reseed later only if 25714 we have a non-buggy OpenSSL version. 25715 - When the client is choosing entry guards, now it selects at most 25716 one guard from a given relay family. Otherwise we could end up with 25717 all of our entry points into the network run by the same operator. 25718 Suggested by Camilo Viecco. Fix on 0.1.1.11-alpha. 25719 - Do not use or believe expired v3 authority certificates. Patch 25720 from Karsten. Bugfix in 0.2.0.x. Fixes bug 851. 25721 - Drop begin cells to a hidden service if they come from the middle 25722 of a circuit. Patch from lark. 25723 - When we erroneously receive two EXTEND cells for the same circuit 25724 ID on the same connection, drop the second. Patch from lark. 25725 - Authorities now vote for the Stable flag for any router whose 25726 weighted MTBF is at least 5 days, regardless of the mean MTBF. 25727 - Clients now never report any stream end reason except 'MISC'. 25728 Implements proposal 148. 25729 25730 o Major bugfixes (crashes): 25731 - Parse dates and IPv4 addresses in a locale- and libc-independent 25732 manner, to avoid platform-dependent behavior on malformed input. 25733 - Fix a crash that occurs on exit nodes when a nameserver request 25734 timed out. Bugfix on 0.1.2.1-alpha; our CLEAR debugging code had 25735 been suppressing the bug since 0.1.2.10-alpha. Partial fix for 25736 bug 929. 25737 - Do not assume that a stack-allocated character array will be 25738 64-bit aligned on platforms that demand that uint64_t access is 25739 aligned. Possible fix for bug 604. 25740 - Resolve a very rare crash bug that could occur when the user forced 25741 a nameserver reconfiguration during the middle of a nameserver 25742 probe. Fixes bug 526. Bugfix on 0.1.2.1-alpha. 25743 - Avoid a "0 divided by 0" calculation when calculating router uptime 25744 at directory authorities. Bugfix on 0.2.0.8-alpha. 25745 - Fix an assertion bug in parsing policy-related options; possible fix 25746 for bug 811. 25747 - Rate-limit too-many-sockets messages: when they happen, they happen 25748 a lot and end up filling up the disk. Resolves bug 748. 25749 - Fix a race condition that could cause crashes or memory corruption 25750 when running as a server with a controller listening for log 25751 messages. 25752 - Avoid crashing when we have a policy specified in a DirPolicy or 25753 SocksPolicy or ReachableAddresses option with ports set on it, 25754 and we re-load the policy. May fix bug 996. 25755 - Fix an assertion failure on 64-bit platforms when we allocated 25756 memory right up to the end of a memarea, then realigned the memory 25757 one step beyond the end. Fixes a possible cause of bug 930. 25758 - Protect the count of open sockets with a mutex, so we can't 25759 corrupt it when two threads are closing or opening sockets at once. 25760 Fix for bug 939. Bugfix on 0.2.0.1-alpha. 25761 25762 o Major bugfixes (clients): 25763 - Discard router descriptors as we load them if they are more than 25764 five days old. Otherwise if Tor is off for a long time and then 25765 starts with cached descriptors, it will try to use the onion keys 25766 in those obsolete descriptors when building circuits. Fixes bug 887. 25767 - When we choose to abandon a new entry guard because we think our 25768 older ones might be better, close any circuits pending on that 25769 new entry guard connection. This fix should make us recover much 25770 faster when our network is down and then comes back. Bugfix on 25771 0.1.2.8-beta; found by lodger. 25772 - When Tor clients restart after 1-5 days, they discard all their 25773 cached descriptors as too old, but they still use the cached 25774 consensus document. This approach is good for robustness, but 25775 bad for performance: since they don't know any bandwidths, they 25776 end up choosing at random rather than weighting their choice by 25777 speed. Fixed by the above feature of putting bandwidths in the 25778 consensus. 25779 25780 o Major bugfixes (relays): 25781 - Relays were falling out of the networkstatus consensus for 25782 part of a day if they changed their local config but the 25783 authorities discarded their new descriptor as "not sufficiently 25784 different". Now directory authorities accept a descriptor as changed 25785 if BandwidthRate or BandwidthBurst changed. Partial fix for bug 962; 25786 patch by Sebastian. 25787 - Ensure that two circuits can never exist on the same connection 25788 with the same circuit ID, even if one is marked for close. This 25789 is conceivably a bugfix for bug 779; fixes a bug on 0.1.0.4-rc. 25790 - Directory authorities were neglecting to mark relays down in their 25791 internal histories if the relays fall off the routerlist without 25792 ever being found unreachable. So there were relays in the histories 25793 that haven't been seen for eight months, and are listed as being 25794 up for eight months. This wreaked havoc on the "median wfu" and 25795 "median mtbf" calculations, in turn making Guard and Stable flags 25796 wrong, hurting network performance. Fixes bugs 696 and 969. Bugfix 25797 on 0.2.0.6-alpha. 25798 25799 o Major bugfixes (hidden services): 25800 - When establishing a hidden service, introduction points that 25801 originate from cannibalized circuits were completely ignored 25802 and not included in rendezvous service descriptors. This might 25803 have been another reason for delay in making a hidden service 25804 available. Bugfix from long ago (0.0.9.x?) 25805 25806 o Major bugfixes (memory and resource management): 25807 - Fixed some memory leaks -- some quite frequent, some almost 25808 impossible to trigger -- based on results from Coverity. 25809 - Speed up parsing and cut down on memory fragmentation by using 25810 stack-style allocations for parsing directory objects. Previously, 25811 this accounted for over 40% of allocations from within Tor's code 25812 on a typical directory cache. 25813 - Use a Bloom filter rather than a digest-based set to track which 25814 descriptors we need to keep around when we're cleaning out old 25815 router descriptors. This speeds up the computation significantly, 25816 and may reduce fragmentation. 25817 25818 o New/changed config options: 25819 - Now NodeFamily and MyFamily config options allow spaces in 25820 identity fingerprints, so it's easier to paste them in. 25821 Suggested by Lucky Green. 25822 - Allow ports 465 and 587 in the default exit policy again. We had 25823 rejected them in 0.1.0.15, because back in 2005 they were commonly 25824 misconfigured and ended up as spam targets. We hear they are better 25825 locked down these days. 25826 - Make TrackHostExit mappings expire a while after their last use, not 25827 after their creation. Patch from Robert Hogan. 25828 - Add an ExcludeExitNodes option so users can list a set of nodes 25829 that should be be excluded from the exit node position, but 25830 allowed elsewhere. Implements proposal 151. 25831 - New --hush command-line option similar to --quiet. While --quiet 25832 disables all logging to the console on startup, --hush limits the 25833 output to messages of warning and error severity. 25834 - New configure/torrc options (--enable-geoip-stats, 25835 DirRecordUsageByCountry) to record how many IPs we've served 25836 directory info to in each country code, how many status documents 25837 total we've sent to each country code, and what share of the total 25838 directory requests we should expect to see. 25839 - Make outbound DNS packets respect the OutboundBindAddress setting. 25840 Fixes the bug part of bug 798. Bugfix on 0.1.2.2-alpha. 25841 - Allow separate log levels to be configured for different logging 25842 domains. For example, this allows one to log all notices, warnings, 25843 or errors, plus all memory management messages of level debug or 25844 higher, with: Log [MM] debug-err [*] notice-err file /var/log/tor. 25845 - Update to the "June 3 2009" ip-to-country file. 25846 25847 o Minor features (relays): 25848 - Raise the minimum rate limiting to be a relay from 20000 bytes 25849 to 20480 bytes (aka 20KB/s), to match our documentation. Also 25850 update directory authorities so they always assign the Fast flag 25851 to relays with 20KB/s of capacity. Now people running relays won't 25852 suddenly find themselves not seeing any use, if the network gets 25853 faster on average. 25854 - If we're a relay and we change our IP address, be more verbose 25855 about the reason that made us change. Should help track down 25856 further bugs for relays on dynamic IP addresses. 25857 - Exit servers can now answer resolve requests for ip6.arpa addresses. 25858 - Implement most of Proposal 152: allow specialized servers to permit 25859 single-hop circuits, and clients to use those servers to build 25860 single-hop circuits when using a specialized controller. Patch 25861 from Josh Albrecht. Resolves feature request 768. 25862 - When relays do their initial bandwidth measurement, don't limit 25863 to just our entry guards for the test circuits. Otherwise we tend 25864 to have multiple test circuits going through a single entry guard, 25865 which makes our bandwidth test less accurate. Fixes part of bug 654; 25866 patch contributed by Josh Albrecht. 25867 25868 o Minor features (directory authorities): 25869 - Try not to open more than one descriptor-downloading connection 25870 to an authority at once. This should reduce load on directory 25871 authorities. Fixes bug 366. 25872 - Add cross-certification to newly generated certificates, so that 25873 a signing key is enough information to look up a certificate. Start 25874 serving certificates by <identity digest, signing key digest> 25875 pairs. Implements proposal 157. 25876 - When a directory authority downloads a descriptor that it then 25877 immediately rejects, do not retry downloading it right away. Should 25878 save some bandwidth on authorities. Fix for bug 888. Patch by 25879 Sebastian Hahn. 25880 - Directory authorities now serve a /tor/dbg-stability.txt URL to 25881 help debug WFU and MTBF calculations. 25882 - In directory authorities' approved-routers files, allow 25883 fingerprints with or without space. 25884 25885 o Minor features (directory mirrors): 25886 - When a download gets us zero good descriptors, do not notify 25887 Tor that new directory information has arrived. 25888 - Servers support a new URL scheme for consensus downloads that 25889 allows the client to specify which authorities are trusted. 25890 The server then only sends the consensus if the client will trust 25891 it. Otherwise a 404 error is sent back. Clients use this 25892 new scheme when the server supports it (meaning it's running 25893 0.2.1.1-alpha or later). Implements proposal 134. 25894 25895 o Minor features (bridges): 25896 - If the bridge config line doesn't specify a port, assume 443. 25897 This makes bridge lines a bit smaller and easier for users to 25898 understand. 25899 - If we're using bridges and our network goes away, be more willing 25900 to forgive our bridges and try again when we get an application 25901 request. 25902 25903 o Minor features (hidden services): 25904 - When the client launches an introduction circuit, retry with a 25905 new circuit after 30 seconds rather than 60 seconds. 25906 - Launch a second client-side introduction circuit in parallel 25907 after a delay of 15 seconds (based on work by Christian Wilms). 25908 - Hidden services start out building five intro circuits rather 25909 than three, and when the first three finish they publish a service 25910 descriptor using those. Now we publish our service descriptor much 25911 faster after restart. 25912 - Drop the requirement to have an open dir port for storing and 25913 serving v2 hidden service descriptors. 25914 25915 o Minor features (build and packaging): 25916 - On Linux, use the prctl call to re-enable core dumps when the User 25917 option is set. 25918 - Try to make sure that the version of Libevent we're running with 25919 is binary-compatible with the one we built with. May address bug 25920 897 and others. 25921 - Add a new --enable-local-appdata configuration switch to change 25922 the default location of the datadir on win32 from APPDATA to 25923 LOCAL_APPDATA. In the future, we should migrate to LOCAL_APPDATA 25924 entirely. Patch from coderman. 25925 - Build correctly against versions of OpenSSL 0.9.8 or later that 25926 are built without support for deprecated functions. 25927 - On platforms with a maximum syslog string length, truncate syslog 25928 messages to that length ourselves, rather than relying on the 25929 system to do it for us. 25930 - Automatically detect MacOSX versions earlier than 10.4.0, and 25931 disable kqueue from inside Tor when running with these versions. 25932 We previously did this from the startup script, but that was no 25933 help to people who didn't use the startup script. Resolves bug 863. 25934 - Build correctly when configured to build outside the main source 25935 path. Patch from Michael Gold. 25936 - Disable GCC's strict alias optimization by default, to avoid the 25937 likelihood of its introducing subtle bugs whenever our code violates 25938 the letter of C99's alias rules. 25939 - Change the contrib/tor.logrotate script so it makes the new 25940 logs as "_tor:_tor" rather than the default, which is generally 25941 "root:wheel". Fixes bug 676, reported by Serge Koksharov. 25942 - Change our header file guard macros to be less likely to conflict 25943 with system headers. Adam Langley noticed that we were conflicting 25944 with log.h on Android. 25945 - Add a couple of extra warnings to --enable-gcc-warnings for GCC 4.3, 25946 and stop using a warning that had become unfixably verbose under 25947 GCC 4.3. 25948 - Use a lockfile to make sure that two Tor processes are not 25949 simultaneously running with the same datadir. 25950 - Allow OpenSSL to use dynamic locks if it wants. 25951 - Add LIBS=-lrt to Makefile.am so the Tor RPMs use a static libevent. 25952 25953 o Minor features (controllers): 25954 - When generating circuit events with verbose nicknames for 25955 controllers, try harder to look up nicknames for routers on a 25956 circuit. (Previously, we would look in the router descriptors we had 25957 for nicknames, but not in the consensus.) Partial fix for bug 941. 25958 - New controller event NEWCONSENSUS that lists the networkstatus 25959 lines for every recommended relay. Now controllers like Torflow 25960 can keep up-to-date on which relays they should be using. 25961 - New controller event "clients_seen" to report a geoip-based summary 25962 of which countries we've seen clients from recently. Now controllers 25963 like Vidalia can show bridge operators that they're actually making 25964 a difference. 25965 - Add a 'getinfo status/clients-seen' controller command, in case 25966 controllers want to hear clients_seen events but connect late. 25967 - New CONSENSUS_ARRIVED event to note when a new consensus has 25968 been fetched and validated. 25969 - Add an internal-use-only __ReloadTorrcOnSIGHUP option for 25970 controllers to prevent SIGHUP from reloading the configuration. 25971 Fixes bug 856. 25972 - Return circuit purposes in response to GETINFO circuit-status. 25973 Fixes bug 858. 25974 - Serve the latest v3 networkstatus consensus via the control 25975 port. Use "getinfo dir/status-vote/current/consensus" to fetch it. 25976 - Add a "GETINFO /status/bootstrap-phase" controller option, so the 25977 controller can query our current bootstrap state in case it attaches 25978 partway through and wants to catch up. 25979 - Provide circuit purposes along with circuit events to the controller. 25980 25981 o Minor features (tools): 25982 - Do not have tor-resolve automatically refuse all .onion addresses; 25983 if AutomapHostsOnResolve is set in your torrc, this will work fine. 25984 - Add a -p option to tor-resolve for specifying the SOCKS port: some 25985 people find host:port too confusing. 25986 - Print the SOCKS5 error message string as well as the error code 25987 when a tor-resolve request fails. Patch from Jacob. 25988 25989 o Minor bugfixes (memory and resource management): 25990 - Clients no longer cache certificates for authorities they do not 25991 recognize. Bugfix on 0.2.0.9-alpha. 25992 - Do not use C's stdio library for writing to log files. This will 25993 improve logging performance by a minute amount, and will stop 25994 leaking fds when our disk is full. Fixes bug 861. 25995 - Stop erroneous use of O_APPEND in cases where we did not in fact 25996 want to re-seek to the end of a file before every last write(). 25997 - Fix a small alignment and memory-wasting bug on buffer chunks. 25998 Spotted by rovv. 25999 - Add a malloc_good_size implementation to OpenBSD_malloc_linux.c, 26000 to avoid unused RAM in buffer chunks and memory pools. 26001 - Reduce the default smartlist size from 32 to 16; it turns out that 26002 most smartlists hold around 8-12 elements tops. 26003 - Make dumpstats() log the fullness and size of openssl-internal 26004 buffers. 26005 - If the user has applied the experimental SSL_MODE_RELEASE_BUFFERS 26006 patch to their OpenSSL, turn it on to save memory on servers. This 26007 patch will (with any luck) get included in a mainline distribution 26008 before too long. 26009 - Fix a memory leak when v3 directory authorities load their keys 26010 and cert from disk. Bugfix on 0.2.0.1-alpha. 26011 - Stop using malloc_usable_size() to use more area than we had 26012 actually allocated: it was safe, but made valgrind really unhappy. 26013 - Make the assert_circuit_ok() function work correctly on circuits that 26014 have already been marked for close. 26015 - Fix uninitialized size field for memory area allocation: may improve 26016 memory performance during directory parsing. 26017 26018 o Minor bugfixes (clients): 26019 - Stop reloading the router list from disk for no reason when we 26020 run out of reachable directory mirrors. Once upon a time reloading 26021 it would set the 'is_running' flag back to 1 for them. It hasn't 26022 done that for a long time. 26023 - When we had picked an exit node for a connection, but marked it as 26024 "optional", and it turned out we had no onion key for the exit, 26025 stop wanting that exit and try again. This situation may not 26026 be possible now, but will probably become feasible with proposal 26027 158. Spotted by rovv. Fixes another case of bug 752. 26028 - Fix a bug in address parsing that was preventing bridges or hidden 26029 service targets from being at IPv6 addresses. 26030 - Do not remove routers as too old if we do not have any consensus 26031 document. Bugfix on 0.2.0.7-alpha. 26032 - When an exit relay resolves a stream address to a local IP address, 26033 do not just keep retrying that same exit relay over and 26034 over. Instead, just close the stream. Addresses bug 872. Bugfix 26035 on 0.2.0.32. Patch from rovv. 26036 - Made Tor a little less aggressive about deleting expired 26037 certificates. Partial fix for bug 854. 26038 - Treat duplicate certificate fetches as failures, so that we do 26039 not try to re-fetch an expired certificate over and over and over. 26040 - Do not say we're fetching a certificate when we'll in fact skip it 26041 because of a pending download. 26042 - If we have correct permissions on $datadir, we complain to stdout 26043 and fail to start. But dangerous permissions on 26044 $datadir/cached-status/ would cause us to open a log and complain 26045 there. Now complain to stdout and fail to start in both cases. Fixes 26046 bug 820, reported by seeess. 26047 26048 o Minor bugfixes (bridges): 26049 - When we made bridge authorities stop serving bridge descriptors over 26050 unencrypted links, we also broke DirPort reachability testing for 26051 bridges. So bridges with a non-zero DirPort were printing spurious 26052 warns to their logs. Bugfix on 0.2.0.16-alpha. Fixes bug 709. 26053 - Don't allow a bridge to publish its router descriptor to a 26054 non-bridge directory authority. Fixes part of bug 932. 26055 - When we change to or from being a bridge, reset our counts of 26056 client usage by country. Fixes bug 932. 26057 26058 o Minor bugfixes (relays): 26059 - Log correct error messages for DNS-related network errors on 26060 Windows. 26061 - Actually return -1 in the error case for read_bandwidth_usage(). 26062 Harmless bug, since we currently don't care about the return value 26063 anywhere. Bugfix on 0.2.0.9-alpha. 26064 - Provide a more useful log message if bug 977 (related to buffer 26065 freelists) ever reappears, and do not crash right away. 26066 - We were already rejecting relay begin cells with destination port 26067 of 0. Now also reject extend cells with destination port or address 26068 of 0. Suggested by lark. 26069 - When we can't transmit a DNS request due to a network error, retry 26070 it after a while, and eventually transmit a failing response to 26071 the RESOLVED cell. Bugfix on 0.1.2.5-alpha. 26072 - Solve a bug that kept hardware crypto acceleration from getting 26073 enabled when accounting was turned on. Fixes bug 907. Bugfix on 26074 0.0.9pre6. 26075 - When a canonical connection appears later in our internal list 26076 than a noncanonical one for a given OR ID, always use the 26077 canonical one. Bugfix on 0.2.0.12-alpha. Fixes bug 805. 26078 Spotted by rovv. 26079 - Avoid some nasty corner cases in the logic for marking connections 26080 as too old or obsolete or noncanonical for circuits. Partial 26081 bugfix on bug 891. 26082 - Fix another interesting corner-case of bug 891 spotted by rovv: 26083 Previously, if two hosts had different amounts of clock drift, and 26084 one of them created a new connection with just the wrong timing, 26085 the other might decide to deprecate the new connection erroneously. 26086 Bugfix on 0.1.1.13-alpha. 26087 - If one win32 nameserver fails to get added, continue adding the 26088 rest, and don't automatically fail. 26089 - Fix a bug where an unreachable relay would establish enough 26090 reachability testing circuits to do a bandwidth test -- if 26091 we already have a connection to the middle hop of the testing 26092 circuit, then it could establish the last hop by using the existing 26093 connection. Bugfix on 0.1.2.2-alpha, exposed when we made testing 26094 circuits no longer use entry guards in 0.2.1.3-alpha. 26095 26096 o Minor bugfixes (directory authorities): 26097 - Limit uploaded directory documents to be 16M rather than 500K. 26098 The directory authorities were refusing v3 consensus votes from 26099 other authorities, since the votes are now 504K. Fixes bug 959; 26100 bugfix on 0.0.2pre17 (where we raised it from 50K to 500K ;). 26101 - Directory authorities should never send a 503 "busy" response to 26102 requests for votes or keys. Bugfix on 0.2.0.8-alpha; exposed by 26103 bug 959. 26104 - Fix code so authorities _actually_ send back X-Descriptor-Not-New 26105 headers. Bugfix on 0.2.0.10-alpha. 26106 26107 o Minor bugfixes (hidden services): 26108 - When we can't find an intro key for a v2 hidden service descriptor, 26109 fall back to the v0 hidden service descriptor and log a bug message. 26110 Workaround for bug 1024. 26111 - In very rare situations new hidden service descriptors were 26112 published earlier than 30 seconds after the last change to the 26113 service. (We currently think that a hidden service descriptor 26114 that's been stable for 30 seconds is worth publishing.) 26115 - If a hidden service sends us an END cell, do not consider 26116 retrying the connection; just close it. Patch from rovv. 26117 - If we are not using BEGIN_DIR cells, don't attempt to contact hidden 26118 service directories if they have no advertised dir port. Bugfix 26119 on 0.2.0.10-alpha. 26120 26121 o Minor bugfixes (tools): 26122 - In the torify(1) manpage, mention that tsocks will leak your 26123 DNS requests. 26124 26125 o Minor bugfixes (controllers): 26126 - If the controller claimed responsibility for a stream, but that 26127 stream never finished making its connection, it would live 26128 forever in circuit_wait state. Now we close it after SocksTimeout 26129 seconds. Bugfix on 0.1.2.7-alpha; reported by Mike Perry. 26130 - Make DNS resolved controller events into "CLOSED", not 26131 "FAILED". Bugfix on 0.1.2.5-alpha. Fix by Robert Hogan. Resolves 26132 bug 807. 26133 - The control port would close the connection before flushing long 26134 replies, such as the network consensus, if a QUIT command was issued 26135 before the reply had completed. Now, the control port flushes all 26136 pending replies before closing the connection. Also fix a spurious 26137 warning when a QUIT command is issued after a malformed or rejected 26138 AUTHENTICATE command, but before the connection was closed. Patch 26139 by Marcus Griep. Fixes bugs 1015 and 1016. 26140 - Fix a bug that made stream bandwidth get misreported to the 26141 controller. 26142 26143 o Deprecated and removed features: 26144 - The old "tor --version --version" command, which would print out 26145 the subversion "Id" of most of the source files, is now removed. It 26146 turned out to be less useful than we'd expected, and harder to 26147 maintain. 26148 - RedirectExits has been removed. It was deprecated since 26149 0.2.0.3-alpha. 26150 - Finally remove deprecated "EXTENDED_FORMAT" controller feature. It 26151 has been called EXTENDED_EVENTS since 0.1.2.4-alpha. 26152 - Cell pools are now always enabled; --disable-cell-pools is ignored. 26153 - Directory mirrors no longer fetch the v1 directory or 26154 running-routers files. They are obsolete, and nobody asks for them 26155 anymore. This is the first step to making v1 authorities obsolete. 26156 - Take out the TestVia config option, since it was a workaround for 26157 a bug that was fixed in Tor 0.1.1.21. 26158 - Mark RendNodes, RendExcludeNodes, HiddenServiceNodes, and 26159 HiddenServiceExcludeNodes as obsolete: they never worked properly, 26160 and nobody seems to be using them. Fixes bug 754. Bugfix on 26161 0.1.0.1-rc. Patch from Christian Wilms. 26162 - Remove all backward-compatibility code for relays running 26163 versions of Tor so old that they no longer work at all on the 26164 Tor network. 26165 26166 o Code simplifications and refactoring: 26167 - Tool-assisted documentation cleanup. Nearly every function or 26168 static variable in Tor should have its own documentation now. 26169 - Rename the confusing or_is_obsolete field to the more appropriate 26170 is_bad_for_new_circs, and move it to or_connection_t where it 26171 belongs. 26172 - Move edge-only flags from connection_t to edge_connection_t: not 26173 only is this better coding, but on machines of plausible alignment, 26174 it should save 4-8 bytes per connection_t. "Every little bit helps." 26175 - Rename ServerDNSAllowBrokenResolvConf to ServerDNSAllowBrokenConfig 26176 for consistency; keep old option working for backward compatibility. 26177 - Simplify the code for finding connections to use for a circuit. 26178 - Revise the connection_new functions so that a more typesafe variant 26179 exists. This will work better with Coverity, and let us find any 26180 actual mistakes we're making here. 26181 - Refactor unit testing logic so that dmalloc can be used sensibly 26182 with unit tests to check for memory leaks. 26183 - Move all hidden-service related fields from connection and circuit 26184 structure to substructures: this way they won't eat so much memory. 26185 - Squeeze 2-5% out of client performance (according to oprofile) by 26186 improving the implementation of some policy-manipulation functions. 26187 - Change the implementation of ExcludeNodes and ExcludeExitNodes to 26188 be more efficient. Formerly it was quadratic in the number of 26189 servers; now it should be linear. Fixes bug 509. 26190 - Save 16-22 bytes per open circuit by moving the n_addr, n_port, 26191 and n_conn_id_digest fields into a separate structure that's 26192 only needed when the circuit has not yet attached to an n_conn. 26193 - Optimize out calls to time(NULL) that occur for every IO operation, 26194 or for every cell. On systems like Windows where time() is a 26195 slow syscall, this fix will be slightly helpful. 26196 26197 26198 Changes in version 0.2.0.35 - 2009-06-24 26199 o Security fix: 26200 - Avoid crashing in the presence of certain malformed descriptors. 26201 Found by lark, and by automated fuzzing. 26202 - Fix an edge case where a malicious exit relay could convince a 26203 controller that the client's DNS question resolves to an internal IP 26204 address. Bug found and fixed by "optimist"; bugfix on 0.1.2.8-beta. 26205 26206 o Major bugfixes: 26207 - Finally fix the bug where dynamic-IP relays disappear when their 26208 IP address changes: directory mirrors were mistakenly telling 26209 them their old address if they asked via begin_dir, so they 26210 never got an accurate answer about their new address, so they 26211 just vanished after a day. For belt-and-suspenders, relays that 26212 don't set Address in their config now avoid using begin_dir for 26213 all direct connections. Should fix bugs 827, 883, and 900. 26214 - Fix a timing-dependent, allocator-dependent, DNS-related crash bug 26215 that would occur on some exit nodes when DNS failures and timeouts 26216 occurred in certain patterns. Fix for bug 957. 26217 26218 o Minor bugfixes: 26219 - When starting with a cache over a few days old, do not leak 26220 memory for the obsolete router descriptors in it. Bugfix on 26221 0.2.0.33; fixes bug 672. 26222 - Hidden service clients didn't use a cached service descriptor that 26223 was older than 15 minutes, but wouldn't fetch a new one either, 26224 because there was already one in the cache. Now, fetch a v2 26225 descriptor unless the same descriptor was added to the cache within 26226 the last 15 minutes. Fixes bug 997; reported by Marcus Griep. 26227 26228 26229 Changes in version 0.2.0.34 - 2009-02-08 26230 Tor 0.2.0.34 features several more security-related fixes. You should 26231 upgrade, especially if you run an exit relay (remote crash) or a 26232 directory authority (remote infinite loop), or you're on an older 26233 (pre-XP) or not-recently-patched Windows (remote exploit). 26234 26235 This release marks end-of-life for Tor 0.1.2.x. Those Tor versions 26236 have many known flaws, and nobody should be using them. You should 26237 upgrade. If you're using a Linux or BSD and its packages are obsolete, 26238 stop using those packages and upgrade anyway. 26239 26240 o Security fixes: 26241 - Fix an infinite-loop bug on handling corrupt votes under certain 26242 circumstances. Bugfix on 0.2.0.8-alpha. 26243 - Fix a temporary DoS vulnerability that could be performed by 26244 a directory mirror. Bugfix on 0.2.0.9-alpha; reported by lark. 26245 - Avoid a potential crash on exit nodes when processing malformed 26246 input. Remote DoS opportunity. Bugfix on 0.2.0.33. 26247 - Do not accept incomplete ipv4 addresses (like 192.168.0) as valid. 26248 Spec conformance issue. Bugfix on Tor 0.0.2pre27. 26249 26250 o Minor bugfixes: 26251 - Fix compilation on systems where time_t is a 64-bit integer. 26252 Patch from Matthias Drochner. 26253 - Don't consider expiring already-closed client connections. Fixes 26254 bug 893. Bugfix on 0.0.2pre20. 26255 26256 26257 Changes in version 0.2.0.33 - 2009-01-21 26258 Tor 0.2.0.33 fixes a variety of bugs that were making relays less 26259 useful to users. It also finally fixes a bug where a relay or client 26260 that's been off for many days would take a long time to bootstrap. 26261 26262 This update also fixes an important security-related bug reported by 26263 Ilja van Sprundel. You should upgrade. (We'll send out more details 26264 about the bug once people have had some time to upgrade.) 26265 26266 o Security fixes: 26267 - Fix a heap-corruption bug that may be remotely triggerable on 26268 some platforms. Reported by Ilja van Sprundel. 26269 26270 o Major bugfixes: 26271 - When a stream at an exit relay is in state "resolving" or 26272 "connecting" and it receives an "end" relay cell, the exit relay 26273 would silently ignore the end cell and not close the stream. If 26274 the client never closes the circuit, then the exit relay never 26275 closes the TCP connection. Bug introduced in Tor 0.1.2.1-alpha; 26276 reported by "wood". 26277 - When sending CREATED cells back for a given circuit, use a 64-bit 26278 connection ID to find the right connection, rather than an addr:port 26279 combination. Now that we can have multiple OR connections between 26280 the same ORs, it is no longer possible to use addr:port to uniquely 26281 identify a connection. 26282 - Bridge relays that had DirPort set to 0 would stop fetching 26283 descriptors shortly after startup, and then briefly resume 26284 after a new bandwidth test and/or after publishing a new bridge 26285 descriptor. Bridge users that try to bootstrap from them would 26286 get a recent networkstatus but would get descriptors from up to 26287 18 hours earlier, meaning most of the descriptors were obsolete 26288 already. Reported by Tas; bugfix on 0.2.0.13-alpha. 26289 - Prevent bridge relays from serving their 'extrainfo' document 26290 to anybody who asks, now that extrainfo docs include potentially 26291 sensitive aggregated client geoip summaries. Bugfix on 26292 0.2.0.13-alpha. 26293 - If the cached networkstatus consensus is more than five days old, 26294 discard it rather than trying to use it. In theory it could be 26295 useful because it lists alternate directory mirrors, but in practice 26296 it just means we spend many minutes trying directory mirrors that 26297 are long gone from the network. Also discard router descriptors as 26298 we load them if they are more than five days old, since the onion 26299 key is probably wrong by now. Bugfix on 0.2.0.x. Fixes bug 887. 26300 26301 o Minor bugfixes: 26302 - Do not mark smartlist_bsearch_idx() function as ATTR_PURE. This bug 26303 could make gcc generate non-functional binary search code. Bugfix 26304 on 0.2.0.10-alpha. 26305 - Build correctly on platforms without socklen_t. 26306 - Compile without warnings on solaris. 26307 - Avoid potential crash on internal error during signature collection. 26308 Fixes bug 864. Patch from rovv. 26309 - Correct handling of possible malformed authority signing key 26310 certificates with internal signature types. Fixes bug 880. 26311 Bugfix on 0.2.0.3-alpha. 26312 - Fix a hard-to-trigger resource leak when logging credential status. 26313 CID 349. 26314 - When we can't initialize DNS because the network is down, do not 26315 automatically stop Tor from starting. Instead, we retry failed 26316 dns_init() every 10 minutes, and change the exit policy to reject 26317 *:* until one succeeds. Fixes bug 691. 26318 - Use 64 bits instead of 32 bits for connection identifiers used with 26319 the controller protocol, to greatly reduce risk of identifier reuse. 26320 - When we're choosing an exit node for a circuit, and we have 26321 no pending streams, choose a good general exit rather than one that 26322 supports "all the pending streams". Bugfix on 0.1.1.x. Fix by rovv. 26323 - Fix another case of assuming, when a specific exit is requested, 26324 that we know more than the user about what hosts it allows. 26325 Fixes one case of bug 752. Patch from rovv. 26326 - Clip the MaxCircuitDirtiness config option to a minimum of 10 26327 seconds. Warn the user if lower values are given in the 26328 configuration. Bugfix on 0.1.0.1-rc. Patch by Sebastian. 26329 - Clip the CircuitBuildTimeout to a minimum of 30 seconds. Warn the 26330 user if lower values are given in the configuration. Bugfix on 26331 0.1.1.17-rc. Patch by Sebastian. 26332 - Fix a memory leak when we decline to add a v2 rendezvous descriptor to 26333 the cache because we already had a v0 descriptor with the same ID. 26334 Bugfix on 0.2.0.18-alpha. 26335 - Fix a race condition when freeing keys shared between main thread 26336 and CPU workers that could result in a memory leak. Bugfix on 26337 0.1.0.1-rc. Fixes bug 889. 26338 - Send a valid END cell back when a client tries to connect to a 26339 nonexistent hidden service port. Bugfix on 0.1.2.15. Fixes bug 26340 840. Patch from rovv. 26341 - Check which hops rendezvous stream cells are associated with to 26342 prevent possible guess-the-streamid injection attacks from 26343 intermediate hops. Fixes another case of bug 446. Based on patch 26344 from rovv. 26345 - If a broken client asks a non-exit router to connect somewhere, 26346 do not even do the DNS lookup before rejecting the connection. 26347 Fixes another case of bug 619. Patch from rovv. 26348 - When a relay gets a create cell it can't decrypt (e.g. because it's 26349 using the wrong onion key), we were dropping it and letting the 26350 client time out. Now actually answer with a destroy cell. Fixes 26351 bug 904. Bugfix on 0.0.2pre8. 26352 26353 o Minor bugfixes (hidden services): 26354 - Do not throw away existing introduction points on SIGHUP. Bugfix on 26355 0.0.6pre1. Patch by Karsten. Fixes bug 874. 26356 26357 o Minor features: 26358 - Report the case where all signatures in a detached set are rejected 26359 differently than the case where there is an error handling the 26360 detached set. 26361 - When we realize that another process has modified our cached 26362 descriptors, print out a more useful error message rather than 26363 triggering an assertion. Fixes bug 885. Patch from Karsten. 26364 - Implement the 0x20 hack to better resist DNS poisoning: set the 26365 case on outgoing DNS requests randomly, and reject responses that do 26366 not match the case correctly. This logic can be disabled with the 26367 ServerDNSRandomizeCase setting, if you are using one of the 0.3% 26368 of servers that do not reliably preserve case in replies. See 26369 "Increased DNS Forgery Resistance through 0x20-Bit Encoding" 26370 for more info. 26371 - Check DNS replies for more matching fields to better resist DNS 26372 poisoning. 26373 - Never use OpenSSL compression: it wastes RAM and CPU trying to 26374 compress cells, which are basically all encrypted, compressed, or 26375 both. 26376 26377 26378 Changes in version 0.2.0.32 - 2008-11-20 26379 Tor 0.2.0.32 fixes a major security problem in Debian and Ubuntu 26380 packages (and maybe other packages) noticed by Theo de Raadt, fixes 26381 a smaller security flaw that might allow an attacker to access local 26382 services, further improves hidden service performance, and fixes a 26383 variety of other issues. 26384 26385 o Security fixes: 26386 - The "User" and "Group" config options did not clear the 26387 supplementary group entries for the Tor process. The "User" option 26388 is now more robust, and we now set the groups to the specified 26389 user's primary group. The "Group" option is now ignored. For more 26390 detailed logging on credential switching, set CREDENTIAL_LOG_LEVEL 26391 in common/compat.c to LOG_NOTICE or higher. Patch by Jacob Appelbaum 26392 and Steven Murdoch. Bugfix on 0.0.2pre14. Fixes bug 848 and 857. 26393 - The "ClientDNSRejectInternalAddresses" config option wasn't being 26394 consistently obeyed: if an exit relay refuses a stream because its 26395 exit policy doesn't allow it, we would remember what IP address 26396 the relay said the destination address resolves to, even if it's 26397 an internal IP address. Bugfix on 0.2.0.7-alpha; patch by rovv. 26398 26399 o Major bugfixes: 26400 - Fix a DOS opportunity during the voting signature collection process 26401 at directory authorities. Spotted by rovv. Bugfix on 0.2.0.x. 26402 26403 o Major bugfixes (hidden services): 26404 - When fetching v0 and v2 rendezvous service descriptors in parallel, 26405 we were failing the whole hidden service request when the v0 26406 descriptor fetch fails, even if the v2 fetch is still pending and 26407 might succeed. Similarly, if the last v2 fetch fails, we were 26408 failing the whole hidden service request even if a v0 fetch is 26409 still pending. Fixes bug 814. Bugfix on 0.2.0.10-alpha. 26410 - When extending a circuit to a hidden service directory to upload a 26411 rendezvous descriptor using a BEGIN_DIR cell, almost 1/6 of all 26412 requests failed, because the router descriptor has not been 26413 downloaded yet. In these cases, do not attempt to upload the 26414 rendezvous descriptor, but wait until the router descriptor is 26415 downloaded and retry. Likewise, do not attempt to fetch a rendezvous 26416 descriptor from a hidden service directory for which the router 26417 descriptor has not yet been downloaded. Fixes bug 767. Bugfix 26418 on 0.2.0.10-alpha. 26419 26420 o Minor bugfixes: 26421 - Fix several infrequent memory leaks spotted by Coverity. 26422 - When testing for libevent functions, set the LDFLAGS variable 26423 correctly. Found by Riastradh. 26424 - Avoid a bug where the FastFirstHopPK 0 option would keep Tor from 26425 bootstrapping with tunneled directory connections. Bugfix on 26426 0.1.2.5-alpha. Fixes bug 797. Found by Erwin Lam. 26427 - When asked to connect to A.B.exit:80, if we don't know the IP for A 26428 and we know that server B rejects most-but-not all connections to 26429 port 80, we would previously reject the connection. Now, we assume 26430 the user knows what they were asking for. Fixes bug 752. Bugfix 26431 on 0.0.9rc5. Diagnosed by BarkerJr. 26432 - If we overrun our per-second write limits a little, count this as 26433 having used up our write allocation for the second, and choke 26434 outgoing directory writes. Previously, we had only counted this when 26435 we had met our limits precisely. Fixes bug 824. Patch from by rovv. 26436 Bugfix on 0.2.0.x (??). 26437 - Remove the old v2 directory authority 'lefkada' from the default 26438 list. It has been gone for many months. 26439 - Stop doing unaligned memory access that generated bus errors on 26440 sparc64. Bugfix on 0.2.0.10-alpha. Fixes bug 862. 26441 - Make USR2 log-level switch take effect immediately. Bugfix on 26442 0.1.2.8-beta. 26443 26444 o Minor bugfixes (controller): 26445 - Make DNS resolved events into "CLOSED", not "FAILED". Bugfix on 26446 0.1.2.5-alpha. Fix by Robert Hogan. Resolves bug 807. 26447 26448 26449 Changes in version 0.2.0.31 - 2008-09-03 26450 Tor 0.2.0.31 addresses two potential anonymity issues, starts to fix 26451 a big bug we're seeing where in rare cases traffic from one Tor stream 26452 gets mixed into another stream, and fixes a variety of smaller issues. 26453 26454 o Major bugfixes: 26455 - Make sure that two circuits can never exist on the same connection 26456 with the same circuit ID, even if one is marked for close. This 26457 is conceivably a bugfix for bug 779. Bugfix on 0.1.0.4-rc. 26458 - Relays now reject risky extend cells: if the extend cell includes 26459 a digest of all zeroes, or asks to extend back to the relay that 26460 sent the extend cell, tear down the circuit. Ideas suggested 26461 by rovv. 26462 - If not enough of our entry guards are available so we add a new 26463 one, we might use the new one even if it overlapped with the 26464 current circuit's exit relay (or its family). Anonymity bugfix 26465 pointed out by rovv. 26466 26467 o Minor bugfixes: 26468 - Recover 3-7 bytes that were wasted per memory chunk. Fixes bug 26469 794; bug spotted by rovv. Bugfix on 0.2.0.1-alpha. 26470 - Correctly detect the presence of the linux/netfilter_ipv4.h header 26471 when building against recent kernels. Bugfix on 0.1.2.1-alpha. 26472 - Pick size of default geoip filename string correctly on windows. 26473 Fixes bug 806. Bugfix on 0.2.0.30. 26474 - Make the autoconf script accept the obsolete --with-ssl-dir 26475 option as an alias for the actually-working --with-openssl-dir 26476 option. Fix the help documentation to recommend --with-openssl-dir. 26477 Based on a patch by "Dave". Bugfix on 0.2.0.1-alpha. 26478 - When using the TransPort option on OpenBSD, and using the User 26479 option to change UID and drop privileges, make sure to open 26480 /dev/pf before dropping privileges. Fixes bug 782. Patch from 26481 Christopher Davis. Bugfix on 0.1.2.1-alpha. 26482 - Try to attach connections immediately upon receiving a RENDEZVOUS2 26483 or RENDEZVOUS_ESTABLISHED cell. This can save a second or two 26484 on the client side when connecting to a hidden service. Bugfix 26485 on 0.0.6pre1. Found and fixed by Christian Wilms; resolves bug 743. 26486 - When closing an application-side connection because its circuit is 26487 getting torn down, generate the stream event correctly. Bugfix on 26488 0.1.2.x. Anonymous patch. 26489 26490 26491 Changes in version 0.2.0.30 - 2008-07-15 26492 This new stable release switches to a more efficient directory 26493 distribution design, adds features to make connections to the Tor 26494 network harder to block, allows Tor to act as a DNS proxy, adds separate 26495 rate limiting for relayed traffic to make it easier for clients to 26496 become relays, fixes a variety of potential anonymity problems, and 26497 includes the usual huge pile of other features and bug fixes. 26498 26499 o New v3 directory design: 26500 - Tor now uses a new way to learn about and distribute information 26501 about the network: the directory authorities vote on a common 26502 network status document rather than each publishing their own 26503 opinion. Now clients and caches download only one networkstatus 26504 document to bootstrap, rather than downloading one for each 26505 authority. Clients only download router descriptors listed in 26506 the consensus. Implements proposal 101; see doc/spec/dir-spec.txt 26507 for details. 26508 - Set up moria1, tor26, and dizum as v3 directory authorities 26509 in addition to being v2 authorities. Also add three new ones: 26510 ides (run by Mike Perry), gabelmoo (run by Karsten Loesing), and 26511 dannenberg (run by CCC). 26512 - Switch to multi-level keys for directory authorities: now their 26513 long-term identity key can be kept offline, and they periodically 26514 generate a new signing key. Clients fetch the "key certificates" 26515 to keep up to date on the right keys. Add a standalone tool 26516 "tor-gencert" to generate key certificates. Implements proposal 103. 26517 - Add a new V3AuthUseLegacyKey config option to make it easier for 26518 v3 authorities to change their identity keys if another bug like 26519 Debian's OpenSSL RNG flaw appears. 26520 - Authorities and caches fetch the v2 networkstatus documents 26521 less often, now that v3 is recommended. 26522 26523 o Make Tor connections stand out less on the wire: 26524 - Use an improved TLS handshake designed by Steven Murdoch in proposal 26525 124, as revised in proposal 130. The new handshake is meant to 26526 be harder for censors to fingerprint, and it adds the ability 26527 to detect certain kinds of man-in-the-middle traffic analysis 26528 attacks. The new handshake format includes version negotiation for 26529 OR connections as described in proposal 105, which will allow us 26530 to improve Tor's link protocol more safely in the future. 26531 - Enable encrypted directory connections by default for non-relays, 26532 so censor tools that block Tor directory connections based on their 26533 plaintext patterns will no longer work. This means Tor works in 26534 certain censored countries by default again. 26535 - Stop including recognizeable strings in the commonname part of 26536 Tor's x509 certificates. 26537 26538 o Implement bridge relays: 26539 - Bridge relays (or "bridges" for short) are Tor relays that aren't 26540 listed in the main Tor directory. Since there is no complete public 26541 list of them, even an ISP that is filtering connections to all the 26542 known Tor relays probably won't be able to block all the bridges. 26543 See doc/design-paper/blocking.pdf and proposal 125 for details. 26544 - New config option BridgeRelay that specifies you want to be a 26545 bridge relay rather than a normal relay. When BridgeRelay is set 26546 to 1, then a) you cache dir info even if your DirPort ins't on, 26547 and b) the default for PublishServerDescriptor is now "bridge" 26548 rather than "v2,v3". 26549 - New config option "UseBridges 1" for clients that want to use bridge 26550 relays instead of ordinary entry guards. Clients then specify 26551 bridge relays by adding "Bridge" lines to their config file. Users 26552 can learn about a bridge relay either manually through word of 26553 mouth, or by one of our rate-limited mechanisms for giving out 26554 bridge addresses without letting an attacker easily enumerate them 26555 all. See https://www.torproject.org/bridges for details. 26556 - Bridge relays behave like clients with respect to time intervals 26557 for downloading new v3 consensus documents -- otherwise they 26558 stand out. Bridge users now wait until the end of the interval, 26559 so their bridge relay will be sure to have a new consensus document. 26560 26561 o Implement bridge directory authorities: 26562 - Bridge authorities are like normal directory authorities, except 26563 they don't serve a list of known bridges. Therefore users that know 26564 a bridge's fingerprint can fetch a relay descriptor for that bridge, 26565 including fetching updates e.g. if the bridge changes IP address, 26566 yet an attacker can't just fetch a list of all the bridges. 26567 - Set up Tonga as the default bridge directory authority. 26568 - Bridge authorities refuse to serve bridge descriptors or other 26569 bridge information over unencrypted connections (that is, when 26570 responding to direct DirPort requests rather than begin_dir cells.) 26571 - Bridge directory authorities do reachability testing on the 26572 bridges they know. They provide router status summaries to the 26573 controller via "getinfo ns/purpose/bridge", and also dump summaries 26574 to a file periodically, so we can keep internal stats about which 26575 bridges are functioning. 26576 - If bridge users set the UpdateBridgesFromAuthority config option, 26577 but the digest they ask for is a 404 on the bridge authority, 26578 they fall back to contacting the bridge directly. 26579 - Bridges always use begin_dir to publish their server descriptor to 26580 the bridge authority using an anonymous encrypted tunnel. 26581 - Early work on a "bridge community" design: if bridge authorities set 26582 the BridgePassword config option, they will serve a snapshot of 26583 known bridge routerstatuses from their DirPort to anybody who 26584 knows that password. Unset by default. 26585 - Tor now includes an IP-to-country GeoIP file, so bridge relays can 26586 report sanitized aggregated summaries in their extra-info documents 26587 privately to the bridge authority, listing which countries are 26588 able to reach them. We hope this mechanism will let us learn when 26589 certain countries start trying to block bridges. 26590 - Bridge authorities write bridge descriptors to disk, so they can 26591 reload them after a reboot. They can also export the descriptors 26592 to other programs, so we can distribute them to blocked users via 26593 the BridgeDB interface, e.g. via https://bridges.torproject.org/ 26594 and bridges@torproject.org. 26595 26596 o Tor can be a DNS proxy: 26597 - The new client-side DNS proxy feature replaces the need for 26598 dns-proxy-tor: Just set "DNSPort 9999", and Tor will now listen 26599 for DNS requests on port 9999, use the Tor network to resolve them 26600 anonymously, and send the reply back like a regular DNS server. 26601 The code still only implements a subset of DNS. 26602 - Add a new AutomapHostsOnResolve option: when it is enabled, any 26603 resolve request for hosts matching a given pattern causes Tor to 26604 generate an internal virtual address mapping for that host. This 26605 allows DNSPort to work sensibly with hidden service users. By 26606 default, .exit and .onion addresses are remapped; the list of 26607 patterns can be reconfigured with AutomapHostsSuffixes. 26608 - Add an "-F" option to tor-resolve to force a resolve for a .onion 26609 address. Thanks to the AutomapHostsOnResolve option, this is no 26610 longer a completely silly thing to do. 26611 26612 o Major features (relay usability): 26613 - New config options RelayBandwidthRate and RelayBandwidthBurst: 26614 a separate set of token buckets for relayed traffic. Right now 26615 relayed traffic is defined as answers to directory requests, and 26616 OR connections that don't have any local circuits on them. See 26617 proposal 111 for details. 26618 - Create listener connections before we setuid to the configured 26619 User and Group. Now non-Windows users can choose port values 26620 under 1024, start Tor as root, and have Tor bind those ports 26621 before it changes to another UID. (Windows users could already 26622 pick these ports.) 26623 - Added a new ConstrainedSockets config option to set SO_SNDBUF and 26624 SO_RCVBUF on TCP sockets. Hopefully useful for Tor servers running 26625 on "vserver" accounts. Patch from coderman. 26626 26627 o Major features (directory authorities): 26628 - Directory authorities track weighted fractional uptime and weighted 26629 mean-time-between failures for relays. WFU is suitable for deciding 26630 whether a node is "usually up", while MTBF is suitable for deciding 26631 whether a node is "likely to stay up." We need both, because 26632 "usually up" is a good requirement for guards, while "likely to 26633 stay up" is a good requirement for long-lived connections. 26634 - Directory authorities use a new formula for selecting which relays 26635 to advertise as Guards: they must be in the top 7/8 in terms of 26636 how long we have known about them, and above the median of those 26637 nodes in terms of weighted fractional uptime. 26638 - Directory authorities use a new formula for selecting which relays 26639 to advertise as Stable: when we have 4 or more days of data, use 26640 median measured MTBF rather than median declared uptime. Implements 26641 proposal 108. 26642 - Directory authorities accept and serve "extra info" documents for 26643 routers. Routers now publish their bandwidth-history lines in the 26644 extra-info docs rather than the main descriptor. This step saves 26645 60% (!) on compressed router descriptor downloads. Servers upload 26646 extra-info docs to any authority that accepts them; directory 26647 authorities now allow multiple router descriptors and/or extra 26648 info documents to be uploaded in a single go. Authorities, and 26649 caches that have been configured to download extra-info documents, 26650 download them as needed. Implements proposal 104. 26651 - Authorities now list relays who have the same nickname as 26652 a different named relay, but list them with a new flag: 26653 "Unnamed". Now we can make use of relays that happen to pick the 26654 same nickname as a server that registered two years ago and then 26655 disappeared. Implements proposal 122. 26656 - Store routers in a file called cached-descriptors instead of in 26657 cached-routers. Initialize cached-descriptors from cached-routers 26658 if the old format is around. The new format allows us to store 26659 annotations along with descriptors, to record the time we received 26660 each descriptor, its source, and its purpose: currently one of 26661 general, controller, or bridge. 26662 26663 o Major features (other): 26664 - New config options WarnPlaintextPorts and RejectPlaintextPorts so 26665 Tor can warn and/or refuse connections to ports commonly used with 26666 vulnerable-plaintext protocols. Currently we warn on ports 23, 26667 109, 110, and 143, but we don't reject any. Based on proposal 129 26668 by Kevin Bauer and Damon McCoy. 26669 - Integrate Karsten Loesing's Google Summer of Code project to publish 26670 hidden service descriptors on a set of redundant relays that are a 26671 function of the hidden service address. Now we don't have to rely 26672 on three central hidden service authorities for publishing and 26673 fetching every hidden service descriptor. Implements proposal 114. 26674 - Allow tunnelled directory connections to ask for an encrypted 26675 "begin_dir" connection or an anonymized "uses a full Tor circuit" 26676 connection independently. Now we can make anonymized begin_dir 26677 connections for (e.g.) more secure hidden service posting and 26678 fetching. 26679 26680 o Major bugfixes (crashes and assert failures): 26681 - Stop imposing an arbitrary maximum on the number of file descriptors 26682 used for busy servers. Bug reported by Olaf Selke; patch from 26683 Sebastian Hahn. 26684 - Avoid possible failures when generating a directory with routers 26685 with over-long versions strings, or too many flags set. 26686 - Fix a rare assert error when we're closing one of our threads: 26687 use a mutex to protect the list of logs, so we never write to the 26688 list as it's being freed. Fixes the very rare bug 575, which is 26689 kind of the revenge of bug 222. 26690 - Avoid segfault in the case where a badly behaved v2 versioning 26691 directory sends a signed networkstatus with missing client-versions. 26692 - When we hit an EOF on a log (probably because we're shutting down), 26693 don't try to remove the log from the list: just mark it as 26694 unusable. (Bulletproofs against bug 222.) 26695 26696 o Major bugfixes (code security fixes): 26697 - Detect size overflow in zlib code. Reported by Justin Ferguson and 26698 Dan Kaminsky. 26699 - Rewrite directory tokenization code to never run off the end of 26700 a string. Fixes bug 455. Patch from croup. 26701 - Be more paranoid about overwriting sensitive memory on free(), 26702 as a defensive programming tactic to ensure forward secrecy. 26703 26704 o Major bugfixes (anonymity fixes): 26705 - Reject requests for reverse-dns lookup of names that are in 26706 a private address space. Patch from lodger. 26707 - Never report that we've used more bandwidth than we're willing to 26708 relay: it leaks how much non-relay traffic we're using. Resolves 26709 bug 516. 26710 - As a client, do not believe any server that tells us that an 26711 address maps to an internal address space. 26712 - Warn about unsafe ControlPort configurations. 26713 - Directory authorities now call routers Fast if their bandwidth is 26714 at least 100KB/s, and consider their bandwidth adequate to be a 26715 Guard if it is at least 250KB/s, no matter the medians. This fix 26716 complements proposal 107. 26717 - Directory authorities now never mark more than 2 servers per IP as 26718 Valid and Running (or 5 on addresses shared by authorities). 26719 Implements proposal 109, by Kevin Bauer and Damon McCoy. 26720 - If we're a relay, avoid picking ourselves as an introduction point, 26721 a rendezvous point, or as the final hop for internal circuits. Bug 26722 reported by taranis and lodger. 26723 - Exit relays that are used as a client can now reach themselves 26724 using the .exit notation, rather than just launching an infinite 26725 pile of circuits. Fixes bug 641. Reported by Sebastian Hahn. 26726 - Fix a bug where, when we were choosing the 'end stream reason' to 26727 put in our relay end cell that we send to the exit relay, Tor 26728 clients on Windows were sometimes sending the wrong 'reason'. The 26729 anonymity problem is that exit relays may be able to guess whether 26730 the client is running Windows, thus helping partition the anonymity 26731 set. Down the road we should stop sending reasons to exit relays, 26732 or otherwise prevent future versions of this bug. 26733 - Only update guard status (usable / not usable) once we have 26734 enough directory information. This was causing us to discard all our 26735 guards on startup if we hadn't been running for a few weeks. Fixes 26736 bug 448. 26737 - When our directory information has been expired for a while, stop 26738 being willing to build circuits using it. Fixes bug 401. 26739 26740 o Major bugfixes (peace of mind for relay operators) 26741 - Non-exit relays no longer answer "resolve" relay cells, so they 26742 can't be induced to do arbitrary DNS requests. (Tor clients already 26743 avoid using non-exit relays for resolve cells, but now servers 26744 enforce this too.) Fixes bug 619. Patch from lodger. 26745 - When we setconf ClientOnly to 1, close any current OR and Dir 26746 listeners. Reported by mwenge. 26747 26748 o Major bugfixes (other): 26749 - If we only ever used Tor for hidden service lookups or posts, we 26750 would stop building circuits and start refusing connections after 26751 24 hours, since we falsely believed that Tor was dormant. Reported 26752 by nwf. 26753 - Add a new __HashedControlSessionPassword option for controllers 26754 to use for one-off session password hashes that shouldn't get 26755 saved to disk by SAVECONF --- Vidalia users were accumulating a 26756 pile of HashedControlPassword lines in their torrc files, one for 26757 each time they had restarted Tor and then clicked Save. Make Tor 26758 automatically convert "HashedControlPassword" to this new option but 26759 only when it's given on the command line. Partial fix for bug 586. 26760 - Patch from "Andrew S. Lists" to catch when we contact a directory 26761 mirror at IP address X and he says we look like we're coming from 26762 IP address X. Otherwise this would screw up our address detection. 26763 - Reject uploaded descriptors and extrainfo documents if they're 26764 huge. Otherwise we'll cache them all over the network and it'll 26765 clog everything up. Suggested by Aljosha Judmayer. 26766 - When a hidden service was trying to establish an introduction point, 26767 and Tor *did* manage to reuse one of the preemptively built 26768 circuits, it didn't correctly remember which one it used, 26769 so it asked for another one soon after, until there were no 26770 more preemptive circuits, at which point it launched one from 26771 scratch. Bugfix on 0.0.9.x. 26772 26773 o Rate limiting and load balancing improvements: 26774 - When we add data to a write buffer in response to the data on that 26775 write buffer getting low because of a flush, do not consider the 26776 newly added data as a candidate for immediate flushing, but rather 26777 make it wait until the next round of writing. Otherwise, we flush 26778 and refill recursively, and a single greedy TLS connection can 26779 eat all of our bandwidth. 26780 - When counting the number of bytes written on a TLS connection, 26781 look at the BIO actually used for writing to the network, not 26782 at the BIO used (sometimes) to buffer data for the network. 26783 Looking at different BIOs could result in write counts on the 26784 order of ULONG_MAX. Fixes bug 614. 26785 - If we change our MaxAdvertisedBandwidth and then reload torrc, 26786 Tor won't realize it should publish a new relay descriptor. Fixes 26787 bug 688, reported by mfr. 26788 - Avoid using too little bandwidth when our clock skips a few seconds. 26789 - Choose which bridge to use proportional to its advertised bandwidth, 26790 rather than uniformly at random. This should speed up Tor for 26791 bridge users. Also do this for people who set StrictEntryNodes. 26792 26793 o Bootstrapping faster and building circuits more intelligently: 26794 - Fix bug 660 that was preventing us from knowing that we should 26795 preemptively build circuits to handle expected directory requests. 26796 - When we're checking if we have enough dir info for each relay 26797 to begin establishing circuits, make sure that we actually have 26798 the descriptor listed in the consensus, not just any descriptor. 26799 - Correctly notify one-hop connections when a circuit build has 26800 failed. Possible fix for bug 669. Found by lodger. 26801 - Clients now hold circuitless TLS connections open for 1.5 times 26802 MaxCircuitDirtiness (15 minutes), since it is likely that they'll 26803 rebuild a new circuit over them within that timeframe. Previously, 26804 they held them open only for KeepalivePeriod (5 minutes). 26805 26806 o Performance improvements (memory): 26807 - Add OpenBSD malloc code from "phk" as an optional malloc 26808 replacement on Linux: some glibc libraries do very poorly with 26809 Tor's memory allocation patterns. Pass --enable-openbsd-malloc to 26810 ./configure to get the replacement malloc code. 26811 - Switch our old ring buffer implementation for one more like that 26812 used by free Unix kernels. The wasted space in a buffer with 1mb 26813 of data will now be more like 8k than 1mb. The new implementation 26814 also avoids realloc();realloc(); patterns that can contribute to 26815 memory fragmentation. 26816 - Change the way that Tor buffers data that it is waiting to write. 26817 Instead of queueing data cells in an enormous ring buffer for each 26818 client->OR or OR->OR connection, we now queue cells on a separate 26819 queue for each circuit. This lets us use less slack memory, and 26820 will eventually let us be smarter about prioritizing different kinds 26821 of traffic. 26822 - Reference-count and share copies of address policy entries; only 5% 26823 of them were actually distinct. 26824 - Tune parameters for cell pool allocation to minimize amount of 26825 RAM overhead used. 26826 - Keep unused 4k and 16k buffers on free lists, rather than wasting 8k 26827 for every single inactive connection_t. Free items from the 26828 4k/16k-buffer free lists when they haven't been used for a while. 26829 - Make memory debugging information describe more about history 26830 of cell allocation, so we can help reduce our memory use. 26831 - Be even more aggressive about releasing RAM from small 26832 empty buffers. Thanks to our free-list code, this shouldn't be too 26833 performance-intensive. 26834 - Log malloc statistics from mallinfo() on platforms where it exists. 26835 - Use memory pools to allocate cells with better speed and memory 26836 efficiency, especially on platforms where malloc() is inefficient. 26837 - Add a --with-tcmalloc option to the configure script to link 26838 against tcmalloc (if present). Does not yet search for non-system 26839 include paths. 26840 26841 o Performance improvements (socket management): 26842 - Count the number of open sockets separately from the number of 26843 active connection_t objects. This will let us avoid underusing 26844 our allocated connection limit. 26845 - We no longer use socket pairs to link an edge connection to an 26846 anonymous directory connection or a DirPort test connection. 26847 Instead, we track the link internally and transfer the data 26848 in-process. This saves two sockets per "linked" connection (at the 26849 client and at the server), and avoids the nasty Windows socketpair() 26850 workaround. 26851 - We were leaking a file descriptor if Tor started with a zero-length 26852 cached-descriptors file. Patch by "freddy77". 26853 26854 o Performance improvements (CPU use): 26855 - Never walk through the list of logs if we know that no log target 26856 is interested in a given message. 26857 - Call routerlist_remove_old_routers() much less often. This should 26858 speed startup, especially on directory caches. 26859 - Base64 decoding was actually showing up on our profile when parsing 26860 the initial descriptor file; switch to an in-process all-at-once 26861 implementation that's about 3.5x times faster than calling out to 26862 OpenSSL. 26863 - Use a slightly simpler string hashing algorithm (copying Python's 26864 instead of Java's) and optimize our digest hashing algorithm to take 26865 advantage of 64-bit platforms and to remove some possibly-costly 26866 voodoo. 26867 - When implementing AES counter mode, update only the portions of the 26868 counter buffer that need to change, and don't keep separate 26869 network-order and host-order counters on big-endian hosts (where 26870 they are the same). 26871 - Add an in-place version of aes_crypt() so that we can avoid doing a 26872 needless memcpy() call on each cell payload. 26873 - Use Critical Sections rather than Mutexes for synchronizing threads 26874 on win32; Mutexes are heavier-weight, and designed for synchronizing 26875 between processes. 26876 26877 o Performance improvements (bandwidth use): 26878 - Don't try to launch new descriptor downloads quite so often when we 26879 already have enough directory information to build circuits. 26880 - Version 1 directories are no longer generated in full. Instead, 26881 authorities generate and serve "stub" v1 directories that list 26882 no servers. This will stop Tor versions 0.1.0.x and earlier from 26883 working, but (for security reasons) nobody should be running those 26884 versions anyway. 26885 - Avoid going directly to the directory authorities even if you're a 26886 relay, if you haven't found yourself reachable yet or if you've 26887 decided not to advertise your dirport yet. Addresses bug 556. 26888 - If we've gone 12 hours since our last bandwidth check, and we 26889 estimate we have less than 50KB bandwidth capacity but we could 26890 handle more, do another bandwidth test. 26891 - Support "If-Modified-Since" when answering HTTP requests for 26892 directories, running-routers documents, and v2 and v3 networkstatus 26893 documents. (There's no need to support it for router descriptors, 26894 since those are downloaded by descriptor digest.) 26895 - Stop fetching directory info so aggressively if your DirPort is 26896 on but your ORPort is off; stop fetching v2 dir info entirely. 26897 You can override these choices with the new FetchDirInfoEarly 26898 config option. 26899 26900 o Changed config option behavior (features): 26901 - Configuration files now accept C-style strings as values. This 26902 helps encode characters not allowed in the current configuration 26903 file format, such as newline or #. Addresses bug 557. 26904 - Add hidden services and DNSPorts to the list of things that make 26905 Tor accept that it has running ports. Change starting Tor with no 26906 ports from a fatal error to a warning; we might change it back if 26907 this turns out to confuse anybody. Fixes bug 579. 26908 - Make PublishServerDescriptor default to 1, so the default doesn't 26909 have to change as we invent new directory protocol versions. 26910 - Allow people to say PreferTunnelledDirConns rather than 26911 PreferTunneledDirConns, for those alternate-spellers out there. 26912 - Raise the default BandwidthRate/BandwidthBurst to 5MB/10MB, to 26913 accommodate the growing number of servers that use the default 26914 and are reaching it. 26915 - Make it possible to enable HashedControlPassword and 26916 CookieAuthentication at the same time. 26917 - When a TrackHostExits-chosen exit fails too many times in a row, 26918 stop using it. Fixes bug 437. 26919 26920 o Changed config option behavior (bugfixes): 26921 - Do not read the configuration file when we've only been told to 26922 generate a password hash. Fixes bug 643. Bugfix on 0.0.9pre5. Fix 26923 based on patch from Sebastian Hahn. 26924 - Actually validate the options passed to AuthDirReject, 26925 AuthDirInvalid, AuthDirBadDir, and AuthDirBadExit. 26926 - Make "ClientOnly 1" config option disable directory ports too. 26927 - Don't stop fetching descriptors when FetchUselessDescriptors is 26928 set, even if we stop asking for circuits. Bug reported by tup 26929 and ioerror. 26930 - Servers used to decline to publish their DirPort if their 26931 BandwidthRate or MaxAdvertisedBandwidth were below a threshold. Now 26932 they look only at BandwidthRate and RelayBandwidthRate. 26933 - Treat "2gb" when given in torrc for a bandwidth as meaning 2gb, 26934 minus 1 byte: the actual maximum declared bandwidth. 26935 - Make "TrackHostExits ." actually work. Bugfix on 0.1.0.x. 26936 - Make the NodeFamilies config option work. (Reported by 26937 lodger -- it has never actually worked, even though we added it 26938 in Oct 2004.) 26939 - If Tor is invoked from something that isn't a shell (e.g. Vidalia), 26940 now we expand "-f ~/.tor/torrc" correctly. Suggested by Matt Edman. 26941 26942 o New config options: 26943 - New configuration options AuthDirMaxServersPerAddr and 26944 AuthDirMaxServersperAuthAddr to override default maximum number 26945 of servers allowed on a single IP address. This is important for 26946 running a test network on a single host. 26947 - Three new config options (AlternateDirAuthority, 26948 AlternateBridgeAuthority, and AlternateHSAuthority) that let the 26949 user selectively replace the default directory authorities by type, 26950 rather than the all-or-nothing replacement that DirServer offers. 26951 - New config options AuthDirBadDir and AuthDirListBadDirs for 26952 authorities to mark certain relays as "bad directories" in the 26953 networkstatus documents. Also supports the "!baddir" directive in 26954 the approved-routers file. 26955 - New config option V2AuthoritativeDirectory that all v2 directory 26956 authorities must set. This lets v3 authorities choose not to serve 26957 v2 directory information. 26958 26959 o Minor features (other): 26960 - When we're not serving v2 directory information, there is no reason 26961 to actually keep any around. Remove the obsolete files and directory 26962 on startup if they are very old and we aren't going to serve them. 26963 - When we negotiate a v2 link-layer connection (not yet implemented), 26964 accept RELAY_EARLY cells and turn them into RELAY cells if we've 26965 negotiated a v1 connection for their next step. Initial steps for 26966 proposal 110. 26967 - When we have no consensus, check FallbackNetworkstatusFile (defaults 26968 to $PREFIX/share/tor/fallback-consensus) for a consensus. This way 26969 we can start out knowing some directory caches. We don't ship with 26970 a fallback consensus by default though, because it was making 26971 bootstrapping take too long while we tried many down relays. 26972 - Authorities send back an X-Descriptor-Not-New header in response to 26973 an accepted-but-discarded descriptor upload. Partially implements 26974 fix for bug 535. 26975 - If we find a cached-routers file that's been sitting around for more 26976 than 28 days unmodified, then most likely it's a leftover from 26977 when we upgraded to 0.2.0.8-alpha. Remove it. It has no good 26978 routers anyway. 26979 - When we (as a cache) download a descriptor because it was listed 26980 in a consensus, remember when the consensus was supposed to expire, 26981 and don't expire the descriptor until then. 26982 - Optionally (if built with -DEXPORTMALLINFO) export the output 26983 of mallinfo via http, as tor/mallinfo.txt. Only accessible 26984 from localhost. 26985 - Tag every guard node in our state file with the version that 26986 we believe added it, or with our own version if we add it. This way, 26987 if a user temporarily runs an old version of Tor and then switches 26988 back to a new one, she doesn't automatically lose her guards. 26989 - When somebody requests a list of statuses or servers, and we have 26990 none of those, return a 404 rather than an empty 200. 26991 - Merge in some (as-yet-unused) IPv6 address manipulation code. (Patch 26992 from croup.) 26993 - Add an HSAuthorityRecordStats option that hidden service authorities 26994 can use to track statistics of overall hidden service usage without 26995 logging information that would be as useful to an attacker. 26996 - Allow multiple HiddenServicePort directives with the same virtual 26997 port; when they occur, the user is sent round-robin to one 26998 of the target ports chosen at random. Partially fixes bug 393 by 26999 adding limited ad-hoc round-robining. 27000 - Revamp file-writing logic so we don't need to have the entire 27001 contents of a file in memory at once before we write to disk. Tor, 27002 meet stdio. 27003 27004 o Minor bugfixes (other): 27005 - Alter the code that tries to recover from unhandled write 27006 errors, to not try to flush onto a socket that's given us 27007 unhandled errors. 27008 - Directory mirrors no longer include a guess at the client's IP 27009 address if the connection appears to be coming from the same /24 27010 network; it was producing too many wrong guesses. 27011 - If we're trying to flush the last bytes on a connection (for 27012 example, when answering a directory request), reset the 27013 time-to-give-up timeout every time we manage to write something 27014 on the socket. 27015 - Reject router descriptors with out-of-range bandwidthcapacity or 27016 bandwidthburst values. 27017 - If we can't expand our list of entry guards (e.g. because we're 27018 using bridges or we have StrictEntryNodes set), don't mark relays 27019 down when they fail a directory request. Otherwise we're too quick 27020 to mark all our entry points down. 27021 - Authorities no longer send back "400 you're unreachable please fix 27022 it" errors to Tor servers that aren't online all the time. We're 27023 supposed to tolerate these servers now. 27024 - Let directory authorities startup even when they can't generate 27025 a descriptor immediately, e.g. because they don't know their 27026 address. 27027 - Correctly enforce that elements of directory objects do not appear 27028 more often than they are allowed to appear. 27029 - Stop allowing hibernating servers to be "stable" or "fast". 27030 - On Windows, we were preventing other processes from reading 27031 cached-routers while Tor was running. (Reported by janbar) 27032 - Check return values from pthread_mutex functions. 27033 - When opening /dev/null in finish_daemonize(), do not pass the 27034 O_CREAT flag. Fortify was complaining, and correctly so. Fixes 27035 bug 742; fix from Michael Scherer. Bugfix on 0.0.2pre19. 27036 27037 o Controller features: 27038 - The GETCONF command now escapes and quotes configuration values 27039 that don't otherwise fit into the torrc file. 27040 - The SETCONF command now handles quoted values correctly. 27041 - Add "GETINFO/desc-annotations/id/<OR digest>" so controllers can 27042 ask about source, timestamp of arrival, purpose, etc. We need 27043 something like this to help Vidalia not do GeoIP lookups on bridge 27044 addresses. 27045 - Allow multiple HashedControlPassword config lines, to support 27046 multiple controller passwords. 27047 - Accept LF instead of CRLF on controller, since some software has a 27048 hard time generating real Internet newlines. 27049 - Add GETINFO values for the server status events 27050 "REACHABILITY_SUCCEEDED" and "GOOD_SERVER_DESCRIPTOR". Patch from 27051 Robert Hogan. 27052 - There is now an ugly, temporary "desc/all-recent-extrainfo-hack" 27053 GETINFO for Torstat to use until it can switch to using extrainfos. 27054 - New config option CookieAuthFile to choose a new location for the 27055 cookie authentication file, and config option 27056 CookieAuthFileGroupReadable to make it group-readable. 27057 - Add a SOURCE_ADDR field to STREAM NEW events so that controllers can 27058 match requests to applications. Patch from Robert Hogan. 27059 - Add a RESOLVE command to launch hostname lookups. Original patch 27060 from Robert Hogan. 27061 - Add GETINFO status/enough-dir-info to let controllers tell whether 27062 Tor has downloaded sufficient directory information. Patch from Tup. 27063 - You can now use the ControlSocket option to tell Tor to listen for 27064 controller connections on Unix domain sockets on systems that 27065 support them. Patch from Peter Palfrader. 27066 - New "GETINFO address-mappings/*" command to get address mappings 27067 with expiry information. "addr-mappings/*" is now deprecated. 27068 Patch from Tup. 27069 - Add a new config option __DisablePredictedCircuits designed for 27070 use by the controller, when we don't want Tor to build any circuits 27071 preemptively. 27072 - Let the controller specify HOP=%d as an argument to ATTACHSTREAM, 27073 so we can exit from the middle of the circuit. 27074 - Implement "getinfo status/circuit-established". 27075 - Implement "getinfo status/version/..." so a controller can tell 27076 whether the current version is recommended, and whether any versions 27077 are good, and how many authorities agree. Patch from "shibz". 27078 - Controllers should now specify cache=no or cache=yes when using 27079 the +POSTDESCRIPTOR command. 27080 - Add a "PURPOSE=" argument to "STREAM NEW" events, as suggested by 27081 Robert Hogan. Fixes the first part of bug 681. 27082 - When reporting clock skew, and we know that the clock is _at least 27083 as skewed_ as some value, but we don't know the actual value, 27084 report the value as a "minimum skew." 27085 27086 o Controller bugfixes: 27087 - Generate "STATUS_SERVER" events rather than misspelled 27088 "STATUS_SEVER" events. Caught by mwenge. 27089 - Reject controller commands over 1MB in length, so rogue 27090 processes can't run us out of memory. 27091 - Change the behavior of "getinfo status/good-server-descriptor" 27092 so it doesn't return failure when any authority disappears. 27093 - Send NAMESERVER_STATUS messages for a single failed nameserver 27094 correctly. 27095 - When the DANGEROUS_VERSION controller status event told us we're 27096 running an obsolete version, it used the string "OLD" to describe 27097 it. Yet the "getinfo" interface used the string "OBSOLETE". Now use 27098 "OBSOLETE" in both cases. 27099 - Respond to INT and TERM SIGNAL commands before we execute the 27100 signal, in case the signal shuts us down. We had a patch in 27101 0.1.2.1-alpha that tried to do this by queueing the response on 27102 the connection's buffer before shutting down, but that really 27103 isn't the same thing at all. Bug located by Matt Edman. 27104 - Provide DNS expiry times in GMT, not in local time. For backward 27105 compatibility, ADDRMAP events only provide GMT expiry in an extended 27106 field. "GETINFO address-mappings" always does the right thing. 27107 - Use CRLF line endings properly in NS events. 27108 - Make 'getinfo fingerprint' return a 551 error if we're not a 27109 server, so we match what the control spec claims we do. Reported 27110 by daejees. 27111 - Fix a typo in an error message when extendcircuit fails that 27112 caused us to not follow the \r\n-based delimiter protocol. Reported 27113 by daejees. 27114 - When tunneling an encrypted directory connection, and its first 27115 circuit fails, do not leave it unattached and ask the controller 27116 to deal. Fixes the second part of bug 681. 27117 - Treat some 403 responses from directory servers as INFO rather than 27118 WARN-severity events. 27119 27120 o Portability / building / compiling: 27121 - When building with --enable-gcc-warnings, check for whether Apple's 27122 warning "-Wshorten-64-to-32" is available. 27123 - Support compilation to target iPhone; patch from cjacker huang. 27124 To build for iPhone, pass the --enable-iphone option to configure. 27125 - Port Tor to build and run correctly on Windows CE systems, using 27126 the wcecompat library. Contributed by Valerio Lupi. 27127 - Detect non-ASCII platforms (if any still exist) and refuse to 27128 build there: some of our code assumes that 'A' is 65 and so on. 27129 - Clear up some MIPSPro compiler warnings. 27130 - Make autoconf search for libevent, openssl, and zlib consistently. 27131 - Update deprecated macros in configure.in. 27132 - When warning about missing headers, tell the user to let us 27133 know if the compile succeeds anyway, so we can downgrade the 27134 warning. 27135 - Include the current subversion revision as part of the version 27136 string: either fetch it directly if we're in an SVN checkout, do 27137 some magic to guess it if we're in an SVK checkout, or use 27138 the last-detected version if we're building from a .tar.gz. 27139 Use this version consistently in log messages. 27140 - Correctly report platform name on Windows 95 OSR2 and Windows 98 SE. 27141 - Read resolv.conf files correctly on platforms where read() returns 27142 partial results on small file reads. 27143 - Build without verbose warnings even on gcc 4.2 and 4.3. 27144 - On Windows, correctly detect errors when listing the contents of 27145 a directory. Fix from lodger. 27146 - Run 'make test' as part of 'make dist', so we stop releasing so 27147 many development snapshots that fail their unit tests. 27148 - Add support to detect Libevent versions in the 1.4.x series 27149 on mingw. 27150 - Add command-line arguments to unit-test executable so that we can 27151 invoke any chosen test from the command line rather than having 27152 to run the whole test suite at once; and so that we can turn on 27153 logging for the unit tests. 27154 - Do not automatically run configure from autogen.sh. This 27155 non-standard behavior tended to annoy people who have built other 27156 programs. 27157 - Fix a macro/CPP interaction that was confusing some compilers: 27158 some GCCs don't like #if/#endif pairs inside macro arguments. 27159 Fixes bug 707. 27160 - Fix macro collision between OpenSSL 0.9.8h and Windows headers. 27161 Fixes bug 704; fix from Steven Murdoch. 27162 - Correctly detect transparent proxy support on Linux hosts that 27163 require in.h to be included before netfilter_ipv4.h. Patch 27164 from coderman. 27165 27166 o Logging improvements: 27167 - When we haven't had any application requests lately, don't bother 27168 logging that we have expired a bunch of descriptors. 27169 - When attempting to open a logfile fails, tell us why. 27170 - Only log guard node status when guard node status has changed. 27171 - Downgrade the 3 most common "INFO" messages to "DEBUG". This will 27172 make "INFO" 75% less verbose. 27173 - When SafeLogging is disabled, log addresses along with all TLS 27174 errors. 27175 - Report TLS "zero return" case as a "clean close" and "IO error" 27176 as a "close". Stop calling closes "unexpected closes": existing 27177 Tors don't use SSL_close(), so having a connection close without 27178 the TLS shutdown handshake is hardly unexpected. 27179 - When we receive a consensus from the future, warn about skew. 27180 - Make "not enough dir info yet" warnings describe *why* Tor feels 27181 it doesn't have enough directory info yet. 27182 - On the USR1 signal, when dmalloc is in use, log the top 10 memory 27183 consumers. (We already do this on HUP.) 27184 - Give more descriptive well-formedness errors for out-of-range 27185 hidden service descriptor/protocol versions. 27186 - Stop recommending that every server operator send mail to tor-ops. 27187 Resolves bug 597. Bugfix on 0.1.2.x. 27188 - Improve skew reporting: try to give the user a better log message 27189 about how skewed they are, and how much this matters. 27190 - New --quiet command-line option to suppress the default console log. 27191 Good in combination with --hash-password. 27192 - Don't complain that "your server has not managed to confirm that its 27193 ports are reachable" if we haven't been able to build any circuits 27194 yet. 27195 - Detect the reason for failing to mmap a descriptor file we just 27196 wrote, and give a more useful log message. Fixes bug 533. 27197 - Always prepend "Bug: " to any log message about a bug. 27198 - When dumping memory usage, list bytes used in buffer memory 27199 free-lists. 27200 - When running with dmalloc, dump more stats on hup and on exit. 27201 - Put a platform string (e.g. "Linux i686") in the startup log 27202 message, so when people paste just their logs, we know if it's 27203 OpenBSD or Windows or what. 27204 - When logging memory usage, break down memory used in buffers by 27205 buffer type. 27206 - When we are reporting the DirServer line we just parsed, we were 27207 logging the second stanza of the key fingerprint, not the first. 27208 - Even though Windows is equally happy with / and \ as path separators, 27209 try to use \ consistently on Windows and / consistently on Unix: it 27210 makes the log messages nicer. 27211 - On OSX, stop warning the user that kqueue support in libevent is 27212 "experimental", since it seems to have worked fine for ages. 27213 27214 o Contributed scripts and tools: 27215 - Update linux-tor-prio.sh script to allow QoS based on the uid of 27216 the Tor process. Patch from Marco Bonetti with tweaks from Mike 27217 Perry. 27218 - Include the "tor-ctrl.sh" bash script by Stefan Behte to provide 27219 Unix users an easy way to script their Tor process (e.g. by 27220 adjusting bandwidth based on the time of the day). 27221 - In the exitlist script, only consider the most recently published 27222 server descriptor for each server. Also, when the user requests 27223 a list of servers that _reject_ connections to a given address, 27224 explicitly exclude the IPs that also have servers that accept 27225 connections to that address. Resolves bug 405. 27226 - Include a new contrib/tor-exit-notice.html file that exit relay 27227 operators can put on their website to help reduce abuse queries. 27228 27229 o Newly deprecated features: 27230 - The status/version/num-versioning and status/version/num-concurring 27231 GETINFO controller options are no longer useful in the v3 directory 27232 protocol: treat them as deprecated, and warn when they're used. 27233 - The RedirectExits config option is now deprecated. 27234 27235 o Removed features: 27236 - Drop the old code to choke directory connections when the 27237 corresponding OR connections got full: thanks to the cell queue 27238 feature, OR conns don't get full any more. 27239 - Remove the old "dns worker" server DNS code: it hasn't been default 27240 since 0.1.2.2-alpha, and all the servers are using the new 27241 eventdns code. 27242 - Remove the code to generate the oldest (v1) directory format. 27243 - Remove support for the old bw_accounting file: we've been storing 27244 bandwidth accounting information in the state file since 27245 0.1.2.5-alpha. This may result in bandwidth accounting errors 27246 if you try to upgrade from 0.1.1.x or earlier, or if you try to 27247 downgrade to 0.1.1.x or earlier. 27248 - Drop support for OpenSSL version 0.9.6. Just about nobody was using 27249 it, it had no AES, and it hasn't seen any security patches since 27250 2004. 27251 - Stop overloading the circuit_t.onionskin field for both "onionskin 27252 from a CREATE cell that we are waiting for a cpuworker to be 27253 assigned" and "onionskin from an EXTEND cell that we are going to 27254 send to an OR as soon as we are connected". Might help with bug 600. 27255 - Remove the tor_strpartition() function: its logic was confused, 27256 and it was only used for one thing that could be implemented far 27257 more easily. 27258 - Remove the contrib scripts ExerciseServer.py, PathDemo.py, 27259 and TorControl.py, as they use the old v0 controller protocol, 27260 and are obsoleted by TorFlow anyway. 27261 - Drop support for v1 rendezvous descriptors, since we never used 27262 them anyway, and the code has probably rotted by now. Based on 27263 patch from Karsten Loesing. 27264 - Stop allowing address masks that do not correspond to bit prefixes. 27265 We have warned about these for a really long time; now it's time 27266 to reject them. (Patch from croup.) 27267 - Remove an optimization in the AES counter-mode code that assumed 27268 that the counter never exceeded 2^68. When the counter can be set 27269 arbitrarily as an IV (as it is by Karsten's new hidden services 27270 code), this assumption no longer holds. 27271 - Disable the SETROUTERPURPOSE controller command: it is now 27272 obsolete. 27273 27274 27275 Changes in version 0.1.2.19 - 2008-01-17 27276 Tor 0.1.2.19 fixes a huge memory leak on exit relays, makes the default 27277 exit policy a little bit more conservative so it's safer to run an 27278 exit relay on a home system, and fixes a variety of smaller issues. 27279 27280 o Security fixes: 27281 - Exit policies now reject connections that are addressed to a 27282 relay's public (external) IP address too, unless 27283 ExitPolicyRejectPrivate is turned off. We do this because too 27284 many relays are running nearby to services that trust them based 27285 on network address. 27286 27287 o Major bugfixes: 27288 - When the clock jumps forward a lot, do not allow the bandwidth 27289 buckets to become negative. Fixes bug 544. 27290 - Fix a memory leak on exit relays; we were leaking a cached_resolve_t 27291 on every successful resolve. Reported by Mike Perry. 27292 - Purge old entries from the "rephist" database and the hidden 27293 service descriptor database even when DirPort is zero. 27294 - Stop thinking that 0.1.2.x directory servers can handle "begin_dir" 27295 requests. Should ease bugs 406 and 419 where 0.1.2.x relays are 27296 crashing or mis-answering these requests. 27297 - When we decide to send a 503 response to a request for servers, do 27298 not then also send the server descriptors: this defeats the whole 27299 purpose. Fixes bug 539. 27300 27301 o Minor bugfixes: 27302 - Changing the ExitPolicyRejectPrivate setting should cause us to 27303 rebuild our server descriptor. 27304 - Fix handling of hex nicknames when answering controller requests for 27305 networkstatus by name, or when deciding whether to warn about 27306 unknown routers in a config option. (Patch from mwenge.) 27307 - Fix a couple of hard-to-trigger autoconf problems that could result 27308 in really weird results on platforms whose sys/types.h files define 27309 nonstandard integer types. 27310 - Don't try to create the datadir when running --verify-config or 27311 --hash-password. Resolves bug 540. 27312 - If we were having problems getting a particular descriptor from the 27313 directory caches, and then we learned about a new descriptor for 27314 that router, we weren't resetting our failure count. Reported 27315 by lodger. 27316 - Although we fixed bug 539 (where servers would send HTTP status 503 27317 responses _and_ send a body too), there are still servers out there 27318 that haven't upgraded. Therefore, make clients parse such bodies 27319 when they receive them. 27320 - Run correctly on systems where rlim_t is larger than unsigned long. 27321 This includes some 64-bit systems. 27322 - Run correctly on platforms (like some versions of OS X 10.5) where 27323 the real limit for number of open files is OPEN_FILES, not rlim_max 27324 from getrlimit(RLIMIT_NOFILES). 27325 - Avoid a spurious free on base64 failure. 27326 - Avoid segfaults on certain complex invocations of 27327 router_get_by_hexdigest(). 27328 - Fix rare bug on REDIRECTSTREAM control command when called with no 27329 port set: it could erroneously report an error when none had 27330 happened. 27331 27332 27333 Changes in version 0.1.2.18 - 2007-10-28 27334 Tor 0.1.2.18 fixes many problems including crash bugs, problems with 27335 hidden service introduction that were causing huge delays, and a big 27336 bug that was causing some servers to disappear from the network status 27337 lists for a few hours each day. 27338 27339 o Major bugfixes (crashes): 27340 - If a connection is shut down abruptly because of something that 27341 happened inside connection_flushed_some(), do not call 27342 connection_finished_flushing(). Should fix bug 451: 27343 "connection_stop_writing: Assertion conn->write_event failed" 27344 Bugfix on 0.1.2.7-alpha. 27345 - Fix possible segfaults in functions called from 27346 rend_process_relay_cell(). 27347 27348 o Major bugfixes (hidden services): 27349 - Hidden services were choosing introduction points uniquely by 27350 hexdigest, but when constructing the hidden service descriptor 27351 they merely wrote the (potentially ambiguous) nickname. 27352 - Clients now use the v2 intro format for hidden service 27353 connections: they specify their chosen rendezvous point by identity 27354 digest rather than by (potentially ambiguous) nickname. These 27355 changes could speed up hidden service connections dramatically. 27356 27357 o Major bugfixes (other): 27358 - Stop publishing a new server descriptor just because we get a 27359 HUP signal. This led (in a roundabout way) to some servers getting 27360 dropped from the networkstatus lists for a few hours each day. 27361 - When looking for a circuit to cannibalize, consider family as well 27362 as identity. Fixes bug 438. Bugfix on 0.1.0.x (which introduced 27363 circuit cannibalization). 27364 - When a router wasn't listed in a new networkstatus, we were leaving 27365 the flags for that router alone -- meaning it remained Named, 27366 Running, etc -- even though absence from the networkstatus means 27367 that it shouldn't be considered to exist at all anymore. Now we 27368 clear all the flags for routers that fall out of the networkstatus 27369 consensus. Fixes bug 529. 27370 27371 o Minor bugfixes: 27372 - Don't try to access (or alter) the state file when running 27373 --list-fingerprint or --verify-config or --hash-password. Resolves 27374 bug 499. 27375 - When generating information telling us how to extend to a given 27376 router, do not try to include the nickname if it is 27377 absent. Resolves bug 467. 27378 - Fix a user-triggerable segfault in expand_filename(). (There isn't 27379 a way to trigger this remotely.) 27380 - When sending a status event to the controller telling it that an 27381 OR address is reachable, set the port correctly. (Previously we 27382 were reporting the dir port.) 27383 - Fix a minor memory leak whenever a controller sends the PROTOCOLINFO 27384 command. Bugfix on 0.1.2.17. 27385 - When loading bandwidth history, do not believe any information in 27386 the future. Fixes bug 434. 27387 - When loading entry guard information, do not believe any information 27388 in the future. 27389 - When we have our clock set far in the future and generate an 27390 onion key, then re-set our clock to be correct, we should not stop 27391 the onion key from getting rotated. 27392 - On some platforms, accept() can return a broken address. Detect 27393 this more quietly, and deal accordingly. Fixes bug 483. 27394 - It's not actually an error to find a non-pending entry in the DNS 27395 cache when canceling a pending resolve. Don't log unless stuff 27396 is fishy. Resolves bug 463. 27397 - Don't reset trusted dir server list when we set a configuration 27398 option. Patch from Robert Hogan. 27399 27400 27401 Changes in version 0.1.2.17 - 2007-08-30 27402 Tor 0.1.2.17 features a new Vidalia version in the Windows and OS 27403 X bundles. Vidalia 0.0.14 makes authentication required for the 27404 ControlPort in the default configuration, which addresses important 27405 security risks. Everybody who uses Vidalia (or another controller) 27406 should upgrade. 27407 27408 In addition, this Tor update fixes major load balancing problems with 27409 path selection, which should speed things up a lot once many people 27410 have upgraded. 27411 27412 o Major bugfixes (security): 27413 - We removed support for the old (v0) control protocol. It has been 27414 deprecated since Tor 0.1.1.1-alpha, and keeping it secure has 27415 become more of a headache than it's worth. 27416 27417 o Major bugfixes (load balancing): 27418 - When choosing nodes for non-guard positions, weight guards 27419 proportionally less, since they already have enough load. Patch 27420 from Mike Perry. 27421 - Raise the "max believable bandwidth" from 1.5MB/s to 10MB/s. This 27422 will allow fast Tor servers to get more attention. 27423 - When we're upgrading from an old Tor version, forget our current 27424 guards and pick new ones according to the new weightings. These 27425 three load balancing patches could raise effective network capacity 27426 by a factor of four. Thanks to Mike Perry for measurements. 27427 27428 o Major bugfixes (stream expiration): 27429 - Expire not-yet-successful application streams in all cases if 27430 they've been around longer than SocksTimeout. Right now there are 27431 some cases where the stream will live forever, demanding a new 27432 circuit every 15 seconds. Fixes bug 454; reported by lodger. 27433 27434 o Minor features (controller): 27435 - Add a PROTOCOLINFO controller command. Like AUTHENTICATE, it 27436 is valid before any authentication has been received. It tells 27437 a controller what kind of authentication is expected, and what 27438 protocol is spoken. Implements proposal 119. 27439 27440 o Minor bugfixes (performance): 27441 - Save on most routerlist_assert_ok() calls in routerlist.c, thus 27442 greatly speeding up loading cached-routers from disk on startup. 27443 - Disable sentinel-based debugging for buffer code: we squashed all 27444 the bugs that this was supposed to detect a long time ago, and now 27445 its only effect is to change our buffer sizes from nice powers of 27446 two (which platform mallocs tend to like) to values slightly over 27447 powers of two (which make some platform mallocs sad). 27448 27449 o Minor bugfixes (misc): 27450 - If exit bandwidth ever exceeds one third of total bandwidth, then 27451 use the correct formula to weight exit nodes when choosing paths. 27452 Based on patch from Mike Perry. 27453 - Choose perfectly fairly among routers when choosing by bandwidth and 27454 weighting by fraction of bandwidth provided by exits. Previously, we 27455 would choose with only approximate fairness, and correct ourselves 27456 if we ran off the end of the list. 27457 - If we require CookieAuthentication but we fail to write the 27458 cookie file, we would warn but not exit, and end up in a state 27459 where no controller could authenticate. Now we exit. 27460 - If we require CookieAuthentication, stop generating a new cookie 27461 every time we change any piece of our config. 27462 - Refuse to start with certain directory authority keys, and 27463 encourage people using them to stop. 27464 - Terminate multi-line control events properly. Original patch 27465 from tup. 27466 - Fix a minor memory leak when we fail to find enough suitable 27467 servers to choose a circuit. 27468 - Stop leaking part of the descriptor when we run into a particularly 27469 unparseable piece of it. 27470 27471 27472 Changes in version 0.1.2.16 - 2007-08-01 27473 Tor 0.1.2.16 fixes a critical security vulnerability that allows a 27474 remote attacker in certain situations to rewrite the user's torrc 27475 configuration file. This can completely compromise anonymity of users 27476 in most configurations, including those running the Vidalia bundles, 27477 TorK, etc. Or worse. 27478 27479 o Major security fixes: 27480 - Close immediately after missing authentication on control port; 27481 do not allow multiple authentication attempts. 27482 27483 27484 Changes in version 0.1.2.15 - 2007-07-17 27485 Tor 0.1.2.15 fixes several crash bugs, fixes some anonymity-related 27486 problems, fixes compilation on BSD, and fixes a variety of other 27487 bugs. Everybody should upgrade. 27488 27489 o Major bugfixes (compilation): 27490 - Fix compile on FreeBSD/NetBSD/OpenBSD. Oops. 27491 27492 o Major bugfixes (crashes): 27493 - Try even harder not to dereference the first character after 27494 an mmap(). Reported by lodger. 27495 - Fix a crash bug in directory authorities when we re-number the 27496 routerlist while inserting a new router. 27497 - When the cached-routers file is an even multiple of the page size, 27498 don't run off the end and crash. (Fixes bug 455; based on idea 27499 from croup.) 27500 - Fix eventdns.c behavior on Solaris: It is critical to include 27501 orconfig.h _before_ sys/types.h, so that we can get the expected 27502 definition of _FILE_OFFSET_BITS. 27503 27504 o Major bugfixes (security): 27505 - Fix a possible buffer overrun when using BSD natd support. Bug 27506 found by croup. 27507 - When sending destroy cells from a circuit's origin, don't include 27508 the reason for tearing down the circuit. The spec says we didn't, 27509 and now we actually don't. Reported by lodger. 27510 - Keep streamids from different exits on a circuit separate. This 27511 bug may have allowed other routers on a given circuit to inject 27512 cells into streams. Reported by lodger; fixes bug 446. 27513 - If there's a never-before-connected-to guard node in our list, 27514 never choose any guards past it. This way we don't expand our 27515 guard list unless we need to. 27516 27517 o Minor bugfixes (guard nodes): 27518 - Weight guard selection by bandwidth, so that low-bandwidth nodes 27519 don't get overused as guards. 27520 27521 o Minor bugfixes (directory): 27522 - Correctly count the number of authorities that recommend each 27523 version. Previously, we were under-counting by 1. 27524 - Fix a potential crash bug when we load many server descriptors at 27525 once and some of them make others of them obsolete. Fixes bug 458. 27526 27527 o Minor bugfixes (hidden services): 27528 - Stop tearing down the whole circuit when the user asks for a 27529 connection to a port that the hidden service didn't configure. 27530 Resolves bug 444. 27531 27532 o Minor bugfixes (misc): 27533 - On Windows, we were preventing other processes from reading 27534 cached-routers while Tor was running. Reported by janbar. 27535 - Fix a possible (but very unlikely) bug in picking routers by 27536 bandwidth. Add a log message to confirm that it is in fact 27537 unlikely. Patch from lodger. 27538 - Backport a couple of memory leak fixes. 27539 - Backport miscellaneous cosmetic bugfixes. 27540 27541 27542 Changes in version 0.1.2.14 - 2007-05-25 27543 Tor 0.1.2.14 changes the addresses of two directory authorities (this 27544 change especially affects those who serve or use hidden services), 27545 and fixes several other crash- and security-related bugs. 27546 27547 o Directory authority changes: 27548 - Two directory authorities (moria1 and moria2) just moved to new 27549 IP addresses. This change will particularly affect those who serve 27550 or use hidden services. 27551 27552 o Major bugfixes (crashes): 27553 - If a directory server runs out of space in the connection table 27554 as it's processing a begin_dir request, it will free the exit stream 27555 but leave it attached to the circuit, leading to unpredictable 27556 behavior. (Reported by seeess, fixes bug 425.) 27557 - Fix a bug in dirserv_remove_invalid() that would cause authorities 27558 to corrupt memory under some really unlikely scenarios. 27559 - Tighten router parsing rules. (Bugs reported by Benedikt Boss.) 27560 - Avoid segfaults when reading from mmaped descriptor file. (Reported 27561 by lodger.) 27562 27563 o Major bugfixes (security): 27564 - When choosing an entry guard for a circuit, avoid using guards 27565 that are in the same family as the chosen exit -- not just guards 27566 that are exactly the chosen exit. (Reported by lodger.) 27567 27568 o Major bugfixes (resource management): 27569 - If a directory authority is down, skip it when deciding where to get 27570 networkstatus objects or descriptors. Otherwise we keep asking 27571 every 10 seconds forever. Fixes bug 384. 27572 - Count it as a failure if we fetch a valid network-status but we 27573 don't want to keep it. Otherwise we'll keep fetching it and keep 27574 not wanting to keep it. Fixes part of bug 422. 27575 - If all of our dirservers have given us bad or no networkstatuses 27576 lately, then stop hammering them once per minute even when we 27577 think they're failed. Fixes another part of bug 422. 27578 27579 o Minor bugfixes: 27580 - Actually set the purpose correctly for descriptors inserted with 27581 purpose=controller. 27582 - When we have k non-v2 authorities in our DirServer config, 27583 we ignored the last k authorities in the list when updating our 27584 network-statuses. 27585 - Correctly back-off from requesting router descriptors that we are 27586 having a hard time downloading. 27587 - Read resolv.conf files correctly on platforms where read() returns 27588 partial results on small file reads. 27589 - Don't rebuild the entire router store every time we get 32K of 27590 routers: rebuild it when the journal gets very large, or when 27591 the gaps in the store get very large. 27592 27593 o Minor features: 27594 - When routers publish SVN revisions in their router descriptors, 27595 authorities now include those versions correctly in networkstatus 27596 documents. 27597 - Warn when using a version of libevent before 1.3b to run a server on 27598 OSX or BSD: these versions interact badly with userspace threads. 27599 27600 27601 Changes in version 0.1.2.13 - 2007-04-24 27602 This release features some major anonymity fixes, such as safer path 27603 selection; better client performance; faster bootstrapping, better 27604 address detection, and better DNS support for servers; write limiting as 27605 well as read limiting to make servers easier to run; and a huge pile of 27606 other features and bug fixes. The bundles also ship with Vidalia 0.0.11. 27607 27608 Tor 0.1.2.13 is released in memory of Rob Levin (1955-2006), aka lilo 27609 of the Freenode IRC network, remembering his patience and vision for 27610 free speech on the Internet. 27611 27612 o Major features, client performance: 27613 - Weight directory requests by advertised bandwidth. Now we can 27614 let servers enable write limiting but still allow most clients to 27615 succeed at their directory requests. (We still ignore weights when 27616 choosing a directory authority; I hope this is a feature.) 27617 - Stop overloading exit nodes -- avoid choosing them for entry or 27618 middle hops when the total bandwidth available from non-exit nodes 27619 is much higher than the total bandwidth available from exit nodes. 27620 - Rather than waiting a fixed amount of time between retrying 27621 application connections, we wait only 10 seconds for the first, 27622 10 seconds for the second, and 15 seconds for each retry after 27623 that. Hopefully this will improve the expected user experience. 27624 - Sometimes we didn't bother sending a RELAY_END cell when an attempt 27625 to open a stream fails; now we do in more cases. This should 27626 make clients able to find a good exit faster in some cases, since 27627 unhandleable requests will now get an error rather than timing out. 27628 27629 o Major features, client functionality: 27630 - Implement BEGIN_DIR cells, so we can connect to a directory 27631 server via TLS to do encrypted directory requests rather than 27632 plaintext. Enable via the TunnelDirConns and PreferTunneledDirConns 27633 config options if you like. For now, this feature only works if 27634 you already have a descriptor for the destination dirserver. 27635 - Add support for transparent application connections: this basically 27636 bundles the functionality of trans-proxy-tor into the Tor 27637 mainline. Now hosts with compliant pf/netfilter implementations 27638 can redirect TCP connections straight to Tor without diverting 27639 through SOCKS. (Based on patch from tup.) 27640 - Add support for using natd; this allows FreeBSDs earlier than 27641 5.1.2 to have ipfw send connections through Tor without using 27642 SOCKS. (Patch from Zajcev Evgeny with tweaks from tup.) 27643 27644 o Major features, servers: 27645 - Setting up a dyndns name for your server is now optional: servers 27646 with no hostname or IP address will learn their IP address by 27647 asking the directory authorities. This code only kicks in when you 27648 would normally have exited with a "no address" error. Nothing's 27649 authenticated, so use with care. 27650 - Directory servers now spool server descriptors, v1 directories, 27651 and v2 networkstatus objects to buffers as needed rather than en 27652 masse. They also mmap the cached-routers files. These steps save 27653 lots of memory. 27654 - Stop requiring clients to have well-formed certificates, and stop 27655 checking nicknames in certificates. (Clients have certificates so 27656 that they can look like Tor servers, but in the future we might want 27657 to allow them to look like regular TLS clients instead. Nicknames 27658 in certificates serve no purpose other than making our protocol 27659 easier to recognize on the wire.) Implements proposal 106. 27660 27661 o Improvements on DNS support: 27662 - Add "eventdns" asynchronous dns library originally based on code 27663 from Adam Langley. Now we can discard the old rickety dnsworker 27664 concept, and support a wider variety of DNS functions. Allows 27665 multithreaded builds on NetBSD and OpenBSD again. 27666 - Add server-side support for "reverse" DNS lookups (using PTR 27667 records so clients can determine the canonical hostname for a given 27668 IPv4 address). Only supported by servers using eventdns; servers 27669 now announce in their descriptors if they don't support eventdns. 27670 - Workaround for name servers (like Earthlink's) that hijack failing 27671 DNS requests and replace the no-such-server answer with a "helpful" 27672 redirect to an advertising-driven search portal. Also work around 27673 DNS hijackers who "helpfully" decline to hijack known-invalid 27674 RFC2606 addresses. Config option "ServerDNSDetectHijacking 0" 27675 lets you turn it off. 27676 - Servers now check for the case when common DNS requests are going to 27677 wildcarded addresses (i.e. all getting the same answer), and change 27678 their exit policy to reject *:* if it's happening. 27679 - When asked to resolve a hostname, don't use non-exit servers unless 27680 requested to do so. This allows servers with broken DNS to be 27681 useful to the network. 27682 - Start passing "ipv4" hints to getaddrinfo(), so servers don't do 27683 useless IPv6 DNS resolves. 27684 - Specify and implement client-side SOCKS5 interface for reverse DNS 27685 lookups (see doc/socks-extensions.txt). Also cache them. 27686 - When we change nameservers or IP addresses, reset and re-launch 27687 our tests for DNS hijacking. 27688 27689 o Improvements on reachability testing: 27690 - Servers send out a burst of long-range padding cells once they've 27691 established that they're reachable. Spread them over 4 circuits, 27692 so hopefully a few will be fast. This exercises bandwidth and 27693 bootstraps them into the directory more quickly. 27694 - When we find our DirPort to be reachable, publish a new descriptor 27695 so we'll tell the world (reported by pnx). 27696 - Directory authorities now only decide that routers are reachable 27697 if their identity keys are as expected. 27698 - Do DirPort reachability tests less often, since a single test 27699 chews through many circuits before giving up. 27700 - Avoid some false positives during reachability testing: don't try 27701 to test via a server that's on the same /24 network as us. 27702 - Start publishing one minute or so after we find our ORPort 27703 to be reachable. This will help reduce the number of descriptors 27704 we have for ourselves floating around, since it's quite likely 27705 other things (e.g. DirPort) will change during that minute too. 27706 - Routers no longer try to rebuild long-term connections to directory 27707 authorities, and directory authorities no longer try to rebuild 27708 long-term connections to all servers. We still don't hang up 27709 connections in these two cases though -- we need to look at it 27710 more carefully to avoid flapping, and we likely need to wait til 27711 0.1.1.x is obsolete. 27712 27713 o Improvements on rate limiting: 27714 - Enable write limiting as well as read limiting. Now we sacrifice 27715 capacity if we're pushing out lots of directory traffic, rather 27716 than overrunning the user's intended bandwidth limits. 27717 - Include TLS overhead when counting bandwidth usage; previously, we 27718 would count only the bytes sent over TLS, but not the bytes used 27719 to send them. 27720 - Servers decline directory requests much more aggressively when 27721 they're low on bandwidth. Otherwise they end up queueing more and 27722 more directory responses, which can't be good for latency. 27723 - But never refuse directory requests from local addresses. 27724 - Be willing to read or write on local connections (e.g. controller 27725 connections) even when the global rate limiting buckets are empty. 27726 - Flush local controller connection buffers periodically as we're 27727 writing to them, so we avoid queueing 4+ megabytes of data before 27728 trying to flush. 27729 - Revise and clean up the torrc.sample that we ship with; add 27730 a section for BandwidthRate and BandwidthBurst. 27731 27732 o Major features, NT services: 27733 - Install as NT_AUTHORITY\LocalService rather than as SYSTEM; add a 27734 command-line flag so that admins can override the default by saying 27735 "tor --service install --user "SomeUser"". This will not affect 27736 existing installed services. Also, warn the user that the service 27737 will look for its configuration file in the service user's 27738 %appdata% directory. (We can't do the "hardwire the user's appdata 27739 directory" trick any more, since we may not have read access to that 27740 directory.) 27741 - Support running the Tor service with a torrc not in the same 27742 directory as tor.exe and default to using the torrc located in 27743 the %appdata%\Tor\ of the user who installed the service. Patch 27744 from Matt Edman. 27745 - Add an --ignore-missing-torrc command-line option so that we can 27746 get the "use sensible defaults if the configuration file doesn't 27747 exist" behavior even when specifying a torrc location on the 27748 command line. 27749 - When stopping an NT service, wait up to 10 sec for it to actually 27750 stop. (Patch from Matt Edman; resolves bug 295.) 27751 27752 o Directory authority improvements: 27753 - Stop letting hibernating or obsolete servers affect uptime and 27754 bandwidth cutoffs. 27755 - Stop listing hibernating servers in the v1 directory. 27756 - Authorities no longer recommend exits as guards if this would shift 27757 too much load to the exit nodes. 27758 - Authorities now specify server versions in networkstatus. This adds 27759 about 2% to the size of compressed networkstatus docs, and allows 27760 clients to tell which servers support BEGIN_DIR and which don't. 27761 The implementation is forward-compatible with a proposed future 27762 protocol version scheme not tied to Tor versions. 27763 - DirServer configuration lines now have an orport= option so 27764 clients can open encrypted tunnels to the authorities without 27765 having downloaded their descriptors yet. Enabled for moria1, 27766 moria2, tor26, and lefkada now in the default configuration. 27767 - Add a BadDirectory flag to network status docs so that authorities 27768 can (eventually) tell clients about caches they believe to be 27769 broken. Not used yet. 27770 - Allow authorities to list nodes as bad exits in their 27771 approved-routers file by fingerprint or by address. If most 27772 authorities set a BadExit flag for a server, clients don't think 27773 of it as a general-purpose exit. Clients only consider authorities 27774 that advertise themselves as listing bad exits. 27775 - Patch from Steve Hildrey: Generate network status correctly on 27776 non-versioning dirservers. 27777 - Have directory authorities allow larger amounts of drift in uptime 27778 without replacing the server descriptor: previously, a server that 27779 restarted every 30 minutes could have 48 "interesting" descriptors 27780 per day. 27781 - Reserve the nickname "Unnamed" for routers that can't pick 27782 a hostname: any router can call itself Unnamed; directory 27783 authorities will never allocate Unnamed to any particular router; 27784 clients won't believe that any router is the canonical Unnamed. 27785 27786 o Directory mirrors and clients: 27787 - Discard any v1 directory info that's over 1 month old (for 27788 directories) or over 1 week old (for running-routers lists). 27789 - Clients track responses with status 503 from dirservers. After a 27790 dirserver has given us a 503, we try not to use it until an hour has 27791 gone by, or until we have no dirservers that haven't given us a 503. 27792 - When we get a 503 from a directory, and we're not a server, we no 27793 longer count the failure against the total number of failures 27794 allowed for the object we're trying to download. 27795 - Prepare for servers to publish descriptors less often: never 27796 discard a descriptor simply for being too old until either it is 27797 recommended by no authorities, or until we get a better one for 27798 the same router. Make caches consider retaining old recommended 27799 routers for even longer. 27800 - Directory servers now provide 'Pragma: no-cache' and 'Expires' 27801 headers for content, so that we can work better in the presence of 27802 caching HTTP proxies. 27803 - Stop fetching descriptors if you're not a dir mirror and you 27804 haven't tried to establish any circuits lately. (This currently 27805 causes some dangerous behavior, because when you start up again 27806 you'll use your ancient server descriptors.) 27807 27808 o Major fixes, crashes: 27809 - Stop crashing when the controller asks us to resetconf more than 27810 one config option at once. (Vidalia 0.0.11 does this.) 27811 - Fix a longstanding obscure crash bug that could occur when we run 27812 out of DNS worker processes, if we're not using eventdns. (Resolves 27813 bug 390.) 27814 - Fix an assert that could trigger if a controller quickly set then 27815 cleared EntryNodes. (Bug found by Udo van den Heuvel.) 27816 - Avoid crash when telling controller about stream-status and a 27817 stream is detached. 27818 - Avoid sending junk to controllers or segfaulting when a controller 27819 uses EVENT_NEW_DESC with verbose nicknames. 27820 - Stop triggering asserts if the controller tries to extend hidden 27821 service circuits (reported by mwenge). 27822 - If we start a server with ClientOnly 1, then set ClientOnly to 0 27823 and hup, stop triggering an assert based on an empty onion_key. 27824 - Mask out all signals in sub-threads; only the libevent signal 27825 handler should be processing them. This should prevent some crashes 27826 on some machines using pthreads. (Patch from coderman.) 27827 - Disable kqueue on OS X 10.3 and earlier, to fix bug 371. 27828 27829 o Major fixes, anonymity/security: 27830 - Automatically avoid picking more than one node from the same 27831 /16 network when constructing a circuit. Add an 27832 "EnforceDistinctSubnets" option to let people disable it if they 27833 want to operate private test networks on a single subnet. 27834 - When generating bandwidth history, round down to the nearest 27835 1k. When storing accounting data, round up to the nearest 1k. 27836 - When we're running as a server, remember when we last rotated onion 27837 keys, so that we will rotate keys once they're a week old even if 27838 we never stay up for a week ourselves. 27839 - If a client asked for a server by name, and there's a named server 27840 in our network-status but we don't have its descriptor yet, we 27841 could return an unnamed server instead. 27842 - Reject (most) attempts to use Tor circuits with length one. (If 27843 many people start using Tor as a one-hop proxy, exit nodes become 27844 a more attractive target for compromise.) 27845 - Just because your DirPort is open doesn't mean people should be 27846 able to remotely teach you about hidden service descriptors. Now 27847 only accept rendezvous posts if you've got HSAuthoritativeDir set. 27848 - Fix a potential race condition in the rpm installer. Found by 27849 Stefan Nordhausen. 27850 - Do not log IPs with TLS failures for incoming TLS 27851 connections. (Fixes bug 382.) 27852 27853 o Major fixes, other: 27854 - If our system clock jumps back in time, don't publish a negative 27855 uptime in the descriptor. 27856 - When we start during an accounting interval before it's time to wake 27857 up, remember to wake up at the correct time. (May fix bug 342.) 27858 - Previously, we would cache up to 16 old networkstatus documents 27859 indefinitely, if they came from nontrusted authorities. Now we 27860 discard them if they are more than 10 days old. 27861 - When we have a state file we cannot parse, tell the user and 27862 move it aside. Now we avoid situations where the user starts 27863 Tor in 1904, Tor writes a state file with that timestamp in it, 27864 the user fixes her clock, and Tor refuses to start. 27865 - Publish a new descriptor after we hup/reload. This is important 27866 if our config has changed such that we'll want to start advertising 27867 our DirPort now, etc. 27868 - If we are using an exit enclave and we can't connect, e.g. because 27869 its webserver is misconfigured to not listen on localhost, then 27870 back off and try connecting from somewhere else before we fail. 27871 27872 o New config options or behaviors: 27873 - When EntryNodes are configured, rebuild the guard list to contain, 27874 in order: the EntryNodes that were guards before; the rest of the 27875 EntryNodes; the nodes that were guards before. 27876 - Do not warn when individual nodes in the configuration's EntryNodes, 27877 ExitNodes, etc are down: warn only when all possible nodes 27878 are down. (Fixes bug 348.) 27879 - Put a lower-bound on MaxAdvertisedBandwidth. 27880 - Start using the state file to store bandwidth accounting data: 27881 the bw_accounting file is now obsolete. We'll keep generating it 27882 for a while for people who are still using 0.1.2.4-alpha. 27883 - Try to batch changes to the state file so that we do as few 27884 disk writes as possible while still storing important things in 27885 a timely fashion. 27886 - The state file and the bw_accounting file get saved less often when 27887 the AvoidDiskWrites config option is set. 27888 - Make PIDFile work on Windows. 27889 - Add internal descriptions for a bunch of configuration options: 27890 accessible via controller interface and in comments in saved 27891 options files. 27892 - Reject *:563 (NNTPS) in the default exit policy. We already reject 27893 NNTP by default, so this seems like a sensible addition. 27894 - Clients now reject hostnames with invalid characters. This should 27895 avoid some inadvertent info leaks. Add an option 27896 AllowNonRFC953Hostnames to disable this behavior, in case somebody 27897 is running a private network with hosts called @, !, and #. 27898 - Check for addresses with invalid characters at the exit as well, 27899 and warn less verbosely when they fail. You can override this by 27900 setting ServerDNSAllowNonRFC953Addresses to 1. 27901 - Remove some options that have been deprecated since at least 27902 0.1.0.x: AccountingMaxKB, LogFile, DebugLogFile, LogLevel, and 27903 SysLog. Use AccountingMax instead of AccountingMaxKB, and use Log 27904 to set log options. Mark PathlenCoinWeight as obsolete. 27905 - Stop accepting certain malformed ports in configured exit policies. 27906 - When the user uses bad syntax in the Log config line, stop 27907 suggesting other bad syntax as a replacement. 27908 - Add new config option "ResolvConf" to let the server operator 27909 choose an alternate resolve.conf file when using eventdns. 27910 - If one of our entry guards is on the ExcludeNodes list, or the 27911 directory authorities don't think it's a good guard, treat it as 27912 if it were unlisted: stop using it as a guard, and throw it off 27913 the guards list if it stays that way for a long time. 27914 - Allow directory authorities to be marked separately as authorities 27915 for the v1 directory protocol, the v2 directory protocol, and 27916 as hidden service directories, to make it easier to retire old 27917 authorities. V1 authorities should set "HSAuthoritativeDir 1" 27918 to continue being hidden service authorities too. 27919 - Remove 8888 as a LongLivedPort, and add 6697 (IRCS). 27920 - Make TrackExitHosts case-insensitive, and fix the behavior of 27921 ".suffix" TrackExitHosts items to avoid matching in the middle of 27922 an address. 27923 - New DirPort behavior: if you have your dirport set, you download 27924 descriptors aggressively like a directory mirror, whether or not 27925 your ORPort is set. 27926 27927 o Docs: 27928 - Create a new file ReleaseNotes which was the old ChangeLog. The 27929 new ChangeLog file now includes the notes for all development 27930 versions too. 27931 - Add a new address-spec.txt document to describe our special-case 27932 addresses: .exit, .onion, and .noconnnect. 27933 - Fork the v1 directory protocol into its own spec document, 27934 and mark dir-spec.txt as the currently correct (v2) spec. 27935 27936 o Packaging, porting, and contrib 27937 - "tor --verify-config" now exits with -1(255) or 0 depending on 27938 whether the config options are bad or good. 27939 - The Debian package now uses --verify-config when (re)starting, 27940 to distinguish configuration errors from other errors. 27941 - Adapt a patch from goodell to let the contrib/exitlist script 27942 take arguments rather than require direct editing. 27943 - Prevent the contrib/exitlist script from printing the same 27944 result more than once. 27945 - Add support to tor-resolve tool for reverse lookups and SOCKS5. 27946 - In the hidden service example in torrc.sample, stop recommending 27947 esoteric and discouraged hidden service options. 27948 - Patch from Michael Mohr to contrib/cross.sh, so it checks more 27949 values before failing, and always enables eventdns. 27950 - Try to detect Windows correctly when cross-compiling. 27951 - Libevent-1.2 exports, but does not define in its headers, strlcpy. 27952 Try to fix this in configure.in by checking for most functions 27953 before we check for libevent. 27954 - Update RPMs to require libevent 1.2. 27955 - Experimentally re-enable kqueue on OSX when using libevent 1.1b 27956 or later. Log when we are doing this, so we can diagnose it when 27957 it fails. (Also, recommend libevent 1.1b for kqueue and 27958 win32 methods; deprecate libevent 1.0b harder; make libevent 27959 recommendation system saner.) 27960 - Build with recent (1.3+) libevents on platforms that do not 27961 define the nonstandard types "u_int8_t" and friends. 27962 - Remove architecture from OS X builds. The official builds are 27963 now universal binaries. 27964 - Run correctly on OS X platforms with case-sensitive filesystems. 27965 - Correctly set maximum connection limit on Cygwin. (This time 27966 for sure!) 27967 - Start compiling on MinGW on Windows (patches from Mike Chiussi 27968 and many others). 27969 - Start compiling on MSVC6 on Windows (patches from Frediano Ziglio). 27970 - Finally fix the openssl warnings from newer gccs that believe that 27971 ignoring a return value is okay, but casting a return value and 27972 then ignoring it is a sign of madness. 27973 - On architectures where sizeof(int)>4, still clamp declarable 27974 bandwidth to INT32_MAX. 27975 27976 o Minor features, controller: 27977 - Warn the user when an application uses the obsolete binary v0 27978 control protocol. We're planning to remove support for it during 27979 the next development series, so it's good to give people some 27980 advance warning. 27981 - Add STREAM_BW events to report per-entry-stream bandwidth 27982 use. (Patch from Robert Hogan.) 27983 - Rate-limit SIGNEWNYM signals in response to controllers that 27984 impolitely generate them for every single stream. (Patch from 27985 mwenge; closes bug 394.) 27986 - Add a REMAP status to stream events to note that a stream's 27987 address has changed because of a cached address or a MapAddress 27988 directive. 27989 - Make REMAP stream events have a SOURCE (cache or exit), and 27990 make them generated in every case where we get a successful 27991 connected or resolved cell. 27992 - Track reasons for OR connection failure; make these reasons 27993 available via the controller interface. (Patch from Mike Perry.) 27994 - Add a SOCKS_BAD_HOSTNAME client status event so controllers 27995 can learn when clients are sending malformed hostnames to Tor. 27996 - Specify and implement some of the controller status events. 27997 - Have GETINFO dir/status/* work on hosts with DirPort disabled. 27998 - Reimplement GETINFO so that info/names stays in sync with the 27999 actual keys. 28000 - Implement "GETINFO fingerprint". 28001 - Implement "SETEVENTS GUARD" so controllers can get updates on 28002 entry guard status as it changes. 28003 - Make all connections to addresses of the form ".noconnect" 28004 immediately get closed. This lets application/controller combos 28005 successfully test whether they're talking to the same Tor by 28006 watching for STREAM events. 28007 - Add a REASON field to CIRC events; for backward compatibility, this 28008 field is sent only to controllers that have enabled the extended 28009 event format. Also, add additional reason codes to explain why 28010 a given circuit has been destroyed or truncated. (Patches from 28011 Mike Perry) 28012 - Add a REMOTE_REASON field to extended CIRC events to tell the 28013 controller why a remote OR told us to close a circuit. 28014 - Stream events also now have REASON and REMOTE_REASON fields, 28015 working much like those for circuit events. 28016 - There's now a GETINFO ns/... field so that controllers can ask Tor 28017 about the current status of a router. 28018 - A new event type "NS" to inform a controller when our opinion of 28019 a router's status has changed. 28020 - Add a GETINFO events/names and GETINFO features/names so controllers 28021 can tell which events and features are supported. 28022 - A new CLEARDNSCACHE signal to allow controllers to clear the 28023 client-side DNS cache without expiring circuits. 28024 - Fix CIRC controller events so that controllers can learn the 28025 identity digests of non-Named servers used in circuit paths. 28026 - Let controllers ask for more useful identifiers for servers. Instead 28027 of learning identity digests for un-Named servers and nicknames 28028 for Named servers, the new identifiers include digest, nickname, 28029 and indication of Named status. Off by default; see control-spec.txt 28030 for more information. 28031 - Add a "getinfo address" controller command so it can display Tor's 28032 best guess to the user. 28033 - New controller event to alert the controller when our server 28034 descriptor has changed. 28035 - Give more meaningful errors on controller authentication failure. 28036 - Export the default exit policy via the control port, so controllers 28037 don't need to guess what it is / will be later. 28038 28039 o Minor bugfixes, controller: 28040 - When creating a circuit via the controller, send a 'launched' 28041 event when we're done, so we follow the spec better. 28042 - Correct the control spec to match how the code actually responds 28043 to 'getinfo addr-mappings/*'. Reported by daejees. 28044 - The control spec described a GUARDS event, but the code 28045 implemented a GUARD event. Standardize on GUARD, but let people 28046 ask for GUARDS too. Reported by daejees. 28047 - Give the controller END_STREAM_REASON_DESTROY events _before_ we 28048 clear the corresponding on_circuit variable, and remember later 28049 that we don't need to send a redundant CLOSED event. (Resolves part 28050 3 of bug 367.) 28051 - Report events where a resolve succeeded or where we got a socks 28052 protocol error correctly, rather than calling both of them 28053 "INTERNAL". 28054 - Change reported stream target addresses to IP consistently when 28055 we finally get the IP from an exit node. 28056 - Send log messages to the controller even if they happen to be very 28057 long. 28058 - Flush ERR-level controller status events just like we currently 28059 flush ERR-level log events, so that a Tor shutdown doesn't prevent 28060 the controller from learning about current events. 28061 - Report the circuit number correctly in STREAM CLOSED events. Bug 28062 reported by Mike Perry. 28063 - Do not report bizarre values for results of accounting GETINFOs 28064 when the last second's write or read exceeds the allotted bandwidth. 28065 - Report "unrecognized key" rather than an empty string when the 28066 controller tries to fetch a networkstatus that doesn't exist. 28067 - When the controller does a "GETINFO network-status", tell it 28068 about even those routers whose descriptors are very old, and use 28069 long nicknames where appropriate. 28070 - Fix handling of verbose nicknames with ORCONN controller events: 28071 make them show up exactly when requested, rather than exactly when 28072 not requested. 28073 - Controller signals now work on non-Unix platforms that don't define 28074 SIGUSR1 and SIGUSR2 the way we expect. 28075 - Respond to SIGNAL command before we execute the signal, in case 28076 the signal shuts us down. Suggested by Karsten Loesing. 28077 - Handle reporting OR_CONN_EVENT_NEW events to the controller. 28078 28079 o Minor features, code performance: 28080 - Major performance improvement on inserting descriptors: change 28081 algorithm from O(n^2) to O(n). 28082 - Do not rotate onion key immediately after setting it for the first 28083 time. 28084 - Call router_have_min_dir_info half as often. (This is showing up in 28085 some profiles, but not others.) 28086 - When using GCC, make log_debug never get called at all, and its 28087 arguments never get evaluated, when no debug logs are configured. 28088 (This is showing up in some profiles, but not others.) 28089 - Statistics dumped by -USR2 now include a breakdown of public key 28090 operations, for profiling. 28091 - Make the common memory allocation path faster on machines where 28092 malloc(0) returns a pointer. 28093 - Split circuit_t into origin_circuit_t and or_circuit_t, and 28094 split connection_t into edge, or, dir, control, and base structs. 28095 These will save quite a bit of memory on busy servers, and they'll 28096 also help us track down bugs in the code and bugs in the spec. 28097 - Use OpenSSL's AES implementation on platforms where it's faster. 28098 This could save us as much as 10% CPU usage. 28099 28100 o Minor features, descriptors and descriptor handling: 28101 - Avoid duplicate entries on MyFamily line in server descriptor. 28102 - When Tor receives a router descriptor that it asked for, but 28103 no longer wants (because it has received fresh networkstatuses 28104 in the meantime), do not warn the user. Cache the descriptor if 28105 we're a cache; drop it if we aren't. 28106 - Servers no longer ever list themselves in their "family" line, 28107 even if configured to do so. This makes it easier to configure 28108 family lists conveniently. 28109 28110 o Minor fixes, confusing/misleading log messages: 28111 - Display correct results when reporting which versions are 28112 recommended, and how recommended they are. (Resolves bug 383.) 28113 - Inform the server operator when we decide not to advertise a 28114 DirPort due to AccountingMax enabled or a low BandwidthRate. 28115 - Only include function names in log messages for info/debug messages. 28116 For notice/warn/err, the content of the message should be clear on 28117 its own, and printing the function name only confuses users. 28118 - Remove even more protocol-related warnings from Tor server logs, 28119 such as bad TLS handshakes and malformed begin cells. 28120 - Fix bug 314: Tor clients issued "unsafe socks" warnings even 28121 when the IP address is mapped through MapAddress to a hostname. 28122 - Fix misleading log messages: an entry guard that is "unlisted", 28123 as well as not known to be "down" (because we've never heard 28124 of it), is not therefore "up". 28125 28126 o Minor fixes, old/obsolete behavior: 28127 - Start assuming we can use a create_fast cell if we don't know 28128 what version a router is running. 28129 - We no longer look for identity and onion keys in "identity.key" and 28130 "onion.key" -- these were replaced by secret_id_key and 28131 secret_onion_key in 0.0.8pre1. 28132 - We no longer require unrecognized directory entries to be 28133 preceded by "opt". 28134 - Drop compatibility with obsolete Tors that permit create cells 28135 to have the wrong circ_id_type. 28136 - Remove code to special-case "-cvs" ending, since it has not 28137 actually mattered since 0.0.9. 28138 - Don't re-write the fingerprint file every restart, unless it has 28139 changed. 28140 28141 o Minor fixes, misc client-side behavior: 28142 - Always remove expired routers and networkstatus docs before checking 28143 whether we have enough information to build circuits. (Fixes 28144 bug 373.) 28145 - When computing clock skew from directory HTTP headers, consider what 28146 time it was when we finished asking for the directory, not what 28147 time it is now. 28148 - Make our socks5 handling more robust to broken socks clients: 28149 throw out everything waiting on the buffer in between socks 28150 handshake phases, since they can't possibly (so the theory 28151 goes) have predicted what we plan to respond to them. 28152 - Expire socks connections if they spend too long waiting for the 28153 handshake to finish. Previously we would let them sit around for 28154 days, if the connecting application didn't close them either. 28155 - And if the socks handshake hasn't started, don't send a 28156 "DNS resolve socks failed" handshake reply; just close it. 28157 - If the user asks to use invalid exit nodes, be willing to use 28158 unstable ones. 28159 - Track unreachable entry guards correctly: don't conflate 28160 'unreachable by us right now' with 'listed as down by the directory 28161 authorities'. With the old code, if a guard was unreachable by us 28162 but listed as running, it would clog our guard list forever. 28163 - Behave correctly in case we ever have a network with more than 28164 2GB/s total advertised capacity. 28165 - Claim a commonname of Tor, rather than TOR, in TLS handshakes. 28166 - Fix a memory leak when we ask for "all" networkstatuses and we 28167 get one we don't recognize. 28168 28169 28170 Changes in version 0.1.1.26 - 2006-12-14 28171 o Security bugfixes: 28172 - Stop sending the HttpProxyAuthenticator string to directory 28173 servers when directory connections are tunnelled through Tor. 28174 - Clients no longer store bandwidth history in the state file. 28175 - Do not log introduction points for hidden services if SafeLogging 28176 is set. 28177 28178 o Minor bugfixes: 28179 - Fix an assert failure when a directory authority sets 28180 AuthDirRejectUnlisted and then receives a descriptor from an 28181 unlisted router (reported by seeess). 28182 28183 28184 Changes in version 0.1.1.25 - 2006-11-04 28185 o Major bugfixes: 28186 - When a client asks us to resolve (rather than connect to) 28187 an address, and we have a cached answer, give them the cached 28188 answer. Previously, we would give them no answer at all. 28189 - We were building exactly the wrong circuits when we predict 28190 hidden service requirements, meaning Tor would have to build all 28191 its circuits on demand. 28192 - If none of our live entry guards have a high uptime, but we 28193 require a guard with a high uptime, try adding a new guard before 28194 we give up on the requirement. This patch should make long-lived 28195 connections more stable on average. 28196 - When testing reachability of our DirPort, don't launch new 28197 tests when there's already one in progress -- unreachable 28198 servers were stacking up dozens of testing streams. 28199 28200 o Security bugfixes: 28201 - When the user sends a NEWNYM signal, clear the client-side DNS 28202 cache too. Otherwise we continue to act on previous information. 28203 28204 o Minor bugfixes: 28205 - Avoid a memory corruption bug when creating a hash table for 28206 the first time. 28207 - Avoid possibility of controller-triggered crash when misusing 28208 certain commands from a v0 controller on platforms that do not 28209 handle printf("%s",NULL) gracefully. 28210 - Avoid infinite loop on unexpected controller input. 28211 - Don't log spurious warnings when we see a circuit close reason we 28212 don't recognize; it's probably just from a newer version of Tor. 28213 - Add Vidalia to the OS X uninstaller script, so when we uninstall 28214 Tor/Privoxy we also uninstall Vidalia. 28215 28216 28217 Changes in version 0.1.1.24 - 2006-09-29 28218 o Major bugfixes: 28219 - Allow really slow clients to not hang up five minutes into their 28220 directory downloads (suggested by Adam J. Richter). 28221 - Fix major performance regression from 0.1.0.x: instead of checking 28222 whether we have enough directory information every time we want to 28223 do something, only check when the directory information has changed. 28224 This should improve client CPU usage by 25-50%. 28225 - Don't crash if, after a server has been running for a while, 28226 it can't resolve its hostname. 28227 - When a client asks us to resolve (not connect to) an address, 28228 and we have a cached answer, give them the cached answer. 28229 Previously, we would give them no answer at all. 28230 28231 o Minor bugfixes: 28232 - Allow Tor to start when RunAsDaemon is set but no logs are set. 28233 - Don't crash when the controller receives a third argument to an 28234 "extendcircuit" request. 28235 - Controller protocol fixes: fix encoding in "getinfo addr-mappings" 28236 response; fix error code when "getinfo dir/status/" fails. 28237 - Fix configure.in to not produce broken configure files with 28238 more recent versions of autoconf. Thanks to Clint for his auto* 28239 voodoo. 28240 - Fix security bug on NetBSD that could allow someone to force 28241 uninitialized RAM to be sent to a server's DNS resolver. This 28242 only affects NetBSD and other platforms that do not bounds-check 28243 tolower(). 28244 - Warn user when using libevent 1.1a or earlier with win32 or kqueue 28245 methods: these are known to be buggy. 28246 - If we're a directory mirror and we ask for "all" network status 28247 documents, we would discard status documents from authorities 28248 we don't recognize. 28249 28250 28251 Changes in version 0.1.1.23 - 2006-07-30 28252 o Major bugfixes: 28253 - Fast Tor servers, especially exit nodes, were triggering asserts 28254 due to a bug in handling the list of pending DNS resolves. Some 28255 bugs still remain here; we're hunting them. 28256 - Entry guards could crash clients by sending unexpected input. 28257 - More fixes on reachability testing: if you find yourself reachable, 28258 then don't ever make any client requests (so you stop predicting 28259 circuits), then hup or have your clock jump, then later your IP 28260 changes, you won't think circuits are working, so you won't try to 28261 test reachability, so you won't publish. 28262 28263 o Minor bugfixes: 28264 - Avoid a crash if the controller does a resetconf firewallports 28265 and then a setconf fascistfirewall=1. 28266 - Avoid an integer underflow when the dir authority decides whether 28267 a router is stable: we might wrongly label it stable, and compute 28268 a slightly wrong median stability, when a descriptor is published 28269 later than now. 28270 - Fix a place where we might trigger an assert if we can't build our 28271 own server descriptor yet. 28272 28273 28274 Changes in version 0.1.1.22 - 2006-07-05 28275 o Major bugfixes: 28276 - Fix a big bug that was causing servers to not find themselves 28277 reachable if they changed IP addresses. Since only 0.1.1.22+ 28278 servers can do reachability testing correctly, now we automatically 28279 make sure to test via one of these. 28280 - Fix to allow clients and mirrors to learn directory info from 28281 descriptor downloads that get cut off partway through. 28282 - Directory authorities had a bug in deciding if a newly published 28283 descriptor was novel enough to make everybody want a copy -- a few 28284 servers seem to be publishing new descriptors many times a minute. 28285 o Minor bugfixes: 28286 - Fix a rare bug that was causing some servers to complain about 28287 "closing wedged cpuworkers" and skip some circuit create requests. 28288 - Make the Exit flag in directory status documents actually work. 28289 28290 28291 Changes in version 0.1.1.21 - 2006-06-10 28292 o Crash and assert fixes from 0.1.1.20: 28293 - Fix a rare crash on Tor servers that have enabled hibernation. 28294 - Fix a seg fault on startup for Tor networks that use only one 28295 directory authority. 28296 - Fix an assert from a race condition that occurs on Tor servers 28297 while exiting, where various threads are trying to log that they're 28298 exiting, and delete the logs, at the same time. 28299 - Make our unit tests pass again on certain obscure platforms. 28300 28301 o Other fixes: 28302 - Add support for building SUSE RPM packages. 28303 - Speed up initial bootstrapping for clients: if we are making our 28304 first ever connection to any entry guard, then don't mark it down 28305 right after that. 28306 - When only one Tor server in the network is labelled as a guard, 28307 and we've already picked him, we would cycle endlessly picking him 28308 again, being unhappy about it, etc. Now we specifically exclude 28309 current guards when picking a new guard. 28310 - Servers send create cells more reliably after the TLS connection 28311 is established: we were sometimes forgetting to send half of them 28312 when we had more than one pending. 28313 - If we get a create cell that asks us to extend somewhere, but the 28314 Tor server there doesn't match the expected digest, we now send 28315 a destroy cell back, rather than silently doing nothing. 28316 - Make options->RedirectExit work again. 28317 - Make cookie authentication for the controller work again. 28318 - Stop being picky about unusual characters in the arguments to 28319 mapaddress. It's none of our business. 28320 - Add a new config option "TestVia" that lets you specify preferred 28321 middle hops to use for test circuits. Perhaps this will let me 28322 debug the reachability problems better. 28323 28324 o Log / documentation fixes: 28325 - If we're a server and some peer has a broken TLS certificate, don't 28326 log about it unless ProtocolWarnings is set, i.e., we want to hear 28327 about protocol violations by others. 28328 - Fix spelling of VirtualAddrNetwork in man page. 28329 - Add a better explanation at the top of the autogenerated torrc file 28330 about what happened to our old torrc. 28331 28332 28333 Changes in version 0.1.1.20 - 2006-05-23 28334 o Crash and assert fixes from 0.1.0.17: 28335 - Fix assert bug in close_logs() on exit: when we close and delete 28336 logs, remove them all from the global "logfiles" list. 28337 - Fix an assert error when we're out of space in the connection_list 28338 and we try to post a hidden service descriptor (reported by Peter 28339 Palfrader). 28340 - Fix a rare assert error when we've tried all intro points for 28341 a hidden service and we try fetching the service descriptor again: 28342 "Assertion conn->state != AP_CONN_STATE_RENDDESC_WAIT failed". 28343 - Setconf SocksListenAddress kills Tor if it fails to bind. Now back 28344 out and refuse the setconf if it would fail. 28345 - If you specify a relative torrc path and you set RunAsDaemon in 28346 your torrc, then it chdir()'s to the new directory. If you then 28347 HUP, it tries to load the new torrc location, fails, and exits. 28348 The fix: no longer allow a relative path to torrc when using -f. 28349 - Check for integer overflows in more places, when adding elements 28350 to smartlists. This could possibly prevent a buffer overflow 28351 on malicious huge inputs. 28352 28353 o Security fixes, major: 28354 - When we're printing strings from the network, don't try to print 28355 non-printable characters. Now we're safer against shell escape 28356 sequence exploits, and also against attacks to fool users into 28357 misreading their logs. 28358 - Implement entry guards: automatically choose a handful of entry 28359 nodes and stick with them for all circuits. Only pick new guards 28360 when the ones you have are unsuitable, and if the old guards 28361 become suitable again, switch back. This will increase security 28362 dramatically against certain end-point attacks. The EntryNodes 28363 config option now provides some hints about which entry guards you 28364 want to use most; and StrictEntryNodes means to only use those. 28365 Fixes CVE-2006-0414. 28366 - Implement exit enclaves: if we know an IP address for the 28367 destination, and there's a running Tor server at that address 28368 which allows exit to the destination, then extend the circuit to 28369 that exit first. This provides end-to-end encryption and end-to-end 28370 authentication. Also, if the user wants a .exit address or enclave, 28371 use 4 hops rather than 3, and cannibalize a general circ for it 28372 if you can. 28373 - Obey our firewall options more faithfully: 28374 . If we can't get to a dirserver directly, try going via Tor. 28375 . Don't ever try to connect (as a client) to a place our 28376 firewall options forbid. 28377 . If we specify a proxy and also firewall options, obey the 28378 firewall options even when we're using the proxy: some proxies 28379 can only proxy to certain destinations. 28380 - Make clients regenerate their keys when their IP address changes. 28381 - For the OS X package's modified privoxy config file, comment 28382 out the "logfile" line so we don't log everything passed 28383 through privoxy. 28384 - Our TLS handshakes were generating a single public/private 28385 keypair for the TLS context, rather than making a new one for 28386 each new connection. Oops. (But we were still rotating them 28387 periodically, so it's not so bad.) 28388 - When we were cannibalizing a circuit with a particular exit 28389 node in mind, we weren't checking to see if that exit node was 28390 already present earlier in the circuit. Now we are. 28391 - Require server descriptors to list IPv4 addresses -- hostnames 28392 are no longer allowed. This also fixes potential vulnerabilities 28393 to servers providing hostnames as their address and then 28394 preferentially resolving them so they can partition users. 28395 - Our logic to decide if the OR we connected to was the right guy 28396 was brittle and maybe open to a mitm for invalid routers. 28397 28398 o Security fixes, minor: 28399 - Adjust tor-spec.txt to parameterize cell and key lengths. Now 28400 Ian Goldberg can prove things about our handshake protocol more 28401 easily. 28402 - Make directory authorities generate a separate "guard" flag to 28403 mean "would make a good entry guard". Clients now honor the 28404 is_guard flag rather than looking at is_fast or is_stable. 28405 - Try to list MyFamily elements by key, not by nickname, and warn 28406 if we've not heard of a server. 28407 - Start using RAND_bytes rather than RAND_pseudo_bytes from 28408 OpenSSL. Also, reseed our entropy every hour, not just at 28409 startup. And add entropy in 512-bit chunks, not 160-bit chunks. 28410 - Refuse server descriptors where the fingerprint line doesn't match 28411 the included identity key. Tor doesn't care, but other apps (and 28412 humans) might actually be trusting the fingerprint line. 28413 - We used to kill the circuit when we receive a relay command we 28414 don't recognize. Now we just drop that cell. 28415 - Fix a bug found by Lasse Overlier: when we were making internal 28416 circuits (intended to be cannibalized later for rendezvous and 28417 introduction circuits), we were picking them so that they had 28418 useful exit nodes. There was no need for this, and it actually 28419 aids some statistical attacks. 28420 - Start treating internal circuits and exit circuits separately. 28421 It's important to keep them separate because internal circuits 28422 have their last hops picked like middle hops, rather than like 28423 exit hops. So exiting on them will break the user's expectations. 28424 - Fix a possible way to DoS dirservers. 28425 - When the client asked for a rendezvous port that the hidden 28426 service didn't want to provide, we were sending an IP address 28427 back along with the end cell. Fortunately, it was zero. But stop 28428 that anyway. 28429 28430 o Packaging improvements: 28431 - Implement --with-libevent-dir option to ./configure. Improve 28432 search techniques to find libevent, and use those for openssl too. 28433 - Fix a couple of bugs in OpenSSL detection. Deal better when 28434 there are multiple SSLs installed with different versions. 28435 - Avoid warnings about machine/limits.h on Debian GNU/kFreeBSD. 28436 - On non-gcc compilers (e.g. Solaris's cc), use "-g -O" instead of 28437 "-Wall -g -O2". 28438 - Make unit tests (and other invocations that aren't the real Tor) 28439 run without launching listeners, creating subdirectories, and so on. 28440 - The OS X installer was adding a symlink for tor_resolve but 28441 the binary was called tor-resolve (reported by Thomas Hardly). 28442 - Now we can target arch and OS in rpm builds (contributed by 28443 Phobos). Also make the resulting dist-rpm filename match the 28444 target arch. 28445 - Apply Matt Ghali's --with-syslog-facility patch to ./configure 28446 if you log to syslog and want something other than LOG_DAEMON. 28447 - Fix the torify (tsocks) config file to not use Tor for localhost 28448 connections. 28449 - Start shipping socks-extensions.txt, tor-doc-unix.html, 28450 tor-doc-server.html, and stylesheet.css in the tarball. 28451 - Stop shipping tor-doc.html, INSTALL, and README in the tarball. 28452 They are useless now. 28453 - Add Peter Palfrader's contributed check-tor script. It lets you 28454 easily check whether a given server (referenced by nickname) 28455 is reachable by you. 28456 - Add BSD-style contributed startup script "rc.subr" from Peter 28457 Thoenen. 28458 28459 o Directory improvements -- new directory protocol: 28460 - See tor/doc/dir-spec.txt for all the juicy details. Key points: 28461 - Authorities and caches publish individual descriptors (by 28462 digest, by fingerprint, by "all", and by "tell me yours"). 28463 - Clients don't download or use the old directory anymore. Now they 28464 download network-statuses from the directory authorities, and 28465 fetch individual server descriptors as needed from mirrors. 28466 - Clients don't download descriptors of non-running servers. 28467 - Download descriptors by digest, not by fingerprint. Caches try to 28468 download all listed digests from authorities; clients try to 28469 download "best" digests from caches. This avoids partitioning 28470 and isolating attacks better. 28471 - Only upload a new server descriptor when options change, 18 28472 hours have passed, uptime is reset, or bandwidth changes a lot. 28473 - Directory authorities silently throw away new descriptors that 28474 haven't changed much if the timestamps are similar. We do this to 28475 tolerate older Tor servers that upload a new descriptor every 15 28476 minutes. (It seemed like a good idea at the time.) 28477 - Clients choose directory servers from the network status lists, 28478 not from their internal list of router descriptors. Now they can 28479 go to caches directly rather than needing to go to authorities 28480 to bootstrap the first set of descriptors. 28481 - When picking a random directory, prefer non-authorities if any 28482 are known. 28483 - Add a new flag to network-status indicating whether the server 28484 can answer v2 directory requests too. 28485 - Directory mirrors now cache up to 16 unrecognized network-status 28486 docs, so new directory authorities will be cached too. 28487 - Stop parsing, storing, or using running-routers output (but 28488 mirrors still cache and serve it). 28489 - Clients consider a threshold of "versioning" directory authorities 28490 before deciding whether to warn the user that he's obsolete. 28491 - Authorities publish separate sorted lists of recommended versions 28492 for clients and for servers. 28493 - Change DirServers config line to note which dirs are v1 authorities. 28494 - Put nicknames on the DirServer line, so we can refer to them 28495 without requiring all our users to memorize their IP addresses. 28496 - Remove option when getting directory cache to see whether they 28497 support running-routers; they all do now. Replace it with one 28498 to see whether caches support v2 stuff. 28499 - Stop listing down or invalid nodes in the v1 directory. This 28500 reduces its bulk by about 1/3, and reduces load on mirrors. 28501 - Mirrors no longer cache the v1 directory as often. 28502 - If we as a directory mirror don't know of any v1 directory 28503 authorities, then don't try to cache any v1 directories. 28504 28505 o Other directory improvements: 28506 - Add lefkada.eecs.harvard.edu and tor.dizum.com as fourth and 28507 fifth authoritative directory servers. 28508 - Directory authorities no longer require an open connection from 28509 a server to consider him "reachable". We need this change because 28510 when we add new directory authorities, old servers won't know not 28511 to hang up on them. 28512 - Dir authorities now do their own external reachability testing 28513 of each server, and only list as running the ones they found to 28514 be reachable. We also send back warnings to the server's logs if 28515 it uploads a descriptor that we already believe is unreachable. 28516 - Spread the directory authorities' reachability testing over the 28517 entire testing interval, so we don't try to do 500 TLS's at once 28518 every 20 minutes. 28519 - Make the "stable" router flag in network-status be the median of 28520 the uptimes of running valid servers, and make clients pay 28521 attention to the network-status flags. Thus the cutoff adapts 28522 to the stability of the network as a whole, making IRC, IM, etc 28523 connections more reliable. 28524 - Make the v2 dir's "Fast" flag based on relative capacity, just 28525 like "Stable" is based on median uptime. Name everything in the 28526 top 7/8 Fast, and only the top 1/2 gets to be a Guard. 28527 - Retry directory requests if we fail to get an answer we like 28528 from a given dirserver (we were retrying before, but only if 28529 we fail to connect). 28530 - Return a robots.txt on our dirport to discourage google indexing. 28531 28532 o Controller protocol improvements: 28533 - Revised controller protocol (version 1) that uses ascii rather 28534 than binary: tor/doc/control-spec.txt. Add supporting libraries 28535 in python and java and c# so you can use the controller from your 28536 applications without caring how our protocol works. 28537 - Allow the DEBUG controller event to work again. Mark certain log 28538 entries as "don't tell this to controllers", so we avoid cycles. 28539 - New controller function "getinfo accounting", to ask how 28540 many bytes we've used in this time period. 28541 - Add a "resetconf" command so you can set config options like 28542 AllowUnverifiedNodes and LongLivedPorts to "". Also, if you give 28543 a config option in the torrc with no value, then it clears it 28544 entirely (rather than setting it to its default). 28545 - Add a "getinfo config-file" to tell us where torrc is. Also 28546 expose guard nodes, config options/names. 28547 - Add a "quit" command (when when using the controller manually). 28548 - Add a new signal "newnym" to "change pseudonyms" -- that is, to 28549 stop using any currently-dirty circuits for new streams, so we 28550 don't link new actions to old actions. This also occurs on HUP 28551 or "signal reload". 28552 - If we would close a stream early (e.g. it asks for a .exit that 28553 we know would refuse it) but the LeaveStreamsUnattached config 28554 option is set by the controller, then don't close it. 28555 - Add a new controller event type "authdir_newdescs" that allows 28556 controllers to get all server descriptors that were uploaded to 28557 a router in its role as directory authority. 28558 - New controller option "getinfo desc/all-recent" to fetch the 28559 latest server descriptor for every router that Tor knows about. 28560 - Fix the controller's "attachstream 0" command to treat conn like 28561 it just connected, doing address remapping, handling .exit and 28562 .onion idioms, and so on. Now we're more uniform in making sure 28563 that the controller hears about new and closing connections. 28564 - Permit transitioning from ORPort==0 to ORPort!=0, and back, from 28565 the controller. Also, rotate dns and cpu workers if the controller 28566 changes options that will affect them; and initialize the dns 28567 worker cache tree whether or not we start out as a server. 28568 - Add a new circuit purpose 'controller' to let the controller ask 28569 for a circuit that Tor won't try to use. Extend the "extendcircuit" 28570 controller command to let you specify the purpose if you're starting 28571 a new circuit. Add a new "setcircuitpurpose" controller command to 28572 let you change a circuit's purpose after it's been created. 28573 - Let the controller ask for "getinfo dir/server/foo" so it can ask 28574 directly rather than connecting to the dir port. "getinfo 28575 dir/status/foo" also works, but currently only if your DirPort 28576 is enabled. 28577 - Let the controller tell us about certain router descriptors 28578 that it doesn't want Tor to use in circuits. Implement 28579 "setrouterpurpose" and modify "+postdescriptor" to do this. 28580 - If the controller's *setconf commands fail, collect an error 28581 message in a string and hand it back to the controller -- don't 28582 just tell them to go read their logs. 28583 28584 o Scalability, resource management, and performance: 28585 - Fix a major load balance bug: we were round-robin reading in 16 KB 28586 chunks, and servers with bandwidthrate of 20 KB, while downloading 28587 a 600 KB directory, would starve their other connections. Now we 28588 try to be a bit more fair. 28589 - Be more conservative about whether to advertise our DirPort. 28590 The main change is to not advertise if we're running at capacity 28591 and either a) we could hibernate ever or b) our capacity is low 28592 and we're using a default DirPort. 28593 - We weren't cannibalizing circuits correctly for 28594 CIRCUIT_PURPOSE_C_ESTABLISH_REND and 28595 CIRCUIT_PURPOSE_S_ESTABLISH_INTRO, so we were being forced to 28596 build those from scratch. This should make hidden services faster. 28597 - Predict required circuits better, with an eye toward making hidden 28598 services faster on the service end. 28599 - Compress exit policies even more: look for duplicate lines and 28600 remove them. 28601 - Generate 18.0.0.0/8 address policy format in descs when we can; 28602 warn when the mask is not reducible to a bit-prefix. 28603 - There used to be two ways to specify your listening ports in a 28604 server descriptor: on the "router" line and with a separate "ports" 28605 line. Remove support for the "ports" line. 28606 - Reduce memory requirements in our structs by changing the order 28607 of fields. Replace balanced trees with hash tables. Inline 28608 bottleneck smartlist functions. Add a "Map from digest to void*" 28609 abstraction so we can do less hex encoding/decoding, and use it 28610 in router_get_by_digest(). Many other CPU and memory improvements. 28611 - Allow tor_gzip_uncompress to extract as much as possible from 28612 truncated compressed data. Try to extract as many 28613 descriptors as possible from truncated http responses (when 28614 purpose is DIR_PURPOSE_FETCH_ROUTERDESC). 28615 - Make circ->onionskin a pointer, not a static array. moria2 was using 28616 125000 circuit_t's after it had been up for a few weeks, which 28617 translates to 20+ megs of wasted space. 28618 - The private half of our EDH handshake keys are now chosen out 28619 of 320 bits, not 1024 bits. (Suggested by Ian Goldberg.) 28620 - Stop doing the complex voodoo overkill checking for insecure 28621 Diffie-Hellman keys. Just check if it's in [2,p-2] and be happy. 28622 - Do round-robin writes for TLS of at most 16 kB per write. This 28623 might be more fair on loaded Tor servers. 28624 - Do not use unaligned memory access on alpha, mips, or mipsel. 28625 It *works*, but is very slow, so we treat them as if it doesn't. 28626 28627 o Other bugfixes and improvements: 28628 - Start storing useful information to $DATADIR/state, so we can 28629 remember things across invocations of Tor. Retain unrecognized 28630 lines so we can be forward-compatible, and write a TorVersion line 28631 so we can be backward-compatible. 28632 - If ORPort is set, Address is not explicitly set, and our hostname 28633 resolves to a private IP address, try to use an interface address 28634 if it has a public address. Now Windows machines that think of 28635 themselves as localhost can guess their address. 28636 - Regenerate our local descriptor if it's dirty and we try to use 28637 it locally (e.g. if it changes during reachability detection). 28638 This was causing some Tor servers to keep publishing the same 28639 initial descriptor forever. 28640 - Tor servers with dynamic IP addresses were needing to wait 18 28641 hours before they could start doing reachability testing using 28642 the new IP address and ports. This is because they were using 28643 the internal descriptor to learn what to test, yet they were only 28644 rebuilding the descriptor once they decided they were reachable. 28645 - It turns out we couldn't bootstrap a network since we added 28646 reachability detection in 0.1.0.1-rc. Good thing the Tor network 28647 has never gone down. Add an AssumeReachable config option to let 28648 servers and authorities bootstrap. When we're trying to build a 28649 high-uptime or high-bandwidth circuit but there aren't enough 28650 suitable servers, try being less picky rather than simply failing. 28651 - Newly bootstrapped Tor networks couldn't establish hidden service 28652 circuits until they had nodes with high uptime. Be more tolerant. 28653 - Really busy servers were keeping enough circuits open on stable 28654 connections that they were wrapping around the circuit_id 28655 space. (It's only two bytes.) This exposed a bug where we would 28656 feel free to reuse a circuit_id even if it still exists but has 28657 been marked for close. Try to fix this bug. Some bug remains. 28658 - When we fail to bind or listen on an incoming or outgoing 28659 socket, we now close it before refusing, rather than just 28660 leaking it. (Thanks to Peter Palfrader for finding.) 28661 - Fix a file descriptor leak in start_daemon(). 28662 - On Windows, you can't always reopen a port right after you've 28663 closed it. So change retry_listeners() to only close and re-open 28664 ports that have changed. 28665 - Workaround a problem with some http proxies that refuse GET 28666 requests that specify "Content-Length: 0". Reported by Adrian. 28667 - Recover better from TCP connections to Tor servers that are 28668 broken but don't tell you (it happens!); and rotate TLS 28669 connections once a week. 28670 - Fix a scary-looking but apparently harmless bug where circuits 28671 would sometimes start out in state CIRCUIT_STATE_OR_WAIT at 28672 servers, and never switch to state CIRCUIT_STATE_OPEN. 28673 - Check for even more Windows version flags when writing the platform 28674 string in server descriptors, and note any we don't recognize. 28675 - Add reasons to DESTROY and RELAY_TRUNCATED cells, so clients can 28676 get a better idea of why their circuits failed. Not used yet. 28677 - Add TTLs to RESOLVED, CONNECTED, and END_REASON_EXITPOLICY cells. 28678 We don't use them yet, but maybe one day our DNS resolver will be 28679 able to discover them. 28680 - Let people type "tor --install" as well as "tor -install" when they 28681 want to make it an NT service. 28682 - Looks like we were never delivering deflated (i.e. compressed) 28683 running-routers lists, even when asked. Oops. 28684 - We were leaking some memory every time the client changed IPs. 28685 - Clean up more of the OpenSSL memory when exiting, so we can detect 28686 memory leaks better. 28687 - Never call free() on tor_malloc()d memory. This will help us 28688 use dmalloc to detect memory leaks. 28689 - Some Tor servers process billions of cells per day. These 28690 statistics are now uint64_t's. 28691 - Check [X-]Forwarded-For headers in HTTP requests when generating 28692 log messages. This lets people run dirservers (and caches) behind 28693 Apache but still know which IP addresses are causing warnings. 28694 - Fix minor integer overflow in calculating when we expect to use up 28695 our bandwidth allocation before hibernating. 28696 - Lower the minimum required number of file descriptors to 1000, 28697 so we can have some overhead for Valgrind on Linux, where the 28698 default ulimit -n is 1024. 28699 - Stop writing the "router.desc" file, ever. Nothing uses it anymore, 28700 and its existence is confusing some users. 28701 28702 o Config option fixes: 28703 - Add a new config option ExitPolicyRejectPrivate which defaults 28704 to on. Now all exit policies will begin with rejecting private 28705 addresses, unless the server operator explicitly turns it off. 28706 - Bump the default bandwidthrate to 3 MB, and burst to 6 MB. 28707 - Add new ReachableORAddresses and ReachableDirAddresses options 28708 that understand address policies. FascistFirewall is now a synonym 28709 for "ReachableORAddresses *:443", "ReachableDirAddresses *:80". 28710 - Start calling it FooListenAddress rather than FooBindAddress, 28711 since few of our users know what it means to bind an address 28712 or port. 28713 - If the user gave Tor an odd number of command-line arguments, 28714 we were silently ignoring the last one. Now we complain and fail. 28715 This wins the oldest-bug prize -- this bug has been present since 28716 November 2002, as released in Tor 0.0.0. 28717 - If you write "HiddenServicePort 6667 127.0.0.1 6668" in your 28718 torrc rather than "HiddenServicePort 6667 127.0.0.1:6668", 28719 it would silently ignore the 6668. 28720 - If we get a linelist or linelist_s config option from the torrc, 28721 e.g. ExitPolicy, and it has no value, warn and skip rather than 28722 silently resetting it to its default. 28723 - Setconf was appending items to linelists, not clearing them. 28724 - Add MyFamily to torrc.sample in the server section, so operators 28725 will be more likely to learn that it exists. 28726 - Make ContactInfo mandatory for authoritative directory servers. 28727 - MaxConn has been obsolete for a while now. Document the ConnLimit 28728 config option, which is a *minimum* number of file descriptors 28729 that must be available else Tor refuses to start. 28730 - Get rid of IgnoreVersion undocumented config option, and make us 28731 only warn, never exit, when we're running an obsolete version. 28732 - Make MonthlyAccountingStart config option truly obsolete now. 28733 - Correct the man page entry on TrackHostExitsExpire. 28734 - Let directory authorities start even if they don't specify an 28735 Address config option. 28736 - Change "AllowUnverifiedNodes" to "AllowInvalidNodes", to 28737 reflect the updated flags in our v2 dir protocol. 28738 28739 o Config option features: 28740 - Add a new config option FastFirstHopPK (on by default) so clients 28741 do a trivial crypto handshake for their first hop, since TLS has 28742 already taken care of confidentiality and authentication. 28743 - Let the user set ControlListenAddress in the torrc. This can be 28744 dangerous, but there are some cases (like a secured LAN) where it 28745 makes sense. 28746 - New config options to help controllers: FetchServerDescriptors 28747 and FetchHidServDescriptors for whether to fetch server 28748 info and hidserv info or let the controller do it, and 28749 PublishServerDescriptor and PublishHidServDescriptors. 28750 - Also let the controller set the __AllDirActionsPrivate config 28751 option if you want all directory fetches/publishes to happen via 28752 Tor (it assumes your controller bootstraps your circuits). 28753 - Add "HardwareAccel" config option: support for crypto hardware 28754 accelerators via OpenSSL. Off by default, until we find somebody 28755 smart who can test it for us. (It appears to produce seg faults 28756 in at least some cases.) 28757 - New config option "AuthDirRejectUnlisted" for directory authorities 28758 as a panic button: if we get flooded with unusable servers we can 28759 revert to only listing servers in the approved-routers file. 28760 - Directory authorities can now reject/invalidate by key and IP, 28761 with the config options "AuthDirInvalid" and "AuthDirReject", or 28762 by marking a fingerprint as "!reject" or "!invalid" (as its 28763 nickname) in the approved-routers file. This is useful since 28764 currently we automatically list servers as running and usable 28765 even if we know they're jerks. 28766 - Add a new config option TestSocks so people can see whether their 28767 applications are using socks4, socks4a, socks5-with-ip, or 28768 socks5-with-fqdn. This way they don't have to keep mucking 28769 with tcpdump and wondering if something got cached somewhere. 28770 - Add "private:*" as an alias in configuration for policies. Now 28771 you can simplify your exit policy rather than needing to list 28772 every single internal or nonroutable network space. 28773 - Accept "private:*" in routerdesc exit policies; not generated yet 28774 because older Tors do not understand it. 28775 - Add configuration option "V1AuthoritativeDirectory 1" which 28776 moria1, moria2, and tor26 have set. 28777 - Implement an option, VirtualAddrMask, to set which addresses 28778 get handed out in response to mapaddress requests. This works 28779 around a bug in tsocks where 127.0.0.0/8 is never socksified. 28780 - Add a new config option FetchUselessDescriptors, off by default, 28781 for when you plan to run "exitlist" on your client and you want 28782 to know about even the non-running descriptors. 28783 - SocksTimeout: How long do we let a socks connection wait 28784 unattached before we fail it? 28785 - CircuitBuildTimeout: Cull non-open circuits that were born 28786 at least this many seconds ago. 28787 - CircuitIdleTimeout: Cull open clean circuits that were born 28788 at least this many seconds ago. 28789 - New config option SafeSocks to reject all application connections 28790 using unsafe socks protocols. Defaults to off. 28791 28792 o Improved and clearer log messages: 28793 - Reduce clutter in server logs. We're going to try to make 28794 them actually usable now. New config option ProtocolWarnings that 28795 lets you hear about how _other Tors_ are breaking the protocol. Off 28796 by default. 28797 - Divide log messages into logging domains. Once we put some sort 28798 of interface on this, it will let people looking at more verbose 28799 log levels specify the topics they want to hear more about. 28800 - Log server fingerprint on startup, so new server operators don't 28801 have to go hunting around their filesystem for it. 28802 - Provide dire warnings to any users who set DirServer manually; 28803 move it out of torrc.sample and into torrc.complete. 28804 - Make the log message less scary when all the dirservers are 28805 temporarily unreachable. 28806 - When tor_socketpair() fails in Windows, give a reasonable 28807 Windows-style errno back. 28808 - Improve tor_gettimeofday() granularity on windows. 28809 - We were printing the number of idle dns workers incorrectly when 28810 culling them. 28811 - Handle duplicate lines in approved-routers files without warning. 28812 - We were whining about using socks4 or socks5-with-local-lookup 28813 even when it's an IP address in the "virtual" range we designed 28814 exactly for this case. 28815 - Check for named servers when looking them up by nickname; 28816 warn when we're calling a non-named server by its nickname; 28817 don't warn twice about the same name. 28818 - Downgrade the dirserver log messages when whining about 28819 unreachability. 28820 - Correct "your server is reachable" log entries to indicate that 28821 it was self-testing that told us so. 28822 - If we're trying to be a Tor server and running Windows 95/98/ME 28823 as a server, explain that we'll likely crash. 28824 - Provide a more useful warn message when our onion queue gets full: 28825 the CPU is too slow or the exit policy is too liberal. 28826 - Don't warn when we receive a 503 from a dirserver/cache -- this 28827 will pave the way for them being able to refuse if they're busy. 28828 - When we fail to bind a listener, try to provide a more useful 28829 log message: e.g., "Is Tor already running?" 28830 - Only start testing reachability once we've established a 28831 circuit. This will make startup on dir authorities less noisy. 28832 - Don't try to upload hidden service descriptors until we have 28833 established a circuit. 28834 - Tor didn't warn when it failed to open a log file. 28835 - Warn when listening on a public address for socks. We suspect a 28836 lot of people are setting themselves up as open socks proxies, 28837 and they have no idea that jerks on the Internet are using them, 28838 since they simply proxy the traffic into the Tor network. 28839 - Give a useful message when people run Tor as the wrong user, 28840 rather than telling them to start chowning random directories. 28841 - Fix a harmless bug that was causing Tor servers to log 28842 "Got an end because of misc error, but we're not an AP. Closing." 28843 - Fix wrong log message when you add a "HiddenServiceNodes" config 28844 line without any HiddenServiceDir line (reported by Chris Thomas). 28845 - Directory authorities now stop whining so loudly about bad 28846 descriptors that they fetch from other dirservers. So when there's 28847 a log complaint, it's for sure from a freshly uploaded descriptor. 28848 - When logging via syslog, include the pid whenever we provide 28849 a log entry. Suggested by Todd Fries. 28850 - When we're shutting down and we do something like try to post a 28851 server descriptor or rendezvous descriptor, don't complain that 28852 we seem to be unreachable. Of course we are, we're shutting down. 28853 - Change log line for unreachability to explicitly suggest /etc/hosts 28854 as the culprit. Also make it clearer what IP address and ports we're 28855 testing for reachability. 28856 - Put quotes around user-supplied strings when logging so users are 28857 more likely to realize if they add bad characters (like quotes) 28858 to the torrc. 28859 - NT service patch from Matt Edman to improve error messages on Win32. 28860 28861 28862 Changes in version 0.1.0.17 - 2006-02-17 28863 o Crash bugfixes on 0.1.0.x: 28864 - When servers with a non-zero DirPort came out of hibernation, 28865 sometimes they would trigger an assert. 28866 28867 o Other important bugfixes: 28868 - On platforms that don't have getrlimit (like Windows), we were 28869 artificially constraining ourselves to a max of 1024 28870 connections. Now just assume that we can handle as many as 15000 28871 connections. Hopefully this won't cause other problems. 28872 28873 o Backported features: 28874 - When we're a server, a client asks for an old-style directory, 28875 and our write bucket is empty, don't give it to him. This way 28876 small servers can continue to serve the directory *sometimes*, 28877 without getting overloaded. 28878 - Whenever you get a 503 in response to a directory fetch, try 28879 once more. This will become important once servers start sending 28880 503's whenever they feel busy. 28881 - Fetch a new directory every 120 minutes, not every 40 minutes. 28882 Now that we have hundreds of thousands of users running the old 28883 directory algorithm, it's starting to hurt a lot. 28884 - Bump up the period for forcing a hidden service descriptor upload 28885 from 20 minutes to 1 hour. 28886 28887 28888 Changes in version 0.1.0.16 - 2006-01-02 28889 o Crash bugfixes on 0.1.0.x: 28890 - On Windows, build with a libevent patch from "I-M Weasel" to avoid 28891 corrupting the heap, losing FDs, or crashing when we need to resize 28892 the fd_sets. (This affects the Win32 binaries, not Tor's sources.) 28893 - It turns out sparc64 platforms crash on unaligned memory access 28894 too -- so detect and avoid this. 28895 - Handle truncated compressed data correctly (by detecting it and 28896 giving an error). 28897 - Fix possible-but-unlikely free(NULL) in control.c. 28898 - When we were closing connections, there was a rare case that 28899 stomped on memory, triggering seg faults and asserts. 28900 - Avoid potential infinite recursion when building a descriptor. (We 28901 don't know that it ever happened, but better to fix it anyway.) 28902 - We were neglecting to unlink marked circuits from soon-to-close OR 28903 connections, which caused some rare scribbling on freed memory. 28904 - Fix a memory stomping race bug when closing the joining point of two 28905 rendezvous circuits. 28906 - Fix an assert in time parsing found by Steven Murdoch. 28907 28908 o Other bugfixes on 0.1.0.x: 28909 - When we're doing reachability testing, provide more useful log 28910 messages so the operator knows what to expect. 28911 - Do not check whether DirPort is reachable when we are suppressing 28912 advertising it because of hibernation. 28913 - When building with -static or on Solaris, we sometimes needed -ldl. 28914 - One of the dirservers (tor26) changed its IP address. 28915 - When we're deciding whether a stream has enough circuits around 28916 that can handle it, count the freshly dirty ones and not the ones 28917 that are so dirty they won't be able to handle it. 28918 - When we're expiring old circuits, we had a logic error that caused 28919 us to close new rendezvous circuits rather than old ones. 28920 - Give a more helpful log message when you try to change ORPort via 28921 the controller: you should upgrade Tor if you want that to work. 28922 - We were failing to parse Tor versions that start with "Tor ". 28923 - Tolerate faulty streams better: when a stream fails for reason 28924 exitpolicy, stop assuming that the router is lying about his exit 28925 policy. When a stream fails for reason misc, allow it to retry just 28926 as if it was resolvefailed. When a stream has failed three times, 28927 reset its failure count so we can try again and get all three tries. 28928 28929 28930 Changes in version 0.1.0.15 - 2005-09-23 28931 o Bugfixes on 0.1.0.x: 28932 - Reject ports 465 and 587 (spam targets) in default exit policy. 28933 - Don't crash when we don't have any spare file descriptors and we 28934 try to spawn a dns or cpu worker. 28935 - Get rid of IgnoreVersion undocumented config option, and make us 28936 only warn, never exit, when we're running an obsolete version. 28937 - Don't try to print a null string when your server finds itself to 28938 be unreachable and the Address config option is empty. 28939 - Make the numbers in read-history and write-history into uint64s, 28940 so they don't overflow and publish negatives in the descriptor. 28941 - Fix a minor memory leak in smartlist_string_remove(). 28942 - We were only allowing ourselves to upload a server descriptor at 28943 most every 20 minutes, even if it changed earlier than that. 28944 - Clean up log entries that pointed to old URLs. 28945 28946 28947 Changes in version 0.1.0.14 - 2005-08-08 28948 o Bugfixes on 0.1.0.x: 28949 - Fix the other half of the bug with crypto handshakes 28950 (CVE-2005-2643). 28951 - Fix an assert trigger if you send a 'signal term' via the 28952 controller when it's listening for 'event info' messages. 28953 28954 28955 Changes in version 0.1.0.13 - 2005-08-04 28956 o Bugfixes on 0.1.0.x: 28957 - Fix a critical bug in the security of our crypto handshakes. 28958 - Fix a size_t underflow in smartlist_join_strings2() that made 28959 it do bad things when you hand it an empty smartlist. 28960 - Fix Windows installer to ship Tor license (thanks to Aphex for 28961 pointing out this oversight) and put a link to the doc directory 28962 in the start menu. 28963 - Explicitly set no-unaligned-access for sparc: it turns out the 28964 new gcc's let you compile broken code, but that doesn't make it 28965 not-broken. 28966 28967 28968 Changes in version 0.1.0.12 - 2005-07-18 28969 o New directory servers: 28970 - tor26 has changed IP address. 28971 28972 o Bugfixes on 0.1.0.x: 28973 - Fix a possible double-free in tor_gzip_uncompress(). 28974 - When --disable-threads is set, do not search for or link against 28975 pthreads libraries. 28976 - Don't trigger an assert if an authoritative directory server 28977 claims its dirport is 0. 28978 - Fix bug with removing Tor as an NT service: some people were 28979 getting "The service did not return an error." Thanks to Matt 28980 Edman for the fix. 28981 28982 28983 Changes in version 0.1.0.11 - 2005-06-30 28984 o Bugfixes on 0.1.0.x: 28985 - Fix major security bug: servers were disregarding their 28986 exit policies if clients behaved unexpectedly. 28987 - Make OS X init script check for missing argument, so we don't 28988 confuse users who invoke it incorrectly. 28989 - Fix a seg fault in "tor --hash-password foo". 28990 - The MAPADDRESS control command was broken. 28991 28992 28993 Changes in version 0.1.0.10 - 2005-06-14 28994 o Fixes on Win32: 28995 - Make NT services work and start on startup on Win32 (based on 28996 patch by Matt Edman). See the FAQ entry for details. 28997 - Make 'platform' string in descriptor more accurate for Win32 28998 servers, so it's not just "unknown platform". 28999 - REUSEADDR on normal platforms means you can rebind to the port 29000 right after somebody else has let it go. But REUSEADDR on Win32 29001 means you can bind to the port _even when somebody else already 29002 has it bound_! So, don't do that on Win32. 29003 - Clean up the log messages when starting on Win32 with no config 29004 file. 29005 - Allow seeding the RNG on Win32 even when you're not running as 29006 Administrator. If seeding the RNG on Win32 fails, quit. 29007 29008 o Assert / crash bugs: 29009 - Refuse relay cells that claim to have a length larger than the 29010 maximum allowed. This prevents a potential attack that could read 29011 arbitrary memory (e.g. keys) from an exit server's process 29012 (CVE-2005-2050). 29013 - If unofficial Tor clients connect and send weird TLS certs, our 29014 Tor server triggers an assert. Stop asserting, and start handling 29015 TLS errors better in other situations too. 29016 - Fix a race condition that can trigger an assert when we have a 29017 pending create cell and an OR connection attempt fails. 29018 29019 o Resource leaks: 29020 - Use pthreads for worker processes rather than forking. This was 29021 forced because when we forked, we ended up wasting a lot of 29022 duplicate ram over time. 29023 - Also switch to foo_r versions of some library calls to allow 29024 reentry and threadsafeness. 29025 - Implement --disable-threads configure option. Disable threads on 29026 netbsd and openbsd by default, because they have no reentrant 29027 resolver functions (!), and on solaris since it has other 29028 threading issues. 29029 - Fix possible bug on threading platforms (e.g. win32) which was 29030 leaking a file descriptor whenever a cpuworker or dnsworker died. 29031 - Fix a minor memory leak when somebody establishes an introduction 29032 point at your Tor server. 29033 - Fix possible memory leak in tor_lookup_hostname(). (Thanks to 29034 Adam Langley.) 29035 - Add ./configure --with-dmalloc option, to track memory leaks. 29036 - And try to free all memory on closing, so we can detect what 29037 we're leaking. 29038 29039 o Protocol correctness: 29040 - When we've connected to an OR and handshaked but didn't like 29041 the result, we were closing the conn without sending destroy 29042 cells back for pending circuits. Now send those destroys. 29043 - Start sending 'truncated' cells back rather than destroy cells 29044 if the circuit closes in front of you. This means we won't have 29045 to abandon partially built circuits. 29046 - Handle changed router status correctly when dirserver reloads 29047 fingerprint file. We used to be dropping all unverified descriptors 29048 right then. The bug was hidden because we would immediately 29049 fetch a directory from another dirserver, which would include the 29050 descriptors we just dropped. 29051 - Revise tor-spec to add more/better stream end reasons. 29052 - Revise all calls to connection_edge_end to avoid sending 'misc', 29053 and to take errno into account where possible. 29054 - Client now retries when streams end early for 'hibernating' or 29055 'resource limit' reasons, rather than failing them. 29056 - Try to be more zealous about calling connection_edge_end when 29057 things go bad with edge conns in connection.c. 29058 29059 o Robustness improvements: 29060 - Better handling for heterogeneous / unreliable nodes: 29061 - Annotate circuits with whether they aim to contain high uptime 29062 nodes and/or high capacity nodes. When building circuits, choose 29063 appropriate nodes. 29064 - This means that every single node in an intro rend circuit, 29065 not just the last one, will have a minimum uptime. 29066 - New config option LongLivedPorts to indicate application streams 29067 that will want high uptime circuits. 29068 - Servers reset uptime when a dir fetch entirely fails. This 29069 hopefully reflects stability of the server's network connectivity. 29070 - If somebody starts his tor server in Jan 2004 and then fixes his 29071 clock, don't make his published uptime be a year. 29072 - Reset published uptime when we wake up from hibernation. 29073 - Introduce a notion of 'internal' circs, which are chosen without 29074 regard to the exit policy of the last hop. Intro and rendezvous 29075 circs must be internal circs, to avoid leaking information. Resolve 29076 and connect streams can use internal circs if they want. 29077 - New circuit pooling algorithm: keep track of what destination ports 29078 we've used recently (start out assuming we'll want to use 80), and 29079 make sure to have enough circs around to satisfy these ports. Also 29080 make sure to have 2 internal circs around if we've required internal 29081 circs lately (and with high uptime if we've seen that lately too). 29082 - Turn addr_policy_compare from a tristate to a quadstate; this should 29083 help address our "Ah, you allow 1.2.3.4:80. You are a good choice 29084 for google.com" problem. 29085 - When a client asks us for a dir mirror and we don't have one, 29086 launch an attempt to get a fresh one. 29087 - First cut at support for "create-fast" cells. Clients can use 29088 these when extending to their first hop, since the TLS already 29089 provides forward secrecy and authentication. Not enabled on 29090 clients yet. 29091 29092 o Reachability testing. 29093 - Your Tor server will automatically try to see if its ORPort and 29094 DirPort are reachable from the outside, and it won't upload its 29095 descriptor until it decides at least ORPort is reachable (when 29096 DirPort is not yet found reachable, publish it as zero). 29097 - When building testing circs for ORPort testing, use only 29098 high-bandwidth nodes, so fewer circuits fail. 29099 - Notice when our IP changes, and reset stats/uptime/reachability. 29100 - Authdirservers don't do ORPort reachability detection, since 29101 they're in clique mode, so it will be rare to find a server not 29102 already connected to them. 29103 - Authdirservers now automatically approve nodes running 0.1.0.2-rc 29104 or later. 29105 29106 o Dirserver fixes: 29107 - Now we allow two unverified servers with the same nickname 29108 but different keys. But if a nickname is verified, only that 29109 nickname+key are allowed. 29110 - If you're an authdirserver connecting to an address:port, 29111 and it's not the OR you were expecting, forget about that 29112 descriptor. If he *was* the one you were expecting, then forget 29113 about all other descriptors for that address:port. 29114 - Allow servers to publish descriptors from 12 hours in the future. 29115 Corollary: only whine about clock skew from the dirserver if 29116 he's a trusted dirserver (since now even verified servers could 29117 have quite wrong clocks). 29118 - Require servers that use the default dirservers to have public IP 29119 addresses. We have too many servers that are configured with private 29120 IPs and their admins never notice the log entries complaining that 29121 their descriptors are being rejected. 29122 29123 o Efficiency improvements: 29124 - Use libevent. Now we can use faster async cores (like epoll, kpoll, 29125 and /dev/poll), and hopefully work better on Windows too. 29126 - Apple's OS X 10.4.0 ships with a broken kqueue API, and using 29127 kqueue on 10.3.9 causes kernel panics. Don't use kqueue on OS X. 29128 - Find libevent even if it's hiding in /usr/local/ and your 29129 CFLAGS and LDFLAGS don't tell you to look there. 29130 - Be able to link with libevent as a shared library (the default 29131 after 1.0d), even if it's hiding in /usr/local/lib and even 29132 if you haven't added /usr/local/lib to your /etc/ld.so.conf, 29133 assuming you're running gcc. Otherwise fail and give a useful 29134 error message. 29135 - Switch to a new buffer management algorithm, which tries to avoid 29136 reallocing and copying quite as much. In first tests it looks like 29137 it uses *more* memory on average, but less cpu. 29138 - Switch our internal buffers implementation to use a ring buffer, 29139 to hopefully improve performance for fast servers a lot. 29140 - Reenable the part of the code that tries to flush as soon as an 29141 OR outbuf has a full TLS record available. Perhaps this will make 29142 OR outbufs not grow as huge except in rare cases, thus saving lots 29143 of CPU time plus memory. 29144 - Improve performance for dirservers: stop re-parsing the whole 29145 directory every time you regenerate it. 29146 - Keep a big splay tree of (circid,orconn)->circuit mappings to make 29147 it much faster to look up a circuit for each relay cell. 29148 - Remove most calls to assert_all_pending_dns_resolves_ok(), 29149 since they're eating our cpu on exit nodes. 29150 - Stop wasting time doing a case insensitive comparison for every 29151 dns name every time we do any lookup. Canonicalize the names to 29152 lowercase when you first see them. 29153 29154 o Hidden services: 29155 - Handle unavailable hidden services better. Handle slow or busy 29156 hidden services better. 29157 - Cannibalize GENERAL circs to be C_REND, C_INTRO, S_INTRO, and S_REND 29158 circ as necessary, if there are any completed ones lying around 29159 when we try to launch one. 29160 - Make hidden services try to establish a rendezvous for 30 seconds 29161 after fetching the descriptor, rather than for n (where n=3) 29162 attempts to build a circuit. 29163 - Adjust maximum skew and age for rendezvous descriptors: let skew 29164 be 48 hours rather than 90 minutes. 29165 - Reject malformed .onion addresses rather then passing them on as 29166 normal web requests. 29167 29168 o Controller: 29169 - More Tor controller support. See 29170 http://tor.eff.org/doc/control-spec.txt for all the new features, 29171 including signals to emulate unix signals from any platform; 29172 redirectstream; extendcircuit; mapaddress; getinfo; postdescriptor; 29173 closestream; closecircuit; etc. 29174 - Encode hashed controller passwords in hex instead of base64, 29175 to make it easier to write controllers. 29176 - Revise control spec and implementation to allow all log messages to 29177 be sent to controller with their severities intact (suggested by 29178 Matt Edman). Disable debug-level logs while delivering a debug-level 29179 log to the controller, to prevent loop. Update TorControl to handle 29180 new log event types. 29181 29182 o New config options/defaults: 29183 - Begin scrubbing sensitive strings from logs by default. Turn off 29184 the config option SafeLogging if you need to do debugging. 29185 - New exit policy: accept most low-numbered ports, rather than 29186 rejecting most low-numbered ports. 29187 - Put a note in the torrc about abuse potential with the default 29188 exit policy. 29189 - Add support for CONNECTing through https proxies, with "HttpsProxy" 29190 config option. 29191 - Add HttpProxyAuthenticator and HttpsProxyAuthenticator support 29192 based on patch from Adam Langley (basic auth only). 29193 - Bump the default BandwidthRate from 1 MB to 2 MB, to accommodate 29194 the fast servers that have been joining lately. (Clients are now 29195 willing to load balance over up to 2 MB of advertised bandwidth 29196 capacity too.) 29197 - New config option MaxAdvertisedBandwidth which lets you advertise 29198 a low bandwidthrate (to not attract as many circuits) while still 29199 allowing a higher bandwidthrate in reality. 29200 - Require BandwidthRate to be at least 20kB/s for servers. 29201 - Add a NoPublish config option, so you can be a server (e.g. for 29202 testing running Tor servers in other Tor networks) without 29203 publishing your descriptor to the primary dirservers. 29204 - Add a new AddressMap config directive to rewrite incoming socks 29205 addresses. This lets you, for example, declare an implicit 29206 required exit node for certain sites. 29207 - Add a new TrackHostExits config directive to trigger addressmaps 29208 for certain incoming socks addresses -- for sites that break when 29209 your exit keeps changing (based on patch from Mike Perry). 29210 - Split NewCircuitPeriod option into NewCircuitPeriod (30 secs), 29211 which describes how often we retry making new circuits if current 29212 ones are dirty, and MaxCircuitDirtiness (10 mins), which describes 29213 how long we're willing to make use of an already-dirty circuit. 29214 - Change compiled-in SHUTDOWN_WAIT_LENGTH from a fixed 30 secs to 29215 a config option "ShutdownWaitLength" (when using kill -INT on 29216 servers). 29217 - Fix an edge case in parsing config options: if they say "--" 29218 on the commandline, it's not a config option (thanks weasel). 29219 - New config option DirAllowPrivateAddresses for authdirservers. 29220 Now by default they refuse router descriptors that have non-IP or 29221 private-IP addresses. 29222 - Change DirFetchPeriod/StatusFetchPeriod to have a special "Be 29223 smart" default value: low for servers and high for clients. 29224 - Some people were putting "Address " in their torrc, and they had 29225 a buggy resolver that resolved " " to 0.0.0.0. Oops. 29226 - If DataDir is ~/.tor, and that expands to /.tor, then default to 29227 LOCALSTATEDIR/tor instead. 29228 - Implement --verify-config command-line option to check if your torrc 29229 is valid without actually launching Tor. 29230 29231 o Logging improvements: 29232 - When dirservers refuse a server descriptor, we now log its 29233 contactinfo, platform, and the poster's IP address. 29234 - Only warn once per nickname from add_nickname_list_to_smartlist() 29235 per failure, so an entrynode or exitnode choice that's down won't 29236 yell so much. 29237 - When we're connecting to an OR and he's got a different nickname/key 29238 than we were expecting, only complain loudly if we're an OP or a 29239 dirserver. Complaining loudly to the OR admins just confuses them. 29240 - Whine at you if you're a server and you don't set your contactinfo. 29241 - Warn when exit policy implicitly allows local addresses. 29242 - Give a better warning when some other server advertises an 29243 ORPort that is actually an apache running ssl. 29244 - If we get an incredibly skewed timestamp from a dirserver mirror 29245 that isn't a verified OR, don't warn -- it's probably him that's 29246 wrong. 29247 - When a dirserver causes you to give a warn, mention which dirserver 29248 it was. 29249 - Initialize libevent later in the startup process, so the logs are 29250 already established by the time we start logging libevent warns. 29251 - Use correct errno on win32 if libevent fails. 29252 - Check and warn about known-bad/slow libevent versions. 29253 - Stop warning about sigpipes in the logs. We're going to 29254 pretend that getting these occasionally is normal and fine. 29255 29256 o New contrib scripts: 29257 - New experimental script tor/contrib/exitlist: a simple python 29258 script to parse directories and find Tor nodes that exit to listed 29259 addresses/ports. 29260 - New experimental script tor/contrib/ExerciseServer.py (needs more 29261 work) that uses the controller interface to build circuits and 29262 fetch pages over them. This will help us bootstrap servers that 29263 have lots of capacity but haven't noticed it yet. 29264 - New experimental script tor/contrib/PathDemo.py (needs more work) 29265 that uses the controller interface to let you choose whole paths 29266 via addresses like 29267 "<hostname>.<path,separated by dots>.<length of path>.path" 29268 - New contributed script "privoxy-tor-toggle" to toggle whether 29269 Privoxy uses Tor. Seems to be configured for Debian by default. 29270 - Have torctl.in/tor.sh.in check for location of su binary (needed 29271 on FreeBSD) 29272 29273 o Misc bugfixes: 29274 - chdir() to your datadirectory at the *end* of the daemonize process, 29275 not the beginning. This was a problem because the first time you 29276 run tor, if your datadir isn't there, and you have runasdaemon set 29277 to 1, it will try to chdir to it before it tries to create it. Oops. 29278 - Fix several double-mark-for-close bugs, e.g. where we were finding 29279 a conn for a cell even if that conn is already marked for close. 29280 - Stop most cases of hanging up on a socks connection without sending 29281 the socks reject. 29282 - Fix a bug in the RPM package: set home directory for _tor to 29283 something more reasonable when first installing. 29284 - Stop putting nodename in the Platform string in server descriptors. 29285 It doesn't actually help, and it is confusing/upsetting some people. 29286 - When using preferred entry or exit nodes, ignore whether the 29287 circuit wants uptime or capacity. They asked for the nodes, they 29288 get the nodes. 29289 - Tie MAX_DIR_SIZE to MAX_BUF_SIZE, so now directory sizes won't get 29290 artificially capped at 500kB. 29291 - Cache local dns resolves correctly even when they're .exit 29292 addresses. 29293 - If we're hibernating and we get a SIGINT, exit immediately. 29294 - tor-resolve requests were ignoring .exit if there was a working circuit 29295 they could use instead. 29296 - Pay more attention to the ClientOnly config option. 29297 - Resolve OS X installer bugs: stop claiming to be 0.0.9.2 in certain 29298 installer screens; and don't put stuff into StartupItems unless 29299 the user asks you to. 29300 29301 o Misc features: 29302 - Rewrite address "serifos.exit" to "externalIP.serifos.exit" 29303 rather than just rejecting it. 29304 - If our clock jumps forward by 100 seconds or more, assume something 29305 has gone wrong with our network and abandon all not-yet-used circs. 29306 - When an application is using socks5, give him the whole variety of 29307 potential socks5 responses (connect refused, host unreachable, etc), 29308 rather than just "success" or "failure". 29309 - A more sane version numbering system. See 29310 http://tor.eff.org/cvs/tor/doc/version-spec.txt for details. 29311 - Change version parsing logic: a version is "obsolete" if it is not 29312 recommended and (1) there is a newer recommended version in the 29313 same series, or (2) there are no recommended versions in the same 29314 series, but there are some recommended versions in a newer series. 29315 A version is "new" if it is newer than any recommended version in 29316 the same series. 29317 - Report HTTP reasons to client when getting a response from directory 29318 servers -- so you can actually know what went wrong. 29319 - Reject odd-looking addresses at the client (e.g. addresses that 29320 contain a colon), rather than having the server drop them because 29321 they're malformed. 29322 - Stop publishing socksport in the directory, since it's not 29323 actually meant to be public. For compatibility, publish a 0 there 29324 for now. 29325 - Since we ship our own Privoxy on OS X, tweak it so it doesn't write 29326 cookies to disk and doesn't log each web request to disk. (Thanks 29327 to Brett Carrington for pointing this out.) 29328 - Add OSX uninstall instructions. An actual uninstall script will 29329 come later. 29330 - Add "opt hibernating 1" to server descriptor to make it clearer 29331 whether the server is hibernating. 29332 29333 29334 Changes in version 0.0.9.10 - 2005-06-16 29335 o Bugfixes on 0.0.9.x (backported from 0.1.0.10): 29336 - Refuse relay cells that claim to have a length larger than the 29337 maximum allowed. This prevents a potential attack that could read 29338 arbitrary memory (e.g. keys) from an exit server's process 29339 (CVE-2005-2050). 29340 29341 29342 Changes in version 0.0.9.9 - 2005-04-23 29343 o Bugfixes on 0.0.9.x: 29344 - If unofficial Tor clients connect and send weird TLS certs, our 29345 Tor server triggers an assert. This release contains a minimal 29346 backport from the broader fix that we put into 0.1.0.4-rc. 29347 29348 29349 Changes in version 0.0.9.8 - 2005-04-07 29350 o Bugfixes on 0.0.9.x: 29351 - We have a bug that I haven't found yet. Sometimes, very rarely, 29352 cpuworkers get stuck in the 'busy' state, even though the cpuworker 29353 thinks of itself as idle. This meant that no new circuits ever got 29354 established. Here's a workaround to kill any cpuworker that's been 29355 busy for more than 100 seconds. 29356 29357 29358 Changes in version 0.0.9.7 - 2005-04-01 29359 o Bugfixes on 0.0.9.x: 29360 - Fix another race crash bug (thanks to Glenn Fink for reporting). 29361 - Compare identity to identity, not to nickname, when extending to 29362 a router not already in the directory. This was preventing us from 29363 extending to unknown routers. Oops. 29364 - Make sure to create OS X Tor user in <500 range, so we aren't 29365 creating actual system users. 29366 - Note where connection-that-hasn't-sent-end was marked, and fix 29367 a few really loud instances of this harmless bug (it's fixed more 29368 in 0.1.0.x). 29369 29370 29371 Changes in version 0.0.9.6 - 2005-03-24 29372 o Bugfixes on 0.0.9.x (crashes and asserts): 29373 - Add new end stream reasons to maintenance branch. Fix bug where 29374 reason (8) could trigger an assert. Prevent bug from recurring. 29375 - Apparently win32 stat wants paths to not end with a slash. 29376 - Fix assert triggers in assert_cpath_layer_ok(), where we were 29377 blowing away the circuit that conn->cpath_layer points to, then 29378 checking to see if the circ is well-formed. Backport check to make 29379 sure we dont use the cpath on a closed connection. 29380 - Prevent circuit_resume_edge_reading_helper() from trying to package 29381 inbufs for marked-for-close streams. 29382 - Don't crash on hup if your options->address has become unresolvable. 29383 - Some systems (like OS X) sometimes accept() a connection and tell 29384 you the remote host is 0.0.0.0:0. If this happens, due to some 29385 other mis-features, we get confused; so refuse the conn for now. 29386 29387 o Bugfixes on 0.0.9.x (other): 29388 - Fix harmless but scary "Unrecognized content encoding" warn message. 29389 - Add new stream error reason: TORPROTOCOL reason means "you are not 29390 speaking a version of Tor I understand; say bye-bye to your stream." 29391 - Be willing to cache directories from up to ROUTER_MAX_AGE seconds 29392 into the future, now that we are more tolerant of skew. This 29393 resolves a bug where a Tor server would refuse to cache a directory 29394 because all the directories it gets are too far in the future; 29395 yet the Tor server never logs any complaints about clock skew. 29396 - Mac packaging magic: make man pages useable, and do not overwrite 29397 existing torrc files. 29398 - Make OS X log happily to /var/log/tor/tor.log 29399 29400 29401 Changes in version 0.0.9.5 - 2005-02-22 29402 o Bugfixes on 0.0.9.x: 29403 - Fix an assert race at exit nodes when resolve requests fail. 29404 - Stop picking unverified dir mirrors--it only leads to misery. 29405 - Patch from Matt Edman to make NT services work better. Service 29406 support is still not compiled into the executable by default. 29407 - Patch from Dmitri Bely so the Tor service runs better under 29408 the win32 SYSTEM account. 29409 - Make tor-resolve actually work (?) on Win32. 29410 - Fix a sign bug when getrlimit claims to have 4+ billion 29411 file descriptors available. 29412 - Stop refusing to start when bandwidthburst == bandwidthrate. 29413 - When create cells have been on the onion queue more than five 29414 seconds, just send back a destroy and take them off the list. 29415 29416 29417 Changes in version 0.0.9.4 - 2005-02-03 29418 o Bugfixes on 0.0.9: 29419 - Fix an assert bug that took down most of our servers: when 29420 a server claims to have 1 GB of bandwidthburst, don't 29421 freak out. 29422 - Don't crash as badly if we have spawned the max allowed number 29423 of dnsworkers, or we're out of file descriptors. 29424 - Block more file-sharing ports in the default exit policy. 29425 - MaxConn is now automatically set to the hard limit of max 29426 file descriptors we're allowed (ulimit -n), minus a few for 29427 logs, etc. 29428 - Give a clearer message when servers need to raise their 29429 ulimit -n when they start running out of file descriptors. 29430 - SGI Compatibility patches from Jan Schaumann. 29431 - Tolerate a corrupt cached directory better. 29432 - When a dirserver hasn't approved your server, list which one. 29433 - Go into soft hibernation after 95% of the bandwidth is used, 29434 not 99%. This is especially important for daily hibernators who 29435 have a small accounting max. Hopefully it will result in fewer 29436 cut connections when the hard hibernation starts. 29437 - Load-balance better when using servers that claim more than 29438 800kB/s of capacity. 29439 - Make NT services work (experimental, only used if compiled in). 29440 29441 29442 Changes in version 0.0.9.3 - 2005-01-21 29443 o Bugfixes on 0.0.9: 29444 - Backport the cpu use fixes from main branch, so busy servers won't 29445 need as much processor time. 29446 - Work better when we go offline and then come back, or when we 29447 run Tor at boot before the network is up. We do this by 29448 optimistically trying to fetch a new directory whenever an 29449 application request comes in and we think we're offline -- the 29450 human is hopefully a good measure of when the network is back. 29451 - Backport some minimal hidserv bugfixes: keep rend circuits open as 29452 long as you keep using them; actually publish hidserv descriptors 29453 shortly after they change, rather than waiting 20-40 minutes. 29454 - Enable Mac startup script by default. 29455 - Fix duplicate dns_cancel_pending_resolve reported by Giorgos Pallas. 29456 - When you update AllowUnverifiedNodes or FirewallPorts via the 29457 controller's setconf feature, we were always appending, never 29458 resetting. 29459 - When you update HiddenServiceDir via setconf, it was screwing up 29460 the order of reading the lines, making it fail. 29461 - Do not rewrite a cached directory back to the cache; otherwise we 29462 will think it is recent and not fetch a newer one on startup. 29463 - Workaround for webservers that lie about Content-Encoding: Tor 29464 now tries to autodetect compressed directories and compression 29465 itself. This lets us Proxypass dir fetches through apache. 29466 29467 29468 Changes in version 0.0.9.2 - 2005-01-04 29469 o Bugfixes on 0.0.9 (crashes and asserts): 29470 - Fix an assert on startup when the disk is full and you're logging 29471 to a file. 29472 - If you do socks4 with an IP of 0.0.0.x but *don't* provide a socks4a 29473 style address, then we'd crash. 29474 - Fix an assert trigger when the running-routers string we get from 29475 a dirserver is broken. 29476 - Make worker threads start and run on win32. Now win32 servers 29477 may work better. 29478 - Bandaid (not actually fix, but now it doesn't crash) an assert 29479 where the dns worker dies mysteriously and the main Tor process 29480 doesn't remember anything about the address it was resolving. 29481 29482 o Bugfixes on 0.0.9 (Win32): 29483 - Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's 29484 name out of the warning/assert messages. 29485 - Fix a superficial "unhandled error on read" bug on win32. 29486 - The win32 installer no longer requires a click-through for our 29487 license, since our Free Software license grants rights but does not 29488 take any away. 29489 - Win32: When connecting to a dirserver fails, try another one 29490 immediately. (This was already working for non-win32 Tors.) 29491 - Stop trying to parse $HOME on win32 when hunting for default 29492 DataDirectory. 29493 - Make tor-resolve.c work on win32 by calling network_init(). 29494 29495 o Bugfixes on 0.0.9 (other): 29496 - Make 0.0.9.x build on Solaris again. 29497 - Due to a fencepost error, we were blowing away the \n when reporting 29498 confvalue items in the controller. So asking for multiple config 29499 values at once couldn't work. 29500 - When listing circuits that are pending on an opening OR connection, 29501 if we're an OR we were listing circuits that *end* at us as 29502 being pending on every listener, dns/cpu worker, etc. Stop that. 29503 - Dirservers were failing to create 'running-routers' or 'directory' 29504 strings if we had more than some threshold of routers. Fix them so 29505 they can handle any number of routers. 29506 - Fix a superficial "Duplicate mark for close" bug. 29507 - Stop checking for clock skew for OR connections, even for servers. 29508 - Fix a fencepost error that was chopping off the last letter of any 29509 nickname that is the maximum allowed nickname length. 29510 - Update URLs in log messages so they point to the new website. 29511 - Fix a potential problem in mangling server private keys while 29512 writing to disk (not triggered yet, as far as we know). 29513 - Include the licenses for other free software we include in Tor, 29514 now that we're shipping binary distributions more regularly. 29515 29516 29517 Changes in version 0.0.9.1 - 2004-12-15 29518 o Bugfixes on 0.0.9: 29519 - Make hibernation actually work. 29520 - Make HashedControlPassword config option work. 29521 - When we're reporting event circuit status to a controller, 29522 don't use the stream status code. 29523 29524 29525 Changes in version 0.0.9 - 2004-12-12 29526 o Bugfixes on 0.0.8.1 (Crashes and asserts): 29527 - Catch and ignore SIGXFSZ signals when log files exceed 2GB; our 29528 write() call will fail and we handle it there. 29529 - When we run out of disk space, or other log writing error, don't 29530 crash. Just stop logging to that log and continue. 29531 - Fix isspace() and friends so they still make Solaris happy 29532 but also so they don't trigger asserts on win32. 29533 - Fix assert failure on malformed socks4a requests. 29534 - Fix an assert bug where a hidden service provider would fail if 29535 the first hop of his rendezvous circuit was down. 29536 - Better handling of size_t vs int, so we're more robust on 64 29537 bit platforms. 29538 29539 o Bugfixes on 0.0.8.1 (Win32): 29540 - Make windows sockets actually non-blocking (oops), and handle 29541 win32 socket errors better. 29542 - Fix parse_iso_time on platforms without strptime (eg win32). 29543 - win32: when being multithreaded, leave parent fdarray open. 29544 - Better handling of winsock includes on non-MSV win32 compilers. 29545 - Change our file IO stuff (especially wrt OpenSSL) so win32 is 29546 happier. 29547 - Make unit tests work on win32. 29548 29549 o Bugfixes on 0.0.8.1 (Path selection and streams): 29550 - Calculate timeout for waiting for a connected cell from the time 29551 we sent the begin cell, not from the time the stream started. If 29552 it took a long time to establish the circuit, we would time out 29553 right after sending the begin cell. 29554 - Fix router_compare_addr_to_addr_policy: it was not treating a port 29555 of * as always matching, so we were picking reject *:* nodes as 29556 exit nodes too. Oops. 29557 - When read() failed on a stream, we would close it without sending 29558 back an end. So 'connection refused' would simply be ignored and 29559 the user would get no response. 29560 - Stop a sigpipe: when an 'end' cell races with eof from the app, 29561 we shouldn't hold-open-until-flush if the eof arrived first. 29562 - Let resolve conns retry/expire also, rather than sticking around 29563 forever. 29564 - Fix more dns related bugs: send back resolve_failed and end cells 29565 more reliably when the resolve fails, rather than closing the 29566 circuit and then trying to send the cell. Also attach dummy resolve 29567 connections to a circuit *before* calling dns_resolve(), to fix 29568 a bug where cached answers would never be sent in RESOLVED cells. 29569 29570 o Bugfixes on 0.0.8.1 (Circuits): 29571 - Finally fix a bug that's been plaguing us for a year: 29572 With high load, circuit package window was reaching 0. Whenever 29573 we got a circuit-level sendme, we were reading a lot on each 29574 socket, but only writing out a bit. So we would eventually reach 29575 eof. This would be noticed and acted on even when there were still 29576 bytes sitting in the inbuf. 29577 - Use identity comparison, not nickname comparison, to choose which 29578 half of circuit-ID-space each side gets to use. This is needed 29579 because sometimes we think of a router as a nickname, and sometimes 29580 as a hex ID, and we can't predict what the other side will do. 29581 29582 o Bugfixes on 0.0.8.1 (Other): 29583 - Fix a whole slew of memory leaks. 29584 - Disallow NDEBUG. We don't ever want anybody to turn off debug. 29585 - If we are using select, make sure we stay within FD_SETSIZE. 29586 - When poll() is interrupted, we shouldn't believe the revents values. 29587 - Add a FAST_SMARTLIST define to optionally inline smartlist_get 29588 and smartlist_len, which are two major profiling offenders. 29589 - If do_hup fails, actually notice. 29590 - Flush the log file descriptor after we print "Tor opening log file", 29591 so we don't see those messages days later. 29592 - Hidden service operators now correctly handle version 1 style 29593 INTRODUCE1 cells (nobody generates them still, so not a critical 29594 bug). 29595 - Handle more errnos from accept() without closing the listener. 29596 Some OpenBSD machines were closing their listeners because 29597 they ran out of file descriptors. 29598 - Some people had wrapped their tor client/server in a script 29599 that would restart it whenever it died. This did not play well 29600 with our "shut down if your version is obsolete" code. Now people 29601 don't fetch a new directory if their local cached version is 29602 recent enough. 29603 - Make our autogen.sh work on ksh as well as bash. 29604 - Better torrc example lines for dirbindaddress and orbindaddress. 29605 - Improved bounds checking on parsed ints (e.g. config options and 29606 the ones we find in directories.) 29607 - Stop using separate defaults for no-config-file and 29608 empty-config-file. Now you have to explicitly turn off SocksPort, 29609 if you don't want it open. 29610 - We were starting to daemonize before we opened our logs, so if 29611 there were any problems opening logs, we would complain to stderr, 29612 which wouldn't work, and then mysteriously exit. 29613 - If a verified OR connects to us before he's uploaded his descriptor, 29614 or we verify him and hup but he still has the original TLS 29615 connection, then conn->nickname is still set like he's unverified. 29616 29617 o Code security improvements, inspired by Ilja: 29618 - tor_snprintf wrapper over snprintf with consistent (though not C99) 29619 overflow behavior. 29620 - Replace sprintf with tor_snprintf. (I think they were all safe, but 29621 hey.) 29622 - Replace strcpy/strncpy with strlcpy in more places. 29623 - Avoid strcat; use tor_snprintf or strlcat instead. 29624 29625 o Features (circuits and streams): 29626 - New circuit building strategy: keep a list of ports that we've 29627 used in the past 6 hours, and always try to have 2 circuits open 29628 or on the way that will handle each such port. Seed us with port 29629 80 so web users won't complain that Tor is "slow to start up". 29630 - Make kill -USR1 dump more useful stats about circuits. 29631 - When warning about retrying or giving up, print the address, so 29632 the user knows which one it's talking about. 29633 - If you haven't used a clean circuit in an hour, throw it away, 29634 just to be on the safe side. (This means after 6 hours a totally 29635 unused Tor client will have no circuits open.) 29636 - Support "foo.nickname.exit" addresses, to let Alice request the 29637 address "foo" as viewed by exit node "nickname". Based on a patch 29638 from Geoff Goodell. 29639 - If your requested entry or exit node has advertised bandwidth 0, 29640 pick it anyway. 29641 - Be more greedy about filling up relay cells -- we try reading again 29642 once we've processed the stuff we read, in case enough has arrived 29643 to fill the last cell completely. 29644 - Refuse application socks connections to port 0. 29645 - Use only 0.0.9pre1 and later servers for resolve cells. 29646 29647 o Features (bandwidth): 29648 - Hibernation: New config option "AccountingMax" lets you 29649 set how many bytes per month (in each direction) you want to 29650 allow your server to consume. Rather than spreading those 29651 bytes out evenly over the month, we instead hibernate for some 29652 of the month and pop up at a deterministic time, work until 29653 the bytes are consumed, then hibernate again. Config option 29654 "MonthlyAccountingStart" lets you specify which day of the month 29655 your billing cycle starts on. 29656 - Implement weekly/monthly/daily accounting: now you specify your 29657 hibernation properties by 29658 AccountingMax N bytes|KB|MB|GB|TB 29659 AccountingStart day|week|month [day] HH:MM 29660 Defaults to "month 1 0:00". 29661 - Let bandwidth and interval config options be specified as 5 bytes, 29662 kb, kilobytes, etc; and as seconds, minutes, hours, days, weeks. 29663 29664 o Features (directories): 29665 - New "router-status" line in directory, to better bind each verified 29666 nickname to its identity key. 29667 - Clients can ask dirservers for /dir.z to get a compressed version 29668 of the directory. Only works for servers running 0.0.9, of course. 29669 - Make clients cache directories and use them to seed their router 29670 lists at startup. This means clients have a datadir again. 29671 - Respond to content-encoding headers by trying to uncompress as 29672 appropriate. 29673 - Clients and servers now fetch running-routers; cache 29674 running-routers; compress running-routers; serve compressed 29675 running-routers.z 29676 - Make moria2 advertise a dirport of 80, so people behind firewalls 29677 will be able to get a directory. 29678 - Http proxy support 29679 - Dirservers translate requests for http://%s:%d/x to /x 29680 - You can specify "HttpProxy %s[:%d]" and all dir fetches will 29681 be routed through this host. 29682 - Clients ask for /tor/x rather than /x for new enough dirservers. 29683 This way we can one day coexist peacefully with apache. 29684 - Clients specify a "Host: %s%d" http header, to be compatible 29685 with more proxies, and so running squid on an exit node can work. 29686 - Protect dirservers from overzealous descriptor uploading -- wait 29687 10 seconds after directory gets dirty, before regenerating. 29688 29689 o Features (packages and install): 29690 - Add NSI installer contributed by J Doe. 29691 - Apply NT service patch from Osamu Fujino. Still needs more work. 29692 - Commit VC6 and VC7 workspace/project files. 29693 - Commit a tor.spec for making RPM files, with help from jbash. 29694 - Add contrib/torctl.in contributed by Glenn Fink. 29695 - Make expand_filename handle ~ and ~username. 29696 - Use autoconf to enable largefile support where necessary. Use 29697 ftello where available, since ftell can fail at 2GB. 29698 - Ship src/win32/ in the tarball, so people can use it to build. 29699 - Make old win32 fall back to CWD if SHGetSpecialFolderLocation 29700 is broken. 29701 29702 o Features (ui controller): 29703 - Control interface: a separate program can now talk to your 29704 client/server over a socket, and get/set config options, receive 29705 notifications of circuits and streams starting/finishing/dying, 29706 bandwidth used, etc. The next step is to get some GUIs working. 29707 Let us know if you want to help out. See doc/control-spec.txt . 29708 - Ship a contrib/tor-control.py as an example script to interact 29709 with the control port. 29710 - "tor --hash-password zzyxz" will output a salted password for 29711 use in authenticating to the control interface. 29712 - Implement the control-spec's SAVECONF command, to write your 29713 configuration to torrc. 29714 - Get cookie authentication for the controller closer to working. 29715 - When set_conf changes our server descriptor, upload a new copy. 29716 But don't upload it too often if there are frequent changes. 29717 29718 o Features (config and command-line): 29719 - Deprecate unofficial config option abbreviations, and abbreviations 29720 not on the command line. 29721 - Configuration infrastructure support for warning on obsolete 29722 options. 29723 - Give a slightly more useful output for "tor -h". 29724 - Break DirFetchPostPeriod into: 29725 - DirFetchPeriod for fetching full directory, 29726 - StatusFetchPeriod for fetching running-routers, 29727 - DirPostPeriod for posting server descriptor, 29728 - RendPostPeriod for posting hidden service descriptors. 29729 - New log format in config: 29730 "Log minsev[-maxsev] stdout|stderr|syslog" or 29731 "Log minsev[-maxsev] file /var/foo" 29732 - DirPolicy config option, to let people reject incoming addresses 29733 from their dirserver. 29734 - "tor --list-fingerprint" will list your identity key fingerprint 29735 and then exit. 29736 - Make tor --version --version dump the cvs Id of every file. 29737 - New 'MyFamily nick1,...' config option for a server to 29738 specify other servers that shouldn't be used in the same circuit 29739 with it. Only believed if nick1 also specifies us. 29740 - New 'NodeFamily nick1,nick2,...' config option for a client to 29741 specify nodes that it doesn't want to use in the same circuit. 29742 - New 'Redirectexit pattern address:port' config option for a 29743 server to redirect exit connections, e.g. to a local squid. 29744 - Add "pass" target for RedirectExit, to make it easier to break 29745 out of a sequence of RedirectExit rules. 29746 - Make the dirservers file obsolete. 29747 - Include a dir-signing-key token in directories to tell the 29748 parsing entity which key is being used to sign. 29749 - Remove the built-in bulky default dirservers string. 29750 - New config option "Dirserver %s:%d [fingerprint]", which can be 29751 repeated as many times as needed. If no dirservers specified, 29752 default to moria1,moria2,tor26. 29753 - Make 'Routerfile' config option obsolete. 29754 - Discourage people from setting their dirfetchpostperiod more often 29755 than once per minute. 29756 29757 o Features (other): 29758 - kill -USR2 now moves all logs to loglevel debug (kill -HUP to 29759 get back to normal.) 29760 - Accept *:706 (silc) in default exit policy. 29761 - Implement new versioning format for post 0.1. 29762 - Distinguish between TOR_TLS_CLOSE and TOR_TLS_ERROR, so we can 29763 log more informatively. 29764 - Check clock skew for verified servers, but allow unverified 29765 servers and clients to have any clock skew. 29766 - Make sure the hidden service descriptors are at a random offset 29767 from each other, to hinder linkability. 29768 - Clients now generate a TLS cert too, in preparation for having 29769 them act more like real nodes. 29770 - Add a pure-C tor-resolve implementation. 29771 - Use getrlimit and friends to ensure we can reach MaxConn (currently 29772 1024) file descriptors. 29773 - Raise the max dns workers from 50 to 100. 29774 29775 29776 Changes in version 0.0.8.1 - 2004-10-13 29777 o Bugfixes: 29778 - Fix a seg fault that can be triggered remotely for Tor 29779 clients/servers with an open dirport. 29780 - Fix a rare assert trigger, where routerinfos for entries in 29781 our cpath would expire while we're building the path. 29782 - Fix a bug in OutboundBindAddress so it (hopefully) works. 29783 - Fix a rare seg fault for people running hidden services on 29784 intermittent connections. 29785 - Fix a bug in parsing opt keywords with objects. 29786 - Fix a stale pointer assert bug when a stream detaches and 29787 reattaches. 29788 - Fix a string format vulnerability (probably not exploitable) 29789 in reporting stats locally. 29790 - Fix an assert trigger: sometimes launching circuits can fail 29791 immediately, e.g. because too many circuits have failed recently. 29792 - Fix a compile warning on 64 bit platforms. 29793 29794 29795 Changes in version 0.0.8 - 2004-08-25 29796 o Bugfixes: 29797 - Made our unit tests compile again on OpenBSD 3.5, and tor 29798 itself compile again on OpenBSD on a sparc64. 29799 - We were neglecting milliseconds when logging on win32, so 29800 everything appeared to happen at the beginning of each second. 29801 - Check directory signature _before_ you decide whether you're 29802 you're running an obsolete version and should exit. 29803 - Check directory signature _before_ you parse the running-routers 29804 list to decide who's running. 29805 - Check return value of fclose while writing to disk, so we don't 29806 end up with broken files when servers run out of disk space. 29807 - Port it to SunOS 5.9 / Athena 29808 - Fix two bugs in saving onion keys to disk when rotating, so 29809 hopefully we'll get fewer people using old onion keys. 29810 - Remove our mostly unused -- and broken -- hex_encode() 29811 function. Use base16_encode() instead. (Thanks to Timo Lindfors 29812 for pointing out this bug.) 29813 - Only pick and establish intro points after we've gotten a 29814 directory. 29815 - Fix assert triggers: if the other side returns an address 0.0.0.0, 29816 don't put it into the client dns cache. 29817 - If a begin failed due to exit policy, but we believe the IP 29818 address should have been allowed, switch that router to exitpolicy 29819 reject *:* until we get our next directory. 29820 29821 o Protocol changes: 29822 - 'Extend' relay cell payloads now include the digest of the 29823 intended next hop's identity key. Now we can verify that we're 29824 extending to the right router, and also extend to routers we 29825 hadn't heard of before. 29826 29827 o Features: 29828 - Tor nodes can now act as relays (with an advertised ORPort) 29829 without being manually verified by the dirserver operators. 29830 - Uploaded descriptors of unverified routers are now accepted 29831 by the dirservers, and included in the directory. 29832 - Verified routers are listed by nickname in the running-routers 29833 list; unverified routers are listed as "$<fingerprint>". 29834 - We now use hash-of-identity-key in most places rather than 29835 nickname or addr:port, for improved security/flexibility. 29836 - AllowUnverifiedNodes config option to let circuits choose no-name 29837 routers in entry,middle,exit,introduction,rendezvous positions. 29838 Allow middle and rendezvous positions by default. 29839 - When picking unverified routers, skip those with low uptime and/or 29840 low bandwidth, depending on what properties you care about. 29841 - ClientOnly option for nodes that never want to become servers. 29842 - Directory caching. 29843 - "AuthoritativeDir 1" option for the official dirservers. 29844 - Now other nodes (clients and servers) will cache the latest 29845 directory they've pulled down. 29846 - They can enable their DirPort to serve it to others. 29847 - Clients will pull down a directory from any node with an open 29848 DirPort, and check the signature/timestamp correctly. 29849 - Authoritative dirservers now fetch directories from other 29850 authdirservers, to stay better synced. 29851 - Running-routers list tells who's down also, along with noting 29852 if they're verified (listed by nickname) or unverified (listed 29853 by hash-of-key). 29854 - Allow dirservers to serve running-router list separately. 29855 This isn't used yet. 29856 - You can now fetch $DIRURL/running-routers to get just the 29857 running-routers line, not the whole descriptor list. (But 29858 clients don't use this yet.) 29859 - Clients choose nodes proportional to advertised bandwidth. 29860 - Clients avoid using nodes with low uptime as introduction points. 29861 - Handle servers with dynamic IP addresses: don't just replace 29862 options->Address with the resolved one at startup, and 29863 detect our address right before we make a routerinfo each time. 29864 - 'FascistFirewall' option to pick dirservers and ORs on specific 29865 ports; plus 'FirewallPorts' config option to tell FascistFirewall 29866 which ports are open. (Defaults to 80,443) 29867 - Try other dirservers immediately if the one you try is down. This 29868 should tolerate down dirservers better now. 29869 - ORs connect-on-demand to other ORs 29870 - If you get an extend cell to an OR you're not connected to, 29871 connect, handshake, and forward the create cell. 29872 - The authoritative dirservers stay connected to everybody, 29873 and everybody stays connected to 0.0.7 servers, but otherwise 29874 clients/servers expire unused connections after 5 minutes. 29875 - When servers get a sigint, they delay 30 seconds (refusing new 29876 connections) then exit. A second sigint causes immediate exit. 29877 - File and name management: 29878 - Look for .torrc if no CONFDIR "torrc" is found. 29879 - If no datadir is defined, then choose, make, and secure ~/.tor 29880 as datadir. 29881 - If torrc not found, exitpolicy reject *:*. 29882 - Expands ~/ in filenames to $HOME/ (but doesn't yet expand ~arma). 29883 - If no nickname is defined, derive default from hostname. 29884 - Rename secret key files, e.g. identity.key -> secret_id_key, 29885 to discourage people from mailing their identity key to tor-ops. 29886 - Refuse to build a circuit before the directory has arrived -- 29887 it won't work anyway, since you won't know the right onion keys 29888 to use. 29889 - Parse tor version numbers so we can do an is-newer-than check 29890 rather than an is-in-the-list check. 29891 - New socks command 'resolve', to let us shim gethostbyname() 29892 locally. 29893 - A 'tor_resolve' script to access the socks resolve functionality. 29894 - A new socks-extensions.txt doc file to describe our 29895 interpretation and extensions to the socks protocols. 29896 - Add a ContactInfo option, which gets published in descriptor. 29897 - Write tor version at the top of each log file 29898 - New docs in the tarball: 29899 - tor-doc.html. 29900 - Document that you should proxy your SSL traffic too. 29901 - Log a warning if the user uses an unsafe socks variant, so people 29902 are more likely to learn about privoxy or socat. 29903 - Log a warning if you're running an unverified server, to let you 29904 know you might want to get it verified. 29905 - Change the default exit policy to reject the default edonkey, 29906 kazaa, gnutella ports. 29907 - Add replace_file() to util.[ch] to handle win32's rename(). 29908 - Publish OR uptime in descriptor (and thus in directory) too. 29909 - Remember used bandwidth (both in and out), and publish 15-minute 29910 snapshots for the past day into our descriptor. 29911 - Be more aggressive about trying to make circuits when the network 29912 has changed (e.g. when you unsuspend your laptop). 29913 - Check for time skew on http headers; report date in response to 29914 "GET /". 29915 - If the entrynode config line has only one node, don't pick it as 29916 an exitnode. 29917 - Add strict{entry|exit}nodes config options. If set to 1, then 29918 we refuse to build circuits that don't include the specified entry 29919 or exit nodes. 29920 - OutboundBindAddress config option, to bind to a specific 29921 IP address for outgoing connect()s. 29922 - End truncated log entries (e.g. directories) with "[truncated]". 29923 29924 29925 Changes in version 0.0.7.3 - 2004-08-12 29926 o Stop dnsworkers from triggering an assert failure when you 29927 ask them to resolve the host "". 29928 29929 29930 Changes in version 0.0.7.2 - 2004-07-07 29931 o A better fix for the 0.0.0.0 problem, that will hopefully 29932 eliminate the remaining related assertion failures. 29933 29934 29935 Changes in version 0.0.7.1 - 2004-07-04 29936 o When an address resolves to 0.0.0.0, treat it as a failed resolve, 29937 since internally we use 0.0.0.0 to signify "not yet resolved". 29938 29939 29940 Changes in version 0.0.7 - 2004-06-07 29941 o Fixes for crashes and other obnoxious bugs: 29942 - Fix an epipe bug: sometimes when directory connections failed 29943 to connect, we would give them a chance to flush before closing 29944 them. 29945 - When we detached from a circuit because of resolvefailed, we 29946 would immediately try the same circuit twice more, and then 29947 give up on the resolve thinking we'd tried three different 29948 exit nodes. 29949 - Limit the number of intro circuits we'll attempt to build for a 29950 hidden service per 15-minute period. 29951 - Check recommended-software string *early*, before actually parsing 29952 the directory. Thus we can detect an obsolete version and exit, 29953 even if the new directory format doesn't parse. 29954 o Fixes for security bugs: 29955 - Remember which nodes are dirservers when you startup, and if a 29956 random OR enables his dirport, don't automatically assume he's 29957 a trusted dirserver. 29958 o Other bugfixes: 29959 - Directory connections were asking the wrong poll socket to 29960 start writing, and not asking themselves to start writing. 29961 - When we detached from a circuit because we sent a begin but 29962 didn't get a connected, we would use it again the first time; 29963 but after that we would correctly switch to a different one. 29964 - Stop warning when the first onion decrypt attempt fails; they 29965 will sometimes legitimately fail now that we rotate keys. 29966 - Override unaligned-access-ok check when $host_cpu is ia64 or 29967 arm. Apparently they allow it but the kernel whines. 29968 - Dirservers try to reconnect periodically too, in case connections 29969 have failed. 29970 - Fix some memory leaks in directory servers. 29971 - Allow backslash in Win32 filenames. 29972 - Made Tor build complain-free on FreeBSD, hopefully without 29973 breaking other BSD builds. We'll see. 29974 - Check directory signatures based on name of signer, not on whom 29975 we got the directory from. This will let us cache directories more 29976 easily. 29977 - Rotate dnsworkers and cpuworkers on SIGHUP, so they get new config 29978 settings too. 29979 o Features: 29980 - Doxygen markup on all functions and global variables. 29981 - Make directory functions update routerlist, not replace it. So 29982 now directory disagreements are not so critical a problem. 29983 - Remove the upper limit on number of descriptors in a dirserver's 29984 directory (not that we were anywhere close). 29985 - Allow multiple logfiles at different severity ranges. 29986 - Allow *BindAddress to specify ":port" rather than setting *Port 29987 separately. Allow multiple instances of each BindAddress config 29988 option, so you can bind to multiple interfaces if you want. 29989 - Allow multiple exit policy lines, which are processed in order. 29990 Now we don't need that huge line with all the commas in it. 29991 - Enable accept/reject policies on SOCKS connections, so you can bind 29992 to 0.0.0.0 but still control who can use your OP. 29993 - Updated the man page to reflect these features. 29994 29995 29996 Changes in version 0.0.6.2 - 2004-05-16 29997 o Our integrity-checking digest was checking only the most recent cell, 29998 not the previous cells like we'd thought. 29999 Thanks to Stefan Mark for finding the flaw! 30000 30001 30002 Changes in version 0.0.6.1 - 2004-05-06 30003 o Fix two bugs in our AES counter-mode implementation (this affected 30004 onion-level stream encryption, but not TLS-level). It turns 30005 out we were doing something much more akin to a 16-character 30006 polyalphabetic cipher. Oops. 30007 Thanks to Stefan Mark for finding the flaw! 30008 o Retire moria3 as a directory server, and add tor26 as a directory 30009 server. 30010 30011 30012 Changes in version 0.0.6 - 2004-05-02 30013 o Features: 30014 - Hidden services and rendezvous points are implemented. Go to 30015 http://6sxoyfb3h2nvok2d.onion/ for an index of currently available 30016 hidden services. (This only works via a socks4a proxy such as 30017 Privoxy, and currently it's quite slow.) 30018 - We now rotate link (tls context) keys and onion keys. 30019 - CREATE cells now include oaep padding, so you can tell 30020 if you decrypted them correctly. 30021 - Retry stream correctly when we fail to connect because of 30022 exit-policy-reject (should try another) or can't-resolve-address. 30023 - When we hup a dirserver and we've *removed* a server from the 30024 approved-routers list, now we remove that server from the 30025 in-memory directories too. 30026 - Add bandwidthburst to server descriptor. 30027 - Directories now say which dirserver signed them. 30028 - Use a tor_assert macro that logs failed assertions too. 30029 - Since we don't support truncateds much, don't bother sending them; 30030 just close the circ. 30031 - Fetch randomness from /dev/urandom better (not via fopen/fread) 30032 - Better debugging for tls errors 30033 - Set Content-Type on the directory and hidserv descriptor. 30034 - Remove IVs from cipher code, since AES-ctr has none. 30035 o Bugfixes: 30036 - Fix an assert trigger for exit nodes that's been plaguing us since 30037 the days of 0.0.2prexx (thanks weasel!) 30038 - Fix a bug where we were closing tls connections intermittently. 30039 It turns out openssl keeps its errors around -- so if an error 30040 happens, and you don't ask about it, and then another openssl 30041 operation happens and succeeds, and you ask if there was an error, 30042 it tells you about the first error. 30043 - Fix a bug that's been lurking since 27 may 03 (!) 30044 When passing back a destroy cell, we would use the wrong circ id. 30045 - Don't crash if a conn that sent a begin has suddenly lost its circuit. 30046 - Some versions of openssl have an SSL_pending function that erroneously 30047 returns bytes when there is a non-application record pending. 30048 - Win32 fixes. Tor now compiles on win32 with no warnings/errors. 30049 o We were using an array of length zero in a few places. 30050 o Win32's gethostbyname can't resolve an IP to an IP. 30051 o Win32's close can't close a socket. 30052 o Handle windows socket errors correctly. 30053 o Portability: 30054 - check for <sys/limits.h> so we build on FreeBSD again, and 30055 <machine/limits.h> for NetBSD. 30056 30057 30058 Changes in version 0.0.5 - 2004-03-30 30059 o Install torrc as torrc.sample -- we no longer clobber your 30060 torrc. (Woo!) 30061 o Fix mangled-state bug in directory fetching (was causing sigpipes). 30062 o Only build circuits after we've fetched the directory: clients were 30063 using only the directory servers before they'd fetched a directory. 30064 This also means longer startup time; so it goes. 30065 o Fix an assert trigger where an OP would fail to handshake, and we'd 30066 expect it to have a nickname. 30067 o Work around a tsocks bug: do a socks reject when AP connection dies 30068 early, else tsocks goes into an infinite loop. 30069 o Hold socks connection open until reply is flushed (if possible) 30070 o Make exit nodes resolve IPs to IPs immediately, rather than asking 30071 the dns farm to do it. 30072 o Fix c99 aliasing warnings in rephist.c 30073 o Don't include server descriptors that are older than 24 hours in the 30074 directory. 30075 o Give socks 'reject' replies their whole 15s to attempt to flush, 30076 rather than seeing the 60s timeout and assuming the flush had failed. 30077 o Clean automake droppings from the cvs repository 30078 o Add in a 'notice' log level for things the operator should hear 30079 but that aren't warnings 30080 30081 30082 Changes in version 0.0.4 - 2004-03-26 30083 o When connecting to a dirserver or OR and the network is down, 30084 we would crash. 30085 30086 30087 Changes in version 0.0.3 - 2004-03-26 30088 o Warn and fail if server chose a nickname with illegal characters 30089 o Port to Solaris and Sparc: 30090 - include missing header fcntl.h 30091 - have autoconf find -lsocket -lnsl automatically 30092 - deal with hardware word alignment 30093 - make uname() work (solaris has a different return convention) 30094 - switch from using signal() to sigaction() 30095 o Preliminary work on reputation system: 30096 - Keep statistics on success/fail of connect attempts; they're published 30097 by kill -USR1 currently. 30098 - Add a RunTesting option to try to learn link state by creating test 30099 circuits, even when SocksPort is off. 30100 - Remove unused open circuits when there are too many. 30101 30102 30103 Changes in version 0.0.2 - 2004-03-19 30104 - Include strlcpy and strlcat for safer string ops 30105 - define INADDR_NONE so we compile (but still not run) on solaris 30106 30107 30108 Changes in version 0.0.2pre27 - 2004-03-14 30109 o Bugfixes: 30110 - Allow internal tor networks (we were rejecting internal IPs, 30111 now we allow them if they're set explicitly). 30112 - And fix a few endian issues. 30113 30114 30115 Changes in version 0.0.2pre26 - 2004-03-14 30116 o New features: 30117 - If a stream times out after 15s without a connected cell, don't 30118 try that circuit again: try a new one. 30119 - Retry streams at most 4 times. Then give up. 30120 - When a dirserver gets a descriptor from an unknown router, it 30121 logs its fingerprint (so the dirserver operator can choose to 30122 accept it even without mail from the server operator). 30123 - Inform unapproved servers when we reject their descriptors. 30124 - Make tor build on Windows again. It works as a client, who knows 30125 about as a server. 30126 - Clearer instructions in the torrc for how to set up a server. 30127 - Be more efficient about reading fd's when our global token bucket 30128 (used for rate limiting) becomes empty. 30129 o Bugfixes: 30130 - Stop asserting that computers always go forward in time. It's 30131 simply not true. 30132 - When we sent a cell (e.g. destroy) and then marked an OR connection 30133 expired, we might close it before finishing a flush if the other 30134 side isn't reading right then. 30135 - Don't allow dirservers to start if they haven't defined 30136 RecommendedVersions 30137 - We were caching transient dns failures. Oops. 30138 - Prevent servers from publishing an internal IP as their address. 30139 - Address a strcat vulnerability in circuit.c 30140 30141 30142 Changes in version 0.0.2pre25 - 2004-03-04 30143 o New features: 30144 - Put the OR's IP in its router descriptor, not its fqdn. That way 30145 we'll stop being stalled by gethostbyname for nodes with flaky dns, 30146 e.g. poblano. 30147 o Bugfixes: 30148 - If the user typed in an address that didn't resolve, the server 30149 crashed. 30150 30151 30152 Changes in version 0.0.2pre24 - 2004-03-03 30153 o Bugfixes: 30154 - Fix an assertion failure in dns.c, where we were trying to dequeue 30155 a pending dns resolve even if it wasn't pending 30156 - Fix a spurious socks5 warning about still trying to write after the 30157 connection is finished. 30158 - Hold certain marked_for_close connections open until they're finished 30159 flushing, rather than losing bytes by closing them too early. 30160 - Correctly report the reason for ending a stream 30161 - Remove some duplicate calls to connection_mark_for_close 30162 - Put switch_id and start_daemon earlier in the boot sequence, so it 30163 will actually try to chdir() to options.DataDirectory 30164 - Make 'make test' exit(1) if a test fails; fix some unit tests 30165 - Make tor fail when you use a config option it doesn't know about, 30166 rather than warn and continue. 30167 - Make --version work 30168 - Bugfixes on the rpm spec file and tor.sh, so it's more up to date 30169 30170 30171 Changes in version 0.0.2pre23 - 2004-02-29 30172 o New features: 30173 - Print a statement when the first circ is finished, so the user 30174 knows it's working. 30175 - If a relay cell is unrecognized at the end of the circuit, 30176 send back a destroy. (So attacks to mutate cells are more 30177 clearly thwarted.) 30178 - New config option 'excludenodes' to avoid certain nodes for circuits. 30179 - When it daemonizes, it chdir's to the DataDirectory rather than "/", 30180 so you can collect coredumps there. 30181 o Bugfixes: 30182 - Fix a bug in tls flushing where sometimes data got wedged and 30183 didn't flush until more data got sent. Hopefully this bug was 30184 a big factor in the random delays we were seeing. 30185 - Make 'connected' cells include the resolved IP, so the client 30186 dns cache actually gets populated. 30187 - Disallow changing from ORPort=0 to ORPort>0 on hup. 30188 - When we time-out on a stream and detach from the circuit, send an 30189 end cell down it first. 30190 - Only warn about an unknown router (in exitnodes, entrynodes, 30191 excludenodes) after we've fetched a directory. 30192 30193 30194 Changes in version 0.0.2pre22 - 2004-02-26 30195 o New features: 30196 - Servers publish less revealing uname information in descriptors. 30197 - More memory tracking and assertions, to crash more usefully when 30198 errors happen. 30199 - If the default torrc isn't there, just use some default defaults. 30200 Plus provide an internal dirservers file if they don't have one. 30201 - When the user tries to use Tor as an http proxy, give them an http 30202 501 failure explaining that we're a socks proxy. 30203 - Dump a new router.desc on hup, to help confused people who change 30204 their exit policies and then wonder why router.desc doesn't reflect 30205 it. 30206 - Clean up the generic tor.sh init script that we ship with. 30207 o Bugfixes: 30208 - If the exit stream is pending on the resolve, and a destroy arrives, 30209 then the stream wasn't getting removed from the pending list. I 30210 think this was the one causing recent server crashes. 30211 - Use a more robust poll on OSX 10.3, since their poll is flaky. 30212 - When it couldn't resolve any dirservers, it was useless from then on. 30213 Now it reloads the RouterFile (or default dirservers) if it has no 30214 dirservers. 30215 - Move the 'tor' binary back to /usr/local/bin/ -- it turns out 30216 many users don't even *have* a /usr/local/sbin/. 30217 30218 30219 Changes in version 0.0.2pre21 - 2004-02-18 30220 o New features: 30221 - There's a ChangeLog file that actually reflects the changelog. 30222 - There's a 'torify' wrapper script, with an accompanying 30223 tor-tsocks.conf, that simplifies the process of using tsocks for 30224 tor. It even has a man page. 30225 - The tor binary gets installed to sbin rather than bin now. 30226 - Retry streams where the connected cell hasn't arrived in 15 seconds 30227 - Clean up exit policy handling -- get the default out of the torrc, 30228 so we can update it without forcing each server operator to fix 30229 his/her torrc. 30230 - Allow imaps and pop3s in default exit policy 30231 o Bugfixes: 30232 - Prevent picking middleman nodes as the last node in the circuit 30233 30234 30235 Changes in version 0.0.2pre20 - 2004-01-30 30236 o New features: 30237 - We now have a deb package, and it's in debian unstable. Go to 30238 it, apt-getters. :) 30239 - I've split the TotalBandwidth option into BandwidthRate (how many 30240 bytes per second you want to allow, long-term) and 30241 BandwidthBurst (how many bytes you will allow at once before the cap 30242 kicks in). This better token bucket approach lets you, say, set 30243 BandwidthRate to 10KB/s and BandwidthBurst to 10MB, allowing good 30244 performance while not exceeding your monthly bandwidth quota. 30245 - Push out a tls record's worth of data once you've got it, rather 30246 than waiting until you've read everything waiting to be read. This 30247 may improve performance by pipelining better. We'll see. 30248 - Add an AP_CONN_STATE_CONNECTING state, to allow streams to detach 30249 from failed circuits (if they haven't been connected yet) and attach 30250 to new ones. 30251 - Expire old streams that haven't managed to connect. Some day we'll 30252 have them reattach to new circuits instead. 30253 30254 o Bugfixes: 30255 - Fix several memory leaks that were causing servers to become bloated 30256 after a while. 30257 - Fix a few very rare assert triggers. A few more remain. 30258 - Setuid to User _before_ complaining about running as root. 30259 30260 30261 Changes in version 0.0.2pre19 - 2004-01-07 30262 o Bugfixes: 30263 - Fix deadlock condition in dns farm. We were telling a child to die by 30264 closing the parent's file descriptor to him. But newer children were 30265 inheriting the open file descriptor from the parent, and since they 30266 weren't closing it, the socket never closed, so the child never read 30267 eof, so he never knew to exit. Similarly, dns workers were holding 30268 open other sockets, leading to all sorts of chaos. 30269 - New cleaner daemon() code for forking and backgrounding. 30270 - If you log to a file, it now prints an entry at the top of the 30271 logfile so you know it's working. 30272 - The onionskin challenge length was 30 bytes longer than necessary. 30273 - Started to patch up the spec so it's not quite so out of date. 30274 30275 30276 Changes in version 0.0.2pre18 - 2004-01-02 30277 o Bugfixes: 30278 - Fix endian issues with the 'integrity' field in the relay header. 30279 - Fix a potential bug where connections in state 30280 AP_CONN_STATE_CIRCUIT_WAIT might unexpectedly ask to write. 30281 30282 30283 Changes in version 0.0.2pre17 - 2003-12-30 30284 o Bugfixes: 30285 - Made --debuglogfile (or any second log file, actually) work. 30286 - Resolved an edge case in get_unique_circ_id_by_conn where a smart 30287 adversary could force us into an infinite loop. 30288 30289 o Features: 30290 - Each onionskin handshake now includes a hash of the computed key, 30291 to prove the server's identity and help perfect forward secrecy. 30292 - Changed cell size from 256 to 512 bytes (working toward compatibility 30293 with MorphMix). 30294 - Changed cell length to 2 bytes, and moved it to the relay header. 30295 - Implemented end-to-end integrity checking for the payloads of 30296 relay cells. 30297 - Separated streamid from 'recognized' (otherwise circuits will get 30298 messed up when we try to have streams exit from the middle). We 30299 use the integrity-checking to confirm that a cell is addressed to 30300 this hop. 30301 - Randomize the initial circid and streamid values, so an adversary who 30302 breaks into a node can't learn how many circuits or streams have 30303 been made so far. 30304 30305 30306 Changes in version 0.0.2pre16 - 2003-12-14 30307 o Bugfixes: 30308 - Fixed a bug that made HUP trigger an assert 30309 - Fixed a bug where a circuit that immediately failed wasn't being 30310 counted as a failed circuit in counting retries. 30311 30312 o Features: 30313 - Now we close the circuit when we get a truncated cell: otherwise we're 30314 open to an anonymity attack where a bad node in the path truncates 30315 the circuit and then we open streams at him. 30316 - Add port ranges to exit policies 30317 - Add a conservative default exit policy 30318 - Warn if you're running tor as root 30319 - on HUP, retry OR connections and close/rebind listeners 30320 - options.EntryNodes: try these nodes first when picking the first node 30321 - options.ExitNodes: if your best choices happen to include any of 30322 your preferred exit nodes, you choose among just those preferred 30323 exit nodes. 30324 - options.ExcludedNodes: nodes that are never picked in path building 30325 30326 30327 Changes in version 0.0.2pre15 - 2003-12-03 30328 o Robustness and bugfixes: 30329 - Sometimes clients would cache incorrect DNS resolves, which would 30330 really screw things up. 30331 - An OP that goes offline would slowly leak all its sockets and stop 30332 working. 30333 - A wide variety of bugfixes in exit node selection, exit policy 30334 handling, and processing pending streams when a new circuit is 30335 established. 30336 - Pick nodes for a path only from those the directory says are up 30337 - Choose randomly from all running dirservers, not always the first one 30338 - Increase allowed http header size for directory fetch. 30339 - Stop writing to stderr (if we're daemonized it will be closed). 30340 - Enable -g always, so cores will be more useful to me. 30341 - Switch "-lcrypto -lssl" to "-lssl -lcrypto" for broken distributions. 30342 30343 o Documentation: 30344 - Wrote a man page. It lists commonly used options. 30345 30346 o Configuration: 30347 - Change default loglevel to warn. 30348 - Make PidFile default to null rather than littering in your CWD. 30349 - OnionRouter config option is now obsolete. Instead it just checks 30350 ORPort>0. 30351 - Moved to a single unified torrc file for both clients and servers. 30352 30353 30354 Changes in version 0.0.2pre14 - 2003-11-29 30355 o Robustness and bugfixes: 30356 - Force the admin to make the DataDirectory himself 30357 - to get ownership/permissions right 30358 - so clients no longer make a DataDirectory and then never use it 30359 - fix bug where a client who was offline for 45 minutes would never 30360 pull down a directory again 30361 - fix (or at least hide really well) the dns assert bug that was 30362 causing server crashes 30363 - warnings and improved robustness wrt clockskew for certs 30364 - use the native daemon(3) to daemonize, when available 30365 - exit if bind() fails 30366 - exit if neither socksport nor orport is defined 30367 - include our own tor_timegm (Win32 doesn't have its own) 30368 - bugfix for win32 with lots of connections 30369 - fix minor bias in PRNG 30370 - make dirserver more robust to corrupt cached directory 30371 30372 o Documentation: 30373 - Wrote the design document (woo) 30374 30375 o Circuit building and exit policies: 30376 - Circuits no longer try to use nodes that the directory has told them 30377 are down. 30378 - Exit policies now support bitmasks (18.0.0.0/255.0.0.0) and 30379 bitcounts (18.0.0.0/8). 30380 - Make AP connections standby for a circuit if no suitable circuit 30381 exists, rather than failing 30382 - Circuits choose exit node based on addr/port, exit policies, and 30383 which AP connections are standing by 30384 - Bump min pathlen from 2 to 3 30385 - Relay end cells have a payload to describe why the stream ended. 30386 - If the stream failed because of exit policy, try again with a new 30387 circuit. 30388 - Clients have a dns cache to remember resolved addresses. 30389 - Notice more quickly when we have no working circuits 30390 30391 o Configuration: 30392 - APPort is now called SocksPort 30393 - SocksBindAddress, ORBindAddress, DirBindAddress let you configure 30394 where to bind 30395 - RecommendedVersions is now a config variable rather than 30396 hardcoded (for dirservers) 30397 - Reloads config on HUP 30398 - Usage info on -h or --help 30399 - If you set User and Group config vars, it'll setu/gid to them. 30400 30401 Changes in version 0.0.2pre13 - 2003-10-19 30402 o General stability: 30403 - SSL_write no longer fails when it returns WANTWRITE and the number 30404 of bytes in the buf has changed by the next SSL_write call. 30405 - Fix segfault fetching directory when network is down 30406 - Fix a variety of minor memory leaks 30407 - Dirservers reload the fingerprints file on HUP, so I don't have 30408 to take down the network when I approve a new router 30409 - Default server config file has explicit Address line to specify fqdn 30410 30411 o Buffers: 30412 - Buffers grow and shrink as needed (Cut process size from 20M to 2M) 30413 - Make listener connections not ever alloc bufs 30414 30415 o Autoconf improvements: 30416 - don't clobber an external CFLAGS in ./configure 30417 - Make install now works 30418 - create var/lib/tor on make install 30419 - autocreate a tor.sh initscript to help distribs 30420 - autocreate the torrc and sample-server-torrc with correct paths 30421 30422 o Log files and Daemonizing now work: 30423 - If --DebugLogFile is specified, log to it at -l debug 30424 - If --LogFile is specified, use it instead of commandline 30425 - If --RunAsDaemon is set, tor forks and backgrounds on startup