Skip to content
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

[Backport v4.0-branch] net: lib: lwm2m: Fix missing mutex unlock #82423

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

zephyrbot
Copy link
Collaborator

@zephyrbot zephyrbot commented Dec 2, 2024

Backport 30b30c2 from #82231.

Fixes #82427

lwm2m_engine_set() and lwm2m_engine_get() locks
the registry_lock mutex, but this is not unlocked
when setting or getting a time resource where the buffer
lengths are invalid resulting in an early return without
unlocking the mutex. This results in a deadlock when
attempting to lock the registry in another thread.

Signed-off-by: Steven Poon <[email protected]>
(cherry picked from commit 30b30c2)
@zephyrbot zephyrbot added Backport Backport PR and backport failure issues area: LWM2M labels Dec 2, 2024
@dkalowsk dkalowsk added this to the v4.0.1 milestone Dec 9, 2024
@dkalowsk dkalowsk merged commit 9c63873 into v4.0-branch Dec 9, 2024
29 of 30 checks passed
@dkalowsk dkalowsk deleted the backport-82231-to-v4.0-branch branch December 9, 2024 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: LWM2M Backport Backport PR and backport failure issues
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

6 participants