]>
git.ipfire.org Git - thirdparty/tor.git/log
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 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.
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>
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 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
Nick Mathewson [Wed, 28 Jan 2015 15:00:58 +0000 (10:00 -0500)]
Try to work around changes in openssl 1.1.0
Prefer not to use a couple of deprecated functions; include more
headers in tortls.c
This is part of ticket 14188.
Nick Mathewson [Wed, 28 Jan 2015 14:42:28 +0000 (09:42 -0500)]
Bump a client authorization message from debug to info.
A user wants this for 14015, and it seems fairly reasonable.
Nick Mathewson [Tue, 27 Jan 2015 21:40:32 +0000 (16:40 -0500)]
New GETINFO consensus/packages to expose package information from consensus
Nick Mathewson [Tue, 27 Jan 2015 21:31:48 +0000 (16:31 -0500)]
Fixes on prop227 comments, based on comments by mcs on #10395
Nick Mathewson [Tue, 27 Jan 2015 17:42:12 +0000 (12:42 -0500)]
Merge branch 'doc13702_squashed'
rl1987 [Fri, 14 Nov 2014 21:07:35 +0000 (23:07 +0200)]
Adding section on OpenBSD to doc/TUNING
Andrea Shepard [Thu, 22 Jan 2015 02:22:33 +0000 (02:22 +0000)]
Groundwork for AF_UNIX hidden services in rendservice.c
Nick Mathewson [Mon, 26 Jan 2015 15:19:07 +0000 (10:19 -0500)]
Bail early in cpuworker_onion_handshake_replyfn if the circuit is marked
Nick Mathewson [Mon, 26 Jan 2015 15:06:36 +0000 (10:06 -0500)]
changes file for bug14350
Anthony G. Basile [Sun, 25 Jan 2015 00:10:46 +0000 (19:10 -0500)]
configure.ac: fix disabling systemd notification support
If --disable-systemd is given, $enable_systemd is set to "no", not "false".
As a result, if libsystemd is found, we still turn on systemd support even
if we explicitly disable it with --disable-system.
Nick Mathewson [Fri, 23 Jan 2015 16:35:05 +0000 (11:35 -0500)]
Try to fix some more memory leaks in the unit tests
Nick Mathewson [Fri, 23 Jan 2015 16:26:40 +0000 (11:26 -0500)]
Fix some memory leaks in new address tests
Nick Mathewson [Fri, 23 Jan 2015 16:18:28 +0000 (11:18 -0500)]
whitespace fixes
Nick Mathewson [Fri, 23 Jan 2015 16:15:53 +0000 (11:15 -0500)]
Split the slow unit tests into their own binary
This can run in parallel with the faster ones and the other tests.
Nick Mathewson [Fri, 23 Jan 2015 15:13:37 +0000 (10:13 -0500)]
Merge branch 'if_addr_refactoring_squashed'
Conflicts:
src/test/include.am
src/test/test.c
rl1987 [Sat, 24 May 2014 12:03:14 +0000 (15:03 +0300)]
Refactor code that looks up addresses from interfaces
Now the code has separate implementation and examination functions,
uses smartlists sanely, and has relatively decent test coverage.
Nick Mathewson [Fri, 23 Jan 2015 15:02:49 +0000 (10:02 -0500)]
changes file for 9969
Nick Mathewson [Fri, 23 Jan 2015 14:37:08 +0000 (09:37 -0500)]
Tweak the 9969 fix a little
If we have busy nodes and excluded nodes, then don't retry with the
excluded ones enabled. Instead, wait for the busy ones to be nonbusy.
Nick Mathewson [Fri, 23 Jan 2015 14:36:00 +0000 (09:36 -0500)]
Merge remote-tracking branch 'public/ticket9969'
Conflicts:
src/or/directory.c
src/or/routerlist.c
src/or/routerlist.h
src/test/include.am
src/test/test.c
Nick Mathewson [Fri, 23 Jan 2015 14:09:00 +0000 (09:09 -0500)]
fix warnings from lintChanges
Nick Mathewson [Fri, 23 Jan 2015 13:55:31 +0000 (08:55 -0500)]
Merge remote-tracking branch 'public/ticket13762'
Nick Mathewson [Fri, 23 Jan 2015 13:53:21 +0000 (08:53 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Fri, 23 Jan 2015 13:52:55 +0000 (08:52 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.4' into maint-0.2.5
Nick Mathewson [Fri, 23 Jan 2015 13:52:35 +0000 (08:52 -0500)]
Merge remote-tracking branch 'karsten/geoip6-jan2015' into maint-0.2.4
Nick Mathewson [Fri, 23 Jan 2015 13:52:20 +0000 (08:52 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.3' into maint-0.2.4
Nick Mathewson [Thu, 22 Jan 2015 19:22:39 +0000 (14:22 -0500)]
fix some warnings in compat_threads.c