]>
git.ipfire.org Git - thirdparty/tor.git/log
Sebastian Hahn [Sun, 15 Feb 2015 10:49:19 +0000 (11:49 +0100)]
Call cpu_init if we change to being a relay
The issue is that we use the cpuworker system with relays only, so if we
start up as a client and transition to being a relay later, we'll be
sad.
This fixes bug 14901; not in any released version of Tor.
Sebastian Hahn [Sun, 15 Feb 2015 10:21:54 +0000 (11:21 +0100)]
Don't leak a cond var when starting threads in a pool
Nick Mathewson [Thu, 12 Feb 2015 19:50:13 +0000 (14:50 -0500)]
Merge remote-tracking branch 'sebastian/bug14875'
Sebastian Hahn [Thu, 12 Feb 2015 13:56:47 +0000 (14:56 +0100)]
Avoid undefined behaviour in ifreq_to_smartlist
This could trigger where _SIZEOF_ADDR_IFREQ() might not return a
multiple of sizeof(void *). Fixes bug 14875; not in any released version
of Tor.
Sebastian Hahn [Thu, 12 Feb 2015 12:59:31 +0000 (13:59 +0100)]
Actually get all interface addresses
If we guessed a buffer size too small, we never increased the buffer and
tried again
Also simplify the interface of ifreq_to_smartlist a little
Nick Mathewson [Wed, 11 Feb 2015 20:59:41 +0000 (15:59 -0500)]
Merge branch 'bug14478_squashed'
Sebastian Hahn [Wed, 11 Feb 2015 20:43:41 +0000 (21:43 +0100)]
Put error messages to stderr
Thanks weasel :)
Also remove stray debug output
Sebastian Hahn [Wed, 11 Feb 2015 20:40:49 +0000 (21:40 +0100)]
Change exit code of zero_length_keys script
Weasel notes that exit codes above 128 are for when a script dies from a
signal.
Sebastian Hahn [Sat, 7 Feb 2015 13:54:21 +0000 (14:54 +0100)]
Avoid undefined behaviour of test
Fixes part of bug #14478, patch idea suggested by an anonymous
contributor. Thanks!
Sebastian Hahn [Sat, 7 Feb 2015 13:48:06 +0000 (14:48 +0100)]
Check that mktemp result is a directory
Fixes part of bug #14478, patch idea suggested by an anonymous
contributor. Thanks!
Sebastian Hahn [Fri, 6 Feb 2015 22:21:20 +0000 (23:21 +0100)]
Clean up after zero length key test
Nick Mathewson [Wed, 11 Feb 2015 20:15:24 +0000 (15:15 -0500)]
Merge remote-tracking branch 'public/bug14759'
Nick Mathewson [Wed, 11 Feb 2015 20:10:35 +0000 (15:10 -0500)]
fix a compilation warning
Nick Mathewson [Wed, 11 Feb 2015 20:09:01 +0000 (15:09 -0500)]
Merge remote-tracking branch 'public/remove_freelist'
Nick Mathewson [Wed, 11 Feb 2015 20:06:04 +0000 (15:06 -0500)]
Merge branch 'bug12844'
Conflicts:
src/or/circuituse.c
src/test/include.am
src/test/test_entrynodes.c
Nick Mathewson [Wed, 11 Feb 2015 19:54:16 +0000 (14:54 -0500)]
Additional paranoia: do not even build tor2web stuff if not using.
(That is, don't build it unless we're building for tor2web, or we
are building for tests.)
Nick Mathewson [Wed, 11 Feb 2015 14:44:07 +0000 (09:44 -0500)]
Fix crash on glibc __libc_message()
__libc_message() tries to open /dev/tty with O_RDWR, but the sandbox
catches that and calls it a crash. Instead, I'm making the sandbox
setenv LIBC_FATAL_STDERR_, so that glibc uses stderr instead.
Fix for 14759, bugfix on 0.2.5.1-alpha
Nick Mathewson [Wed, 11 Feb 2015 14:03:50 +0000 (09:03 -0500)]
Remove mempools and buf freelists
They have been off-by-default since 0.2.5 and nobody has complained. :)
Also remove the buf_shrink() function, which hasn't done anything
since we first stopped using contiguous memory to store buffers.
Closes ticket 14848.
Nick Mathewson [Wed, 11 Feb 2015 13:42:00 +0000 (08:42 -0500)]
Merge remote-tracking branch 'public/feature_13555'
Nick Mathewson [Wed, 11 Feb 2015 13:40:48 +0000 (08:40 -0500)]
Merge remote-tracking branch 'sebastian/bug14819'
Nick Mathewson [Tue, 10 Feb 2015 06:39:55 +0000 (22:39 -0800)]
Merge remote-tracking branch 'sysrqb/bug14802_025'
Nick Mathewson [Tue, 10 Feb 2015 06:35:40 +0000 (22:35 -0800)]
Merge remote-tracking branch 'teor/avoid-NULL-smartlist-foreach'
Sebastian Hahn [Mon, 9 Feb 2015 15:11:45 +0000 (16:11 +0100)]
Add some comments to or_circuit_t.workqueue_entry
These were suggested by dgoulet, thanks!
Sebastian Hahn [Mon, 9 Feb 2015 15:04:51 +0000 (16:04 +0100)]
Avoid use-after-free of circ belonging to cancelled job
This fixes a bug where we decide to free the circuit because it isn't on
any workqueue anymore, and then the job finishes and the circuit gets
freed again.
Fixes bug #14815, not in any released version of Tor.
Sebastian Hahn [Mon, 9 Feb 2015 08:09:00 +0000 (09:09 +0100)]
Re-remove the --disable-threads configure option
Sebastian Hahn [Mon, 9 Feb 2015 03:48:16 +0000 (04:48 +0100)]
Reserve enough space for rend_service_port_config_t
In #14803, Damian noticed that his Tor sometimes segfaults. Roger noted
that his valgrind gave an invalid write of size one here. Whenever we
use FLEXIBLE_ARRAY_MEMBER, we have to make sure to actually malloc a
thing that's large enough.
Fixes bug #14803, not in any released version of Tor.
Matthew Finkel [Mon, 9 Feb 2015 01:58:22 +0000 (01:58 +0000)]
Return 0 when detecting the amount of memory fails
Fixes bug 14802; bugfix on 0.2.5.4-alpha.
teor [Sun, 8 Feb 2015 12:41:37 +0000 (23:41 +1100)]
Avoid calling SMARTLIST_FOREACH on a NULL smartlist in tests
Check if each smartlist is NULL before calling SMARTLIST_FOREACH on it.
Bug discovered by the clang static analyzer.
Apple clang 600.0.56 (LLVM 3.5svn) on x86_64-apple-darwin14.1.0.
David Goulet [Wed, 28 Jan 2015 15:52:14 +0000 (10:52 -0500)]
Control: getinfo entry-guards report down-since
If the guard unreachable_since variable was set, the status "up" was
reported which is wrong. This adds the "down" status followed by the
unreachable_since time value.
Fixes #14184
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Sebastian Hahn [Fri, 6 Feb 2015 20:56:26 +0000 (21:56 +0100)]
Remove useless export in zero length key test
Fixes part of bug #14478, patch idea suggested by an anonymous
contributor. Thanks!
Sebastian Hahn [Fri, 6 Feb 2015 20:53:22 +0000 (21:53 +0100)]
Don't use invalid exit values in zero length key test
Shell exit values must fall into the range of [0-255], so let's honour
this. In practice, the "exit -1" from the old code set an exit value of
255 on most systems, so let's pick that.
Fixes part of bug #14478, patch idea suggested by an anonymous
contributor. Thanks!
Nick Mathewson [Fri, 6 Feb 2015 20:42:53 +0000 (15:42 -0500)]
Merge remote-tracking branch 'sebastian/bug13993'
Sebastian Hahn [Fri, 6 Feb 2015 20:36:40 +0000 (21:36 +0100)]
Fix check-spaces complaints
Sebastian Hahn [Fri, 6 Feb 2015 20:17:48 +0000 (21:17 +0100)]
Avoid logging startup messages twice
Sebastian Hahn [Fri, 6 Feb 2015 19:39:10 +0000 (20:39 +0100)]
Add unit test for #13290
Yawning Angel [Fri, 6 Feb 2015 16:26:28 +0000 (16:26 +0000)]
Fix scheduler compilation on targets where char is unsigned.
Per discussion with nickm, the `dir` argument should be a int rather
than a signed char.
Fixes bug #14764.
Nick Mathewson [Fri, 6 Feb 2015 03:54:34 +0000 (22:54 -0500)]
changes file for 13796
Nick Mathewson [Fri, 6 Feb 2015 03:53:15 +0000 (22:53 -0500)]
Merge remote-tracking branch 'public/bug13796'
Nick Mathewson [Thu, 5 Feb 2015 19:03:15 +0000 (14:03 -0500)]
Run the format_changelog script for initial cleanup
Nick Mathewson [Thu, 5 Feb 2015 19:01:56 +0000 (14:01 -0500)]
Start working on an 0.2.3 changelog
This is just sorting the entries and lightly editing a couple of
problems I found.
Nick Mathewson [Thu, 5 Feb 2015 17:17:08 +0000 (12:17 -0500)]
Fix a work-counting bug introduced by the workqueue merge
David Goulet finds that when he runs a busy relay for a while with the
latest version of the git code, the number of onionskins handled
slowly dwindles to zero, with total_pending_tasks wedged at its
maximum value.
I conjecture this is because the total_pending_tasks variable isn't
decremented when we successfully cancel a job. Fixed that.
Fixes bug 14741; bugfix not on any released version of tor.
Nick Mathewson [Thu, 5 Feb 2015 16:01:13 +0000 (11:01 -0500)]
use ARRAY_LENGTH macro in domain_to_string
Nick Mathewson [Thu, 5 Feb 2015 15:59:44 +0000 (10:59 -0500)]
Merge remote-tracking branch 'yawning/bug14740'
Yawning Angel [Thu, 5 Feb 2015 15:46:27 +0000 (15:46 +0000)]
Add a string representation for LD_SCHED, and a extra sanity check.
This both fixes the problem, and ensures that forgetting to update
domain_list in the future will trigger the bug codepath instead of
a NULL pointer deref.
Nick Mathewson [Thu, 5 Feb 2015 15:06:16 +0000 (10:06 -0500)]
improve changes files more
Nick Mathewson [Thu, 5 Feb 2015 15:04:41 +0000 (10:04 -0500)]
14554 doesn't need a changes file: the bug wasn't in a release
Nick Mathewson [Wed, 4 Feb 2015 18:27:56 +0000 (13:27 -0500)]
Bump the minimum relay version to 0.2.4.18-rc
Closes #13555
Nick Mathewson [Wed, 4 Feb 2015 15:09:54 +0000 (10:09 -0500)]
Use getsockname, not getsockopt, on TPROXY sockets
Nick Mathewson [Tue, 3 Feb 2015 20:58:48 +0000 (15:58 -0500)]
fix a unit tests memory leak (my fault)
Nick Mathewson [Tue, 3 Feb 2015 20:50:31 +0000 (15:50 -0500)]
Work around test_status.c weirdness
Ordinarily, get_options() can never return NULL, but with
test_status.c mocking, it can. So test for that case.
The best fix here would be to pass the options value to a
bridge_server_mode() function.
Nick Mathewson [Tue, 3 Feb 2015 18:06:58 +0000 (13:06 -0500)]
Merge branch 'bug6852'
Conflicts:
src/or/status.c
Nick Mathewson [Tue, 3 Feb 2015 18:02:22 +0000 (13:02 -0500)]
Choose a more deliberate cutoff for clients in heartbeat
Nick Mathewson [Mon, 2 Feb 2015 21:31:32 +0000 (16:31 -0500)]
Merge remote-tracking branch 'public/bug9635_warnings_025'
Conflicts:
src/test/test.c
Nick Mathewson [Mon, 2 Feb 2015 19:37:02 +0000 (14:37 -0500)]
tweak based on comments from dgoulet
Nick Mathewson [Mon, 2 Feb 2015 19:38:47 +0000 (14:38 -0500)]
Merge branch 'feature13865_test'
rl1987 [Mon, 2 Feb 2015 19:11:23 +0000 (21:11 +0200)]
Test for 13865.
Nick Mathewson [Mon, 2 Feb 2015 19:14:35 +0000 (14:14 -0500)]
Add more parenthesis to the definition of ARRAY_LENGTH
Nick Mathewson [Mon, 2 Feb 2015 18:35:44 +0000 (13:35 -0500)]
Fix an unused-variable warning.
Nick Mathewson [Mon, 2 Feb 2015 18:32:53 +0000 (13:32 -0500)]
Merge branch 'feature13864_squashed'
rl1987 [Mon, 26 Jan 2015 19:33:19 +0000 (21:33 +0200)]
Updating manpage for 13865.
rl1987 [Mon, 26 Jan 2015 19:23:42 +0000 (21:23 +0200)]
Changes file for 13865.
rl1987 [Sun, 25 Jan 2015 14:42:42 +0000 (16:42 +0200)]
Allow reading torrc from stdin.
Nick Mathewson [Mon, 2 Feb 2015 15:25:25 +0000 (10:25 -0500)]
Merge remote-tracking branch 'public/bug13319'
Nick Mathewson [Mon, 2 Feb 2015 15:23:52 +0000 (10:23 -0500)]
Merge remote-tracking branch 'sysrqb/bug14216_bad_since'
Nick Mathewson [Mon, 2 Feb 2015 15:16:48 +0000 (10:16 -0500)]
Merge remote-tracking branch 'dgoulet/bug14202_026_v1'
Nick Mathewson [Mon, 2 Feb 2015 15:15:26 +0000 (10:15 -0500)]
Merge remote-tracking branch 'public/14188_part1'
rl1987 [Sun, 1 Feb 2015 17:52:54 +0000 (19:52 +0200)]
Updating OpenBSD section of doc/TUNING.
Matthew Finkel [Sat, 31 Jan 2015 09:34:24 +0000 (09:34 +0000)]
Only retry connecting to configured bridges
After connectivity problems, only try connecting to bridges which
are currently configured; don't mark bridges which we previously
used but are no longer configured. Fixes 14216. Reported by
and fix provided by arma.
Nick Mathewson [Fri, 30 Jan 2015 20:29:59 +0000 (15:29 -0500)]
Merge remote-tracking branch 'dgoulet/bug14554_026_v1'
David Goulet [Fri, 30 Jan 2015 20:18:40 +0000 (15:18 -0500)]
Fix: check r < 0 before checking errno
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
David Goulet [Fri, 30 Jan 2015 19:59:48 +0000 (14:59 -0500)]
Fix possible infinite loop on pipe/sock_drain()
If the returned value of read/recv is 0 (meaning EOF), we'll end up in an
infinite loop (active wait) until something is written on the pipe which is
not really what we want here especially because those functions are called
from the main thread.
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Nick Mathewson [Fri, 30 Jan 2015 19:47:56 +0000 (14:47 -0500)]
Fix some unused-argument warnings
Nick Mathewson [Fri, 30 Jan 2015 19:46:18 +0000 (14:46 -0500)]
Fix an uninitialized-variable warning.
David Goulet [Fri, 30 Jan 2015 19:12:30 +0000 (14:12 -0500)]
Fix: test -ENOENT after config_parse_unix_port()
Check for -ENOENT instead of ENOENT after the HS port is parsed.
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Nick Mathewson [Fri, 30 Jan 2015 12:36:55 +0000 (07:36 -0500)]
Merge remote-tracking branch 'public/prop227_v2'
Conflicts:
src/test/test_dir.c
Nick Mathewson [Fri, 30 Jan 2015 12:29:23 +0000 (07:29 -0500)]
Correctly handle OutboundBindAddress again.
ca5ba2956bcd4b5ee1e526ccf5914f52fe6e6d51 broke this; bug not in any
released Tor.
Also fix a typo.
Fixes 14541 and 14527. Reported by qbi.
Nick Mathewson [Thu, 29 Jan 2015 20:16:15 +0000 (15:16 -0500)]
Merge branch 'bug14451_026_v1'
Nick Mathewson [Thu, 29 Jan 2015 20:12:14 +0000 (15:12 -0500)]
changes file for 14451
Nick Mathewson [Thu, 29 Jan 2015 20:10:19 +0000 (15:10 -0500)]
Use HT_BUCKET_NUM_ in more places
(patch from sysrqb)
Nick Mathewson [Thu, 29 Jan 2015 20:09:55 +0000 (15:09 -0500)]
Merge remote-tracking branch 'public/ticket11737'
Nick Mathewson [Thu, 29 Jan 2015 19:56:45 +0000 (14:56 -0500)]
Document unix: addresses
Nick Mathewson [Thu, 29 Jan 2015 19:51:59 +0000 (14:51 -0500)]
Restrict unix: addresses to control and socks for now
Nick Mathewson [Thu, 29 Jan 2015 19:45:21 +0000 (14:45 -0500)]
Remove SocksSocket; it's now spelled differently thanks to 14451
Also, revise bug12585 changes file to mention new syntax
Nick Mathewson [Thu, 29 Jan 2015 19:14:59 +0000 (14:14 -0500)]
When there are no package lines, make consensus/packages say "".
Also, give a better error message when there is no consensus.
Nick Mathewson [Thu, 29 Jan 2015 19:04:57 +0000 (14:04 -0500)]
Correctly reject packages lines with empty entries
Nick Mathewson [Thu, 29 Jan 2015 19:04:21 +0000 (14:04 -0500)]
Define 'digesttype' correctly
David Goulet [Thu, 29 Jan 2015 17:52:18 +0000 (12:52 -0500)]
Remove obsolete workaround in dirserv_thinks_router_is_hs_dir()
Fixes #14202
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
David Goulet [Wed, 28 Jan 2015 23:01:53 +0000 (18:01 -0500)]
Make hidden service use the config unix prefix
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
David Goulet [Wed, 28 Jan 2015 22:55:38 +0000 (17:55 -0500)]
Support unix: prefix in port configuration
It's now possible to use SocksPort or any other kind of port that can use a
Unix socket like so:
SocksPort unix:/foo/bar/unix.sock
Fixes #14451
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Nick Mathewson [Wed, 28 Jan 2015 19:32:19 +0000 (14:32 -0500)]
Merge branch 'bug11485_026_v2_squashed'
David Goulet [Wed, 28 Jan 2015 18:11:21 +0000 (13:11 -0500)]
fixup! Refactor the use of ifdef HAVE_SYS_UN_H
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Andrea Shepard [Tue, 27 Jan 2015 13:18:22 +0000 (13:18 +0000)]
Changes file for ticket #11485
Andrea Shepard [Tue, 27 Jan 2015 13:12:40 +0000 (13:12 +0000)]
Actually make connections to HSes on AF_UNIX sockets
Andrea Shepard [Sat, 24 Jan 2015 17:31:12 +0000 (17:31 +0000)]
Support connection_exit_connect() to AF_UNIX sockets
Andrea Shepard [Fri, 23 Jan 2015 14:45:12 +0000 (14:45 +0000)]
Handle config options for AF_UNIX hidden services rendservice.c
Nick Mathewson [Wed, 28 Jan 2015 17:06:28 +0000 (12:06 -0500)]
changes file for 8405
Arthur Edelstein [Wed, 16 Jul 2014 04:27:59 +0000 (21:27 -0700)]
Bug #8405: Report SOCKS username/password in CIRC status events
Introduces two new circuit status name-value parameters: SOCKS_USERNAME
and SOCKS_PASSWORD. Values are enclosing in quotes and unusual characters
are escaped.
Example:
650 CIRC 5 EXTENDED [...] SOCKS_USERNAME="my_username" SOCKS_PASSWORD="my_password"
Nick Mathewson [Wed, 28 Jan 2015 16:28:21 +0000 (11:28 -0500)]
Add GETINFO consensus/{valid-{after,until},fresh-until}
Nick Mathewson [Wed, 28 Jan 2015 16:25:37 +0000 (11:25 -0500)]
more typo fixes from mcs and gk
Nick Mathewson [Wed, 28 Jan 2015 15:11:08 +0000 (10:11 -0500)]
Tweak tor-resolve docs and logs
Resolves 14325