Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Container registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
Tor
Commits
be751a46
Commit
be751a46
authored
Nov 9, 2023
by
David Goulet
Browse files
Options
Downloads
Plain Diff
Merge branch 'ticket40883_048_01' into maint-0.4.8
parents
6df27ae9
83aecca5
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
changes/ticket40883
+4
-0
4 additions, 0 deletions
changes/ticket40883
src/feature/hs/hs_metrics.c
+6
-1
6 additions, 1 deletion
src/feature/hs/hs_metrics.c
src/feature/rend/rendcommon.c
+8
-1
8 additions, 1 deletion
src/feature/rend/rendcommon.c
with
18 additions
and
2 deletions
changes/ticket40883
0 → 100644
+
4
−
0
View file @
be751a46
o Major bugfixes (onion service, TROVE-2023-006):
- Fix a possible hard assert on a NULL pointer when recording a failed
rendezvous circuit on the service side for the MetricsPort. Fixes bug
40883; bugfix on 0.4.8.1-alpha
This diff is collapsed.
Click to expand it.
src/feature/hs/hs_metrics.c
+
6
−
1
View file @
be751a46
...
...
@@ -199,7 +199,12 @@ hs_metrics_update_by_ident(const hs_metrics_key_t key,
{
hs_service_t
*
service
;
tor_assert
(
ident_pk
);
if
(
!
ident_pk
)
{
/* We can end up here in case this is used from a failure/closing path for
* which we might not have any identity key attacehed to a circuit or
* connection yet. Simply don't assume we have one. */
return
;
}
service
=
hs_service_find
(
ident_pk
);
if
(
!
service
)
{
...
...
This diff is collapsed.
Click to expand it.
src/feature/rend/rendcommon.c
+
8
−
1
View file @
be751a46
...
...
@@ -40,7 +40,14 @@ rend_process_relay_cell(circuit_t *circ, const crypt_path_t *layer_hint,
int
r
=
-
2
;
if
(
CIRCUIT_IS_ORIGIN
(
circ
))
{
origin_circ
=
TO_ORIGIN_CIRCUIT
(
circ
);
if
(
!
layer_hint
||
layer_hint
!=
origin_circ
->
cpath
->
prev
)
{
/* Opened onion service circuit receiving cell MUST have an hs_ident as it
* is the underlying assumption else we can't process the cell. If this is
* the case, we can't recover so close the circuit. */
if
(
BUG
(
!
origin_circ
->
hs_ident
))
{
circuit_mark_for_close
(
circ
,
END_CIRC_REASON_INTERNAL
);
origin_circ
=
NULL
;
}
else
if
(
!
layer_hint
||
layer_hint
!=
origin_circ
->
cpath
->
prev
)
{
log_fn
(
LOG_PROTOCOL_WARN
,
LD_APP
,
"Relay cell (rend purpose %d) from wrong hop on origin circ"
,
command
);
...
...
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