-
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
Use a separate execution thread to disable the OpenThread interface #22315
Merged
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
* Added new manual scripts * Added Auto generated File
* [ota] Store Default OTA Providers in flash Store Default OTA Providers in flash each time the attribute is modified and load it back on the application startup. * Restyled by clang-format * Fix build and reduce flash usage Co-authored-by: Restyled.io <commits@restyled.io>
@LuDuda and @Damian-Nordic please take a look if you get a chance |
PR #22315: Size comparison from 04eeef1 to 1f62d90 Increases (23 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, nrfconnect, psoc6, qpg, telink)
Decreases (8 builds for bl602, cc13x2_26x2)
Full report (45 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
jmartinez-silabs
approved these changes
Aug 31, 2022
andy31415
approved these changes
Aug 31, 2022
Accepted for master: fixing a potential crash |
isiu-apple
pushed a commit
to isiu-apple/connectedhomeip
that referenced
this pull request
Sep 16, 2022
…roject-chip#22315) * Test added march 8 (project-chip#15957) * Added new manual scripts * Added Auto generated File * [OTA] Fix OTARequestorDriverImpl inclusion (project-chip#15981) * Regen to fix CI failures (project-chip#15990) * [ota] Store Default OTA Providers in flash (project-chip#15970) * [ota] Store Default OTA Providers in flash Store Default OTA Providers in flash each time the attribute is modified and load it back on the application startup. * Restyled by clang-format * Fix build and reduce flash usage Co-authored-by: Restyled.io <commits@restyled.io> * Disable OpenThread interface in a separate execution thread * Remove merge artifacts * Restyled by clang-format Co-authored-by: kowsisoundhar12 <57476670+kowsisoundhar12@users.noreply.github.com> Co-authored-by: Carol Yang <clyang@apple.com> Co-authored-by: Boris Zbarsky <bzbarsky@apple.com> Co-authored-by: Damian Królik <66667989+Damian-Nordic@users.noreply.github.com> Co-authored-by: Restyled.io <commits@restyled.io>
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
If ScanNetorks command is sent as a part of commissioning a Thread device the device crashes. Issue is seen on an EFR32 board BRD4186C.
Currently the chip-tool does not issue ScanNetorks during Thread commissioning but it is a valid thing to do and some device manufacturers are planning to implement such logic. To force the issue build the commissioner with the following change:
in
CommissioningParameters::SetThreadOperationalDataset()
callMakeOptional
with "true" instead of "false". Then commissioning the device onto a Thread network triggers a crash.This is an OpenThread issue not specific to Matter.
OpenThread Ticket: openthread/openthread#8110
Matter ticket: #21248
For the root cause see the OpenThread ticket above. The summary is that the Discovery callback is invoked in the middle of
MeshForwarder::UpdateSendMessage()
execution. If the callback directly disables the IPv6 Thread interfacemSendMessage
is set to NULL and the continuation ofMeshForwarder::UpdateSendMessage()
crashes when trying to access it.Change overview
Use a separate execution thread to disable the OpenThread interface from the Discovery callback
Testing
Forced the crash using the procedure described above. Verified that the crash no longer happens with this fix