-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix UnauthenticatedSession leak #10754
Merged
woody-apple
merged 2 commits into
project-chip:master
from
kghost:te6-fix-unauthenticated-session
Oct 22, 2021
Merged
Fix UnauthenticatedSession leak #10754
woody-apple
merged 2 commits into
project-chip:master
from
kghost:te6-fix-unauthenticated-session
Oct 22, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pullapprove
bot
requested review from
andy31415,
anush-apple,
austinh0,
balducci-apple,
bzbarsky-apple,
carol-apple,
cecille,
chrisdecenzo,
chulspro,
Damian-Nordic,
franck-apple,
harimau-qirex,
hawk248,
holbrookt,
jelderton,
jepenven-silabs,
jmartinez-silabs,
kpschoedel,
LuDuda,
mlepage-google,
msandstedt,
pan-apple,
robszewczyk,
sagar-apple,
saurabhst,
turon,
vivien-apple,
wbschiller and
woody-apple
October 21, 2021 07:46
kghost
force-pushed
the
te6-fix-unauthenticated-session
branch
from
October 22, 2021 11:19
5c65962
to
de0c8f0
Compare
PR #10754: Size comparison from 0c16976 to de0c8f0 12 builds (for efr32, k32w, p6, qpg, telink)
10 builds (for linux, mbed)
12 builds (for esp32, nrfconnect)
|
msandstedt
approved these changes
Oct 22, 2021
/rebase |
woody-apple
force-pushed
the
te6-fix-unauthenticated-session
branch
from
October 22, 2021 16:56
de0c8f0
to
e4cc0dd
Compare
woody-apple
approved these changes
Oct 22, 2021
kghost
force-pushed
the
te6-fix-unauthenticated-session
branch
from
October 22, 2021 18:01
e4cc0dd
to
e172d0d
Compare
mspang
approved these changes
Oct 22, 2021
kghost
force-pushed
the
te6-fix-unauthenticated-session
branch
from
October 22, 2021 19:08
e172d0d
to
19a9966
Compare
Size increase report for "nrfconnect-example-build" from e282eec
Full report output
|
Size increase report for "esp32-example-build" from e282eec
Full report output
|
PR #10754: Size comparison from e282eec to 19a9966 35 builds (for efr32, esp32, k32w, linux, mbed, nrfconnect, p6, qpg, telink)
|
jimlyall-q
pushed a commit
to jimlyall-q/connectedhomeip
that referenced
this pull request
Oct 29, 2021
* Fix UnauthenticatedSession leak * Resovle comments
kghost
added a commit
to kghost/connectedhomeip
that referenced
this pull request
Nov 2, 2021
* Fix UnauthenticatedSession leak * Resovle comments
kghost
added a commit
to kghost/connectedhomeip
that referenced
this pull request
Nov 2, 2021
* Fix UnauthenticatedSession leak * Resovle comments
andy31415
pushed a commit
that referenced
this pull request
Nov 3, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
#10493
The root cause of this is that the initial reference count of
UnauthenticatedSession
is set to 1, but it should be 0.Change overview
UnauthenticatedSessionHandle
to guard allUnauthenticatedSession
usages.UnauthenticatedSessionTable::AllocEntry
andFindEntry
private, because they are using raw pointer ofUnauthenticatedSession
Testing