]>
git.ipfire.org Git - thirdparty/tor.git/log
Nick Mathewson [Mon, 25 Nov 2013 15:56:52 +0000 (10:56 -0500)]
Merge branch 'bug4677'
Nick Mathewson [Mon, 25 Nov 2013 15:53:37 +0000 (10:53 -0500)]
Restore prop198 behavior from 4677 patch
The previous commit from piet would have backed out some of proposal
198 and made servers built without the V2 handshake not use the
unrestricted cipher list from prop198.
Bug not in any released Tor.
Nick Mathewson [Mon, 25 Nov 2013 15:45:20 +0000 (10:45 -0500)]
Restore ability to build with V2_HANDSHAKE_SERVER
Fixes bug 4677; bugfix on 0.2.3.2-alpha. Fix by "piet".
Nick Mathewson [Fri, 22 Nov 2013 17:42:05 +0000 (12:42 -0500)]
Avoid warning about impossible check for flags & 0
Fixes CID 743381
Nick Mathewson [Fri, 22 Nov 2013 17:38:58 +0000 (12:38 -0500)]
Only update view of micrdescriptor pos if pos is fetchable.
It's conceivable (but probably impossible given our code) that lseek
could return -1 on an error; when that happens, we don't want off to
become -1.
Fixes CID
1035124 .
Nick Mathewson [Fri, 22 Nov 2013 17:33:25 +0000 (12:33 -0500)]
Add checks to prevent memcmp(.,.,negative) in tests (CID
1064417 )
Nick Mathewson [Fri, 22 Nov 2013 17:27:41 +0000 (12:27 -0500)]
Fix another unit test memory leak. CID1087949,CID1087950.
Nick Mathewson [Fri, 22 Nov 2013 17:21:14 +0000 (12:21 -0500)]
Fix a bunch of coverity-spotted unit test resource leaks
CIDs:
1130994 ,
1130993 ,
1130992 ,
1130991
Nick Mathewson [Fri, 22 Nov 2013 17:16:17 +0000 (12:16 -0500)]
Remove needless fd var from test. CID
1130989 .
Nick Mathewson [Fri, 22 Nov 2013 17:14:11 +0000 (12:14 -0500)]
Handle unlikely negative time in tor_log_err_sigsafe
Coverity wants this; CID
1130990 .
Nick Mathewson [Wed, 20 Nov 2013 16:05:00 +0000 (11:05 -0500)]
Whitespace cleanup
Nick Mathewson [Wed, 20 Nov 2013 16:03:37 +0000 (11:03 -0500)]
Merge remote-tracking branch 'sysrqb/bug9859_5'
Nick Mathewson [Mon, 18 Nov 2013 18:33:29 +0000 (13:33 -0500)]
Fix crypto/digests test
Nick Mathewson [Mon, 18 Nov 2013 18:27:06 +0000 (13:27 -0500)]
Merge branch 'finish_prop157'
Nick Mathewson [Mon, 18 Nov 2013 18:26:58 +0000 (13:26 -0500)]
Tweak #10162 documentation a bit
Nick Mathewson [Mon, 18 Nov 2013 18:05:23 +0000 (13:05 -0500)]
Add a _GNU_SOURCE definition to backtrace.c to fix compilation
Nick Mathewson [Mon, 18 Nov 2013 17:49:12 +0000 (12:49 -0500)]
Whoops; changes files belong in changes.
Nick Mathewson [Mon, 18 Nov 2013 16:36:23 +0000 (11:36 -0500)]
Whoops -- add missing defined().
Nick Mathewson [Mon, 18 Nov 2013 16:34:15 +0000 (11:34 -0500)]
Make header includes match declarations in pc_from_ucontext.m4
With any luck, this will clean up errors where we detect that
REG_{EIP,RIP} is present in autoconf, but when we go to include it,
it isn't there.
Nick Mathewson [Mon, 18 Nov 2013 16:23:54 +0000 (11:23 -0500)]
Fix compilation under openssl 0.9.8
It's not nice to talk about NID_aes_{128,256}_{ctr,gcm} when they
don't exist.
Fix on
84458b79a78ea7e26820bf0 ; bug not in any released Tor.
Nick Mathewson [Mon, 18 Nov 2013 16:20:35 +0000 (11:20 -0500)]
Remove 'struct timeval now' that was shadowing 'struct timeval now'.
This was a mistake in the merge commit
7a2b30fe16eacc040b3dd11 . It
would have made the CellStatistics code give completely bogus
results. Bug not in any released Tor.
Nick Mathewson [Mon, 18 Nov 2013 16:13:40 +0000 (11:13 -0500)]
Fix whitespace
Nick Mathewson [Mon, 18 Nov 2013 16:12:24 +0000 (11:12 -0500)]
Log more OpenSSL engine statuses at startup.
Fixes ticket 10043; patch from Joshua Datko.
Nick Mathewson [Mon, 18 Nov 2013 16:01:31 +0000 (11:01 -0500)]
Merge branch 'backtrace_squashed_merged'
Nick Mathewson [Mon, 18 Nov 2013 16:00:16 +0000 (11:00 -0500)]
Merge branch 'backtrace_squashed'
Conflicts:
src/common/sandbox.c
src/common/sandbox.h
src/common/util.c
src/or/main.c
src/test/include.am
src/test/test.c
Nick Mathewson [Mon, 18 Nov 2013 15:48:08 +0000 (10:48 -0500)]
Improve backtrace changes file
Nick Mathewson [Fri, 18 Oct 2013 17:37:23 +0000 (10:37 -0700)]
Refactor format_*_number_sigsafe to have a common implementation
Nick Mathewson [Thu, 15 Aug 2013 16:45:46 +0000 (12:45 -0400)]
Reseolve DOCDOC and XXXXs in backtrace.c
Nick Mathewson [Tue, 30 Jul 2013 01:56:31 +0000 (21:56 -0400)]
Tests for backtrace.c
These need to be a separate executable, since the point of backtrace.c
is that it can crash and write stuff.
Nick Mathewson [Mon, 29 Jul 2013 17:30:49 +0000 (13:30 -0400)]
Unit tests for new functions in log.c
Nick Mathewson [Fri, 26 Jul 2013 11:22:56 +0000 (13:22 +0200)]
Make backtrace handler handle signals correctly.
This meant moving a fair bit of code around, and writing a signal
cleanup function. Still pretty nice from what I can tell, though.
Nick Mathewson [Fri, 26 Jul 2013 10:46:17 +0000 (12:46 +0200)]
Use pc_from_ucontext.m4 from Google Performance Tools
This M4 module lets us learn the right way (out of at least 18
possibilities) to extract the current PC for stack-trace-fixup-in-signal
purposes. The Google Performance Tools license is 3-clause BSD.
Nick Mathewson [Thu, 25 Jul 2013 10:12:35 +0000 (12:12 +0200)]
Improve new assertion message logging
Don't report that a failure happened in the assertion_failed function just
because we logged it from there.
Nick Mathewson [Sat, 20 Jul 2013 02:47:49 +0000 (22:47 -0400)]
Add a sighandler-safe logging mechanism
We had accidentially grown two fake ones: one for backtrace.c, and one
for sandbox.c. Let's do this properly instead.
Now, when we configure logs, we keep track of fds that should get told
about bad stuff happening from signal handlers. There's another entry
point for these that avoids using non-signal-handler-safe functions.
Nick Mathewson [Fri, 19 Jul 2013 18:18:43 +0000 (14:18 -0400)]
On Linux (and some other systems) we need -rdynamic for backtraces
Nick Mathewson [Fri, 19 Jul 2013 18:09:58 +0000 (14:09 -0400)]
Basic backtrace ability
On platforms with the backtrace/backtrace_symbols_fd interface, Tor
can now dump stack traces on assertion failure. By default, I log
them to DataDir/stack_dump and to stderr.
Roger Dingledine [Sun, 17 Nov 2013 04:02:26 +0000 (23:02 -0500)]
forward-port the 0.2.4.18-rc changelog
Nick Mathewson [Fri, 15 Nov 2013 20:35:00 +0000 (15:35 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.4'
Conflicts:
src/or/relay.c
Conflict changes were easy; compilation fixes required were using
using TOR_SIMPLEQ_FIRST to get head of cell queue.
Nick Mathewson [Fri, 15 Nov 2013 20:29:24 +0000 (15:29 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Conflicts:
src/or/or.h
src/or/relay.c
Conflicts were simple to resolve. More fixes were needed for
compilation, including: reinstating the tv_to_msec function, and renaming
*_conn_cells to *_chan_cells.
Nick Mathewson [Fri, 15 Nov 2013 20:23:51 +0000 (15:23 -0500)]
Merge branch 'bug9093_023' into maint-0.2.3
Nick Mathewson [Thu, 14 Nov 2013 14:37:41 +0000 (09:37 -0500)]
Make the dir-key-crosscert element required
In proposal 157, we added a cross-certification element for
directory authority certificates. We implemented it in
0.2.1.9-alpha. All Tor directory authorities now generate it.
Here, as planned, make it required, so that we can finally close
proposal 157.
The biggest change in the code is in the unit test data, where some
old hardcoded certs that we made long ago have become no longer
valid and now need to be replaced.
Nick Mathewson [Mon, 11 Nov 2013 20:22:08 +0000 (15:22 -0500)]
Fix test_cmdline_args to work with old openssl
If openssl was old, Tor would add a warning about its version in
between saying "no torrc found, using reasonable defaults" and
"configuration was valid".
Nick Mathewson [Mon, 11 Nov 2013 15:50:05 +0000 (10:50 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Mon, 11 Nov 2013 15:49:44 +0000 (10:49 -0500)]
missing changes file for #10124
Nick Mathewson [Sun, 10 Nov 2013 17:24:12 +0000 (12:24 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Sun, 10 Nov 2013 17:23:56 +0000 (12:23 -0500)]
Fix two more DirServer mentions in log
Nick Mathewson [Sun, 10 Nov 2013 17:22:34 +0000 (12:22 -0500)]
Fix a wide line
Nick Mathewson [Sun, 10 Nov 2013 17:21:23 +0000 (12:21 -0500)]
Change documentation DirServer->DirAuthority
We renamed the option, but we didn't actually fix it in the log
messages or the docs. This patch does that.
For #10124. Patch by sqrt2.
Nick Mathewson [Thu, 7 Nov 2013 19:52:29 +0000 (14:52 -0500)]
Tweak file documentation in tor.1.txt
rl1987 [Sun, 3 Nov 2013 20:27:06 +0000 (22:27 +0200)]
Updating manpage to describe some of the data directory files.
Nick Mathewson [Thu, 7 Nov 2013 19:42:58 +0000 (14:42 -0500)]
Documentation and tests for 10060
rl1987 [Sun, 3 Nov 2013 16:53:41 +0000 (18:53 +0200)]
Implementing --allow-missing-torrc CLI option.
Nick Mathewson [Thu, 7 Nov 2013 17:15:30 +0000 (12:15 -0500)]
Improved circuit queue out-of-memory handler
Previously, when we ran low on memory, we'd close whichever circuits
had the most queued cells. Now, we close those that have the
*oldest* queued cells, on the theory that those are most responsible
for us running low on memory, and that those are the least likely to
actually drain on their own if we wait a little longer.
Based on analysis from a forthcoming paper by Jansen, Tschorsch,
Johnson, and Scheuermann. Fixes bug 9093.
Nick Mathewson [Fri, 1 Nov 2013 14:28:01 +0000 (10:28 -0400)]
Merge branch 'prop221_squashed_024'
Conflicts:
src/or/or.h
Nick Mathewson [Thu, 31 Oct 2013 20:53:31 +0000 (16:53 -0400)]
circuit_build_failed: distinguish "got DESTROY" case
Roger spotted this on tor-dev in his comments on proposal 221.
We etect DESTROY vs everything else, since arma likes network
timeout indicating failure but not overload indicating failure.
Nick Mathewson [Thu, 31 Oct 2013 20:44:14 +0000 (16:44 -0400)]
Implement proposal 221: Stop sending CREATE_FAST
This makes FastFirstHopPK an AUTOBOOL; makes the default "auto"; and
makes the behavior of "auto" be "look at the consensus."
Nick Mathewson [Thu, 31 Oct 2013 20:10:19 +0000 (16:10 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Thu, 31 Oct 2013 20:09:41 +0000 (16:09 -0400)]
Merge remote-tracking branch 'public/bug9645' into maint-0.2.4
Nick Mathewson [Thu, 31 Oct 2013 18:45:20 +0000 (14:45 -0400)]
Appease make check-spaces
Nick Mathewson [Thu, 31 Oct 2013 18:43:20 +0000 (14:43 -0400)]
Merge remote-tracking branch 'public/bug10063'
Nick Mathewson [Thu, 31 Oct 2013 18:33:34 +0000 (14:33 -0400)]
Add missing includes for circpathbias.h
Nick Mathewson [Thu, 31 Oct 2013 18:10:23 +0000 (14:10 -0400)]
Move other #9731 check to start of its functions
At arma's suggestion. Looks like I missed this one.
Nick Mathewson [Thu, 31 Oct 2013 18:28:49 +0000 (14:28 -0400)]
Make circpathbias and circuitbuild compile.
That was the tricky part
Nick Mathewson [Thu, 31 Oct 2013 18:17:32 +0000 (14:17 -0400)]
Move pathbias functions into a new file.
Does not compile yet. This is the "no code changed" diff.
Nick Mathewson [Thu, 31 Oct 2013 18:10:23 +0000 (14:10 -0400)]
Move #9731 checks to start of their functions
At arma's suggestion.
Nick Mathewson [Thu, 31 Oct 2013 18:09:18 +0000 (14:09 -0400)]
Merge remote-tracking branch 'public/bug9731'
Nick Mathewson [Thu, 31 Oct 2013 18:08:57 +0000 (14:08 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4'
Do an "ours" merge to not take the 0.2.4 fix for #9731
Nick Mathewson [Thu, 31 Oct 2013 18:08:28 +0000 (14:08 -0400)]
Merge remote-tracking branch 'public/bug9731b' into maint-0.2.4
Nick Mathewson [Thu, 31 Oct 2013 18:03:01 +0000 (14:03 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Thu, 31 Oct 2013 18:02:28 +0000 (14:02 -0400)]
Merge remote-tracking branch 'public/bug9780_024_v2' into maint-0.2.4
Nick Mathewson [Thu, 31 Oct 2013 17:26:33 +0000 (13:26 -0400)]
Merge remote-tracking branch 'origin/maint-0.2.4'
Nick Mathewson [Thu, 31 Oct 2013 17:14:39 +0000 (13:14 -0400)]
Merge remote-tracking branch 'public/bug6055_v2_024' into maint-0.2.4
Nick Mathewson [Thu, 31 Oct 2013 15:57:50 +0000 (11:57 -0400)]
Only use -Wlogical-op with GCC 4.6 and later
It generates an apparently spurious warning with gcc 4.4 in debian;
we haven't tested 4.5.
Nick Mathewson [Thu, 31 Oct 2013 15:08:21 +0000 (11:08 -0400)]
Mention that tor is client-by-default. From Weasel. Resolves #10057
Nick Mathewson [Thu, 31 Oct 2013 14:55:18 +0000 (10:55 -0400)]
Minor manpage tweaks from weasel; closes #10058
Karsten Loesing [Thu, 31 Oct 2013 08:21:13 +0000 (09:21 +0100)]
Add changelog entry for merged #7359.
Nick Mathewson [Thu, 31 Oct 2013 03:00:52 +0000 (23:00 -0400)]
Add some clarity and checks to cell_queue_append_packed_copy
It's not cool to have "circ may be NULL if use_stats false, but
otherwise we crash" as an undocumented API constraint. :)
Nick Mathewson [Thu, 31 Oct 2013 02:53:05 +0000 (22:53 -0400)]
Merge remote-tracking branch 'karsten/morestats5'
Nick Mathewson [Thu, 31 Oct 2013 02:39:53 +0000 (22:39 -0400)]
Add the -Wlogical-op switch when building with GCC 4.3 or later.
George Kadianakis [Tue, 29 Oct 2013 22:49:37 +0000 (22:49 +0000)]
Fix an always-true assert in PT code.
Nick Mathewson [Tue, 29 Oct 2013 05:29:59 +0000 (01:29 -0400)]
Merge remote-tracking branch 'public/bug5018'
Conflicts:
src/or/entrynodes.c
David Fifield [Sat, 26 Oct 2013 21:37:50 +0000 (14:37 -0700)]
Document that unneeded transports are ignored.
Suggested by Roger in
https://trac.torproject.org/projects/tor/ticket/5018#comment:11.
David Fifield [Sat, 26 Oct 2013 21:34:48 +0000 (14:34 -0700)]
Simplify transport_is_needed.
By Roger at
https://trac.torproject.org/projects/tor/ticket/5018#comment:11.
George Kadianakis [Thu, 28 Feb 2013 16:58:36 +0000 (18:58 +0200)]
Only launch transport proxies that provide useful transports.
Karsten Loesing [Mon, 28 Oct 2013 10:30:49 +0000 (11:30 +0100)]
Merge branch 'morestats4' into morestats5
Conflicts:
doc/tor.1.txt
src/or/config.c
src/or/connection.h
src/or/control.c
src/or/control.h
src/or/or.h
src/or/relay.c
src/or/relay.h
src/test/test.c
Karsten Loesing [Mon, 28 Oct 2013 09:48:18 +0000 (10:48 +0100)]
squash! Pass const uint64_t pointers, document array length.
Don't cast uint64_t * to const uint64_t * explicitly. The cast is always
safe, so C does it for us. Doing the cast explitictly can hide bugs if
the input is secretly the wrong type.
Suggested by Nick.
Roger Dingledine [Fri, 25 Oct 2013 20:56:20 +0000 (16:56 -0400)]
clarify that DisableNetwork closes connections too
Nick Mathewson [Fri, 25 Oct 2013 16:15:31 +0000 (12:15 -0400)]
Merge remote-tracking branch 'public/bug9934_nm'
Nick Mathewson [Fri, 25 Oct 2013 16:07:15 +0000 (12:07 -0400)]
Tweak 5605 changes file
Nick Mathewson [Fri, 25 Oct 2013 16:03:42 +0000 (12:03 -0400)]
Merge remote-tracking branch 'Ryman/bug5605'
Nick Mathewson [Fri, 25 Oct 2013 15:52:02 +0000 (11:52 -0400)]
Log the origin address of controller connections
Resolves 9698; patch from "sigpipe".
Nick Mathewson [Mon, 21 Oct 2013 18:33:52 +0000 (14:33 -0400)]
Make test_cmdline_args.py work with older pythons
I was using the assertIn() function on unit tests, which Python 2.7
introduced. But we'd like to be able to run our unit tests on Pythons
from older operating systems.
Matthew Finkel [Wed, 2 Oct 2013 02:46:24 +0000 (02:46 +0000)]
A Bridge Authority should compute flag thresholds
As a bridge authority, before we create our networkstatus document, we
should compute the thresholds needed for the various status flags
assigned to each bridge based on the status of all other bridges. We
then add these thresholds to the networkstatus document for easy access.
Fixes for #1117 and #9859.
Nick Mathewson [Mon, 21 Oct 2013 17:30:38 +0000 (13:30 -0400)]
Better detection for certain broken cross-compiling situations.
Fixes bug 9869; patch from Benedikt Gollatz.
Nick Mathewson [Mon, 21 Oct 2013 17:07:47 +0000 (13:07 -0400)]
Give a better warning when stack protection breaks linking.
Fix for 9948; patch from Benedikt Gollatz.
Nick Mathewson [Mon, 21 Oct 2013 17:02:25 +0000 (13:02 -0400)]
DROPGUARDS controller command
Implements ticket 9934; patch from "ra"
Nick Mathewson [Wed, 16 Oct 2013 15:20:43 +0000 (11:20 -0400)]
Merge remote-tracking branch 'linus/bug9206_option'
Nick Mathewson [Mon, 14 Oct 2013 15:44:20 +0000 (11:44 -0400)]
changes file for bug9651
Nick Mathewson [Mon, 14 Oct 2013 15:43:33 +0000 (11:43 -0400)]
Merge remote-tracking branch 'asn/bug9651'
Roger Dingledine [Sat, 12 Oct 2013 14:48:30 +0000 (10:48 -0400)]
Merge branch 'maint-0.2.4'