Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
orbea
Tor
Commits
f51c6872
Commit
f51c6872
authored
2 years ago
by
David Goulet
Browse files
Options
Downloads
Plain Diff
Merge branch 'maint-0.4.7'
parents
22cb4c23
af5ef98d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changes/bug40644
+8
-0
8 additions, 0 deletions
changes/bug40644
src/core/or/congestion_control_common.c
+10
-1
10 additions, 1 deletion
src/core/or/congestion_control_common.c
with
18 additions
and
1 deletion
changes/bug40644
0 → 100644
+
8
−
0
View file @
f51c6872
o Minor bugfixes (congestion control):
- Add a check for an integer underflow condition that might
happen in cases where the system clock is stopped, the
ORconn is blocked, and the endpoint sends more than a
congestion window worth of non-data control cells at once.
This would cause a large congestion window to be calculated
instead of a small one. No security impact. Fixes bug 40644;
bugfix on 0.4.7.5-alpha.
This diff is collapsed.
Click to expand it.
src/core/or/congestion_control_common.c
+
10
−
1
View file @
f51c6872
...
...
@@ -882,10 +882,19 @@ congestion_control_update_circuit_bdp(congestion_control_t *cc,
if
(
!
cc
->
ewma_rtt_usec
)
{
uint64_t
cwnd
=
cc
->
cwnd
;
tor_assert_nonfatal
(
cc
->
cwnd
<=
cwnd_max
);
/* If the channel is blocked, keep subtracting off the chan_q
* until we hit the min cwnd. */
if
(
blocked_on_chan
)
{
cwnd
=
MAX
(
cwnd
-
chan_q
,
cc
->
cwnd_min
);
/* Cast is fine because we're less than int32 */
if
(
chan_q
>=
(
int64_t
)
cwnd
)
{
log_notice
(
LD_CIRC
,
"Clock stall with large chanq: %d %"
PRIu64
,
chan_q
,
cwnd
);
cwnd
=
cc
->
cwnd_min
;
}
else
{
cwnd
=
MAX
(
cwnd
-
chan_q
,
cc
->
cwnd_min
);
}
cc
->
blocked_chan
=
1
;
}
else
{
cc
->
blocked_chan
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment