]>
git.ipfire.org Git - thirdparty/tor.git/log
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
Nick Mathewson [Thu, 22 Jan 2015 19:18:10 +0000 (14:18 -0500)]
Move a redundant _GNU_SOURCE to where it is not redundant
Karsten Loesing [Thu, 22 Jan 2015 08:58:29 +0000 (09:58 +0100)]
Update geoip6 to the January 7 2015 database.
Karsten Loesing [Thu, 22 Jan 2015 08:56:54 +0000 (09:56 +0100)]
Update geoip to the January 7 2015 database.
Nick Mathewson [Wed, 21 Jan 2015 19:54:38 +0000 (14:54 -0500)]
use the correct free fn. spotted by dgoulet
Nick Mathewson [Wed, 21 Jan 2015 19:47:16 +0000 (14:47 -0500)]
Merge branch 'better_workqueue_v3_squashed'
David Goulet [Wed, 21 Jan 2015 19:29:03 +0000 (14:29 -0500)]
Fix: remove whitespace and update a comment in cpuworker.c
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
David Goulet [Wed, 21 Jan 2015 18:58:18 +0000 (13:58 -0500)]
Fix: change copyright year in workqueue and thread tests
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
David Goulet [Wed, 21 Jan 2015 18:18:56 +0000 (13:18 -0500)]
Support monotonic time for pthread_cond_timedwait
This is to avoid that the pthread_cond_timedwait() is not affected by time
adjustment which could make the waiting period very long or very short which
is not what we want in any cases.
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Nick Mathewson [Wed, 21 Jan 2015 18:00:26 +0000 (13:00 -0500)]
Merge branch 'bug9819'
Nick Mathewson [Wed, 21 Jan 2015 18:00:14 +0000 (13:00 -0500)]
fix a comment
Nick Mathewson [Wed, 21 Jan 2015 17:22:41 +0000 (12:22 -0500)]
Fix up some workqueue/threading issues spotted by dgoulet.
Nick Mathewson [Wed, 21 Jan 2015 17:18:11 +0000 (12:18 -0500)]
handle EINTR in compat_*threads.c
Nick Mathewson [Tue, 20 Jan 2015 19:07:37 +0000 (14:07 -0500)]
Merge branch 'bug14084'
Nick Mathewson [Tue, 20 Jan 2015 19:07:22 +0000 (14:07 -0500)]
Expand manpage for HiddenServiceAllowUnknownPorts based on suggestions from qwerty1 and dgoulet
Nick Mathewson [Tue, 20 Jan 2015 19:02:07 +0000 (14:02 -0500)]
Merge remote-tracking branch 'dgoulet/bug14224_025_v1'
Nick Mathewson [Tue, 20 Jan 2015 18:46:56 +0000 (13:46 -0500)]
Merge branch 'ticket14254_squashed'
Nick Mathewson [Fri, 16 Jan 2015 16:37:11 +0000 (11:37 -0500)]
Fix SocksSocket 0. That was easy!
Nick Mathewson [Mon, 19 Jan 2015 16:58:40 +0000 (11:58 -0500)]
Some days I just can't C.
Nick Mathewson [Mon, 19 Jan 2015 16:56:03 +0000 (11:56 -0500)]
Make check-spaces happier.
Nick Mathewson [Mon, 19 Jan 2015 16:55:52 +0000 (11:55 -0500)]
Remove a now-needless testing workaround.
Nick Mathewson [Mon, 19 Jan 2015 16:51:08 +0000 (11:51 -0500)]
Replace a 4 with a 6; fix a bug that nobody noticed :/
Fixes 14280 bugfix on
1053af0b9c4127873034a935ce33 in 0.2.4.7-alpha.
Nick Mathewson [Mon, 19 Jan 2015 16:43:41 +0000 (11:43 -0500)]
Merge branch 'bug7555_v2_squashed'
Conflicts:
src/or/connection_edge.c
Nick Mathewson [Sun, 18 Jan 2015 20:10:35 +0000 (15:10 -0500)]
Add a bunch of new comments to explain connection_ap_rewrite{,_and_attach}
Also, do a little light refactoring to move some variable declarations
around and make a few things const
Also fix an obnoxious bug on checking for the DONE stream end reason.
It's not a flag; it's a possible value or a variable that needs to be
masked.
David Goulet [Mon, 19 Jan 2015 15:23:58 +0000 (10:23 -0500)]
Fix: close intro circuit if no more intro points are usable
Once a NACK is received on the intro circuit, tor tries an other usable one
by extending the current circuit to it. If no more intro points are usable,
now close the circuit. Also, it's reason is changed before closing it so we
don't report again an intro point failure and trigger an extra HS fetch.
Fixes #14224
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
David Goulet [Fri, 16 Jan 2015 22:43:33 +0000 (17:43 -0500)]
Fix: close intro circuit if no more intro points are usable
Once a NACK is received on the intro circuit, tor tries an other usable one
by extending the current circuit to it. If no more intro points are usable,
now close the circuit.
Fixes #14224
Signed-off-by: David Goulet <dgoulet@ev0ke.net>
Nick Mathewson [Sun, 18 Jan 2015 21:07:08 +0000 (16:07 -0500)]
Merge remote-tracking branch 'public/ticket13037'
Conflicts:
src/or/config.c
Roger Dingledine [Sun, 18 Jan 2015 20:53:06 +0000 (15:53 -0500)]
Remove the unused rend_cache_entry_t->received field.
(Patch from arma, commit message from nick.)
Closes #14222.
Nick Mathewson [Sun, 18 Jan 2015 20:41:13 +0000 (15:41 -0500)]
Merge remote-tracking branch 'public/bug14219_025'
Roger Dingledine [Sun, 18 Jan 2015 20:39:12 +0000 (15:39 -0500)]
Do not replace a HS descriptor with a different replica of itself
This fixes a bug where we'd fetch different replicas of the same
descriptor for a down hidden service over and over, until we got lucky
and fetched the same replica twice in a row.
Fixes bug 14219; bugfix on 0.2.0.10-alpha.
(Patch from Roger; commit message and changes file by Nick.)
Nick Mathewson [Sun, 18 Jan 2015 20:28:35 +0000 (15:28 -0500)]
Merge remote-tracking branch 'public/bug14261_025'
Conflicts:
src/or/directory.c
Nick Mathewson [Sun, 18 Jan 2015 20:25:29 +0000 (15:25 -0500)]
Increase limit for status vote download size by a factor of 5.
We've started to hit the limit here. We introduced the limit in
0.1.2.5-alpha. This fixes bug 14261, but we should have a smarter way
to not actually do the behavior this permits. See #14267 for a ticket
about fixing that.
Nick Mathewson [Sun, 18 Jan 2015 19:19:26 +0000 (14:19 -0500)]
Fix memory leak in connection_ap_handshake_rewrite_and_attach()
Spotted by asn. #14259. Bugfix on
368eb6a97 in 0.2.0.1-alpha.
Nick Mathewson [Sun, 18 Jan 2015 18:49:30 +0000 (13:49 -0500)]
Merge remote-tracking branch 'public/bug12485'
Nick Mathewson [Sun, 18 Jan 2015 18:49:04 +0000 (13:49 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.5'
Conflicts:
src/test/test_relaycell.c
src/test/test_util.c
Nick Mathewson [Fri, 16 Jan 2015 16:49:58 +0000 (11:49 -0500)]
fix another mingw64 unit test warnin
Nick Mathewson [Fri, 16 Jan 2015 16:47:49 +0000 (11:47 -0500)]
Nick Mathewson [Fri, 16 Jan 2015 16:46:20 +0000 (11:46 -0500)]
changes suggested by weasel
Nick Mathewson [Fri, 16 Jan 2015 16:32:39 +0000 (11:32 -0500)]
Unify parse_unix_socket_config and parse_port_config
This incidentally makes unix SocksSocket support all the same options
as SocksPort.
This patch breaks 'SocksSocket 0'; next will restore it.
Resolves 14254.
Nick Mathewson [Fri, 16 Jan 2015 14:32:22 +0000 (09:32 -0500)]
No, client-side DNS cacheing should not be on by default.
Nick Mathewson [Fri, 16 Jan 2015 14:31:50 +0000 (09:31 -0500)]
Merge branch 'bug8546_squashed'
Conflicts:
src/or/connection.c
src/or/or.h
src/or/relay.c
Nick Mathewson [Sun, 4 Jan 2015 00:47:06 +0000 (19:47 -0500)]
changes file for bug 8546
Nick Mathewson [Sat, 3 Jan 2015 21:25:56 +0000 (16:25 -0500)]
Replace field-by-field copy with memcpy for entry_port_cfg
Nick Mathewson [Sat, 3 Jan 2015 21:11:23 +0000 (16:11 -0500)]
Move entry_port_cfg_t fields in entry_connection_t
Also rename some options for uniformity, and apply this script:
@@
entry_connection_t *conn;
@@
conn->
+entry_cfg.
\(
isolation_flags
\|
session_group
\|
socks_prefer_no_auth
\|
ipv4_traffic
\|
ipv6_traffic
\|
prefer_ipv6
\|
cache_ipv4_answers
\|
cache_ipv6_answers
\|
use_cached_ipv4_answers
\|
use_cached_ipv6_answers
\|
prefer_ipv6_virtaddr
\)
Nick Mathewson [Sat, 3 Jan 2015 20:58:30 +0000 (15:58 -0500)]
Combine entry_port_cfg_t fields in listener_connection_t
Also, revise the code using these options with this cocci script:
@@
listener_connection_t *conn;
@@
conn->
+entry_cfg.
\(
isolation_flags
\|
session_group
\|
socks_prefer_no_auth
\|
ipv4_traffic
\|
ipv6_traffic
\|
prefer_ipv6
\|
cache_ipv4_answers
\|
cache_ipv6_answers
\|
use_cached_ipv4_answers
\|
use_cached_ipv6_answers
\|
prefer_ipv6_virtaddr
\)
Nick Mathewson [Sat, 3 Jan 2015 17:44:10 +0000 (12:44 -0500)]
Split client-specific and server-specific parts of port_cfg_t
Also, apply this cocci script to transform accesses. (Plus manual
migration for accesses inside smartlist_foreach loops.)
@@
port_cfg_t *cfgx;
@@
cfgx->
+server_cfg.
\(
no_advertise
\|
no_listen
\|
all_addrs
\|
bind_ipv4_only
\|
bind_ipv6_only
\)
@@
port_cfg_t *cfgx;
@@
cfgx->
+entry_cfg.
\(
isolation_flags
\|
session_group
\|
socks_prefer_no_auth
\|
ipv4_traffic
\|
ipv6_traffic
\|
prefer_ipv6
\|
cache_ipv4_answers
\|
cache_ipv6_answers
\|
use_cached_ipv4_answers
\|
use_cached_ipv6_answers
\|
prefer_ipv6_virtaddr
\)
Nick Mathewson [Thu, 15 Jan 2015 17:56:57 +0000 (12:56 -0500)]
Fix a compilation warning in the unit tests
Nick Mathewson [Thu, 15 Jan 2015 17:38:43 +0000 (12:38 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Sat, 10 Jan 2015 21:06:25 +0000 (16:06 -0500)]
Ignore warning for redundant decl in openssl/srtp.h
Backports some commits from tor master.
Nick Mathewson [Thu, 15 Jan 2015 16:53:20 +0000 (11:53 -0500)]
Add string for IP_NOW_REDUNDANT in circuit_end_reason_to_control_string
Closes 14207; bugfix on 0.2.6.2-alpha.
George Kadianakis [Thu, 15 Jan 2015 15:41:25 +0000 (15:41 +0000)]
unittests: use tt_i64_op() instead of tt_int_op() in laplace tests.
Do this in even more places to try to fix the build.
Nick Mathewson [Wed, 14 Jan 2015 18:29:58 +0000 (13:29 -0500)]
Update workqueue implementation to use a single queue for the work
Previously I used one queue per worker; now I use one queue for
everyone. The "broadcast" code is gone, replaced with an idempotent
'update' operation.
Roger Dingledine [Thu, 15 Jan 2015 16:03:13 +0000 (11:03 -0500)]
fix typo
Nick Mathewson [Thu, 15 Jan 2015 15:26:35 +0000 (10:26 -0500)]
Merge remote-tracking branch 'andrea/bug12194_alt'
Nick Mathewson [Thu, 15 Jan 2015 15:24:27 +0000 (10:24 -0500)]
Fix the checkdir/perms test when umask==077
Fixes 14215; bugfix on 0.2.6.2-alpha. Reported by "cypherpunks".
Andrea Shepard [Thu, 15 Jan 2015 15:19:31 +0000 (15:19 +0000)]
Add comments in rendclient.c noting that certain functions involved in handling ended HS connection attempts must be idempotent
George Kadianakis [Thu, 15 Jan 2015 15:14:33 +0000 (15:14 +0000)]
unittests: use tt_i64_op() instead of tt_int_op() in laplace tests.
George Kadianakis [Thu, 15 Jan 2015 14:42:10 +0000 (14:42 +0000)]
unittests: Change some tt_assert()s to tt_int_op()s.
George Kadianakis [Thu, 15 Jan 2015 14:36:24 +0000 (14:36 +0000)]
Restrict sample values of the Laplace distribution to int64_t.
This helps avoid undefined behavior from casting big double values to
int64_t. Fixes #14090.
Nick Mathewson [Wed, 14 Jan 2015 19:15:29 +0000 (14:15 -0500)]
Merge remote-tracking branch 'public/bug13397'
Nick Mathewson [Wed, 14 Jan 2015 18:30:10 +0000 (13:30 -0500)]
Merge remote-tracking branch 'origin/maint-0.2.5'
Nick Mathewson [Mon, 16 Dec 2013 15:20:40 +0000 (10:20 -0500)]
Incorporate some comments based on notes from dgoulet
Nick Mathewson [Wed, 2 Oct 2013 19:11:34 +0000 (15:11 -0400)]
Avoid chan/circ linear lookups for requests
The solution I took is to not free a circuit with a pending
uncancellable work item, but rather to set its magic number to a
sentinel value. When we get a work item, we check whether the circuit
has that magic sentinel, and if so, we free it rather than processing
the reply.
Nick Mathewson [Wed, 2 Oct 2013 16:34:08 +0000 (12:34 -0400)]
Remove if (1) indentation in cpuworker.c
To avoid having diffs turn out too big, I had replaced some unneeded
ifs and fors with if (1), so that the indentation would still work out
right. Now I might as well clean those up.
Nick Mathewson [Wed, 2 Oct 2013 16:32:09 +0000 (12:32 -0400)]
Refactor cpuworker to use workqueue/threadpool code.
Nick Mathewson [Sat, 28 Sep 2013 04:52:28 +0000 (00:52 -0400)]
Fix check-spaces
Nick Mathewson [Sat, 28 Sep 2013 04:33:10 +0000 (00:33 -0400)]
Test and fix workqueue_entry_cancel().
Nick Mathewson [Sat, 28 Sep 2013 04:09:20 +0000 (00:09 -0400)]
Add shutdown and broadcast support to test_workqueue.
Nick Mathewson [Sat, 28 Sep 2013 03:20:22 +0000 (23:20 -0400)]
Add unit test for thread IDs.
Nick Mathewson [Sat, 28 Sep 2013 03:15:53 +0000 (23:15 -0400)]
Basic unit test for condition variables.
Nick Mathewson [Fri, 27 Sep 2013 16:32:19 +0000 (12:32 -0400)]
"Recursive" locks, not "reentrant" locks. Duh.
Nick Mathewson [Fri, 27 Sep 2013 16:09:57 +0000 (12:09 -0400)]
Use correct (absolute) time for pthread_cond_timedwait
Nick Mathewson [Thu, 26 Sep 2013 03:31:40 +0000 (23:31 -0400)]
Fix windows compilation of condition code
Nick Mathewson [Thu, 26 Sep 2013 03:25:02 +0000 (23:25 -0400)]
Fix linux compilation (pipe2 needs _GNU_SOURCE)
Nick Mathewson [Wed, 25 Sep 2013 18:50:01 +0000 (14:50 -0400)]
Move thread tests into their own module
Nick Mathewson [Wed, 25 Sep 2013 18:31:59 +0000 (14:31 -0400)]
Test a little more of compat_threads.c
Nick Mathewson [Wed, 25 Sep 2013 15:41:40 +0000 (11:41 -0400)]
Rename mutex_for_cond -> mutex_nonreentrant
We'll want to use these for other stuff too.
Nick Mathewson [Wed, 25 Sep 2013 15:36:02 +0000 (11:36 -0400)]
Rename bench_workqueue -> test_workqueue and make it a unit test.
Nick Mathewson [Wed, 25 Sep 2013 15:05:27 +0000 (11:05 -0400)]
Documentation for new workqueue and condition and locking stuff
Nick Mathewson [Wed, 25 Sep 2013 00:55:09 +0000 (20:55 -0400)]
Add a way to tell all threads to do something.
Nick Mathewson [Wed, 25 Sep 2013 00:43:48 +0000 (20:43 -0400)]
Isolate the "socketpair or a pipe" logic for alerting main thread
This way we can use the linux eventfd extension where available.
Using EVFILT_USER on the BSDs will be a teeny bit trickier, and will
require libevent hacking.
Nick Mathewson [Tue, 24 Sep 2013 20:57:40 +0000 (16:57 -0400)]
Make pending work cancellable.
Nick Mathewson [Mon, 23 Sep 2013 05:19:16 +0000 (01:19 -0400)]
Initial workqueue implemention, with a simple test.
It seems to be working, but more tuning is needed.
Nick Mathewson [Tue, 24 Sep 2013 19:03:51 +0000 (15:03 -0400)]
Specialize handling for mutexes allocated for condition variables
(These must not be reentrant mutexes with pthreads.)
Nick Mathewson [Mon, 23 Sep 2013 05:15:30 +0000 (01:15 -0400)]
Add tor_cond_init/uninit
Nick Mathewson [Mon, 23 Sep 2013 02:08:41 +0000 (22:08 -0400)]
Add a timeout to tor_cond_wait; add tor_cond impl from libevent
The windows code may need some tweaks for it to compile; I've not
tested it yet.
Nick Mathewson [Mon, 23 Sep 2013 01:30:46 +0000 (21:30 -0400)]
Split threading-related code out of compat.c
Also, re-enable the #if'd out condition-variable code.
Work queues are going to make us hack on all of this stuff a bit more
closely, so it might not be a terrible idea to make it easier to hack.
Nick Mathewson [Wed, 14 Jan 2015 14:54:40 +0000 (09:54 -0500)]
Do not log a notice on every socks connection